/* style/payment-methods.css */

/* Variables from shared.css are assumed */
/* --primary-color: #007BFF; */
/* --secondary-color: #FFC107; */
/* --text-dark: #333333; */
/* --text-light: #ffffff; */
/* --header-offset: ...; */

.page-payment-methods {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark, #333333); /* Default to dark text on light background */
  line-height: 1.6;
  background-color: #f8f8f8; /* Light background for the page content */
}

/* Fixed Header Spacing */
.page-payment-methods__hero-intro-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light, #ffffff);
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden; /* For gradient edge */
}

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

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

.page-payment-methods__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-payment-methods__hero-image {
  width: 100%;
  max-width: 900px; /* Adjust based on desired visual impact */
  height: auto;
  min-height: 200px; /* Minimum size requirement */
  margin: 30px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-payment-methods__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal;
  word-wrap: break-word;
  text-align: center; /* Center text in case of wrap */
}

.page-payment-methods__btn-primary {
  background-color: var(--secondary-color, #FFC107); /* Bright gold */
  color: var(--text-dark, #333333); /* Dark text for contrast */
  border: 2px solid var(--secondary-color, #FFC107);
}

.page-payment-methods__btn-primary:hover {
  background-color: #e0ac00; /* Manual darken of FFc107 */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: var(--text-light, #ffffff);
  border: 2px solid var(--text-light, #ffffff);
}

.page-payment-methods__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__section {
  padding: 80px 0;
  background-color: var(--light-bg, #ffffff); /* Default light background */
}

.page-payment-methods__section:nth-of-type(odd) {
  background-color: #f0f0f0; /* Slightly different background for alternating sections */
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: var(--primary-color, #007BFF);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-dark, #333333);
}

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

.page-payment-methods__method-card,
.page-payment-methods__info-card,
.page-payment-methods__support-card {
  background-color: var(--text-light, #ffffff);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__method-card:hover,
.page-payment-methods__info-card:hover,
.page-payment-methods__support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__card-title {
  font-size: 1.6em;
  color: var(--primary-color, #007BFF);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__card-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__method-card p,
.page-payment-methods__info-card p,
.page-payment-methods__support-card p {
  font-size: 1em;
  color: var(--text-dark, #333333);
  margin-bottom: 15px;
  flex-grow: 1; /* Make paragraphs take available space */
}

.page-payment-methods__method-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.page-payment-methods__method-card li {
  margin-bottom: 8px;
  font-size: 0.95em;
  color: var(--text-dark, #333333);
}

.page-payment-methods__cta-center {
  text-align: center;
  margin-top: 60px;
}

.page-payment-methods__how-to-guide .page-payment-methods__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

.page-payment-methods__guide-card {
  background-color: var(--text-light, #ffffff);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 35px;
  text-align: left;
}

.page-payment-methods__guide-card ol {
  list-style: decimal;
  padding-left: 20px;
  margin-top: 20px;
}

.page-payment-methods__guide-card li {
  margin-bottom: 10px;
  font-size: 1em;
  color: var(--text-dark, #333333);
}

.page-payment-methods__guide-card li strong {
  color: var(--primary-color, #007BFF);
}

.page-payment-methods__note {
  font-style: italic;
  color: #666;
  margin-top: 20px;
  font-size: 0.9em;
}

.page-payment-methods__security-info {
  background-color: var(--primary-color, #007BFF);
  color: var(--text-light, #ffffff);
  padding: 80px 0;
}

.page-payment-methods__security-info .page-payment-methods__section-title {
  color: var(--text-light, #ffffff);
}

.page-payment-methods__security-info .page-payment-methods__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

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

.page-payment-methods__security-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-payment-methods__security-text li {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.page-payment-methods__security-text li strong {
  color: var(--secondary-color, #FFC107);
}

.page-payment-methods__security-image {
  flex-shrink: 0;
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 200px; /* Minimum size requirement */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-payment-methods__why-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-payment-methods__why-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  border-radius: 10px;
  font-size: 1.1em;
  color: var(--text-light, #ffffff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-payment-methods__why-list li:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-payment-methods__why-list li strong {
  color: var(--secondary-color, #FFC107);
}

/* FAQ styles */
.page-payment-methods__faq-section {
  background-color: #f8f8f8; /* Light background for FAQ */
  padding-bottom: 80px;
}

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.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;
  background: #f9f9f9;
  color: var(--text-dark, #333333);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid #e0e0e0;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--text-light, #ffffff);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.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.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color, #007BFF);
  pointer-events: none;
}

.page-payment-methods__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f0f0;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(180deg);
  color: var(--primary-color, #007BFF);
  background-color: var(--secondary-color, #FFC107);
  color: var(--text-dark, #333333); /* Ensure contrast */
}

/* Specific background colors for sections */
.page-payment-methods__dark-bg {
  background-color: var(--primary-color, #007BFF);
  color: var(--text-light, #ffffff);
}
.page-payment-methods__dark-bg .page-payment-methods__section-title {
  color: var(--text-light, #ffffff);
}
.page-payment-methods__dark-bg .page-payment-methods__section-description {
  color: rgba(255, 255, 255, 0.9);
}

.page-payment-methods__light-bg {
  background-color: #f8f8f8;
  color: var(--text-dark, #333333);
}

/* 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__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-payment-methods__security-text {
    text-align: center;
  }
  .page-payment-methods__security-text ul {
    text-align: left; /* Keep list items left-aligned for readability */
    margin: 0 auto 30px auto;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 15px;
  }

  /* Header offset for mobile */
  .page-payment-methods__hero-intro-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-payment-methods__main-title {
    font-size: 2.2em;
    padding: 0 10px;
  }

  .page-payment-methods__intro-description {
    font-size: 1em;
    padding: 0 10px;
  }

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

  .page-payment-methods__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-payment-methods__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-payment-methods__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 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__methods-grid,
  .page-payment-methods__info-grid,
  .page-payment-methods__how-to-guide .page-payment-methods__guide-steps,
  .page-payment-methods__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px; /* Add padding to grid containers */
  }

  .page-payment-methods__method-card,
  .page-payment-methods__info-card,
  .page-payment-methods__support-card,
  .page-payment-methods__guide-card {
    padding: 25px;
  }

  .page-payment-methods__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Maintain minimum height */
  }

  .page-payment-methods__security-content {
    gap: 30px;
  }

  .page-payment-methods__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Maintain minimum height */
  }

  .page-payment-methods__why-list {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-payment-methods__why-list li {
    padding: 15px;
    font-size: 1em;
  }

  .page-payment-methods__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-payment-methods__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  
  .page-payment-methods__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-payment-methods__faq-answer {
    padding: 0 15px;
  }
  
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all image containers are handled */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__methods-grid,
  .page-payment-methods__info-grid,
  .page-payment-methods__guide-steps,
  .page-payment-methods__support-channels,
  .page-payment-methods__why-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Specific override for hero image if it's within a container that adds padding */
  .page-payment-methods__hero-intro-section .page-payment-methods__container {
    padding: 0; /* Remove container padding if hero section already has it */
  }
  .page-payment-methods__hero-image {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0; /* Full width image on mobile */
  }
}

/* Ensure no filter is used for images */
.page-payment-methods img {
  filter: none !important;
}