/* style/payment-methods.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --dark-bg-color: #1a1a2e; /* From shared.css body */
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-payment-methods {
  background-color: var(--dark-bg-color); /* Inherit from body for consistency */
  color: var(--light-text-color); /* Light text on dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* General padding for the bottom of the page content */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px; /* Adjusted padding to accommodate image */
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  text-align: center;
  overflow: hidden; /* Important for responsive image */
}

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

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

.page-payment-methods__hero-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--light-text-color);
}

/* CTA Buttons */
.page-payment-methods__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Responsive button text */
  word-wrap: break-word; /* Responsive button text */
}

.page-payment-methods__btn-primary {
  background: var(--primary-color);
  color: var(--dark-text-color); /* Dark text on gold button for contrast */
}

.page-payment-methods__btn-primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.page-payment-methods__btn-secondary {
  background: var(--secondary-color);
  color: var(--light-text-color); /* Light text on dark red button */
  border: 2px solid var(--primary-color); /* Gold border for accent */
}

.page-payment-methods__btn-secondary:hover {
  background: #7a0000; /* Slightly darker red */
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

/* General Section Styling */
.page-payment-methods__section {
  padding: 60px 0;
}

.page-payment-methods__section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Grid Layout for Cards */
.page-payment-methods__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__card {
  background: var(--card-bg-light); /* Light background for cards */
  color: var(--dark-text-color); /* Dark text on light card background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-payment-methods__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.page-payment-methods__card-title {
  font-size: 1.8rem;
  color: var(--secondary-color); /* Dark red for card titles */
  margin-bottom: 15px;
  width: 100%;
}

.page-payment-methods__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Responsive image */
  height: auto; /* Responsive image */
  display: block; /* Responsive image */
}

.page-payment-methods__card p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-payment-methods__card ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.page-payment-methods__card li {
  margin-bottom: 5px;
}

.page-payment-methods__note {
  font-style: italic;
  text-align: center;
  margin-top: 40px;
  font-size: 1rem;
  color: var(--light-text-color);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark Background Sections */
.page-payment-methods__dark-bg {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

/* Security Features Section */
.page-payment-methods__security-features .page-payment-methods__section-title,
.page-payment-methods__security-features .page-payment-methods__section-description {
  color: var(--light-text-color); /* Ensure text is light on dark background */
}

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

.page-payment-methods__feature-item {
  background: var(--card-bg-light); /* Light background for feature items */
  color: var(--dark-text-color); /* Dark text on light background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Responsive image */
  height: auto; /* Responsive image */
  display: block; /* Responsive image */
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__feature-title {
  font-size: 1.6rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  background-color: var(--dark-bg-color); /* Ensure dark background */
  color: var(--light-text-color);
}

.page-payment-methods__faq-section .page-payment-methods__section-title,
.page-payment-methods__faq-section .page-payment-methods__section-description {
  color: var(--light-text-color);
}

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

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-bg-light); /* Light background for answer */
  color: var(--dark-text-color); /* Dark text for answer */
  border-radius: 0 0 5px 5px;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-light); /* Light background for question */
  color: var(--dark-text-color); /* Dark text for question */
  border: 1px solid var(--border-color);
  border-radius: 5px;
  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:active {
  background: #eeeeee;
}

.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--dark-text-color); /* Ensure dark text */
}

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

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  color: var(--primary-color); /* Gold when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Bottom CTA Section */
.page-payment-methods__cta-bottom {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--dark-bg-color); /* Ensure dark background */
  color: var(--light-text-color);
}

.page-payment-methods__cta-bottom .page-payment-methods__section-title,
.page-payment-methods__cta-bottom .page-payment-methods__section-description {
  color: var(--light-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 2.8rem;
  }
  .page-payment-methods__section-title {
    font-size: 2.2rem;
  }
  .page-payment-methods__hero-description,
  .page-payment-methods__section-description {
    font-size: 1.05rem;
  }
  .page-payment-methods__card-title {
    font-size: 1.6rem;
  }
}

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

  /* Header offset for mobile */
  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 200px) !important; /* Mobile header offset */
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 30px;
  }

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

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

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px; /* Ensure buttons are within container */
    box-sizing: border-box;
  }

  .page-payment-methods__cta-button {
    width: 100% !important; /* Force full width on mobile */
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__section {
    padding: 40px 0;
  }

  .page-payment-methods__container {
    padding: 0 15px;
  }

  .page-payment-methods__section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-payment-methods__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-payment-methods__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-payment-methods__card-title {
    font-size: 1.4rem;
  }

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

  .page-payment-methods__note {
    font-size: 0.9rem;
    margin-top: 30px;
  }

  .page-payment-methods__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-payment-methods__feature-title {
    font-size: 1.3rem;
  }

  .page-payment-methods__faq-list {
    margin-top: 30px;
  }

  .page-payment-methods__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-payment-methods__faq-question h3 {
    font-size: 1rem;
    margin-bottom: 0;
    width: calc(100% - 40px); /* Adjust width for toggle button */
  }
  
  .page-payment-methods__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-payment-methods__faq-answer {
    padding: 0 15px;
  }
  
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px !important;
  }

  .page-payment-methods__cta-bottom {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  /* Global responsive image/video/container rules for mobile */
  .page-payment-methods img,
  .page-payment-methods video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-section,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__security-features,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Crucial for preventing horizontal scroll */
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove specific padding for sections that already have it */
  .page-payment-methods__hero-section,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__security-features,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-bottom {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
  /* Re-add padding to inner containers */
  .page-payment-methods__hero-section .page-payment-methods__container,
  .page-payment-methods__deposit-methods .page-payment-methods__container,
  .page-payment-methods__withdrawal-methods .page-payment-methods__container,
  .page-payment-methods__security-features .page-payment-methods__container,
  .page-payment-methods__faq-section .page-payment-methods__container,
  .page-payment-methods__cta-bottom .page-payment-methods__container {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }
}