/* style/payment-methods.css */

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

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

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background-color: var(--primary-color);
  overflow: hidden;
  min-height: 600px;
}

.page-payment-methods__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-payment-methods__main-title {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

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

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

.page-payment-methods__introduction, 
.page-payment-methods__withdrawal-section, 
.page-payment-methods__faq-section, 
.page-payment-methods__footer-note {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-payment-methods__deposit-section, 
.page-payment-methods__security-section, 
.page-payment-methods__cta-bottom {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

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

.page-payment-methods__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
  color: inherit;
}

.page-payment-methods__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.page-payment-methods__feature-item {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__feature-heading {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

.page-payment-methods__method-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding-bottom: 30px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-payment-methods__method-card.page-payment-methods__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-payment-methods__method-card.page-payment-methods__dark-bg .page-payment-methods__method-title {
  color: var(--secondary-color);
}

.page-payment-methods__method-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__method-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
  padding: 0 20px;
}

.page-payment-methods__method-card.page-payment-methods__dark-bg .page-payment-methods__method-title {
  color: var(--secondary-color);
}

.page-payment-methods__method-card p {
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-payment-methods__method-details {
  list-style: none;
  padding: 0 20px;
  margin-bottom: 25px;
  text-align: left;
}

.page-payment-methods__method-details li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.page-payment-methods__cta-block {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.page-payment-methods__cta-text {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: var(--text-light);
}

.page-payment-methods__security-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-payment-methods__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: var(--text-light);
}

.page-payment-methods__security-heading {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-payment-methods__security-item p {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-payment-methods__link-more {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-payment-methods__link-more:hover {
  color: var(--button-font-color);
}

.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.95);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid #eee;
}

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

.page-payment-methods__faq-heading {
  margin: 0;
  color: var(--text-dark);
}

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

.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;
}

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

.page-payment-methods__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-payment-methods__cta-bottom {
  text-align: center;
  padding: 80px 0;
}

.page-payment-methods__cta-bottom .page-payment-methods__section-title {
  color: var(--secondary-color);
}

.page-payment-methods__cta-bottom .page-payment-methods__text-block {
  color: var(--text-light);
}

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

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

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

.page-payment-methods__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: var(--secondary-color);
}

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

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

.page-payment-methods__footer-note {
  padding: 30px 0;
  text-align: center;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-top: 1px solid #eee;
}

.page-payment-methods__copyright {
  font-size: 0.9em;
  margin: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 2.8em;
  }

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

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

  .page-payment-methods__feature-item,
  .page-payment-methods__method-card,
  .page-payment-methods__security-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }

  .page-payment-methods__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

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

  .page-payment-methods__text-block {
    font-size: 1em;
    margin-bottom: 40px;
  }

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

  .page-payment-methods__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-payment-methods__feature-icon,
  .page-payment-methods__method-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

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

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

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

  /* Ensure all containers with images/videos/buttons handle overflow */
  .page-payment-methods__hero-section,
  .page-payment-methods__introduction,
  .page-payment-methods__deposit-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-bottom,
  .page-payment-methods__footer-note,
  .page-payment-methods__method-card,
  .page-payment-methods__feature-item,
  .page-payment-methods__security-item {
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 1.8em;
  }

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

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

  .page-payment-methods__method-title,
  .page-payment-methods__feature-heading,
  .page-payment-methods__security-heading {
    font-size: 1.4em;
  }
}