/* style/payment-methods.css */

/* Base styles for the payment methods page */
.page-payment-methods {
  background-color: #08160F; /* Deep Green from custom palette */
  color: #F2FFF6; /* Text Main from custom palette for 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;
}

.page-payment-methods__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #F2C14E; /* Gold from custom palette */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-payment-methods__subsection-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  color: #2AD16F; /* Lighter green for headings */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-payment-methods__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary from custom palette */
}

.page-payment-methods__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-payment-methods__list-item {
  margin-bottom: 10px;
  font-size: 18px;
}

/* Buttons */
.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: 18px;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main for button text */
  border: 2px solid transparent;
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-payment-methods__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Lighter green for secondary button text */
  border: 2px solid #2AD16F; /* Border color from custom palette */
}

.page-payment-methods__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
  border-color: #F2FFF6;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  background-color: #08160F;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-payment-methods__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-payment-methods__hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #F2C14E; /* Gold from custom palette */
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-payment-methods__hero-description {
  font-size: 20px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Section Styling */
.page-payment-methods__introduction-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-methods-section,
.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-payment-methods__dark-section {
  background-color: #11271B; /* Card BG from custom palette */
  padding: 60px 0;
}

/* Image and Text Grid Layout */
.page-payment-methods__image-and-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-payment-methods__image-and-text-grid--reverse {
  grid-template-columns: 1fr;
}

.page-payment-methods__image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-payment-methods__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-payment-methods__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border from custom palette */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  list-style: none; /* Remove default marker for details summary */
}

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

.page-payment-methods__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow from custom palette */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 17px;
  color: #A7D9B8; /* Text Secondary */
}

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

/* CTA Section */
.page-payment-methods__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-payment-methods__cta-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.page-payment-methods__cta-content {
  padding: 0 20px;
}

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

.page-payment-methods__cta-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-payment-methods__image-and-text-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-payment-methods__image-and-text-grid--reverse {
    grid-template-columns: 1fr 1fr;
  }
  
  .page-payment-methods__image-and-text-grid--reverse .page-payment-methods__image-wrapper {
    order: 2;
  }

  .page-payment-methods__image-and-text-grid--reverse .page-payment-methods__text-content {
    order: 1;
  }

  .page-payment-methods__cta-container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .page-payment-methods__cta-content {
    padding: 0;
  }

  .page-payment-methods__cta-buttons {
    justify-content: flex-start;
  }

  .page-payment-methods__hero-image-wrapper {
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container,
  .page-payment-methods__hero-content,
  .page-payment-methods__introduction-section .page-payment-methods__container,
  .page-payment-methods__deposit-methods-section .page-payment-methods__container,
  .page-payment-methods__withdrawal-methods-section .page-payment-methods__container,
  .page-payment-methods__security-section .page-payment-methods__container,
  .page-payment-methods__faq-section .page-payment-methods__container,
  .page-payment-methods__cta-section .page-payment-methods__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-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 !important;
  }

  /* Image containers responsive */
  .page-payment-methods__image-wrapper,
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__hero-cta-buttons,
  .page-payment-methods__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-payment-methods__section-title {
    margin-bottom: 30px;
  }

  .page-payment-methods__hero-title {
    font-size: 32px;
  }

  .page-payment-methods__hero-description {
    font-size: 18px;
  }

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

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

  .page-payment-methods__text-block,
  .page-payment-methods__list-item {
    font-size: 16px;
  }
}