.page-payment-methods {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-payment-methods__hero-content {
  position: relative; /* Ensure content is above image */
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-payment-methods__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  max-width: 100%;
}

.page-payment-methods__description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  border: none;
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-payment-methods__btn-secondary {
  background: none;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-payment-methods__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--glow, #57E38D);
}

.page-payment-methods__section {
  padding: 60px 0;
  text-align: center;
}

.page-payment-methods__section-title {
  font-size: 2.2em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-payment-methods__payment-overview .page-payment-methods__section-title,
.page-payment-methods__withdrawal-guide .page-payment-methods__section-title,
.page-payment-methods__faq-section .page-payment-methods__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-payment-methods__deposit-guide .page-payment-methods__section-title,
.page-payment-methods__security-info .page-payment-methods__section-title {
  color: var(--deep-green, #0A4B2C); /* Adjusted for light background */
}

.page-payment-methods__text-block {
  font-size: 1.05em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-payment-methods__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.page-payment-methods__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__card-title {
  font-size: 1.5em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
}

.page-payment-methods__card-text {
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95em;
  flex-grow: 1;
  text-align: center;
}

.page-payment-methods__card-button {
  margin-top: auto;
  display: inline-block;
  width: auto;
  min-width: 150px; /* Ensure button is not too small */
}

.page-payment-methods__deposit-guide,
.page-payment-methods__security-info {
  background-color: #ffffff;
  color: #333333;
}

.page-payment-methods__deposit-guide .page-payment-methods__text-block,
.page-payment-methods__security-info .page-payment-methods__text-block {
  color: #333333;
}

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

.page-payment-methods__guide-list li {
  background-color: var(--card-bg, #11271B);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.8;
}

.page-payment-methods__deposit-guide .page-payment-methods__guide-list li {
  background-color: #f9f9f9; /* Light background for light section */
  color: #333333;
}

.page-payment-methods__guide-list li strong {
  color: var(--text-main, #F2FFF6);
  font-size: 1.1em;
}

.page-payment-methods__deposit-guide .page-payment-methods__guide-list li strong {
  color: var(--deep-green, #0A4B2C);
}

.page-payment-methods__guide-list li a {
  color: var(--deep-green, #0A4B2C);
  text-decoration: underline;
}

.page-payment-methods__guide-list li a:hover {
  color: var(--glow, #57E38D);
}

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

.page-payment-methods__feature-item {
  text-align: center;
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__feature-title {
  font-size: 1.4em;
  color: var(--deep-green, #0A4B2C);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__feature-description {
  font-size: 0.95em;
  color: #555555;
}

.page-payment-methods__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-payment-methods__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-payment-methods__faq-question::-webkit-details-marker {
  display: none;
}

.page-payment-methods__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C);
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.6;
}

.page-payment-methods__support-cta {
  margin-top: 50px;
  padding: 30px;
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__support-cta p {
  color: var(--text-main, #F2FFF6);
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* Color Contrast Adjustments */
.page-payment-methods__dark-bg {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-payment-methods__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-payment-methods__text-contrast-fix {
  color: #333333; /* For text on light backgrounds */
}

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

@media (max-width: 768px) {
  .page-payment-methods__main-title {
    font-size: 2em;
  }
  .page-payment-methods__description {
    font-size: 1em;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-payment-methods__hero-content {
    padding: 30px 15px;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px;
  }

  /* Mobile image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__card-image,
  .page-payment-methods__feature-icon {
    min-width: 200px !important;
    min-height: 150px !important; /* Adjust min height for mobile if needed */
  }
  
  /* Containers for mobile */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__payment-grid,
  .page-payment-methods__security-features,
  .page-payment-methods__faq-list,
  .page-payment-methods__support-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-payment-methods__hero-image-wrapper {
    max-height: 400px; /* Adjust hero image height for mobile */
  }

  .page-payment-methods__guide-list li {
    padding: 15px;
  }
  .page-payment-methods__faq-question {
    padding: 15px 20px;
  }
  .page-payment-methods__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-title {
    font-size: 1.6em;
  }
  .page-payment-methods__hero-content {
    padding: 20px 10px;
  }
}