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

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #017439, #00562a); /* Brand green gradient */
  color: #ffffff;
  overflow: hidden;
  /* Assuming shared.css handles body padding-top, so hero does not need it */
  /* If shared.css does NOT handle body padding-top, uncomment the line below */
  /* padding-top: var(--header-offset, 120px); */
}

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

.page-payment-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

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

.page-payment-methods__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-payment-methods__btn-secondary:hover {
  background: #f0f0f0;
  color: #00562a;
  border-color: #00562a;
}

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.2;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Subtle filter, not changing color */
  -webkit-filter: grayscale(50%);
}

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

.page-payment-methods__intro-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-methods-section,
.page-payment-methods__faq-section,
.page-payment-methods__why-choose-section {
  padding: 60px 0;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-payment-methods__text-block a:hover {
  color: #00562a;
}

/* Color contrast classes */
.page-payment-methods__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

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

.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-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px; /* Ensure cards have minimum height */
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__method-card.page-payment-methods__dark-bg {
  background-color: #00562a;
  color: #ffffff;
}

.page-payment-methods__method-card.page-payment-methods__dark-bg .page-payment-methods__method-title {
  color: #FFFF00;
}

.page-payment-methods__method-card.page-payment-methods__dark-bg .page-payment-methods__method-description {
  color: #f0f0f0;
}

.page-payment-methods__method-card.page-payment-methods__dark-bg .page-payment-methods__method-features li {
  color: #f0f0f0;
}

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

.page-payment-methods__method-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__method-description {
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-payment-methods__method-features {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-top: 10px;
}

.page-payment-methods__method-features li {
  margin-bottom: 8px;
  color: #555555;
}

.page-payment-methods__method-features strong {
  color: #017439;
}

.page-payment-methods__method-features ol {
  list-style-type: decimal;
  margin-left: 20px;
  padding-left: 0;
  margin-top: 5px;
}

.page-payment-methods__notes-block {
  background-color: #f5f5f5;
  border-left: 5px solid #017439;
  padding: 30px;
  margin-top: 50px;
  border-radius: 8px;
}

.page-payment-methods__notes-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__notes-list {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
}

.page-payment-methods__notes-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #444444;
}

.page-payment-methods__notes-list li a {
  color: #017439;
  text-decoration: underline;
}

.page-payment-methods__notes-list li a:hover {
  color: #00562a;
}

.page-payment-methods__faq-list {
  margin-top: 40px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-payment-methods__faq-item {
  border-bottom: 1px solid #eee;
}

.page-payment-methods__faq-item:last-child {
  border-bottom: none;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or just change to minus */
}

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #ffffff;
}

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

.page-payment-methods__faq-answer p {
  margin: 0;
  color: #555555;
  font-size: 1em;
}

.page-payment-methods__why-choose-section .page-payment-methods__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

/* 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 15px;
    /* Apply padding-top for mobile if shared.css doesn't handle it on body */
    padding-top: var(--header-offset, 120px) !important;
  }

  .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 {
    font-size: 0.95em;
  }

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

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

  .page-payment-methods__method-title {
    font-size: 1.5em;
  }

  .page-payment-methods__notes-block {
    padding: 20px;
  }

  .page-payment-methods__notes-title {
    font-size: 1.5em;
  }

  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-payment-methods__faq-answer {
    padding: 0 20px;
  }

  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image, video, button adaptation */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__container,
  .page-payment-methods__method-card,
  .page-payment-methods__notes-block,
  .page-payment-methods__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods a[class*="button"],
  .page-payment-methods a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-payment-methods__hero-cta,
  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 1.8em;
  }

  .page-payment-methods__section-title {
    font-size: 1.5em;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
}