/* style/payment-methods-deposit-withdrawal.css */

:root {
  --page-primary-color: #26A9E0;
  --page-secondary-color: #FFFFFF;
  --page-login-color: #EA7C07;
  --page-background-color: #FFFFFF; /* This will be overridden by shared.css body background */
  --page-text-color-dark: #333333;
  --page-text-color-light: #ffffff;
}

.page-payment-methods-deposit-withdrawal {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-color-light); /* Default to light text for dark body background */
  background-color: transparent; /* Main content will inherit body background */
}

.page-payment-methods-deposit-withdrawal__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-payment-methods-deposit-withdrawal__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  text-align: center;
  background-color: var(--page-primary-color); /* Using brand color for hero background */
  color: var(--page-text-color-light);
}

.page-payment-methods-deposit-withdrawal__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--page-text-color-light);
  line-height: 1.2;
}

.page-payment-methods-deposit-withdrawal__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods-deposit-withdrawal__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-payment-methods-deposit-withdrawal__btn-primary,
.page-payment-methods-deposit-withdrawal__btn-secondary,
.page-payment-methods-deposit-withdrawal__btn-inline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-payment-methods-deposit-withdrawal__btn-primary {
  background-color: var(--page-login-color); /* Using Login color for primary action */
  color: var(--page-text-color-light);
  border: 2px solid var(--page-login-color);
}

.page-payment-methods-deposit-withdrawal__btn-primary:hover {
  background-color: darken(var(--page-login-color), 10%);
  border-color: darken(var(--page-login-color), 10%);
}

.page-payment-methods-deposit-withdrawal__btn-secondary {
  background-color: transparent;
  color: var(--page-text-color-light);
  border: 2px solid var(--page-text-color-light);
}

.page-payment-methods-deposit-withdrawal__btn-secondary:hover {
  background-color: var(--page-text-color-light);
  color: var(--page-primary-color);
}

.page-payment-methods-deposit-withdrawal__btn-inline {
  background-color: var(--page-primary-color);
  color: var(--page-text-color-light);
  border: 1px solid var(--page-primary-color);
  padding: 8px 15px;
  font-size: 0.9em;
  margin-left: 10px;
}

.page-payment-methods-deposit-withdrawal__btn-inline:hover {
  background-color: darken(var(--page-primary-color), 10%);
  border-color: darken(var(--page-primary-color), 10%);
}

.page-payment-methods-deposit-withdrawal__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-payment-methods-deposit-withdrawal__sub-title {
  font-size: 1.6em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--page-primary-color);
}

.page-payment-methods-deposit-withdrawal__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-payment-methods-deposit-withdrawal__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-payment-methods-deposit-withdrawal__numbered-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-payment-methods-deposit-withdrawal__list-item {
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
}

.page-payment-methods-deposit-withdrawal__list-item strong {
  color: var(--page-primary-color);
}

.page-payment-methods-deposit-withdrawal__image {
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto; /* Ensure aspect ratio is maintained */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Section specific styles */
.page-payment-methods-deposit-withdrawal__overview-section,
.page-payment-methods-deposit-withdrawal__deposit-guide-section,
.page-payment-methods-deposit-withdrawal__withdrawal-guide-section,
.page-payment-methods-deposit-withdrawal__faq-section,
.page-payment-methods-deposit-withdrawal__support-section,
.page-payment-methods-deposit-withdrawal__conclusion-section {
  padding: 60px 0;
}

.page-payment-methods-deposit-withdrawal__dark-bg {
  background-color: #1a1a1a; /* Darker background to contrast with body black */
  color: var(--page-text-color-light);
}

.page-payment-methods-deposit-withdrawal__dark-bg .page-payment-methods-deposit-withdrawal__section-title,
.page-payment-methods-deposit-withdrawal__dark-bg .page-payment-methods-deposit-withdrawal__sub-title {
  color: var(--page-text-color-light);
}

.page-payment-methods-deposit-withdrawal__light-bg {
  background-color: var(--page-secondary-color); /* White background */
  color: var(--page-text-color-dark);
}

.page-payment-methods-deposit-withdrawal__light-bg .page-payment-methods-deposit-withdrawal__section-title,
.page-payment-methods-deposit-withdrawal__light-bg .page-payment-methods-deposit-withdrawal__sub-title {
  color: var(--page-primary-color);
}

.page-payment-methods-deposit-withdrawal__light-bg .page-payment-methods-deposit-withdrawal__list-item strong {
  color: var(--page-primary-color);
}

/* FAQ Styles */
.page-payment-methods-deposit-withdrawal__faq-list {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods-deposit-withdrawal__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-payment-methods-deposit-withdrawal__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-text-color-light);
  transition: color 0.3s ease;
}

