/* style/payment-methods.css */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #FFFFFF;
}

.page-payment-methods__hero-section {
  padding-top: 10px; /* Small top margin, as body padding-top is handled by shared.css */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Adjust as needed for hero image aspect ratio */
  overflow: hidden;
  position: relative;
}

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

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 20px auto 0 auto;
  padding: 0 20px;
  color: #333333; /* Default for light background */
}

.page-payment-methods__hero-section.page-payment-methods__dark-section .page-payment-methods__hero-content {
  color: #ffffff;
}

.page-payment-methods__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #017439; /* Brand color for main title */
}

.page-payment-methods__hero-section.page-payment-methods__dark-section .page-payment-methods__main-title {
  color: #FFFF00;
}

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

.page-payment-methods__hero-section.page-payment-methods__dark-section .page-payment-methods__hero-description {
  color: #f0f0f0;
}

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

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

.page-payment-methods__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #C30808;
}

.page-payment-methods__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-payment-methods__btn-secondary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-payment-methods__section {
  padding: 60px 20px;
  text-align: center;
}

.page-payment-methods__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-payment-methods__dark-section .page-payment-methods__section-title {
  color: #FFFF00;
}

.page-payment-methods__dark-section .page-payment-methods__section-description,
.page-payment-methods__dark-section .page-payment-methods__method-text,
.page-payment-methods__dark-section .page-payment-methods__feature-text,
.page-payment-methods__dark-section .page-payment-methods__benefit-text {
  color: #f0f0f0;
}

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

.page-payment-methods__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #017439;
}

.page-payment-methods__section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-payment-methods__method-card,
.page-payment-methods__feature-item,
.page-payment-methods__step-card,
.page-payment-methods__benefit-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-payment-methods__dark-section .page-payment-methods__method-card,
.page-payment-methods__dark-section .page-payment-methods__feature-item,
.page-payment-methods__dark-section .page-payment-methods__step-card,
.page-payment-methods__dark-section .page-payment-methods__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-payment-methods__method-image,
.page-payment-methods__feature-image,
.page-payment-methods__process-image,
.page-payment-methods__benefit-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Adjust max-width for smaller images within cards/sections */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__feature-image, .page-payment-methods__process-image, .page-payment-methods__benefit-image {
  max-width: 800px;
  margin: 20px auto;
}

.page-payment-methods__method-title,
.page-payment-methods__feature-title,
.page-payment-methods__step-title,
.page-payment-methods__benefit-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-payment-methods__dark-section .page-payment-methods__method-title,
.page-payment-methods__dark-section .page-payment-methods__feature-title,
.page-payment-methods__dark-section .page-payment-methods__step-title,
.page-payment-methods__dark-section .page-payment-methods__benefit-title {
  color: #FFFF00;
}

.page-payment-methods__method-text,
.page-payment-methods__feature-text,
.page-payment-methods__step-text,
.page-payment-methods__benefit-text {
  font-size: 1rem;
  color: #555555;
}

.page-payment-methods__dark-section .page-payment-methods__method-text,
.page-payment-methods__dark-section .page-payment-methods__feature-text,
.page-payment-methods__dark-section .page-payment-methods__step-text,
.page-payment-methods__dark-section .page-payment-methods__benefit-text {
  color: #f0f0f0;
}

.page-payment-methods__image-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-payment-methods__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-payment-methods__dark-section .page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: #017439;
  list-style: none;
}

.page-payment-methods__dark-section .page-payment-methods__faq-question {
  color: #FFFF00;
}

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

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

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

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

.page-payment-methods__dark-section .page-payment-methods__faq-answer {
  color: #f0f0f0;
}

.page-payment-methods__conclusion-section {
  padding-bottom: 60px;
}

/* Universal image responsive styles */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-payment-methods__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

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

  .page-payment-methods__cta-buttons {
    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: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  .page-payment-methods__method-grid,
  .page-payment-methods__feature-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 25px;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__feature-item,
  .page-payment-methods__step-card,
  .page-payment-methods__benefit-item {
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .page-payment-methods__method-image,
  .page-payment-methods__feature-image,
  .page-payment-methods__process-image,
  .page-payment-methods__benefit-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }

  .page-payment-methods__method-title,
  .page-payment-methods__feature-title,
  .page-payment-methods__step-title,
  .page-payment-methods__benefit-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-payment-methods__method-text,
  .page-payment-methods__feature-text,
  .page-payment-methods__step-text,
  .page-payment-methods__benefit-text {
    font-size: 0.95rem;
  }

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

  .page-payment-methods__faq-item {
    margin-bottom: 10px;
  }

  .page-payment-methods__faq-question {
    padding: 15px;
    font-size: 1.1rem;
  }

  .page-payment-methods__faq-toggle {
    font-size: 1.3rem;
  }

  .page-payment-methods__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95rem;
  }

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

  /* Ensure all img tags are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Ensure all containers with images/buttons are responsive */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__method-grid,
  .page-payment-methods__feature-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__benefits-grid,
  .page-payment-methods__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}