
/* --- 1. BIẾN MÀU SẮC & ROOT --- */
:root {
    --primary: #0054a5; /* Xanh dương HUIT */
    --accent: #ed1c24;  /* Đỏ HUIT */
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-footer: #002d58;
    --text-footer: #cbd5e1;
    --yellow-huit: #ffc107;
}

[data-theme="dark"] {
/* 1. Nền trang: Dùng xanh đen sâu thay vì đen tuyệt đối để mắt dễ chịu hơn */
--bg-light: #0f172a; 

/* 2. Màu chữ: Trắng xám (slate) giúp giảm độ chói khi đọc nội dung dài */
--text-dark: #f1f5f9; 

/* 3. Nền các khối (Card/Sidebar): Sáng hơn nền trang một chút để tạo lớp (Layering) */
--white: #1e293b; 

/* 4. Màu nhấn (Primary): Quan trọng! Hạ tông xanh dương xuống một chút 
để nó không bị quá gắt trên nền tối */
--primary: #0054a5; 

/* 5. Glassmorphism: Độ mờ của nền kính trong suốt */
--glass-bg: rgba(15, 23, 42, 0.85); 

/* 6. Shadow: Đổ bóng đậm hơn và rộng hơn để tách biệt các khối nội dung */
--card-shadow: 0 20px 25px -10px rgba(0, 0, 0, 0.5);

/* 7. Overlay cho Hero: Làm tối ảnh nền hơn khi ở chế độ Dark Mode */
--hero-overlay: rgba(15, 23, 42, 0.9);
 
 /* 8. Footer layer */
 --bg-footer: #002d58;
 --text-footer: #e2e8f0;
}

/* --- 2. RESET & CƠ BẢN --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; transition: var(--transition); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 3. NAVBAR (GLASSMORPHISM) --- */

        /* --- TOP BAR --- */
        .top-bar {
            background-color: var(--primary);
            color: white;
            padding: 8px 0;
            font-size: 13px;
        }

        .top-bar-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .top-info {
            display: flex;
            gap: 20px;
        }

        .top-info span i {
            margin-right: 5px;
            color: var(--yellow-huit);
        }

        .top-links a {
            color: white;
            text-decoration: none;
            margin-left: 15px;
            transition: var(--transition);
        }

        .top-links a:hover {
            color: var(--yellow-huit);
        }
/* --- RESPONSIVE TOP BAR --- */
/* --- RESPONSIVE TOP BAR (PHONE & MAIL CHUNG HÀNG) --- */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-container {
        flex-direction: row; /* Ép nằm cùng 1 hàng */
        justify-content: space-between; /* Đẩy về 2 đầu */
        padding: 0 10px;
        flex-wrap: nowrap; /* Không cho xuống dòng */
    }

    .top-info {
        display: flex;
        flex-direction: row; /* Info nằm ngang */
        gap: 10px;
        font-size: 11px; /* Giảm font một chút để vừa màn hình nhỏ */
        overflow: hidden;
    }

    /* Ẩn bớt icon hoặc chữ nếu cần để tránh chật chội */
    .top-info span {
        white-space: nowrap;
        display: flex;
        align-items: center;
    }

    .top-info span i {
        font-size: 10px;
    }

    .top-links {
        display: flex;
        gap: 8px;
        border-top: none; /* Bỏ viền ngăn cách vì đã chung hàng */
        padding-top: 0;
    }

    .top-links a {
        margin: 0;
        font-size: 11px;
    }
}

/* Xử lý cho màn hình cực nhỏ (iPhone 5/SE) */
@media (max-width: 375px) {
    .top-info span:last-child {
        display: none; /* Ẩn email, chỉ giữ lại Số điện thoại cho thoáng */
    }
}

@media (max-width: 768px) {
    .brand-container {
        display: flex;
        flex-direction: row; /* Giữ nằm ngang trên mobile nếu bạn thích */
        justify-content: space-between;
        padding: 10px;
    }
    .brand-logo img {
        height: 45px; /* Thu nhỏ logo lại trên mobile */
    }
    .brand-text .main-title {
        font-size: 0.9rem; /* Thu nhỏ chữ tiêu đề */
        text-align: right;
    }
    .brand-text .sub-title {
        display: none; /* Ẩn bớt dòng "BỘ CÔNG THƯƠNG" trên mobile cho đỡ rối */
    }
}
/* 2. Tầng Brand (Logo & Chữ) */


