/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-about__section-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0047AB, #002D62); /* Dark blue gradient */
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid #FFD700;
}

.page-about__hero-content {
  max-width: 900px;
  z-index: 1;
  margin-bottom: 40px;
}

.page-about__hero-title {
  font-size: 52px;
  font-weight: 800;
  color: #FFD700; /* Gold for hero title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
  background: #FFD700; /* Gold button */
  color: #0047AB; /* Dark blue text */
  border: 2px solid #FFD700;
  margin: 0 10px;
}

.page-about__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-about__btn-secondary {
  background: #0047AB; /* Dark blue button */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  margin: 0 10px;
}

.page-about__btn-secondary:hover {
  background: #003680;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 71, 171, 0.4);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background: #0d0d0d; /* Slightly lighter dark background */
}

.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-about__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white card */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

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

.page-about__card-title {
  font-size: 28px;
  color: #FFD700; /* Gold for card titles */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-about__card-text {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-about__card img {
  width: 100%;
  height: 280px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 80px 0;
  background: #1a1a1a; /* Darker background */
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.05); /* Lighter semi-transparent white */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 71, 171, 0.2); /* Subtle blue border */
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-about__feature-card img {
  width: 100%;
  height: 200px; /* Fixed height for feature images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__feature-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-description {
  font-size: 16px;
  color: #cccccc;
}

/* Responsibility Section */
.page-about__responsibility-section {
  padding: 80px 0;
  background: #0d0d0d;
}

.page-about__responsibility-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-about__responsibility-content img {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-about__responsibility-text {
  flex: 1;
  max-width: 50%;
  color: #f0f0f0;
}

.page-about__responsibility-text p {
  font-size: 17px;
  margin-bottom: 20px;
}

.page-about__responsibility-subtitle {
  font-size: 24px;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__responsibility-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 16px;
  color: #cccccc;
}

.page-about__responsibility-list li {
  margin-bottom: 10px;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0047AB, #002D62);
  text-align: center;
  border-top: 5px solid #FFD700;
}

.page-about__cta-title {
  font-size: 42px;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: 800;
}

.page-about__cta-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 40px;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* For responsiveness */
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  overflow: hidden; /* For responsiveness */
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background: #1a1a1a;
}

.page-about__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Light background for items */
  border: 1px solid rgba(255, 215, 0, 0.1);
}

/* 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 25px;
  opacity: 0;
  color: #cccccc;
  font-size: 16px;
}

/* 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 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Slightly darker when open */
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(0, 71, 171, 0.3); /* Dark blue semi-transparent */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: rgba(0, 71, 171, 0.5);
  border-color: #FFD700;
}

.page-about__faq-question:active {
  background: rgba(0, 71, 171, 0.6);
}

/* 问题标题样式 */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for FAQ questions */
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 44px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__mission-vision-grid {
    grid-template-columns: 1fr;
  }
  .page-about__responsibility-content {
    flex-direction: column;
  }
  .page-about__responsibility-content img,
  .page-about__responsibility-text {
    max-width: 100%;
  }
  .page-about__cta-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  /* Mobile image responsive styles */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__responsibility-content img {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsive styles */
  .page-about__btn-primary,
  .page-about__btn-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-left: 15px;
    padding-right: 15px;
    margin: 10px 0 !important; /* Adjust margin for vertical stack */
  }
  
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-about {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-about__section-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-about__hero-section {
    padding: 40px 15px;
  }
  .page-about__hero-title {
    font-size: 36px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__responsibility-section,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 50px 0;
  }
  .page-about__mission-vision-grid,
  .page-about__features-grid {
    gap: 25px;
  }
  .page-about__card {
    padding: 25px;
  }
  .page-about__card-title {
    font-size: 24px;
  }
  .page-about__card img {
    height: 200px;
  }
  .page-about__feature-card img {
    
  }
  .page-about__cta-title {
    font-size: 32px;
  }
  .page-about__cta-description {
    font-size: 18px;
  }
  /* FAQ mobile */
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-question h3 {
    font-size: 17px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 15px !important;
  }
}