/* style/payment-methods.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Dodger Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #000000; /* Body background from shared.css */
  --bg-light: #f8f8f8;
  --border-color: #e0e0e0;
}

/* --- Base Styles for Page-specific Content --- */
.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency with body background */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-payment-methods__hero-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(30, 144, 255, 0.2) 100%);
}

.page-payment-methods__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__subtitle {
  font-size: 1.3em;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-payment-methods__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

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

.page-payment-methods__overview-section,
.page-payment-methods__security-section,
.page-payment-methods__contact-cta {
  padding: 60px 0;
}

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

.page-payment-methods__withdrawal-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light); /* Dark background, light text */
}

.page-payment-methods__sub-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-payment-methods__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-payment-methods__card-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%; /* Ensure image takes full width of card */
}

.page-payment-methods__card-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-payment-methods__card-text {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-payment-methods__list,
.page-payment-methods__ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-payment-methods__withdrawal-section .page-payment-methods__list,
.page-payment-methods__withdrawal-section .page-payment-methods__ordered-list {
  color: var(--text-light);
}

.page-payment-methods__list li,
.page-payment-methods__ordered-list li {
  margin-bottom: 8px;
  font-size: 1em;
}

.page-payment-methods__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-payment-methods__text-content {
  flex: 1;
}

.page-payment-methods__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-payment-methods__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-payment-methods__security-text {
  flex: 2;
}

.page-payment-methods__security-image {
  flex: 1;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- CTA Buttons --- */
.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  margin: 10px;
}

.page-payment-methods__btn-primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-payment-methods__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-payment-methods__btn-secondary:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__button-group {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* --- FAQ Section --- */
.page-payment-methods__faq-list {
  margin-top: 40px;
}

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: var(--text-dark);
  background: #f9f9f9;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 2.8em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__card-title {
    font-size: 1.4em;
  }
  .page-payment-methods__content-wrapper,
  .page-payment-methods__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-payment-methods__image-wrapper,
  .page-payment-methods__security-image {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
  }
  .page-payment-methods__container {
    padding: 0 15px;
  }
  .page-payment-methods__hero-section {
    padding: 60px 15px;
  }
  .page-payment-methods__main-title {
    font-size: 2em;
  }
  .page-payment-methods__subtitle {
    font-size: 1em;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-payment-methods__sub-title {
    font-size: 1.5em;
  }
  .page-payment-methods__text-block {
    font-size: 1em;
  }
  .page-payment-methods__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__card {
    padding: 20px;
  }
  .page-payment-methods__card-image {
    height: 200px; /* Smaller fixed height for mobile cards */
  }
  .page-payment-methods__card-title {
    font-size: 1.2em;
  }
  .page-payment-methods__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
    margin: 5px 0;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-payment-methods__button-group {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-payment-methods__faq-question {
    padding: 15px;
  }
  .page-payment-methods__faq-question h3 {
    font-size: 1em;
  }
  .page-payment-methods__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific overrides for sections that need full width without padding */
  .page-payment-methods__hero-section,
  .page-payment-methods__overview-section,
  .page-payment-methods__deposit-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__contact-cta {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-payment-methods__hero-section .page-payment-methods__container,
  .page-payment-methods__overview-section .page-payment-methods__container,
  .page-payment-methods__deposit-section .page-payment-methods__container,
  .page-payment-methods__withdrawal-section .page-payment-methods__container,
  .page-payment-methods__security-section .page-payment-methods__container,
  .page-payment-methods__faq-section .page-payment-methods__container,
  .page-payment-methods__contact-cta .page-payment-methods__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}