/* 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: #000000; /* Body background from shared.css */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

.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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

.page-payment-methods__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2c;
}

/* General Section Styling */
.page-payment-methods__introduction-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-methods-section,
.page-payment-methods__security-section,
.page-payment-methods__tips-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-bottom-section {
  padding: 80px 0;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* Color Contrast Sections */
.page-payment-methods__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-payment-methods__light-bg .page-payment-methods__section-title {
  color: #017439;
}

.page-payment-methods__light-bg .page-payment-methods__text-block {
  color: #333333;
}

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

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

.page-payment-methods__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-payment-methods__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

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

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

.page-payment-methods__info-card .page-payment-methods__card-title {
  color: #ffffff;
}

.page-payment-methods__info-card .page-payment-methods__card-description {
  color: #f0f0f0;
}

.page-payment-methods__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-payment-methods__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-payment-methods__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFFF00; /* Highlight checkmark */
  font-weight: bold;
}

.page-payment-methods__list-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-payment-methods__list-tips li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.1em;
  position: relative;
  padding-left: 45px;
}

.page-payment-methods__list-tips li::before {
  content: '💡';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
}

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

.page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFFF00;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  content: '−';
}

.page-payment-methods__faq-answer {
  padding: 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

/* Bottom CTA Section */
.page-payment-methods__cta-bottom-section {
  text-align: center;
}

.page-payment-methods__cta-bottom-content {
  background-color: #ffffff;
  padding: 60px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: #333333;
}

.page-payment-methods__cta-bottom-content .page-payment-methods__section-title {
  color: #017439;
}

.page-payment-methods__cta-bottom-content .page-payment-methods__text-block {
  color: #333333;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__image-full-width {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 80px 0;
  }

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

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

  .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;
    margin-left: auto;
    margin-right: auto;
  }

  .page-payment-methods__introduction-section,
  .page-payment-methods__deposit-methods-section,
  .page-payment-methods__withdrawal-methods-section,
  .page-payment-methods__security-section,
  .page-payment-methods__tips-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-bottom-section {
    padding: 50px 0;
  }

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

  .page-payment-methods__text-block {
    font-size: 0.95em;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__info-card {
    padding: 20px;
  }

  .page-payment-methods__card-title {
    font-size: 1.5em;
  }

  .page-payment-methods__card-description {
    font-size: 0.9em;
  }

  .page-payment-methods__list-tips li {
    font-size: 1em;
    padding-left: 40px;
  }

  .page-payment-methods__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-payment-methods__faq-answer {
    font-size: 0.95em;
    padding: 15px;
  }

  /* Mobile image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
}

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

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}