/* style.css - ở phần đầu file */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ===== 1. BIẾN TOÀN CỤC & THIẾT LẬP CƠ BẢN ===== */
:root {
  --myblue: rgb(0, 70, 140);
  --myred: rgb(180, 0, 0);
  --mygreen: rgb(0, 120, 0);
  --myorange: rgb(255, 140, 0);
  --lightgray: #f4f4f4;
  --mediumgray: #e9ecef;
  --darkgray: #333;
  --text-color-on-dark: #f0f0f0;
  --text-color-on-light: #333;
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Montserrat', sans-serif; /* Giả sử bạn có font này hoặc thay thế */
}

body {
  font-family: var(--font-primary);
  margin: 0;
  line-height: 1.6;
  color: var(--text-color-on-light);
  background-color: #fff;
}

/* Chống copy - Watermark */
body::before {
  content: "";
  /* background-image: url('logo HNP Education có viền.png'); Thay thế bằng đường dẫn chính xác hoặc base64 */
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: 200px auto;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 150px;
  transform: translate(-50%, -50%);
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: none; /* Xóa viền đỏ debug nếu có */
}

a {
  color: var(--myblue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--myorange);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

table, th, td {
  border: 1px solid #d1d1d1;
}

th, td {
  padding: 10px 12px;
  text-align: left;
}

th {
  background-color: var(--mediumgray);
  font-weight: bold;
  color: var(--myblue);
}

ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 5px;
}

li {
  margin-bottom: 8px;
}

/* ===== 2. CÁC THÀNH PHẦN TÁI SỬ DỤNG (Components) ===== */

/* --- Buttons (Eduma Style) --- */
.cta-button {
  display: inline-block;
  padding: 13px 33px;
  margin: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  font-family: var(--font-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: 2px solid transparent;
}
.cta-button:hover {
  transform: translateY(-3px);
  text-decoration: none;
}
.cta-button.eduma-primary {
  background-color: var(--myorange);
  color: white;
}
.cta-button.eduma-primary:hover {
  background-color: rgb(255, 160, 0);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}
.cta-button.eduma-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}
.cta-button.eduma-secondary-feedback {
  background-color: transparent;
  color: var(--myblue);
  border-color: var(--myblue);
}
.cta-button.eduma-secondary:hover {
  background-color: white;
  color: var(--myblue);
}
.cta-button.eduma-secondary-feedback:hover {
  background-color: white;
  color: var(--myblue);
}
.cta-button.eduma-accent {
  background-color: var(--myblue);
  color: white;
}
.cta-button.eduma-accent:hover {
  background-color: rgb(0, 50, 100);
}
.cta-button.eduma-light {
  background-color: white;
  color: var(--myorange);
  border-color: white;
}
.cta-button.eduma-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* --- Section Headings (Eduma Style) --- */
.section-heading-eduma {
  font-size: 2.4em;
  color: var(--myblue);
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-secondary);
}
.section-subheading-eduma {
  font-size: 1.1em;
  color: #667085;
  margin-bottom: 50px;
  text-align: center;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 3. CẤU TRÚC CHÍNH (Layout) ===== */

/* --- Header / Navbar --- */
.top-navigation {
  background-color: var(--myblue);
  color: var(--text-color-on-dark);
  padding: 4px 0; /* Giữ chiều cao navbar ổn định, padding ngang sẽ do container xử lý */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  min-height: 55px;
  box-sizing: border-box;
}
.navbar-container { /* Container để giới hạn chiều rộng và căn giữa nội dung navbar */
  max-width: 1400px; /* Điều chỉnh theo thiết kế của bạn */
  margin: 0 auto;
  padding: 0 20px; /* Khoảng cách lề cho nội dung navbar */
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: inherit; /* Kế thừa chiều cao tối thiểu từ .top-navigation */
}
.navbar-header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#navbarLogo {
  height: 38px;
  width: auto;
  margin-right: 12px;
}
.navbar-info {
  display: flex; /* Cho phép hiển thị trên desktop */
  flex-direction: column;
  line-height: 1.3;
}
.navbar-info .teacher-name {
  font-weight: bold;
  font-size: 0.9em;
  margin: 0;
  white-space: nowrap;
  color: white;
}
.navbar-info .brand-name {
  font-size: 0.8em;
  margin: 0;
  opacity: 0.85;
  white-space: nowrap;
  color: #d1e0f0;
}

/* Menu Chính */
.navbar-menu {
  flex-grow: 1;
  text-align: center;
  overflow-x: auto; /* Cho phép cuộn ngang nếu nhiều mục menu */
  overflow-y: hidden;
  white-space: nowrap;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.navbar-menu::-webkit-scrollbar { /* Chrome, Safari, Opera */
  display: none;
}
.navbar-menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0 auto; /* Căn giữa ul */
  display: inline-flex; /* Cho li nằm trên một hàng và ul co theo nội dung */
}
.navbar-menu ul li {
  margin: 0 4px; /* Khoảng cách giữa các mục menu */
}
.navbar-menu a { /* Áp dụng cho thẻ a trực tiếp */
  text-decoration: none;
  color: #ddeeff;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 0.88em;
  display: block;
  white-space: nowrap;
}
.navbar-menu a:hover,
.navbar-menu a.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

/* --- Search Bar in Navbar --- */
.search-container-wrapper {
  flex-shrink: 0;
}
.search-container {
  display: flex;
  align-items: center;
  margin-left: 10px; /* Khoảng cách với menu hoặc logo */
}
#searchInput {
  padding: 7px 10px;
  font-size: 0.85em;
  width: 180px;
  border: 1px solid #a0b3c4;
  border-radius: 4px 0 0 4px;
  background-color: white;
  color: var(--text-color-on-light);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#searchInput:focus {
  border-color: var(--myorange);
  box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}
