.page-payment-methods {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-payment-methods__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 0;
  margin-bottom: 60px;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-payment-methods__hero-container {
  position: relative;
  max-width: 100%; /* Ensure no overflow */
  margin: 0 auto;
}

.page-payment-methods__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-payment-methods__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-payment-methods__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color for CTA */
  color: #0A2463; /* Main color for text on CTA */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-payment-methods__info-section, 
.page-payment-methods__deposit-methods, 
.page-payment-methods__withdrawal-methods, 
.page-payment-methods__security-features, 
.page-payment-methods__faq-section, 
.page-payment-methods__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-payment-methods__section-title {
  font-size: 2.2em;
  color: #0A2463; /* Main color for section titles */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-payment-methods__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Auxiliary color for underline */
  border-radius: 2px;
}

.page-payment-methods__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-payment-methods__method-card, 
.page-payment-methods__security-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Distributes space between items */
  min-height: 450px; /* Ensure cards have consistent height */
}

.page-payment-methods__method-card:hover, 
.page-payment-methods__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__method-icon, 
.page-payment-methods__security-icon {
  width: 200px;
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: contain;
  min-height: 200px; /* Ensure image is at least 200px tall */
}

.page-payment-methods__method-title, 
.page-payment-methods__security-title {
  font-size: 1.6em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-payment-methods__method-text, 
.page-payment-methods__security-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows text to take available space */
}

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

.page-payment-methods__method-features li {
  margin-bottom: 8px;
  color: #444444;
  font-size: 0.95em;
  padding-left: 25px;
  position: relative;
}

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

.page-payment-methods__card-button {
  display: inline-block;
  background-color: #0A2463;
  color: #FFD700;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto; /* Pushes button to the bottom */
}

.page-payment-methods__card-button:hover {
  background-color: #1a3c7c;
}

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

.page-payment-methods__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 25px;
  text-align: left;
  transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-question {
  font-size: 1.3em;
  color: #0A2463;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-payment-methods__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FFD700;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question::after {
  content: '-';
}

.page-payment-methods__faq-answer {
  font-size: 1em;
  color: #555555;
  display: none; /* Hidden by default */
  padding-top: 10px;
  border-top: 1px solid #eeeeee;
  margin-top: 15px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  display: block;
}

.page-payment-methods__cta-section {
  background-color: #0A2463;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 80px;
}

.page-payment-methods__cta-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-payment-methods__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  margin: 0 10px;
}

.page-payment-methods__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
}

.page-payment-methods__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

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

@media (max-width: 768px) {
  .page-payment-methods__hero-title {
    font-size: 2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-payment-methods__method-grid, 
  .page-payment-methods__security-grid {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__method-card, 
  .page-payment-methods__security-item {
    padding: 20px;
    min-height: auto; /* Allow height to adjust on mobile */
  }
  .page-payment-methods__method-icon, 
  .page-payment-methods__security-icon {
    width: 100%; /* Ensure images don't overflow */
    height: auto;
    min-width: 200px; /* Minimum width for content images */
    min-height: 200px; /* Minimum height for content images */
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-description {
    font-size: 0.95em;
  }
  .page-payment-methods__cta-title {
    font-size: 2em;
  }
  .page-payment-methods__cta-description {
    font-size: 1.1em;
  }
  .page-payment-methods__cta-button--large {
    display: block;
    margin: 15px auto;
  }
  .page-payment-methods__cta-button--secondary {
    display: block;
    margin: 15px auto;
  }
  .page-payment-methods__info-section, 
  .page-payment-methods__deposit-methods, 
  .page-payment-methods__withdrawal-methods, 
  .page-payment-methods__security-features, 
  .page-payment-methods__faq-section, 
  .page-payment-methods__cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  /* Ensure content images do not cause horizontal scroll */
  .page-payment-methods img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 1.6em;
  }
  .page-payment-methods__hero-description {
    font-size: 0.9em;
  }
  .page-payment-methods__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-payment-methods__section-title {
    font-size: 1.5em;
  }
  .page-payment-methods__method-title, 
  .page-payment-methods__security-title {
    font-size: 1.4em;
  }
  .page-payment-methods__faq-question {
    font-size: 1.1em;
  }
  .page-payment-methods__cta-title {
    font-size: 1.8em;
  }
}