/* 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 */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-payment-methods__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2f);
  color: #ffffff;
}

.page-payment-methods__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-payment-methods__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

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

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

.page-payment-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

.page-payment-methods__section.page-payment-methods__dark-bg {
  background: #1a1a1a; /* Body background color */
  color: #ffffff;
}

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

.page-payment-methods__section.page-payment-methods__dark-bg .page-payment-methods__section-title,
.page-payment-methods__section.page-payment-methods__dark-bg .page-payment-methods__description {
  color: #ffffff;
}

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

.page-payment-methods__feature-card,
.page-payment-methods__method-card,
.page-payment-methods__info-card,
.page-payment-methods__support-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-payment-methods__feature-icon,
.page-payment-methods__method-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-payment-methods__feature-title,
.page-payment-methods__method-title,
.page-payment-methods__card-title,
.page-payment-methods__support-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-payment-methods__method-details {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-payment-methods__method-details li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.page-payment-methods__method-details li::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  top: 0;
}

.page-payment-methods__note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  font-size: 1.1em;
}

.page-payment-methods__guide-block {
  margin-bottom: 50px;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-payment-methods__guide-subtitle {
  font-size: 2em;
  color: #017439;
  margin-bottom: 25px;
  text-align: center;
}

.page-payment-methods__guide-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-payment-methods__guide-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-payment-methods__guide-list li strong {
  color: #017439;
}

.page-payment-methods__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 8px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-payment-methods__info-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #333333;
}

.page-payment-methods__security-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-payment-methods__security-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-payment-methods__support-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-payment-methods__support-card .page-payment-methods__btn-secondary {
  margin-top: 20px;
}

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

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #017439;
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

.page-payment-methods__cta {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #017439, #005f2f);
  color: #ffffff;
}

.page-payment-methods__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-payment-methods__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 2.8em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-payment-methods__hero-section {
    padding: 60px 15px;
  }
  .page-payment-methods__main-title {
    font-size: 2.2em;
  }
  .page-payment-methods__description {
    font-size: 1em;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 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__section {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-payment-methods__features-grid,
  .page-payment-methods__methods-grid,
  .page-payment-methods__security-grid,
  .page-payment-methods__support-options {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__feature-card,
  .page-payment-methods__method-card,
  .page-payment-methods__info-card,
  .page-payment-methods__support-card,
  .page-payment-methods__guide-block,
  .page-payment-methods__security-item,
  .page-payment-methods__faq-item {
    padding: 20px;
  }
  .page-payment-methods__feature-icon,
  .page-payment-methods__method-image,
  .page-payment-methods__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }
  .page-payment-methods__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-payment-methods__cta-title {
    font-size: 2em;
  }
  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-payment-methods__faq-answer {
    padding: 0 20px;
  }
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 10px 20px 20px 20px;
  }
  .page-payment-methods__section.page-payment-methods__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header on mobile */
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-title {
    font-size: 1.6em;
  }
  .page-payment-methods__cta-title {
    font-size: 1.6em;
  }
}

/* Ensure all images maintain original color and are not filtered */
.page-payment-methods img {
  filter: none !important;
}

/* Content area images CSS size lower limit */
.page-payment-methods img:not([class*="shared-"]) {
  min-width: 200px; /* Applies to all images in main content */
  min-height: 200px; /* Applies to all images in main content */
}