.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8;
}

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

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  min-height: 500px;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff;
}

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Section Titles */
.page-payment-methods__section-title {
  font-size: 2.5em;
  color: #002060;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-payment-methods__section-title.page-payment-methods__dark-bg {
  color: #FFD700;
}

/* Text Blocks */
.page-payment-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-payment-methods__text-block.page-payment-methods__dark-bg {
  color: #f0f0f0;
}

/* Buttons */
.page-payment-methods__btn-primary {
  display: inline-block;
  background-color: #FFD700; /* Gold */
  color: #002060; /* Dark Blue */
  padding: 15px 30px;
  border-radius: 5px;
  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__btn-primary:hover {
  background-color: #e0b800;
  transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #FFD700;
  color: #002060;
  transform: translateY(-2px);
}

/* Background Colors */
.page-payment-methods__dark-bg {
  background-color: #002060;
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

/* Intro Section */
.page-payment-methods__intro-section {
  padding: 80px 0;
}

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

.page-payment-methods__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-payment-methods__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-payment-methods__card-title {
  font-size: 1.8em;
  color: #002060;
  margin-bottom: 15px;
}

.page-payment-methods__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-payment-methods__feature-list {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
  margin-top: auto; /* Push list to bottom */
}

.page-payment-methods__feature-list li {
  margin-bottom: 8px;
  color: #555555;
  position: relative;
  padding-left: 25px;
}

.page-payment-methods__feature-list li::before {
  content: '✓';
  color: #FFD700;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Guide Section */
.page-payment-methods__guide-section {
  padding: 80px 0;
}

.page-payment-methods__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 40px auto;
}

.page-payment-methods__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
  padding-left: 70px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-payment-methods__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFD700;
  color: #002060;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3em;
}

.page-payment-methods__step-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-payment-methods__step-item p {
  color: #f0f0f0;
}

.page-payment-methods__step-item a {
  color: #FFD700;
  text-decoration: underline;
}

.page-payment-methods__step-item a:hover {
  color: #e0b800;
}

.page-payment-methods__cta-block {
  text-align: center;
  margin-top: 50px;
}

/* Security Section */
.page-payment-methods__security-section {
  padding: 80px 0;
}

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

.page-payment-methods__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-payment-methods__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__feature-title {
  font-size: 1.6em;
  color: #002060;
  margin-bottom: 10px;
}

.page-payment-methods__feature-description {
  color: #555555;
}

/* Support Section */
.page-payment-methods__support-section {
  padding: 80px 0;
  text-align: center;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  padding: 80px 0;
}

.page-payment-methods__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-payment-methods__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  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.2em;
  font-weight: bold;
  color: #002060;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: #e6e6e6;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-payment-methods__faq-answer p {
  color: #555555;
  margin-bottom: 0;
}

/* Bottom CTA Section */
.page-payment-methods__cta-bottom {
  position: relative;
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-payment-methods__cta-bottom .page-payment-methods__container {
  position: relative;
  z-index: 1;
}

.page-payment-methods__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: 0;
}

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

@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-payment-methods__hero-section {
    padding: 80px 0;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-payment-methods__container,
  .page-payment-methods__card,
  .page-payment-methods__feature-item,
  .page-payment-methods__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__card {
    padding: 20px;
  }
  .page-payment-methods__card-image,
  .page-payment-methods__feature-icon,
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-payment-methods__step-item {
    padding: 20px;
    padding-left: 60px;
  }
  .page-payment-methods__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
    left: 15px;
  }
  .page-payment-methods__step-title {
    font-size: 1.3em;
  }
  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-payment-methods__faq-answer {
    padding: 15px 20px;
  }
  .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;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }
  .page-payment-methods__cta-block,
  .page-payment-methods__support-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-payment-methods__method-grid,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__cta-bottom {
    padding: 60px 0;
  }
}