/* style/payment-methods.css */

:root {
  --page-primary-color: #017439;
  --page-secondary-color: #FFFFFF;
  --page-dark-bg: #0a0a0a;
  --page-light-text: #ffffff;
  --page-dark-text: #333333;
  --page-register-btn-bg: #C30808;
  --page-login-btn-bg: #C30808;
  --page-button-text-color: #FFFF00;
}

.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-light-text); /* Default text color for dark body background */
  background-color: var(--page-dark-bg);
}

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

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-payment-methods__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 3;
  color: var(--page-light-text);
  max-width: 900px;
}

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--page-light-text);
}

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

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

.page-payment-methods__btn-register,
.page-payment-methods__btn-login,
.page-payment-methods__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-payment-methods__btn-register {
  background-color: var(--page-register-btn-bg);
  color: var(--page-button-text-color);
  border: 2px solid var(--page-register-btn-bg);
}

.page-payment-methods__btn-register:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-payment-methods__btn-login {
  background-color: var(--page-login-btn-bg);
  color: var(--page-button-text-color);
  border: 2px solid var(--page-login-btn-bg);
}

.page-payment-methods__btn-login:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

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

.page-payment-methods__btn-primary:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-payment-methods__introduction-section,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__security-section,
.page-payment-methods__cta-section {
  padding: 60px 0;
  background-color: var(--page-secondary-color);
  color: var(--page-dark-text); /* Dark text for light background */
}

.page-payment-methods__deposit-methods,
.page-payment-methods__guide-section,
.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: var(--page-dark-bg);
  color: var(--page-light-text); /* Light text for dark background */
}

.page-payment-methods__introduction-section .page-payment-methods__section-title,
.page-payment-methods__withdrawal-methods .page-payment-methods__section-title,
.page-payment-methods__security-section .page-payment-methods__section-title,
.page-payment-methods__cta-section .page-payment-methods__section-title {
  color: var(--page-dark-text);
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-light-text); /* Light text for dark background cards */
}

.page-payment-methods__introduction-section .page-payment-methods__card,
.page-payment-methods__withdrawal-methods .page-payment-methods__card,
.page-payment-methods__security-section .page-payment-methods__card {
  background: var(--page-secondary-color);
  color: var(--page-dark-text);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-payment-methods__card-text {
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-payment-methods__card-list {
  list-style: none;
  padding: 0;
  margin-top: auto; /* Push list to bottom */
  text-align: left;
  width: 100%;
}

.page-payment-methods__card-list li {
  margin-bottom: 5px;
  font-size: 0.95em;
}

.page-payment-methods__cta-block {
  text-align: center;
  margin-top: 50px;
}

.page-payment-methods__cta-text {
  font-size: 1.3em;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-payment-methods__guide-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-payment-methods__guide-heading {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--page-light-text);
}

.page-payment-methods__guide-list {
  list-style: decimal;
  padding-left: 25px;
  text-align: left;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-payment-methods__guide-list li {
  margin-bottom: 10px;
}

.page-payment-methods__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

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

.page-payment-methods__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-payment-methods__faq-question:hover {
  background-color: #005a2d;
}

.page-payment-methods__faq-heading {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-light-text);
  background: rgba(255, 255, 255, 0.03);
}

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

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

/* General image responsiveness */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 2.8em;
  }

  .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 {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }

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

  .page-payment-methods__hero-cta-buttons,
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__btn-register,
  .page-payment-methods__btn-login,
  .page-payment-methods__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

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

  .page-payment-methods__methods-grid,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
  }

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

  .page-payment-methods__card-image {
    height: 180px;
  }

  .page-payment-methods__guide-item {
    padding: 20px;
  }

  .page-payment-methods__guide-heading {
    font-size: 1.5em;
  }

  .page-payment-methods__guide-list {
    font-size: 1em;
  }

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

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

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

  /* Mobile image and container responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-section,
  .page-payment-methods__introduction-section,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__guide-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-payment-methods__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-payment-methods__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}