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

.page-payment-methods__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 40px 0; /* Small top padding, more bottom padding */
  background-color: #2F6BFF;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Ensure image wrapper does not exceed typical screen width */
  margin-bottom: 20px;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9; /* Default aspect ratio for hero */
  object-fit: cover;
  object-position: center;
}

.page-payment-methods__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 1; /* Ensure content is above any background elements but not overlaying the image */
}

.page-payment-methods__hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-payment-methods__hero-description {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  margin-bottom: 30px;
  line-height: 1.6;
  color: #FFFFFF;
}

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

.page-payment-methods__hero-cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-payment-methods__overview-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

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

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__method-card-image {
  width: 100%;
  max-width: 400px; /* Constrain image width within card */
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 20px auto;
  display: block;
}

.page-payment-methods__method-card-title {
  font-size: 1.4rem;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-payment-methods__method-card-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1F2D3D;
}

.page-payment-methods__security-section {
  background-color: #2F6BFF;
  color: #FFFFFF;
  padding: 80px 20px;
  margin: 0 auto;
}

.page-payment-methods__security-section .page-payment-methods__section-title {
  color: #FFFFFF;
}

.page-payment-methods__security-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-payment-methods__security-text {
  flex: 1;
  max-width: 600px;
  text-align: center;
}

.page-payment-methods__security-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

.page-payment-methods__security-cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-payment-methods__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-payment-methods__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  padding: 20px 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__faq-question {
  font-size: 1.2rem;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  font-weight: 600;
  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.5rem;
  line-height: 1;
  color: #2F6BFF;
  transition: transform 0.3s ease;
}

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

.page-payment-methods__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
  display: none;
  padding-top: 10px;
  border-top: 1px solid #D6E2FF;
  margin-top: 10px;
}

.page-payment-methods__faq-answer.active {
  display: block;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-payment-methods__security-content {
    flex-direction: row;
    text-align: left;
  }
  .page-payment-methods__security-text {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-bottom: 30px;
  }
  .page-payment-methods__hero-title {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }
  .page-payment-methods__hero-description {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }
  .page-payment-methods__overview-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section {
    padding: 40px 15px;
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }
  .page-payment-methods__section-description {
    margin-bottom: 30px;
  }
  .page-payment-methods__methods-grid {
    grid-template-columns: 1fr;
  }
  .page-payment-methods__method-card-image {
    max-width: 100%;
  }
  .page-payment-methods__security-content {
    flex-direction: column;
  }
  .page-payment-methods__security-image {
    max-width: 100%;
  }
  .page-payment-methods__faq-question {
    font-size: 1.1rem;
  }
  .page-payment-methods__faq-answer {
    font-size: 0.95rem;
  }
  /* Mobile content area image constraint */
  .page-payment-methods img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure images in content area are not too small */
.page-payment-methods__method-card-image,
.page-payment-methods__security-image {
  min-width: 200px;
  min-height: 200px;
}

/* CSS for color contrast */
/* Main text on background */
.page-payment-methods, .page-payment-methods__section-description, .page-payment-methods__method-card-description, .page-payment-methods__faq-answer {
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  /* Contrast ratio for #1F2D3D on #F4F7FB is 10.3:1 (AA compliant) */
}

/* Titles on background */
.page-payment-methods__section-title {
  color: #1F2D3D; /* Text Main */
  /* Contrast ratio for #1F2D3D on #F4F7FB is 10.3:1 (AA compliant) */
}

/* Card titles on card background */
.page-payment-methods__method-card-title, .page-payment-methods__faq-question {
  color: #000000; /* Custom Color_1776249996415 */
  background-color: #FFFFFF; /* Card BG */
  /* Contrast ratio for #000000 on #FFFFFF is 21:1 (AA compliant) */
}

/* Hero text on hero background */
.page-payment-methods__hero-title, .page-payment-methods__hero-description {
  color: #FFFFFF;
  background-color: #2F6BFF; /* Primary color as hero background */
  /* Contrast ratio for #FFFFFF on #2F6BFF is 4.7:1 (AA compliant) */
}

/* Button text on button background */
.page-payment-methods__hero-cta-button, .page-payment-methods__security-cta-button {
  color: #FFFFFF;
  /* Button gradient has #4A8BFF and #2F6BFF, both provide good contrast with white text */
  /* Example: #FFFFFF on #2F6BFF is 4.7:1 (AA compliant) */
}

/* Security section text on security section background */
.page-payment-methods__security-section p {
  color: #FFFFFF;
  background-color: #2F6BFF;
  /* Contrast ratio for #FFFFFF on #2F6BFF is 4.7:1 (AA compliant) */
}