/* Reset + base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  overflow-x: hidden; /* Ngăn chặn nội dung tràn ra ngoài */
}

a {
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-weight: 300 !important;
  font-style: normal;
}

/* Topbar */
.topbar {
  background-color: #f8f9fa;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* topbar không sticky */
}
.topbar .lang-btn img {
  width: 25px;
  height: 25px;
  margin-right: 8px;
  cursor: pointer;
}
.topbar .top-links a {
  margin-left: 12px;
  text-decoration: none;
  color: hsl(0, 18%, 92%);
}
.topbar-right {
  display: flex;
  gap: 1rem;
}
.topbar-right button {
  font-size: 14px;
  background-color: #fff;
  padding: 2px 15px;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
  color: #53565a;
  border: none;
  height: 25px;
}
.topbar-right button:hover {
  background-color: #005e90;
  color: #fff;
  cursor: pointer;
}
.topbar-right .d-flex {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Header */
header {
  font-family: "Montserrat", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: white;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo img {
  height: 75px;
  transition: height 0.3s ease;
}
.navbar {
  position: relative;
}
.nav-menu {
  list-style: none;
  display: flex;
  font-size: 18px;
  gap: 25px;
  max-width: 100%; /* Giới hạn chiều rộng của nav-menu */
}
.nav-menu li a {
  text-decoration: none;
  color: #333;
  border-bottom: solid 2px #fff;
  font-weight: 500;
  transition: all ease-in-out .25s;
}
.nav-menu li a:hover {
  border-color: #0091D0;
}

.nav-menu li a.active {
  color: #007bff; /* hoặc màu nổi bật bạn muốn */
  font-weight: bold;
  border-bottom: 2px solid #007bff;
}

/* Mobile nav icon */
/* Nút mở menu */
.mobile-nav-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #003B5C;
}

/* Menu mobile */
.nav-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Ẩn menu */
  width: 75%;
  max-width: 280px;
  height: 100vh;
  background: #003B5C;
  color: white;
  padding: 20px;
  z-index: 1001;
  transition: right 0.3s ease-in-out;
}

.nav-mobile-menu.active {
  right: 0; /* Hiển thị menu */
}

.nav-mobile {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.nav-mobile li {
  margin: 15px 0;
}

.nav-mobile a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

#mobile-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* Overlay đen mờ */
  z-index: 998;
  display: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
}

/* Ẩn menu desktop trên mobile */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 500px) {
  .d-done{
    display: none;
  }
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* Overlay đen mờ */
  z-index: 998;
  display: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
}


/* .offcanvas.offcanvas-end {
  top: 0;
  right: 0;
  width: var(--bs-offcanvas-width);
  border-left: var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);
  transform: translateX(100%);
} */

/* Hero Section */
.hero-carousel {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
  width: 100vw;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; /* Đặt lại width */
}

.carousel-slide {
  flex: 0 0 100%; /* Mỗi slide chiếm 100% chiều rộng */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* đảm bảo ảnh phủ hết vùng */
}

/* Nút điều hướng */
.hero-carousel button.prev,
.hero-carousel button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 28px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
}
button.prev {
  left: 10px;
}
button.next {
  right: 10px;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.carousel-dots .dot {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}
.carousel-dots .dot.active {
  background: hsl(0, 0%, 95%);
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

  body {
    font-size: 14px; /* Điều chỉnh kích thước chữ cho di động */
  }

  .navbar {
    padding: 10px; /* Điều chỉnh padding cho navbar */
  }

  .nav-menu {
    gap: 10px; /* Giảm khoảng cách giữa các mục trong nav-menu */
  }
}
/*Ban cố vấn */
.partner {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}
.partner h2 {
font-size: 28px;
font-weight: bold;
color: #1c1c1c;
margin-bottom: 10px;
}
.partner .subtext {
font-size: 16px;
color: #444;
margin-bottom: 40px;
line-height: 1.6;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cột cho màn hình lớn */
  gap: 10px;
  max-width: 1100px;
  margin: auto;
}

@media (max-width: 768px) {
  .partner-grid {
    grid-template-columns: 1fr; /* 1 cột cho màn hình nhỏ */
  }
}


/*Khi số lượng lên nhiều thì chuyển thành 2
@media (max-width: 768px) {
.partner-grid {
  grid-template-columns: repeat(2, 1fr); 
}
}
*/

.partner-item {
text-align: center;
}
.partner-item img {
width: 200px;
height: 200px;
object-fit: cover;
border-radius: 50%;
margin-bottom: 16px;
border: 4px solid #eee;
}
.partner-item h4 {
font-size: 16px;
font-weight: 600;
margin-bottom: 6px;
}
.partner-item p {
font-size: 14px;
color: #444;
}

/*Ban chủ nhiệm */
.chu-nhiem {
  padding: 60px 20px;
  text-align: center;
  background: #e9ecef;
}
.chu-nhiem h2 {
  font-size: 28px;
  font-weight: bold;
  color: #1c1c1c;
  margin-bottom: 10px;
}
.chu_nhiem .subtext {
  font-size: 16px;
  color: #444;
  margin-bottom: 40px;
  line-height: 1.6;
}
.chu-nhiem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cột mặc định */
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}
@media (max-width: 768px) {
  .chu-nhiem-grid {
    grid-template-columns: 1fr;
  }
}
/*Khi số lượng lên nhiều thì chuyển thành 2
@media (max-width: 768px) {
  .chu-nhiem-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}
*/

.chu-nhiem-item {
  text-align: center;
}
.chu-nhiem-item img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 4px solid #eee;
}
.chu-nhiem-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.chu-nhiem-item p {
  font-size: 14px;
  color: #444;
}


