/* style/payment-methods.css */

/* Base styles for the page-payment-methods scope */
.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a2e; /* Inherited from body, but explicitly set for clarity */
}

.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: #1a1a2e;
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__text-block {
  font-size: 17px;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* 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; /* body handles padding-top, only small decorative top padding here */
  overflow: hidden;
  min-height: 500px;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-payment-methods__hero-image {
  width: 1200px; /* Display width */
  height: 675px; /* Display height (16:9 aspect for 1200x675) */
  object-fit: cover;
  display: block;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

.page-payment-methods__hero-title {
  font-size: clamp(32px, 5vw, 48px); /* Using clamp for H1 */
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background-color: #C30808; /* Register/Login custom color */
  color: #FFFF00; /* Register/Login font custom color */
  border: 2px solid #C30808;
}

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

.page-payment-methods__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

/* Intro Section */
.page-payment-methods__intro-section .page-payment-methods__text-block {
  font-size: 18px;
}

/* Deposit Methods Section */
.page-payment-methods__deposit-methods .page-payment-methods__section-title {
  color: #ffffff;
}

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

.page-payment-methods__method-card {
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-payment-methods__method-icon {
  width: 400px; /* Display width */
  height: 300px; /* Display height */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 4px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-payment-methods__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-payment-methods__card-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-payment-methods__card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: #666666;
  font-size: 15px;
}

.page-payment-methods__card-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.page-payment-methods__card-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
}

.page-payment-methods__card-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__card-link:hover {
  background-color: #005a2b;
}

/* Withdrawal Guide Section */
.page-payment-methods__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-payment-methods__step-card {
  padding: 25px;
  text-align: left;
  counter-increment: step-counter;
  position: relative;
}

.page-payment-methods__step-card::before {
  content: "0" counter(step-counter);
  position: absolute;
  top: -15px;
  left: 15px;
  font-size: 48px;
  font-weight: bold;
  color: rgba(1, 116, 57, 0.2); /* Transparent brand color */
  z-index: 0;
}

.page-payment-methods__step-card .page-payment-methods__card-title {
  color: #017439;
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.page-payment-methods__step-card .page-payment-methods__card-description {
  color: #555555;
  position: relative;
  z-index: 1;
}

.page-payment-methods__info-block {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  margin-top: 40px;
}

.page-payment-methods__info-title {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__info-list {
  list-style: disc inside;
  padding-left: 20px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-payment-methods__info-list li {
  margin-bottom: 10px;
}

.page-payment-methods__image-full {
  width: 800px; /* Display width */
  height: 600px; /* Display height */
  object-fit: cover;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  display: block;
  max-width: 100%;
  height: auto;
}

/* Important Notes Section */
.page-payment-methods__notes-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
  font-size: 17px;
}

.page-payment-methods__notes-list li {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #017439;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  color: #f0f0f0;
}

.page-payment-methods__notes-list li strong {
  color: #ffffff;
  font-weight: bold;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-payment-methods__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-payment-methods__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-answer {
  max-height: 500px; /* Sufficient height for content */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

/* CTA Bottom Section */
.page-payment-methods__cta-bottom .page-payment-methods__section-title {
  color: #ffffff;
}

/* General Image Styles */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

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

  .page-payment-methods__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-payment-methods__hero-title {
    font-size: 32px;
  }

  .page-payment-methods__hero-description {
    font-size: 16px;
  }

  .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: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__step-card {
    padding: 20px;
  }

  .page-payment-methods__method-icon {
    width: 100% !important;
    height: auto !important;
  }

  .page-payment-methods__card-title {
    font-size: 20px;
  }

  .page-payment-methods__steps-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-payment-methods__info-block {
    padding: 20px;
  }

  .page-payment-methods__info-title {
    font-size: 20px;
  }

  .page-payment-methods__image-full {
    width: 100% !important;
    height: auto !important;
    margin-left: 0;
    margin-right: 0;
  }

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

  .page-payment-methods__notes-list li {
    padding: 15px;
  }

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

  .page-payment-methods__faq-question {
    font-size: 16px;
    padding: 15px;
  }

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

  /* Ensure all images and their containers are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__info-block,
  .page-payment-methods__faq-item,
  .page-payment-methods__cta-bottom .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}