/* style/payment-methods.css */
.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--background-color, #FFFFFF);
}

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

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 500px;
  margin-bottom: 30px;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-payment-methods__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 100%;
  /* Use clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-payment-methods__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 14px 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;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-payment-methods__intro-section,
.page-payment-methods__payment-options,
.page-payment-methods__deposit-process,
.page-payment-methods__benefits-section,
.page-payment-methods__tips-section,
.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-payment-methods__withdrawal-process,
.page-payment-methods__conclusion-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-payment-methods__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-payment-methods__card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-payment-methods__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure min height for card images */
}

.page-payment-methods__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-payment-methods__card-description {
  font-size: 1rem;
  color: #555555;
  text-align: justify;
}

.page-payment-methods__ordered-list,
.page-payment-methods__unordered-list {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.page-payment-methods__ordered-list li,
.page-payment-methods__unordered-list li {
  margin-bottom: 10px;
  color: inherit;
}

.page-payment-methods__ordered-list li strong,
.page-payment-methods__unordered-list li strong {
  color: #26A9E0;
}

.page-payment-methods__highlight {
  color: #26A9E0;
  font-weight: bold;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 30px;
}

.page-payment-methods__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #e0f2f7; /* Lighter shade of brand color for summary */
  color: #26A9E0;
  border-bottom: 1px solid #cce9f0;
}

.page-payment-methods__faq-item[open] > .page-payment-methods__faq-question {
  border-bottom: 1px solid #26A9E0;
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-payment-methods__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  text-align: justify;
}

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

/* Ensure contrast for links within dark sections */
.page-payment-methods__dark-bg a {
  color: #ffffff;
  text-decoration: underline;
}

.page-payment-methods__dark-bg a:hover {
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-image {
    max-height: 400px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section,
  .page-payment-methods__intro-section,
  .page-payment-methods__payment-options,
  .page-payment-methods__deposit-process,
  .page-payment-methods__withdrawal-process,
  .page-payment-methods__benefits-section,
  .page-payment-methods__tips-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__conclusion-section {
    padding: 40px 0;
  }

  .page-payment-methods__container {
    padding: 0 15px !important;
  }

  .page-payment-methods__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-payment-methods__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-payment-methods__text-block,
  .page-payment-methods__ordered-list li,
  .page-payment-methods__unordered-list li,
  .page-payment-methods__card-description,
  .page-payment-methods__faq-answer {
    font-size: 0.95rem;
  }

  .page-payment-methods__card-title {
    font-size: 1.3rem;
  }

  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 1.05rem;
  }

  .page-payment-methods__faq-toggle {
    font-size: 1.3rem;
  }

  /* Mobile image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Ensure min width for content images */
    min-height: 200px; /* Ensure min height for content images */
  }
  
  .page-payment-methods__hero-section,
  .page-payment-methods__intro-section,
  .page-payment-methods__payment-options,
  .page-payment-methods__deposit-process,
  .page-payment-methods__withdrawal-process,
  .page-payment-methods__benefits-section,
  .page-payment-methods__tips-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__conclusion-section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods a[class*="button"],
  .page-payment-methods a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-payment-methods__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-section {
    padding-bottom: 40px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  .page-payment-methods__card-image {
    max-width: 100%;
  }
}