/* style/terms-conditions.css */

/* Căn chỉnh lại padding-top cho main để tránh bị header cố định che mất */
.page-terms-conditions {
  padding-top: 120px; /* Giá trị mặc định cho desktop */
  color: var(--text-color-light);
  background-color: var(--dark-bg-1);
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: 100px; /* Giá trị cho mobile */
  }
}

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

.page-terms-conditions__hero-section {
  background: linear-gradient(135deg, #8B0000, #FFD700); /* Đảo màu để phù hợp hơn với T&C, vẫn dùng màu thương hiệu */
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.page-terms-conditions__highlight {
  color: #ffd700; /* Màu vàng nổi bật */
  font-weight: bold;
}

.page-terms-conditions__hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-terms-conditions__content-area {
  padding: 60px 0;
  background-color: var(--dark-bg-2); /* Nền tối hơn một chút */
  color: var(--text-color-light);
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #FFD700; /* Màu vàng thương hiệu cho tiêu đề chính */
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 700;
  border-bottom: 2px solid #8B0000;
  padding-bottom: 10px;
}

.page-terms-conditions__section-title:first-of-type {
  margin-top: 0;
}

.page-terms-conditions__paragraph {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-terms-conditions__list-item {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 10px;
}

.page-terms-conditions__list-strong {
  color: #FFD700;
}

.page-terms-conditions__link {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: #ffffff;
}

.page-terms-conditions__image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-terms-conditions__image--left {
  float: left;
  margin-right: 30px;
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 30px;
}

.page-terms-conditions__faq-section {
  margin-top: 60px;
  background-color: var(--dark-bg-3);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
  color: #FFD700;
  border-bottom-color: #8B0000;
  margin-top: 0;
  margin-bottom: 30px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--dark-bg-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--dark-bg-4);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-terms-conditions__faq-question:hover {
  background: var(--dark-bg-5);
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Thay đổi dấu + thành X hoặc xoay */
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: var(--text-color-light);
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--dark-bg-5);
  border-radius: 0 0 8px 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.8em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    float: none;
    margin: 30px auto;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 40px 0 20px;
  }
  .page-terms-conditions__hero-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__content-area {
    padding: 40px 0;
  }
  .page-terms-conditions__section-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item {
    font-size: 0.95em;
  }
  .page-terms-conditions__faq-section {
    padding: 25px;
  }
  .page-terms-conditions__faq-question {
    padding: 15px 20px;
  }
  .page-terms-conditions__faq-question h3 {
    font-size: 1em;
  }
  .page-terms-conditions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-terms-conditions__faq-answer {
    padding: 0 20px;
  }
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px 20px !important;
  }
  /* Mobile image specific styles */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-terms-conditions__hero-image,
  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
  }
  .page-terms-conditions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.4em;
  }
  .page-terms-conditions__faq-question h3 {
    font-size: 0.9em;
  }
}