/* Reset cơ bản */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*main {
  line-height: 1.1; /* giảm line-height toàn bộ nội dung chính 
}*/
/*chỉnh khoảng cách giữa các đoạn nhỏ 0.5px */
.page-title,
.content-section h3,
.content-section h4,
.content-section p {
  line-height: 1.1;
}

body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #0b1d58;
}
.container {
  max-width: 1000px;
  margin: auto;
  padding: 0px;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
}

/* Main header layout */
.main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 0; /* Không cần thêm padding */
}




.menu-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px; /* <<< Tăng gấp đôi khoảng cách giữa hai dòng tab */
}

.top-nav {
  margin-top: 20px; /* <<< Đẩy nhóm tab Faculty/Staff... xuống */
}

.top-nav ul {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-nav .separator {
  color: #ccc;
}
.top-nav a {
  font-size: 12px;
  color: #0b1d58;
}
.top-nav a:hover {
  color: #28a745;
}
.top-nav .lang.active {
  color: #db1f12;
  font-weight: bold;
}

/* Main navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
}
/*PHẦN LOGO TRƯỜNG logo.png*/   /*- giảm thì dịch qua bên phỉa, tăng thì dịch qua =bên trái*/

.branding {
  margin-left: -3cm;
}

.branding img {
  height: 160px;
  margin-top: -10px; /* <<< Đẩy logo lên khoảng 1cm */
}
.main-nav a {
  font-size: 15px;         /* Giới thiệu  Bộ môn Quy định - Quy trình - Biểu mẫu */
  font-weight: bold;       /* tô đậm */
  text-transform: none;    /* vẫn giữ nguyên chữ thường */
  color: #0b1d58;
  white-space: nowrap; /* Ngăn chữ xuống dòng */

}

/* Tab đang được chọn */
.main-nav a.active,
.main-nav a.active:visited {
  color: #28a745 !important; /* Xanh lá */
}
/* Tab con trong submenu */
.submenu li a.active {
  color: #28a745 !important;
}
/* Page title */
.page-title {
  text-align: center;
  font-size: 24px;
  margin: 20px 0 15px;  /* Giảm khoảng cách dưới từ 30px còn 15px */
  color: #0b1d58;
  font-weight: bold;
  text-transform: uppercase;
}

/* Nội dung chính */

.content-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px !important;  

}

.content-columns .column {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.content-columns .column h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #0b1d58;
}

.content-columns .column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-columns {
  margin-bottom: 5px;
  display: none; /* JS sẽ hiển thị dòng phù hợp */
}
.column ul li {
  list-style: none;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.column ul li img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/*RÊ CHUỘT QUA CÁC ẢNH Ở CỘT THÌ ẢNH SÁNG LÊN*/
/* Làm ảnh nổi sáng khi hover */
.column-header-img:hover {
  filter: brightness(1.2); /* Tăng độ sáng 20% */
  transform: scale(1.03);  /* Phóng to nhẹ ảnh */
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Đổ bóng nhẹ */
  cursor: pointer;
}

/*/////////////////////font chữ link liên kết////////////*/
.column ul li a {
  color: #000; /* Hoặc đổi thành #333 hay #1a1a1a nếu cần */
  text-decoration: none;
  font-weight: normal;
  font-size: 11px;
  display: inline-block;
}

.column ul li a.download-btn {
  font-size: 10px !important; 
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

.column ul li a.download-btn:hover {
  color: #0056b3;
}

.content-columns  {
  color: #0b1d58;
  text-decoration: none;
}

.content-columns .column ul li a:hover {
  text-decoration: none; /* bỏ gạch chân khi hover */
  color: #28a745;
}

.column h3 {
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  color: #003366;
}

.pagination-controls {
  text-align: center;
  margin-top: 10px;
}

.pagination-controls button {
  background-color: #ffffff;
  color: #0b1d58;
  border: 1px solid #0b1d58;
  padding: 2px 8px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 4px;
}

.pagination-controls button:hover {
  background-color: #28a745;
  color: white;
}

.pagination {
  margin-top: 10px;
  text-align: center;
}

.pagination button {
  margin: 0 4px;
  padding: 4px 8px;
  font-size: 14px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button:hover {
  background: #0056b3;
}

.list-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100px; /* hoặc chiều cao đủ để hiển thị tối đa 7 dòng + phân trang */
  padding: 0;
  border: none;
  margin-bottom: 0;
}

.list-container ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

/*-------PHẦN LOGO LIÊN KẾT------*/
.info-section {
  text-align: center;
  font-size: 14px;
  color: #0b1d58;
  line-height: 1.5;
  margin-bottom: 10px;
}

.info-section p {
  margin: 2px 0;
}

/* Logo Section */
.logo-section {
  padding: 0;
  background: #fff;
}

/* Thanh xanh trắng xen kẽ cực nhỏ và mượt */
.blue-line {
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    #66b2ff,
    #66b2ff 2px,
    white 1.5px,
    white 2.5px
  );
  margin: 0;
}

/* Các dòng logo */
.logo-row {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
}

/* Dòng trượt logo */
.logo-track {
  display: flex;
  animation: scroll 20s linear infinite; /* <<< Animation mượt liên tục */
}

/* Container chứa các logo */
.logo-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  max-width: 1000px;
  overflow: hidden;
}

