/* style/about-us.css */

/* --- Biến CSS (Variables) --- */
:root {
  --page-about-us-primary-color: #FFD700; /* Vàng kim */
  --page-about-us-secondary-color: #8B0000; /* Đỏ sẫm */
  --page-about-us-text-light: #ffffff;
  --page-about-us-text-dark: #333333;
  --page-about-us-bg-dark: #0d0d0d; /* Giả định từ shared.css var(--dark-bg-1) */
  --page-about-us-bg-light: #f5f5f5;
  --page-about-us-border-color: #444444;
  --page-about-us-card-bg: rgba(255, 255, 255, 0.08);
}

/* --- Cấu trúc Trang (Page Structure) --- */
.page-about-us {
  padding-top: 120px; /* Khoảng cách cho thanh nav cố định */
  color: var(--page-about-us-text-light); /* Mặc định chữ sáng trên nền tối */
  background-color: var(--page-about-us-bg-dark); /* Kế thừa từ body, giả định nền tối */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* --- Phần Banner Giới thiệu (Hero Banner) --- */
.page-about-us__hero-banner {
  background: linear-gradient(135deg, var(--page-about-us-secondary-color), var(--page-about-us-bg-dark));
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about-us__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-about-us__hero-title {
  font-size: 3.2em;
  color: var(--page-about-us-primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-about-us__hero-description {
  font-size: 1.3em;
  color: var(--page-about-us-text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about-us__hero-link {
  color: var(--page-about-us-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about-us__hero-link:hover {
  color: #fff;
}

/* --- Phần Giới thiệu Chung (Introduction Section) --- */
.page-about-us__introduction-section {
  padding: 60px 0;
  background-color: var(--page-about-us-bg-dark);
}

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

.page-about-us__section-title {
  font-size: 2.5em;
  color: var(--page-about-us-primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-about-us__content-block {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
}

.page-about-us__content-block p {
  margin-bottom: 20px;
  color: var(--page-about-us-text-light);
}

.page-about-us__text-link {
  color: var(--page-about-us-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about-us__text-link:hover {
  color: #fff;
}

.page-about-us__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-about-us__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* --- Phần Giá trị Cốt lõi (Values Section) --- */
.page-about-us__values-section {
  padding: 60px 0;
  background-color: var(--page-about-us-bg-dark);
}

.page-about-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about-us__value-card {
  background: var(--page-about-us-card-bg);
  border: 1px solid var(--page-about-us-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about-us__value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.page-about-us__value-title {
  font-size: 1.6em;
  color: var(--page-about-us-primary-color);
  margin-bottom: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-about-us__value-description {
  font-size: 1em;
  color: var(--page-about-us-text-light);
}

/* --- Phần Cam kết (Commitment Section) --- */
.page-about-us__commitment-section {
  padding: 60px 0;
  background-color: var(--page-about-us-bg-dark);
}

.page-about-us__commitment-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about-us__image-wrapper--left {
  flex: 1;
  min-width: 300px;
}

.page-about-us__text-block {
  flex: 2;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--page-about-us-text-light);
  text-align: justify;
}

.page-about-us__text-block p {
  margin-bottom: 15px;
}

.page-about-us__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin-top: 20px;
  cursor: pointer;
}

.page-about-us__button--primary {
  background-color: var(--page-about-us-primary-color);
  color: var(--page-about-us-text-dark);
  border: 2px solid var(--page-about-us-primary-color);
}

.page-about-us__button--primary:hover {
  background-color: #ffd000;
  color: #000;
  border-color: #ffd000;
}

.page-about-us__button--secondary {
  background-color: transparent;
  color: var(--page-about-us-primary-color);
  border: 2px solid var(--page-about-us-primary-color);
}

.page-about-us__button--secondary:hover {
  background-color: var(--page-about-us-primary-color);
  color: var(--page-about-us-text-dark);
}

/* --- Phần Câu hỏi Thường gặp (FAQ Section) --- */
.page-about-us__faq-section {
  padding: 60px 0;
  background-color: var(--page-about-us-bg-dark);
}

.page-about-us__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about-us__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--page-about-us-border-color);
  background: var(--page-about-us-card-bg);
}

.page-about-us__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about-us__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-about-us__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--page-about-us-text-light);
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
}

.page-about-us__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--page-about-us-primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-about-us__faq-item.active .page-about-us__faq-toggle {
  color: var(--page-about-us-text-light);
  transform: rotate(45deg);
}

.page-about-us__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;
}

.page-about-us__faq-item.active .page-about-us__faq-answer {
  max-height: 2000px !important; /* Giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--page-about-us-border-color);
  border-radius: 0 0 8px 8px;
}

.page-about-us__faq-answer p {
  color: var(--page-about-us-text-light);
  margin-bottom: 15px;
}

.page-about-us__faq-answer .page-about-us__button {
  margin-top: 0;
}

/* --- Phần Kêu gọi hành động (CTA Section) --- */
.page-about-us__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--page-about-us-bg-dark), var(--page-about-us-secondary-color));
}

.page-about-us__section-title--cta {
  color: var(--page-about-us-primary-color);
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-about-us__cta-description {
  font-size: 1.3em;
  color: var(--page-about-us-text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about-us__button--large {
  padding: 15px 40px;
  font-size: 1.2em;
  border-radius: 8px;
}

/* --- Responsive Design (Thiết kế đáp ứng) --- */

/* Mobile (Dưới 768px) */
@media (max-width: 768px) {
  .page-about-us {
    padding-top: 100px; /* Khoảng cách cho thanh nav di động */
    font-size: 15px;
    line-height: 1.5;
  }

  .page-about-us__hero-banner {
    padding: 60px 15px;
  }

  .page-about-us__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-about-us__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about-us__container {
    padding: 0 15px;
  }

  .page-about-us__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-about-us__content-block,
  .page-about-us__text-block {
    font-size: 1em;
  }

  .page-about-us__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about-us__value-card {
    padding: 25px;
  }

  .page-about-us__value-title {
    font-size: 1.4em;
  }

  .page-about-us__commitment-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-about-us__image-wrapper--left {
    min-width: unset;
    width: 100%;
  }

  .page-about-us__button {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  .page-about-us__faq-question {
    padding: 15px 20px;
  }

  .page-about-us__faq-question h3 {
    font-size: 1.1em;
  }

  .page-about-us__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }

  .page-about-us__faq-answer {
    padding: 0 20px;
  }

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

  .page-about-us__cta-section {
    padding: 60px 15px;
  }

  .page-about-us__section-title--cta {
    font-size: 2.2em;
    margin-bottom: 20px;
  }

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

  .page-about-us__button--large {
    padding: 12px 30px;
    font-size: 1.1em;
  }
}

/* --- Responsive Images (Ảnh đáp ứng) --- */
.page-about-us img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-about-us img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about-us__container,
  .page-about-us__hero-banner,
  .page-about-us__introduction-section,
  .page-about-us__values-section,
  .page-about-us__commitment-section,
  .page-about-us__faq-section,
  .page-about-us__cta-section,
  .page-about-us__value-card,
  .page-about-us__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about-us__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* --- Contrast Fix (Sửa lỗi độ tương phản) --- */
/* Các lớp này có thể được áp dụng nếu có vấn đề về độ tương phản */
.page-about-us__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about-us__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}