/*CHO CẢ 3 BAN CỐ VẤN - CHỦ NHIỆM - MSC*/
/*.partner-item:hover, .chu-nhiem-item:hover, .msc-item:hover {
  transform: scale(1.05); // Tăng kích thước một chút 
  transition: transform 0.3s; /* Thêm hiệu ứng chuyển động 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Thêm bóng cho item 
}*/
.partner-item, .chu-nhiem-item, .msc-item {
  position: relative; /* Để cho box-shadow hoạt động đúng */
  overflow: hidden; /* Ẩn phần ảnh ra ngoài */
}

.partner-item img, .chu_nhiem-item img, .msc-item img {
  transition: transform 0.3s, box-shadow 0.3s; /* Thêm hiệu ứng cho ảnh */
}

.partner-item:hover img, .chu_nhiem-item:hover img, .msc-item:hover img {
  transform: scale(1.1); /* Tăng kích thước một chút */
  box-shadow: 0 4px 20px lab(97.65% 0.34 0.11 / 0.949); /* Thêm bóng cho item */
}

.partner-item:hover::before, .chu_nhiem-item:hover::before, .msc-item:hover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%; /* Kích thước lớn hơn để tạo hiệu ứng nổi */
  height: 120%;
  background: #fffffff1; /* Màu nền cho hiệu ứng nổi */
  border-radius: 50%; /* Hình tròn */
  transform: translate(-50%, -50%); /* Căn giữa */
  z-index: -1; /* Đặt dưới ảnh */
  animation: pop-up 0.3s ease forwards; /* Hiệu ứng hoạt hình */
}

@keyframes pop-up {
  0% {
    transform: translate(-50%, -50%) scale(0); /* Bắt đầu từ kích thước 0 */
  }
  100% {
    transform: translate(-50%, -50%) scale(1); /* Kết thúc ở kích thước 100% */
  }
}



/* ===============================
   FLOATING CONTACT ICONS
================================= */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 80px; /* Đẩy các icon lên trên nút Back to Top */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  animation: fadeInRight 1s ease forwards;
}

.floating-contact .contact-btn img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-contact .contact-btn img:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px; /* Đặt nút Back to Top dưới các icon */
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #004080; /* Màu xanh đậm */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #003366; /* Màu xanh đậm hơn khi hover */
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top i {
  font-size: 24px;
}

/* ====================================
     PROJECT SECTION
  ==================================== */
section {
  background-color: #005a99;
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  margin-bottom: 10px;
}

.section-desc {
  color: white;
  font-size: 16px;
  line-height: 1.7;
}

.projects {
  max-width: 1000px;
  margin: 0 auto;
}

.project {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
}

.project .row {
  margin: 0;
}

.img_npo {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.img_npo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.project-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
} 

.project-desc {
  font-size: 12px;
  line-height: 1.6;
  color: #ffffff;
  text-align: justify;
}

@media (max-width: 768px) {
  .project .px-5 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .project-name {
    font-size: 18px;
  }

  .project-desc {
    font-size: 14px;
  }
}
/*footer*/
.footer {
  background: #002a5c;
  color: white;
  padding: 40px 20px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}
.footer-col {
  flex: 1 1 300px;
}
.footer-logo {
  height: 80px;
  margin-bottom: 6px;
}
.footer-sub {
  font-size: 16px;
  opacity: 0.8;
}
.footer-col h4 {
  font-size: 20px;
  margin-bottom: 12px;
}
.social-icons a img {
  width: 35px;
  margin-right: 12px;
}
.fb-box img {
  width: 150%;
  max-width: 300px;
  border: 1px solid #ccc;
  margin-top: 10px;
}
.subscribe-form {
  display: flex;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
  max-width: 350px;
}
.subscribe-form input {
  border: none;
  padding: 12px; /* Tăng padding cho input */
  flex: 1;
  font-size: 16px; /* Tăng kích thước chữ trong input */
}
.subscribe-form button {
  background: #ffc107;
  border: none;
  padding: 12px 16px; /* Tăng padding cho button */
  cursor: pointer;
  font-size: 16px; /* Tăng kích thước chữ trong button */
}
.subscribe-form button img {
  width: 28px;
}
.footer-privacy {
  font-size: 10px; /* Tăng kích thước chữ lên 14px */
  margin-top: 16px;
}
.footer-privacy a {
  color: #ccc;
  text-decoration: underline;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-col {
    flex-basis: auto;
  }

  .footer-logo {
    height: 70px;
  }

  .social-icons a img {
    width: 30px;
  }

  .subscribe-form {
    max-width: 100%;
  }

  .subscribe-form input,
  .subscribe-form button {
    padding: 10px;
    font-size: 14px;
  }

  .subscribe-form button img {
    width: 20px;
  }
}
/*Caurousel*/
.carousel-section {
  padding: 60px 0; /* Thêm padding để tạo khoảng cách với các section khác */
}

.section-title {

  text-align: center;
  margin-bottom: 40px; /* Thêm margin-bottom để tạo khoảng cách với carousel */
}
.section-title h2{
  font-size: 30px;
}
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.carousel-track {
  display: flex;
  width: 200%;
  animation: scroll 15s linear infinite;
  transition: transform 0.5s ease-in-out;
}

.carousel-track img {
  width: 10%;
  flex-shrink: 0;
  margin: 0 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .carousel-track img {
    width: 20%;
    margin: 0 5px;
  }
}

/* ĐỐI TÁC ĐỒNG HÀNH SECTION */
.carousel-section {
  padding: 60px 0;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 10px; /* Khoảng cách giữa các khung */
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img {
  flex: 0 0 calc(20% - 10px); /* 5 khung trên PC (20% mỗi khung) */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .carousel-track img {
    flex: 0 0 calc(25% - 10px); /* 4 khung trên mobile (25% mỗi khung) */
  }
}