/* style/payment-methods.css */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-payment-methods__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

/* Hero Section */
.page-payment-methods__hero-section {
  padding: 80px 0 60px; /* Adjust for header offset */
  text-align: center;
  background-image: url('[GALLERY:hero_payment:1920x1080:payment_methods,online_casino,mb88,secure_transactions,vietnam]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-payment-methods__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

.page-payment-methods__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Highlight title */
  line-height: 1.2;
}

.page-payment-methods__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 1.1em;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-payment-methods__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Login font color */
  border: 2px solid #C30808; /* Login color */
}

.page-payment-methods__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

/* General Section Styles */
.page-payment-methods__overview-section,
.page-payment-methods__deposit-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__tips-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
  padding: 60px 0;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #017439; /* Primary brand color for titles on light background */
}
.page-payment-methods__dark-bg .page-payment-methods__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}
.page-payment-methods__dark-bg .page-payment-methods__section-description {
    color: #f0f0f0;
}

/* Features Grid */
.page-payment-methods__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-payment-methods__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-payment-methods__feature-card:hover {
  transform: translateY(-5px);
}

.page-payment-methods__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-payment-methods__feature-text {
  font-size: 1em;
  color: #555;
}

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

.page-payment-methods__payment-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-payment-methods__payment-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__payment-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight payment titles */
}

.page-payment-methods__payment-text {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-payment-methods__read-more {
  display: inline-block;
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFFF00;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-payment-methods__read-more:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Guide Sections */
.page-payment-methods__guide-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
  color: #ffffff;
}

.page-payment-methods__guide-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #FFFF00;
  text-align: center;
}

.page-payment-methods__guide-list {
  list-style-type: decimal;
  padding-left: 30px;
  margin-bottom: 20px;
}

.page-payment-methods__guide-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-payment-methods__guide-list strong {
  color: #FFFF00;
}

.page-payment-methods__guide-note {
  font-style: italic;
  text-align: center;
  color: #ccc;
}

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

.page-payment-methods__info-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-payment-methods__info-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
  text-align: center;
}

.page-payment-methods__info-text {
  font-size: 1em;
}

/* Tips Section */
.page-payment-methods__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__tip-item {
  background-color: rgba(255, 255, 255, 0.1); /* Transparent on dark */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: center;
}

.page-payment-methods__tip-icon {
  font-size: 2.5em;
  color: #FFFF00;
  margin-bottom: 15px;
  display: block;
}

.page-payment-methods__tip-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-payment-methods__tip-text {
  font-size: 1em;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  color: #017439;
}

.page-payment-methods__faq-question:hover {
  background-color: #f0f0f0;
}

.page-payment-methods__faq-title {
  font-size: 1.2em;
  margin: 0;
  flex-grow: 1;
}

.page-payment-methods__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(0deg); /* No rotation needed for -/+ */
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-payment-methods__faq-answer p {
  margin-bottom: 0;
}

/* Call to Action Section */
.page-payment-methods__cta-section {
  text-align: center;
  background-color: #017439;
  padding: 80px 0;
  color: #ffffff;
}

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

@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-payment-methods__hero-section {
    padding: 60px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset */
  }

  .page-payment-methods__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-payment-methods__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__overview-section,
  .page-payment-methods__deposit-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__tips-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    padding: 40px 0;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  .page-payment-methods__features-grid,
  .page-payment-methods__payment-cards-grid,
  .page-payment-methods__info-grid,
  .page-payment-methods__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__feature-card,
  .page-payment-methods__payment-card,
  .page-payment-methods__info-card,
  .page-payment-methods__tip-item,
  .page-payment-methods__guide-section,
  .page-payment-methods__faq-item {
    padding: 20px;
  }

  .page-payment-methods__feature-icon,
  .page-payment-methods__payment-icon {
    max-width: 150px;
  }

  .page-payment-methods__feature-title,
  .page-payment-methods__payment-title,
  .page-payment-methods__info-title,
  .page-payment-methods__tip-title {
    font-size: 1.3em;
  }

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

  .page-payment-methods__faq-question {
    padding: 15px 20px;
  }

  .page-payment-methods__faq-title {
    font-size: 1em;
  }

  .page-payment-methods__faq-toggle {
    font-size: 1.5em;
  }

  .page-payment-methods__faq-answer {
    padding: 0 20px;
  }

  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 10px 20px;
  }

  /* Ensure all images are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__hero-section,
  .page-payment-methods__overview-section .page-payment-methods__container,
  .page-payment-methods__deposit-section .page-payment-methods__container,
  .page-payment-methods__withdrawal-section .page-payment-methods__container,
  .page-payment-methods__tips-section .page-payment-methods__container,
  .page-payment-methods__faq-section .page-payment-methods__container,
  .page-payment-methods__cta-section .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-payment-methods__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}