/* style/terms-conditions.css */
/* body đã padding-top: var(--header-offset)；trang này cấm ghi lại biến đó */
.page-terms-conditions {
  background-color: var(--background-color, #08160F); /* Màu nền */
  color: #F2FFF6; /* Màu chữ chính */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  padding-top: 10px; /* Khoảng đệm trên nhỏ, body xử lý --header-offset */
  background-color: #0A4B2C; /* Deep Green cho nền hero */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Đảm bảo hình ảnh nằm trong giới hạn */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  margin-top: 40px; /* Khoảng cách giữa hình ảnh và văn bản */
  max-width: 900px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Kích thước font linh hoạt */
  color: #F2C14E; /* Màu vàng cho tiêu đề chính */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-terms-conditions__intro-text {
  font-size: 1.1rem;
  color: #A7D9B8; /* Màu chữ phụ */
  margin-bottom: 40px;
}

.page-terms-conditions__content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #08160F; /* Màu nền */
}

.page-terms-conditions__section-title {
  font-size: 2.2rem;
  color: #F2C14E; /* Màu vàng cho tiêu đề phần */
  margin-bottom: 30px;
  font-weight: 600;
  border-bottom: 2px solid #2E7A4E; /* Màu viền */
  padding-bottom: 15px;
  text-align: center;
}

.page-terms-conditions__sub-section-title {
  font-size: 1.6rem;
  color: #F2FFF6; /* Màu chữ chính */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 500;
}

.page-terms-conditions__sub-sub-section-title {
  font-size: 1.3rem;
  color: #A7D9B8; /* Màu chữ phụ */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 400;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Màu chữ chính */
}

.page-terms-conditions ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}

.page-terms-conditions li {
  margin-bottom: 8px;
  color: #F2FFF6; /* Màu chữ chính */
}

.page-terms-conditions a {
  color: #2AD16F; /* Màu xanh lá sáng cho liên kết */
  text-decoration: none;
}

.page-terms-conditions a:hover {
  text-decoration: underline;
}

.page-terms-conditions__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-terms-conditions__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút gradient */
  color: #F2FFF6; /* Màu chữ nút */
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 0, 0.3);
}

.page-terms-conditions__btn--secondary {
  background: none;
  border: 2px solid #11A84E; /* Viền màu chủ đạo */
  color: #11A84E; /* Chữ màu chủ đạo */
}

.page-terms-conditions__btn--secondary:hover {
  background: rgba(17, 168, 78, 0.1); /* Nền nhẹ khi hover */
  color: #2AD16F;
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.3);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #11271B; /* Màu nền Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #2E7A4E; /* Màu viền Divider */
  padding-bottom: 15px;
}

.page-terms-conditions__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-terms-conditions__faq-item details {
  border: none;
}

.page-terms-conditions__faq-item summary {
  list-style: none; /* Xóa dấu mặc định */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #F2FFF6; /* Màu chữ chính */
  font-weight: 500;
  padding: 10px 0;
  user-select: none;
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định của Chrome */
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5rem;
  color: #57E38D; /* Màu Glow */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item details[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
  color: #A7D9B8; /* Màu chữ phụ */
  padding-left: 10px;
  padding-top: 10px;
}

/* General image styles */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px auto;
}

/* Image containers */
.page-terms-conditions__image-container {
  width: 100%;
  max-width: 800px; /* Example max-width for content images */
  margin: 20px auto;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body xử lý header offset */
  }

  .page-terms-conditions__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-terms-conditions__intro-text {
    font-size: 1rem;
  }

  .page-terms-conditions__content-section {
    padding: 30px 15px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8rem;
  }

  .page-terms-conditions__sub-section-title {
    font-size: 1.4rem;
  }

  .page-terms-conditions__sub-sub-section-title {
    font-size: 1.1rem;
  }

  /* Images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers */
  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons */
  .page-terms-conditions__button-group {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-terms-conditions__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;
  }

  /* FAQ */
  .page-terms-conditions__faq-section {
    padding: 20px 15px;
  }

  .page-terms-conditions__faq-question {
    font-size: 1rem;
  }
}