<style>
  * {
  font-family: Verdana, sans-serif !important;
}

html {
  font-size: clamp(12px, 3.5vw, 14px);
}

.no-underline {
  text-decoration: none !important;
}
.no-underline:hover {
  text-decoration: none !important;
}
.no-underline:active {
  text-decoration: none !important;
}

    :root {
      --ink: #8C6ACC;
      --accent: #8a5cc7;
      --accent-soft: #b89ae6;
    }
	/* CANH DEU 2 BEN */
	.text-justify {
		text-align: justify;
		}
	/* CANH TRAI */
	.text-left {
		text-align: left;
		}
	/* CANH GIUA */
	.text-center {
		text-align: center;
		}
	/* CANH PHAI */
	.text-right {
		text-align: right;
		}

    /* NỀN NGOÀI = HÌNH */
    body {
      font-family: 'Verdana', sans-serif;
      margin: 0;
      padding: 0;

      background: url("images/nen.jpg") center/cover fixed no-repeat;
      color: var(--ink);
    }

    /* LOGO GÓC TRÁI */
    .logo {
      position: fixed;
      top: 20px;
      left: 20px;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: linear-gradient(135deg, #8a5cc7, #b89ae6);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Verdana', serif;
      font-size: 1.6rem;
      color: #fff;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      z-index: 999;
    }
	.logo:hover {
	  transform: scale(1.05);
	  transition: 0.2s;
	}

    /* KHUNG NỘI DUNG = HÌNH + LỚP MỜ */
    .page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 25px;
  
  /* ẢNH NỀN GIỮ NGUYÊN TỶ LỆ + NẰM GIỮA + KHÔNG BỊ CẮT */
  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url("images/lop12a14.jpg");

  background-size: contain;      /* Hiển thị toàn bộ hình */
  background-position: center;   /* Căn giữa */
  background-repeat: no-repeat;  /* Không lặp */
  background-color: #CC99FF;     /* Màu lấp phần trống */

  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.05);
}

/* MENU FLOATING KHÔNG ĐẨY HEADER */
.menu-wrapper {
  position: fixed;
  top: calc(20px + 120px + 10px); 
  /* 20px = top của logo
     60px = chiều cao logo
     10px = khoảng cách bạn muốn */
  left: 20px; 
  display: none;
  z-index: 9999;
  animation: slideDown 0.25s ease-out;
}

/* MENU GLASSMORPHISM */
.top-menu {
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.25); /* trong hơn */
  backdrop-filter: blur(18px);           /* mờ mạnh hơn */
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  width: max-content;
  min-width: 90px;
}

.top-menu a {
  font-family: inherit;
  color: inherit;
  font-size: 14px;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

/* Gạch chân trượt từ trái sang phải */
.top-menu a {
  position: relative;
}

.top-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: currentColor; /* dùng màu chữ của site */
  transition: width 0.25s ease;
}

.top-menu a:hover::after {
  width: 100%;
}

.top-menu a:last-child {
  border-bottom: none;
}

/* HIỆN MENU */
.menu-wrapper.show {
  display: block;
}

/* LOGO LÀM NÚT MENU */
.logo {
  cursor: pointer;
  z-index: 6000;   /* logo vẫn cao hơn menu-wrapper nhưng menu bên trong cao hơn logo */
  transition: 0.2s;
}

.logo:hover {
  transform: scale(1.08);
}

