* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}



body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12pt;
}
.menu_dau_trang {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: linear-gradient(rgb(171, 31, 36), rgb(145, 28, 36));
  position: fixed;
  z-index: 700;
}
.menu_dau_trang ul li {
  display: inline-block;
  margin-right: 20px;
  list-style: none;
  color: aliceblue;
  list-style: none;
}
.menu_dau_trang ul li a{
  color: aliceblue;
  margin: 20px;
}
.menu_dau_trang a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  padding: 1px 1px;
  display: block; /*CHIẾM TOÀN BỘ KHÔNG GIAN TRÊN LIST*/
}

.main-nav ul {
  list-style: none;
}
.logo {
  width: 180px;
  height: 60px;
  margin-left: 5px;
}
/* Nút mở menu */
.menu-toggle {
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  position: fixed;
  z-index: 9999;
  top: 5px;
  left: 15px;
  background-color: #333;
  color: white;
  border-radius: 5px;
}

/* Menu dọc */
.menu {
  width: 250px;
  height: 100vh;
  background-color: #222;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: -250px;
  transition: left 0.3s ease-in-out;
  padding-top: 60px;
}

/* Nút đóng menu */
.menu-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  color: white;
  cursor: pointer;
}

/* Danh sách menu */
.menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.menu ul li {
  padding: 15px 0;
}

.menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  display: block;
}

.menu ul li a:hover {
  background-color: #444;
}


/* Thanh menu chính */
.main-nav {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
padding: 10px;
background-color: white;
border-bottom: 1px solid #ddd;
position: fixed;
z-index: 700;
top: 90px;
}

.logo img {
  height: 50px;
  padding-top: -10px;

}


.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Căn giữa các mục trong nav */
  align-items: center;
  margin-left: auto;
  gap: 10px;
}

.nav-links li {
  margin: 0 10px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
}

.nav-links a:hover {
  color: #b01414;
}

/* Banner */
.banner img {
  width: 100%;
  height: auto;
}

/* Thanh menu dưới */
.bottom-menu {
  background-color: #800000;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
}

.bottom-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

.bottom-menu li {
  margin: 0 15px;
}
marquee {
  background-color:#800000;
  color: white;
  padding: 25px;
}
.anh_nen_2 {
  border-left: 20px solid white;
  border-top: 20px solid white;
}

/* phần cuối footer */

.footer-logo {
  height: 50px;
  width: 200px;
}
.footer-info {
  margin: 20px ;
  padding: 10px;
  color: #ffffff;
  width: 200px;
}
.footer-1 {
  text-align: center;
  padding: 10px;
}
.khoa {
  color: #ffffff;
  
}
.khoa ul li {
  list-style: none;
  padding: 2px;
  width: 280px;
}


.trung-tam {
  color: #ffffff;
}
.trung-tam ul li {
  width: 280px;
  list-style: none;
}
.dang-doan-the {
  color: #ffffff;
}
.dang-doan-the ul li {
  list-style: none;
  padding: 2px;
  width: 260px;
}
.phong-ban {
  color: #ffffff;
}
.phong-ban ul li {
  list-style: none;
  padding: 2px;
  width: 220px;
}
.khoa ul{
margin: 0px;
padding: 0px;
}
.trung-tam ul{
margin: 0px;
padding: 0px;
}
.dang-doan-the ul{
margin: 0px;
padding: 0px;
}
.phong-ban ul{
margin: 0px;
padding: 0px;
}
/* Chế độ sáng (light mode) */
body.light-mode {
  background-color: #ffffff;
  color: #000000;
}

.container {
  padding: 20px;
  text-align: center;
}

/* Chế độ tối (dark mode) */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

/* Nút chuyển chế độ */
#mode-toggle {
  padding: 10px 20px;
  margin-top: 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #e50000b6;
  color: white;
  transition: background-color 0.3s;
}

#mode-toggle:hover {
  background-color: #2ea634;
}

.banner img,
.anh_nen_1,
.anh_nen_2 {
width: 100%;
height: auto;
display: block;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
  background-color: #800000;
  gap: 20px;
}

footer div {
  flex: 1 1 200px;
}



/* muc-3 */