/* Các logo */
.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 30px;
}

/* Logo dòng 1: To hơn dòng 2 */
.top-row .logo-item img {
  height: 120px; /* to */
  width: auto;
  object-fit: contain;
}

/* Logo dòng 2: Nhỏ hơn */
.bottom-row .logo-item img {
  height: 60px; /* nhỏ */
  width: auto;
  object-fit: contain;
}

/* Animation trượt băng chuyền */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Hình ảnh logo */
.logo-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Mũi tên điều hướng */
.logo-nav {
  font-size: 24px; /* cỡ chữ mũi tên */
  color: #0b1d58;
  cursor: pointer;
  padding: 5px;
  user-select: none;
  display: flex;
  align-items: center;
}

.logo-nav:hover {
  color: #28a745;
}

.swiper {
  width: 90%;
  max-width: 1200px;
  margin: 10px auto;
  position: relative; /* cần relative để định vị mũi tên */
}

.swiper-wrapper {
  align-items: center;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  max-width: 150px; /* max kích thước logo */
  height: auto;
  object-fit: contain;
}

/* Nút điều hướng */
.swiper-button-next, .swiper-button-prev {
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.1);
  color: #0b1d58;
  z-index: 10;
}

.swiper-button-prev {
  left: -5px; /* sát logo đầu tiên */
}

.swiper-button-next {
  right: -5px; /* sát logo cuối cùng */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0,0,0,0.3);
  color: #28a745;
}
.column-header-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 10px;
}
/**CSS ĐỊNH DẠNG TẤT CẢ CÁC ẢNH TRONG CỘT BẰNG NHAU KÍCH THƯỚC***/
   .column-header-wrapper {
    position: relative;
    display: inline-block;
    text-align: center;
  }

  .column-header-img {
    display: block;
    object-fit: cover;
  }

  .column-header-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
  }

/****CSS GIỚI HẠN 3 CỘT 1 DÒNG****/
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}


.grid-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.column-title {
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
  color: #0b1d58;
}

/*RÊ CHUỘT QUA CÁC ẢNH Ở CỘT THÌ ẢNH SÁNG LÊN*/
/* Làm ảnh nổi sáng khi hover */
.column-header-img:hover {
  filter: brightness(1.2); /* Tăng độ sáng 20% */
  transform: scale(1.03);  /* Phóng to nhẹ ảnh */
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Đổ bóng nhẹ */
  cursor: pointer;
}

/*-----------------phần footer---------------*/
/* Thanh viền đầu footer: Nâu - Đen - Xanh */
.footer-top-border {
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    brown,
    brown 5px,
    black 5px,
    black 10px,
    #66b2ff 10px,
    #66b2ff 15px
  );
}

/* Footer tổng */
.site-footer {
  background-color: #0b1d58; /* nền xanh đậm */
  color: #ffffff;
  padding: 40px 20px 20px 20px;
  font-size: 14px;
}

/* Khung footer */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
}

/* Các cột trong footer */
.footer-column {
  flex: 1 1 300px;
  margin: 10px;
}

/* Tiêu đề cột (không gạch chân) */
.footer-column h3 {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none; /* bỏ gạch chân xanh */
}

/* List ul */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 5px;
}

/* Logo Trường trong footer */
.footer-logo {
  width: 180px;
  margin-bottom: 15px;
}

/* Mạng xã hội */
.social-icons {
  margin-top: 10px;
}

.social-icons a {
  margin-right: 10px;
}

.social-icons img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  padding: 4px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* Dòng bản quyền dưới cùng */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  color: #bbbbbb;
}

.content-columns {
  justify-content: space-between;
  gap: 10px;
  margin-top: 0px;
  display: block;

}

.column {
  flex: 1;
  border: none;
  background: none;
  padding: 0;
  box-shadow: none;
}


.file-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.file-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border: none;
  box-shadow: none;
}
/*////link liên kết các tài liệu*/
.file-link {
  color: #0b1d58;
  font-weight: bold;
  text-decoration: none;
  font-size: 10px; /* <<< thêm dòng này để thu nhỏ font */
}
.main-nav {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.content-columns {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.nav-item {
    position: relative;
}

.nav-item:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #eaeaea;
    min-width: 200px;
    z-index: 1000;
    top: 100%;
    left: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* dropdownd trên tab menu */
.dropdown {
  position: relative;
}

.dropdown .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgb(58, 205, 55);
  box-shadow: 0 4px 8px rgba(213, 48, 48, 0.1);
  z-index: 1000;
}

.dropdown:hover .submenu {
  display: block;
}

.submenu li {
  white-space: nowrap;
  padding: 8px 16px;
}

.submenu li a {
  color: #333;
  text-decoration: none;
}

.submenu li:hover {
  background-color: #f0f0f0;
}