.page-payment-methods {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set for consistency */
}

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

.page-payment-methods__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, shared.css handles header offset */
  background-color: #f5f5f5; /* Light background for hero section */
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-payment-methods__hero-content {
  padding: 40px 20px;
  max-width: 800px;
  z-index: 1;
  background-color: #FFFFFF; /* Ensure content block has a solid background */
  border-radius: 8px;
  margin-top: -80px; /* Overlap slightly with the image for visual interest */
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__main-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #017439;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-payment-methods__description {
  font-size: 18px;
  margin-bottom: 30px;
}

.page-payment-methods__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  min-width: 180px; /* Minimum width for buttons */
}

.page-payment-methods__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-payment-methods__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  color: #FFFFFF;
}

.page-payment-methods__btn-secondary {
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-payment-methods__section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-payment-methods__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 20px;
  border-radius: 8px;
  text-align: center;
}

.page-payment-methods__dark-bg .page-payment-methods__section-title {
  color: #FFFFFF;
}

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

.page-payment-methods__overview p,
.page-payment-methods__deposit-guide p,
.page-payment-methods__withdrawal-guide p,
.page-payment-methods__security-info p,
.page-payment-methods__cta-bottom p {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-payment-methods__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  min-height: 200px; /* Minimum image size */
  object-fit: contain;
}

.page-payment-methods__feature-title {
  font-size: 24px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-payment-methods__steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__step-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-payment-methods__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #017439;
  color: #FFFFFF;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-payment-methods__step-title {
  font-size: 20px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-payment-methods__action-center {
  text-align: center;
  margin-top: 50px;
}

.page-payment-methods__withdrawal-steps {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
}

.page-payment-methods__withdrawal-steps li {
  background-color: #FFFFFF;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 17px;
  line-height: 1.5;
  color: #333333;
}

.page-payment-methods__withdrawal-steps li strong {
  color: #017439;
}

.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-payment-methods__security-list li {
  background-color: #FFFFFF;
  padding: 20px;
  border-left: 5px solid #017439;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 17px;
  line-height: 1.5;
  color: #333333;
}

.page-payment-methods__security-list li strong {
  color: #017439;
  display: block;
  margin-bottom: 5px;
}

.page-payment-methods__security-image {
  display: block;
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Minimum image size */
}

/* FAQ styles - using details/summary */
details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333;
  font-weight: 600;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question::-webkit-details-marker {
  display: none;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: #f5f5f5;
}
.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #017439;
}
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #333333;
}
.page-payment-methods__faq-answer p {
  text-align: left;
  margin: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 38px;
  }
  .page-payment-methods__section-title {
    font-size: 32px;
  }
  .page-payment-methods__features-grid,
  .page-payment-methods__steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-payment-methods__security-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 0 15px !important; /* Mobile padding */
  }

  /* Hero Section */
  .page-payment-methods__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }
  .page-payment-methods__hero-image-wrapper {
    max-height: 400px;
  }
  .page-payment-methods__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-payment-methods__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }
  .page-payment-methods__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-payment-methods__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    min-width: unset; /* Remove min-width for mobile */
  }

  /* General Sections */
  .page-payment-methods__section {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-payment-methods__overview p,
  .page-payment-methods__deposit-guide p,
  .page-payment-methods__withdrawal-guide p,
  .page-payment-methods__security-info p,
  .page-payment-methods__cta-bottom p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Images in content areas */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__feature-icon,
  .page-payment-methods__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure min size */
  }

  /* Feature Grid */
  .page-payment-methods__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__feature-card {
    padding: 20px;
  }
  .page-payment-methods__feature-title {
    font-size: 20px;
  }

  /* Steps Grid */
  .page-payment-methods__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__step-card {
    padding: 20px;
  }
  .page-payment-methods__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .page-payment-methods__step-title {
    font-size: 18px;
  }

  /* Withdrawal Steps */
  .page-payment-methods__withdrawal-steps li {
    padding: 15px;
    font-size: 16px;
  }

  /* Security List */
  .page-payment-methods__security-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-payment-methods__security-list li {
    padding: 15px;
    font-size: 16px;
  }

  /* FAQ */
  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px;
  }
  .page-payment-methods__faq-qtext {
    font-size: 16px;
  }
  .page-payment-methods__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 15px 15px;
  }
}