/* style/about.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này KHÔNG được viết lại */

:root {
  --page-about-primary-color: #26A9E0;
  --page-about-secondary-color: #FFFFFF;
  --page-about-text-dark: #333333;
  --page-about-text-light: #FFFFFF;
  --page-about-background-light: #FFFFFF;
  --page-about-button-login: #EA7C07;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-about-text-dark); /* Mặc định chữ tối trên nền sáng */
  background-color: var(--page-about-background-light);
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Chỉ một khoảng đệm nhỏ, không dùng var(--header-offset) */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao cho ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -100px; /* Đẩy nội dung lên một chút để chồng lên ảnh hero */
  background: rgba(255, 255, 255, 0.9); /* Nền bán trong suốt để chữ rõ hơn */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Tối ưu kích thước chữ H1 */
  font-weight: 700;
  color: var(--page-about-primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.1em;
  color: var(--page-about-text-dark);
  margin-bottom: 30px;
}

.page-about__hero-cta-button {
  display: inline-block;
  background-color: var(--page-about-primary-color);
  color: var(--page-about-text-light);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-about__hero-cta-button:hover {
  background-color: #1a8cc7;
}

/* Generic Section Styling */
.page-about__vision-mission-section,
.page-about__why-choose-us-section,
.page-about__contact-cta-section {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 2.2em;
  color: var(--page-about-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

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

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

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-about__sub-title {
  font-size: 1.5em;
  color: var(--page-about-primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-about__values-section {
  padding: 80px 0;
  background-color: var(--page-about-primary-color);
  color: var(--page-about-text-light); /* Chữ sáng trên nền tối */
}

.page-about__dark-section .page-about__section-title {
  color: var(--page-about-text-light);
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.25);
}

.page-about__value-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: var(--page-about-text-light);
}

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

.page-about__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%2326A9E0"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-about__contact-cta-section {
  background-color: #f5f5f5;
  text-align: center;
  padding: 80px 0;
}

.page-about__contact-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  background-color: var(--page-about-primary-color);
  color: var(--page-about-text-light);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-about__cta-button:hover {
  background-color: #1a8cc7;
}

.page-about__cta-button--secondary {
  background-color: var(--page-about-button-login); /* Màu cam cho nút phụ */
}

.page-about__cta-button--secondary:hover {
  background-color: #c76505;
}

/* Footer placeholder specific styling if needed */
.page-about__footer-placeholder {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #777;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__hero-content {
    margin-top: -50px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.3em;
  }

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

  /* Responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Responsive buttons */
  .page-about__hero-cta-button,
  .page-about__cta-button,
  .page-about__cta-button--secondary,
  .page-about a[class*="button"],
  .page-about 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: 12px 20px;
  }

  .page-about__contact-cta-section .page-about__cta-button {
    margin-top: 15px;
  }

  /* Ensure containers with buttons/images also adapt */
  .page-about__vision-mission-section,
  .page-about__why-choose-us-section,
  .page-about__contact-cta-section,
  .page-about__values-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

@media (max-width: 480px) {
  .page-about__hero-content {
    margin-top: -30px;
  }
  .page-about__main-title {
    font-size: clamp(1.6em, 8vw, 2em);
  }
  .page-about__intro-text {
    font-size: 0.95em;
  }
  .page-about__hero-cta-button {
    padding: 12px 25px;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__value-card {
    padding: 20px;
  }
  .page-about__feature-list li {
    font-size: 1em;
  }
}