.brand-logo img {
    height: 70px; /* Chỉnh lại theo logo của bạn */
    object-fit: contain;
}

.brand-text {
    text-align: center;
}

.brand-text .sub-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.brand-text .main-title {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* --- Tầng Brand (Logo & Chữ) --- */
.brand-section {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.brand-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2.5fr; /* Tỷ lệ logo : chữ gần 1:2 */
    align-items: center;
    padding: 0 15px;
}
.brand-logo img { height: 75px; object-fit: contain; }
.brand-text { text-align: center; line-height: 1.2; }
.brand-text .sub-title { font-size: 1rem; color: #555; margin-bottom: 2px; }
.brand-text .main-title { font-size: 1.5rem; color: var(--primary); font-weight: 800; }
@media (max-width: 768px) {
    /* 1. Căn chỉnh lại container để logo và chữ không đè nhau */
    .brand-container {
        display: flex !important;
        flex-direction: column !important; /* Xếp chồng dọc */
        align-items: center !important;
        justify-content: center !important;
        padding: 15px 0 !important;
        gap: 10px !important;
    }

    /* 2. Cân lại logo */
    .brand-logo {
        margin: 0 auto !important;
    }
    .brand-logo img {
        height: 55px !important; /* Thu nhỏ chút cho thanh thoát */
    }

    /* 3. QUAN TRỌNG: Cân lại chữ để không bị nhảy lệch */
    .brand-text {
        width: 100% !important;
        text-align: center !important;
        padding: 0 10px !important;
    }

    .brand-text .sub-title {
        font-size: 0.75rem !important; /* BỘ CÔNG THƯƠNG */
        margin-bottom: 2px !important;
        letter-spacing: 1px;
        display: block;
    }

    .brand-text .main-title {
        font-size: 1rem !important; /* Hạ size vừa đủ để ôm trọn chiều ngang */
        line-height: 1.4 !important; /* Tăng khoảng cách dòng để không bị dính chữ */
        font-weight: 800;
        text-transform: uppercase;
        max-width: 320px; /* Giới hạn độ rộng để chữ xuống dòng cân đối */
        margin: 0 auto !important;
        display: block;
        word-wrap: break-word;
    }
}
/* --- Menu Chính --- */
header {
    background: #298dea; 
    width: 100%;
    z-index: 990;
    position: -webkit-sticky; /* Hỗ trợ Safari */
    position: sticky;
    display: block;
}

/* Tìm và sửa lại thẻ header hoặc div bọc ngoài navbar */
#header { 
    position: -webkit-sticky; /* Hỗ trợ Safari */
    position: sticky;
    top: 0;
    z-index: 990;    /* Đảm bảo cực cao để nổi trên Slider và các nút bên phải */
    width: 100%;
    background-color: var(--primary); /* Màu xanh chủ đạo */
}

/* Navbar bên trong chỉ dùng để căn giữa nội dung */
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    height: 50px;
    padding: 0 15px;
    position: relative; /* Đổi từ sticky thành relative hoặc bỏ hẳn dòng này */
}

.nav-menu {
    display: flex;
    height: 100%;
}

.nav-link {
    color: #fff !important;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,0.1); /* Vách ngăn mảnh */
    transition: 0.3s;
}

/* Fix lỗi trùng màu: Khi hover dùng màu xanh sáng hơn */
.nav-link:hover, .has-dropdown:hover > .nav-link {
    background: #0072bc; 
    color: var(--yellow-huit) !important; /* Đổi màu chữ sang vàng khi hover cho nổi */
}

/* --- Dropdown List (Dạng danh sách) --- */
.has-dropdown { position: relative; }
.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: #4d9ce6;
    min-width: 220px;
    display: none; /* Ẩn đi */
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-top: 3px solid var(--accent); /* Viền đỏ phía trên cho chuyên nghiệp */
}

.dropdown-list li a {
    padding: 12px 20px;
    color: white;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: block;
}

