/* style/payment-methods.css */

/* Base styles and variables */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0d0d0d; /* Assuming shared.css sets a dark body background, adjusting text colors */
  --button-register: #C30808;
  --button-login: #C30808;
  --font-register-login: #FFFF00;
}

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

/* General Section Styling */
.page-payment-methods__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-payment-methods__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

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

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

.page-payment-methods__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* Hero Section */
.page-payment-methods__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  min-height: 600px;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.page-payment-methods__hero-content {
  flex: 1;
  max-width: 50%;
  padding-left: 40px;
  z-index: 1;
}

.page-payment-methods__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--font-register-login); /* Using yellow for emphasis */
  line-height: 1.2;
}

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

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

.page-payment-methods__hero-image-wrapper {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-payment-methods__btn-secondary:hover {
  background-color: var(--font-register-login);
  color: var(--button-login);
}

.page-payment-methods__center-buttons {
  text-align: center;
  margin-top: 40px;
}

.page-payment-methods__center-buttons .page-payment-methods__btn-primary,
.page-payment-methods__center-buttons .page-payment-methods__btn-secondary {
  margin: 0 10px;
}

/* Why Choose Section */
.page-payment-methods__why-choose-section .page-payment-methods__section-title,
.page-payment-methods__why-choose-section .page-payment-methods__section-intro {
  color: var(--text-dark);
}

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

.page-payment-methods__feature-item {
  text-align: center;
  padding: 30px;
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

.page-payment-methods__feature-icon {
  width: 100%;
  max-width: 250px; /* Ensure minimum 200px, but allow flexibility */
  height: auto;
  margin-bottom: 20px;
}

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

.page-payment-methods__feature-description {
  font-size: 1em;
  color: var(--text-dark);
}

/* Available Methods Section */
.page-payment-methods__available-methods-section .page-payment-methods__section-title,
.page-payment-methods__available-methods-section .page-payment-methods__section-intro {
  color: var(--text-light);
}

.page-payment-methods__method-cards-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: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--text-dark);
  padding-bottom: 30px;
}

.page-payment-methods__method-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-payment-methods__method-description {
  font-size: 1em;
  color: var(--text-dark);
  padding: 0 20px;
}

/* How-to Sections */
.page-payment-methods__how-to-deposit-section .page-payment-methods__section-title,
.page-payment-methods__how-to-deposit-section .page-payment-methods__section-intro {
  color: var(--text-dark);
}

.page-payment-methods__how-to-withdraw-section .page-payment-methods__section-title,
.page-payment-methods__how-to-withdraw-section .page-payment-methods__section-intro {
  color: var(--text-light);
}

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

.page-payment-methods__step-item {
  background-color: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--text-dark);
  padding-bottom: 30px;
}

.page-payment-methods__step-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-payment-methods__step-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--primary-color);
  padding: 0 20px;
}

.page-payment-methods__step-description {
  font-size: 1em;
  color: var(--text-dark);
  padding: 0 20px;
}

/* Security Section */
.page-payment-methods__security-section .page-payment-methods__section-title,
.page-payment-methods__security-section .page-payment-methods__section-intro {
  color: var(--text-dark);
}

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

.page-payment-methods__security-item {
  text-align: center;
  padding: 30px;
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

.page-payment-methods__security-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.page-payment-methods__security-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-payment-methods__security-description {
  font-size: 1em;
  color: var(--text-dark);
}

/* Video Section */
.page-payment-methods__video-section .page-payment-methods__section-title,
.page-payment-methods__video-section .page-payment-methods__section-intro {
  color: var(--text-light);
}

.page-payment-methods__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 40px;
  border-radius: 12px;
}

.page-payment-methods__video-wrapper .page-payment-methods__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-payment-methods__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

/* FAQ Section */
.page-payment-methods__faq-section .page-payment-methods__section-title {
  color: var(--text-dark);
}

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

.page-payment-methods__faq-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  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: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
}

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

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

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

.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(--text-dark);
}

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

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

.page-payment-methods__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: var(--text-dark);
}

/* CTA Bottom Section */
.page-payment-methods__cta-bottom-section .page-payment-methods__section-title,
.page-payment-methods__cta-bottom-section .page-payment-methods__section-intro {
  color: var(--text-light);
}

.page-payment-methods__text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px);
    min-height: auto;
  }

  .page-payment-methods__hero-content,
  .page-payment-methods__hero-image-wrapper {
    max-width: 100%;
    padding: 0 20px;
  }

  .page-payment-methods__hero-image-wrapper {
    margin-top: 30px;
  }

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

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

  .page-payment-methods__hero-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__section-title {
    font-size: 2em;
  }

  .page-payment-methods__section-intro {
    font-size: 1em;
    margin: 0 auto 30px;
  }

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

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

  .page-payment-methods__hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .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__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-payment-methods__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Image and Video Responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__video-section,
  .page-payment-methods__video-container,
  .page-payment-methods__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-payment-methods__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-payment-methods__method-image,
  .page-payment-methods__step-image {
    height: auto; /* Allow auto height for better mobile scaling */
  }

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