.page-payment-methods-deposit-withdrawal__faq-question:hover {
  color: var(--page-primary-color);
}

.page-payment-methods-deposit-withdrawal__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-payment-methods-deposit-withdrawal__faq-item.active .page-payment-methods-deposit-withdrawal__faq-toggle {
  transform: rotate(45deg);
}

.page-payment-methods-deposit-withdrawal__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-payment-methods-deposit-withdrawal__faq-answer p {
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-payment-methods-deposit-withdrawal__hero-title {
    font-size: 2.5em;
  }

  .page-payment-methods-deposit-withdrawal__section-title {
    font-size: 2em;
  }

  .page-payment-methods-deposit-withdrawal__sub-title {
    font-size: 1.4em;
  }
}

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

  .page-payment-methods-deposit-withdrawal__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-payment-methods-deposit-withdrawal__hero-title {
    font-size: 2em;
  }

  .page-payment-methods-deposit-withdrawal__hero-description {
    font-size: 1em;
  }

  .page-payment-methods-deposit-withdrawal__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-payment-methods-deposit-withdrawal__btn-primary,
  .page-payment-methods-deposit-withdrawal__btn-secondary,
  .page-payment-methods-deposit-withdrawal__btn-inline {
    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-deposit-withdrawal__container {
    padding: 0 15px;
  }

  .page-payment-methods-deposit-withdrawal__section-title {
    font-size: 1.8em;
  }

  .page-payment-methods-deposit-withdrawal__sub-title {
    font-size: 1.3em;
  }

  .page-payment-methods-deposit-withdrawal__text-block {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-payment-methods-deposit-withdrawal img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset; /* Allow smaller display sizes on mobile if needed */
    min-height: unset;
  }

  .page-payment-methods-deposit-withdrawal__overview-section,
  .page-payment-methods-deposit-withdrawal__deposit-guide-section,
  .page-payment-methods-deposit-withdrawal__withdrawal-guide-section,
  .page-payment-methods-deposit-withdrawal__faq-section,
  .page-payment-methods-deposit-withdrawal__support-section,
  .page-payment-methods-deposit-withdrawal__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Specific adjustments for FAQ on mobile if needed */
  .page-payment-methods-deposit-withdrawal__faq-question {
    font-size: 1em;
  }
}

/* Color contrast safety */
.page-payment-methods-deposit-withdrawal p,
.page-payment-methods-deposit-withdrawal li,
.page-payment-methods-deposit-withdrawal__faq-answer p {
  color: inherit; /* Inherit from parent section */
}

/* Ensure light text on dark backgrounds */
.page-payment-methods-deposit-withdrawal__dark-bg p,
.page-payment-methods-deposit-withdrawal__dark-bg li {
  color: var(--page-text-color-light);
}

/* Ensure dark text on light backgrounds */
.page-payment-methods-deposit-withdrawal__light-bg p,
.page-payment-methods-deposit-withdrawal__light-bg li {
  color: var(--page-text-color-dark);
}

.page-payment-methods-deposit-withdrawal__light-bg .page-payment-methods-deposit-withdrawal__btn-secondary {
  background-color: transparent;
  color: var(--page-primary-color);
  border: 2px solid var(--page-primary-color);
}

.page-payment-methods-deposit-withdrawal__light-bg .page-payment-methods-deposit-withdrawal__btn-secondary:hover {
  background-color: var(--page-primary-color);
  color: var(--page-text-color-light);
}