/* style/payment-methods.css */
/* body đã có padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Màu chữ mặc định cho trang, vì body có nền tối */
  background-color: transparent; /* Khu vực nội dung chính không cần nền nếu body đã có */
}

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Đệm trên nhỏ, đệm dưới lớn hơn */
  text-align: center;
  overflow: hidden;
  background-color: #0a0a0a; /* Đảm bảo phần hero có nền đồng nhất với body */
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Khoảng cách giữa hình ảnh và nội dung */
}

.page-payment-methods__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  width: 1200px; /* Thuộc tính chiều rộng HTML */
  height: 675px; /* Thuộc tính chiều cao HTML */
}

.page-payment-methods__hero-content {
  max-width: 800px;
  width: 100%; /* Đảm bảo khối nội dung chiếm toàn bộ chiều rộng đến max-width */
  margin: 0 auto;
  z-index: 1;
  color: #ffffff;
}

.page-payment-methods__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Kích thước font linh hoạt cho H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-payment-methods__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên màn hình nhỏ hơn */
  width: 100%; /* Đảm bảo container chiếm toàn bộ chiều rộng */
  max-width: 500px; /* Giới hạn chiều rộng nhóm nút */
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 15px; /* Thêm padding để tránh tràn */
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo các nút không bị tràn */
  white-space: normal; /* Cho phép văn bản xuống dòng */
  word-wrap: break-word; /* Cho phép văn bản ngắt từ */
  text-align: center;
}

.page-payment-methods__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-payment-methods__btn-secondary {
  background-color: #EA7C07; /* Màu nút Đăng nhập */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Kế thừa màu từ phần cha */
}

.page-payment-methods__overview-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__troubleshooting-section,
.page-payment-methods__faq-section {
  background-color: #ffffff; /* Nền sáng */
  color: #333333; /* Chữ tối cho nền sáng */
}

.page-payment-methods__deposit-section,
.page-payment-methods__fees-limits-section,
.page-payment-methods__benefits-section {
  background-color: #0a0a0a; /* Nền tối, khớp với body */
  color: #ffffff; /* Chữ sáng cho nền tối */
}

.page-payment-methods__highlight {
  color: #26A9E0; /* Màu thương hiệu cho các điểm nổi bật */
  font-weight: 600;
}

.page-payment-methods p {
  margin-bottom: 15px;
  color: inherit; /* Kế thừa màu từ phần cha */
}

.page-payment-methods__methods-grid,
.page-payment-methods__steps-grid,
.page-payment-methods__info-grid,
.page-payment-methods__issues-grid,
.page-payment-methods__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-payment-methods__method-card,
.page-payment-methods__step-card,
.page-payment-methods__info-card,
.page-payment-methods__issue-card,
.page-payment-methods__benefit-card {
  background-color: rgba(255, 255, 255, 0.1); /* Màu trắng hơi trong suốt cho các phần tối */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* Mặc định cho các thẻ tối */
}

/* Ghi đè cho các thẻ trong phần sáng */
.page-payment-methods__overview-section .page-payment-methods__method-card,
.page-payment-methods__withdrawal-section .page-payment-methods__step-card,
.page-payment-methods__troubleshooting-section .page-payment-methods__issue-card,
.page-payment-methods__faq-section .page-payment-methods__faq-item {
    background-color: #f8f8f8; /* Nền sáng cho các thẻ trong phần sáng */
    color: #333333; /* Chữ tối cho các thẻ trong phần sáng */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}


.page-payment-methods__method-icon,
.page-payment-methods__benefit-icon {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  object-fit: cover;
  min-width: 200px; /* Buộc kích thước tối thiểu */
  min-height: 150px; /* Buộc kích thước tối thiểu */
}

.page-payment-methods__method-title,
.page-payment-methods__step-title,
.page-payment-methods__info-title,
.page-payment-methods__issue-title,
.page-payment-methods__benefit-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit; /* Kế thừa màu từ thẻ cha */
}

.page-payment-methods__note {
  font-style: italic;
  margin-top: 30px;
  text-align: center;
  color: inherit;
}

.page-payment-methods__text-link {
  color: #26A9E0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-payment-methods__text-link:hover {
  color: #1e87c0;
}

.page-payment-methods__contact-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
}

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

/* Phần FAQ */
.page-payment-methods__faq-list {
  margin-top: 30px;
}

.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f8f8;
  color: #333333;
}

.page-payment-methods__faq-item[open] {
    background-color: #f0f0f0;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  transition: background-color 0.3s ease;
  list-style: none; /* Dành cho details/summary */
}

.page-payment-methods__faq-question::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho Chrome/Safari */
}

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

.page-payment-methods__faq-qtext {
  flex-grow: 1;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  transform: rotate(45deg); /* Xoay dấu cộng thành dấu nhân */
}

.page-payment-methods__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

/* Phong cách đáp ứng */
@media (max-width: 1024px) {
  .page-payment-methods__hero-image {
    width: 1000px;
    height: 563px; /* Điều chỉnh chiều cao theo tỷ lệ 16:9 */
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 10px 15px 40px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-payment-methods__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Đảm bảo padding trên di động */
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    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__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-payment-methods__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-payment-methods p,
  .page-payment-methods li {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-payment-methods__methods-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__info-grid,
  .page-payment-methods__issues-grid,
  .page-payment-methods__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__info-card,
  .page-payment-methods__issue-card,
  .page-payment-methods__benefit-card {
    padding: 20px;
  }

  .page-payment-methods__method-icon,
  .page-payment-methods__benefit-icon {
    min-width: unset; /* Cho phép linh hoạt trên di động */
    min-height: unset;
    width: 100%;
    height: auto;
  }

  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-payment-methods__video-section { /* Không có video nhưng vẫn giữ quy tắc padding-top */
    padding-top: 10px !important;
  }

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

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

/* Đảm bảo không có bộ lọc CSS trên hình ảnh */
.page-payment-methods img {
  filter: none;
}