.page-payment-methods {
  color: #333333; /* Dark text for light body background #f4f4f4 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px;
}

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #003366; /* Using primary color for hero background */
  color: #ffffff;
}

.page-payment-methods__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-payment-methods__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Limit image width in hero for better composition */
}

.page-payment-methods__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-payment-methods__hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFCC00; /* Highlight title with accent color */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFCC00; /* Accent color for CTA */
  color: #003366; /* Dark text for accent background */
  text-decoration: none;
  border-radius: 5px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-payment-methods__cta-button:hover {
  background: #e6b800; /* Slightly darker accent on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.page-payment-methods__section:nth-of-type(odd) {
  background-color: #ffffff;
}

.page-payment-methods__dark-section {
  background-color: #003366;
  color: #ffffff;
}

.page-payment-methods__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #003366;
}

.page-payment-methods__section-title--light {
  color: #FFCC00;
}

.page-payment-methods__subtitle {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #003366;
}

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

.page-payment-methods__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333333;
}

.page-payment-methods__text-block--light {
  color: #f0f0f0;
}

.page-payment-methods__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-payment-methods__list li {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333333;
}

.page-payment-methods__list--tips li {
  list-style-type: '💡 ';
  padding-left: 10px;
}

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

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

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

.page-payment-methods__card--dark-bg {
  background: #003366;
  color: #ffffff;
}

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

.page-payment-methods__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFCC00;
}

.page-payment-methods__card--dark-bg .page-payment-methods__card-title {
  color: #FFCC00;
}

.page-payment-methods__card-subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #003366;
}

.page-payment-methods__card--dark-bg .page-payment-methods__card-subtitle {
  color: #f0f0f0;
}

.page-payment-methods__card-description,
.page-payment-methods__card-note {
  font-size: 15px;
  margin-bottom: 15px;
  color: #333333;
}

.page-payment-methods__card--dark-bg .page-payment-methods__card-description,
.page-payment-methods__card--dark-bg .page-payment-methods__card-note {
  color: #f0f0f0;
}

.page-payment-methods__card-list {
  list-style: decimal inside;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-payment-methods__card-list li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #333333;
}

.page-payment-methods__card--dark-bg .page-payment-methods__card-list li {
  color: #f0f0f0;
}

.page-payment-methods__card a {
  color: #FFCC00;
  text-decoration: underline;
}

.page-payment-methods__card a:hover {
  color: #e6b800;
}

.page-payment-methods__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-payment-methods__btn-primary:hover {
  background: #002244;
  border-color: #002244;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-payment-methods__btn-secondary:hover {
  background: #f0f0f0;
  color: #002244;
  border-color: #002244;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-payment-methods__feature-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-payment-methods__feature-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-payment-methods__feature-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #003366;
}

.page-payment-methods__feature-description {
  font-size: 15px;
  color: #555555;
}

.page-payment-methods__feature-item a {
  color: #003366;
  text-decoration: underline;
}

.page-payment-methods__feature-item a:hover {
  color: #002244;
}

.page-payment-methods__cta-bottom {
  text-align: center;
  padding: 80px 20px;
  background-color: #003366;
  color: #ffffff;
}

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

.page-payment-methods__cta-bottom .page-payment-methods__section-title {
  color: #FFCC00;
  margin-bottom: 25px;
}

.page-payment-methods__cta-bottom .page-payment-methods__text-block {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  background-color: #003366;
  color: #ffffff;
  padding: 60px 20px;
}

.page-payment-methods__faq-section .page-payment-methods__text-block--light {
  color: #f0f0f0;
}

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #003366;
}

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

.page-payment-methods__faq-question:active {
  background: #eeeeee;
}

.page-payment-methods__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #003366;
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #003366;
  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: 28px;
  height: 28px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  color: #FFCC00;
  transform: rotate(45deg); /* Change to X mark 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 20px;
  opacity: 0;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-payment-methods__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 36px;
  }
  .page-payment-methods__hero-description {
    font-size: 16px;
  }
  .page-payment-methods__section-title {
    font-size: 28px;
  }
  .page-payment-methods__subtitle {
    font-size: 22px;
  }
  .page-payment-methods__card-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__hero-image {
    margin-bottom: 20px;
  }
  .page-payment-methods__hero-image img {
    border-radius: 4px;
  }
  .page-payment-methods__hero-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  .page-payment-methods__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-payment-methods__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    margin-top: 20px;
  }
  .page-payment-methods__section {
    padding: 40px 15px;
  }
  .page-payment-methods__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-payment-methods__subtitle {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-payment-methods__text-block,
  .page-payment-methods__list li,
  .page-payment-methods__card-description,
  .page-payment-methods__card-note,
  .page-payment-methods__card-list li,
  .page-payment-methods__feature-description {
    font-size: 15px;
  }
  .page-payment-methods__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__card {
    padding: 25px;
  }
  .page-payment-methods__card-title {
    font-size: 22px;
  }
  .page-payment-methods__card-subtitle {
    font-size: 17px;
  }
  .page-payment-methods__button-group {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 16px;
  }
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__feature-item {
    padding: 20px;
  }
  .page-payment-methods__feature-title {
    font-size: 18px;
  }
  .page-payment-methods__cta-bottom {
    padding: 60px 15px;
  }
  .page-payment-methods__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-payment-methods__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-payment-methods__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-payment-methods__faq-answer {
    padding: 0 15px;
  }
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all images are responsive and do not overflow */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .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;
  }
  .page-payment-methods__button-group {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}