#searchInput::placeholder {
  color: #6c757d;
}
#searchButton,
#clearSearchButton {
  padding: 7px 12px;
  font-size: 0.85em;
  border: none; /* Bỏ border mặc định, chỉ dùng 1px solid transparent nếu cần giữ layout */
  cursor: pointer;
  transition: background-color 0.2s ease;
  background-color: #e8f0fe;
  color: var(--myblue);
  font-weight: 500; /* Thêm cho đồng nhất */
}
#searchButton {
    border-radius: 0; /* Chỉ cần cho nút clear */
}
#clearSearchButton {
  border-left: 1px solid #c5d6e8; /* Viền phân cách */
  border-radius: 0 4px 4px 0;
  background-color: #dde7f3;
  color: #4a5c6d;
}
#searchButton:hover {
  background-color: #d1e0f0;
}
#clearSearchButton:hover {
  background-color: #c6d7eb;
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle { /* Được hiển thị trên mobile qua @media query */
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8em; /* Tăng kích thước cho dễ nhấn */
  cursor: pointer;
  padding: 5px 10px; /* Thêm padding */
}

/* --- Main Content Area --- */
.main-content-wrapper {
  margin: 0 1in 1in 1in; /* Lề mặc định cho các trang nội dung */
  padding-bottom: 1in;
  /* padding-top sẽ được JavaScript tính toán và thêm vào */
}
/* Reset margin cho các section chiếm toàn bộ chiều rộng trên homepage */
.main-content-wrapper.homepage {
  margin: 0;
  padding-bottom: 0;
}
.container { /* Container chung cho nội dung các section homepage */
  max-width: 1140px; /* Hoặc theo max-width của theme bạn */
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* --- Footer --- */
.page-footer {
  background-color: var(--myblue);
  color: #e0e0e0;
  padding: 40px 1in; /* Giữ padding lớn cho desktop */
  margin-top: 50px;
  border-top: 6px solid var(--myorange);
  clear: both;
}
.footer-content-grid {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-logo-container {
  flex-shrink: 0;
  max-width: 180px;
}
#footerLogo {
  display: block; /* Đảm bảo logo là block element */
  width: 100%;
  height: auto;
}
.footer-text-content {
  flex-grow: 1;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-text-content p {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 0.9em;
  line-height: 1.6;
}
.footer-text-content .copyright {
  font-size: 0.85em;
  opacity: 0.8;
  margin-bottom: 10px; /* Thêm margin bottom */
  color: #c0c0c0;
}
.contact-info {
  margin-top: 15px;
}
.contact-info p i { /* Style cho icon trong contact info */
  margin-right: 8px;
  color: var(--myorange); /* Hoặc var(--text-color-on-dark) nếu muốn trắng */
}
.contact-info a {
  color: #ffd595; /* Màu cho link trong contact info */
  font-weight: 500;
}
.contact-info a:hover {
  color: var(--myorange);
  text-decoration: underline;
}

/* ===== 4. CSS CHO CÁC TRANG CỤ THỂ & MODULES ===== */

/* --- Homepage Specific Styles (Eduma Inspired) --- */
.eduma-hero {
  background-color: #003366; /* Màu nền fallback */
  /* background-image: url('your-hero-image.jpg'); */ /* Thêm ảnh nền nếu có */
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 140px 20px 120px 20px; /* padding lớn cho hero section */
  min-height: 70vh; /* Chiều cao tối thiểu */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.eduma-hero .hero-overlay { /* Lớp phủ mờ */
  position: absolute;
  inset: 0; /* top, right, bottom, left = 0 */
  background: linear-gradient(to bottom, rgba(0, 51, 102, 0.5), rgba(0, 20, 40, 0.8));
  z-index: 1;
}
.eduma-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-title-eduma {
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: var(--font-secondary);
}
.hero-subtitle-eduma {
  font-size: 1.2em;
  margin-bottom: 35px;
  color: #e0e6f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.course-categories-section, .why-choose-us-section {
  padding: 70px 1in; /* Padding lớn cho các section */
  background-color: #fff;
}
.why-choose-us-section {
  background-color: #f8f9fc; /* Màu nền khác biệt */
}
.category-grid, .why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Lưới tự động */
  gap: 30px;
}
.category-card { /* Thẻ cho danh mục khóa học */
  background-color: white;
  padding: 30px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 30, 60, 0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  text-decoration: none;
  color: var(--text-color-on-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 30, 60, 0.1);
  /* color: var(--myorange); /* Thay đổi màu chữ chính của card khi hover nếu muốn */
}
.category-card .card-icon {
  font-size: 2.8em;
  color: var(--myorange);
  margin-bottom: 20px;
  background-color: rgba(255, 140, 0, 0.1);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.category-card:hover .card-icon {
  background-color: var(--myorange);
  color: white;
}
.category-card h3 {
  font-size: 1.35em;
  color: var(--myblue);
  margin: 0 0 10px 0;
  font-weight: 700;
  transition: color 0.3s ease;
  font-family: var(--font-secondary);
}
.category-card:hover h3 {
  color: var(--myorange);
}
.category-card p {
  font-size: 0.9em;
  color: #555;
  flex-grow: 1; /* Cho phép पैराग्राफ co giãn */
  line-height: 1.5;
}

.eduma-enrollment { /* Khu vực kêu gọi hành động */
  background: var(--myorange);
  color: white;
  padding: 60px 1in;
  text-align: center;
}
.enrollment-subtitle-eduma {
  font-size: 1.2em;
  margin-bottom: 25px;
  opacity: 0.95;
}
.enrollment-cta { /* Container cho các nút CTA */
  margin-top: 30px;
}

/* --- Content Page Styles (Lý 10, 11, 12 etc.) --- */
/* Tiêu đề trang chung cho các trang nội dung */
.center {
  text-align: center;
  margin-top: 20px; /* Khoảng cách với navbar nếu không có JS set padding-top */
  margin-bottom: 20px;
}
.main-content-wrapper > .center:first-child { /* Bỏ margin-top cho tiêu đề đầu tiên nếu nó là con trực tiếp */
    margin-top: 0;
}
.title { /* Tiêu đề chính của trang */
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 0.3em;
  color: var(--myblue);
}
.subtitle { /* Tiêu đề phụ, tên GV */
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 2em; /* Khoảng cách với nội dung tiếp theo */
  color: var(--darkgray);
  font-weight: 400;
}

/* Các khối nội dung */
.chapter-box, .section-box, .subsection-box, .key-info {
  border-radius: 4px;
  padding: 20px 30px;
  margin: 25px 0; /* Thống nhất margin top/bottom */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}
.chapter-box {
  background-color: #fdfdff;
  border: 1px solid #d1d9e6;
}
.chapter-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--myblue);
  margin: 0 0 20px 0; /* Bỏ margin-top, dùng margin của box cha */
  border-bottom: 2px solid var(--myblue);
  padding-bottom: 10px;
}
.section-box {
  background-color: rgba(180, 0, 0, 0.03);
  border: 1px solid rgba(180, 0, 0, 0.2);
}
.section-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--myred);
  margin: 0 0 15px 0;
}
.subsection-box {
  background-color: rgba(0, 120, 0, 0.03);
  border: 1px solid rgba(0, 120, 0, 0.2);
}
.subsection-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--mygreen);
  margin: 0 0 10px 0;
}
.key-info {
  background-color: rgba(255, 140, 0, 0.05);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-left: 4px solid var(--myorange);
}
.key-info-title { /* Thêm class cho tiêu đề của key-info nếu cần */
  font-size: 1.1em;
  font-weight: bold;
  color: var(--myorange);
  margin: 0 0 8px 0;
}

