.page-payment-methods {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-payment-methods__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #2F6BFF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.page-payment-methods__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-payment-methods__hero-content-wrapper {
  width: 100%;
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #FFFFFF;
}

.page-payment-methods__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
}

.page-payment-methods__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  color: #FFFFFF;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1F2D3D;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
}

.page-payment-methods__text-content {
  font-size: 1rem;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__image-content {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__method-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-payment-methods__method-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #D6E2FF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-payment-methods__card-title {
  font-size: 1.8rem;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__card-text {
  font-size: 1rem;
  color: #1F2D3D;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-payment-methods__card-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  color: #FFFFFF;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-payment-methods__card-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-payment-methods__cta-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-payment-methods__cta-card {
  position: relative;
  background-color: #2F6BFF;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-payment-methods__cta-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__cta-content {
  padding: 40px 20px;
  width: 100%;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
}

.page-payment-methods__cta-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-payment-methods__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-payment-methods__cta-button--large {
  padding: 18px 35px;
  font-size: 1.1rem;
  border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-payment-methods__hero-content-wrapper {
    padding: 30px 0;
  }

  .page-payment-methods__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

  .page-payment-methods__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-payment-methods__section-title {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-payment-methods__text-content {
    font-size: 0.95rem;
  }

  .page-payment-methods__method-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-payment-methods__card-title {
    font-size: 1.5rem;
  }

  .page-payment-methods__cta-title {
    font-size: 1.8rem;
  }

  .page-payment-methods__cta-description {
    font-size: 1rem;
  }

  .page-payment-methods__cta-button--large {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .page-payment-methods__image-content,
  .page-payment-methods__cta-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: clamp(20px, 8vw, 30px);
  }

  .page-payment-methods__section-title {
    font-size: 1.8rem;
  }

  .page-payment-methods__cta-title {
    font-size: 1.6rem;
  }
}

/* Ensure content area images are not too small */
.page-payment-methods img:not(.page-payment-methods__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Mobile specific for content area images to prevent overflow */
@media (max-width: 768px) {
  .page-payment-methods img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-payment-methods {
    overflow-x: hidden;
  }
}