/* MOBILE */
@media (max-width: 600px) {
  .menu-wrapper {
    top: 70px;
    left: 90px;   /* dịch vào gần logo hơn */
  }

  .top-menu a {
  font-family: inherit;
  color: inherit;
  font-size: 14px;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.top-menu a:last-child {
  border-bottom: none;
}

}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

    header {
      text-align: center;
      padding: 10px 10px 25px;
      border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    header h1 {
      font-family: 'Verdana', serif;
      font-size: 2.4rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--accent);
    }

    header h2 {
      font-family: 'Verdana', serif;
      font-size: 1.2rem;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: #6b4a9e;
    }

    .section-title {
      font-family: 'Verdana', serif;
      font-size: 1.4rem;
      margin-bottom: 12px;
      color: #5a3c8a;
      position: relative;
    }

    .section-title::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 40%;
      height: 2px;
      background: linear-gradient(to right, var(--accent-soft), transparent);
    }

    section {
      padding: 25px 5px;
      border-bottom: 1px dashed rgba(0,0,0,0.08);
    }

    .intro-grid {
      display: grid;
      grid-template-columns: 2fr 1.5fr;
      gap: 25px;
    }

    .intro-card,
    .teacher-box,
    .member-card,
    .message-card {
      background: rgba(255,255,255,0.55);
      border-radius: 10px;
      padding: 15px 18px;
      border: 1px solid rgba(0,0,0,0.06);
	  }

    .teacher-box-i a {
  color: #8a5cc7;   /* màu bạn muốn */
  text-decoration: none;
}

.teacher-box-i a:hover {
  color: #b78cff;   /* màu khi hover */
  text-decoration: underline;
}

.teacher-box {
	display: flex;
	gap: 8px;
	align-items: center;
	background: rgba(255,255,255,0.55);
	padding: 2px 10px;              /* giảm tối đa */
	border-radius: 8px;
	border: 1px solid rgba(0,0,0,0.06);
	margin-bottom: 6px;
	}

    .teacher-avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: linear-gradient(135deg, #8a5cc7, #b89ae6);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      color: #fff;
    }

	.teacher-box h4,
	.teacher-box p {
	line-height: 0.5;               /* chữ gọn */
	margin: 0.5;                      /* bỏ khoảng trắng mặc định */
	}

    a.back {
      display: inline-block;
      margin-top: 20px;
      color: #6b4a9e;
      font-weight: bold;
      text-decoration: none;
    }
    .members-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 12px;
    }

	.student-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr); /* 4 cột */
		gap: 10px 20px; /* khoảng cách giữa các ô */
		margin-top: 20px;
		}

	.student {
	  padding: 8px 10px;
	  background: rgba(255,255,255,0.6);
	  border-radius: 6px;
	  text-align: center;
	  cursor: pointer;
	  color: #6b4a9e;
	  font-weight: 500;
	  transition: 0.2s;
		}

	.student:hover {
	  background: #f2e8ff;
	  color: #8a5cc7;
	  transform: translateY(-2px);
		}

	.popup {
	  display: none;
	  position: fixed;
	  top: 0; left: 0;
	  width: 100%; height: 100%;
	  background: rgba(0,0,0,0.45);
	  backdrop-filter: blur(5px);
	  justify-content: center;
	  align-items: center;
	  z-index: 999;
		}

	.popup-content {
	  background: #f7f0ff; /* tím pastel */
	  border: 2px solid #c8a8ff;
	  border-radius: 14px;
	  padding: 20px;
	  width: 340px;
	  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
	  animation: popupShow 0.25s ease-out;
	  text-align: center; /* ảnh + tên ở giữa */
		}

	@keyframes popupShow {
	  from { opacity: 0; transform: scale(0.85); }
	  to   { opacity: 1; transform: scale(1); }
		}

	.close {
	  float: right;
	  font-size: 26px;
	  cursor: pointer;
	  color: #6b4a9e;
		}

	.student-photo {
	  width: 120px;
	  height: 120px;
	  border-radius: 50%;
	  object-fit: cover;
	  margin-bottom: 12px;
	  border: 3px solid #d8c2ff;
		}

	/* Thông tin canh trái */
	.info-box {
	  text-align: left;
	  margin-top: 10px;
	  color: #4a3a6b;
		}

	.info-box p {
		margin: 6px 0;
		}

	/* Xuống hàng trong nhận xét */
	.info-box span {
		white-space: pre-line;
		}

    .timeline {
      border-left: 2px solid rgba(0,0,0,0.12);
      padding-left: 18px;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 12px;
    }

    .gallery-photo {
      height: 110px;
      border-radius: 6px;
      background: linear-gradient(135deg, #8a5cc7, #b89ae6);
    }
	
    footer {
      text-align: center;
      padding: 18px 5px 5px;
      font-size: 0.8rem;
      color: #8a6a9e;
      font-style: italic;
    }
	
	.download-btn {
	  display: inline-block;
	  padding: 10px 16px;
	  background: #8a5cc7;
	  color: white;
	  border-radius: 8px;
	  text-decoration: none;
	  font-weight: 600;
	  transition: 0.2s;
		}

	.download-btn:hover {
	  background: #6b4a9e;
		}
	
	/* CAROUSEL PREVIEW ALBUM */
	.carousel-wrapper {
	  position: relative;
	  width: 100%;
	  overflow: hidden;
	  padding: 5px 0;
		}

	.carousel {
	  display: flex;
	  gap: 14px;
	  overflow-x: auto;
	  scroll-behavior: smooth;
	  padding: 10px 5px;
		}

	/* ẨN SCROLLBAR */
	.carousel::-webkit-scrollbar {
		display: none;
		}

	.carousel-item {
	  flex: 0 0 22%;
	  background: rgba(255,255,255,0.55);
	  border-radius: 10px;
	  padding: 8px;
	  text-align: center;
	  text-decoration: none;
	  color: #8a5cc7;
	  font-weight: 600;
	  border: 1px solid rgba(0,0,0,0.06);
	  transition: 0.25s;
		}

	.carousel-item:hover {
	  transform: scale(1.03);
	  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
		}

	.carousel-item img {
	  width: 100%;
	  height: 80px;
	  object-fit: cover;
	  border-radius: 6px;
	  margin-bottom: 6px;
		}

	.carousel-item span {
	  display: block;
	  font-size: 13px;
		}

	/* NÚT TRÁI / PHẢI */
	.carousel-btn {
	  position: absolute;
	  top: 50%;
	  transform: translateY(-50%);
	  background: #8a5cc7;
	  color: white;
	  border: none;
	  padding: 8px 12px;
	  border-radius: 6px;
	  cursor: pointer;
	  font-size: 20px;
	  z-index: 10;
	  opacity: 0.8;
	  transition: 0.2s;
		}

	.carousel-btn:hover {
	opacity: 1;
		}

	.carousel-btn.left {
		left: 0;
	}

	.carousel-btn.right {
		right: 0;
		}

/* CĂN GIỮA ẢNH TRONG Ô */
.album-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px;
}

