/* =========================================
   1. CSS Variables & Reset
========================================= */
:root {
    --primary-blue: #1c466d;
    --dark-blue: #102e4a;
    --accent-yellow: #ffc107;
    --text-dark: #333333;
    --text-light: #555555;
    --bg-light: #f4f7f9;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition-smooth: all 0.3s ease-in-out;
}

* {
    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);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.bg-light { background-color: #eef3f7; }
.mt-4 { margin-top: 25px; }

/* =========================================
   2. Top Mobile Info Bar & Contact Header
========================================= */
/* Mobile Info Bar - Only visible on small screens */
.mobile-top-bar-toggle {
    display: none;
    background: var(--dark-blue);
    color: var(--accent-yellow);
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* Header Contact Info */
.top-header { 
    background: var(--bg-white); 
    padding: 15px 0; 
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.4s ease;
}

.top-header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 20px; 
}

.brand-section { display: flex; align-items: center; gap: 15px; }
.brand-logo { height: 65px; border-radius: 5px; }
.brand-text h1 { font-size: 1.25rem; color: var(--primary-blue); line-height: 1.2; }
.brand-text p { font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }

.header-contact-info { display: flex; gap: 30px; transition: all 0.4s ease;}
.info-box { display: flex; align-items: center; gap: 12px; }
.info-box i { font-size: 1.8rem; color: var(--primary-blue); }
.info-box div { display: flex; flex-direction: column; }
.info-box strong { font-size: 0.9rem; color: var(--text-dark); }
.info-box span { font-size: 0.8rem; color: var(--text-light); }

/* =========================================
   3. Main Navigation (Glass Effect)
========================================= */
.main-nav {
    background: rgba(28, 70, 109, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.nav-menu-wrapper { display: flex; justify-content: space-between; width: 100%; align-items: center; }

/* Sidebar Header (Mobile Only) */
.sidebar-header-mobile { display: none; }

.nav-menu { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.nav-menu li { position: relative; }
.nav-menu li a {
    display: block;
    padding: 16px 14px;
    color: var(--bg-white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-menu li a:hover, .nav-menu li a.active { color: var(--accent-yellow); background: rgba(255, 255, 255, 0.1); }
.nav-menu li a.text-yellow { color: var(--accent-yellow); }

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    border-top: 3px solid var(--accent-yellow);
    z-index: 999;
}

.dropdown-menu.right-align { left: auto; right: 0; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Smooth Dropdown Opening fix for script/click trigger on mobile */
.dropdown.active-drop .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-menu li a {
    color: var(--text-dark);
    padding: 12px 20px;
    text-transform: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu li a:hover { color: var(--primary-blue); background: #f8f9fa; padding-left: 25px; }

/* Mobile Menu Toggle Button */
.menu-toggle { display: none; color: var(--bg-white); font-size: 1.8rem; cursor: pointer; padding: 15px; }

/* =========================================
   4. Notice Bar
========================================= */
.notice-bar { display: flex; background: var(--bg-white); border-bottom: 1px solid #e0e0e0; }
.notice-label {
    background: #1b6343; color: white; padding: 10px 25px; font-weight: bold; display: flex; align-items: center; gap: 10px;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%); min-width: 180px;
}
.pulse-dot { width: 10px; height: 10px; background: var(--accent-yellow); border-radius: 50%; animation: pulse 1.5s infinite; }
.notice-scroll { flex: 1; display: flex; align-items: center; padding: 0 10px; overflow: hidden; }
.notice-item { font-size: 0.95rem; margin-right: 50px; color: var(--text-dark); font-weight: 500; }
.text-yellow-small { color: var(--accent-yellow); font-size: 8px; vertical-align: middle; margin-right: 5px; }

/* =========================================
   5. Hero Auto Slider Section
========================================= */
.hero-slider { position: relative; height: 80vh; min-height: 500px; overflow: hidden; }
.slider-container { width: 100%; height: 100%; position: relative; }
.slide {
    width: 100%; height: 100%; background-size: cover; background-position: center;
    position: absolute; top: 0; left: 0;
    opacity: 0; z-index: 0; transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 46, 74, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%); z-index: 2; }
.hero-content { height: 100%; display: flex; align-items: center; position: relative; z-index: 3; }
.glass-panel { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 40px; border-radius: 15px; max-width: 650px; }
.hero-text h1 { color: white; font-size: 3.2rem; line-height: 1.1; margin-bottom: 20px; }
.hero-text h1 span { color: var(--accent-yellow); }
.hero-text p { color: #e0e0e0; font-size: 1.1rem; border-left: 3px solid var(--accent-yellow); padding-left: 15px; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; }

.slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2);
    color: white; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    z-index: 5; font-size: 1.2rem; backdrop-filter: blur(5px); transition: var(--transition-smooth);
}
.slider-nav:hover { background: rgba(255,255,255,0.5); }
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }
.slider-indicators { position: absolute; bottom: 20px; width: 100%; text-align: center; z-index: 5; }
.dot { display: inline-block; width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; margin: 0 5px; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--accent-yellow); transform: scale(1.3); }

/* =========================================
   6. Buttons & Badges
========================================= */
.btn { padding: 12px 25px; border-radius: 30px; font-weight: bold; display: inline-block; }
.btn-yellow { background: var(--accent-yellow); color: #111; }
.btn-yellow:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4); }
.btn-outline-white { background: transparent; color: white; border: 2px solid white; }
.btn-outline-white:hover { background: white; color: var(--primary-blue); }
.btn-dark { background: var(--primary-blue); color: white; }
.btn-dark:hover { background: var(--dark-blue); transform: translateY(-3px); }
.btn-yellow-sm { background: var(--accent-yellow); color: #111; padding: 6px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; display: inline-block; }
.sticky-btn {
    position: absolute; top: 20px; right: 20px; background: var(--accent-yellow); color: #111; padding: 10px 25px;
    border-radius: 5px; font-weight: bold; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.2); animation: bounce 2s infinite;
}
.badge-new { background: var(--primary-blue); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; margin-left: 5px; }

/* =========================================
   7. General Section Styles & Glass Cards
========================================= */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { color: var(--primary-blue); font-size: 2.2rem; margin-bottom: 10px; }
.section-title h2 span { color: var(--accent-yellow); }
.section-title p { color: var(--text-light); }
.inline-title { margin-bottom: 30px; border-bottom: 2px solid #ddd; padding-bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; }
.inline-title h2 { color: var(--primary-blue); font-size: 1.8rem; }
.inline-title h2 span { color: var(--accent-yellow); }
.inline-title a { color: var(--primary-blue); font-weight: bold; font-size: 0.9rem; }
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 30px; box-shadow: var(--glass-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(28, 70, 109, 0.15); }

/* =========================================
   8. Specific Sections
========================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-description p { margin-bottom: 15px; color: var(--text-light); text-align: justify; }
.about-features ul { list-style: none; }
.about-features ul li { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--text-dark); font-weight: 500; }
.about-features ul li i { color: var(--primary-blue); margin-right: 15px; }

.vc-badge { background: #e0e6ed; display: inline-block; padding: 5px 15px; border-radius: 20px; font-weight: bold; color: var(--primary-blue); margin-bottom: 20px;}
.vc-badge span { background: var(--primary-blue); color: white; padding: 2px 10px; border-radius: 15px; font-size: 0.8rem; margin-right: 10px; }
.vc-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 0; align-items: center; }
.vc-profile { position: relative; }
.vc-profile img { width: 100%; height: 350px; object-fit: cover; border-radius: 15px 0 0 15px; }
.vc-info { position: absolute; bottom: 0; width: 100%; background: white; padding: 15px; text-align: center; border-radius: 0 0 0 15px; box-shadow: 0 -5px 10px rgba(0,0,0,0.05); }
.vc-quote { padding: 50px; border-radius: 0 15px 15px 0; position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center;}

.leadership-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; text-align: center; }
.leader-card img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.faculties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.faculty-box { position: relative; overflow: hidden; }
.top-line { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent-yellow); }
.faculty-box h4 { color: var(--primary-blue); margin-bottom: 15px; font-size: 1.15rem; }
.faculty-box ul { list-style: none; }
.faculty-box ul li { color: var(--primary-blue); margin-bottom: 8px; font-size: 0.95rem; font-weight: 500;}

.research-grid, .notice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.research-box, .notice-box { position: relative; padding-left: 35px; }
.left-line { position: absolute; top: 20px; bottom: 20px; left: 0; width: 4px; background: #17a2b8; border-radius: 0 4px 4px 0; }
.left-line-dark { position: absolute; top: 20px; bottom: 20px; left: 0; width: 4px; background: var(--primary-blue); border-radius: 0 4px 4px 0; }
.notice-box .date { font-size: 0.85rem; font-weight: bold; color: var(--primary-blue); margin-bottom: 10px; }
.text-red { color: #dc3545; }

/* =========================================
   9. Professional Footer
========================================= */
.main-footer { background: var(--dark-blue); color: white; padding: 60px 0 0 0; border-top: 5px solid var(--accent-yellow); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--accent-yellow); font-size: 1.2rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: var(--accent-yellow); }
.footer-logo { height: 70px; margin-bottom: 15px; border-radius: 5px; background: white; padding: 5px; }
.about-col p { color: #d1d5db; font-size: 0.95rem; line-height: 1.6; }
.contact-col ul, .links-col ul { list-style: none; }
.contact-col ul li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; color: #d1d5db; font-size: 0.95rem; }
.contact-col ul li i { color: var(--accent-yellow); margin-top: 5px; }
.links-col ul li { margin-bottom: 12px; }
.links-col ul li a { color: #d1d5db; transition: var(--transition-smooth); font-size: 0.95rem; display: flex; align-items: center; gap: 8px;}
.links-col ul li a:hover { color: var(--accent-yellow); padding-left: 5px; }
.footer-bottom { background: #0b1f33; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; color: #9ca3af; }
.developed-by { font-weight: bold; color: #d1d5db; }

/* Floating Elements */
.floating-chat { position: fixed; bottom: 30px; left: 30px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 5px 20px rgba(37,211,102,0.4); cursor: pointer; z-index: 99; transition: var(--transition-smooth); }
.floating-chat:hover { transform: scale(1.1); }
.scroll-top { position: fixed; bottom: 30px; right: 30px; background: var(--accent-yellow); color: var(--text-dark); width: 45px; height: 45px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; z-index: 99; opacity: 0; visibility: hidden; transition: var(--transition-smooth); box-shadow: 0 4px 10px rgba(0,0,0,0.2);}
.scroll-top.show { opacity: 1; visibility: visible; }

/* =========================================
   10. Scroll Animations 
========================================= */
.js-enabled .reveal-fade-up { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.js-enabled .reveal-fade-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.js-enabled .reveal-fade-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.reveal-fade-up.active, .reveal-fade-left.active, .reveal-fade-right.active { opacity: 1 !important; transform: translate(0, 0) !important; }

@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =========================================
   11. Responsive Design & Mobile Fixes
========================================= */

@media (max-width: 991px) {
    /* Top Contact Header hiding & toggle setup */
    .header-contact-info { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        gap: 15px; 
        margin-top: 15px; 
        border-top: 1px solid #eee; 
        padding-top: 15px;
    }
    
    .header-contact-info.show-mobile {
        display: flex;
    }

    .mobile-top-bar-toggle { display: block; }
    
    .brand-section { width: 100%; justify-content: center; text-align: center; }
    
    .menu-toggle { display: block; z-index: 1001; }
    
    /* Mobile Glass Sidebar */
    .glass-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(16, 46, 74, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 20px;
        overflow-y: auto;
        box-shadow: 5px 0 25px rgba(0,0,0,0.5);
        transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 2000;
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    
    .glass-sidebar.active { left: 0; }

    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: var(--accent-yellow);
        font-size: 1.2rem;
        font-weight: bold;
    }

    .sidebar-header-mobile i { cursor: pointer; font-size: 1.5rem; }

    .nav-menu { flex-direction: column; width: 100%; align-items: flex-start; }
    .nav-menu li { width: 100%; }
    
    .secondary-nav { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 15px; padding-top: 15px; }

    .nav-menu li a {
        padding: 14px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    /* Mobile Dropdown (Smooth Expand) */
    .dropdown-menu {
        position: static; 
        width: 100%; 
        opacity: 0; 
        visibility: hidden;
        height: 0;
        transform: none; 
        box-shadow: none; 
        background: rgba(0,0,0,0.25); 
        border-top: none;
        overflow: hidden;
        transition: all 0.4s ease;
    }
    
    .dropdown.active-drop .dropdown-menu { 
        opacity: 1; 
        visibility: visible; 
        height: auto;
        padding-bottom: 10px;
    }

    .dropdown-menu li a {
        color: #d1d5db !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-left: 25px;
        font-size: 0.8rem;
    }
    .dropdown-menu li a:hover {
        color: var(--accent-yellow) !important;
        background: rgba(255,255,255,0.1) !important;
        padding-left: 30px;
    }

    /* Grid Fixes */
    .about-grid, .vc-grid, .footer-grid { grid-template-columns: 1fr; }
    .vc-profile img { border-radius: 15px 15px 0 0; }
    .vc-info { border-radius: 0; position: relative; }
    .vc-quote { border-radius: 0 0 15px 15px; padding: 30px; }
    .footer-bottom-flex { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .sticky-btn { display: none; }
    .slider-nav { display: none; }
    .section-title h2 { font-size: 1.8rem; }
    .inline-title { flex-direction: column; align-items: flex-start; gap: 10px; }
    
    .js-enabled .reveal-fade-up,
    .js-enabled .reveal-fade-left,
    .js-enabled .reveal-fade-right {
        transform: translateY(30px);
    }
}
