/* style/about-us.css */

/* General Styles for the About Us Page */
.page-about-us {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherit from shared.css */
}

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

.page-about-us__section {
  padding: 80px 0;
  text-align: center;
}

.page-about-us__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  text-transform: uppercase;
}

.page-about-us__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #8B0000; /* Dark Red accent */
  border-radius: 2px;
}

.page-about-us__section-title--light {
  color: #ffffff;
}

.page-about-us__section-title--light::after {
  background-color: #FFD700;
}

.page-about-us p {
  font-size: 17px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-about-us a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about-us a:hover {
  color: #ffd000;
  text-decoration: underline;
}

.page-about-us__link--inline {
  font-weight: bold;
}

.page-about-us__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
}

.page-about-us__btn--primary {
  background-color: #FFD700;
  color: #8B0000;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-about-us__btn--primary:hover {
  background-color: #ffd000;
  color: #6a0000;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.page-about-us__btn--secondary {
  background-color: #8B0000;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.page-about-us__btn--secondary:hover {
  background-color: #6a0000;
  color: #ffd000;
  box-shadow: 0 8px 20px rgba(139, 0, 0, 0.6);
  transform: translateY(-2px);
}

/* Hero Section for About Us Page */
.page-about-us__hero-about-us {
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%);
  padding-top: 120px; /* Adjust for fixed header */
  padding-bottom: 80px;
  color: #ffffff;
  text-align: center;
}

.page-about-us__hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-about-us__hero-subtitle {
  font-size: 22px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Introduction Section */
.page-about-us__introduction-section {
  background-color: var(--dark-bg-2);
  padding-top: 60px; /* Ensure spacing after hero */
}

.page-about-us__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about-us__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-about-us__text-block {
  flex: 1;
}

.page-about-us__text-block--light p {
  color: #f0f0f0;
}

.page-about-us__image-block {
  flex: 1;
  min-width: 300px;
}

.page-about-us__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Values Section */
.page-about-us__values-section {
  background-color: #8B0000;
  color: #ffffff;
}

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

.page-about-us__value-card {
  background-color: rgba(255, 215, 0, 0.1);
  border: 1px solid #FFD700;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about-us__value-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 215, 0, 0.2);
}

.page-about-us__value-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about-us__value-card p {
  font-size: 16px;
  color: #f0f0f0;
}

/* Why Choose Section */
.page-about-us__why-choose-section {
  background-color: var(--dark-bg-1);
}

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

.page-about-us__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-about-us__feature-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about-us__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about-us__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 10px;
}

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

/* Vision Section */
.page-about-us__vision-section {
  background-color: #FFD700;
  color: #8B0000;
}

.page-about-us__vision-section .page-about-us__section-title {
  color: #8B0000;
}

.page-about-us__vision-section .page-about-us__section-title::after {
  background-color: #8B0000;
}

.page-about-us__vision-section p {
  color: #333333;
}

.page-about-us__vision-section a {
  color: #8B0000;
}

.page-about-us__vision-section a:hover {
  color: #6a0000;
}

.page-about-us__text-block--light {
  color: #333333;
  text-align: left;
}

/* FAQ Section */
.page-about-us__faq-section {
  background-color: var(--dark-bg-2);
  padding-bottom: 60px;
}

.page-about-us__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

/* FAQ容器样式 */
.page-about-us__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-about-us__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-about-us__faq-item.active .page-about-us__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: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
  color: #e0e0e0;
}

/* Vấn đề FAQ */
.page-about-us__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about-us__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
}

.page-about-us__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Tiêu đề câu hỏi */
.page-about-us__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện click */
}

/* Icon chuyển đổi */
.page-about-us__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; /* Ngăn chặn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-about-us__faq-item.active .page-about-us__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Biến đổi dấu '+' thành 'x' hoặc '-' */
}

/* Call to Action Section */
.page-about-us__cta-section {
  background: linear-gradient(90deg, #8B0000, #FFD700);
  padding: 100px 0;
  color: #ffffff;
}

.page-about-us__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-about-us__cta-title {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.page-about-us__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-about-us__btn--large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about-us__hero-title {
    font-size: 48px;
  }
  .page-about-us__hero-subtitle {
    font-size: 20px;
  }
  .page-about-us__section-title {
    font-size: 34px;
  }
  .page-about-us__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-about-us__content-wrapper--reversed {
    flex-direction: column;
  }
  .page-about-us__text-block, .page-about-us__image-block {
    flex: none;
    width: 100%;
  }
  .page-about-us__features-grid, .page-about-us__values-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about-us__cta-title {
    font-size: 38px;
  }
  .page-about-us__cta-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-about-us {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about-us__container {
    padding: 0 15px;
  }
  .page-about-us__section {
    padding: 60px 0;
  }
  .page-about-us__hero-about-us {
    padding-top: 100px; /* Mobile adjust for fixed header */
    padding-bottom: 60px;
  }
  .page-about-us__hero-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .page-about-us__hero-subtitle {
    font-size: 17px;
    margin-bottom: 30px;
  }
  .page-about-us__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about-us__section-title::after {
    width: 60px;
  }
  .page-about-us p {
    font-size: 15px;
  }
  .page-about-us__btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-about-us__value-card, .page-about-us__feature-item {
    padding: 20px;
  }
  .page-about-us__value-title, .page-about-us__feature-title {
    font-size: 20px;
  }
  .page-about-us__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-about-us__cta-section {
    padding: 80px 0;
  }
  .page-about-us__cta-title {
    font-size: 30px;
  }
  .page-about-us__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-about-us__btn--large {
    padding: 15px 30px;
    font-size: 18px;
  }

  /* Mobile FAQ */
  .page-about-us__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about-us__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about-us__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-about-us__faq-answer {
    padding: 0 15px;
  }
  
  .page-about-us__faq-item.active .page-about-us__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-about-us img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about-us__section,
  .page-about-us__card,
  .page-about-us__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}