.page-payment-methods {
  color: #333333; /* Default text color for light body background */
  background-color: var(--secondary-color); /* Assuming --secondary-color is light */
}

.page-payment-methods__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
}

.page-payment-methods__hero-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.6); /* Slightly darken image for text readability, not changing color hue */
}

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

.page-payment-methods__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-payment-methods__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #F0F0F0;
  line-height: 1.6;
}

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

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

.page-payment-methods__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-payment-methods__button--deposit {
  background-color: #FCBC45; /* Login color as deposit button */
  color: #000000;
}

.page-payment-methods__button--deposit:hover {
  background-color: #EBAA3C;
  transform: translateY(-3px);
}

.page-payment-methods__button--learn-more,
.page-payment-methods__button--deposit-now,
.page-payment-methods__button--register-cta,
.page-payment-methods__button--login-cta {
  background-color: #FCBC45;
  color: #000000;
}

.page-payment-methods__button--learn-more:hover,
.page-payment-methods__button--deposit-now:hover,
.page-payment-methods__button--register-cta:hover,
.page-payment-methods__button--login-cta:hover {
  background-color: #EBAA3C;
  transform: translateY(-3px);
}

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

.page-payment-methods__section-title {
  font-size: 2.8em;
  color: #000000;
  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: #FCBC45;
  border-radius: 2px;
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-payment-methods__overview-image,
.page-payment-methods__security-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-payment-methods__method-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-payment-methods__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-payment-methods__card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  text-align: left;
}

.page-payment-methods__list-item {
  font-size: 0.95em;
  color: #333333;
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-payment-methods__list-item::before {
  content: '✓';
  color: #FCBC45;
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-payment-methods__security-list .page-payment-methods__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #333333;
  padding-left: 30px;
}

.page-payment-methods__security-list .page-payment-methods__list-item::before {
  content: '🛡️';
  font-size: 1.2em;
  color: #000000; /* Use main color for icon */
  left: 0;
}

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

.page-payment-methods__faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.page-payment-methods__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: box-shadow 0.3s ease;
}

.page-payment-methods__faq-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.page-payment-methods__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 15px;
}

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

.page-payment-methods__cta-section {
  background-color: #000000; /* Main color for CTA background */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
  color: #FFFFFF;
}

.page-payment-methods__cta-section .page-payment-methods__section-title::after {
  background-color: #FCBC45;
}

.page-payment-methods__cta-section .page-payment-methods__section-description {
  color: #F0F0F0;
}

.page-payment-methods__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

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

  .page-payment-methods__section-title {
    font-size: 2.2em;
  }

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

@media (max-width: 768px) {
  .page-payment-methods {
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
  }
  .page-payment-methods__hero-section {
    min-height: 500px;
    padding: 40px 15px;
  }

  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }

  .page-payment-methods__hero-description {
    font-size: 1.1em;
  }

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

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

  .page-payment-methods__container {
    padding: 30px 15px;
  }

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

  .page-payment-methods__section-description {
    font-size: 1em;
  }

  .page-payment-methods__method-grid,
  .page-payment-methods__faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__card-image,
  .page-payment-methods__overview-image,
  .page-payment-methods__security-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  /* Enforce min-size for all content area images on mobile */
  .page-payment-methods img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not smaller than 200px */
    min-height: 200px; /* Ensure images are not smaller than 200px */
  }

  .page-payment-methods__card-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-payment-methods__security-list .page-payment-methods__list-item {
    font-size: 1em;
  }

  .page-payment-methods__cta-section {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 1.8em;
  }

  .page-payment-methods__hero-description {
    font-size: 0.95em;
  }

  .page-payment-methods__section-title {
    font-size: 1.6em;
  }

  .page-payment-methods__faq-question {
    font-size: 1.2em;
  }
}