.page-payment-methods {
  background-color: #08160F; /* Background color from custom palette */
  color: #F2FFF6; /* Main text color from custom palette, light on dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as per instruction */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Slightly dim the background image for text readability */
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for better text contrast */
  border-radius: 10px;
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

.page-payment-methods__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-payment-methods__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size */
  color: #F2C14E; /* Gold color for section titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__section-description {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature Grid */
.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: #11271B; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border color */
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__feature-icon {
  width: 200px; /* Updated to reflect imageRequirements */
  height: 200px; /* Updated to reflect imageRequirements */
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-payment-methods__method-card {
  background-color: #11271B; /* Card BG color */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border color */
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-payment-methods__method-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, ensures min-size */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

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

.page-payment-methods__step-card {
  background-color: #11271B; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border color */
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-payment-methods__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #22C768; /* Auxiliary color */
  margin-bottom: 15px;
  display: block;
}

.page-payment-methods__card-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__card-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Secondary text color */
  flex-grow: 1; /* Allow text to grow and push link to bottom */
}

.page-payment-methods__card-link {
  display: inline-block;
  margin-top: 15px;
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-payment-methods__card-link:hover {
  color: #F2C14E; /* Gold on hover */
}

/* Important Notes */
.page-payment-methods__important-notes {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border color */
  padding: 30px;
  border-radius: 10px;
  margin-top: 50px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__notes-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__important-notes ul {
  list-style: disc;
  padding-left: 25px;
  color: #A7D9B8; /* Secondary text color */
}

.page-payment-methods__important-notes ul li {
  margin-bottom: 10px;
}

/* Call to action at bottom of sections */
.page-payment-methods__cta-bottom {
  margin-top: 50px;
  text-align: center;
}

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
  white-space: nowrap; /* Prevent text wrapping on desktop */
  word-wrap: normal;
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Main text color */
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4); /* Green shadow */
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.6);
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Button color */
  border: 2px solid #2AD16F; /* Button color border */
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.2);
}

.page-payment-methods__btn-secondary:hover {
  background-color: #2AD16F; /* Button color on hover */
  color: #F2FFF6; /* Main text color */
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.4);
}

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

.page-payment-methods__faq-item {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green for summary */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-payment-methods__faq-question:hover {
  background-color: #1E3A2A; /* Divider color on hover */
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  color: #2AD16F; /* Button color */
  margin-left: 15px;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-payment-methods__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  border-top: 1px solid #1E3A2A; /* Divider color */
}

/* Conclusion CTA */
.page-payment-methods__conclusion-cta {
  padding-bottom: 80px;
}

/* --- Responsive Design --- */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
  .page-payment-methods__hero-content {
    max-width: 700px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  }

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

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

  .page-payment-methods__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust for smaller screens */
    margin-bottom: 15px;
  }

  .page-payment-methods__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

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

  .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; /* Allow wrapping */
    word-wrap: break-word !important; /* Allow wrapping */
    padding: 12px 20px;
  }
  
  /* All content containers */
  .page-payment-methods__section,
  .page-payment-methods__features-grid,
  .page-payment-methods__method-cards,
  .page-payment-methods__steps-grid,
  .page-payment-methods__important-notes,
  .page-payment-methods__faq-list,
  .page-payment-methods__why-choose,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__deposit-guide,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__withdrawal-guide,
  .page-payment-methods__faq-section,
  .page-payment-methods__conclusion-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scrolling */
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

  .page-payment-methods__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

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

  .page-payment-methods__method-image {
    height: 180px;
  }

  .page-payment-methods__card-title {
    font-size: 1.2rem;
  }

  .page-payment-methods__card-text {
    font-size: 0.9rem;
  }

  .page-payment-methods__important-notes {
    padding: 20px;
  }

  .page-payment-methods__notes-title {
    font-size: 1.3rem;
  }

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

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

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