.page-payment-methods {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: var(--secondary-color, #FFFFFF);
  line-height: 1.6;
}

.page-payment-methods__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

.page-payment-methods__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-payment-methods__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-payment-methods__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-payment-methods__text-block {
  font-size: 17px;
  margin-bottom: 15px;
  color: #444444;
}

.page-payment-methods__text-link {
  color: #017439;
  text-decoration: underline;
}

.page-payment-methods__text-link:hover {
  color: #C30808; /* Example hover color */
}

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

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

/* Hero Section */
.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);
  background: linear-gradient(135deg, #e0ffe0, #ffffff);
  overflow: hidden; /* Ensure content doesn't spill */
}

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

.page-payment-methods__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain image width for better layout */
}

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

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

.page-payment-methods__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-payment-methods__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-payment-methods__btn-register {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

.page-payment-methods__btn-deposit {
  background: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-payment-methods__btn-deposit:hover {
  background: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-payment-methods__method-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

.page-payment-methods__method-card img {
  width: 100%; /* Make image take full card width */
  max-width: 400px; /* Max width for card images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-payment-methods__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-payment-methods__card-description {
  font-size: 16px;
  color: #555555;
  text-align: left;
}

/* Step Lists */
.page-payment-methods__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-payment-methods__step-list .page-payment-methods__list-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 25px;
  font-size: 17px;
  line-height: 1.5;
  color: #444444;
}

.page-payment-methods__step-list .page-payment-methods__list-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

/* Security Features List */
.page-payment-methods__security-features {
  list-style: none;
  padding: 0;
}

.page-payment-methods__security-features .page-payment-methods__list-item {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #444444;
}

.page-payment-methods__security-features .page-payment-methods__list-item::before {
  content: '✅'; /* Checkmark icon */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
}

/* Support Contact */
.page-payment-methods__support-contact {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  margin-top: 30px;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 30px;
}

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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;
}

.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;
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: #333;
  transform: rotate(45deg); /* Change to X or - */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__section-title {
    font-size: 32px;
  }
  .page-payment-methods__main-title {
    font-size: 40px;
  }
  .page-payment-methods__hero-description {
    font-size: 18px;
  }
}

@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__main-title {
    font-size: 32px;
  }

  .page-payment-methods__hero-description {
    font-size: 16px;
  }

  .page-payment-methods__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-payment-methods__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    margin: 0 auto; /* Center buttons when stacked */
  }

  .page-payment-methods__section {
    padding: 40px 0;
  }

  .page-payment-methods__container {
    padding: 0 15px;
  }

  .page-payment-methods__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-payment-methods__sub-title {
    font-size: 20px;
  }

  .page-payment-methods__text-block, .page-payment-methods__list-item, .page-payment-methods__card-description {
    font-size: 15px;
  }

  .page-payment-methods__method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-payment-methods__method-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-payment-methods__security-features .page-payment-methods__list-item,
  .page-payment-methods__step-list .page-payment-methods__list-item {
    padding-left: 30px;
  }

  .page-payment-methods__step-list .page-payment-methods__list-item::before {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 28px;
  }
  .page-payment-methods__section-title {
    font-size: 24px;
  }
  .page-payment-methods__hero-cta-buttons {
    gap: 10px;
  }
}