/* style/about.css */
/* 
  Màu sắc chính: #26A9E0
  Màu sắc phụ: #FFFFFF
  Màu sắc nền body: var(--secondary-color) -> #FFFFFF (nhạt)
  Do nền body là màu nhạt, văn bản chính sẽ sử dụng màu tối #333333.
*/

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: var(--secondary-color); /* Matches body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-about__section {
  padding: 60px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.page-about__section:last-of-type {
  border-bottom: none;
}

.page-about__section-title {
  font-size: 36px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 24px;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__description {
  text-align: center;
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-about p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-about strong {
  color: #26A9E0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0; /* padding-top handled by .page-about */
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Fading brand color to white */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  font-size: 48px;
  color: #FFFFFF; /* White text for contrast on brand color background */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__intro-text {
  font-size: 20px;
  color: #f0f0f0; /* Slightly off-white for contrast */
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: #d66b05;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background: #e0f7fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Grid for Mission/Vision */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dark Section Styling */
.page-about__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__description,
.page-about__dark-section .page-about__sub-title {
  color: #ffffff; /* White text for dark background */
}

/* Timeline */
.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 50px;
  padding-left: 30px; /* For the vertical line */
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.3);
}

.page-about__timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border-radius: 50%;
  border: 2px solid #EA7C07; /* Login color for highlight */
  z-index: 1;
}

.page-about__timeline-year {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-about__timeline-item p {
  font-size: 16px;
  color: #e0e0e0;
}


/* Core Values */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__value-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-about__value-item img {
  width: 200px; /* Enforced min size */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__value-item .page-about__sub-title {
  color: #26A9E0;
  font-size: 20px;
  margin-top: 0;
}

.page-about__value-item p {
  font-size: 15px;
  color: #555555;
}

/* Team Section */
.page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__team-member {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-about__team-member img {
  width: 200px; /* Enforced min size */
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #26A9E0;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__member-name {
  font-size: 20px;
  color: #26A9E0;
  margin-bottom: 5px;
  font-weight: bold;
}

.page-about__member-title {
  font-size: 16px;
  color: #777777;
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 14px;
  color: #555555;
}

/* Why Choose Us */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
}

.page-about__feature-item img {
  width: 200px; /* Enforced min size */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-item .page-about__sub-title {
  color: #26A9E0;
  font-size: 20px;
  margin-top: 0;
}

.page-about__feature-item p {
  font-size: 15px;
  color: #555555;
}

/* Commitment List */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__commitment-list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__commitment-list li strong {
  color: #ffffff;
  margin-right: 10px;
}

.page-about__commitment-list li::before {
  content: '✔';
  color: #EA7C07; /* Login color for checkmark */
  font-size: 24px;
  margin-right: 15px;
  font-weight: bold;
}

/* FAQ Section */
.page-about__faq {
  padding-bottom: 80px;
}

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-about__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 15px;
  opacity: 0;
  color: #555555;
  font-size: 15px;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border-top: 1px solid #e0e0e0;
}

/* Vấn đề kiểu dáng */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

/* Vấn đề tiêu đề kiểu dáng */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp chuột */
  color: #333333;
}

/* Chuyển đổi biểu tượng */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp chuột */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #26A9E0; /* Brand color */
  transform: rotate(45deg); /* Plus to X rotation */
}


/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__main-title {
    font-size: 38px;
  }
  .page-about__intro-text {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

  .page-about__intro-text {
    font-size: 16px;
  }

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