/* style/payment-methods.css */
/* Base styles for the payment methods page */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#111) */
}

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

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439; /* Brand color background for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Minimum height for hero section */
  overflow: hidden;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  color: #ffffff;
}

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

.page-payment-methods__subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-payment-methods__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-payment-methods__btn-primary {
  background-color: #C30808; /* Register/Login button 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: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-payment-methods__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff; /* Default for dark background sections */
}

.page-payment-methods__intro-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color */
}

.page-payment-methods__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-payment-methods__light-bg .page-payment-methods__section-title {
  color: #017439; /* Brand color for titles on light background */
}

.page-payment-methods__deposit-methods,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__guide-section,
.page-payment-methods__security-policy,
.page-payment-methods__tips-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
  padding: 80px 0;
}

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

.page-payment-methods__card {
  background-color: #f8f8f8; /* Light background for cards */
  color: #333333; /* Dark text for cards */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px; /* Ensure cards have a minimum height */
}

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

.page-payment-methods__dark-bg .page-payment-methods__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  color: #ffffff;
}

.page-payment-methods__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for card titles */
}
.page-payment-methods__dark-bg .page-payment-methods__card-title {
  color: #ffffff; /* White for card titles on dark background */
}

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

.page-payment-methods__list {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 15px;
  text-align: left;
}

.page-payment-methods__list--tips {
  list-style-type: none;
  padding-left: 0;
  text-align: center;
}

.page-payment-methods__list--tips li {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-payment-methods__sub-section-title {
  font-size: 2em;
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: center;
  color: #017439; /* Brand color for sub-titles */
}

.page-payment-methods__guide-section ol {
  list-style-type: decimal;
  padding-left: 25px;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__feature-item {
  text-align: center;
  padding: 20px;
}

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

.page-payment-methods__feature-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #017439; /* Brand color for feature titles */
}

.page-payment-methods__dark-bg .page-payment-methods__feature-title {
  color: #ffffff;
}

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

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

.page-payment-methods__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333; /* Dark text for FAQ items */
}

.page-payment-methods__dark-bg .page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  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;
  background-color: #f0f0f0;
  color: #017439; /* Brand color for FAQ questions */
}

.page-payment-methods__dark-bg .page-payment-methods__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

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

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

/* For details/summary, hide default marker */
.page-payment-methods__faq-item summary {
  list-style: none;
}
.page-payment-methods__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-payment-methods__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.1em;
  color: #555555;
  line-height: 1.5;
}
.page-payment-methods__dark-bg .page-payment-methods__faq-answer {
  color: #e0e0e0;
}

.page-payment-methods__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #017439; /* Brand color */
}

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

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-payment-methods__main-title {
    font-size: 2.2em;
  }
  .page-payment-methods__subtitle {
    font-size: 1.1em;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__card-title {
    font-size: 1.5em;
  }
  .page-payment-methods__sub-section-title {
    font-size: 1.6em;
  }
  .page-payment-methods__guide-section ol,
  .page-payment-methods__faq-list {
    padding: 0 15px;
  }
  .page-payment-methods__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-payment-methods__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 1em;
  }
  
  /* Mobile image/video responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods video,
  .page-payment-methods__video {
    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,
  .page-payment-methods__video-section,
  .page-payment-methods__video-container,
  .page-payment-methods__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-title {
    font-size: 1.5em;
  }
  .page-payment-methods__hero-section {
    padding: var(--header-offset, 120px) 0 40px 0; /* Adjust padding for smaller screens */
  }
}

/* Ensure no CSS filter on images */
.page-payment-methods img {
  filter: none !important;
}