.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--background-color, #1a1a1a); /* Assuming dark background from shared.css */
}

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-payment-methods__hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
  object-fit: cover;
  cursor: pointer;
}

.page-payment-methods__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

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

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

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

.page-payment-methods__section {
  padding: 60px 20px;
}

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

.page-payment-methods__content-area {
  background-color: #ffffff; /* Light background for content area */
  color: #333333; /* Dark text for light background */
}

.page-payment-methods__dark-bg {
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

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

.page-payment-methods__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-payment-methods__image--centered {
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-payment-methods__card:hover {
  transform: translateY(-5px);
}

.page-payment-methods__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-payment-methods__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-payment-methods__card-text {
  font-size: 1em;
  color: #555555;
}

.page-payment-methods__ordered-list,
.page-payment-methods__unordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-payment-methods__unordered-list {
  list-style-type: disc;
}

.page-payment-methods__ordered-list li,
.page-payment-methods__unordered-list li {
  margin-bottom: 10px;
  color: inherit;
}

.page-payment-methods__faq-container {
  max-width: 900px;
  margin: 40px auto;
}

.page-payment-methods__faq-item {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #26A9E0;
  list-style: none; /* Remove default marker */
}

.page-payment-methods__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

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

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

.page-payment-methods__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.1em;
  border-top: 1px solid #e0e0e0;
  background-color: #ffffff;
  color: #333333;
}

.page-payment-methods__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-payment-methods__cta-content {
  max-width: 900px;
}

.page-payment-methods__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-payment-methods__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-payment-methods__cta-buttons--center {
  margin-top: 40px;
}

.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: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background-color: #EA7C07; /* Login/CTA color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-payment-methods__btn-primary:hover {
  background-color: #d46a00;
  border-color: #d46a00;
}

.page-payment-methods__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 3em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-payment-methods__hero-title {
    font-size: 2.5em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__section {
    padding: 40px 15px;
  }
  .page-payment-methods__container {
    padding: 0 15px;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-payment-methods__text-block,
  .page-payment-methods__ordered-list li,
  .page-payment-methods__unordered-list li,
  .page-payment-methods__card-text {
    font-size: 0.95em;
  }
  .page-payment-methods__card-grid {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-payment-methods__faq-answer {
    font-size: 1em;
    padding: 10px 20px 15px;
  }
  .page-payment-methods__cta-title {
    font-size: 2em;
  }
  .page-payment-methods__cta-description {
    font-size: 1em;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* Ensure all images are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__cta-section,
  .page-payment-methods__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  /* Video specific responsiveness */
  .page-payment-methods video,
  .page-payment-methods__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__hero-video {
      width: 100% !important;
      height: auto !important;
      min-width: unset;
      min-height: unset;
      position: relative;
      transform: none;
  }
  .page-payment-methods__hero-section {
      flex-direction: column;
      height: auto;
  }
  .page-payment-methods__hero-overlay {
      display: none;
  }
  .page-payment-methods__hero-content {
      order: 2;
      padding: 20px 15px;
      background: rgba(0,0,0,0.7);
      z-index: 2;
      width: 100%;
  }
  .page-payment-methods__hero-video {
      order: 1;
      position: relative;
      left: unset;
      top: unset;
      transform: none;
  }
}