/* style/payment-methods.css */

/* Base styles for the page */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF;
}

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

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

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

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 120px 0 60px; /* Adjust for header offset */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-payment-methods__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  z-index: 1;
}

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

.page-payment-methods__hero-section .page-payment-methods__container {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

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

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

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

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

.page-payment-methods__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFFFF; /* White text for contrast */
  border: 2px solid #C30808;
}

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

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

.page-payment-methods__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

/* Introduction Section */
.page-payment-methods__introduction-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-payment-methods__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-payment-methods__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-payment-methods__content-grid--reverse .page-payment-methods__text-block {
  order: 2;
}

.page-payment-methods__content-grid--reverse .page-payment-methods__image {
  order: 1;
}

.page-payment-methods__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333333;
}

.page-payment-methods__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block;
}

/* Deposit Guide Section */
.page-payment-methods__deposit-guide-section {
  padding: 80px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-payment-methods__deposit-guide-section .page-payment-methods__section-title,
.page-payment-methods__deposit-guide-section .page-payment-methods__section-description {
  color: #FFFFFF;
}

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

.page-payment-methods__card {
  background-color: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  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__card-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
}

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

.page-payment-methods__card p {
  font-size: 1em;
  margin-bottom: 20px;
  color: #555555;
}

.page-payment-methods__notes-block {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  margin-top: 60px;
}

.page-payment-methods__sub-title {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
}

.page-payment-methods__list {
  list-style: disc inside;
  font-size: 1em;
  color: #F0F0F0;
  padding-left: 20px;
}

.page-payment-methods__list li {
  margin-bottom: 10px;
}

.page-payment-methods__list li strong {
  color: #FFFFFF;
}

/* Withdrawal Guide Section */
.page-payment-methods__withdrawal-guide-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-payment-methods__withdrawal-guide-section .page-payment-methods__section-title,
.page-payment-methods__withdrawal-guide-section .page-payment-methods__section-description {
  color: #333333;
}

.page-payment-methods__ordered-list {
  list-style: decimal inside;
  font-size: 1em;
  color: #333333;
  padding-left: 20px;
  margin-top: 20px;
}

.page-payment-methods__ordered-list li {
  margin-bottom: 10px;
}

.page-payment-methods__ordered-list li strong {
  color: #017439;
}

/* Security Section */
.page-payment-methods__security-section {
  padding: 80px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-payment-methods__security-section .page-payment-methods__section-title,
.page-payment-methods__security-section .page-payment-methods__section-description {
  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__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__feature-item p {
  color: #F0F0F0;
  font-size: 0.95em;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-payment-methods__faq-item {
  background-color: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #EFEFEF;
  transition: background-color 0.3s ease;
}

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

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

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

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

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

.page-payment-methods__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

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

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

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

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

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

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

  .page-payment-methods__content-grid--reverse .page-payment-methods__text-block {
    order: unset;
  }

  .page-payment-methods__content-grid--reverse .page-payment-methods__image {
    order: unset;
  }
}

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

  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    min-height: 400px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

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

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

  .page-payment-methods__card,
  .page-payment-methods__feature-item {
    padding: 20px;
  }

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

  .page-payment-methods img {
    max-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; */ /* Already handled by .page-payment-methods__container */
    /* padding-right: 15px; */ /* Already handled by .page-payment-methods__container */
  }

  /* FAQ specific mobile adjustments */
  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

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

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

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

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

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

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

  .page-payment-methods__feature-title {
    font-size: 1.3em;
  }
}

/* Color contrast fixes - if needed */
.page-payment-methods__dark-bg {
  background: #017439;
  color: #ffffff;
}

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