/* style/about-us.css */
.page-about-us {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--site-secondary-color); /* Inherit from shared, likely dark */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* Base styles for sections and containers */
.page-about-us__section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden; /* For responsive images */
}

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

.page-about-us__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main titles */
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-about-us__section-description {
  font-size: 18px;
  color: #f0f0f0; /* Lighter text for dark backgrounds */
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Hero Banner Section */
.page-about-us__hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #333333 100%); /* Dark gradient background */
  padding-bottom: 0; /* Adjust as needed */
  color: #ffffff;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0; /* Using padding-top on main */
}

.page-about-us__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  z-index: 1;
}

.page-about-us__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

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

.page-about-us__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 15px; /* Add padding to button container */
}

.page-about-us__btn-primary,
.page-about-us__btn-secondary {
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  display: inline-block; /* Ensure they respect max-width */
}

.page-about-us__btn-primary {
  background-color: #FFD700;
  color: #1A1A1A;
  border: 2px solid #FFD700;
}

.page-about-us__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-about-us__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-about-us__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-3px);
}

.page-about-us__hero-image-container {
  width: 100%;
  margin-top: 50px;
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about-us__hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* Introduction and Team Sections (alternating layout) */
.page-about-us__introduction,
.page-about-us__commitment,
.page-about-us__contact {
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333;
}

.page-about-us__dark-bg {
  background-color: #1A1A1A; /* Dark background */
  color: #ffffff;
}

.page-about-us__dark-bg .page-about-us__section-title {
  color: #FFD700;
}
.page-about-us__dark-bg .page-about-us__section-description {
  color: #f0f0f0;
}
.page-about-us__dark-bg .page-about-us__text-block p {
  color: #f0f0f0;
}

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

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

.page-about-us__text-block {
  flex: 1;
  padding: 20px 0;
}

.page-about-us__text-block p {
  margin-bottom: 20px;
  font-size: 17px;
}

.page-about-us__image-block {
  flex: 1;
  min-width: 300px; /* Minimum width for image block */
  overflow: hidden;
  box-sizing: border-box;
}

.page-about-us__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

.page-about-us__card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px; /* Ensure minimum height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-about-us__card img {
  width: 100%;
  max-width: 250px; /* Max width for card images */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-about-us__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1A1A1A;
}

.page-about-us__card p {
  font-size: 16px;
  color: #555555;
  text-align: center;
}

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

.page-about-us__contact-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-height: 200px; /* Ensure minimum height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-about-us__contact-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1A1A1A;
}

.page-about-us__contact-item p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-about-us__faq-section {
  background-color: #1A1A1A; /* Dark background for FAQ */
  color: #ffffff;
}

.page-about-us__faq-section .page-about-us__section-title {
  color: #FFD700;
}

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #f0f0f0; /* Light text for dark FAQ section */
  background: #2a2a2a; /* Slightly lighter dark background for answer */
}

/* FAQ展开状态 - 🚨 Sử dụng !important và max-height đủ lớn để đả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;
  border-radius: 0 0 5px 5px;
}

/* Câu hỏi kiểu dáng */
.page-about-us__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #333333; /* Darker background for question */
  border: 1px solid #444444;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* Light text for question */
}

.page-about-us__faq-question:hover {
  background: #4a4a4a;
  border-color: #555555;
}

.page-about-us__faq-question:active {
  background: #555555;
}

/* Câu hỏi tiêu đề kiểu dáng */
.page-about-us__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện nhấp */
}

/* Biểu tượng chuyển đổi */
.page-about-us__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold 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-us__faq-item.active .page-about-us__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Plus to X for active */
}

/* Hình ảnh: Không có thuộc tính filter */
.page-about-us img {
  filter: none !important; /* Đảm bảo không áp dụng bộ lọc */
}

/* Thiết kế đáp ứng */
@media (max-width: 1024px) {
  .page-about-us__hero-title {
    font-size: 42px;
  }
  .page-about-us__hero-description {
    font-size: 18px;
  }
  .page-about-us__section-title {
    font-size: 32px;
  }
  .page-about-us__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-about-us__content-wrapper--reversed {
    flex-direction: column; /* Giữ nhất quán trên màn hình nhỏ hơn */
  }
  .page-about-us__text-block,
  .page-about-us__image-block {
    flex: none;
    width: 100%;
  }
  .page-about-us__image-block img {
    max-width: 80%;
    margin: 0 auto;
  }
  .page-about-us__card img {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .page-about-us {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about-us__section {
    padding: 60px 15px;
  }
  .page-about-us__hero-banner {
    padding-top: var(--header-offset, 120px) !important; /* Bù đắp tiêu đề di động */
  }
  .page-about-us__hero-content {
    padding: 30px 15px;
  }
  .page-about-us__hero-title {
    font-size: 32px;
  }
  .page-about-us__hero-description {
    font-size: 16px;
  }
  .page-about-us__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about-us__btn-primary,
  .page-about-us__btn-secondary {
    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;
  }

  .page-about-us__hero-image-container,
  .page-about-us__image-block,
  .page-about-us__card,
  .page-about-us__contact-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about-us__hero-image-container img,
  .page-about-us__image-block img,
  .page-about-us__card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Bắt buộc kích thước tối thiểu trên di động */
    min-height: 200px !important; /* Bắt buộc kích thước tối thiểu trên di động */
    margin: 0 auto;
  }
  .page-about-us__section-title {
    font-size: 28px;
  }
  .page-about-us__section-description {
    font-size: 16px;
  }
  .page-about-us__text-block p {
    font-size: 16px;
  }
  .page-about-us__cards-grid,
  .page-about-us__contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about-us__card,
  .page-about-us__contact-item {
    padding: 25px 15px;
  }
  .page-about-us__card-title,
  .page-about-us__contact-title {
    font-size: 20px;
  }

  /* Kiểu dáng FAQ di động */
  .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: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about-us__faq-answer {
    padding: 0 15px;
  }
  
  .page-about-us__faq-item.active .page-about-us__faq-answer {
    padding: 15px !important;
  }
}