/* style/payment-methods.css */

/* Custom Colors */
:root {
  --page-payment-methods-primary-color: #11A84E;
  --page-payment-methods-secondary-color: #22C768;
  --page-payment-methods-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-payment-methods-card-bg: #11271B;
  --page-payment-methods-background: #08160F;
  --page-payment-methods-text-main: #F2FFF6;
  --page-payment-methods-text-secondary: #A7D9B8;
  --page-payment-methods-border-color: #2E7A4E;
  --page-payment-methods-glow-color: #57E38D;
  --page-payment-methods-gold-color: #F2C14E;
  --page-payment-methods-divider-color: #1E3A2A;
  --page-payment-methods-deep-green: #0A4B2C;
}

/* General Page Styling */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-payment-methods-text-main); /* Default text color for dark background */
  background-color: var(--page-payment-methods-background); /* Default background from custom colors */
}

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

.page-payment-methods__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-payment-methods-text-main);
  line-height: 1.2;
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-payment-methods-text-secondary);
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text contrast */
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-payment-methods-text-secondary);
}

.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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-payment-methods__btn-primary {
  background: var(--page-payment-methods-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-payment-methods__btn-primary:hover {
  box-shadow: 0 0 15px var(--page-payment-methods-glow-color);
  transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
  background: transparent;
  color: var(--page-payment-methods-primary-color);
  border: 2px solid var(--page-payment-methods-primary-color);
}

.page-payment-methods__btn-secondary:hover {
  background: var(--page-payment-methods-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Overview Section */
.page-payment-methods__overview-section {
  padding: 80px 0;
  background-color: var(--page-payment-methods-background);
  color: var(--page-payment-methods-text-main);
}

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

.page-payment-methods__feature-item {
  background-color: var(--page-payment-methods-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-payment-methods-border-color);
}

.page-payment-methods__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

.page-payment-methods__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__feature-item p {
  color: var(--page-payment-methods-text-secondary);
}

/* Methods Section */
.page-payment-methods__methods-section {
  padding: 80px 0;
  background-color: var(--page-payment-methods-deep-green);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__method-category {
  margin-bottom: 60px;
}

.page-payment-methods__method-subtitle {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--page-payment-methods-gold-color);
}

.page-payment-methods__method-details {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: var(--page-payment-methods-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-payment-methods-border-color);
}

.page-payment-methods__method-details:nth-child(even) {
  flex-direction: row-reverse;
}

.page-payment-methods__method-details img {
  flex-shrink: 0;
  width: 50%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

.page-payment-methods__method-text {
  flex-grow: 1;
  color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__method-text p {
  margin-bottom: 15px;
  text-align: left;
}

.page-payment-methods__method-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__method-list li {
  margin-bottom: 8px;
}

.page-payment-methods__method-list strong {
  color: var(--page-payment-methods-text-main);
}

/* Guide Section */
.page-payment-methods__guide-section {
  padding: 80px 0;
  background-color: var(--page-payment-methods-background);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__guide-step {
  margin-bottom: 60px;
  text-align: center;
}

.page-payment-methods__guide-subtitle {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--page-payment-methods-primary-color);
}

.page-payment-methods__step-list {
  list-style: decimal;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 30px auto;
  padding-left: 40px;
  font-size: 1.1em;
  color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__step-list li {
  margin-bottom: 15px;
  color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__step-list strong {
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__step-list a {
  color: var(--page-payment-methods-primary-color);
  text-decoration: underline;
}

.page-payment-methods__step-list a:hover {
  color: var(--page-payment-methods-glow-color);
}

.page-payment-methods__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

/* Security Section */
.page-payment-methods__security-section {
  padding: 80px 0;
  background-color: var(--page-payment-methods-deep-green);
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-payment-methods__security-list li {
  background-color: var(--page-payment-methods-card-bg);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--page-payment-methods-primary-color);
  color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__security-list li strong {
  color: var(--page-payment-methods-text-main);
  font-size: 1.1em;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  padding: 80px 0;
  background-color: var(--page-payment-methods-background);
  color: var(--page-payment-methods-text-main);
}

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

.page-payment-methods__faq-item {
  background-color: var(--page-payment-methods-card-bg);
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--page-payment-methods-border-color);
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  color: var(--page-payment-methods-text-main);
  background-color: var(--page-payment-methods-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-payment-methods__faq-question:hover {
  background-color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-payment-methods-primary-color);
}

.page-payment-methods__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--page-payment-methods-text-secondary);
  font-size: 1em;
}

/* CTA Bottom Section */
.page-payment-methods__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--page-payment-methods-deep-green);
  text-align: center;
  color: var(--page-payment-methods-text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__method-details {
    flex-direction: column;
    text-align: center;
  }
  .page-payment-methods__method-details:nth-child(even) {
    flex-direction: column;
  }
  .page-payment-methods__method-details img {
    width: 80%;
    margin-bottom: 20px;
  }
  .page-payment-methods__method-text p,
  .page-payment-methods__method-list {
    text-align: center;
  }
  .page-payment-methods__method-list {
    padding-left: 0;
    list-style-position: inside;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .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;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__container,
  .page-payment-methods__overview-section .page-payment-methods__container,
  .page-payment-methods__methods-section .page-payment-methods__container,
  .page-payment-methods__guide-section .page-payment-methods__container,
  .page-payment-methods__security-section .page-payment-methods__container,
  .page-payment-methods__faq-section .page-payment-methods__container,
  .page-payment-methods__cta-bottom-section .page-payment-methods__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size on mobile */
    min-height: 200px !important; /* Ensure min size on mobile */
  }

  .page-payment-methods__feature-item,
  .page-payment-methods__method-details,
  .page-payment-methods__faq-item {
    padding: 20px;
  }

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

  .page-payment-methods__method-subtitle {
    font-size: 1.5em;
  }

  .page-payment-methods__guide-subtitle {
    font-size: 1.4em;
  }

  .page-payment-methods__step-list {
    padding-left: 20px;
    font-size: 1em;
  }

  .page-payment-methods__security-list li {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 15px;
  }

  .page-payment-methods__faq-question {
    font-size: 1em;
  }
}

/* Color Contrast Fixes (Light background sections) */
.page-payment-methods__light-bg {
  color: #333333; /* Deep dark text for light background */
  background-color: #ffffff; /* Explicitly white for contrast */
}

.page-payment-methods__light-bg .page-payment-methods__section-title,
.page-payment-methods__light-bg .page-payment-methods__text-block,
.page-payment-methods__light-bg .page-payment-methods__feature-title,
.page-payment-methods__light-bg .page-payment-methods__feature-item p,
.page-payment-methods__light-bg .page-payment-methods__guide-subtitle,
.page-payment-methods__light-bg .page-payment-methods__step-list li,
.page-payment-methods__light-bg .page-payment-methods__step-list strong,
.page-payment-methods__light-bg .page-payment-methods__faq-question,
.page-payment-methods__light-bg .page-payment-methods__faq-answer {
  color: #333333;
}

.page-payment-methods__light-bg .page-payment-methods__faq-toggle {
  color: var(--page-payment-methods-primary-color);
}

.page-payment-methods__light-bg .page-payment-methods__card {
  background-color: #f8f8f8; /* Slightly off-white card for light background */
  color: #333333;
  border: 1px solid #e0e0e0;
}

/* Dark background sections */
.page-payment-methods__dark-bg {
  color: var(--page-payment-methods-text-main);
  background-color: var(--page-payment-methods-background);
}

.page-payment-methods__methods-section .page-payment-methods__card-bg {
  background-color: var(--page-payment-methods-card-bg);
  color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__methods-section .page-payment-methods__card-bg p,
.page-payment-methods__methods-section .page-payment-methods__card-bg li {
  color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__methods-section .page-payment-methods__card-bg strong {
  color: var(--page-payment-methods-text-main);
}

/* Ensure images don't have CSS filters */
.page-payment-methods img {
  filter: none; /* Override any potential global filters */
}

/* Specific fix for hero image darkening, applied directly */
.page-payment-methods__hero-image {
  filter: brightness(0.4);
}