/* style/payment-methods.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Default text color for dark backgrounds */
  background-color: #08160F; /* Custom background color */
}

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

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles top offset, this is for visual padding */
  text-align: center;
  overflow: hidden;
}

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

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

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  color: #F2FFF6; /* Main text color */
}

.page-payment-methods__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-payment-methods__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

.page-payment-methods__section {
  padding: 60px 0;
}

.page-payment-methods__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Main text color */
}

.page-payment-methods__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-payment-methods__card-bg {
  background-color: #11271B; /* Custom card background */
  padding: 60px 0;
}

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

.page-payment-methods__method-card {
  background-color: #08160F; /* Background color for method cards */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__method-icon {
  width: 100%; /* Ensure full width within card */
  max-width: 400px; /* Max width for image within card */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__method-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2FFF6; /* Main text color */
}

.page-payment-methods__method-description {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #A7D9B8; /* Secondary text color */
}

.page-payment-methods__method-details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
  max-width: 280px;
  color: #A7D9B8;
}

.page-payment-methods__method-details li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #1E3A2A; /* Divider color */
  padding-bottom: 8px;
}

.page-payment-methods__method-details li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-payment-methods__detail-label {
  font-weight: 600;
  color: #F2FFF6;
}

.page-payment-methods__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-payment-methods__step-item {
  background-color: #11271B; /* Card background */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2FFF6; /* Main text color */
}

.page-payment-methods__step-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
}

.page-payment-methods__note {
  font-style: italic;
  color: #A7D9B8;
  margin-top: 30px;
  padding: 20px;
  border-left: 5px solid #2AD16F;
  background-color: rgba(17, 39, 27, 0.5);
  border-radius: 0 8px 8px 0;
}

.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-payment-methods__security-item {
  background-color: #11271B; /* Card background */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__security-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2FFF6; /* Main text color */
}

.page-payment-methods__security-description {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
}

.page-payment-methods__security-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  object-fit: cover;
}

.page-payment-methods__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
  color: #A7D9B8;
}

.page-payment-methods__tips-item {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-payment-methods__tips-item::before {
  content: '✔';
  color: #2AD16F; /* Green checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-payment-methods__faq-list {
  margin-top: 30px;
}

.page-payment-methods__faq-item {
  background-color: #11271B; /* Card background */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-payment-methods__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Main text color */
  background-color: #11271B;
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-item summary:hover {
  background-color: #0A4B2C; /* Deep Green hover */
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2AD16F; /* Green color for toggle */
  transition: transform 0.3s ease;
}

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

.page-payment-methods__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
}

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

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

.page-payment-methods__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Main text color for button */
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__cta-final {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green background */
  text-align: center;
}

/* Color contrast classes */
.page-payment-methods__dark-bg {
  background-color: #08160F;
  color: #F2FFF6; /* Light text on dark background */
}

.page-payment-methods__text-main {
  color: #F2FFF6;
}

.page-payment-methods__text-secondary {
  color: #A7D9B8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-payment-methods__section-title {
    font-size: 2rem;
  }

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

  .page-payment-methods__step-title {
    font-size: 1.3rem;
  }

  .page-payment-methods__security-title {
    font-size: 1.2rem;
  }

  .page-payment-methods__faq-item summary {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-payment-methods__container,
  .page-payment-methods__hero-section,
  .page-payment-methods__introduction,
  .page-payment-methods__deposit-methods,
  .page-payment-methods__deposit-guide,
  .page-payment-methods__withdrawal-guide,
  .page-payment-methods__security,
  .page-payment-methods__tips,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-final {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-payment-methods__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-payment-methods__hero-content {
    padding: 15px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-payment-methods__hero-description {
    font-size: 1rem;
  }

  .page-payment-methods__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-payment-methods__text-block,
  .page-payment-methods__step-description,
  .page-payment-methods__security-description,
  .page-payment-methods__tips-item,
  .page-payment-methods__faq-answer p {
    font-size: 0.95rem;
  }

  .page-payment-methods__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-payment-methods__method-title {
    font-size: 1.4rem;
  }

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

  .page-payment-methods__step-item {
    padding: 20px;
  }

  .page-payment-methods__step-title {
    font-size: 1.2rem;
  }

  .page-payment-methods__security-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__security-item {
    padding: 20px;
  }

  .page-payment-methods__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-payment-methods__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-payment-methods__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods video,
  .page-payment-methods__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__video-section,
  .page-payment-methods__video-container,
  .page-payment-methods__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-payment-methods__video-section {
    padding-top: 10px !important;
  }

  .page-payment-methods__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }
}