.page-payment-methods {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-payment-methods__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  background-color: #F4F7FB;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 30px;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-payment-methods__hero-content {
  text-align: center;
  padding: 0 20px;
}

.page-payment-methods__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.1rem;
  color: #1F2D3D;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-payment-methods__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-payment-methods__hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-payment-methods__section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
}

.page-payment-methods__section-description {
  font-size: 1rem;
  color: #1F2D3D;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.page-payment-methods__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.page-payment-methods__method-card {
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(47, 107, 255, 0.1);
}

.page-payment-methods__method-icon {
  width: 100%; /* Ensure images fill card width */
  height: auto; /* Maintain aspect ratio */
  max-width: 400px; /* Max width for images within cards */
  min-width: 200px; /* Min width for images within cards */
  min-height: 200px; /* Min height for images within cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__method-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1F2D3D;
  margin-bottom: 10px;
}

.page-payment-methods__method-text {
  font-size: 0.95rem;
  color: #1F2D3D;
}

.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-payment-methods__security-item {
  background-color: #F4F7FB;
  border-left: 4px solid #2F6BFF;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1rem;
  color: #1F2D3D;
}

.page-payment-methods__security-link {
  display: block;
  text-align: center;
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 20px;
}

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

.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-payment-methods__faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1F2D3D;
  padding: 18px 25px;
  cursor: pointer;
  position: relative;
  margin: 0;
  background-color: #EBF2FF;
  transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: #2F6BFF;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-payment-methods__faq-answer {
  font-size: 1rem;
  color: #1F2D3D;
  padding: 0 25px 15px 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 200px; /* Adjust as needed for content */
  padding-top: 15px;
}

.page-payment-methods__faq-link {
  display: block;
  text-align: center;
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 30px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-payment-methods__hero-title {
    font-size: 2rem;
  }

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

  .page-payment-methods__hero-cta {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

  .page-payment-methods__section-description {
    font-size: 0.95rem;
  }

  .page-payment-methods__methods-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-payment-methods__method-card {
    padding: 20px;
  }

  .page-payment-methods__method-icon {
    max-width: 100%;
    height: auto;
  }

  .page-payment-methods__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-payment-methods__faq-question::after {
    right: 20px;
  }

  .page-payment-methods__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px 10px 20px;
  }

  /* Mobile image overflow prevention */
  .page-payment-methods img {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-payment-methods__container {
    padding: 10px;
  }

  .page-payment-methods__hero-content {
    padding: 0 10px;
  }

  .page-payment-methods__methods-grid {
    gap: 20px;
  }
}