/* style/payment-methods.css */

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

/* Base styles for the payment methods page */
.page-payment-methods {
  background-color: var(--page-payment-methods-background); /* Dark background from custom palette */
  color: var(--page-payment-methods-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Section styling */
.page-payment-methods__hero-section,
.page-payment-methods__introduction-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.page-payment-methods__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for better text contrast */
}

.page-payment-methods__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  color: var(--page-payment-methods-text-main);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--page-payment-methods-text-main);
}

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

.page-payment-methods__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--page-payment-methods-text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-payment-methods__dark-bg {
  background-color: var(--page-payment-methods-background);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__light-bg {
  background-color: var(--page-payment-methods-text-main);
  color: #333333; /* Ensuring dark text on light background */
}

.page-payment-methods__dark-section {
  background-color: var(--page-payment-methods-card-bg);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__card-bg {
  background-color: var(--page-payment-methods-card-bg);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__card-bg-light {
  background-color: var(--page-payment-methods-text-main);
  color: #333333; /* Ensuring dark text on light background */
}

.page-payment-methods__text-main {
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__text-secondary {
  color: var(--page-payment-methods-text-secondary);
}

/* Buttons */
.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-payment-methods__btn-primary {
  background: var(--page-payment-methods-btn-gradient);
  color: var(--page-payment-methods-text-main);
  border: none;
}

.page-payment-methods__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-payment-methods__btn-secondary:hover {
  background-color: var(--page-payment-methods-primary-color);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-payment-methods__card {
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-payment-methods__card-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-payment-methods__card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
}

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

.page-payment-methods__card-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.page-payment-methods__feature-icon {
  color: var(--page-payment-methods-secondary-color);
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 10px;
}

/* Withdrawal Steps */
.page-payment-methods__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-payment-methods__step-card {
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--page-payment-methods-text-main);
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-payment-methods__step-icon {
  background-color: var(--page-payment-methods-primary-color);
  color: var(--page-payment-methods-text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-payment-methods__step-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__step-description {
  font-size: 0.95em;
  color: #555555;
}

.page-payment-methods__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 40px auto 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-payment-methods__faq-item {
  background-color: var(--page-payment-methods-text-main);
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-payment-methods__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  background-color: #f5f5f5;
  font-weight: bold;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-item summary:hover {
  background-color: #e0e0e0;
}

.page-payment-methods__faq-qtext {
  color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  color: var(--page-payment-methods-primary-color);
  transition: transform 0.3s ease;
}

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

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 0.95em;
  color: #555555;
  border-top: 1px solid #eee;
}

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

/* CTA Section */
.page-payment-methods__cta-content {
  max-width: 800px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-payment-methods__hero-content {
    max-width: 90%;
  }
  .page-payment-methods__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-payment-methods__hero-section,
  .page-payment-methods__introduction-section,
  .page-payment-methods__deposit-methods-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    padding: 40px 0;
  }

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

  .page-payment-methods__hero-content {
    padding: 15px;
    max-width: 95%;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

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

  /* Image responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsive */
  .page-payment-methods__container,
  .page-payment-methods__method-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__faq-list,
  .page-payment-methods__button-group {
    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__cta-button,
  .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 20px !important;
    margin-left: 0 !important; /* Remove margin for single column */
  }

  .page-payment-methods__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__card {
    padding: 20px;
  }

  .page-payment-methods__step-card {
    padding: 20px;
  }

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

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

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-payment-methods__section-title {
    font-size: 1.5em;
  }
  .page-payment-methods__hero-description {
    font-size: 0.9em;
  }
  .page-payment-methods__card-title {
    font-size: 1.4em;
  }
  .page-payment-methods__step-title {
    font-size: 1.3em;
  }
}