/* ================= THIẾT LẬP CHUNG HỆ THỐNG ================= */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    color: #333;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* ================= PHẦN 1: CSS HEADER & DROPDOWN MENU ================= */
.top-bar {
    background-color: #032b5d; /* Màu xanh đen */
    color: #fff;
    font-size: 11px;
    padding: 8px 15px;
}
.top-bar-content {
    max-width: 1200px;
    word-spacing: 2px;
}

.main-header {
    padding: 15px;
    background-color: #fff;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-img {
    width: 75px;
    height: auto;
}
.uni-name {
    color: #0d47a1;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.dept-name {
    color: red;
    font-size: 18px;
    font-weight: bold;
    margin-top: 3px;
}

/* Định dạng thanh menu chính màu đỏ */
.navigation-bar {
    background-color: #e53935; /* Màu đỏ */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 45px;
    position: relative;
}
.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    height: 100%;
}
.main-menu li {
    position: relative; /* Bắt buộc để làm mốc định vị cho con dropdown-content */
    height: 100%;
}
.menu-item {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    padding: 0 15px;
    height: 100%;
}
.menu-item:hover, .menu-item.active {
    background-color: #b71c1c; /* Đỏ đậm khi hover */
}

/* --- ĐỊNH DẠNG DROPDOWN THEO YÊU CẦU ĐỀ BÀI TRONG ẢNH 1 --- */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none; /* Ẩn menu con mặc định */
    position: absolute;
    background-color: #0d2b5d; /* Màu xanh navy đậm theo hình mẫu */
    min-width: 190px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    top: 45px; /* Đẩy xuống vừa vặn dưới thanh menu đỏ */
    left: 0;
    z-index: 99;
}
.dropdown-content li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dropdown-content a {
    color: #ffeb3b; /* Chữ màu vàng nổi bật */
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: bold;
}
.dropdown-content a:hover {
    background-color: #0a224a;
}
/* Hiển thị dropdown-content ra khi hover chuột qua lớp cha .dropdown */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Ô tìm kiếm góc phải */
.search-box {
    display: flex;
    align-items: center;
}
.search-box input {
    padding: 5px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-right: none;
    outline: none;
    width: 160px;
}
.search-btn {
    background-color: #333;
    color: white;
    border: 1px solid #333;
    padding: 4px 8px;
    cursor: pointer;
}

/* ================= PHẦN 2: CSS KHỐI NỘI DUNG GIỮA ================= */
.hero-banner {
    margin: 15px 0;
    padding: 0 15px;
}
.banner-placeholder {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #90caf9;
    padding: 40px;
    text-align: center;
    border-radius: 4px;
}
.banner-placeholder h2 {
    margin: 0;
    font-size: 32px;
    color: #0d47a1;
    letter-spacing: 2px;
}
.banner-placeholder h3 {
    margin: 5px 0;
    font-size: 20px;
    color: #1565c0;
}
.banner-date {
    display: inline-block;
    margin-top: 10px;
    background-color: #6a1b9a;
    color: white;
    padding: 5px 15px;
    font-size: 13px;
    border-radius: 20px;
}

/* Thanh 3 nút tiện ích lớn màu xanh dương */
.quick-actions-bar {
    background-color: #0b2b5c; /* Nền xanh đậm bọc ngoài */
    padding: 30px 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.action-card {
    background-color: #3b76c4; /* Màu xanh nút con */
    color: white;
    width: 200px;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.action-card:hover {
    transform: translateY(-3px);
}
.action-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}
.action-card p {
    margin: 0;
    font-weight: bold;
    font-size: 15px;
}

/* Bố cục Grid phân chia 2 cột nội dung */
.content-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    padding: 0 15px 30px 15px;
}
.column-title {
    color: #0b2b5c;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid #0b2b5c;
    padding-bottom: 6px;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Các dòng tin tức */
.news-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed #ccc;
}
.tag-yellow {
    background-color: #fff9db;
    border: 1px solid #fab005;
    color: #000;
    font-size: 11px;
    font-weight: bold;
    padding: 8px;
    width: 70px;
    text-align: center;
    border-radius: 4px;
}
.news-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.date-stamp {
    font-size: 11px;
    color: #666;
}
.news-link {
    color: #004fb2;
    text-decoration: none;
    font-weight: bold;
    font-size: 13.5px;
    line-height: 1.4;
}
.news-link:hover {
    text-decoration: underline;
}

/* Khối tiêu điểm bên phải */
.focus-banner {
    color: white;
    font-weight: bold;
    font-size: 13px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.purple-bg {
    background-color: #bc28e6;
}
.black-bg {
    background-color: #000000;
}

/* ================= PHẦN 3: CSS FOOTER & BẢN ĐỒ ================= */
.main-footer {
    background-color: #021a36; /* Xanh navy tối sầm */
    color: #fff;
    margin-top: 25px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    padding: 30px 20px;
}
.footer-info p {
    margin: 8px 0;
    font-size: 13.5px;
    line-height: 1.5;
}
/* Giả lập ô bản đồ định vị trường */
.footer-map {
    border: 1px solid #444;
}
.map-placeholder {
    background-color: #79a1cb;
    height: 120px;
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.map-text {
    font-size: 11px;
    background-color: rgba(255,255,255,0.8);
    color: #333;
    padding: 2px 5px;
    align-self: flex-start;
}
.map-marker {
    background-color: white;
    color: black;
    font-size: 12px;
    font-weight: bold;
    padding: 6px;
    border-radius: 3px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Thanh bản quyền đỏ dưới đáy cùng */
.copyright-bar {
    background-color: #ff0000; /* Màu đỏ tươi */
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 500;
}

/* Định dạng nút liên kết quay lại hệ thống */
.back-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}
.back-link:hover {
    text-decoration: underline;
}