/* style/payment-methods.css */

/* Custom Colors */
:root {
  --iwin88-primary: #11A84E;
  --iwin88-secondary: #22C768;
  --iwin88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --iwin88-card-bg: #11271B;
  --iwin88-bg: #08160F;
  --iwin88-text-main: #F2FFF6;
  --iwin88-text-secondary: #A7D9B8;
  --iwin88-border: #2E7A4E;
  --iwin88-glow: #57E38D;
  --iwin88-gold: #F2C14E;
  --iwin88-divider: #1E3A2A;
  --iwin88-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast against body background */
.page-payment-methods {
  background-color: var(--iwin88-bg); /* Use specific page background */
  color: var(--iwin88-text-main); /* Light text on dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  background-color: var(--iwin88-deep-green); /* Darker background for hero */
  padding-top: 10px; /* Small top padding */
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-payment-methods__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: var(--iwin88-gold); /* Gold for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-payment-methods__hero-description {
  font-size: 1.15em;
  color: var(--iwin88-text-secondary);
  margin-bottom: 30px;
}

/* General Section Styles */
.page-payment-methods__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: var(--iwin88-primary);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  position: relative;
}

.page-payment-methods__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--iwin88-gold);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-payment-methods__text-block {
  font-size: 1.05em;
  color: var(--iwin88-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* Button Styles */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-payment-methods__btn-primary {
  background: var(--iwin88-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-payment-methods__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-payment-methods__btn-secondary {
  background: transparent;
  color: var(--iwin88-primary); /* Primary color text for secondary button */
  border: 2px solid var(--iwin88-primary);
  margin-left: 20px;
}

.page-payment-methods__btn-secondary:hover {
  background: var(--iwin88-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* Method Card Styles */
.page-payment-methods__method-card {
  background-color: var(--iwin88-card-bg); /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--iwin88-border);
  color: var(--iwin88-text-main); /* Light text on dark card */
}

.page-payment-methods__card-title {
  font-size: 1.7em;
  color: var(--iwin88-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-payment-methods__card-description {
  color: var(--iwin88-text-secondary);
  margin-bottom: 15px;
  text-align: justify;
}

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

.page-payment-methods__card-list li {
  color: var(--iwin88-text-secondary);
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  text-align: justify;
}

.page-payment-methods__card-list li strong {
  color: var(--iwin88-text-main);
}

.page-payment-methods__card-list li::before {
  content: '✓';
  color: var(--iwin88-glow);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-payment-methods__card-list ol {
  list-style: decimal;
  padding-left: 20px;
  margin-top: 10px;
  color: var(--iwin88-text-secondary);
}

.page-payment-methods__card-list ol li {
  padding-left: 0;
  margin-bottom: 5px;
}

.page-payment-methods__card-list ol li::before {
  content: none;
}

/* Security Section (Dark Background) */
.page-payment-methods__dark-section {
  background-color: var(--iwin88-deep-green); /* Deep Green background */
  padding: 60px 0;
  color: var(--iwin88-text-main); /* Light text */
}

.page-payment-methods__dark-section .page-payment-methods__section-title {
  color: var(--iwin88-gold); /* Gold title on dark section */
}

.page-payment-methods__dark-section .page-payment-methods__text-block {
  color: var(--iwin88-text-secondary);
}

.page-payment-methods__section-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 0 auto 30px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-payment-methods__security-list li {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for list items */
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--iwin88-divider);
  color: var(--iwin88-text-secondary);
  position: relative;
  padding-left: 45px;
  font-size: 1.0em;
  text-align: justify;
}

.page-payment-methods__security-list li strong {
  color: var(--iwin88-text-main);
  display: block;
  margin-bottom: 5px;
  font-size: 1.1em;
}

.page-payment-methods__security-list li::before {
  content: '🔒'; /* Lock emoji for security features */
  position: absolute;
  left: 15px;
  top: 20px;
  font-size: 1.2em;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: var(--iwin88-bg); /* Background color */
}

.page-payment-methods__faq-list {
  margin-top: 30px;
}

.page-payment-methods__faq-item {
  background-color: var(--iwin88-card-bg); /* Card BG color */
  border: 1px solid var(--iwin88-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--iwin88-text-main);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--iwin88-gold); /* Gold for FAQ questions */
  cursor: pointer;
  background-color: var(--iwin88-deep-green); /* Darker background for question */
  border-bottom: 1px solid var(--iwin88-divider);
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: var(--iwin88-primary);
  color: #ffffff;
}

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

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

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

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

/* Rotate toggle for open state (for JS-controlled div, or visual for details) */
.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle,
.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Plus becomes X */
}

.page-payment-methods__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.0em;
  color: var(--iwin88-text-secondary);
  text-align: justify;
}

/* CTA Section */
.page-payment-methods__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--iwin88-deep-green); /* Deep Green background */
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
  color: var(--iwin88-gold); /* Gold title */
  margin-bottom: 20px;
}

.page-payment-methods__cta-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 15px;
    line-height: 1.5;
  }

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

  /* Images, Videos, Buttons must be responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__hero-section {
    padding: 40px 15px 30px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

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

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

  .page-payment-methods__section-title {
    font-size: 1.6em;
    padding-top: 30px;
  }

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
    margin-left: 0;
    margin-bottom: 10px;
    width: 100% !important;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__security-list li,
  .page-payment-methods__faq-item,
  .page-payment-methods__cta-section,
  .page-payment-methods__overview-section,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__security-features,
  .page-payment-methods__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-payment-methods__security-list {
    grid-template-columns: 1fr; /* Single column for security list */
  }

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

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

  /* Ensure video wrapper is responsive if present */
  .page-payment-methods__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}