/* --- Khung công thức toán học --- */
.math {
  display: block;
  text-align: center;
  margin: 1.5em auto;
  padding: 18px 20px;
  border: 1px solid var(--myorange);
  border-radius: 3px;
  background-color: rgba(255, 140, 0, 0.07);
  width: fit-content; /* Co lại theo nội dung */
  max-width: 100%; /* Giới hạn chiều rộng tối đa */
  box-shadow: 0 2px 6px rgba(255, 140, 0, 0.2);
  font-family: 'Times New Roman', Times, serif; /* Font cho công thức */
  font-size: 1.15em;
  overflow-x: auto; /* Cuộn ngang nếu công thức quá dài */
  transition: all 0.2s ease-in-out;
}
.math:hover {
  background-color: rgba(255, 140, 0, 0.18);
  border-color: rgb(230, 115, 0); /* Darker orange on hover */
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
  transform: scale(1.015); /* Hiệu ứng phóng to nhẹ */
  cursor: default;
}

/* --- Khối thông báo tuyển sinh trong Footer --- */
.enrollment-announcement { /* Dùng cho thông báo trong footer */
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 160, 40, 0.5); /* Cam nhạt hơn */
}
.enrollment-announcement h3 {
  color: var(--myorange);
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}
.enrollment-announcement p {
  color: #f0f0f0; /* Màu chữ sáng trên nền tối */
  font-size: 0.95em;
  margin-bottom: 7px;
  line-height: 1.5;
}
.enrollment-announcement p:last-child {
  margin-bottom: 0;
}
.enrollment-announcement p strong {
  color: #ffe0a6; /* Màu nhấn cho chữ đậm */
}

/* === SIDEBAR THÔNG BÁO TUYỂN SINH (Độc lập) === */
#toggleEnrollmentSidebarBtn {
  position: fixed;
  top: 100px; /* Điều chỉnh vị trí theo chiều dọc */
  right: -5px; /* Hơi thò ra từ mép phải */
  z-index: 1005;
  background-color: var(--myorange);
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 5px 0 0 5px; /* Bo góc bên trái */
  cursor: pointer;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
  font-size: 1.2em;
  transition: right 0.3s ease-in-out, background-color 0.3s ease;
}
#toggleEnrollmentSidebarBtn:hover {
  background-color: rgb(230, 120, 0); /* Cam đậm hơn khi hover */
}

.enrollment-sidebar {
  position: fixed;
  top: 70px; /* Dưới navbar chính */
  right: -320px; /* BAN ĐẦU ẨN (width + padding + chút nữa) */
  width: 280px;
  max-height: calc(100vh - 90px); /* Chiều cao tối đa */
  overflow-y: auto;
  background-color: #fffaf0; /* Màu kem nhẹ */
  border: 1px solid var(--myorange);
  border-right: none;
  border-radius: 8px 0 0 8px; /* Bo góc trái */
  padding: 20px;
  box-shadow: -4px 4px 12px rgba(0,0,0,0.18);
  z-index: 1004; /* Dưới nút toggle */
  transition: right 0.4s ease-in-out;
  box-sizing: border-box;
}
.enrollment-sidebar.is-visible {
  right: 0; /* Hiện ra */
}
.close-enrollment-sidebar {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.8em;
  color: #aaa;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}
.close-enrollment-sidebar:hover {
  color: var(--myred);
}
.enrollment-sidebar h3 {
  color: var(--myred);
  font-size: 1.15em;
  margin-top: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(180,0,0,0.25);
  padding-bottom: 10px;
}
.enrollment-sidebar p {
  font-size: 0.92em;
  color: #444;
  margin-bottom: 10px;
  line-height: 1.55;
}
.enrollment-sidebar p strong {
  color: var(--myred);
}
.enrollment-sidebar a { /* Link chung trong sidebar */
  color: var(--myblue); /* Kế thừa màu link chung hoặc tùy chỉnh */
  font-weight: bold;
}
.enrollment-sidebar a.details-link { /* Link "Xem chi tiết" */
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 0.88em;
  color: var(--myorange);
  text-decoration: underline;
}

/* === Khu vực Tuyển Sinh và Đăng Ký (Nếu là một section riêng trên trang) === */
.enrollment-section { /* Section lớn chứa nội dung tuyển sinh */
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}
/* .enrollment-section .container đã được định nghĩa ở Layout */
.enrollment-content-grid { /* Lưới cho các hình ảnh/thông tin */
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}
.enrollment-image-item { /* Khung cho mỗi ảnh */
    flex: 1 1 45%; /* 2 ảnh trên 1 hàng, co giãn */
    max-width: 500px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.enrollment-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.responsive-image { /* Class cho ảnh bên trong .enrollment-image-item */
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.registration-form-container { /* Container cho form đăng ký */
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Căn trái nội dung form */
}
.registration-form-container .form-title-eduma { /* Tiêu đề form */
    font-size: 2em;
    font-weight: 700;
    color: var(--myblue); /* Hoặc --myorange */
    margin-bottom: 15px;
    text-align: center; /* Căn giữa tiêu đề form */
}
.registration-form-container .form-description { /* Mô tả form */
    font-size: 1.1em;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center; /* Căn giữa mô tả */
}
.google-form-embed iframe {
    border-radius: 6px;
    width: 100%; /* Đảm bảo iframe chiếm đủ chiều rộng */
}
.form-note { /* Ghi chú dưới form */
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
    text-align: center;
}

/* ===== 5. CÁC LỚP TIỆN ÍCH (Utilities) ===== */
.highlight { /* Đánh dấu từ khóa tìm kiếm */
  background-color: #fff352; /* Vàng nhạt */
  color: var(--darkgray);
  font-weight: bold;
  padding: 1px 0;
  border-radius: 2px;
}

#scrollToTopBtn {
  display: none; /* JS sẽ kiểm soát việc hiển thị */
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  border: none;
  outline: none;
  background-color: var(--myblue);
  color: white;
  cursor: pointer;
  padding: 12px 15px;
  border-radius: 50%; /* Nút tròn */
  font-size: 22px;
  line-height: 1; /* Căn icon giữa nút */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.3s; /* Hiệu ứng chuyển động */
}
#scrollToTopBtn:hover {
  background-color: rgb(0, 50, 100); /* Xanh đậm hơn khi hover */
  transform: translateY(-2px); /* Nhích lên chút */
}

.table-responsive-wrapper { /* Bọc table để cuộn ngang trên mobile */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Cuộn mượt trên iOS */
  border: 1px solid #ddd; /* Viền cho wrapper */
  border-radius: 4px;
  margin: 1em 0;
}
.table-responsive-wrapper table {
  margin: 0; /* Bỏ margin của table bên trong */
  border: none; /* Bỏ viền của table bên trong */
}

/* --- Các lớp tiện ích cho hình ảnh --- */
.image-small-fixed {
  max-width: 300px !important; /* Ưu tiên kích thước này */
  /* margin, display, border-radius, box-shadow kế thừa từ img chung */
}
.image-medium-size {
  max-width: 450px !important;
}
/* .image-large-size { max-width: 600px !important; } */

.image-row-container { /* Hiển thị hình ảnh ngang hàng */
  display: flex;
  justify-content: space-around; /* Phân bố đều không gian */
  align-items: flex-start; /* Căn các item theo đầu */
  flex-wrap: wrap; /* Cho phép xuống dòng nếu không đủ chỗ */
  gap: 20px; /* Khoảng cách giữa các item */
  margin: 20px 0; /* Khoảng cách trên dưới với nội dung khác */
}
.image-row-container .image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 48%; /* Khoảng 2 item trên hàng, tùy thuộc vào gap */
  box-sizing: border-box;
}
.image-row-container .image-item img {
  margin-bottom: 8px; /* Khoảng cách giữa ảnh và caption */
}
.image-row-container .image-item p { /* Caption của ảnh */
  margin-top: 0;
  font-size: 0.85em;
  color: #555;
  line-height: 1.3;
}

