.page-payment-methods {
  color: #333333; /* Default text color for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-payment-methods__hero-section {
  background-color: #0A2342; /* Primary dark blue background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-payment-methods__hero-container {
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary gold color for emphasis */
  line-height: 1.2;
  font-weight: 700;
}

.page-payment-methods__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

.page-payment-methods__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-payment-methods__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__hero-cta--primary {
  background-color: #FFD700;
  color: #0A2342;
  border: 2px solid #FFD700;
}

.page-payment-methods__hero-cta--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-payment-methods__hero-cta--secondary:hover {
  background-color: #FFD700;
  color: #0A2342;
  transform: translateY(-3px);
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
}

.page-payment-methods__overview-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.page-payment-methods__overview-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-payment-methods__overview-title {
  font-size: 2.8em;
  color: #0A2342;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-payment-methods__overview-text {
  font-size: 1.1em;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 20px;
  text-align: left;
}

.page-payment-methods__methods-grid {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-payment-methods__methods-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-payment-methods__methods-title {
  font-size: 2.8em;
  color: #0A2342;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-payment-methods__method-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__method-icon {
  width: 250px;
  height: 167px;
  object-fit: contain;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__method-name {
  font-size: 1.8em;
  color: #0A2342;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__method-description {
  font-size: 1em;
  line-height: 1.7;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
  text-align: left;
}

.page-payment-methods__method-cta {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FFD700;
  color: #0A2342;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-payment-methods__how-to-section {
  padding: 60px 20px;
  background-color: #0A2342;
  color: #ffffff;
  text-align: center;
}

.page-payment-methods__how-to-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-payment-methods__how-to-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-payment-methods__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__step-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-payment-methods__step-icon {
  width: 250px;
  height: 187px;
  object-fit: contain;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-payment-methods__step-description {
  font-size: 1em;
  line-height: 1.7;
  color: #cccccc;
  text-align: left;
}

.page-payment-methods__security-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.page-payment-methods__security-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-payment-methods__security-title {
  font-size: 2.8em;
  color: #0A2342;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-payment-methods__security-text {
  font-size: 1.1em;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 40px;
  text-align: left;
}

.page-payment-methods__security-cta {
  display: inline-block;
  padding: 15px 30px;
  background-color: #0A2342;
  color: #FFD700;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__security-cta:hover {
  background-color: #061a33;
  transform: translateY(-3px);
}

.page-payment-methods__faq-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-payment-methods__faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-payment-methods__faq-title {
  font-size: 2.8em;
  color: #0A2342;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-payment-methods__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.page-payment-methods__faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-payment-methods__faq-question {
  font-size: 1.4em;
  color: #0A2342;
  margin-bottom: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.page-payment-methods__faq-question::after {
  content: '+';
  font-size: 1.2em;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question::after {
  transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
  font-size: 1.05em;
  line-height: 1.7;
  color: #666666;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding-top: 0;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 300px; /* Adjust as needed */
  padding-top: 15px;
}

.page-payment-methods__cta-bottom-section {
  background-color: #0A2342;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-payment-methods__cta-bottom-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-payment-methods__cta-bottom-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-payment-methods__cta-bottom-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #FFD700;
  color: #0A2342;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 2.8em;
  }
  .page-payment-methods__hero-description {
    font-size: 1.2em;
  }
  .page-payment-methods__overview-title,
  .page-payment-methods__methods-title,
  .page-payment-methods__how-to-title,
  .page-payment-methods__security-title,
  .page-payment-methods__faq-title,
  .page-payment-methods__cta-bottom-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 60px 15px;
  }
  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1.1em;
  }
  .page-payment-methods__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__hero-cta {
    width: 100%;
    max-width: 300px;
  }

  .page-payment-methods__overview-section,
  .page-payment-methods__methods-grid,
  .page-payment-methods__how-to-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-bottom-section {
    padding: 40px 15px;
  }

  .page-payment-methods__overview-title,
  .page-payment-methods__methods-title,
  .page-payment-methods__how-to-title,
  .page-payment-methods__security-title,
  .page-payment-methods__faq-title,
  .page-payment-methods__cta-bottom-title {
    font-size: 2em;
  }

  .page-payment-methods__overview-text,
  .page-payment-methods__method-description,
  .page-payment-methods__step-description,
  .page-payment-methods__security-text,
  .page-payment-methods__faq-answer,
  .page-payment-methods__cta-bottom-description {
    font-size: 0.95em;
  }

  .page-payment-methods__method-cards,
  .page-payment-methods__steps-wrapper {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__method-icon,
  .page-payment-methods__step-icon {
    width: 250px;
    height: auto; /* Ensure images scale correctly */
    max-width: 100%;
  }

  .page-payment-methods__method-name,
  .page-payment-methods__step-title {
    font-size: 1.5em;
  }

  .page-payment-methods__faq-question {
    font-size: 1.2em;
  }

  /* Ensure all images within .page-payment-methods do not overflow */
  .page-payment-methods img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 1.8em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__overview-title,
  .page-payment-methods__methods-title,
  .page-payment-methods__how-to-title,
  .page-payment-methods__security-title,
  .page-payment-methods__faq-title,
  .page-payment-methods__cta-bottom-title {
    font-size: 1.6em;
  }
  .page-payment-methods__hero-cta,
  .page-payment-methods__security-cta,
  .page-payment-methods__cta-bottom-button {
    padding: 12px 20px;
    font-size: 1em;
  }
}