/* style/payment-methods.css */

/* Base styles for the page */
.page-payment-methods {
  background-color: var(--background-color, #08160F); /* Ensure dark background from shared */
  color: var(--text-main, #F2FFF6); /* Light text on dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-payment-methods__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-payment-methods__sub-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-payment-methods__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-payment-methods__highlight {
  color: var(--gold, #F2C14E);
  font-weight: 600;
}

.page-payment-methods__ordered-list,
.page-payment-methods__unordered-list {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 20px;
  font-size: 17px;
}

.page-payment-methods__ordered-list li,
.page-payment-methods__unordered-list li {
  margin-bottom: 10px;
}

.page-payment-methods a {
  color: var(--gold, #F2C14E);
  text-decoration: none;
}

.page-payment-methods a:hover {
  text-decoration: underline;
}

/* Color classes for sections/cards */
.page-payment-methods__dark-bg {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-payment-methods__light-bg {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-payment-methods__dark-section {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

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

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-payment-methods__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-payment-methods__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Use clamp for H1 */
  font-weight: 800;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-payment-methods__description {
  font-size: 19px;
  margin-bottom: 30px;
  color: var(--text-main, #F2FFF6);
}

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary,
.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-payment-methods__btn-secondary:hover {
  background-color: var(--gold, #F2C14E);
  color: var(--deep-green, #0A4B2C);
  transform: translateY(-2px);
}

/* Cards Grid */
.page-payment-methods__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-payment-methods__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-payment-methods__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.page-payment-methods__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-payment-methods__card-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
  text-align: justify;
}

/* Security Features */
.page-payment-methods__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__feature-item {
  text-align: center;
  padding: 25px;
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  border: 1px solid var(--border, #2E7A4E);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-payment-methods__feature-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
  text-align: justify;
}

/* Transaction Table */
.page-payment-methods__table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
}

.page-payment-methods__transaction-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px; /* Ensure table is readable on smaller screens */
}

.page-payment-methods__transaction-table th,
.page-payment-methods__transaction-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-payment-methods__transaction-table th {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--gold, #F2C14E);
  font-weight: 700;
  font-size: 16px;
}

.page-payment-methods__transaction-table td {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  font-size: 15px;
}

.page-payment-methods__transaction-table tbody tr:last-child td {
  border-bottom: none;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 40px;
}

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

.page-payment-methods__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-item summary:hover {
  background-color: var(--deep-green, #0A4B2C);
}

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

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

.page-payment-methods__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold, #F2C14E);
}

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

.page-payment-methods__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
  text-align: justify;
}

/* CTA Section */
.page-payment-methods__cta-section {
  text-align: center;
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
  color: var(--gold, #F2C14E);
}

.page-payment-methods__cta-section .page-payment-methods__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-payment-methods__cta-button {
  margin-top: 20px;
}

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

  .page-payment-methods__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-payment-methods__hero-content {
    padding: 0 15px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-payment-methods__description {
    font-size: 17px;
  }

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

  .page-payment-methods__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 30px;
  }

  .page-payment-methods__sub-title {
    font-size: clamp(20px, 6vw, 26px);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-payment-methods__text-block {
    font-size: 16px;
    padding: 0 15px; /* Add padding to text blocks */
  }

  .page-payment-methods__ordered-list,
  .page-payment-methods__unordered-list {
    padding-left: 35px;
    font-size: 16px;
  }

  .page-payment-methods__cards-grid,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-payment-methods__card {
    padding: 20px;
  }

  .page-payment-methods__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-payment-methods__table-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-payment-methods__transaction-table {
    min-width: 500px;
  }

  .page-payment-methods__transaction-table th,
  .page-payment-methods__transaction-table td {
    padding: 10px;
    font-size: 14px;
  }

  .page-payment-methods__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

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

  /* Mobile responsive images/videos/buttons - IMPORTANT */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__hero-section,
  .page-payment-methods__overview-section,
  .page-payment-methods__deposit-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__security-section,
  .page-payment-methods__limits-section,
  .page-payment-methods__promotions-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section,
  .page-payment-methods__table-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-payment-methods__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Ensure table wrapper does not cause overflow on mobile */
@media (max-width: 768px) {
  .page-payment-methods__table-wrapper {
    width: calc(100% - 30px) !important; /* Adjust for padding */
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}