/* style/about.css */

/* --- Base Styles --- */
.page-about {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure body background is white */
}

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

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

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

.page-about__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-about__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
}

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

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white background for text */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-about__main-title {
  font-size: 48px;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-about__intro-description {
  font-size: 20px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px; /* Pill shape */
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

.page-about__cta-button:hover {
  background: #1e87c0; /* Darker shade of primary */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.6);
}

/* --- Mission & Vision Section --- */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
}

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

/* --- Values Section --- */
.page-about__values-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary brand color as dark background */
  color: #ffffff; /* White text for dark background */
}

.page-about__values-section .page-about__section-title {
  color: #ffffff; /* White title */
}

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

.page-about__value-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  height: 100%;
}

.page-about__value-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__value-item p {
  font-size: 16px;
  line-height: 1.7;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #ffffff; /* White background */
}

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

/* --- Team Section --- */
.page-about__team-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary brand color as dark background */
  color: #ffffff; /* White text for dark background */
}

.page-about__team-section .page-about__section-title {
  color: #ffffff; /* White title */
}

.page-about__team-section .page-about__section-description {
  color: #e0f2f7; /* Lighter text for description */
}

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

.page-about__team-member {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: none; /* Remove shadow for team cards */
}

.page-about__team-member:hover {
  transform: none; /* Remove hover effect for consistency */
  box-shadow: none;
}

.page-about__team-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid #ffffff;
}

.page-about__team-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.page-about__team-role {
  font-size: 16px;
  color: #e0f2f7;
  margin-bottom: 15px;
}

.page-about__team-bio {
  font-size: 15px;
  color: #f0f8ff;
  line-height: 1.6;
}

/* --- FAQ Section --- */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
}

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  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 20px;
  opacity: 0;
  background: #ffffff;
  color: #555555;
}

/* FAQ展开状态 - 🚨 使用!important và giá trị đủ lớn để đảm bảo nó mở ra */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo mức độ ưu tiên, giá trị đủ lớn để chứa bất kỳ nội dung nào */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
}

/* Câu hỏi phong cách */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #26A9E0; /* Primary brand color for question background */
  color: #ffffff; /* White text for question */
  border: 1px solid #26A9E0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #1e87c0; /* Darker shade on hover */
  border-color: #1e87c0;
}

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

/* Câu hỏi tiêu đề phong cách */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: #ffffff; /* White text for question title */
}

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'minus' effect */
}

/* --- Floating CTA Button --- */
.page-about__floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.page-about__floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 25px;
  background: #EA7C07; /* Login color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(234, 124, 7, 0.4);
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

.page-about__floating-button:hover {
  background: #d66f06;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(234, 124, 7, 0.6);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__intro-description {
    font-size: 18px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__card-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-about__grid,
  .page-about__values-grid,
  .page-about__reason-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card,
  .page-about__value-item,
  .page-about__team-member {
    padding: 20px;
  }

  .page-about__card-image {
    margin-bottom: 15px;
  }

  .page-about__card-title {
    font-size: 20px;
  }

  .page-about__team-image {
    width: 120px;
    height: 120px;
  }

  /* FAQ Mobile Adaptations */
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-about__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile button responsiveness */
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__floating-cta {
    bottom: 15px;
    right: 15px;
  }
  .page-about__floating-button {
    padding: 12px 20px;
    font-size: 14px;
    min-width: 120px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}