.page-payment-methods {
  /* Body background is dark (#1a1a2e), so default text color should be light */
  color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: #0d0d0d; /* Dark background for hero section */
}

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

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

.page-payment-methods__hero-content {
  max-width: 900px;
  z-index: 10;
  padding: 0 15px;
}

.page-payment-methods__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #FFFF00; /* Custom color for important titles */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-payment-methods__intro-description {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.page-payment-methods__btn-primary:hover {
  background-color: #9e0606;
}

.page-payment-methods__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: 15px;
}

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

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

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-payment-methods__sub-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 25px;
  line-height: 1.4;
}

/* Light Background Sections */
.page-payment-methods__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-payment-methods__light-bg .page-payment-methods__section-title,
.page-payment-methods__light-bg .page-payment-methods__sub-title {
  color: #017439;
}

/* Dark Background Sections */
.page-payment-methods__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-payment-methods__dark-section .page-payment-methods__section-title,
.page-payment-methods__dark-section .page-payment-methods__sub-title {
  color: #FFFF00; /* Yellow for titles on dark green */
}

.page-payment-methods__overview-section p,
.page-payment-methods__security-measures p,
.page-payment-methods__tips-faq p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

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

.page-payment-methods__feature-card {
  background-color: #f8f8f8;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Ensure images are not too small */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

/* Deposit/Withdrawal Methods */
.page-payment-methods__method-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark green */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-payment-methods__dark-section .page-payment-methods__method-card {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-payment-methods__light-bg .page-payment-methods__method-card {
  background-color: #f0f0f0;
  color: #333333;
}

.page-payment-methods__light-bg .page-payment-methods__method-title {
  color: #017439;
}

.page-payment-methods__method-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.page-payment-methods__method-icon {
  width: 100%;
  height: auto;
  max-width: 150px; /* Slightly smaller for method icons */
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__method-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #FFFF00; /* Yellow for titles on dark background */
}

.page-payment-methods__method-body {
  width: 100%;
}

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

.page-payment-methods__method-details li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-payment-methods__method-details li::before {
  content: '✓';
  color: #FFFF00; /* Yellow checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Security Measures */
.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-payment-methods__security-list li {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.page-payment-methods__security-list li strong {
  color: #FFFF00;
}

.page-payment-methods__security-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  object-fit: cover;
}

/* Tips & FAQ */
.page-payment-methods__tips-section,
.page-payment-methods__faq-section {
  margin-bottom: 50px;
}

.page-payment-methods__tips-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 30px auto;
}

.page-payment-methods__tips-list li {
  background-color: #f0f0f0;
  padding: 15px 20px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #333333;
}

.page-payment-methods__faq-list {
  margin-top: 30px;
}

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e6ffe6; /* Light green for summary */
  border-bottom: 1px solid #d4ffd4;
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #017439;
  margin-left: 15px;
}

.page-payment-methods__faq-answer {
  padding: 20px;
  background-color: #ffffff;
  color: #333333;
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
  background-color: #d4ffd4;
}

/* CTA Section */
.page-payment-methods__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
  color: #FFFF00;
}

.page-payment-methods__cta-section p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

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

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

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

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-payment-methods__intro-description {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important;
    padding: 12px 20px;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

  .page-payment-methods__light-bg,
  .page-payment-methods__dark-section,
  .page-payment-methods__cta-section {
    padding: 50px 0;
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-payment-methods__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 20px;
  }

  .page-payment-methods__feature-card,
  .page-payment-methods__method-card {
    padding: 25px;
  }

  .page-payment-methods__method-details li {
    font-size: 0.95rem;
  }

  .page-payment-methods__security-list li {
    font-size: 1rem;
  }

  .page-payment-methods__tips-list li {
    font-size: 0.95rem;
  }

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

  .page-payment-methods__faq-answer {
    font-size: 0.95rem;
    padding: 15px;
  }

  /* Image responsive rules */
  .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-methods,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__security-measures,
  .page-payment-methods__tips-faq,
  .page-payment-methods__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px !important;
  }

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