.page-payment-methods {
  background-color: #FFFFFF; /* Page background as per custom color */
  color: #000000; /* Main text color for contrast */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-payment-methods__hero-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0;
}

.page-payment-methods__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a decent height */
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF; /* Text on dark hero image */
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  border-radius: 10px;
  max-width: 800px;
  margin: 20px;
}

.page-payment-methods__hero-title {
  font-size: 3em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
  font-weight: bold;
}

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

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

.page-payment-methods__feature-card,
.page-payment-methods__method-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

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

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

.page-payment-methods__method-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too wide */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

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

.page-payment-methods__method-description {
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 20px;
}

.page-payment-methods__method-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  width: 100%;
  max-width: 300px;
  color: #333333;
}

.page-payment-methods__method-benefits li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-payment-methods__method-benefits li::before {
  content: '✔';
  color: #FCBC45;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-payment-methods__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 20px;
  white-space: nowrap;
}

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

.page-payment-methods__button--register:hover {
  background-color: #e0e0e0;
}

.page-payment-methods__button--deposit,
.page-payment-methods__button--withdraw,
.page-payment-methods__button--join-deposit,
.page-payment-methods__button--join-withdraw,
.page-payment-methods__button--secure-play,
.page-payment-methods__button--join-now,
.page-payment-methods__button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-payment-methods__button--deposit:hover,
.page-payment-methods__button--withdraw:hover,
.page-payment-methods__button--join-deposit:hover,
.page-payment-methods__button--join-withdraw:hover,
.page-payment-methods__button--secure-play:hover,
.page-payment-methods__button--join-now:hover,
.page-payment-methods__button--login:hover {
  background-color: #e6a73c;
  border-color: #e6a73c;
}

.page-payment-methods__how-to-deposit,
.page-payment-methods__how-to-withdraw {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 40px;
  margin-top: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__how-to-title {
  font-size: 2em;
  color: #000000;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-payment-methods__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-payment-methods__steps-list li {
  counter-increment: step-counter;
  margin-bottom: 15px;
  padding-left: 40px;
  position: relative;
  font-size: 1.1em;
  line-height: 1.6;
  color: #333333;
}

.page-payment-methods__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FCBC45;
  color: #000000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-payment-methods__steps-list li strong {
  color: #000000;
}

.page-payment-methods__steps-list li a {
  color: #FCBC45;
  text-decoration: underline;
}

.page-payment-methods__security-section {
  background-color: #000000; /* Main color as background */
  color: #FFFFFF; /* Auxiliary color for text */
  padding: 60px 20px;
  margin-top: 60px;
}

.page-payment-methods__security-section .page-payment-methods__section-title,
.page-payment-methods__security-section .page-payment-methods__section-intro {
  color: #FFFFFF;
}

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

.page-payment-methods__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__security-heading {
  font-size: 1.6em;
  color: #FCBC45;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__security-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-payment-methods__security-text a {
  color: #FCBC45;
  text-decoration: underline;
}

.page-payment-methods__faq-section {
  padding: 60px 20px;
  margin-top: 60px;
}

.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-payment-methods__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-payment-methods__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
  font-weight: bold;
}

.page-payment-methods__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-payment-methods__faq-answer {
  font-size: 1em;
  color: #333333;
  line-height: 1.6;
  display: none;
  padding-top: 10px;
}

.page-payment-methods__faq-answer.active {
  display: block;
}

.page-payment-methods__cta-section {
  background-color: #000000; /* Main color as background */
  padding: 80px 20px;
  margin-top: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-payment-methods__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__cta-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 900px;
  margin: 0 auto;
}

.page-payment-methods__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FCBC45;
}

.page-payment-methods__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-payment-methods__button--join-now,
.page-payment-methods__button--login {
  margin: 10px;
}

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

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

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

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

  .page-payment-methods__features-grid,
  .page-payment-methods__method-grid {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__button {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-payment-methods__how-to-deposit,
  .page-payment-methods__how-to-withdraw {
    padding: 25px;
  }

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

  .page-payment-methods__steps-list li {
    font-size: 1em;
  }

  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__security-heading {
    font-size: 1.4em;
  }

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

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

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

  /* Mobile content image constraint */
  .page-payment-methods img {
    max-width: 100%;
    height: auto;
  }

  .page-payment-methods__container {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-content {
    padding: 20px;
  }

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

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

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

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