/* style/payment-methods.css */
.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, but explicitly set for sections if needed */
}

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

.page-payment-methods__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-payment-methods__hero-section {
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-payment-methods__hero-content {
  max-width: 700px;
  z-index: 1;
  position: relative;
}

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

/* General Section Styling */
.page-payment-methods__introduction-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-methods-section,
.page-payment-methods__guide-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-payment-methods__light-bg .page-payment-methods__section-title {
  color: #017439;
}

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

.page-payment-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__light-bg .page-payment-methods__text-block {
  color: #333333;
}

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

.page-payment-methods__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

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

.page-payment-methods__method-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-payment-methods__card-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-payment-methods__card-description {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-payment-methods__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-payment-methods__feature-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  font-size: 0.95em;
}

.page-payment-methods__list-icon {
  color: #017439;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1;
}

.page-payment-methods__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  align-self: center;
}

.page-payment-methods__cta-text {
  margin-top: 50px;
  font-size: 1.15em;
  font-weight: bold;
}

.page-payment-methods__center-buttons {
  margin-top: 40px;
}

/* Step-by-Step Guide */
.page-payment-methods__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__step-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
}

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

.page-payment-methods__step-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-payment-methods__step-description {
  font-size: 1em;
}

.page-payment-methods__important-notes {
  background-color: #ffffff;
  color: #333333;
  border-radius: 15px;
  padding: 40px;
  margin-top: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
}

.page-payment-methods__notes-title {
  font-size: 2em;
  color: #C30808; /* Use red for warning/important notes */
  margin-bottom: 25px;
  text-align: center;
}

/* Security Section */
.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-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: left;
}

.page-payment-methods__feature-card .page-payment-methods__card-title {
  color: #FFFF00; /* Yellow for feature titles on dark background */
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.page-payment-methods__faq-question:hover {
  background-color: #e0e0e0;
}

.page-payment-methods__faq-title {
  font-size: 1.2em;
  color: #017439;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.page-payment-methods__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px;
}

.page-payment-methods__faq-answer p {
  margin: 0;
  color: #333333;
}

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

.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: #a00606;
  border-color: #a00606;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 2.8em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__text-block,
  .page-payment-methods__card-description,
  .page-payment-methods__step-description,
  .page-payment-methods__faq-answer p {
    font-size: 0.95em;
  }
  .page-payment-methods__method-grid,
  .page-payment-methods__step-by-step,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-payment-methods__container {
    padding: 0 15px;
  }
  .page-payment-methods__image-content,
  .page-payment-methods__card-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-payment-methods__introduction-section,
  .page-payment-methods__deposit-methods-section,
  .page-payment-methods__withdrawal-methods-section,
  .page-payment-methods__guide-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-bottom-section,
  .page-payment-methods__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-payment-methods__faq-question {
    padding: 15px;
  }
  .page-payment-methods__faq-title {
    font-size: 1.1em;
  }
  .page-payment-methods__faq-answer {
    padding: 0 15px;
  }
  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px;
  }
  .page-payment-methods__important-notes {
    padding: 30px 15px;
  }
  .page-payment-methods__notes-title {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-title {
    font-size: 1.6em;
  }
  .page-payment-methods__method-card,
  .page-payment-methods__step-item,
  .page-payment-methods__feature-card,
  .page-payment-methods__faq-item {
    padding: 20px;
  }
  .page-payment-methods__card-title {
    font-size: 1.5em;
  }
  .page-payment-methods__step-title {
    font-size: 1.4em;
  }
}