/* ===== BẢNG XẾP HẠNG (Nếu là một section riêng) ===== */
.leaderboard-section {
  margin-top: 40px;
  background-color: #f8f9fc; /* Nền nhẹ để phân biệt */
  padding-top: 20px; /* Thêm padding trên cho section */
  padding-bottom: 30px;
}
.leaderboard-section .chapter-title { /* Tái sử dụng hoặc định nghĩa mới nếu cần */
  display: flex;
  align-items: center;
  justify-content: center; /* Căn giữa tiêu đề bảng xếp hạng */
  /* Các style khác của chapter-title có thể được kế thừa */
}
.leaderboard-section .chapter-title i.fa-trophy { /* Icon cúp */
  margin-right: 12px;
  font-size: 0.9em; /* Kích thước icon tương đối với chữ */
  color: var(--myorange); /* Màu cho icon */
}
.leaderboard-section table { /* Bảng trong leaderboard */
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.leaderboard-section th,
.leaderboard-section td {
  border: 1px solid #dee2e6; /* Viền nhạt hơn */
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
}
.leaderboard-section th {
  background-color: var(--mygreen); /* Màu xanh lá cho header */
  color: white;
  font-weight: bold;
  font-family: var(--font-secondary);
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}
.leaderboard-section tbody tr:nth-child(odd) {
  background-color: #ffffff;
}
.leaderboard-section tbody tr:nth-child(even) {
  background-color: #f9f9f9; /* Xám rất nhạt cho hàng chẵn */
}
.leaderboard-section tbody tr:hover {
  background-color: #e9ecef; /* Màu khi hover */
}
/* Căn giữa cho các cột cụ thể */
.leaderboard-section td.rank-column, /* Thêm class nếu cần */
.leaderboard-section td.score-column,
.leaderboard-section td.time-column {
  text-align: center;
}
.leaderboard-section td.rank-column { /* Cột Hạng */
  font-weight: bold;
  color: var(--myorange);
}
/* Nếu td:nth-child() vẫn được dùng: */
.leaderboard-section td:nth-child(1) { /* Hạng */
  text-align: center;
  font-weight: bold;
  color: var(--myorange);
}
.leaderboard-section td:nth-child(3), /* Điểm số */
.leaderboard-section td:nth-child(4) { /* Thời gian */
  text-align: center;
}


/* ===== 6. KHỐI RESPONSIVE TOÀN CỤC ===== */

/* --- Tablet (<= 1024px) --- */
@media (max-width: 1024px) {
  .main-content-wrapper { /* Giảm lề cho nội dung chính */
    margin: 0 0.5in 1in 0.5in;
  }
  .course-categories-section, .why-choose-us-section, .eduma-enrollment, .page-footer {
    padding-left: 0.5in;
    padding-right: 0.5in;
  }
  #searchInput { /* Thu nhỏ ô tìm kiếm */
    width: 150px;
  }
  /* Giảm kích thước font tiêu đề */
  .title { font-size: 2em; }
  .subtitle { font-size: 1.3em; }
  .chapter-title { font-size: 1.6em; }

  .hero-title-eduma { font-size: 2.8em; }
  .section-heading-eduma { font-size: 2.1em; }

  .navbar-container { padding: 0 15px; } /* Giảm padding container navbar */
}

