/* ================================================================
    1. GLOBAL SETTINGS & VARIABLES
================================================================ */
:root {
    --mmtu-blue: #002147;          /* Midnight Blue */
    --mmtu-apply-blue: #0056b3;   /* Primary Action Blue */
    --mmtu-hover-blue: #003d80;   /* Hover Action Blue */
    --mmtu-gold: #ffc107;         /* Contrast Gold */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* ================================================================
    2. HEADER & NAVIGATION
================================================================ */
.top-bar {
    background-color: var(--mmtu-blue);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px); /* This creates the frosted glass look */
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.btn-apply {
    background-color: var(--mmtu-apply-blue) !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background-color: var(--mmtu-hover-blue) !important;
    transform: translateY(-2px);
}

/* ================================================================
    3. FULL-WIDTH HERO SECTION
================================================================ */
.hero-section {
    position: relative;
    width: 100%;           /* Ensure it takes full width */
    height: 70vh;          /* Adjust height as needed */
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    margin: 0;             /* Remove margins to touch ends */
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    /* Slideshow Animation */
    animation: hero-zoom-fade 21s infinite ease-in-out;
}

@keyframes hero-zoom-fade {
    0%, 100% {
        background-image: linear-gradient(rgba(0,33,71,0.7), rgba(0,33,71,0.5)), url('images/GreatHall.jpeg');
        transform: scale(1);
    }
    33% {
        background-image: linear-gradient(rgba(0,33,71,0.7), rgba(0,33,71,0.5)), url('https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?auto=format&fit=crop&w=1500&q=80');
        transform: scale(1.1);
    }
    66% {
        background-image: linear-gradient(rgba(0,33,71,0.7), rgba(0,33,71,0.5)), url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1500&q=80');
        transform: scale(1);
    }
}

/* --- UPDATED REVEAL ANIMATION (Continuous Scroll Support) --- */

/* Initial state: Hidden and positioned way down (150px) */
.hero-heading, .hero-subtext, .hero-btn {
    opacity: 0;
    transform: translateY(150px); 
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s ease-out;
    will-change: transform, opacity;
}

/* Staggered delays */
.hero-subtext { transition-delay: 0.15s; }
.hero-btn { transition-delay: 0.3s; }

/* Visible state */
.hero-heading.visible, 
.hero-subtext.visible, 
.hero-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
    5. INTERACTIVE COMPONENTS (Dock & Search)
================================================================ */

.floating-dock {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dock-item {
    width: 50px;
    height: 50px;
    background: #002147;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
}

.dock-item:hover {
    width: 160px;
    border-radius: 30px;
    background: #00a8e8;
    color: white;
}

.dock-item i { font-size: 1.2rem; }

.dock-label {
    display: none;
    margin-left: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.dock-item:hover .dock-label { display: inline; }

#searchOverlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 33, 71, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 50px 0;
}

.search-container { width: 85%; max-width: 900px; text-align: center; }

.search-input-lg {
    background: transparent;
    border: none;
    border-bottom: 3px solid #00a8e8;
    color: white;
    font-size: 2.5rem;
    width: 100%;
    outline: none;
    padding: 10px;
    margin-bottom: 30px;
}

.search-input-lg::placeholder { color: rgba(255,255,255,0.4); }

.nav-item.dropdown:hover .mega-menu { display: block; }

.mega-menu {
    display: none;
    position: absolute;
    width: 800px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 25px;
    border-top: 4px solid #00a8e8;
}

.finder-card {
    background: white;
    border-radius: 15px;
    transition: transform 0.3s;
}

.finder-card:hover { transform: translateY(-5px); }

.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift:hover {
    transform: translateY(-10px);
    transition: 0.3s;
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 168, 232, 0.1);
    border-radius: 12px;
}

.blink-dot {
    height: 8px;
    width: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.notice-badge {
    background: #fff0f0;
    color: #d63031;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.search-result-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
}

.search-result-card:hover {
    background: #00a8e8;
    transform: scale(1.02);
}

/* ================================================================
    4. ADMISSIONS PAGE (Step System)
================================================================ */
.admission-page {
    background-color: var(--mmtu-apply-blue);
    background-image: linear-gradient(180deg, var(--mmtu-apply-blue) 0%, var(--mmtu-blue) 100%);
}

.admission-container { 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
    border-radius: 30px; 
    padding: 60px 20px; 
}

.step-card {
    background: white;
    border-radius: 15px;
    border-top: 5px solid #0056b3 !important;
    transition: 0.4s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}

.step-badge { 
    position: absolute; 
    top: -20px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #0056b3; 
    color: #ffffff; 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    font-weight: 800; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

.icon-box { 
    width: 80px; 
    height: 80px; 
    background: #eef5ff; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto; 
}


