/* style/payment-methods.css */

/* Root variables for colors and spacing */
:root {
  --jl3-primary-color: #F2C14E;
  --jl3-secondary-color: #FFD36B;
  --jl3-card-bg: #111111;
  --jl3-background-dark: #0A0A0A;
  --jl3-text-light: #FFF6D6;
  --jl3-border-color: #3A2A12;
  --jl3-glow-color: #FFD36B;
  --jl3-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the payment methods page */
.page-payment-methods {
  color: var(--jl3-text-light); /* Default text color for dark sections */
  background-color: var(--jl3-background-dark); /* Overall page background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Sections with dark background and light text */
.page-payment-methods__dark-section {
  background-color: var(--jl3-background-dark);
  color: var(--jl3-text-light);
  padding: 60px 0;
}

/* Sections with light background and dark text (for contrast) */
.page-payment-methods__light-text-area {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 0 60px; /* Small top padding, more at bottom */
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-payment-methods__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 1;
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--jl3-text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-payment-methods__hero-description {
  font-size: 1.2rem;
  color: var(--jl3-text-light);
  margin-bottom: 30px;
}

/* General container for content */
.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-payment-methods__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-payment-methods__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
  text-align: center;
}

.page-payment-methods__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background: var(--jl3-button-gradient);
  color: var(--jl3-text-light);
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: var(--jl3-primary-color);
  border: 2px solid var(--jl3-primary-color);
  margin-left: 20px;
}

.page-payment-methods__btn-secondary:hover {
  background-color: var(--jl3-primary-color);
  color: var(--jl3-background-dark);
}

.page-payment-methods__cta-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Feature Grid (Introduction Section) */
.page-payment-methods__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__feature-card,
.page-payment-methods__method-card {
  background-color: var(--jl3-card-bg);
  color: var(--jl3-text-light);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--jl3-border-color);
}

.page-payment-methods__feature-icon,
.page-payment-methods__method-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Adjusted for larger display */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__feature-title,
.page-payment-methods__method-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--jl3-primary-color);
}

.page-payment-methods__feature-description,
.page-payment-methods__method-description {
  font-size: 1rem;
  color: var(--jl3-text-light);
}

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

.page-payment-methods__method-card .page-payment-methods__btn-secondary {
  margin-top: 20px;
  margin-left: 0;
  width: fit-content;
  margin-right: auto;
  margin-left: auto; /* Center button in card */
}

/* Lists */
.page-payment-methods__step-list,
.page-payment-methods__info-list,
.page-payment-methods__tips-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
}

.page-payment-methods__step-list li,
.page-payment-methods__info-list li,
.page-payment-methods__tips-list li {
  background-color: var(--jl3-card-bg);
  color: var(--jl3-text-light);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid var(--jl3-primary-color);
  font-size: 1.05rem;
  line-height: 1.5;
}

.page-payment-methods__step-list strong {
  color: var(--jl3-primary-color);
}

.page-payment-methods__link {
  color: var(--jl3-primary-color);
  text-decoration: none;
}

.page-payment-methods__link:hover {
  text-decoration: underline;
}

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

.page-payment-methods__security-item {
  text-align: center;
  padding: 30px;
  background-color: var(--jl3-card-bg);
  border-radius: 12px;
  border: 1px solid var(--jl3-border-color);
}

.page-payment-methods__security-icon {
  width: 100%;
  max-width: 200px; /* Icon-like but still large */
  height: auto;
  margin-bottom: 20px;
}

.page-payment-methods__security-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--jl3-primary-color);
}

.page-payment-methods__security-description {
  font-size: 1rem;
  color: var(--jl3-text-light);
}

/* FAQ Section */
.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-payment-methods__faq-item {
  background-color: var(--jl3-card-bg);
  color: var(--jl3-text-light);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--jl3-border-color);
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--jl3-primary-color);
  transition: background-color 0.3s ease;
}

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

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--jl3-text-light);
}

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

.page-payment-methods__faq-answer p {
  margin-bottom: 0;
  text-align: left;
}

/* Conclusion Section */
.page-payment-methods__conclusion-section .page-payment-methods__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-payment-methods__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-payment-methods__hero-image-wrapper {
    max-height: 400px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-payment-methods__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-payment-methods__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-payment-methods__sub-title {
    font-size: 1.5rem;
  }

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

  /* General content area padding for mobile */
  .page-payment-methods__container,
  .page-payment-methods__hero-content {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    box-sizing: border-box;
  }
  
  .page-payment-methods__feature-icon, 
  .page-payment-methods__method-icon, 
  .page-payment-methods__security-icon {
    max-width: 100% !important;
    width: 100% !important; /* Ensure they fill their container */
  }

  /* 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;
    padding: 12px 15px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-payment-methods__cta-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__feature-grid,
  .page-payment-methods__method-grid,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__step-list li,
  .page-payment-methods__info-list li,
  .page-payment-methods__tips-list li,
  .page-payment-methods__faq-item {
    padding: 15px;
  }

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

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

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

  .page-payment-methods__faq-answer p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-payment-methods__section-title {
    font-size: 1.6rem;
  }
  .page-payment-methods__hero-description {
    font-size: 0.95rem;
  }
  .page-payment-methods__paragraph {
    font-size: 0.9rem;
  }
}

/* Ensure color contrast for light text on dark background */
.page-payment-methods__dark-section h1,
.page-payment-methods__dark-section h2,
.page-payment-methods__dark-section h3,
.page-payment-methods__dark-section p,
.page-payment-methods__dark-section li,
.page-payment-methods__dark-section a {
  color: var(--jl3-text-light);
}

.page-payment-methods__dark-section .page-payment-methods__btn-primary {
  background: var(--jl3-button-gradient);
  color: var(--jl3-text-light);
}

.page-payment-methods__dark-section .page-payment-methods__btn-secondary {
  background-color: transparent;
  color: var(--jl3-primary-color);
  border: 2px solid var(--jl3-primary-color);
}

/* Ensure color contrast for dark text on light background */
.page-payment-methods__light-text-area h1,
.page-payment-methods__light-text-area h2,
.page-payment-methods__light-text-area h3,
.page-payment-methods__light-text-area p,
.page-payment-methods__light-text-area li,
.page-payment-methods__light-text-area a {
  color: #333333; /* Dark text */
}

.page-payment-methods__light-text-area .page-payment-methods__btn-primary {
  background: var(--jl3-button-gradient);
  color: var(--jl3-text-light);
}

.page-payment-methods__light-text-area .page-payment-methods__btn-secondary {
  background-color: transparent;
  color: var(--jl3-primary-color);
  border: 2px solid var(--jl3-primary-color);
}

/* Specific overrides for card titles */
.page-payment-methods__feature-title,
.page-payment-methods__method-title,
.page-payment-methods__security-title,
.page-payment-methods__faq-question {
  color: var(--jl3-primary-color); /* Use primary color for titles on dark cards */
}

.page-payment-methods__feature-card .page-payment-methods__feature-description,
.page-payment-methods__method-card .page-payment-methods__method-description,
.page-payment-methods__security-item .page-payment-methods__security-description {
  color: var(--jl3-text-light);
}

.page-payment-methods__faq-item .page-payment-methods__faq-answer p {
  color: var(--jl3-text-light);
}