/* style/about.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-about {
  background-color: #08160F; /* Nền tối theo tùy chỉnh */
  color: #F2FFF6; /* Chữ sáng trên nền tối */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Đảm bảo hình ảnh trên, nội dung dưới */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* padding-top nhỏ, không dùng --header-offset */
  overflow: hidden; /* Ngăn chặn tràn nội dung */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-about__hero-content {
  position: relative; /* Không absolute để không chồng lên ảnh */
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: 20px; /* Tạo khoảng cách với ảnh */
  background: rgba(17, 40, 27, 0.8); /* Nền hơi trong suốt để nổi bật */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__main-title {
  font-size: clamp(2em, 5vw, 3em); /* H1 không fixed font-size, dùng clamp */
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
  gap: 20px;
  justify-content: center;
  width: 100%; /* Đảm bảo container chiếm toàn bộ chiều rộng */
  max-width: 500px; /* Giới hạn chiều rộng cho desktop */
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Đảm bảo từ dài xuống dòng */
  text-align: center;
  flex-grow: 1; /* Cho phép nút mở rộng */
  max-width: 220px; /* Giới hạn chiều rộng tối đa */
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-about__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F;
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

.page-about__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  max-width: 180px;
}

.page-about__section-spacing {
  padding: 60px 0;
}

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

.page-about__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #2AD16F;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about__subsection-title {
  font-size: clamp(1.4em, 3vw, 1.8em);
  color: #2AD16F;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-about__paragraph {
  font-size: 1.05em;
  color: #A7D9B8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #F2FFF6;
  font-size: 1.05em;
}

.page-about__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2AD16F;
  font-weight: bold;
  font-size: 1.2em;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px; /* Tối thiểu 200px */
  min-height: 200px; /* Tối thiểu 200px */
}

/* Dark section styling */
.page-about__dark-section {
  background-color: #11271B; /* Card B G */
}

/* Feature Grid */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-description {
  color: #A7D9B8;
  font-size: 1em;
  text-align: justify;
}

.page-about__feature-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  min-width: 200px; /* Tối thiểu 200px */
  min-height: 200px; /* Tối thiểu 200px */
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #1E3A2A; /* Divider color */
  border-bottom: 1px solid #2E7A4E; /* Border color */
}

.page-about__faq-question:hover {
  background-color: #2E7A4E;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D;
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.05em;
  color: #A7D9B8;
  text-align: justify;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: none;
}

.page-about__faq-answer .page-about__btn-primary,
.page-about__faq-answer .page-about__btn-secondary {
  margin-top: 15px;
  display: inline-block; /* Để nút không chiếm toàn bộ chiều rộng */
  max-width: 200px; /* Giới hạn chiều rộng nút trong FAQ */
  flex-grow: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-about__intro-text {
    font-size: 1em;
  }

  .page-about__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

  .page-about__subsection-title {
    font-size: clamp(1.2em, 5vw, 1.6em);
  }

  .page-about__cta-buttons {
    flex-direction: column; /* Nút xếp chồng trên mobile */
    gap: 15px;
    max-width: 100%;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important; /* Quan trọng để đảm bảo full width */
    width: 100% !important;
    padding: 12px 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section-spacing {
    padding: 40px 0;
  }

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

  .page-about__feature-grid {
    grid-template-columns: 1fr;
  }

  /* 移动端图片适配强制要求 */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Đảm bảo không nhỏ hơn 200px */
    min-height: 200px !important; /* Đảm bảo không nhỏ hơn 200px */
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__advantages-section,
  .page-about__responsibility-section,
  .page-about__team-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* 视频相关样式 (nếu có) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-about__video-section {
    padding-top: 10px !important;
  }

  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}