.journey-section {
  padding: 30px;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.images {
  position: relative;
  width: fit-content;
  height: auto;
}

.images img {
  width: 280px; /* bạn có thể điều chỉnh */
  height: auto;
  border-radius: 16px; /* bo góc ảnh */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

/* Ảnh thứ 1 nằm dưới */
.img-1 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Ảnh thứ 2 nằm trên, lệch xuống phải */
.img-2 {
  position: absolute;
  top: 100px;
  left: 140px;
  z-index: 2;
  opacity: 0.95;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Zoom khi di chuột vào ảnh */
.images img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}




.text {
  flex: 1;
  max-width: 1000px;
  margin-top: 80px;
}

.text h2 {
  font-size: 28px;
  color: #7d0000;
  margin-bottom: 15px;
  margin-left: 420px;
}

.text h2 span {
  font-weight: bold;
}

.text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  margin-left: 460px;
}

.dntu-logo {
  font-size: 36px;
  font-family: 'Georgia', serif;
  margin-bottom: 10px;
  margin-left: 410px;
}

.brand-link {
  color: #7d0000;
  font-weight: bold;
  text-decoration: none;
  margin-left: 410px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 160px;
  text-align: center;
  justify-content: center;
}

.stat {
  flex: 1;
  min-width: 150px;
}

.stat h3 {
  font-size: 32px;
  color: #7d0000;
  margin-bottom: 10px;
}

.stat p {
  font-size: 14px;
}


h1 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

h1 span {
  color: #c62828;
}

/* khoa dao tao */

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  height: 400px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

 /* Lớp phủ đen khi hover */
 .grid-item::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* nền đen bán trong */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.grid-item:hover::after {
  opacity: 1;
}

.grid-item .title,
.grid-item .btn,
.grid-item .overlay-text {
  position: absolute;
  z-index: 2;
  color: white;
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}


.grid-item .title {
  position: absolute;
  top: 20px;
  left: 10px;
  padding: 10px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
  z-index: 2;
}

.grid-item .btn {
  position: absolute;
  bottom: 20px;
  left: 10px;
  color: rgb(255, 255, 255);
  font-size: 14px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.3s;
  z-index: 2;
}

.grid-item .btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.grid-item .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(255, 255, 255);
  text-align: center;
  opacity: 0;
  font-size: 15px;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.grid-item:hover .overlay-text {
  opacity: 10;
}

@media(max-width: 600px) {
  h1 {
    font-size: 28px;
  }

  .grid-item {
    height: 220px;
  }

  .overlay-text {
    font-size: 14px;
  }
}

.training-programs {
  background-color: #930000;
  color: white;
  text-align: center;
  padding: 60px 20px;
  font-family: sans-serif;
}

.training-programs h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.training-programs .subtitle {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 15px;
  line-height: 1.6;
}

.program-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.program-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.image-wrapper {
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  border-radius: 15px;
}

.image-wrapper:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.image-wrapper:hover img {
  transform: scale(1.1);
}

.program-card h3 {
  margin-top: 15px;
  font-size: 20px;
  color: #fff;
}

.program-card p {
  font-size: 14px;
  color: #ddd;
}

.program-card a {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.program-card a:hover {
  color: #ffc107;
}
h1.a{
text-align: end;
color: darkred;
text-align: left;
}
h5.a{
text-align: end;
color: darkred;
text-align: left;
}
a:link.a, a:visited.a {
color: darkred;
text-decoration: none;
display: inline-block;
}
a:link, a:visited {
color: black;
text-decoration: none;
display: inline-block;
}
/* chèn chữ vào ảnh*/
.banner-text {
position: relative;
bottom: 60px;
color: white;
right: 600px;
}
/*zom img*/
.zoom-anh img{
display:block;
transition: all .3s ease;
}
.zoom-anh img:hover{
transform: scale(1.3); /* cỡ zoom khi di chuột vào */
} 
.zoom-anh div{
display:block;
overflow: hidden;
}
/*khoan cach giua cac anh*/
img.a{
padding: 10px;
}
/*xoa vien the card*/
div.card{
border: none;
}
/* CSS cua Cuong*/
/*Tuyen Sinh*/

/*CSS Cua Vinh*/
/* zoom ảnh*/
.thu-nghiem-zoom img{
  border-radius: 20px;
display:block;
transition: all .3s ease;
}
.thu-nghiem-zoom img:hover{
transform: scale(1.3); /* cỡ zoom khi di chuột vào */
border-radius: 20px;
} 
.thu-nghiem-zoom div{
display:block;
overflow: hidden;
}
/*đổi màu xem chi tiết*/
.card-footer a {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card-footer a:hover {
  background-color: #28a745; /* Màu nền khi hover */
  color: white; /* Màu chữ khi hover */
}

.card-img-top{
  border-radius: 20px;
}