/* style/payment-methods.css */
.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-payment-methods__hero-section {
  padding-top: 10px; /* Small top padding, body handles main offset */
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #017439, #004d2e);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Aspect ratio 16:9 for 1200x675 */
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-payment-methods__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
  position: relative; /* Ensure content is above image but not overlaying */
  margin-top: -100px; /* Pull content up slightly, but not over image */
  background: rgba(1, 116, 57, 0.85); /* Semi-transparent background for readability */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00; /* Register/Login font color */
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-payment-methods__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-payment-methods__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.page-payment-methods__cta-buttons--single {
  margin-top: 30px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-payment-methods__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-payment-methods__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.page-payment-methods__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for titles */
  line-height: 1.3;
}

.page-payment-methods__section-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-payment-methods__dark-bg {
  background: #0a0a0a;
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-payment-methods__text-contrast-fix {
  color: #333333 !important;
}

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

.page-payment-methods__card {
  background: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-payment-methods__advantage-icon,
.page-payment-methods__payment-icon,
.page-payment-methods__step-image {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-height: 250px; /* Limit height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__advantage-title,
.page-payment-methods__payment-title,
.page-payment-methods__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439; /* Brand color for card titles */
}

.page-payment-methods__advantage-description,
.page-payment-methods__payment-description,
.page-payment-methods__step-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  background: #f9f9f9; /* Lighter background for FAQ items */
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  color: #333333;
}

.page-payment-methods__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: #017439; /* Brand color for FAQ questions */
  background-color: #e6f4ed; /* Light green background for summary */
  border-bottom: 1px solid #d0e8dd;
}

.page-payment-methods__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-payment-methods__faq-item summary:hover {
  background-color: #d0e8dd;
}

.page-payment-methods__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: #017439;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  content: '−';
}

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  text-align: left;
}

.page-payment-methods__conclusion-section {
  background: linear-gradient(135deg, #004d2e, #017439);
  color: #ffffff;
  text-align: center;
}

.page-payment-methods__conclusion-section .page-payment-methods__section-title {
  color: #FFFF00; /* Register/Login font color for titles */
}

.page-payment-methods__conclusion-section .page-payment-methods__section-intro {
  color: #f0f0f0;
}

/* Universal image responsiveness */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-payment-methods__hero-content {
    margin-top: -50px;
    padding: 20px;
  }
  .page-payment-methods__main-title {
    font-size: 2.8rem;
  }
  .page-payment-methods__hero-description {
    font-size: 1rem;
  }
  .page-payment-methods__section-title {
    font-size: 2.5rem;
  }
  .page-payment-methods__section-intro {
    font-size: 1rem;
  }
  .page-payment-methods__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles main offset */
  }
  .page-payment-methods__hero-content {
    margin-top: -30px; /* Adjust for smaller screens */
    padding: 15px;
    border-radius: 8px;
  }
  .page-payment-methods__main-title {
    font-size: 2rem !important;
    margin-bottom: 10px;
  }
  .page-payment-methods__hero-description {
    font-size: 0.95rem !important;
    margin-bottom: 20px;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons and Button Containers */
  .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: 12px 20px;
    font-size: 1rem;
  }
  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-payment-methods__cta-buttons--single {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Images and Containers */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

  /* Other Content Modules (Cards, Sections) */
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px;
  }
  .page-payment-methods__section-intro {
    font-size: 0.9rem !important;
    margin-bottom: 30px;
  }
  .page-payment-methods__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__card {
    padding: 20px;
  }
  .page-payment-methods__advantage-title,
  .page-payment-methods__payment-title,
  .page-payment-methods__step-title {
    font-size: 1.3rem;
  }
  .page-payment-methods__advantage-description,
  .page-payment-methods__payment-description,
  .page-payment-methods__step-description {
    font-size: 0.95rem;
  }
  .page-payment-methods__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-payment-methods__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
}