/* style/payment-methods.css */

/* Root variables for 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;
}

.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-payment-methods-text-main); /* Default text color for dark body background */
  background-color: var(--page-payment-methods-background); /* Ensure consistency with body background */
}

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--page-payment-methods-background);
  overflow: hidden;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Adjust as needed for hero image aspect ratio */
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
}

.page-payment-methods__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

.page-payment-methods__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: var(--page-payment-methods-gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-payment-methods__description {
  font-size: 1.1em;
  color: var(--page-payment-methods-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  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;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  filter: brightness(1.1);
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: var(--page-payment-methods-glow-color);
  border: 2px solid var(--page-payment-methods-glow-color);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-payment-methods__btn-secondary:hover {
  background-color: var(--page-payment-methods-glow-color);
  color: var(--page-payment-methods-background);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

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

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

.page-payment-methods__section-title {
  font-size: 2.5em;
  margin-bottom: 25px;
  color: var(--page-payment-methods-gold-color);
  font-weight: bold;
}

.page-payment-methods__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--page-payment-methods-glow-color);
  font-weight: bold;
}

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

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

.page-payment-methods__card {
  background-color: var(--page-payment-methods-card-bg);
  border: 1px solid var(--page-payment-methods-border-color);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
  color: var(--page-payment-methods-text-main);
}

.page-payment-methods__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-payment-methods__card-text {
  font-size: 0.95em;
  color: var(--page-payment-methods-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-payment-methods__btn-text {
  color: var(--page-payment-methods-glow-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: color 0.3s ease;
}

.page-payment-methods__btn-text:hover {
  color: var(--page-payment-methods-gold-color);
  text-decoration: underline;
}

.page-payment-methods__light-bg {
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-payment-methods__light-bg .page-payment-methods__section-title,
.page-payment-methods__light-bg .page-payment-methods__sub-title {
  color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__light-bg .page-payment-methods__text-block,
.page-payment-methods__light-bg .page-payment-methods__list li {
  color: #555555;
}

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

.page-payment-methods__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-payment-methods__text-column,
.page-payment-methods__image-column {
  flex: 1;
  min-width: 300px;
}

.page-payment-methods__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-payment-methods__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__list li {
  margin-bottom: 10px;
  font-size: 1.0em;
}

.page-payment-methods__list--two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

.page-payment-methods__list--two-columns li::before {
  content: '✓';
  color: var(--page-payment-methods-glow-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.page-payment-methods__link {
  color: var(--page-payment-methods-glow-color);
  text-decoration: none;
  font-weight: bold;
}

.page-payment-methods__link:hover {
  text-decoration: underline;
  color: var(--page-payment-methods-gold-color);
}

.page-payment-methods__faq-list {
  margin-top: 30px;
  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__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px; /* Large value to allow smooth transition */
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-payment-methods-deep-green);
  cursor: pointer;
  background-color: #f0fdf5;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-item:last-child .page-payment-methods__faq-question {
  border-bottom: none;
}

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

.page-payment-methods__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Ensure click on summary works */
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  pointer-events: none; /* Ensure click on summary works */
}

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

.page-payment-methods__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-payment-methods__faq-item[open] > .page-payment-methods__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 15px;
}

/* Details tag specific styles */
.page-payment-methods__faq-item[open] > summary.page-payment-methods__faq-question {
  border-bottom: 1px solid #e0e0e0; /* Ensure border when open */
}

.page-payment-methods__faq-item details > summary {
  list-style: none;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-payment-methods__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__sub-title {
    font-size: 1.5em;
  }
  .page-payment-methods__content-wrapper {
    flex-direction: column;
  }
  .page-payment-methods__text-column, .page-payment-methods__image-column {
    min-width: unset;
    width: 100%;
  }
  .page-payment-methods__list--two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 10px 15px 40px;
  }
  .page-payment-methods__section {
    padding: 40px 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-payment-methods__description {
    font-size: 1em;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__sub-title {
    font-size: 1.3em;
  }
  .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__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__card {
    padding: 20px;
  }
  .page-payment-methods__card-title {
    font-size: 1.3em;
  }
  .page-payment-methods__card-text {
    font-size: 0.9em;
  }
  .page-payment-methods__container,
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-payment-methods__faq-answer {
    padding: 0 20px 15px;
  }
  .page-payment-methods__video-section {
    padding-top: 10px !important;
  }
}