.page-payment-methods {
  font-family: Arial, sans-serif;
  color: #FFFFFF;
  background-color: #100224; /* Adjusted from #FFFFFF to a darker tone for contrast with white text */
}

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

.page-payment-methods__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Enforce column direction for image-above-text */
  background-color: #017439; /* Primary color as a base */
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/5; /* Recommended aspect ratio for hero */
}

.page-payment-methods__hero-content {
  padding: 40px 20px;
  text-align: center;
  background-color: #017439; /* Ensure content block has a solid background */
}

.page-payment-methods__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #FFFFFF;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-payment-methods__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-payment-methods__button--register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #FFFF00;
}

.page-payment-methods__button--register:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-payment-methods__button--login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #FFFF00;
}

.page-payment-methods__button--login:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFFFF;
  padding-top: 40px;
}

.page-payment-methods__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #CCCCCC;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__overview-section,
.page-payment-methods__methods-section,
.page-payment-methods__guide-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-bottom {
  padding: 60px 0;
}

.page-payment-methods__overview-section {
  background-color: #0d011f;
}

.page-payment-methods__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-payment-methods__feature-item {
  background-color: #017439;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__feature-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-payment-methods__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFFFFF;
}

.page-payment-methods__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-payment-methods__method-card {
  background-color: #0d011f;
  border: 1px solid #017439;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__method-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-payment-methods__method-name {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-payment-methods__method-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #CCCCCC;
}

.page-payment-methods__guide-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-payment-methods__guide-section--reverse .page-payment-methods__guide-content {
  flex-direction: row-reverse;
}

.page-payment-methods__guide-steps {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-payment-methods__step-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.page-payment-methods__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #C30808;
  color: #FFFF00;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.page-payment-methods__step-heading {
  font-size: 1.3rem;
  font-weight: bold;
  color: #FFFF00;
  margin-top: 5px;
}

.page-payment-methods__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #CCCCCC;
}

.page-payment-methods__guide-image {
  flex: 1;
  min-width: 400px; /* Ensure images are not too small */
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-payment-methods__button--cta {
  margin-top: 20px;
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #FFFF00;
  align-self: flex-start;
}

.page-payment-methods__button--cta:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-payment-methods__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-payment-methods__security-item {
  background-color: #0d011f;
  border: 1px solid #017439;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__security-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-payment-methods__security-heading {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-payment-methods__security-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #CCCCCC;
}

.page-payment-methods__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-payment-methods__faq-item {
  background-color: #0d011f;
  border: 1px solid #017439;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__faq-question {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-payment-methods__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #CCCCCC;
}

.page-payment-methods__contact-text {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1rem;
  color: #CCCCCC;
}

.page-payment-methods__contact-text a {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
}

.page-payment-methods__contact-text a:hover {
  text-decoration: underline;
}

.page-payment-methods__cta-bottom {
  background-color: #017439;
  text-align: center;
  padding: 80px 0;
}

.page-payment-methods__cta-bottom .page-payment-methods__section-title,
.page-payment-methods__cta-bottom .page-payment-methods__section-description {
  color: #FFFFFF;
}

.page-payment-methods__button--cta-bottom {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #FFFF00;
  margin-top: 30px;
  padding: 18px 40px;
  font-size: 1.2rem;
}

.page-payment-methods__button--cta-bottom:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-payment-methods__container {
    padding: 20px 30px;
  }
}

@media (max-width: 849px) {
  .page-payment-methods__hero-content {
    padding: 30px 15px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-payment-methods__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__button {
    width: 100%;
    max-width: 300px;
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    padding-top: 20px;
  }

  .page-payment-methods__section-description {
    font-size: 0.95rem;
  }

  .page-payment-methods__feature-list,
  .page-payment-methods__method-grid,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__guide-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-payment-methods__guide-section--reverse .page-payment-methods__guide-content {
    flex-direction: column;
  }

  .page-payment-methods__guide-image {
    min-width: unset;
    width: 100%;
  }

  .page-payment-methods__guide-steps {
    min-width: unset;
    width: 100%;
  }

  .page-payment-methods__button--cta {
    align-self: center;
    width: 100%;
    max-width: 300px;
  }

  .page-payment-methods__hero-image,
  .page-payment-methods__method-icon,
  .page-payment-methods__guide-image,
  .page-payment-methods__security-icon {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* or contain, depending on context */
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 15px;
  }

  /* Ensure all images in content sections are responsive and don't cause overflow */
  .page-payment-methods img {
    max-width: 100%;
    height: auto;
  }

  .page-payment-methods__method-icon,
  .page-payment-methods__guide-image,
  .page-payment-methods__security-icon {
    max-width: 100%;
    height: auto;
  }
}

/* Image CSS sizing limits (min 200px) */
.page-payment-methods__method-icon,
.page-payment-methods__guide-image,
.page-payment-methods__security-icon {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure the h1 font-size is not fixed and too large on mobile */
.page-payment-methods__hero-section h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
}