/* style/payment-methods.css */

:root {
  --hk79-primary-color: #26A9E0;
  --hk79-secondary-color: #FFFFFF;
  --hk79-login-color: #EA7C07;
  --hk79-dark-bg: #1a1a2e;
  --hk79-light-text: #ffffff;
  --hk79-dark-text: #333333;
  --hk79-card-bg-dark: rgba(255, 255, 255, 0.1);
  --hk79-card-bg-light: #ffffff;
  --hk79-border-light: #e0e0e0;
}

/* Base styles for the page content */
.page-payment-methods {
  color: var(--hk79-light-text); /* Default text color for dark body background */
  background-color: var(--hk79-dark-bg);
  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;
  text-align: center;
}

.page-payment-methods__dark-bg {
  background-color: var(--hk79-dark-bg);
  color: var(--hk79-light-text);
}

.page-payment-methods__light-bg {
  background-color: var(--hk79-secondary-color);
  color: var(--hk79-dark-text);
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  color: inherit; /* Inherit color from parent section */
}

.page-payment-methods__section-title strong {
  color: var(--hk79-primary-color);
}

.page-payment-methods__intro-text,
.page-payment-methods p {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

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

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

.page-payment-methods__hero-content {
  position: relative; /* Ensure content is above image */
  z-index: 1;
  padding: 40px 20px;
  text-align: center;
  color: var(--hk79-light-text);
  max-width: 900px;
  margin: 0 auto; /* Center content */
}

.page-payment-methods__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hk79-secondary-color);
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 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-color: var(--hk79-primary-color);
  color: var(--hk79-light-text);
  border: 2px solid var(--hk79-primary-color);
}

.page-payment-methods__btn-primary:hover {
  background-color: darken(var(--hk79-primary-color), 10%);
  border-color: darken(var(--hk79-primary-color), 10%);
}

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

.page-payment-methods__btn-secondary:hover {
  background-color: var(--hk79-primary-color);
  color: var(--hk79-light-text);
}

/* Why Choose Section */
.page-payment-methods__why-choose .page-payment-methods__section-title,
.page-payment-methods__why-choose p {
  color: var(--hk79-dark-text);
}

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

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

.page-payment-methods__feature-icon {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--hk79-primary-color);
}

/* Deposit/Withdraw Methods Section */
.page-payment-methods__deposit-methods .page-payment-methods__section-title,
.page-payment-methods__deposit-methods p,
.page-payment-methods__withdraw-methods .page-payment-methods__section-title,
.page-payment-methods__withdraw-methods p {
  color: inherit;
}

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

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

.page-payment-methods__method-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__method-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--hk79-primary-color);
}

.page-payment-methods__guide-section {
  margin-top: 60px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__guide-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--hk79-primary-color);
  text-align: center;
}

.page-payment-methods__guide-list {
  list-style: none;
  padding: 0;
}

.page-payment-methods__guide-list li {
  background-color: var(--hk79-card-bg-dark);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--hk79-light-text);
}

.page-payment-methods__guide-list li h4 {
  font-size: 1.3em;
  color: var(--hk79-primary-color);
  margin-bottom: 10px;
}

.page-payment-methods__guide-list li p {
  font-size: 1em;
  color: var(--hk79-light-text);
  margin-bottom: 0;
}

/* Important Notes Section */
.page-payment-methods__important-notes .page-payment-methods__section-title,
.page-payment-methods__important-notes p {
  color: inherit;
}

.page-payment-methods__notes-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__notes-list li {
  background-color: var(--hk79-card-bg-dark);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--hk79-light-text);
}

.page-payment-methods__notes-list li h3 {
  font-size: 1.4em;
  color: var(--hk79-primary-color);
  margin-bottom: 10px;
}

.page-payment-methods__notes-list li p {
  font-size: 1em;
  color: var(--hk79-light-text);
  margin-bottom: 0;
}

/* FAQ Section */
.page-payment-methods__faq-section .page-payment-methods__section-title,
.page-payment-methods__faq-section p {
  color: var(--hk79-dark-text);
}

.page-payment-methods__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__faq-item {
  background-color: var(--hk79-card-bg-light);
  border: 1px solid var(--hk79-border-light);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--hk79-dark-text);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--hk79-primary-color);
  background-color: rgba(var(--hk79-primary-color), 0.05);
  border-bottom: 1px solid var(--hk79-border-light);
  list-style: none;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  border-bottom: 1px solid var(--hk79-border-light);
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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: 20px 25px;
  font-size: 1em;
  color: var(--hk79-dark-text);
}

/* CTA Bottom Section */
.page-payment-methods__cta-bottom {
  padding-bottom: 80px;
}

.page-payment-methods__cta-bottom .page-payment-methods__section-title,
.page-payment-methods__cta-bottom p {
  color: var(--hk79-light-text);
}

/* Image specific styles - ensure min-width/height and object-fit */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-payment-methods__section {
    padding: 40px 0;
  }

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

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

  .page-payment-methods__main-title {
    font-size: 2em;
  }

  .page-payment-methods__intro-text,
  .page-payment-methods p,
  .page-payment-methods li p {
    font-size: 1em;
    padding: 0 15px; /* Add padding to text to prevent overflow */
  }

  .page-payment-methods__section-title {
    font-size: 2em;
    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: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__container,
  .page-payment-methods__feature-card,
  .page-payment-methods__method-card,
  .page-payment-methods__guide-section,
  .page-payment-methods__notes-list li,
  .page-payment-methods__faq-item {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-payment-methods__video-section {
    padding-top: 10px !important; /* body already handles header-offset */
  }

  .page-payment-methods__guide-list li,
  .page-payment-methods__notes-list li {
    padding: 20px;
  }

  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-payment-methods__features-grid,
  .page-payment-methods__methods-grid {
    grid-template-columns: 1fr;
  }
}