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

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

.page-payment-methods__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  padding-bottom: 20px;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-payment-methods__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  z-index: 2;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-payment-methods__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  word-wrap: break-word;
}

.page-payment-methods__description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  word-wrap: break-word;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-payment-methods__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #017439;
  word-wrap: break-word;
}

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

.page-payment-methods__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  word-wrap: break-word;
}

.page-payment-methods__paragraph--white {
  color: #f0f0f0;
}

.page-payment-methods__introduction-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__security-section,
.page-payment-methods__final-cta {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-payment-methods__deposit-section,
.page-payment-methods__how-to-guide,
.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: #017439;
}

/* Methods Grid */
.page-payment-methods__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-payment-methods__method-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  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 6px 20px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__method-icon {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: contain;
  max-width: 100%;
  display: block;
}

.page-payment-methods__method-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
  word-wrap: break-word;
}

.page-payment-methods__method-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  word-wrap: break-word;
}

.page-payment-methods__method-details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
  font-size: 0.95em;
  color: #666666;
}

.page-payment-methods__method-details li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.page-payment-methods__method-details li::before {
  content: '✓';
  color: #017439;
  font-weight: bold;
  margin-right: 8px;
}

.page-payment-methods__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* How-To Guide */
.page-payment-methods__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-payment-methods__step-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 250px; /* Ensure cards have similar height */
}

.page-payment-methods__step-number {
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.page-payment-methods__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
  word-wrap: break-word;
}

.page-payment-methods__step-description {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  word-wrap: break-word;
}

.page-payment-methods__inline-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-payment-methods__inline-link:hover {
  color: #C30808;
}

.page-payment-methods__guide-illustration {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  max-width: 100%;
}

/* Security Features */
.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 {
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-payment-methods__feature-item:hover {
  transform: translateY(-5px);
}

.page-payment-methods__feature-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
  word-wrap: break-word;
}

.page-payment-methods__feature-description {
  font-size: 1em;
  color: #555555;
  word-wrap: break-word;
}

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

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 1.15em;
  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: rgba(255, 255, 255, 0.2);
}

.page-payment-methods__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  color: #FFFFFF;
  word-wrap: break-word;
}

.page-payment-methods__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 25px 25px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 10px 10px;
  color: #f0f0f0;
  font-size: 1.05em;
}

.page-payment-methods__faq-answer p {
  margin-bottom: 0;
  text-align: left;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-payment-methods__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
  }
  .page-payment-methods__main-title {
    font-size: 2.5em;
  }
  .page-payment-methods__description {
    font-size: 1.1em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__methods-grid,
  .page-payment-methods__guide-steps,
  .page-payment-methods__security-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__feature-item {
    padding: 25px;
  }
  .page-payment-methods__faq-qtext {
    font-size: 1.05em;
  }
  .page-payment-methods__faq-toggle {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-payment-methods__hero-content {
    padding: 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-payment-methods__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-payment-methods__introduction-section,
  .page-payment-methods__deposit-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__how-to-guide,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__final-cta {
    padding: 40px 0;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-payment-methods__paragraph {
    font-size: 1em;
    text-align: left;
  }
  .page-payment-methods__methods-grid,
  .page-payment-methods__guide-steps,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__feature-item {
    padding: 20px;
  }
  .page-payment-methods__method-icon,
  .page-payment-methods__guide-illustration,
  .page-payment-methods__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-payment-methods__method-title,
  .page-payment-methods__step-title,
  .page-payment-methods__feature-title {
    font-size: 1.2em;
  }
  .page-payment-methods__method-description,
  .page-payment-methods__step-description,
  .page-payment-methods__feature-description {
    font-size: 0.95em;
  }
  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-payment-methods__faq-qtext {
    font-size: 1em;
  }
  .page-payment-methods__faq-toggle {
    font-size: 22px;
    width: 25px;
  }
  details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95em;
  }
}

/* Color contrast fixes for light/dark backgrounds */
.page-payment-methods__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-payment-methods__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-payment-methods__hero-section h1 {
  color: #FFFFFF;
}

.page-payment-methods__hero-section p {
  color: #f0f0f0;
}

.page-payment-methods__card {
  background: #ffffff; /* White background for cards to ensure contrast */
  color: #333333;
  border: 1px solid #e0e0e0; /* Add border for better definition */
}

.page-payment-methods__cta-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-payment-methods__cta-buttons a {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .page-payment-methods__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__cta-buttons a {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__hero-image,
  .page-payment-methods__method-icon,
  .page-payment-methods__guide-illustration,
  .page-payment-methods__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__introduction-section,
  .page-payment-methods__deposit-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__how-to-guide,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}