/* style/payment-methods.css */
/* 
  Body background is #0a0a0a (dark). 
  All main text content should be light (#ffffff) to ensure WCAG AA contrast.
  Brand color #26A9E0 (light blue) can be used for backgrounds with white text, or for text on white/dark backgrounds if contrast is met.
*/

/* Base styles for the payment methods page */
.page-payment-methods {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background */
}

.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;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: #0a0a0a; /* Ensure dark background for hero if image isn't full cover */
  color: #ffffff;
}

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability, not changing color hue */
}

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

.page-payment-methods__main-title {
  color: #ffffff;
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-payment-methods__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General Section Styles */
.page-payment-methods__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0; /* Brand color for titles */
}

.page-payment-methods__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for sub-titles */
}

.page-payment-methods__text-block {
  margin-bottom: 20px;
  font-size: 1em;
  color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-payment-methods__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text for dark backgrounds */
}

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

.highlight {
  color: #26A9E0; /* Highlight important keywords with brand color */
  font-weight: bold;
}

/* Button Styles */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  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;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  text-align: center;
}

.page-payment-methods__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-payment-methods__cta-container {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-payment-methods__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-payment-methods__text-link:hover {
  color: #1e87b3;
}

/* Section Specific Styles */
.page-payment-methods__overview-section,
.page-payment-methods__withdrawal-guide,
.page-payment-methods__faq-section {
  background-color: #1a1a1a; /* Lighter dark background for contrast with body */
  color: #ffffff;
  padding: 60px 0;
}

.page-payment-methods__overview-section .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: #26A9E0;
}

.page-payment-methods__overview-section .page-payment-methods__sub-title,
.page-payment-methods__withdrawal-guide .page-payment-methods__sub-title,
.page-payment-methods__faq-section .page-payment-methods__sub-title {
  color: #26A9E0;
}

.page-payment-methods__deposit-methods,
.page-payment-methods__security-policy,
.page-payment-methods__conclusion-section {
  background-color: #0a0a0a; /* Dark background matching body */
  color: #ffffff;
  padding: 60px 0;
}

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

.page-payment-methods__method-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods__method-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Use contain to show full logo/icon */
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-payment-methods__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-payment-methods__card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-payment-methods__card-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #f0f0f0;
}

.page-payment-methods__card-list li {
  margin-bottom: 5px;
}

/* Withdrawal Guide */
.page-payment-methods__guide-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-payment-methods__guide-steps {
  flex: 1;
}

.page-payment-methods__guide-image {
  flex: 1;
  min-width: 300px; /* Ensure image section has a minimum width */
}

.page-payment-methods__image-full {
  width: 100%;
  height: auto;
  border-radius: 10px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

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

.page-payment-methods__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods__feature-image {
  width: 100%;
  height: 180px; /* Adjust height for feature images */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

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

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-payment-methods__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-payment-methods__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-payment-methods__faq-qtext {
  flex-grow: 1;
}

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

.page-payment-methods__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* For details tag native open state */
.page-payment-methods__faq-item[open] .page-payment-methods__faq-answer {
  max-height: 1000px; /* Sufficiently large value */
  transition: max-height 0.5s ease-in;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-payment-methods__guide-content {
    flex-direction: column;
    align-items: center;
  }
  .page-payment-methods__guide-image {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 0 15px;
  }

  .page-payment-methods__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset, small top padding */
  }

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

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

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

  .page-payment-methods__hero-content {
    padding: 15px;
  }

  /* Images responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Image containers responsive */
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__method-card,
  .page-payment-methods__feature-card,
  .page-payment-methods__guide-image,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .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;
    margin-bottom: 10px; /* Space between stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__cta-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__method-grid,
  .page-payment-methods__feature-grid {
    grid-template-columns: 1fr;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-payment-methods__method-card,
  .page-payment-methods__feature-card {
    padding: 20px;
  }

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

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

  .page-payment-methods__overview-section,
  .page-payment-methods__withdrawal-guide,
  .page-payment-methods__faq-section,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__security-policy,
  .page-payment-methods__conclusion-section {
    padding: 40px 0; /* Adjust section padding for mobile */
  }
}