:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* style/about.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

/* Base styles for the About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Sử dụng màu văn bản chính từ bảng màu tùy chỉnh */
  background-color: var(--background); /* Sử dụng màu nền chính từ bảng màu tùy chỉnh */
}

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

/* Headings */
.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Sử dụng clamp cho h1 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
  text-align: center;
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--glow); /* Sử dụng màu Glow */
  border-radius: 2px;
}

.page-about h1, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
    color: var(--text-main); /* Đảm bảo tất cả tiêu đề đều dùng màu Text Main */
}

.page-about p {
    color: var(--text-secondary); /* Đoạn văn sử dụng màu Text Secondary */
    margin-bottom: 15px;
}

.page-about strong {
    color: var(--text-main); /* Chữ in đậm nổi bật hơn */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Quan trọng: hình ảnh trên, nội dung dưới */
  align-items: center;
  padding: 10px 0 60px 0; /* Chỉ 10px padding-top, không dùng var(--header-offset) */
  background-color: var(--background); /* Đảm bảo nền khớp */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
}

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

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-about__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên di động */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-about__cta-buttons--center {
  justify-content: center;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn trên di động */
  white-space: normal; /* Cho phép văn bản trong nút xuống dòng */
  word-wrap: break-word; /* Đảm bảo văn bản ngắt dòng */
}

.page-about__btn-primary {
  background: var(--button-gradient); /* Màu nút tùy chỉnh */
  color: var(--text-main); /* Màu chữ chính, thường là trắng */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--text-main); /* Màu chữ chính */
  border: 2px solid var(--glow); /* Viền màu Glow */
}

.page-about__btn-secondary:hover {
  background: var(--glow); /* Nền màu Glow */
  color: var(--background); /* Chữ màu nền */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Section common styles */
.page-about__mission-section,
.page-about__why-choose-us-section,
.page-about__values-section,
.page-about__faq-section,
.page-about__cta-final-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--divider); /* Đường phân cách */
}

.page-about__mission-section {
  background-color: var(--card-bg); /* Nền Card BG */
}

.page-about__dark-section {
  background-color: var(--card-bg); /* Nền Card BG cho các phần tối */
  color: var(--text-main); /* Chữ màu Text Main */
}

.page-about__dark-section p {
    color: var(--text-secondary); /* Đoạn văn trong phần tối vẫn dùng Text Secondary */
}

.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block,
.page-about__image-block {
  flex: 1;
}

.page-about__image-block--full-width {
    flex: none;
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__content-text {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: var(--card-bg); /* Nền Card BG */
  border: 1px solid var(--border); /* Viền màu Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main); /* Chữ màu Text Main */
  font-size: 1.1rem;
  background-color: var(--deep-green); /* Nền Deep Green */
  transition: background-color 0.3s ease;
  user-select: none;
  list-style: none; /* Hide default marker for summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-about__faq-question:hover {
  background-color: #1a5e3c; /* Tối hơn một chút */
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--glow); /* Màu Glow */
}

.page-about__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--text-secondary); /* Chữ màu Text Secondary */
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Đủ lớn để chứa nội dung */
  padding: 15px 25px 20px 25px;
}

/* Final CTA Section */
.page-about__cta-final-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--background); /* Nền Background */
}

.page-about__cta-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column; /* Đảo ngược lại trên di động để text vẫn ở trên ảnh */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: 2rem;
    padding: 0 15px;
  }

  .page-about__section-title {
    font-size: 1.8rem;
    padding: 0 15px;
  }

  .page-about__hero-description,
  .page-about__cta-description {
    font-size: 1rem;
    padding: 0 15px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__mission-section,
  .page-about__why-choose-us-section,
  .page-about__values-section,
  .page-about__faq-section,
  .page-about__cta-final-section {
    padding: 50px 0;
  }

  /* Image responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px !important; /* Ensure content is visible */
    padding: 10px 20px 15px 20px !important;
  }
}