*::-webkit-scrollbar { width: 0; height: 0; border: 1px solid #d5d5d5; }
*::-webkit-scrollbar-track { border-radius: 5; background: #eee; }
*::-webkit-scrollbar-thumb { border-radius: 5px; background: #466393; }

body, html {
    width: 100%;
    top: 0 !important;
    font-family: 'Lato', sans-serif !important;
    height: auto !important;
    overflow-x: hidden;
    background: #fff;
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.loader-logo {
    width: 80px;
}

/* Top Bar */
#topbar {
    padding: 6px 0;
    font-size: 14px;
}
.campus-links a { font-size: 13px; }
.campus-links a:hover { background: rgba(255,255,255,0.1); }

/* Header */
.app-header {
    background: #fff;
    position: relative;
    z-index: 100;
}
.app-header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s;
    z-index: 999;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.logo-img { height: 65px; }
.logo-sm { height: 45px; }
.uni-title { font-size: clamp(1.3rem, 1.5vw, 1.6rem); margin: 0; }
.uni-subtitle { font-size: clamp(0.8rem, 0.87vw, 1rem); color: #555; }
.uni-info { font-size: clamp(0.8rem, 0.7vw, 1rem); font-weight: 700; margin: 0; }
.uni-title-sm { font-size: clamp(1rem, 0.8vw, 1.1rem); margin: 0; }
.search-icon { width: 50px; }
.search-btn { cursor: pointer; }

/* Navigation */
.nav-wrapper { border-top: 1px solid #eee; }
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}
.nav-menu > .menu-item {
    position: relative;
}
.nav-menu > .menu-item > .menu-link {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s;
}
.nav-menu > .menu-item > .menu-link:hover,
.nav-menu > .menu-item:hover > .menu-link {
    color: var(--bs-danger, #dc3545);
}

/* Megamenu */
.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 1000;
    min-width: 600px;
}
.megamenu-about { min-width: 850px; }
.megamenu-admin { min-width: 700px; }
.menu-item:hover > .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.megamenu a { color: #333; transition: color 0.2s; }
.megamenu a:hover { color: var(--bs-danger, #dc3545) !important; }
.text-hover-danger:hover { color: var(--bs-danger, #dc3545) !important; }

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    min-width: 250px;
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 1000;
}
.menu-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu li { position: relative; }
.submenu li a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}
.submenu li a:hover { color: var(--bs-danger, #dc3545); background: #f8f9fa; }
.submenu .submenu {
    top: 0;
    left: 100%;
    transform: translateX(10px);
}
.submenu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Progress bar */
#progress-bar {
    height: 2px;
    width: 0%;
    background: var(--bs-danger, #dc3545);
    transition: width 0.3s;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Updates */
.updates-bar {
    display: flex;
    align-items: center;
    background: #f8f9fa;
}
.updates-label {
    background: var(--bs-danger, #dc3545);
    color: #fff;
    padding: 6px 16px;
    font-weight: 600;
    white-space: nowrap;
}
.updates-bar marquee { height: 40px; display: flex; align-items: center; }
.updates-bar a { text-decoration: none; }
.new-gif { height: 18px; }

/* Swiper Hero */
.swiper { width: 100%; height: 400px; border-radius: 8px; overflow: hidden; }
.swiper-slide { position: relative; }
.slide-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0,0,0,0.3);
    padding: 10px;
}
.swiper-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--bs-danger, #dc3545);
    z-index: 10;
    width: 0;
    transition: width linear;
}
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 0;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 20px; }

/* News Card */
.news-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.news-list { max-height: 345px; overflow-y: auto; }
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.news-item:last-child { border-bottom: none; }
.bullet {
    min-width: 12px;
    height: 50px;
    border-radius: 3px;
    flex-shrink: 0;
}
.bullet-danger { background: var(--bs-danger, #dc3545); }
.bullet-info { background: var(--bs-info, #0dcaf0); }
.bullet-warning { background: var(--bs-warning, #ffc107); }
.bullet-primary { background: var(--bs-primary, #0d6efd); }
.bullet-success { background: var(--bs-success, #198754); }
.news-content { flex-grow: 1; }
.news-date { font-weight: 600; font-size: 15px; display: block; }
.news-date small { font-weight: 400; font-size: 12px; color: #999; }
.news-title {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-title:hover { color: var(--bs-danger, #dc3545); }

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}
.title-bullet {
    display: inline-block;
    width: 5px;
    height: 30px;
    background: var(--bs-danger, #dc3545);
    border-radius: 3px;
}

/* Chancellor Message */
.chancellor-msg p {
    line-height: 30px;
    text-indent: 0.7cm;
    text-align: justify;
    font-size: 16px;
}

/* Announcements Card */
.announcements-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.announcements-list .announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}
.announcements-list .announcement-item:last-child { border-bottom: none; }

/* Statistics Section */
.stats-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://placehold.co/1920x600/333/555?text=Banner') no-repeat center center;
    background-size: cover;
}
.stat-number {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    color: #fff;
}
.stat-label {
    font-size: 1.5rem;
    color: #aaa;
    font-weight: 600;
}

/* Campus Cards */
.campus-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}
.campus-card:hover { transform: scale(1.02); }
.campus-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}
.campus-card:hover .campus-overlay { opacity: 1; }
.campus-overlay h3 { color: #fff; font-size: 1.3rem; }

/* Social Bar */
.social-bar { background: rgba(0,0,0,0.05); }
.btn-light-facebook { background: #3b5998; color: #fff; }
.btn-light-twitter { background: #1da1f2; color: #fff; }
.btn-light-instagram { background: #e4405f; color: #fff; }
.btn-light-youtube { background: #ff0000; color: #fff; }
.btn-light-linkedin { background: #0077b5; color: #fff; }
.btn-light-facebook, .btn-light-twitter, .btn-light-instagram, .btn-light-youtube, .btn-light-linkedin {
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 0 2px;
    font-size: 14px;
}

/* Footer */
.footer { background: #000 !important; }
.footer-logo { height: 65px; }
.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    margin-right: 8px;
}
.footer-links a:not(:last-child)::after {
    content: "|";
    margin-left: 8px;
    color: #555;
}
.footer-links a:hover { color: #fff; }
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li { margin-bottom: 8px; }
.footer-menu li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.footer-menu li a:hover { color: #fff; margin-left: 5px; }

/* Copyright */
.copyright { background: rgba(0,0,0,0.9); }
.copyright p { color: #ccc; font-size: 14px; }
.copyright a { text-decoration: none; }

/* Back to Top */
.progress-wrap {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(220, 53, 69, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.progress-wrap i {
    position: absolute;
    font-size: 20px;
    color: var(--bs-danger, #dc3545);
    z-index: 1;
}
.progress-wrap svg path {
    fill: none;
    stroke: var(--bs-danger, #dc3545);
    stroke-width: 4;
}

/* Mobile Menu */
@media (max-width: 991.98px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-menu.open { display: flex; }
    .nav-menu > .menu-item > .menu-link { padding: 10px 16px; border-bottom: 1px solid #eee; }
    .megamenu, .submenu {
        position: static !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        min-width: auto !important;
        display: none;
        padding-left: 16px;
    }
    .menu-item.open > .megamenu,
    .menu-item.open > .submenu { display: block; }
    .megamenu-about { min-width: auto; }
    .megamenu-admin { min-width: auto; }
    .submenu .submenu { padding-left: 16px; }
    .swiper { height: 250px; }
    .logo-img { height: 45px; }
    .logo-sm { height: 35px; }
    .search-icon { width: 35px; }
}

@media (max-width: 575.98px) {
    .swiper { height: 200px; }
    .logo-img { height: 35px; }
}