/* assets/css/style.css - Bản cập nhật mới nhất */

/* --- 1. BIẾN & CẤU HÌNH CHUNG --- */
:root {
    --vmu-blue-dark: #0054a6;
    --vmu-blue-light: #4aa3df;
    --vmu-red: #da251d;
    --vmu-yellow: #ffcd00;
    --text-color: #333;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    overflow-x: hidden; /* Tránh thanh cuộn ngang */
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* --- 2. THANH MENU (NAVBAR) --- */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Hiệu ứng co giãn mượt */
}

.navbar-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--vmu-blue-dark) !important;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--vmu-red) !important;
}

/* --- 3. CÁC ELEMENT TIỆN ÍCH --- */
/* Nút bấm đỏ đặc trưng */
.btn-vmu-red {
    background-color: var(--vmu-red);
    color: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: bold;
    border: none;
    transition: transform 0.2s;
}

.btn-vmu-red:hover {
    background-color: #b01b15;
    color: #fff;
    transform: translateY(-2px);
}

/* Hiệu ứng bóng và kính */
.text-shadow { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.drop-shadow-white { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); }
.glass-effect { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* --- 4. HERO SECTION (GIAO DIỆN CHÍNH) - PC DEFAULT --- */
.hero-modern {
    position: relative;
    width: 100%;
    height: 100vh;      /* Full màn hình */
    min-height: 700px;
    display: flex;
    align-items: center; /* Căn giữa dọc */
    justify-content: center;
    color: white;
    overflow: hidden;
    margin-top: -80px;  /* Để menu đè lên (trong suốt) */
    padding-top: 80px;  
}

/* Nhóm Logo + Tiêu đề (Trên PC xếp ngang) */
.hero-header-group {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Logo trên PC */
.hero-logo {
    width: 140px;
    height: auto;
    margin-right: 30px;
    transition: transform 0.3s;
}

/* Tiêu đề trên PC */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    text-align: left;
}

/* Bộ đếm ngược */
.countdown-box { min-width: 90px; }
.countdown-number { font-size: 2.5rem; }

/* --- 5. TIMELINE STYLE (ĐÃ FIX LỖI BỊ CẮT SỐ NĂM) --- */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 20px;
    width: 4px; background: #e9ecef; border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 50px; padding-left: 60px; }
.timeline-marker {
    position: absolute; left: 12px; top: 5px; width: 20px; height: 20px;
    border-radius: 50%; background: var(--vmu-blue-dark);
    border: 4px solid #fff; box-shadow: 0 0 0 3px var(--vmu-blue-light); z-index: 1;
}

/* FIX QUAN TRỌNG: Căn giữa số năm và đẩy xuống thấp để không bị cắt */
.year-label {
    position: absolute;
    top: -60px !important; /* Đẩy xuống gần chấm đỏ hơn */
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}
/* Khi thẻ được active */
.milestone-card.active .year-label {
    color: rgba(255,255,255,0.8);
    top: -80px !important;
}

/* --- 6. MEDIA QUERY: TỐI ƯU CHO MOBILE & TABLET (< 992px) --- */
@media (max-width: 991px) {

    /* A. THU NHỎ NAVBAR (Theo ý tưởng của bạn) */
    .navbar {
        padding-top: 5px !important;    /* Giảm đệm */
        padding-bottom: 5px !important;
        min-height: 60px;               /* Menu gọn hơn */
    }
    
    .navbar-brand img {
        height: 35px !important;        /* Logo góc trái nhỏ lại */
        width: auto !important;
    }
    
    .navbar-toggler {
        padding: 4px 8px !important;
        font-size: 1rem !important;
    }

    /* B. HERO SECTION RESPONSIVE */
    .hero-modern {
        height: auto !important;        /* Hủy chiều cao cứng */
        min-height: 100vh !important;
        
        /* Vì Navbar đã nhỏ, chỉ cần đẩy xuống 110px là đẹp */
        padding-top: 160px !important;  
        padding-bottom: 80px !important;

        /* Căn chỉnh lại: Xếp từ trên xuống */
        align-items: flex-start !important; 
        justify-content: flex-start !important;
    }

    /* C. LOGO & TIÊU ĐỀ TRÊN MOBILE */
    .hero-header-group {
        flex-direction: column !important; /* Chuyển sang xếp dọc */
        width: 100%;
        margin-bottom: 15px !important;
    }

    .hero-logo {
        width: 90px !important; /* Logo nhỏ vừa phải */
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        display: block !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
        text-align: center !important;
        width: 100%;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 15px;
    }

    /* D. ĐỒNG HỒ ĐẾM NGƯỢC MOBILE */
    #countdown-area { gap: 8px !important; }
    .countdown-box { min-width: 65px !important; padding: 5px !important; }
    .countdown-number { font-size: 1.4rem !important; }

    /* E. TIMELINE MOBILE */
    .year-label {
        font-size: 4rem !important;
        top: -55px !important;
    }
}

/* --- 7. MEDIA QUERY: MÀN HÌNH RẤT NHỎ (< 400px) --- */
@media (max-width: 400px) {
    .hero-modern { padding-top: 160px !important; }
    .hero-title { font-size: 1.3rem !important; }

}

/* --- 8. CÁC HIỆU ỨNG KHÁC (SLIDE, CARD) --- */
.icon-circle { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.card-hover { transition: transform 0.3s, box-shadow 0.3s; }
.card-hover:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 84, 166, 0.2) !important; }
.card-hover:hover .icon-circle { transform: scale(1.1); }

/* Hiệu ứng Slide mềm mại */
.carousel-fade .carousel-item {
    transition: opacity 2s ease-in-out !important;
}
.carousel-item img {
    transform: scale(1);
    transition: transform 6s linear;
}
.carousel-item.active img {
    transform: scale(1.05); /* Zoom nhẹ */
}