.page-payment-methods {
  color: #F2FFF6; /* Default text color for dark body */
  background-color: #08160F; /* Main background color */
}

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

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding as per instruction */
  background-color: #08160F; /* Ensure consistency */
  overflow: hidden; /* For image */
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.5); /* Dim the image for text readability */
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-payment-methods__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
  color: #F2FFF6;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsiveness */
  max-width: 100%; /* For mobile */
  white-space: normal; /* For button text wrap */
  word-wrap: break-word; /* For button text wrap */
  text-align: center;
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Main text color for button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Use a brighter green for secondary text */
  border: 2px solid #2AD16F;
  box-shadow: none;
}

.page-payment-methods__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

.page-payment-methods__introduction-section,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__tips-section,
.page-payment-methods__faq-section {
  background-color: #ffffff; /* Light background for these sections */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-payment-methods__deposit-methods,
.page-payment-methods__security-features,
.page-payment-methods__cta-section {
  background-color: #08160F; /* Dark background for these sections */
  color: #F2FFF6; /* Light text for dark background */
  padding: 60px 0;
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-payment-methods__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: inherit;
}

.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 {
  background-color: #11271B; /* Card background color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #F2FFF6; /* Light text on card */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-payment-methods__method-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
}

.page-payment-methods__method-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #57E38D; /* Glow color for titles */
  margin-bottom: 15px;
}

.page-payment-methods__method-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-payment-methods__method-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
  max-width: 300px;
}

.page-payment-methods__method-features li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #A7D9B8;
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

.page-payment-methods__method-features li strong {
  color: #F2FFF6;
}

.page-payment-methods__method-features li::before {
  content: '✓';
  color: #57E38D;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-payment-methods__security-list,
.page-payment-methods__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  color: inherit;
}

.page-payment-methods__security-list li,
.page-payment-methods__tips-list li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  padding-left: 35px;
  position: relative;
  color: inherit;
}

.page-payment-methods__security-list li strong,
.page-payment-methods__tips-list li strong {
  color: #57E38D;
}

.page-payment-methods__security-list li::before,
.page-payment-methods__tips-list li::before {
  content: '🛡️'; /* Shield icon for security */
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #57E38D;
}

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

.page-payment-methods__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-payment-methods__faq-item[open] {
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  position: relative;
  list-style: none; /* Remove default marker */
}

.page-payment-methods__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #11A84E;
  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: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 0 15px;
  }

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

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

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

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-payment-methods__security-list,
  .page-payment-methods__tips-list {
    grid-template-columns: 1fr;
  }

  /* Image responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__hero-image {
    position: relative;
    height: 250px;
    filter: brightness(0.7); /* Slightly less dim on mobile */
  }

  /* All containing elements for images, videos, buttons */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__cta-buttons,
  .page-payment-methods__method-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure content sections have appropriate padding */
  .page-payment-methods__introduction-section,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__security-features,
  .page-payment-methods__tips-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-payment-methods__introduction-section > .page-payment-methods__container,
  .page-payment-methods__deposit-methods > .page-payment-methods__container,
  .page-payment-methods__withdrawal-methods > .page-payment-methods__container,
  .page-payment-methods__security-features > .page-payment-methods__container,
  .page-payment-methods__tips-section > .page-payment-methods__container,
  .page-payment-methods__faq-section > .page-payment-methods__container,
  .page-payment-methods__cta-section > .page-payment-methods__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}