.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text on dark body background */
  background-color: #0a0a0a; /* Inherited from body via shared.css */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #0A2239; /* Primary brand color */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

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

.page-terms-conditions__main-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #E6B31E; /* Gold accent for main title */
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-terms-conditions__btn-primary {
  background-color: #E6B31E; /* Gold accent */
  color: #0A2239;
  border: 2px solid #E6B31E;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #d1a11b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-terms-conditions__btn-secondary:hover {
  background-color: #E6B31E;
  color: #0A2239;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__content-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #f0f0f0;
  box-sizing: border-box;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #E6B31E;
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(230, 179, 30, 0.3);
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.7;
  color: #cccccc;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 30px;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-terms-conditions__list li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

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

.page-terms-conditions__faq-list {
  margin-top: 40px;
}

/* FAQ容器样式 */
.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0A2239; /* Dark blue background for FAQ item */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.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: #cccccc;
  font-size: 1.05em;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background-color: #1a1a1a;
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #0A2239; /* Primary brand color */
  border: 1px solid rgba(230, 179, 30, 0.3); /* Gold border */
  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-color: #153550;
  border-color: #E6B31E;
}

.page-terms-conditions__faq-question:active {
  background-color: #081c2e;
}

/* Question title style */
.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #E6B31E; /* Gold accent for question title */
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E6B31E;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  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); /* Rotate for 'x' or 'minus' effect */
}

.page-terms-conditions a {
  color: #E6B31E;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Responsive design */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.5em;
  }

  .page-terms-conditions__section-title {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-terms-conditions__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-terms-conditions__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-terms-conditions__content-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-terms-conditions__container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 12px;
  }

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list li {
    font-size: 0.95em;
  }

  .page-terms-conditions__list {
    margin-left: 20px;
  }

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

  .page-terms-conditions__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .page-terms-conditions__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  .page-terms-conditions__faq-answer {
    padding: 0 20px;
  }

  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px 20px !important;
  }

  .page-terms-conditions p,
  .page-terms-conditions li {
    color: #cccccc;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__main-title {
    font-size: 1.8em;
  }

  .page-terms-conditions__section-title {
    font-size: 1.6em;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.2em;
  }
}