/* --- Mobile (<= 768px) --- */
@media (max-width: 768px) {
  body {
    font-size: 15px; /* Tăng nhẹ font chữ gốc */
  }
  .main-content-wrapper, .main-content-wrapper.homepage {
    margin: 0 15px 1in 15px; /* Lề rất nhỏ */
    /* padding-top cho body sẽ được JS điều chỉnh dựa trên chiều cao navbar */
  }
  .page-footer,
  .course-categories-section,
  .why-choose-us-section,
  .eduma-enrollment {
    padding: 40px 15px; /* Giảm padding cho các section */
  }

  /* Header & Menu on Mobile */
  .top-navigation {
    padding: 10px 0; /* Giảm padding top/bottom của navbar */
    min-height: 50px; /* Giảm chiều cao tối thiểu navbar */
  }
  .navbar-container { /* Container navbar trên mobile */
    padding: 0 15px; /* Padding cho nội dung navbar */
    flex-wrap: wrap; /* Cho phép các item xuống dòng nếu cần thiết */
    justify-content: space-between; /* Đẩy logo và toggle ra hai bên */
  }
   .navbar-header {
    /* Logo và tên GV vẫn giữ nguyên vị trí */
    /* Không cần width: calc(100% - 60px); nếu toggle ở vị trí hợp lý */
  }
  .navbar-info { /* Ẩn thông tin GV (tên, brand) trên mobile để tiết kiệm không gian */
    display: none;
  }
  .navbar-menu { /* Menu chính trên mobile */
    display: none; /* Ẩn mặc định, JS sẽ toggle class .active */
    order: 3; /* Đẩy xuống dưới header và search (nếu search hiển thị) */
    width: 100%;
    background-color: rgb(0, 60, 120); /* Nền hơi khác */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px; /* Khoảng cách với hàng trên */
    text-align: left;
    overflow-x: hidden; /* Không cho cuộn ngang menu dropdown */
  }
  .navbar-menu.active { /* Khi menu được bật */
    display: block;
  }
  .navbar-menu ul {
    flex-direction: column; /* Các mục menu xếp dọc */
    width: 100%;
    display: flex; /* Ghi đè inline-flex */
  }
  .navbar-menu ul li {
    margin: 0; /* Bỏ margin ngang */
  }
  .navbar-menu a {
    padding: 12px 15px; /* Padding lớn hơn cho dễ bấm */
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navbar-menu li:last-child a {
    border-bottom: none;
  }

  .search-container-wrapper { /* Ẩn ô tìm kiếm trong navbar header trên mobile */
    display: none;
    /* Cân nhắc chuyển search vào trong mobile menu nếu cần thiết */
  }
  .mobile-menu-toggle { /* Hiện nút hamburger */
    display: block;
    order: 2; /* Vị trí của nút toggle */
  }


  /* Homepage on Mobile */
  .eduma-hero {
    padding: 100px 15px 80px 15px;
    min-height: auto; /* Bỏ min-height để co theo nội dung */
  }
  .hero-title-eduma { font-size: 2.2em; }
  .hero-subtitle-eduma { font-size: 1em; }
  .cta-button {
    font-size: 0.95em;
    padding: 10px 20px;
  }
  .enrollment-cta .cta-button { /* Nút CTA trên mobile */
    display: block; /* Chiếm cả hàng */
    margin: 10px auto; /* Căn giữa */
    width: 80%;
    max-width: 280px;
  }
  .category-grid, .why-grid {
    grid-template-columns: 1fr; /* 1 cột trên mobile */
  }

  /* Content Pages on Mobile */
  .title { font-size: 1.8em; }
  .subtitle { font-size: 1.2em; }
  .chapter-box, .section-box, .subsection-box, .key-info {
    padding: 15px; /* Giảm padding cho các box */
  }
  .chapter-title { font-size: 1.5em; }
  .section-title { font-size: 1.3em; }
  .subsection-title { font-size: 1.15em; }

  /* Hình ảnh ngang hàng trên mobile */
  .image-row-container .image-item {
    max-width: 100%; /* Mỗi ảnh chiếm 100% chiều rộng */
  }

  /* Footer on Mobile */
  .footer-content-grid {
    flex-direction: column; /* Xếp dọc các thành phần footer */
    text-align: center; /* Căn giữa nội dung */
    gap: 20px; /* Giảm gap */
  }
  .footer-logo-container {
    max-width: 120px; /* Logo nhỏ hơn */
    margin-bottom: 15px;
  }
  .footer-text-content {
    border-left: none; /* Bỏ viền trái */
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Thêm viền trên */
    padding-top: 20px;
  }
  .enrollment-announcement, .footer-main-info, .contact-info {
    text-align: center; /* Đảm bảo các phần này cũng căn giữa */
  }

  /* Sidebar tuyển sinh trên mobile */
  .enrollment-sidebar {
    width: 90%; /* Chiếm gần hết chiều rộng */
    max-width: 300px; /* Giới hạn max width */
    right: -100%; /* Ẩn hoàn toàn ra ngoài */
    top: 60px; /* Điều chỉnh lại vị trí top */
    border-radius: 8px; /* Bo góc đều */
    border-right: 1px solid var(--myorange); /* Thêm lại viền phải */
  }
  .enrollment-sidebar.is-visible {
    right: 50%;
    transform: translateX(50%); /* Căn giữa màn hình */
  }
  #toggleEnrollmentSidebarBtn {
    top: 70px; /* Vị trí nút toggle trên mobile */
    padding: 8px 10px;
    font-size: 1em;
  }
  /* Khu vực tuyển sinh & đăng ký trên mobile */
  .enrollment-content-grid {
    flex-direction: column;
    align-items: center;
  }
  .enrollment-image-item {
    flex-basis: 90%;
    max-width: 90%;
  }
  .registration-form-container {
    padding: 20px;
  }
  .registration-form-container .form-title-eduma {
    font-size: 1.8em;
  }
}

