.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from shared.css, explicitly set for clarity */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared đã cho body padding-top, nên hero dùng 0 */
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Minimum height for hero section */
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-terms-conditions__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 12px;
  color: #ffffff;
}

.page-terms-conditions__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-terms-conditions__content-section {
  padding: 80px 20px;
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-terms-conditions__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: #8B0000; /* Dark red brand color */
}

.page-terms-conditions__section-title--light {
  color: #FFD700; /* Gold brand color for dark backgrounds */
}

.page-terms-conditions__text-block {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-terms-conditions__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-terms-conditions__text-block p:last-child {
  margin-bottom: 0;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__sub-section {
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFD700; /* Gold accent */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-terms-conditions__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  color: #FFD700; /* Gold brand color */
}

.page-terms-conditions__sub-title--light {
  color: #FFD700; /* Gold brand color for dark backgrounds */
}

.page-terms-conditions__sub-section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-terms-conditions__sub-section ul {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  color: #f0f0f0;
}

.page-terms-conditions__sub-section li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Ensure dark background */
  color: #ffffff;
}

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

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05); /* Darker background for question bar */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  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: rgba(255, 255, 255, 0.12);
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold text for questions */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #8B0000; /* Dark red background for toggle */
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: #FFD700;
  background-color: #ffffff;
  transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
}

.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: #f0f0f0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, large enough value */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 8px 8px;
}

/* Global image and button responsive styles */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-buttons,
.page-terms-conditions__button-group,
.page-terms-conditions__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Responsive Styles --- */

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

  .page-terms-conditions__intro-text {
    font-size: 17px;
  }

  .page-terms-conditions__section-title {
    font-size: 32px;
  }

  .page-terms-conditions__sub-title {
    font-size: 22px;
  }

  .page-terms-conditions__text-block p,
  .page-terms-conditions__sub-section p,
  .page-terms-conditions__sub-section li {
    font-size: 15px;
  }

  .page-terms-conditions__faq-question h3 {
    font-size: 17px;
  }

  .page-terms-conditions__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
}

/* @media (max-width: 768px) */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    min-height: 300px;
    padding-top: 0 !important; /* shared đã cho body padding-top, nên hero dùng 0 */
  }

  .page-terms-conditions__hero-content {
    padding: 30px 15px;
    border-radius: 8px;
  }

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

  .page-terms-conditions__intro-text {
    font-size: 16px;
    line-height: 1.7;
  }

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

  .page-terms-conditions__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-terms-conditions__text-block {
    margin-bottom: 30px;
    padding: 15px;
  }

  .page-terms-conditions__text-block p {
    font-size: 16px;
  }

  .page-terms-conditions__sub-section {
    margin-bottom: 20px;
    padding: 20px;
  }

  .page-terms-conditions__sub-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__sub-section p,
  .page-terms-conditions__sub-section li {
    font-size: 15px;
  }

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

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

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

  .page-terms-conditions__faq-question h3 {
    font-size: 16px;
  }

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

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

  /* General Image Responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Containers for images and other content */
  .page-terms-conditions__container,
  .page-terms-conditions__hero-container,
  .page-terms-conditions__text-block,
  .page-terms-conditions__sub-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button Responsive */
  .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 {
    display: flex;
    flex-direction: column; 
  }
}