.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Inherit from body or shared.css */
}

.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;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #1a1a1a; /* Slightly lighter dark for hero */
  color: #ffffff;
  overflow: hidden;
}

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

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffc107;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-payment-methods__btn-primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

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

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

.page-payment-methods__btn-secondary:hover {
  background-color: #ffc107;
  color: #121212;
}

/* General Section Styles */
.page-payment-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffc107; /* Highlight titles with accent color */
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-payment-methods__introduction-section,
.page-payment-methods__deposit-process,
.page-payment-methods__withdrawal-process,
.page-payment-methods__security-section,
.page-payment-methods__cta-section {
  padding: 60px 0;
  background-color: #007bff; /* Brand primary color for dark sections */
  color: #ffffff; /* White text on primary background */
}

.page-payment-methods__deposit-methods,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__important-notes,
.page-payment-methods__support-section,
.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333; /* Dark text on light background */
}

.page-payment-methods__deposit-methods .page-payment-methods__section-title,
.page-payment-methods__withdrawal-methods .page-payment-methods__section-title,
.page-payment-methods__important-notes .page-payment-methods__section-title,
.page-payment-methods__support-section .page-payment-methods__section-title,
.page-payment-methods__faq-section .page-payment-methods__section-title {
  color: #007bff; /* Primary color for titles on light background */
}

/* Grid Layout for Cards */
.page-payment-methods__grid-layout {
  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: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #333333; /* Dark text on white card background */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-payment-methods__card-image {
  width: 100%;
  max-width: 400px; /* Ensure images in cards are large */
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-payment-methods__btn-text {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.page-payment-methods__btn-text:hover {
  color: #0056b3;
}

.page-payment-methods__arrow {
  transition: transform 0.3s ease;
}

.page-payment-methods__btn-text:hover .page-payment-methods__arrow {
  transform: translateX(5px);
}

.page-payment-methods__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* Process List */
.page-payment-methods__process-list {
  list-style: none;
  padding: 0;
  counter-reset: process-step;
  max-width: 800px;
  margin: 40px auto;
}

.page-payment-methods__process-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 15px;
}

.page-payment-methods__list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffc107;
  color: #121212;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 1.2em;
}

.page-payment-methods__process-list li p {
  margin: 0;
  text-align: left;
  font-size: 1.1em;
}

.page-payment-methods__process-list li strong {
  color: #ffc107;
}

/* Important Notes */
.page-payment-methods__notes-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-payment-methods__notes-list li {
  background-color: #ffffff;
  border-left: 5px solid #007bff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
  font-size: 1.05em;
}

.page-payment-methods__list-strong {
  color: #007bff;
}

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

.page-payment-methods__feature-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  color: #ffffff;
}

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

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

.page-payment-methods__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Support Section */
.page-payment-methods__support-channels {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.page-payment-methods__support-channels p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-payment-methods__support-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-payment-methods__support-list li {
  font-size: 1.05em;
  margin-bottom: 10px;
  color: #555555;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-payment-methods__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #007bff;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #007bff;
  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, padding 0.3s ease;
  color: #555555;
}

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

.page-payment-methods__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* CTA Section */
.page-payment-methods__cta-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.page-payment-methods__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

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

  .page-payment-methods__section-title {
    font-size: 2em;
  }

  .page-payment-methods__cta-title {
    font-size: 2.4em;
  }

  .page-payment-methods__card-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
  }

  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }

  .page-payment-methods__hero-description {
    font-size: 1em;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods__btn-large,
  .page-payment-methods__cta-button,
  .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;
  }

  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
  }

  .page-payment-methods__text-block {
    font-size: 0.95em;
  }

  .page-payment-methods__card {
    padding: 20px;
  }

  .page-payment-methods__card-title {
    font-size: 1.5em;
  }

  .page-payment-methods__card-description {
    font-size: 0.9em;
  }

  .page-payment-methods__process-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-payment-methods__list-icon {
    margin-bottom: 10px;
  }

  .page-payment-methods__feature-icon {
    width: 200px !important; /* Enforce min size on mobile */
    height: 200px !important;
  }

  .page-payment-methods__cta-title {
    font-size: 2em;
  }

  .page-payment-methods img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__important-notes,
  .page-payment-methods__security-section,
  .page-payment-methods__support-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-payment-methods__faq-question {
    padding: 15px 20px;
  }

  .page-payment-methods__faq-title {
    font-size: 1.1em;
  }

  .page-payment-methods__faq-answer {
    padding: 0 20px;
  }

  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 1.8em;
  }

  .page-payment-methods__section-title,
  .page-payment-methods__cta-title {
    font-size: 1.6em;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-payment-methods__btn-large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  .page-payment-methods__grid-layout {
    grid-template-columns: 1fr;
  }
}