/* --- Small Mobile (<= 480px) --- */
@media (max-width: 480px) {
  .navbar-header { /* Trên màn hình rất nhỏ, có thể cần điều chỉnh logo/tên */
    /* Ví dụ: Giảm kích thước logo hoặc chỉ hiển thị logo */
  }
  .navbar-info .teacher-name { /* Nếu .navbar-info được hiển thị lại */
    font-size: 0.85em;
  }
  .navbar-info .brand-name {
    font-size: 0.75em;
  }
  .hero-title-eduma { font-size: 1.8em; } /* Giảm nữa cho màn hình rất nhỏ */
  .hero-subtitle-eduma { font-size: 0.9em; }

  .chapter-box { /* Giảm margin trên/dưới của các khối nội dung */
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .main-content-wrapper, .main-content-wrapper.homepage {
    margin-left: 10px;
    margin-right: 10px;
  }
  .page-footer,
  .course-categories-section,
  .why-choose-us-section,
  .eduma-enrollment {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* style.css */

.page-with-toc #toc-sidebar {
    position: fixed;
    left: 20px;
    /* top: 120px; -- Sẽ được JS điều chỉnh lại sau khi header load */
    width: 230px;
    background-color: #f8f9fa; /* Màu nền của sidebar */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999; /* Đảm bảo nổi trên nội dung nhưng dưới header nếu header có z-index cao hơn */
    transition: transform 0.3s ease-in-out, top 0.3s;
    /* overflow-y: auto; -- Thêm nếu mục lục quá dài */
    /* max-height: calc(100vh - 150px); -- Giới hạn chiều cao, trừ đi header và một chút padding */
}

.page-with-toc #toc-sidebar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #00468c; /* var(--myblue) */
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-with-toc #toc-sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-with-toc #toc-sidebar nav ul li a {
    display: block;
    padding: 10px 15px; /* Tăng padding cho dễ click */
    text-decoration: none;
    color: #343a40; /* var(--darkgray) */
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
    margin-bottom: 5px; /* Khoảng cách giữa các mục */
}

.page-with-toc #toc-sidebar nav ul li a:hover {
    background-color: #e9ecef; /* var(--mediumgray) */
}

.page-with-toc #toc-sidebar nav ul li a.toc-active {
    background-color: #00468c; /* var(--myblue) */
    color: #ffffff;
    font-weight: 700;
}

/* CSS cho main-content-wrapper để chừa không gian cho TOC trên desktop */
.page-with-toc .main-content-wrapper {
    /* padding-top sẽ được JS điều chỉnh */
    /* Các margin hiện tại của bạn: margin: 0 1in 1in 1in; */
    /* Quan trọng cho TOC: */
}

@media (min-width: 1201px) { /* Chỉ áp dụng padding-left này cho màn hình lớn hơn 1200px */
  .page-with-toc .main-content-wrapper {
        padding-left: 270px; /* sidebar width (230px) + margin (20px bên trái + 20px bên phải sidebar) */
    }
}


/* Responsive: Ẩn mục lục hoặc chuyển thành dạng trượt trên màn hình nhỏ */
/* Phần CSS này bạn đã có trong style.css cho ly12.html, đảm bảo nó đúng */
@media (max-width: 1200px) {
  .page-with-toc #toc-sidebar {
        /* Ví dụ: biến thành menu trượt từ trái */
        left: 0;
        top: 0; /* Sẽ được điều chỉnh bởi JS nếu header cố định */
        height: 100%;
        width: 280px; /* Hoặc kích thước bạn muốn cho mobile */
        transform: translateX(-100%); /* Ẩn ban đầu */
        z-index: 1001; /* Nằm trên overlay */
        border-radius: 0;
        /* Thêm position:fixed quan trọng nếu chưa có*/
         position: fixed; 
    }
  .page-with-toc #toc-sidebar.is-visible {
        transform: translateX(0); /* Hiện ra */
    }

    .main-content-wrapper {
        padding-left: 15px; /* Reset padding khi sidebar ẩn hoặc trượt */
         /* padding-right: 15px; -- bạn đã có trong style.css chung */
    }

  .page-with-toc .toc-toggle { /* Nút hamburger cho TOC trên mobile */
        display: block; /* Hiện nút này trên mobile */
        position: fixed; /* Cố định vị trí nút */
        left: 15px;
        /* top: 75px; -- Sẽ được JS điều chỉnh lại dựa vào chiều cao header */
        z-index: 1002; /* Cao hơn sidebar một chút */
        background: var(--myblue);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 20px;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
  .page-with-toc #toc-overlay { /* Overlay mờ khi TOC mobile hiện ra */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000; /* Dưới TOC, trên nội dung */
        display: none; /* Ẩn ban đầu */
    }
  .page-with-toc #toc-overlay.is-visible {
        display: block;
    }
}

/* style.css */
.about-us-section {
    background-color: #ffffff; /* Hoặc #f8f9fc nếu bạn muốn nền khác */
    padding: 80px 0; /* Tăng padding trên dưới */
}

.about-us-content {
    display: flex;
    flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ hơn */
    align-items: center; /* Căn giữa theo chiều dọc */
    gap: 50px; /* Khoảng cách giữa khối text và ảnh */
}

.about-text {
    flex-basis: 0; /* Cho phép flex-grow hoạt động đúng */
    flex-grow: 1; /* Chia sẻ không gian đều */
    min-width: 300px; /* Ngăn không cho quá hẹp */
    padding-right: 20px; /* Thêm chút đệm nếu ảnh nằm bên phải */
}

.about-text h3 {
    font-size: 2em; /* Tăng kích thước tiêu đề con */
    color: var(--myblue);
    margin-top: 0;
    margin-bottom: 20px; /* Tăng khoảng cách */
    font-family: var(--font-secondary);
    font-weight: 700; /* Đậm hơn */
    line-height: 1.3;
}

.about-text p {
    font-size: 1.05em; /* Tăng nhẹ font chữ đoạn văn */
    line-height: 1.8; /* Tăng giãn dòng */
    color: #454545; /* Màu chữ hơi tối hơn cho dễ đọc */
    margin-bottom: 20px; /* Khoảng cách giữa các đoạn */
}

.about-image {
    flex-basis: 0;
    flex-grow: 1;
    min-width: 300px;
    text-align: center; /* Căn giữa ảnh trong khối của nó */
    display: flex; /* Để căn giữa ảnh dễ hơn */
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    width: 400px; /* Bạn có thể đặt một width cố định hoặc max-width cho ảnh */
    height: auto;
    border-radius: 10px; /* Bo góc nhiều hơn */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); /* Tăng hiệu ứng bóng đổ */
}

/* Responsive cho mục Giới thiệu */
@media (max-width: 992px) { /* Tablet ngang và nhỏ hơn */
    .about-us-content {
        gap: 30px; /* Giảm khoảng cách */
    }
    .about-text h3 {
        font-size: 1.8em;
    }
    .about-image img {
        width: 350px;
    }
}

