:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #001f4d; /* A darker shade of blue for contrast */
  --card-background-light: #ffffff;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-payment-methods {
  font-family: 'Arial', sans-serif;
  color: var(--dark-text-color);
  line-height: 1.6;
  background-color: var(--background-light);
}

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

/* Top padding for fixed header */
.page-payment-methods__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: var(--light-text-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-payment-methods__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--light-text-color);
}

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

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

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

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-payment-methods__btn-primary {
  background: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-payment-methods__btn-primary:hover {
  background: #e6b000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-secondary {
  background: var(--primary-color);
  color: var(--light-text-color);
}

.page-payment-methods__btn-secondary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__hero-image-wrapper {
  margin-top: 40px;
}

.page-payment-methods__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
}

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

.page-payment-methods__deposit-section,
.page-payment-methods__policy-section,
.page-payment-methods__tips-section,
.page-payment-methods__faq-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--dark-text-color);
}

.page-payment-methods__withdrawal-section,
.page-payment-methods__support-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--light-text-color);
}

.page-payment-methods__withdrawal-section .page-payment-methods__section-title,
.page-payment-methods__support-section .page-payment-methods__section-title {
  color: var(--light-text-color);
}

.page-payment-methods__withdrawal-section .page-payment-methods__section-description,
.page-payment-methods__support-section .page-payment-methods__section-description {
  color: rgba(255, 255, 255, 0.85);
}

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

.page-payment-methods__method-card,
.page-payment-methods__policy-item,
.page-payment-methods__tip-item {
  background: var(--card-background-light);
  color: var(--dark-text-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__method-card:hover,
.page-payment-methods__policy-item:hover,
.page-payment-methods__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__dark-bg-card {
  background: var(--card-background-dark);
  color: var(--light-text-color);
}

.page-payment-methods__dark-bg-card .page-payment-methods__card-title {
  color: var(--secondary-color);
}

.page-payment-methods__dark-bg-card .page-payment-methods__card-text,
.page-payment-methods__dark-bg-card .page-payment-methods__card-list li,
.page-payment-methods__dark-bg-card .page-payment-methods__card-note {
  color: rgba(255, 255, 255, 0.8);
}

.page-payment-methods__card-title,
.page-payment-methods__item-title,
.page-payment-methods__tip-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-payment-methods__dark-bg-card .page-payment-methods__card-title {
  color: var(--secondary-color);
}

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

.page-payment-methods__card-text,
.page-payment-methods__item-text,
.page-payment-methods__tip-text {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-payment-methods__card-list,
.page-payment-methods__item-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.page-payment-methods__card-list li,
.page-payment-methods__item-list li {
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
  font-size: 0.95em;
}

.page-payment-methods__card-list li::before,
.page-payment-methods__item-list li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-payment-methods__dark-bg-card .page-payment-methods__card-list li::before {
  color: var(--secondary-color);
}

.page-payment-methods__card-note {
  font-size: 0.9em;
  color: #666;
  margin-top: 15px;
}

.page-payment-methods__dark-bg-card .page-payment-methods__card-note {
  color: rgba(255, 255, 255, 0.6);
}

.page-payment-methods__policy-item .page-payment-methods__card-image {
  max-height: 150px;
  object-fit: contain;
  margin-top: 15px;
}

.page-payment-methods__support-section .page-payment-methods__contact-info {
  margin-top: 30px;
  font-size: 1.2em;
  text-align: center;
  color: var(--light-text-color);
}

.page-payment-methods__support-section .page-payment-methods__contact-info p {
  margin-bottom: 10px;
}

.page-payment-methods__contact-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-payment-methods__contact-link:hover {
  text-decoration: underline;
}

.page-payment-methods__tip-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-background-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-payment-methods__faq-question:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dark-text-color);
  pointer-events: none;
}

.page-payment-methods__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change to X or rotate */
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fefefe;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

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

.page-payment-methods__faq-answer p {
  margin: 0;
  color: var(--dark-text-color);
}

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

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

  .page-payment-methods__method-grid,
  .page-payment-methods__policy-grid,
  .page-payment-methods__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-payment-methods__hero-section,
  .page-payment-methods__deposit-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__policy-section,
  .page-payment-methods__support-section,
  .page-payment-methods__tips-section,
  .page-payment-methods__faq-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    padding-bottom: 40px;
  }

  .page-payment-methods__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-payment-methods__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-payment-methods__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .page-payment-methods__deposit-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__policy-section,
  .page-payment-methods__support-section,
  .page-payment-methods__tips-section,
  .page-payment-methods__faq-section {
    padding: 40px 0;
  }

  .page-payment-methods__method-grid,
  .page-payment-methods__policy-grid,
  .page-payment-methods__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__policy-item,
  .page-payment-methods__tip-item {
    padding: 25px;
  }

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

  .page-payment-methods__card-image,
  .page-payment-methods__policy-item .page-payment-methods__card-image,
  .page-payment-methods__tip-icon {
    max-width: 100% !important;
    height: auto !important;
    width: auto;
  }

  .page-payment-methods__contact-info {
    font-size: 1em;
  }

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

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

  .page-payment-methods__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

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

  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px 20px !important;
  }

  /* Ensure all images are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__container,
  .page-payment-methods__method-card,
  .page-payment-methods__policy-item,
  .page-payment-methods__tip-item,
  .page-payment-methods__faq-list,
  .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__faq-list {
    padding-left: 0;
    padding-right: 0;
  }
}

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

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

  .page-payment-methods__cta-button {
    font-size: 0.95em;
    padding: 10px 20px;
  }

  .page-payment-methods__card-title,
  .page-payment-methods__item-title,
  .page-payment-methods__tip-title {
    font-size: 1.3em;
  }

  .page-payment-methods__card-list li,
  .page-payment-methods__item-list li,
  .page-payment-methods__card-text,
  .page-payment-methods__item-text,
  .page-payment-methods__tip-text {
    font-size: 0.9em;
  }

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