/* Chung */
p,
div {
  color: #333333;
}

/* About */
.about-container {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Hero section */
.page-hero {
  margin-bottom: 3rem;
}

.page-title-container {
  width: 50%;
  padding: 0 5%;
}

/* Tiêu đề */
.page-title {
  font-size: 60px;
  font-weight: 700;
  max-height: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.page-description {
  font-size: 16px;
  margin-top: 1rem;
  color: #333333;
  line-height: 1.5;
  text-align: justify;
}
/* Thumbnail */
.page-thumbnail {
  width: 50%;
}

.img-fluid {
  width: 100%;
}

/* === TẦM NHÌN - SỨ MỆNH === */

.vision-mission-section {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.vision-mission-wrapper {
  gap: 7rem;
}

.vision-item {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
}

.vision-item__title {
  font-size: 36px;
  margin-bottom: 30px;
}

.vision-item__divider {
  height: 0.5px;
  background-color: #333333;
}

.vision-item__content {
  font-size: 16px;
  padding: 20px 0;
  min-height: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Crew section giữ nguyên class cũ === */
.crew-container {
  height: auto;
  padding-top: 100px;
}

.crew-container h1 {
  font-weight: 700;
  color: #333333;
}

.crew-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* margin-bottom: 2rem; */
}

.crew-member-container .profile-card {
  position: relative;
  width: 15rem;
  height: 20rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.crew-member-container .profile-card img {
  width: 100%;
  height: 100%;
  display: block;
}

.crew-member-container .profile-card .profile-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  text-align: center;
  height: 100px;
}

.crew-member-container .profile-card .profile-info h4 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.crew-member-container .profile-card .profile-info p {
  margin: 5px 0 0;
  font-size: 14px;
  color: white;
}

/* === Dự án xã hội giữ nguyên class cũ === */

.social-project-container .project-card-container .custom-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  width: 19rem;
  padding: 0.5rem;
}

.social-project-container .project-card-container .custom-card img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  margin-bottom: 1rem;
}

.social-project-container
  .project-card-container
  .custom-card
  .custom-card-body
  .custom-card-title {
  font-weight: bold;
  font-size: 18px;
}

.social-project-container
  .project-card-container
  .custom-card
  .custom-card-body
  .custom-card-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 7.5em;
  line-height: 1.5em;
}

.social-project-container
  .project-card-container
  .custom-card
  .custom-card-body
  .custom-btn {
  background-color: black;
  color: white;
  border-radius: 5px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  text-decoration: none;
}

.social-project-container
  .project-card-container
  .custom-card
  .custom-card-body
  .custom-btn:hover {
  background-color: #333;
  color: white;
}

.social-project-container
  .project-card-container
  .custom-card
  .custom-card-body
  .custom-btn
  i {
  margin-left: 5px;
}

.custom-link {
  text-decoration: none;
  color: black;
  position: relative;
  padding-bottom: 3px;
  font-size: 1.2rem;
  font-weight: 600;
}

.custom-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease-in-out;
}

.custom-link:hover::after {
  width: 100%;
}

/* Media Queries */

/* ≤1200px (Large screens like laptops) */
@media (max-width: 1200px) {
  .page-title {
    font-size: 52px;
  }
  .page-description {
    font-size: 18px;
  }
  .vision-mission-section {
    gap: 6rem;
  }

  .vision-item__title {
    font-size: 30px; /* Giảm kích thước font cho tiêu đề */
  }

  .vision-item__content {
    font-size: 14px; /* Giảm kích thước font cho nội dung */
    min-height: 120px; /* Giảm min-height cho nội dung */
  }

  .crew-member-container .profile-card {
    width: 14rem;
    height: 18rem;
  }

  .social-project-container .project-card-container .custom-card {
    width: 18rem;
  }
}

/* ≤992px (Medium screens like tablets) */
@media (max-width: 992px) {
  .page-title {
    font-size: 44px;
  }
  .page-description {
    font-size: 16px;
  }
  .page-header-container {
    flex-direction: column !important;
    gap: 2rem;
    margin: 0 !important;
  }

  .page-title-container {
    justify-content: start;
  }

  .page-thumbnail {
    justify-content: center;
    margin: 0 !important;
  }

  .page-title-container,
  .page-thumbnail {
    width: 100%;
    padding: 0 20px;
  }

  .vision-mission-section {
    flex-direction: column;
    gap: 5rem;
  }

  .vision-item__title {
    font-size: 26px; /* Giảm kích thước font cho tiêu đề */
  }

  .vision-item__content {
    font-size: 13px; /* Giảm kích thước font cho nội dung */
    min-height: 100px; /* Giảm min-height cho nội dung */
  }
  .crew-member-container .profile-card {
    width: 12rem;
    height: 16rem;
  }

  .social-project-container .project-card-container .custom-card {
    width: 17rem;
  }
}

/* ≤768px (Small screens like mobile devices) */
@media (max-width: 768px) {
  .page-title {
    font-size: 36px;
    text-align: center;
  }
  .page-description {
    font-size: 15px;
  }
  .vision-mission-section {
    height: auto;
  }

  .vision-mission-wrapper {
    gap: 3rem;
  }

  .vision-item__title {
    font-size: 22px; /* Giảm kích thước font cho tiêu đề */
  }

  .vision-item__content {
    font-size: 12px; /* Giảm kích thước font cho nội dung */
    min-height: 90px; /* Giảm min-height cho nội dung */
  }

  .social-project-container .project-card-container .custom-card {
    width: 16rem;
  }
  .social-project-description {
    width: 100%;
  }
  .social-project-container
    .project-card-container
    .custom-card-body
    .custom-card-text {
    height: 6em;
  }

  .crew-member-container .profile-card {
    width: 10rem;
    height: 14rem;
  }
}

/* ≤576px (Mobile screens) */
@media (max-width: 576px) {
  .page-title {
    font-size: 26px;
  }
  .page-description {
    font-size: 14px;
  }
  .page-title-container {
    width: 100%;
    padding: 0 12px;
  }

  .page-header-container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important ;
    margin-left: 0 !important;
  }
  .page-title-container,
  .page-thumbnail {
    width: 100% !important;
    margin: 0 !important;
  }

  .page-thumbnail {
    padding: 0 !important;
  }

  .vision-item__title {
    font-size: 20px; /* Giảm kích thước font cho tiêu đề */
  }

  .vision-item__content {
    font-size: 11px; /* Giảm kích thước font cho nội dung */
    min-height: 80px; /* Giảm min-height cho nội dung */
  }
  .crew-member-container .profile-card {
    width: 100%;
    height: 16rem;
  }

  .social-project-container .project-card-container .custom-card {
    width: 100%;
  }

  .custom-link {
    font-size: 1.1rem;
  }
}