@media (max-width: 768px) { /* Tablet đứng và điện thoại */
    .about-us-content {
        flex-direction: column; /* Xếp chồng lên nhau */
        text-align: center; /* Căn giữa text khi xếp chồng */
    }
    .about-text {
        padding-right: 0; /* Bỏ padding khi xếp chồng */
        margin-bottom: 30px; /* Khoảng cách giữa text và ảnh khi xếp chồng */
    }
    .about-text h3 {
        font-size: 1.7em;
    }
    .about-image img {
        width: 80%; /* Ảnh chiếm phần lớn chiều rộng */
        max-width: 320px; /* Nhưng không quá to */
    }
}


/* style.css - CSS cho mục Đóng Góp Ý Kiến */

.feedback-section {
    background-color: #eef4fa; /* Một màu nền rất nhẹ, ví dụ xanh nhạt hoặc xám xanh */
    padding: 70px 15px; /* Tăng padding trên dưới */
    text-align: center;
}

.feedback-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Khoảng cách giữa icon và tiêu đề */
    margin-bottom: 15px;
}

.feedback-main-icon {
    font-size: 2.8em; /* Kích thước icon chính */
    color: var(--myorange); /* Hoặc var(--myblue) */
}

/* .feedback-section .section-heading-eduma đã có style chung */
/* .feedback-section .section-subheading-eduma đã có style chung, có thể tùy chỉnh thêm nếu muốn */
.feedback-section .section-subheading-eduma {
    font-size: 1.15em;
    color: #4a6a87; /* Màu chữ cho subheading */
    margin-bottom: 50px;
}

.feedback-card {
    background-color: #ffffff;
    padding: 35px 30px 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 50, 100, 0.1); /* Bóng đổ nhẹ với màu xanh */
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    border-top: 6px solid var(--myorange); /* Đường viền cam nổi bật ở trên */
    position: relative; /* Để trang trí thêm nếu muốn */
    overflow: hidden; /* Nếu có element trang trí tràn ra ngoài */
}

.feedback-card-icon-area {
    margin-bottom: 25px;
}

.feedback-card-icon-area i {
    font-size: 2.2em; /* Kích thước các icon nhỏ trong card */
    color: var(--myblue);
    margin: 0 12px;
    opacity: 0.8;
    transition: transform 0.3s ease, color 0.3s ease;
}
.feedback-card-icon-area i:hover {
    transform: scale(1.2);
    color: var(--myorange);
}

.feedback-card h3 {
    font-size: 1.9em; /* Tăng kích thước tiêu đề trong card */
    color: var(--myblue);
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.feedback-card-text {
    font-size: 1.1em; /* Tăng nhẹ font chữ */
    color: #33475b; /* Màu chữ đậm hơn chút */
    line-height: 1.8;
    margin-bottom: 35px; /* Tăng khoảng cách với nút bấm */
}

.feedback-actions .cta-button {
    margin: 10px;
    min-width: 260px; /* Đảm bảo nút có độ rộng tối thiểu */
    padding: 14px 28px; /* Tăng padding cho nút */
}

.feedback-actions .cta-button i {
    margin-right: 10px; /* Khoảng cách icon và text trong nút */
}

/* Hiệu ứng cho .feedback-card nếu muốn (tùy chọn) */
.feedback-card::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 140, 0, 0.08); /* Màu cam rất nhạt */
    border-radius: 50%;
    z-index: 0;
    opacity: 0.7;
}
.feedback-card > * { /* Đảm bảo nội dung card nằm trên pseudo-element */
    position: relative;
    z-index: 1;
}


/* Responsive cho mục Feedback */
@media (max-width: 768px) {
    .feedback-main-icon {
        font-size: 2.4em;
    }
    .feedback-card {
        padding: 30px 20px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .feedback-card h3 {
        font-size: 1.7em;
    }
    .feedback-card-text {
        font-size: 1em;
    }
    .feedback-actions .cta-button {
        display: block; /* Các nút xếp chồng lên nhau */
        width: calc(100% - 20px); /* Trừ đi margin 10px mỗi bên */
        max-width: 300px;
        margin: 15px auto; /* Căn giữa */
        min-width: auto;
    }
    .feedback-card::before { /* Ẩn hoặc điều chỉnh element trang trí trên mobile */
        display: none;
    }
}

/* style.css - CSS cho phần hiển thị góp ý công khai */

.public-feedback-display {
    margin-top: 70px; /* Khoảng cách với phần kêu gọi gửi feedback ở trên */
    padding-top: 50px;
    border-top: 2px dashed var(--mediumgray); /* Đường phân cách nhẹ */
}

.public-feedback-title {
    font-size: 2.2em; /* Kích thước tiêu đề cho mục này */
    color: var(--myblue);
    text-align: center;
    margin-bottom: 50px;
    font-family: var(--font-secondary);
    font-weight: 700;
}

.public-feedback-title .fa-star {
    color: #ffc107; /* Màu vàng cho ngôi sao */
    font-size: 0.8em;
    vertical-align: middle; /* Căn giữa ngôi sao với text */
    margin: 0 10px;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid, 1-3 cột */
    gap: 30px; /* Khoảng cách giữa các feedback items */
}

.feedback-item-public {
    background-color: #fff;
    border: 1px solid #e9ecef; /* Viền nhẹ */
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 6px 18px rgba(0, 30, 60, 0.08);
    display: flex;
    flex-direction: column; /* Các thành phần bên trong xếp dọc */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-item-public:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 30, 60, 0.12);
}

.feedback-item-header {
    margin-bottom: 15px;
    text-align: left;
}

.feedback-author-public {
    font-weight: bold;
    color: var(--myblue);
    font-size: 1.05em;
    display: block; /* Để chiếm một dòng riêng nếu cần */
}

.feedback-source-public {
    font-size: 0.85em;
    color: #777;
    display: block;
}

.quote-icon-public {
    font-size: 2em; /* Kích thước icon dấu ngoặc kép */
    color: var(--myorange);
    opacity: 0.5;
    margin-bottom: 10px;
    text-align: left; /* Dấu ngoặc kép thường ở đầu */
}