.dropdown-list li a:hover {
    background: #0072bc;
    padding-left: 25px; /* Hiệu ứng trượt nhẹ */
}

/* Hiện list khi hover vào mục cha */
.has-dropdown:hover .dropdown-list { display: flex; }

/* --- Controls & Responsive --- */
.controls { display: flex; align-items: center; gap: 15px; color: #fff; }
.controls i { cursor: pointer; font-size: 1.1rem; }


.nav-item-link {
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0 15px;
    height: 50px;
    display: flex;
    align-items: center;
    transition: background 0.3s;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-item-link:hover {
    background: var(--accent); /* Đỏ HUIT khi hover */
    color: white;
}

.nav-link {
    color: white !important;
    padding: 15px 20px;
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    background: var(--accent); /* Màu đỏ khi active giống hình */
}


@media (max-width: 768px) {
    /* Ép nền menu Mobile thành màu xanh, không cho phép màu trắng lọt vào */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100%; 
        width: 280px !important;
        height: 100vh !important;
        background-color: #0072bc !important; /* Màu xanh chủ đạo */
        display: flex !important;
        flex-direction: column !important;
        padding: 80px 0 20px 0 !important;
        transition: 0.4s all ease !important;
        z-index: 99999 !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3) !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    /* Sửa lỗi chữ màu trắng trên nền trắng - Ép chữ hiện màu rõ ràng */
    .nav-link {
        color: #ffffff !important; /* Chữ trắng trên nền xanh */
        width: 100% !important;
        padding: 15px 25px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        display: block !important;
    }

    /* Cân lại phần Brand (Logo & Chữ) cho mobile */
    .brand-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 10px 0 !important;
        gap: 5px !important;
    }

    .brand-text .main-title {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        color: var(--primary) !important;
    }

    /* Đảm bảo nút hamburger và icon luôn nổi lên trên */
    .hamburger {
        display: block !important;
        color: white !important;
        font-size: 20px !important;
        z-index: 100000 !important;
        cursor: pointer;
    }
}
@media (max-width: 768px) {
    /* Khi menu đang mở (active), nút đóng X sẽ nhảy xuống dưới cùng bên trái */
    .nav-menu.active ~ .hamburger i.fa-times,
    .nav-menu.active + .hamburger i.fa-times,
    .hamburger i.fa-times {
        position: fixed !important;
        bottom: 30px !important; /* Cách đáy màn hình 30px */
        left: 30px !important;   /* Cách lề trái 30px */
        top: auto !important;    /* Hủy bỏ thuộc tính top nếu có */
        right: auto !important;  /* Hủy bỏ thuộc tính right nếu có */
        
        font-size: 28px !important;
        color: white !important;
        background: rgba(0, 0, 0, 0.2); /* Thêm nền mờ để nổi bật nút */
        width: 50px;
        height: 50px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%; /* Làm nút hình tròn cho hiện đại */
        z-index: 100001 !important;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
}
/* --- 4. HERO SECTION --- */
.hero {
    height: 80vh; display: flex; align-items: center; justify-content: center;
    text-align: center; background: linear-gradient(rgba(0,84,165,0.8), rgba(0,84,165,0.6)), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&q=80&w=2070') center/cover;
    color: white; padding-top: 80px; clip-path: ellipse(150% 100% at 50% 0%);
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px; }
.btn-cta {
    padding: 12px 30px; background: var(--accent); color: white; border: none;
    border-radius: 50px; font-weight: bold; cursor: pointer; transition: var(--transition);
    box-shadow: 0 4px 15px rgba(237, 28, 36, 0.3);
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(237, 28, 36, 0.5); }

/* --- 5. GRID MAJORS --- */
.section { max-width: 1200px; margin: 80px auto; padding: 0 2rem; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.section-title div { width: 80px; height: 4px; background: var(--accent); margin: 0 auto; border-radius: 2px; }

.majors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.major-card {
    background: var(--glass-bg); padding: 40px 30px; border-radius: 20px;
    text-align: center; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--card-shadow);
}
.major-card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.major-card:hover {
    transform: translateY(-10px);
    background: var(--primary); color: white;
}
.major-card:hover i { color: white; }

/* --- 6. NEWS SECTION --- */
.news-container { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.news-main { background: white; border-radius: 15px; overflow: hidden; box-shadow: var(--card-shadow); }
[data-theme="dark"] .news-main { background: #1e293b; }
.news-img { width: 100%; height: 300px; object-fit: cover; }
.news-body { padding: 25px; }

.notice-list { display: flex; flex-direction: column; gap: 15px; }
.notice-item {
    padding: 15px; border-left: 4px solid var(--primary);
    background: rgba(0, 84, 165, 0.05); transition: var(--transition);
}
.notice-item:hover { background: rgba(0, 84, 165, 0.1); padding-left: 20px; }

/* --- 7. FOOTER --- */
footer { background: #002d58; color: #cbd5e1; padding: 60px 0 20px; }
.footer-content {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px;
}
.footer-col h3 { color: white; margin-bottom: 20px; border-left: 3px solid var(--accent); padding-left: 10px; }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }

/* --- SITE FOOTER COMPONENT --- */
.site-footer {
    background-color: var(--bg-footer);
    color: var(--text-footer);
    padding: 60px 0 20px;
    font-size: 14px;
    transition: var(--transition);
}

.site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.site-footer .footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.site-footer .footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--yellow-huit);
}

.site-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-col ul li {
    margin-bottom: 12px;
}

.site-footer .footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.site-footer .footer-col ul li a:hover {
    color: var(--yellow-huit);
    transform: translateX(5px);
}

.site-footer .footer-col p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.site-footer .footer-col p i {
    width: 25px;
    color: var(--yellow-huit);
}

.site-footer .map-container {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    line-height: 0;
}

.site-footer .map-container iframe {
    width: 100%;
    height: 150px;
    border: 0;
}

.site-footer .social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.site-footer .social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.site-footer .social-links a:hover {
    background: var(--yellow-huit);
    color: var(--bg-footer);
    transform: translateY(-3px);
}

.site-footer .footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

@media (max-width: 768px) {
    .site-footer .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .site-footer .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .site-footer .social-links {
        justify-content: center;
    }
}

/* --- 8. RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: var(--bg-light); flex-direction: column; padding: 40px; transition: 0.5s;
    }
    .nav-menu.active { left: 0; }
    .hamburger { display: block; }
    .news-container { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
}
/* css mới thêm cho trang đào tạo */
.curriculum-card { 
    background: var(--glass-bg); 
    padding: 25px; 
    border-radius: 15px; 
    border-left: 5px solid var(--primary); 
    margin-bottom: 20px; 
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}
/* --- RIGHT PANEL TASKBAR --- */
.right-panel {
position: fixed;
right: 0;
top: 50%;
z-index: 999;
transform: translateY(-50%);
width: 60px; /* Chiều rộng khi thu gọn */
height: auto;
background: var(--glass-bg);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
border-radius: 30px 0 0 30px;
box-shadow: var(--card-shadow);
z-index: 999;
overflow: hidden;
transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Phóng to khi hover */
.right-panel:hover {
width: 200px; /* Chiều rộng khi mở rộng */
}

.panel-content {
display: flex;
flex-direction: column;
padding: 20px 0;
}

.panel-item {
display: flex;
align-items: center;
padding: 15px 20px;
color: var(--text-dark);
text-decoration: none;
transition: var(--transition);
white-space: nowrap; /* Giữ chữ không bị nhảy dòng khi mở rộng */
}

.panel-item i {
font-size: 1.2rem;
min-width: 25px;
margin-right: 20px;
color: var(--primary);
}

.panel-item span {
opacity: 0;
transition: opacity 0.3s ease;
font-weight: 500;
}

.right-panel:hover .panel-item span {
opacity: 1;
}

.panel-item:hover {
background: rgba(0, 84, 165, 0.1);
color: var(--accent);
}

.panel-trigger {
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
font-size: 0.8rem;
color: var(--primary);
transition: transform 0.4s ease;
}

.right-panel:hover .panel-trigger {
transform: translateY(-50%) rotate(180deg);
left: auto;
right: 10px;
opacity: 0; /* Ẩn đi khi đã mở rộng */
}

/* Ẩn panel trên thiết bị di động nhỏ để tránh che nội dung */
@media (max-width: 480px) {
.right-panel {
display: none;
}
}

/* --- LAYOUT CHÍNH (Đảo Right Task thành Left Task) --- */
.page-wrapper {
display: grid;
/* Cột 1: Sidebar (280px) */
/* Cột 2: Nội dung chính (tối đa ~1000px và căn giữa phần còn lại) */
grid-template-columns: 280px 1fr; 
gap: 30px;

/* Xóa bỏ max-width và margin auto để sát lề */
max-width: 100%; 
margin: 100px 0 60px 0; 
padding: 0; /* Xóa padding 20px nếu muốn sát lề tuyệt đối */
}

.left-sidebar {
position: sticky;
top: 100px;
height: fit-content;
/* Đảm bảo sidebar không có margin trái */
margin-left: 0;

}

.sidebar-nav {
background: var(--white);

overflow: hidden;
box-shadow: var(--card-shadow);
border: 1px solid rgba(0,0,0,0.05);

}

.sidebar-title {
background: var(--primary);
color: white;
padding: 15px 20px;
font-size: 1rem;
font-weight: 700;
text-transform: uppercase;
display: flex;
align-items: center;
gap: 10px;
}

.nav-group {
display: flex;
flex-direction: column;
}

.nav-item {
padding: 12px 20px;
color: var(--text-dark);
text-decoration: none;
font-weight: 500;
font-size: 0.95rem;
border-bottom: 1px solid rgba(0,0,0,0.03);
transition: var(--transition);
display: flex;
justify-content: space-between;
align-items: center;
}

.nav-item:hover {
background: rgba(0, 84, 165, 0.05);
color: var(--primary);
padding-left: 25px;
}

.nav-item.active {
background: rgba(237, 28, 36, 0.08);
color: var(--accent);
border-left: 4px solid var(--accent);
}

/* Nội dung chính bên phải */
.main-content {
display: flex;
flex-direction: column;
gap: 30px;
}

.breadcrumb {
font-size: 0.85rem;
color: #64748b;
margin-bottom: 10px;
}

.page-header {
border-bottom: 2px solid var(--accent);
padding-bottom: 15px;
margin-bottom: 25px;
}

.page-header h1 {
color: var(--primary);
font-size: 1.8rem;
text-transform: uppercase;
font-weight: 800;
}

/* Thẻ Giảng viên (Morph effect) */
.lecturer-card {
background: var(--white);
border-radius: 16px;
padding: 25px;
display: flex;
gap: 25px;
box-shadow: var(--card-shadow);
border: 1px solid rgba(0,0,0,0.02);
opacity: 0;
transform: translateY(40px) scale(0.95);
transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lecturer-card.active {
opacity: 1;
transform: translateY(0) scale(1);
}

.lecturer-img {
width: 140px;
height: 180px;
border-radius: 12px;
overflow: hidden;
flex-shrink: 0;
background: #f1f5f9;
}

.lecturer-img img {
width: 100%;
height: 100%;
object-fit: cover;
}

.lecturer-info {
flex-grow: 1;
}

.lecturer-rank {
background: var(--accent);
color: white;
padding: 2px 12px;
font-size: 0.75rem;
font-weight: 700;
border-radius: 4px;
text-transform: uppercase;
display: inline-block;
margin-bottom: 10px;
}

.lecturer-name {
font-size: 1.4rem;
color: var(--primary);
margin-bottom: 15px;
font-weight: 700;
}

.info-row {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
font-size: 0.95rem;
}

.info-row i {
color: var(--primary);
width: 20px;
text-align: center;
}
/* ========================================================
CSS CHO HIỆU ỨNG NỀN MỜ XANH (HERO SECTION)
/* Hiệu ứng hover cho lecturer-card nằm trên nền hero */
.main-content-hero .training-fields .lecturer-card.active:hover {
background-color: white !important; /* Trả về nền trắng hoàn toàn */
color: var(--primary) !important;
border: 1px solid var(--primary);
box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Đảm bảo chữ trong card vàstrenghts có màu dễ đọc (đã xử lý inline, nhưng vẫn thêm ở đây) */
.main-content-hero .intro-section p,
.main-content-hero .training-fields .lecturer-card p,
.main-content-hero .strengths ul li {
color: var(--text-dark);
}


/* ===== DARK MODE TINH CHỈNH ===== */
[data-theme="dark"] .chatbot-container {
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .chatbot-messages {
    background: rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] .msg-bot .msg-bubble {
    background: rgba(255,255,255,0.1);
}

[data-theme="dark"] .chatbot-input-area {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.chatbot-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0081ff);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    touch-action: none;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    max-width: calc(100vw - 50px);
    height: 500px;
    max-height: calc(100vh - 150px);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 10001;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-container.open {
    display: flex;
    animation: slideInUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: default;
}

#chatbotClose {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

#chatbotClose:hover {
    background: rgba(255,255,255,0.4);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 14px;
    max-width: 85%;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg-bot {
    align-self: flex-start;
}

.msg-bot .msg-bubble {
    background: #e2e8f0;
    color: #1e293b;
    border-bottom-left-radius: 2px;
}

.msg-user {
    align-self: flex-end;
}

.msg-user .msg-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
}

#chatbotSuggestions {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: white;
    border-top: 1px solid #f1f5f9;
}

#chatbotSuggestions button {
    padding: 6px 14px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}

#chatbotSuggestions button:hover {
    background: var(--primary);
    color: white;
}

.chatbot-input-area {
    padding: 12px 15px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
}

.chatbot-input-area input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.chatbot-input-area input:focus {
    border-color: var(--primary);
}

.chatbot-input-area button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.chatbot-input-area button:hover {
    background: #004485;
}
/* ================================================== */
 /* css chung cua folder giới thiệu */
 /* ================================================== */
.page-wrapper {
    display: grid;
    grid-template-columns: 230px 1fr;
    /* Thay 70px bằng tổng chiều cao thực tế của Topbar + Menu */
    min-height: calc(100vh - 160px); 
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
}

/* --- HUIT HERO SECTION --- */
.huit-hero-section {
    position: relative;
    padding: 40px;
    background-color: #0054a5;
    background-image: linear-gradient(rgba(0, 84, 165, 0.92), rgba(0, 41, 82, 0.92)), 
                        url('https://huit.edu.vn/images/slide/hufi-2020-6.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
}

.bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.huit-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- BREADCRUMB & HEADER --- */
.huit-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}
.huit-breadcrumb a { color: white; text-decoration: none; }
.huit-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

/* --- VISION & MISSION CARDS --- */
.huit-main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 50px;
}