.album-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;      /* ảnh luôn nằm giữa ô */
  object-position: center;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  padding: 4px;
  cursor: pointer;
  transition: 0.25s;
}

.album-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* POPUP PHÓNG TO ẢNH */
.photo-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.photo-popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.photo-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.album-nav {
  display: flex;
  justify-content: center;   /* căn giữa */
  gap: 20px;                 /* khoảng cách giữa 2 nút */
  margin: 20px 0 30px;
}

.album-btn {
  padding: 10px 18px;
  background: #8a5cc7;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s;
  white-space: nowrap;
}

.album-btn:hover {
  background: #6b4a9e;
}
/* GIAO DIEN DI DONG */

@media (max-width: 600px) {
  .logo {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
  }

  .logo img {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 600px) {
  .top-menu {
    top: 70px;
    left: 10px;
    right: 10px;
  }

  .top-menu a {
    font-size: 16px;
  }

  .logo {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 600px) {
  .page {
    width: 95%;
    padding: 10px;
    margin-top: 80px; /* tránh bị logo đè */
  }

  header h1 {
    font-size: 20px;
  }

  header h2 {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .album-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .album-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 600px) {
  .carousel-item {
    flex: 0 0 45%;
  }

  .carousel-item img {
    height: 70px;
  }
}

@media (max-width: 600px) {
  .album-nav {
    flex-direction: column;
    gap: 10px;
  }

  .album-btn {
    width: 100%;
    text-align: center;
  }
}

</style>