.page-payment-methods {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from shared.css body */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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: 100px 20px 60px; /* Adjust padding-top for header offset */
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: #017439; /* Brand color as hero background */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

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

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

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

.page-payment-methods__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
  color: #f0f0f0;
}

.page-payment-methods__overview-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background for this section */
}

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

.page-payment-methods__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-payment-methods__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__deposit-methods,
.page-payment-methods__withdrawal-methods {
  padding: 80px 0;
  background-color: #017439; /* Brand color as section background */
}

.page-payment-methods__deposit-methods .page-payment-methods__section-title,
.page-payment-methods__withdrawal-methods .page-payment-methods__section-title {
  color: #ffffff;
}

.page-payment-methods__deposit-methods .page-payment-methods__text-block,
.page-payment-methods__withdrawal-methods .page-payment-methods__text-block {
  color: #f0f0f0;
}

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

.page-payment-methods__method-card {
  background-color: #ffffff; /* White background for cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333; /* Dark text for white background */
}

.page-payment-methods__method-icon {
  width: 100%;
  height: 180px;
  object-fit: contain; /* Use contain for icons/logos */
  margin-bottom: 20px;
}

.page-payment-methods__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439; /* Brand color for card titles */
}

.page-payment-methods__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-payment-methods__card-title a:hover {
  text-decoration: underline;
}

.page-payment-methods__how-to-deposit,
.page-payment-methods__how-to-withdraw {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background for these sections */
}

.page-payment-methods__how-to-deposit .page-payment-methods__section-title,
.page-payment-methods__how-to-withdraw .page-payment-methods__section-title {
  color: #017439;
}

.page-payment-methods__how-to-deposit .page-payment-methods__text-block,
.page-payment-methods__how-to-withdraw .page-payment-methods__text-block {
  color: #f0f0f0;
}

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

.page-payment-methods__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-payment-methods__step-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__faq-section {
  padding: 80px 0;
  background-color: #017439;
}

.page-payment-methods__faq-section .page-payment-methods__section-title {
  color: #ffffff;
}

.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

.page-payment-methods__faq-item[open] > .page-payment-methods__faq-question {
  border-bottom: none;
}

.page-payment-methods__faq-question::-webkit-details-marker {
  display: none;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
}

.page-payment-methods__faq-answer {
  padding: 20px 30px 30px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-payment-methods__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0a0a0a;
}

.page-payment-methods__conclusion-section .page-payment-methods__section-title {
  color: #017439;
}

.page-payment-methods__conclusion-section .page-payment-methods__text-block {
  color: #f0f0f0;
}

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

.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background-color: #C30808; /* Custom color for Đăng ký/Đăng nhập */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

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

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

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

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

/* Image and general responsive styles */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 80px 15px 40px;
    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;
    margin-bottom: 30px;
  }

  .page-payment-methods__text-block {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-payment-methods__feature-grid,
  .page-payment-methods__method-grid,
  .page-payment-methods__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-payment-methods__feature-image,
  .page-payment-methods__method-icon,
  .page-payment-methods__step-image {
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 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;
  }

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

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

  .page-payment-methods__container,
  .page-payment-methods__overview-section,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__how-to-deposit,
  .page-payment-methods__withdrawal-methods,
  .page-payment-methods__how-to-withdraw,
  .page-payment-methods__faq-section,
  .page-payment-methods__conclusion-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}