.feedback-text-public {
    font-size: 1em;
    color: #34495e; /* Màu chữ cho nội dung feedback */
    line-height: 1.75;
    font-style: italic; /* In nghiêng cho lời trích dẫn */
    margin-bottom: 0; /* Bỏ margin bottom nếu author nằm ngay sau */
    flex-grow: 1; /* Giúp các card có chiều cao đồng đều nếu nội dung khác nhau */
}

/* Responsive cho feedback grid */
@media (max-width: 768px) {
    .feedback-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
    }
    .public-feedback-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .feedback-item-public {
        padding: 20px;
    }
}

/* style.css - Bổ sung/Cập nhật cho mục Feedback với Avatar */

.feedback-item-header {
    display: flex; /* Để avatar và thông tin tác giả nằm cùng hàng */
    align-items: center; /* Căn giữa theo chiều dọc */
    margin-bottom: 15px; /* Khoảng cách với icon trích dẫn */
    text-align: left; /* Đảm bảo text trong header này căn trái */
}

.feedback-avatar {
    width: 50px;  /* Kích thước avatar */
    height: 50px;
    border-radius: 50%; /* Bo tròn avatar */
    margin-right: 15px; /* Khoảng cách giữa avatar và text */
    object-fit: cover;  /* Giữ tỷ lệ ảnh, cắt nếu cần */
    border: 2px solid #e0e7ef; /* Viền nhẹ cho avatar */
}

.feedback-author-details {
    display: flex;
    flex-direction: column; /* Tên và nguồn xếp dọc */
}

.feedback-author-public {
    font-weight: bold;
    color: var(--myblue);
    font-size: 1.05em;
    line-height: 1.3;
}

.feedback-source-public {
    font-size: 0.85em;
    color: #6c757d; /* Màu xám cho nguồn */
    line-height: 1.3;
}

/* Đảm bảo các style cũ cho quote-icon và text vẫn ổn định */
.quote-icon-public {
    font-size: 2em;
    color: var(--myorange);
    opacity: 0.6; /* Giảm độ đậm của icon một chút */
    margin-bottom: 10px;
    text-align: left; 
}

.feedback-text-public {
    font-size: 1em;
    color: #34495e;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 0; 
    flex-grow: 1;
    text-align: left; /* Đảm bảo text feedback căn trái */
}

/* style.css - CSS cho mục nhúng Facebook */

.news-events-section {
    padding: 60px 15px;
    background-color: #f8f9fc; /* Màu nền nhẹ để phân biệt với các mục khác */
}

/* Container để căn giữa và tạo kiểu cho khối nhúng */
.facebook-embed-container {
    display: flex;
    justify-content: center; /* Căn giữa iframe theo chiều ngang */
    margin-top: 20px;
    
    /* Tùy chọn: Thêm nền trắng và bóng đổ để bài đăng nổi bật hơn */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    
    /* Giới hạn chiều rộng tối đa */
    max-width: 540px; /* = 500px của iframe + 20px padding mỗi bên */
    margin-left: auto;
    margin-right: auto;
}

/* QUAN TRỌNG: Làm cho iframe co giãn theo chiều rộng */
.facebook-embed-container iframe {
    max-width: 100%;
}

/* Điều chỉnh trên màn hình nhỏ hơn */
@media (max-width: 560px) {
    .news-events-section {
        padding: 50px 10px;
    }
    .facebook-embed-container {
        padding: 10px;
    }
}

/* style.css - CSS cho Kho Đề Thi PDF */

.test-pdf-list-section {
    padding: 60px 15px;
    background-color: #ffffff;
}

.test-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.test-pdf-item {
    background-color: #f8f9fc;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 70, 140, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.test-pdf-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 70, 140, 0.1);
}

.pdf-icon-container {
    font-size: 3em;
    color: var(--myred); /* Màu đỏ đặc trưng của PDF */
    margin-bottom: 20px;
}

.test-pdf-title {
    font-size: 1.3em;
    color: var(--myblue);
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}

.test-pdf-description {
    font-size: 0.95em;
    color: #555;
    flex-grow: 1; /* Đẩy các nút xuống dưới, giúp các card có chiều cao đồng đều */
    margin-bottom: 20px;
}

.test-pdf-actions .cta-button {
    margin: 5px;
    padding: 8px 18px;
    font-size: 0.9em;
}

/* style.css - CSS cho trang "Under Construction" */

.under-construction-section {
    text-align: center;
    padding: 80px 20px;
    min-height: 65vh; /* Đảm bảo section chiếm một khoảng không gian đáng kể trên màn hình */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fc; /* Nền xám nhẹ để phân biệt */
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.construction-icon {
    font-size: 6em; /* Icon lớn và nổi bật */
    color: var(--myorange);
    margin-bottom: 30px;
    /* Hiệu ứng tên lửa đang cất cánh */
    animation: rocket-launch 2.5s ease-in-out infinite;
}

.under-construction-section h1 {
    font-size: 2.8em;
    color: var(--myblue);
    font-family: var(--font-secondary);
    font-weight: 800;
    margin-bottom: 20px;
}

.construction-message {
    font-size: 1.2em;
    color: #333;
    max-width: 650px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.construction-sub-message {
    font-size: 1.1em;
    color: #555;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.construction-actions .cta-button {
    margin: 10px;
}

/* Định nghĩa animation cho icon tên lửa */
@keyframes rocket-launch {
    0% {
        transform: translateY(0) rotate(-45deg);
    }
    50% {
        transform: translateY(-20px) rotate(-45deg);
    }
    100% {
        transform: translateY(0) rotate(-45deg);
    }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .under-construction-section h1 {
        font-size: 2.2em;
    }
    .construction-icon {
        font-size: 5em;
    }
    .construction-message {
        font-size: 1.1em;
    }
    .construction-sub-message {
        font-size: 1em;
    }
}


/* style.css - CSS cho Banner Thông báo Bảo trì */
#maintenance-banner {
    background-color: #ffc107; /* Màu vàng cảnh báo */
    color: #333;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky; /* Hoặc fixed nếu muốn nó luôn ở trên cùng */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000; /* Hiển thị trên mọi thứ khác */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    box-sizing: border-box;
}
.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}
.banner-icon {
    font-size: 1.5em;
}
#maintenance-banner p {
    margin: 0;
    font-size: 0.9em;
}
#close-banner-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #555;
    padding: 0 5px;
}
#maintenance-banner.hidden {
    display: none;
}

