/* Thiết lập cơ bản cho body */
body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    overflow: hidden;
    background: transparent; /* Đảm bảo không có nền trắng */
}

/* --- HIỆU ỨNG TINH TÚ --- */
.star {
    position: fixed;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: fade-out 1s forwards;
}

@keyframes fade-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0);
    }
}

/* --- VIDEO NỀN --- */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 1; /* Tăng lên 1 để video sắc nét hơn */
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- THANH HEADER --- */
header {
    background-color: rgba(22, 22, 22, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 2%;
    position: fixed;
    top: 0;
    width: 96%;
    z-index: 100;
    height: 65px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* --- Các phần của Header --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-nav {
    margin-left: 70px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.header-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 40px;
}

/* --- Định dạng chung cho các liên kết --- */
.header-nav a, .login-link {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover, .login-link:hover {
    color: #ffffff;
}
/* Thêm đoạn này vào cuối file styles.css */
.header-nav a {
    position: relative;
}

.header-nav a::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #fff, #fff);
    box-shadow: 0 0 8px 2px #ffffff;
    transition: width 0.3s ease;
}

.header-nav a:hover::before {
    width: 100%;
}


/* Logo bên trái */
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* Icon cá nhân bên phải */
.profile-icon i {
    font-size: 24px;
    vertical-align: middle;
    color: #f0f0f0;
}

/* --- NỘI DUNG CHÍNH --- */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px; /* khoảng cách dưới header */
    height: auto;
}
/* --- ĐỒNG HỒ --- */
.clock-container {
     transform: translateY(-50px); /* Dịch lên 50px */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent; /* Loại bỏ nền trắng */
    margin-bottom: 20px;
}

#clock-time {
    font-size: 56px; /* Tăng từ 48px để đồng hồ cao hơn */
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9); /* Tăng độ đậm để nổi bật hơn */
}

#clock-date {
    font-size: 28px; /* Tăng từ 24px */
    margin: 15px 0; /* Tăng margin từ 10px để tạo khoảng cách */
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

#event-notification {
    font-size: 20px; /* Tăng từ 18px */
    color: #ffcc00;
    margin: 15px 0; /* Tăng margin từ 10px */
    display: none;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}
.news-section {
    position: fixed;
    top: calc(120px + 120px);
    left: 50%;
    transform: translateX(-50%);
    width: 50%; /* thu nhỏ chiều ngang */
    height: calc(100vh - (120px + 120px));
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-top: 2px solid #fff;
    border-radius: 10px; /* bo góc cho đẹp */
    box-sizing: border-box;
}


.news-section h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
}

.news-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-section ul li {
    margin-bottom: 15px;
}

.news-section ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.news-section ul li a:hover {
    color: #ffcc00;
}