.content-card {
    background: white;
    border-radius: 18px;
    padding: 0; /* Đổi thành 0 để xử lý layout ảnh tràn viền nếu cần */
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    color: #333;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Bố cục 2 cột cho card */
.card-flex {
    display: flex;
    align-items: stretch;
}

.card-text {
    flex: 1;
    padding: 35px;
}

.card-image {
    width: 40%;
    min-height: 250px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.placeholder-text {
    position: absolute;
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.section-icon {
    font-size: 2.5rem;
    color: #0054a5;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.8rem;
    color: #0054a5;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    text-align: justify;
}

.highlight-box {
    background: var(--primary);
    border-left: 5px solid #ed1c24;
    padding: 20px;
    margin-top: 25px;
    border-radius: 0 12px 12px 0;
}

/* --- CORE VALUES GRID --- */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.value-item i {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 10px;
    display: block;
}

.value-item h4 {
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

/* --- SIDEBAR INFO --- */
.huit-side-info .info-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #ed1c24;
}

.info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;

}

/* --- NEWS SIDEBAR STYLES --- */
.news-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
    transition: 0.2s;
    color: var(--primary);
}
.news-item:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.news-thumb {
    width: 70px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-info h4 {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

}
.news-date {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 4px;
    display: block;
}

/* --- RESPONSIVE SIDEBAR --- */
@media (max-width: 992px) {
    .page-wrapper {
        grid-template-columns: 1fr; /* Chuyển về 1 cột trên mobile */
    }

    .left-sidebar {
        position: fixed;
        left: -280px; /* Ẩn ra khỏi màn hình */
        top: 0;
        bottom: 0;
        width: 280px;
    }

    .left-sidebar.active {
        left: 0; /* Hiện ra khi có class active */
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    }
}
