/* CSS cho trang Về chúng tôi - page-about.css */

/* Biến màu từ chủ đề */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main-color: #1F2D3D;
  --text-black-color: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Mặc định cho body là nền sáng */
  background-color: var(--background-color);
}

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

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Nhỏ hơn so với --header-offset */
  position: relative;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-about__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for hero image wrapper on desktop */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-about__section {
  padding: 60px 0;
}

.page-about__section--alt-bg {
  background-color: var(--background-color);
}

.page-about__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-about__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Grid Layouts */
.page-about__grid {
  display: grid;
  gap: 30px;
  margin-bottom: 30px;
}

.page-about__grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.page-about__grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.page-about__grid--reverse {
  display: flex;
  flex-direction: row-reverse;
}

/* Card Styling */
.page-about__card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__value-item p {
  color: var(--text-main-color);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 5px 20px rgba(47, 107, 255, 0.4);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-about__btn-lg {
  padding: 16px 35px;
  font-size: 1.2rem;
}

.page-about__btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

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

.page-about__team-member {
  text-align: center;
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.page-about__team-member img {
  
  
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid var(--primary-color);
}

.page-about__member-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main-color);
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1rem;
  color: #666;
}

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

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border-color);
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-question::marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  border-top: 1px solid transparent; /* Placeholder for visual separation */
}

.page-about__faq-answer p {
  margin-bottom: 15px;
}

.page-about__btn-faq {
  margin-top: 10px;
  display: inline-block;
}

/* CTA Section */
.page-about__section--cta {
  background: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  border-radius: 15px;
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.3);
}

.page-about__cta-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__cta-description {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* News Section */
.page-about__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-about__news-card {
  padding: 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: none;
}

.page-about__news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin-bottom: 0;
}

.page-about__news-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 220px); /* Adjust height based on image */
}

.page-about__news-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-about__news-card-title a {
  text-decoration: none;
  color: inherit;
}

.page-about__news-card-title a:hover {
  color: var(--primary-color);
}

.page-about__news-card-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.page-about__news-card-excerpt {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__news-all-button {
  text-align: center;
  margin-top: 50px;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-about__container {
    padding: 20px 30px;
  }

  .page-about__hero-title {
    font-size: 3rem;
  }

  .page-about__hero-description {
    font-size: 1.15rem;
  }

  .page-about__section-title {
    font-size: 2.2rem;
  }

  .page-about__sub-title {
    font-size: 1.6rem;
  }

  .page-about__grid--2-cols {
    grid-template-columns: 1fr;
  }

  .page-about__grid--3-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-about__team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-about__news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-about__cta-title {
    font-size: 2.5rem;
  }

  .page-about__cta-description {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px; /* 保持 nhỏ顶距 */
    padding-bottom: 30px;
  }

  .page-about__hero-image-wrapper {
    height: 300px; /* Giảm chiều cao ảnh hero trên mobile */
  }

  .page-about__hero-title {
    font-size: 2rem !important; /* Sử dụng !important để đảm bảo */
    margin-bottom: 10px;
  }

  .page-about__hero-description {
    font-size: 1rem !important;
    margin-bottom: 20px;
  }

  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* General Section & Container */
  .page-about__section {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 0 15px; /* Thêm padding ngang cho container trên mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.4rem !important;
    margin-top: 20px;
  }

  .page-about__text-block {
    font-size: 1rem !important;
    line-height: 1.7;
  }

  /* Grid Layouts */
  .page-about__grid {
    gap: 20px;
  }

  .page-about__grid--2-cols,
  .page-about__grid--3-cols {
    grid-template-columns: 1fr !important;
  }

  .page-about__grid--reverse {
    flex-direction: column-reverse; /* Đảo ngược thứ tự trên mobile */
  }

  /* Card Styling */
  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.3rem !important;
  }

  /* Buttons */
  .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;
    font-size: 1rem !important;
  }

  /* Image Responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-wrapper,
  .page-about__news-card img {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}