.page-payment-methods {
  color: #333333; /* Default dark text for light body background */
}

.page-payment-methods__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
  overflow: hidden; /* Contains the image */
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

.page-payment-methods__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E3B23C;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

.page-payment-methods__cta-button {
  display: inline-block;
  background-color: #E3B23C;
  color: #0A2463;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__cta-button:hover {
  background-color: #f0c354;
  transform: translateY(-3px);
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  overflow: hidden;
}

.page-payment-methods__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-payment-methods__overview-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-methods-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

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

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

.page-payment-methods__section-title {
  font-size: 2.8em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-payment-methods__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E3B23C;
  border-radius: 2px;
}

.page-payment-methods__section-intro {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-payment-methods__secondary-cta {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  background-color: #0A2463;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-payment-methods__secondary-cta:hover {
  background-color: #1a3a7c;
  transform: translateY(-2px);
}

.page-payment-methods__methods-grid,
.page-payment-methods__security-features,
.page-payment-methods__faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__method-card,
.page-payment-methods__feature-item,
.page-payment-methods__faq-item {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.page-payment-methods__method-card:hover,
.page-payment-methods__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.page-payment-methods__method-icon,
.page-payment-methods__feature-icon {
  width: 100%; /* Ensure images are not smaller than 200px due to CSS */
  height: auto;
  max-width: 250px; /* Example: Limit icon size while keeping min 200px */
  margin-bottom: 25px;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__method-title,
.page-payment-methods__feature-title {
  font-size: 1.8em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-payment-methods__method-description,
.page-payment-methods__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
}

.page-payment-methods__card-cta {
  display: inline-block;
  background-color: #E3B23C;
  color: #0A2463;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-payment-methods__card-cta:hover {
  background-color: #f0c354;
}

.page-payment-methods__faq-item {
  text-align: left;
  padding: 25px;
}

.page-payment-methods__faq-question {
  font-size: 1.3em;
  color: #0A2463;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-payment-methods__faq-question::before {
  content: 'Q.';
  color: #E3B23C;
  font-weight: bold;
  position: absolute;
  left: 0;
}

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

.page-payment-methods__cta-section {
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
}

.page-payment-methods__cta-title {
  font-size: 3em;
  color: #E3B23C;
  margin-bottom: 25px;
}

.page-payment-methods__cta-description {
  font-size: 1.2em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 50px;
  opacity: 0.9;
}

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

.page-payment-methods__cta-button--primary {
  background-color: #E3B23C;
  color: #0A2463;
}

.page-payment-methods__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #E3B23C;
  color: #E3B23C;
}

.page-payment-methods__cta-button--secondary:hover {
  background-color: #E3B23C;
  color: #0A2463;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 3em;
  }
  .page-payment-methods__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 60px 15px 30px;
  }
  .page-payment-methods__hero-content {
    padding: 60px 15px 30px;
  }
  .page-payment-methods__hero-title {
    font-size: 2.5em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-payment-methods__overview-section,
  .page-payment-methods__deposit-methods-section,
  .page-payment-methods__withdrawal-methods-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    padding: 60px 15px;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-intro {
    font-size: 0.95em;
  }
  .page-payment-methods__methods-grid,
  .page-payment-methods__security-features,
  .page-payment-methods__faq-grid {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__method-icon,
  .page-payment-methods__feature-icon {
    max-width: 200px; /* Ensure minimum size is maintained */
    margin-left: auto;
    margin-right: auto;
  }
  .page-payment-methods__cta-title {
    font-size: 2.2em;
  }
  .page-payment-methods__cta-description {
    font-size: 1em;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__cta-button {
    width: 100%;
    max-width: 300px;
  }
  /* Ensure all images within .page-payment-methods do not cause horizontal scroll */
  .page-payment-methods img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 2em;
  }
  .page-payment-methods__section-title {
    font-size: 1.5em;
  }
  .page-payment-methods__hero-content {
    padding: 40px 10px 20px;
  }
  .page-payment-methods__overview-section,
  .page-payment-methods__deposit-methods-section,
  .page-payment-methods__withdrawal-methods-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    padding: 40px 10px;
  }
  .page-payment-methods__cta-title {
    font-size: 1.8em;
  }
}