/* Custom Properties for Branding */
:root {
    --primary-color: #0A426E;      /* Deep Medical Blue */
    --secondary-color: #00A896;    /* Healthcare Teal */
    --accent-color: #F2A900;       /* Academic Gold */
    --text-dark: #2D3748;
    --text-muted: #718096;
    --bg-light: #F7FAFC;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }

.section-bg { background-color: var(--bg-light); }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-7 { padding-top: 7rem; }

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #073152;
    border-color: #073152;
}
.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #1a1a1a;
}
.btn-accent:hover {
    background-color: #d99700;
    color: #1a1a1a;
}
.glass-btn {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
}

/* =========================================
   Modern Navbar (Updated Hover Effects)
   ========================================= */
.modern-navbar {
    background: transparent;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-navbar.scrolled {
    background: rgba(10, 66, 110, 0.95);
    backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Main Nav Links - Floating Pill Hover */
.modern-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin: 0 0.3rem;
    padding: 0.5rem 1rem !important; /* Added padding for the background shape */
    border-radius: 8px; /* Rounded pill shape */
    transition: all 0.3s ease;
    position: relative;
}

/* Hover & Active States */
.modern-navbar .nav-link:hover, 
.modern-navbar .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15); /* Soft glass background */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Specific hover color when navbar is scrolled */
.modern-navbar.scrolled .nav-link:hover, 
.modern-navbar.scrolled .nav-link.active {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
}

.custom-toggler { border: none; }
.custom-toggler:focus { box-shadow: none; outline: none; }


/* =========================================
   Dropdown Enhancements & Hover
   ========================================= */
.glass-dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 0.8rem 0;
    min-width: 240px;
    animation: fadeInDown 0.3s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modern-navbar.scrolled .glass-dropdown {
    background: #ffffff !important;
}

/* Dropdown Links - Left Border Slide Hover */
.dropdown-item {
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    margin: 0 0.5rem; /* Keeps hover background inside the dropdown box */
    width: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hidden accent line on the left */
.dropdown-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 15%;
    height: 70%;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

/* On Hover: Shift text, show background, slide in left border */
.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: rgba(10, 66, 110, 0.04);
    color: var(--primary-color);
    padding-left: 2rem; /* Pushes the text gently to the right */
}

.dropdown-item:hover::before {
    left: 0; /* Slides the accent line in */
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 28px;
    transition: color 0.3s ease;
}

/* Enable Desktop Hover Dropdowns */
@media (min-width: 1200px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .navbar .nav-item.dropdown:hover .nav-link.dropdown-toggle::after {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
}

/* Dropdown Animation */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(10,66,110,0.9) 0%, rgba(10,66,110,0.4) 100%);
    z-index: 1;
}
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }
.text-shadow { text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Program Cards */
.program-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(10, 66, 110, 0.1) !important;
}
.program-card .icon-box {
    transition: all 0.4s ease;
}
.program-card:hover .icon-box {
    background-color: var(--primary-color) !important;
}
.program-card:hover .icon-box i {
    color: #fff !important;
}

/* Footer */
.footer {
    background-color: #072a47;
    border-top: 5px solid var(--accent-color);
}
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
.social-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--accent-color);
    color: #1a1a1a;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.mouse {
    width: 30px; height: 50px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}
.wheel {
    width: 4px; height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}
@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}
/* Facilities Cards on Dark Background */
.facility-card {
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.03) !important;
}

.facility-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.facility-card img {
    transition: transform 0.5s ease;
}

.facility-card:hover img {
    transform: scale(1.05);
}

/* Enhancing the badge pulse */
.spinner-grow {
    animation: spinner-grow 1.5s linear infinite;
}
