.page-payment-methods {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-payment-methods__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
}

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

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.5); /* Slightly darker background for content */
  border-radius: 10px;
}

.page-payment-methods__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Primary gold color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-payment-methods__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.page-payment-methods__button--primary {
  background-color: #FFD700; /* Primary gold */
  color: #8B0000; /* Secondary red for text */
}

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

.page-payment-methods__button--secondary {
  background-color: #8B0000; /* Secondary red */
  color: #FFD700; /* Primary gold for text */
  border: 2px solid #FFD700;
}

.page-payment-methods__button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-payment-methods__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #FFD700;
  color: #8B0000;
}

.page-payment-methods__button--small:hover {
  background-color: #e6c200;
}

.page-payment-methods__button--outline {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-payment-methods__button--outline:hover {
  background-color: #FFD700;
  color: #8B0000;
}

.page-payment-methods__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 25px;
  padding-top: 40px;
  line-height: 1.2;
}

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

.page-payment-methods__overview-section, 
.page-payment-methods__process-section, 
.page-payment-methods__security-section, 
.page-payment-methods__faq-section, 
.page-payment-methods__cta-section {
  padding: 80px 0;
  background-color: #222; /* Slightly lighter dark background for sections */
  margin-top: 20px;
}

.page-payment-methods__overview-section {
  background-color: #1a1a1a;
}

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

.page-payment-methods__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-payment-methods__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-payment-methods__card-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-payment-methods__process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-top: 50px;
}

.page-payment-methods__step {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-payment-methods__step-image {
  width: 400px; /* Enforce min 200px, wider for desktop */
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

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

.page-payment-methods__step-list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
  width: 100%;
  max-width: 500px;
}

.page-payment-methods__step-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  margin-bottom: 10px;
  border-left: 4px solid #8B0000;
  border-radius: 5px;
  color: #f0f0f0;
  font-size: 1.05em;
}

.page-payment-methods__step-list li strong {
  color: #FFD700;
}

.page-payment-methods__step-text {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-payment-methods__link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-payment-methods__link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-payment-methods__section-footer-text {
  font-size: 1em;
  color: #cccccc;
  text-align: center;
  margin-top: 40px;
}

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

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

.page-payment-methods__feature-icon {
  width: 200px; /* Minimum 200px */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-payment-methods__feature-text {
  font-size: 0.95em;
  color: #cccccc;
}

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

.page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  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: #8B0000;
}

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

.page-payment-methods__faq-answer {
  font-size: 1em;
  color: #cccccc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding-top: 0;
}

.page-payment-methods__faq-answer.active {
  max-height: 200px; /* Adjust based on expected content length */
  padding-top: 15px;
}

.page-payment-methods__cta-section {
  text-align: center;
  background-color: #8B0000; /* Secondary red for CTA */
  color: #FFD700;
  padding: 100px 0;
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
  color: #FFD700;
  margin-bottom: 20px;
}

.page-payment-methods__cta-section .page-payment-methods__section-description {
  color: #ffffff;
  margin-bottom: 40px;
}

.page-payment-methods__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-payment-methods__detail-list {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-payment-methods__detail-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

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

.page-payment-methods__detail-link {
  color: #FFD700;
  text-decoration: none;
}

.page-payment-methods__detail-link:hover {
  text-decoration: underline;
  color: #e6c200;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 3em;
  }
  .page-payment-methods__section-title {
    font-size: 2.5em;
  }
  .page-payment-methods__card-image, .page-payment-methods__step-image, .page-payment-methods__feature-icon {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-title {
    font-size: 2.5em;
  }
  .page-payment-methods__hero-description {
    font-size: 1.1em;
  }
  .page-payment-methods__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__grid, .page-payment-methods__process-steps, .page-payment-methods__security-features {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__card, .page-payment-methods__step, .page-payment-methods__feature-item, .page-payment-methods__detail-item {
    padding: 20px;
  }
  .page-payment-methods__step-image {
    width: 100%; /* Ensure images don't overflow */
    height: auto;
    max-width: 100%; /* CRITICAL: Prevent overflow */
  }
  .page-payment-methods__card-image, .page-payment-methods__feature-icon {
    width: 100%;
    height: auto;
    max-width: 100%; /* CRITICAL: Prevent overflow */
  }
  .page-payment-methods__hero-section {
    min-height: 500px;
  }
  .page-payment-methods__hero-content {
    padding: 20px;
  }
  .page-payment-methods__faq-question {
    font-size: 1.1em;
  }
  .page-payment-methods__step-list li {
    padding: 10px 15px;
  }
  .page-payment-methods__overview-section, 
  .page-payment-methods__process-section, 
  .page-payment-methods__security-section, 
  .page-payment-methods__faq-section, 
  .page-payment-methods__cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__button {
    width: 90%;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__card-title {
    font-size: 1.5em;
  }
  .page-payment-methods__step-title {
    font-size: 1.6em;
  }
  .page-payment-methods__feature-title {
    font-size: 1.4em;
  }
}