/* style/payment-methods.css */
.page-payment-methods {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Main text color based on dark background */
  background-color: #0A0A0A; /* Page background */
}

/* Fixed Header Spacing */
.page-payment-methods__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default, adjusted by shared.css media query */
  position: relative;
  overflow: hidden;
}

.page-payment-methods__hero-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px; /* Space below image */
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-payment-methods__hero-text-content {
  text-align: center;
  padding: 20px 15px;
  max-width: 900px;
  margin-top: 20px;
  background: rgba(17, 17, 17, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: #FFD36B; /* Auxiliary color for titles */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-payment-methods__section {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-payment-methods__section:last-of-type {
  border-bottom: none;
}

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

.page-payment-methods__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2C14E; /* Primary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  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: linear-gradient(90deg, transparent, #FFD36B, transparent); /* Glow effect */
  border-radius: 2px;
}

.page-payment-methods__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-payment-methods__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  color: #FFF6D6; /* Main text color */
}

.page-payment-methods__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: #FFD36B; /* Auxiliary color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__list {
  list-style: disc inside;
  padding-left: 20px;
  color: #FFF6D6;
  line-height: 1.7;
}

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

.page-payment-methods__list li strong {
  color: #F2C14E;
}

.page-payment-methods__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
  color: #111111; /* Dark text for light button background */
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-payment-methods__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(242, 193, 78, 0.6);
}

.page-payment-methods__btn-secondary {
  background: #111111; /* Card BG color */
  color: #F2C14E; /* Primary color for text */
  border: 2px solid #F2C14E; /* Primary color for border */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(242, 193, 78, 0.6);
}

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

.page-payment-methods__card {
  background: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Text Main color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-payment-methods__method-icon {
  width: 100%; /* Take full width of card */
  height: auto;
  max-height: 200px; /* Limit height to maintain aspect ratio, adjust as needed */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-payment-methods__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Primary color for card titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color */
}

.page-payment-methods__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-payment-methods__faq-item {
  background: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #FFF6D6;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: rgba(242, 193, 78, 0.05); /* Light primary tint */
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question {
  border-bottom-color: #3A2A12;
}

.page-payment-methods__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #F2C14E; /* Primary color for FAQ questions */
  font-weight: 600;
}

.page-payment-methods__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color for toggle */
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Plus to Minus */
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Adjust padding to match question */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.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;
  line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-payment-methods__content-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
  .page-payment-methods__security-section .page-payment-methods__content-wrapper .page-payment-methods__content-image,
  .page-payment-methods__conclusion-section .page-payment-methods__content-wrapper .page-payment-methods__content-image {
    max-width: 50%;
    flex-shrink: 0;
    margin-right: 30px;
    margin-bottom: 0;
  }
  .page-payment-methods__security-section .page-payment-methods__content-wrapper:nth-of-type(odd) .page-payment-methods__content-image,
  .page-payment-methods__conclusion-section .page-payment-methods__content-wrapper:nth-of-type(odd) .page-payment-methods__content-image {
    order: 2; /* Image on right for odd sections */
    margin-left: 30px;
    margin-right: 0;
  }
}


@media (max-width: 768px) {
  /* Ensure padding-top for hero section on mobile */
  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media query for --header-offset */
  }

  .page-payment-methods__hero-image {
    max-height: 300px;
  }

  .page-payment-methods__hero-text-content {
    margin-top: 10px;
    padding: 15px 10px;
  }

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

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

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

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

  .page-payment-methods__sub-title {
    font-size: 1.2em;
    margin-top: 25px;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add horizontal padding to buttons container */
  }

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

  .page-payment-methods__method-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
  }

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

  .page-payment-methods__method-icon {
    max-height: 150px; /* Smaller max height for icons on mobile */
    min-width: 200px !important; /* Enforce min image size */
    min-height: 200px !important; /* Enforce min image size */
  }

  .page-payment-methods__content-wrapper {
    padding: 0 15px; /* Add horizontal padding to content wrapper */
  }

  .page-payment-methods__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  /* Image and container responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min image size */
    min-height: 200px !important; /* Enforce min image size */
  }

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

  /* Ensure content wrappers for images are also responsive */
  .page-payment-methods__security-section .page-payment-methods__content-wrapper,
  .page-payment-methods__conclusion-section .page-payment-methods__content-wrapper {
    flex-direction: column;
    align-items: center;
  }
}