/* style/payment-methods.css */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-payment-methods__hero-section {
  position: relative;
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 30px;
}

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

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-payment-methods__dark-bg .page-payment-methods__section-title {
  color: #FFFFFF;
}

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

.page-payment-methods__dark-bg .page-payment-methods__text-block {
  color: #f0f0f0;
}

.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;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-payment-methods__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  margin: 0 10px;
}

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

.page-payment-methods__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
  margin: 0 10px;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #f0f0f0;
}

.page-payment-methods__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

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

.page-payment-methods__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

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

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Overview Section */
.page-payment-methods__overview-section,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__support-section,
.page-payment-methods__cta-final {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-payment-methods__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
  padding: 80px 0;
}

.page-payment-methods__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-payment-methods__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Deposit Methods */
.page-payment-methods__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-payment-methods__card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px; /* Ensure cards have similar height */
}

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

.page-payment-methods__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-payment-methods__card-description {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

/* Withdrawal Methods */
.page-payment-methods__method-single {
  margin-top: 50px;
  text-align: center;
}

.page-payment-methods__main-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
}

.page-payment-methods__dark-bg .page-payment-methods__sub-title {
  color: #FFFFFF;
}

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

.page-payment-methods__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.05em;
  color: #333333;
}

.page-payment-methods__list-item strong {
  color: #017439;
}

/* Security Section */
.page-payment-methods__security-section {
  text-align: center;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__dark-bg .page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

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

.page-payment-methods__dark-bg .page-payment-methods__faq-question {
  color: #FFFFFF;
}

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

.page-payment-methods__dark-bg .page-payment-methods__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.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;
  font-size: 1.05em;
  color: #555555;
  text-align: justify;
}

.page-payment-methods__dark-bg .page-payment-methods__faq-answer {
  color: #f0f0f0;
}

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

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

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

  .page-payment-methods__method-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-payment-methods__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }

  .page-payment-methods__hero-description {
    font-size: 1em;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-payment-methods__overview-section,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__security-section,
  .page-payment-methods__support-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-final {
    padding: 50px 0;
  }

  /* Images responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__card,
  .page-payment-methods__method-grid,
  .page-payment-methods__method-single,
  .page-payment-methods__video-wrapper,
  .page-payment-methods__cta-buttons,
  .page-payment-methods__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-payment-methods__card-image {
    height: 180px;
  }

  /* Videos responsive */
  .page-payment-methods video,
  .page-payment-methods__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
  }

  /* Buttons responsive */
  .page-payment-methods__cta-button,
  .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;
    margin: 10px 0 !important;
    padding: 12px 20px !important;
  }
  
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

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

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

  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 10px 20px 20px;
  }

  .page-payment-methods__list-item {
    padding: 12px 15px;
    font-size: 1em;
  }
}