/* style/terms-conditions.css */
/* 
  Màu chủ đạo: #017439 (xanh lá đậm)
  Màu phụ: #FFFFFF (trắng)
  Màu nền body (từ shared.css): #121212 (xám đậm)
  Màu đăng ký/đăng nhập: #C30808 (đỏ)
  Màu chữ đăng ký/đăng nhập: #FFFF00 (vàng)
*/

.page-terms-conditions {
  color: #ffffff; /* Mặc định chữ trắng trên nền body #121212 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header che */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 20px;
  background: #017439; /* Đảm bảo nền màu xanh lá cho hero */
  color: #ffffff;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Làm mờ hình ảnh để chữ dễ đọc hơn */
  filter: none !important; /* Đảm bảo không có filter */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Nền tối nhẹ cho chữ */
  border-radius: 10px;
}

.page-terms-conditions__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Dùng màu vàng cho tiêu đề nổi bật */
  line-height: 1.2;
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-terms-conditions__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Cho phép nút xuống dòng trên mobile */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Đảm bảo padding không làm tràn */
  text-align: center;
  min-width: 180px;
}

.page-terms-conditions__btn-primary {
  background: #C30808; /* Màu đỏ cho nút chính */
  color: #FFFF00; /* Màu vàng cho chữ trên nút chính */
  border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-terms-conditions__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-terms-conditions__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background: #1e1e1e; /* Nền xám đậm cho nội dung chính */
  border-radius: 10px;
  margin-top: -50px; /* Kéo lên che phần dưới hero */
  position: relative;
  z-index: 3;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__section-title {
  color: #017439; /* Tiêu đề màu xanh lá đậm */
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #017439;
  padding-bottom: 10px;
}

.page-terms-conditions__section-title--light {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.page-terms-conditions__subsection-title {
  color: #FFFF00; /* Tiêu đề phụ màu vàng */
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #f0f0f0; /* Chữ màu trắng nhạt trên nền xám đậm */
}

.page-terms-conditions ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-terms-conditions ul li {
  margin-bottom: 8px;
}

.page-terms-conditions a {
  color: #FFFF00; /* Link màu vàng */
  text-decoration: underline;
}

.page-terms-conditions a:hover {
  color: #fff;
}

.page-terms-conditions__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  filter: none !important; /* Đảm bảo không có filter */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background: #017439; /* Nền xanh lá đậm cho FAQ */
  padding: 60px 20px;
  color: #ffffff;
  text-align: center;
  margin-top: 40px;
}

.page-terms-conditions__faq-list {
  max-width: 800px;
  margin: 30px auto 0;
  text-align: left;
}

.page-terms-conditions__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Nền thẻ FAQ mờ */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2); /* Nền câu hỏi hơi tối hơn */
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background: rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Biểu tượng '+' xoay thành 'x' */
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Đảm bảo đủ chiều cao cho nội dung */
  padding: 20px;
  padding-top: 0;
}

/* CTA Section */
.page-terms-conditions__cta-section {
  background: #121212; /* Nền tối cho CTA */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-terms-conditions__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Màu vàng cho tiêu đề CTA */
}

.page-terms-conditions__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__subsection-title {
    font-size: 1.3em;
  }
  .page-terms-conditions__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__hero-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-terms-conditions__content-area {
    padding: 30px 15px;
    margin-top: -30px;
  }
  .page-terms-conditions__section-title {
    font-size: 1.6em;
  }
  .page-terms-conditions__subsection-title {
    font-size: 1.2em;
  }

  .page-terms-conditions__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__faq-section,
  .page-terms-conditions__cta-section {
    padding: 40px 15px;
  }

  .page-terms-conditions__faq-title {
    font-size: 1.1em;
  }

  .page-terms-conditions__cta-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__cta-description {
    font-size: 1em;
  }
  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure all content containers are responsive */
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px; /* Reset for sections, use margin for spacing */
    padding-right: 0px; /* Reset for sections */
  }
  .page-terms-conditions__faq-item {
    padding-left: 0;
    padding-right: 0;
  }
  .page-terms-conditions__faq-question,
  .page-terms-conditions__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Image/Video/Button specific responsive rules for mobile */
@media (max-width: 768px) {
  /* Images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Buttons */
  .page-terms-conditions__cta-button,
  .page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions 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-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__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;
  }
  .page-terms-conditions__cta-buttons {
    flex-direction: column !important; /* Force vertical stacking for buttons on mobile */
  }

  /* Video (if any) */
  .page-terms-conditions video,
  .page-terms-conditions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__video-section,
  .page-terms-conditions__video-container,
  .page-terms-conditions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure no filter on images */
.page-terms-conditions img {
  filter: none !important;
}