@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
    --primary-maroon: #5a2420;
    --primary-orange: #d48300;
    --text-dark: #4a4a4a;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --bg-dark: #1c1c1c;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Rubik', sans-serif;
    --heading-color: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: zoom 0.4s ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6,
.serif {
    font-family: var(--heading-font);
    font-weight: 400;
    color: var(--heading-color);
}


a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

/* =============================================================
   Global Loader Styles
   ============================================================= */


.btn-orange {
    background: var(--primary-orange);
    color: white;
}

.btn-orange:hover {
    background: #b87100;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-login-outline {
    background: transparent;
    border: 2px solid var(--primary-maroon);
    color: var(--primary-maroon);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login-outline.dropdown-icon::after {
    display: none;
    /* Removed icon as per user request */
}

.main-header.scrolled .btn-login-outline {
    border-color: white;
    color: white;
}

.main-header.scrolled .btn-login-outline:hover {
    background: white;
    color: var(--primary-maroon);
}

/* Header Section */
.top-bar {
    background: #5A2420;
    /* Dark maroon to match logo */
    color: #ffffff;
    padding: 3px 20px; /* Reduced vertical padding */
    font-size: 0.7rem;
    border-bottom: none; /* Removed border to fix line error gap */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1001;
}

/* Override container for top-bar specifically */
.top-bar .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left-section {
    display: flex;
    align-items: center;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 12px; /* Tighter gap */
    font-family: var(--body-font);
    font-weight: 300;
    /* Made lighter */
    font-size: 0.72rem;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 4px 10px;
    font-weight: 300;
    position: relative;
    -webkit-text-fill-color: inherit;
}

.top-bar-links a:hover,
.top-bar-links a.active {
    font-weight: 600;
    color: #ffffff;
    -webkit-text-fill-color: inherit;
}

@keyframes rainbowWalk {
    to {
        background-position: 200% center;
    }
}

.top-bar-right-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--body-font);
    font-weight: 300;
}

.virtual-tour-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    transition: all 0.3s ease;
}

.virtual-tour-link:hover {
    font-weight: 600;
    color: #ffffff;
}

.icon-360 {
    font-size: 0.75rem;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced spacing */
}

.follow-text {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 5px;
}

.top-bar-socials a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-text-fill-color: inherit;
}

.top-bar-socials a:hover {
    color: #ffffff;
    -webkit-text-fill-color: inherit;
    transform: scale(1.15);
    /* Slightly enlarge icon */
}

.top-bar-divider {
    width: 1px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

@media (max-width: 992px) {
    .top-bar {
        display: none;
    }

    .main-header {
        top: 0;
        height: 80px;
    }

    .nav-container {
        height: 80px;
    }

    .brand-wrapper {
        z-index: 1006;
    }

    .logo img {
        height: 60px;
    }

    .title-main {
        font-size: 1.5rem;
    }

    .title-sub {
        font-size: 0.65rem;
    }

    /* Hide desktop nav */
    #main-nav,
    #nav-right {
        display: none;
    }

    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    /* Mobile Drawer Styles */
    #main-nav.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-maroon);
        z-index: 1004;
        padding: 100px 30px 40px;
        overflow-y: auto;
        animation: slideInLeft 0.4s ease;
    }

    #main-nav.active .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    #main-nav.active .nav-links li a {
        color: white;
        font-size: 1.2rem;
        font-weight: 600;
    }

    #main-nav.active .nav-links li .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 15px;
        box-shadow: none;
        min-width: 100%;
        border: none;
    }

    #main-nav.active .nav-links li .dropdown-menu li a {
        font-size: 1rem;
        padding: 10px 20px;
        color: var(--primary-maroon) !important;
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
        }

        to {
            transform: translateX(0);
        }
    }
}

.main-header {
    background: white;
    padding: 0;
    position: sticky;
    top: 0;
    /* Updated to 0 by default */
    z-index: 1000;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    width: 100%;
    border-bottom: 1px solid #eee;
    /* subtle border */
}



.top-bar-links a:hover,
.top-bar-links a.active {
    font-weight: 600;
    color: #ffffff;
    -webkit-text-fill-color: inherit;
}

@keyframes rainbowWalk {
    to {
        background-position: 200% center;
    }
}

.top-bar-right-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--body-font);
    font-weight: 300;
}

.virtual-tour-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    transition: all 0.3s ease;
}

.virtual-tour-link:hover {
    font-weight: 500;
    color: #ffffff;
}

.icon-360 {
    font-size: 0.75rem;
    font-weight: 500;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced spacing */
}

.follow-text {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 5px;
}

.top-bar-socials a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-text-fill-color: inherit;
}

.top-bar-socials a:hover {
    color: #ffffff;
    -webkit-text-fill-color: inherit;
    transform: scale(1.15);
    /* Slightly enlarge icon */
}

.top-bar-divider {
    width: 1px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

@media (max-width: 992px) {
    .top-bar {
        display: none;
    }

    .main-header {
        top: 0;
        height: 70px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .nav-container {
        height: 70px;
        padding: 0 15px;
    }

    .brand-wrapper {
        z-index: 1006;
    }

    .logo img {
        height: 45px;
    }

    .title-main {
        font-size: 1.2rem;
    }

    .title-sub {
        font-size: 0.55rem;
    }

    /* Hide desktop nav but keep action icons */
    #main-nav {
        display: none;
    }

    #nav-right {
        display: flex;
        gap: 10px;
        align-items: center;
        order: 2;
    }

    #nav-right .btn-orange, 
    #nav-right .btn-login-outline {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Responsive adjustment for "Back to Home" on mobile */
    #nav-right a.btn-orange i {
        margin: 0;
    }
    
    #nav-right a.btn-orange span {
        display: none;
    }

    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #f8f9fa;
        color: var(--primary-maroon);
        font-size: 1.2rem;
        cursor: pointer;
        order: 3;
        margin-left: 5px;
        z-index: 1006;
    }

    /* Mobile Drawer Styles */
    #main-nav.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1005;
        padding: 90px 30px 40px;
        overflow-y: auto;
        animation: slideInDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    #main-nav.active .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    #main-nav.active .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f1f1f1;
        padding-bottom: 10px;
    }

    #main-nav.active .nav-links li a {
        color: var(--primary-maroon);
        font-size: 1.3rem;
        font-weight: 600;
        display: block;
    }

    #main-nav.active .nav-links li .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #fdfdfd;
        margin-top: 10px;
        box-shadow: none;
        padding-left: 20px;
        border-left: 2px solid var(--primary-orange);
    }

    @keyframes slideInDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

.main-header {
    background: white;
    padding: 0;
    position: sticky;
    top: 0;
    /* Updated to 0 by default */
    z-index: 1000;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    width: 100%;
    border-bottom: 1px solid #eee;
    /* subtle border */
}

/* Base style: Hidden on desktop */
.mobile-resource-section {
    display: none !important;
}

.top-bar+.main-header {
    top: 34px;
    /* Offset adjusted to match new top-bar height (28px icon + 6px padding) */
}

.main-header.scrolled .nav-links li a {
    color: white;
}

.main-header.scrolled .nav-links li:hover>a {
    color: var(--primary-orange);
}

.main-header.scrolled .title-main,
.main-header.scrolled .title-sub {
    color: white;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    max-width: none;
    /* Removed max-width to match top bar */
    margin: 0;
    padding: 0 20px;
    /* Matching top bar padding */
    position: relative;
    width: 100%;
}

/* VoiceOS Assistant Styles */
.btn-voice-nav {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: var(--primary-maroon);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1001;
}

.btn-voice-nav:hover {
    background: var(--primary-maroon);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(90, 36, 32, 0.2);
}

.btn-voice-nav.is-listening {
    background: #ff4b2b;
    border-color: #ff416c;
    color: white;
    animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
    0% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 75, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0); }
}

#voice-os-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 2000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.voice-os-hidden {
    transform: translateY(150%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.voice-wave-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.voice-wave-bar {
    width: 3px;
    height: 8px;
    background: linear-gradient(to top, #5a2420, #ff416c);
    border-radius: 10px;
    animation: wavePulse 1s ease-in-out infinite;
}

.voice-wave-bar:nth-child(2) { animation-delay: 0.1s; height: 12px; }
.voice-wave-bar:nth-child(3) { animation-delay: 0.2s; height: 16px; }
.voice-wave-bar:nth-child(4) { animation-delay: 0.3s; height: 12px; }
.voice-wave-bar:nth-child(5) { animation-delay: 0.4s; height: 8px; }

@keyframes wavePulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2); }
}

.voice-os-label {
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-maroon);
    z-index: 1005;
}

.main-header.scrolled .mobile-menu-toggle {
    color: white;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1001;
    flex: 1;
    /* Take up 1/3 of the space */
    justify-content: flex-start;
}

.logo {
    background: transparent;
    /* Removed white background */
    padding: 5px 0;
    /* Reduced padding for height matching */
    border-radius: 0;
    box-shadow: none;
    /* Removed shadow */
    transition: var(--transition);
    top: 0;
    /* Reset top to align with navbar */
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.college-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-main {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-maroon);
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title-sub {
    font-family: var(--heading-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: #333d47; /* Dark blue-grey from image */
    letter-spacing: 0.8px;
    margin-top: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo img {
    height: 85px;
    /* Adjusted height to fit navbar perfectly */
    display: block;
}

.main-header.scrolled .logo {
    top: 5px;
    padding: 5px;
    background: transparent;
    box-shadow: none;
}

.main-header.scrolled .logo img {
    height: 70px;
}

#main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 2;
    /* Take up center space */
}

#nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    /* Take up 1/3 of the space */
}

.nav-links {
    display: flex;
    gap: 45px;
    /* Increased spacing between links */
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    position: relative;
    padding-bottom: 5px;
}

@media (min-width: 769px) {
    .mobile-only-nav {
        display: none !important;
    }
}

.nav-links li a {
    font-weight: 400;
}

.nav-links li:hover>a {
    color: var(--primary-orange);
}

.dropdown-icon::after {
    content: ' ▼';
    font-size: 0.6rem;
    vertical-align: middle;
    transition: transform 0.3s ease;
    display: inline-block;
}

.has-dropdown:hover .dropdown-icon::after {
    transform: rotate(180deg);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 280px;
    padding: 12px 0;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1002;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0 !important;
    margin: 0 !important;
}

.dropdown-menu li a {
    padding: 12px 25px;
    display: block;
    color: var(--primary-maroon) !important;
    font-size: 0.95rem;
    /* Professional size */
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-orange) !important;
    border-left-color: var(--primary-orange);
    padding-left: 30px;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('images/clg\ daytime.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center !important;
    word-spacing: normal !important;
}

/* Character Animation Stabilization */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: charFadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.word-wrapper {
    display: inline-block;
    white-space: nowrap;
    margin: 0 0.1em;
}

@keyframes charFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Stats Box */
.stats-container {
    background: #ffffff;
    max-width: 1308px;
    width: 95%;
    /* Responsive fall-back */
    height: 172px;
    margin: -86px auto 0;
    /* Adjusted to overlap correctly with 172px height */
    padding: 0 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-item:not(:last-child) {
    border-right: 1px solid #eee;
}

.stat-item h2 {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.04em;
    color: #5A2420;
    margin-bottom: 5px;
}

.stat-item p {
    font-weight: 400;
    color: #666;
}

/* Sections General */
section {
    padding: 70px 0;
}

.section-head {
    margin-bottom: 50px;
}

.section-head span {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 500;
}

.section-head h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-top: 10px;
}

.section-head p {
    text-align: left;
}

/* About Section */
.about .container {
    max-width: 1320px;
}

.about-grid {
    display: grid;
    grid-template-columns: 636px 636px;
    gap: 48px;
    align-items: center;
}

.about-img {
    width: 636px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    width: 636px;
    height: 433px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about .section-head {
    margin-bottom: 8px;
}

.about-content .btn {
    width: 236px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 0;
    /* Reset padding to allow fixed dimensions */
}

.about-content p {
    text-align: left;
}

/* Programs Section */
.programs {
    background-color: #F9FAFB;
    padding: 100px 0;
    display: block;
    height: auto;
}

.programs .container {
    max-width: 1200px;
}

.programs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.header-text {
    max-width: 700px;
}

.header-text span {
    display: block;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 500;
}

.header-text p {
    color: #666;
    margin-top: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.serif-style {
    font-family: 'DM Serif Display', serif !important;
    font-size: 2.56rem !important;
    color: #000;
    line-height: 1;
    margin: 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.program-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    background: #f8f9fa;
    transition: transform 0.6s ease;
}

.duration-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.program-info {
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-info h3 {
    font-family: var(--heading-font);
    font-size: 1.44rem;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-weight: 400;
}

.program-info p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
}

.explore-program-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
    font-size: 0.95rem;
}

.explore-program-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.explore-program-link:hover {
    gap: 15px;
}

.explore-program-link:hover i {
    transform: rotate(-45deg);
}

/* Departments Section */
.departments .container {
    max-width: 1260px;
}

.departments .section-head p {
    text-align: center;
}

.dept-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.dept-card {
    background: #fdfdfd;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #eee;
    width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dept-card:hover {
    background: var(--primary-maroon);
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.2);
    border-color: var(--primary-maroon);
    transform: translateY(-5px);
}

.dept-card:hover .dept-icon {
    color: white;
}

.dept-card:hover h3 {
    color: white;
}

.dept-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
    transition: all 0.4s ease;
    filter: brightness(1);
}

.dept-card:hover .dept-icon {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

.dept-card h3 {
    font-size: 1.28rem;
    color: #000;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.4s ease;
}

/* Campus Life Section */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.campus-item {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.campus-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.campus-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
}

.overlay-content {
    transition: transform 0.4s ease;
}

.campus-item h4 {
    font-size: 1.12rem;
    font-family: var(--heading-font);
    font-weight: 400;
    margin-bottom: 0;
    transition: margin-bottom 0.4s ease;
    color: #ffffff;
}

.hover-text {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.hover-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    margin-top: 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

/* Hover States */
.campus-item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.campus-item:hover img {
    transform: scale(1.1);
}

.campus-item:hover .campus-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.campus-item:hover h4 {
    margin-bottom: 0;
}

.campus-item:hover .hover-text {
    opacity: 1;
    max-height: 100px;
}

.campus-item:hover .hover-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Placements Section */
.placements {
    background: radial-gradient(circle at center, #9b1c1c 0%, #2a0505 100%);
    padding: 40px 0;
    margin: 40px 20px;
    border-radius: 40px;
}

.placements-wrapper {
    position: relative;
}

.placement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.placements .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.placements .stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px 15px;
    border-radius: 20px;
    text-align: center;
    color: white;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-10px);
}

.stat-card h2 {
    display: inline-block;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
    color: #ffffff;
}

.stat-card .plus,
.stat-card .prefix {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-card p {
    font-size: 1.0rem;
    opacity: 0.8;
}

/* Recruiters Section */
.recruiters .section-head p {
    text-align: center;
    margin: 15px auto;
}

/* Alumni Section */
.alumni {
    background: #fff;
    padding: 100px 0;
}

.alumni-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.alumni-content p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 20px;
    text-align: left;
}

.alumni-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.alumni-stat-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
}

.alumni-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-orange);
}

.alumni-stat-card h2 {
    display: inline-block;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: -0.04em;
    color: var(--primary-maroon);
    margin-bottom: 5px;
}

.alumni-stat-card .plus {
    font-size: 2rem;
    color: var(--primary-maroon);
    font-weight: 700;
}

.alumni-stat-card p {
    font-weight: 400;
    color: #8c6e6e;
    font-size: 1.1rem;
}

/* Admissions Section */
.admissions {
    background: #fdfdfd;
    padding: 100px 0;
}

.admissions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.admissions-img img {
    border-radius: 30px;
    box-shadow: var(--shadow);
    width: 100%;
}

.admissions-content h2 {
    font-size: 2.4rem;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.admissions-content p {
    font-size: 1.15rem;
    color: #4a3a3a;
    margin-bottom: 40px;
    line-height: 1.7;
    text-align: left;
}

.admissions-btns {
    display: flex;
    gap: 20px;
}

/* Redesigned Footer (Precision Match) */
.main-footer {
    background: #4a0e0e;
    color: white;
    padding: 35px 0;
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
    padding: 20px 0;
    margin-bottom: 30px;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-orange);
    opacity: 1;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: #ffffff;
    color: #4a0e0e;
    transform: scale(1.1);
}

.footer-watermark {
    display: none;
}

.footer-bottom-bar {
    text-align: left;
    margin-top: 40px;
    opacity: 0.8;
    font-size: 0.95rem;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-branding-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-lumen-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: var(--transition);
}

.footer-lumen-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Footer (Legacy Removal) */
footer {
    display: none;
}

.main-footer {
    display: block;
}

/* Responsive */
/* Responsive Design Overrides */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-grid,
    .programs-grid,
    .dept-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-container {
        height: 80px;
        justify-content: space-between;
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: rgba(128, 0, 0, 0.05);
        border-radius: 12px;
        order: 1;
    }

    #main-nav,
    #nav-right {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(128, 0, 0, 1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px;
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1004;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
        display: flex !important;
        /* Force flex instead of display:none */
    }

    #main-nav.active {
        left: 0 !important;
    }

    .brand-wrapper {
        order: 2;
        justify-content: center;
        gap: 10px;
    }

    .title-main {
        font-size: 1.5rem;
    }

    .title-sub {
        font-size: 0.6rem;
        letter-spacing: 0;
    }

    .logo img {
        height: 45px;
    }

    .hero {
        height: auto !important;
        min-height: 90vh;
        padding-top: 120px !important;
        padding-bottom: 80px;
        display: flex;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
        padding: 0 10px;
        white-space: normal;
        word-break: normal;
    }

    /* Prevent char animation from breaking words on mobile */
    .hero-content h1 .char {
        display: inline !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        padding: 0 40px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        margin-top: 0;
        /* Remove negative margin on mobile */
        padding: 40px 20px;
        background: #ffffff;
        border: 1px solid #eee;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        height: auto !important;
    }

    .stat-item h2 {
        font-size: 2.2rem;
    }

    .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    .about-grid,
    .admissions-grid,
    .alumni-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        height: auto !important;
    }

    .programs-grid,
    .dept-grid,
    .stats-grid,
    .campus-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        height: auto !important;
    }

    .about-img,
    .about-content,
    .campus-item,
    .program-card,
    .dept-card {
        height: auto !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    .section-head h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .section-head p {
        margin-top: 5px;
        line-height: 1.5;
    }

    section {
        padding: 60px 0 !important;
    }

    .placement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }

    .stat-card h2 {
        font-size: 2rem !important;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-watermark {
        font-size: 18vw;
    }
}


/* Top Recruiters Section */
.recruiters {
    background-color: var(--bg-light);
    overflow: hidden;
    padding: 100px 0;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee 20s linear infinite;
    padding-left: 20px;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    width: 180px;
    height: 90px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.marquee-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.marquee-item:hover::before {
    left: 100%;
}

.marquee-item img {
    max-width: 80%;
    max-height: 60%;
    filter: grayscale(100%) contrast(0.8);
    opacity: 0.6;
    transition: all 0.4s ease;
    object-fit: contain;
}

.marquee-item:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 20px 40px rgba(128, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-orange);
    z-index: 10;
}

.marquee-item:hover img {
    filter: grayscale(0%) contrast(1);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

/* Responsive adjust for marquee */
@media (max-width: 768px) {
    .marquee-item {
        width: 150px;
        height: 80px;
        padding: 15px;
    }

    .marquee-content {
        animation-duration: 15s;
    }
}

/* Advanced Entrance Animations */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up {
    transform: translateY(40px);
}

.fade-left {
    transform: translateX(40px);
}

.fade-right {
    transform: translateX(-40px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Delay modifiers for staggered effects */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Letter-by-letter animation */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: none;
    /* Let the animation handle it */
    animation: letterReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#hero-title {
    overflow: hidden;
    /* Prevent layout jump */
}

/* Portals Styles */
.portal-hero {
    min-height: 100vh;
    background: linear-gradient(rgba(45, 0, 0, 0.8), rgba(26, 0, 0, 0.9)), url('images/night view.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
}

.portal-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.portal-card h1 {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
}

.portal-card p {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 30px;
}

.portal-form .form-group {
    margin-bottom: 20px;
}

.portal-form label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.portal-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.portal-form input:focus {
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.15);
}

.portal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-orange);
    margin-bottom: 8px;
}

.feature-item span {
    display: block;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .portal-card {
        padding: 30px 20px;
    }
}

/* Campus Life Enhancement Styles */
.tradition-section {
    padding: 100px 0;
    background: #fff;
}

.tradition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.tradition-card {
    display: flex;
    background: #fdfdfd;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.tradition-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.trad-img {
    width: 40%;
    overflow: hidden;
}

.trad-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trad-content {
    width: 60%;
    padding: 30px;
}

.trad-content h3 {
    color: var(--primary-maroon);
    margin-bottom: 10px;
}

/* Voice of Helapuri (Testimonials) */
.story-section {
    padding: 100px 0;
    background: #0a0a0a;
    color: white;
}

.stories-masonry {
    columns: 3 300px;
    gap: 30px;
    margin-top: 50px;
}

.story-card {
    break-inside: avoid;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.story-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-orange);
}

.story-card i {
    color: var(--primary-orange);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
}

.story-card p {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 20px;
}

.student-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-info h4 {
    font-size: 1rem;
    margin: 0;
}

.student-info span {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Innovation Spotlight */
.innovation-section {
    padding: 100px 0;
    background: white;
}

.innovation-banner {
    background: linear-gradient(135deg, var(--primary-maroon), #4a0000);
    padding: 80px;
    border-radius: 50px;
    color: white;
    display: flex;
    align-items: center;
    gap: 60px;
}

.inno-text {
    flex: 1;
}

.inno-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.inno-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.inno-stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-orange);
}

@media (max-width: 1024px) {
    .tradition-grid {
        grid-template-columns: 1fr;
    }

    .innovation-banner {
        flex-direction: column;
        padding: 50px;
        border-radius: 30px;
        text-align: center;
    }

    .inno-stats {
        justify-content: center;
    }
}


/* Campus Life Page Styles */
.cl-hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('images/clear clg image.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.cl-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.green-campus {
    padding: 120px 0;
    background: white;
}

.gc-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.gc-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.gc-icon-item {
    text-align: left;
    padding: 35px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.gc-icon-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-orange);
}

.gc-icon-item i {
    font-size: 2.8rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.gc-icon-item h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.gc-image-wrapper {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.gc-image-wrapper img {
    width: 100%;
    display: block;
    transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gc-image-wrapper:hover img {
    transform: scale(1.08);
}

.facilities-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding-bottom: 100px;
}

.facility-card-v2 {
    position: relative;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.facility-card-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.facility-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
    transition: 0.4s;
}

.facility-card-v2:hover img {
    transform: scale(1.15);
}

.facility-card-v2:hover .facility-overlay {
    background: linear-gradient(to top, var(--primary-maroon), transparent 90%);
}

.facility-overlay h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.facility-overlay p {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s;
    line-height: 1.4;
}

.facility-card-v2:hover .facility-overlay p {
    opacity: 0.9;
    transform: translateY(0);
}

.clubs-section {
    background: #fdfdfd;
    padding: 120px 0;
}

.clubs-flex {
    display: flex;
    gap: 35px;
    overflow-x: auto;
    padding: 30px 10px;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, black 85%, transparent);
}

.club-card {
    min-width: 320px;
    background: white;
    padding: 45px;
    border-radius: 28px;
    border-left: 6px solid var(--primary-maroon);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.club-card:hover {
    transform: translateX(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.club-card i {
    font-size: 3rem;
    color: var(--primary-maroon);
    margin-bottom: 25px;
}

.club-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

@media (max-width: 1200px) {
    .gc-grid {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .facilities-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cl-hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .gc-grid {
        grid-template-columns: 1fr;
    }

    .cl-hero h1 {
        font-size: 2.8rem;
    }

    .facilities-grid-v2 {
        grid-template-columns: 1fr;
    }

    .gc-icons {
        grid-template-columns: 1fr;
    }
}

/* Student Portal Dashboard Styles */
.portal-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: radial-gradient(circle at top right, rgba(128, 0, 0, 0.15), transparent),
        radial-gradient(circle at bottom left, rgba(230, 81, 0, 0.1), transparent);
}

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    overflow: hidden;
    min-height: 700px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
}

/* Sidebar */
.dashboard-sidebar {
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
}

.student-profile-mini {
    text-align: center;
    margin-bottom: 40px;
}

.student-profile-mini .avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--maroon), var(--orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 15px;
    color: white;
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.3);
}

.student-profile-mini h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 4px;
}

.student-profile-mini p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-nav a {
    padding: 14px 20px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dash-nav a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dash-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dash-nav a.active {
    background: var(--maroon);
    color: white;
}

.dash-nav a.logout-link {
    margin-top: auto;
    color: #ff5252;
}

.dash-nav a.logout-link:hover {
    background: rgba(255, 82, 82, 0.1);
}

/* Content Area */
.dashboard-content {
    padding: 40px;
    overflow-y: auto;
    max-height: 800px;
}

.dash-section {
    animation: fadeIn 0.5s ease-out;
}

.welcome-banner {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.3), rgba(230, 81, 0, 0.2));
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.welcome-banner h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
}

.welcome-banner p {
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-content .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-content .stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.attendance {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.stat-icon.gpa {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.stat-icon.fees {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
}

.dashboard-card h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.2rem;
}

.notice-list {
    list-style: none;
    padding: 0;
}

.notice-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item .date {
    font-size: 0.8rem;
    color: var(--orange);
    background: rgba(230, 81, 0, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.notice-item .title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Tables */
.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: left;
    padding: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-table td {
    padding: 15px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.dash-table .percent-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.dash-table .percent-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--maroon);
}

/* Fee Row */
.fee-item-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.7);
}

.fee-item-row.divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding-top: 20px;
    color: white;
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Dashboard */
@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        flex-direction: row;
        align-items: center;
        padding: 20px;
        overflow-x: auto;
    }

    .student-profile-mini {
        margin-bottom: 0;
        margin-right: 30px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    .student-profile-mini .avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0;
    }

    .dash-nav {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .placements .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .dashboard-content {
        padding: 20px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white !important;
}

.whatsapp-tooltip {
    position: absolute;
    left: 75px;
    background: #4a4a4a;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #4a4a4a transparent transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    left: 80px;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* Final Scroll Header Fix */
.main-header.scrolled {
    background: #5a2420 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-bottom: none;
}

/* =============================================================
   MOBILE RESPONSIVE CODE START
   ============================================================= */

/* Global Mobile Fixes */
@media (max-width: 1024px) {
    * { box-sizing: border-box; }
    img { max-width: 100%; height: auto; }
    body { overflow-x: hidden; width: 100%; position: relative; }
    
    .container {
        padding: 0 20px;
        width: 100%;
    }

    /* Responsive Typography */
    h1, #hero-title { 
        font-size: clamp(28px, 7vw, 42px) !important; 
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
    h2 { font-size: clamp(24px, 6vw, 32px) !important; }
    h3 { font-size: clamp(20px, 5vw, 28px) !important; }
    p { font-size: clamp(15px, 4vw, 18px) !important; }

    /* Navigation - Tablet Specific adjustments */
    .top-bar { display: none; }
    .main-header { top: 0 !important; }
}

@media (max-width: 992px) {
    /* Mobile Navigation Logic */
    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
    }

    #main-nav {
        display: none !important;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: #ffffff;
        z-index: 9999;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px;
        transition: all 0.4s ease-in-out;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }

    #main-nav.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        left: 0 !important;
    }

    .nav-links {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        margin: 0 !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li a {
        color: #333 !important;
        font-size: 1.1rem !important;
        display: block;
        width: 100%;
    }

    /* Handle Dropdowns for Mobile */
    .has-dropdown.active > .dropdown-menu {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #f9f9f9 !important;
        box-shadow: none !important;
        padding-left: 20px !important;
        margin-top: 10px !important;
        border-left: 2px solid var(--primary-orange) !important;
    }

    .dropdown-menu li a {
        color: #666 !important;
        font-size: 1rem !important;
        padding: 12px 25px !important;
        display: block !important;
        width: 100%;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    /* Mobile Quick Links (Cloned from top-bar) - Shown only on mobile */
    .mobile-resource-section {
        display: block !important;
        margin-top: 25px !important;
        padding-top: 20px !important;
        border-top: 2px solid #f0f0f0 !important;
        border-bottom: none !important;
        width: 100%;
        background: #fafafa;
        border-radius: 12px;
        padding: 20px !important;
    }

    .mobile-resource-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--primary-maroon);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 20px;
        opacity: 0.7;
    }

    .mobile-resource-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .mobile-resource-grid a {
        font-size: 0.95rem !important;
        color: #555 !important;
        padding: 5px 0 !important;
        border-bottom: none !important;
        font-weight: 500 !important;
    }
    
    .mobile-resource-grid a:hover {
        color: var(--primary-orange) !important;
    }

    #nav-right {
        display: flex !important;
        order: 2;
        margin-left: auto;
        gap: 10px;
    }

    #nav-right .btn-login-outline,
    #nav-right .btn-orange {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 768px) {
    /* HERO FIX */
    #hero-title br { 
        display: none; 
    }
    #hero-title {
        font-size: clamp(24px, 8vw, 36px) !important;
        white-space: normal !important;
        word-break: normal !important;
        hyphens: none !important;
        line-height: 1.3 !important;
        text-align: center !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    /* MOBILE NAV FIX */
    .mobile-menu-toggle {
        display: block !important;
        position: relative;
        z-index: 1001;
        margin-right: 15px;
    }

    #main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        transition: 0.3s ease;
        z-index: 999;
    }
    #main-nav.active {
        display: flex;
        left: 0;
    }

    section { padding: 50px 0 !important; }

    /* Hero Section */
    .hero {
        height: auto !important;
        min-height: 70vh !important;
        padding: 100px 0 60px !important;
        text-align: center !important;
    }

    .hero-content {
        text-align: center !important;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Grid & Layout Conversion */
    .stats-container {
        grid-template-columns: 1fr !important;
        height: auto !important;
        margin-top: -50px !important;
        padding: 30px !important;
        gap: 20px;
    }

    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px !important;
    }

    .stat-item:last-child {
        border-bottom: none !important;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .about-img, .about-content {
        width: 100% !important;
        height: auto !important;
    }

    .programs-grid {
        grid-template-columns: 1fr !important;
    }

    .programs-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px;
    }

    .dept-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .dept-card {
        width: 100% !important;
        padding: 30px 15px !important;
    }

    .campus-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .campus-item {
        height: 250px !important;
    }

    .placements .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .placement-header {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
    }

    .alumni-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .alumni-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .admissions-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Touch UI & Buttons */
    .btn {
        padding: 14px 25px !important;
        font-size: 1rem !important;
    }

    /* Footer */
    .footer-top {
        flex-direction: column !important;
        text-align: center !important;
        gap: 30px !important;
    }

    .footer-nav {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .footer-socials {
        justify-content: center !important;
    }
}

@media (max-width: 580px) {
    .dept-grid, .campus-grid, .placements .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem !important; }
    
    .brand-wrapper { gap: 10px !important; }
    .title-main { font-size: 1.2rem !important; }
    .title-sub { font-size: 0.65rem !important; letter-spacing: 0.5px !important; }
    .logo img { height: 40px !important; }

    #nav-right .btn-orange { display: none; } /* Hide extra CTA button on very small mobile */
}

/* Fix for horizontal scroll issues */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* MOBILE RESPONSIVE CODE END */

/* Ensure hero headings are clearly visible (White) */
.location-hero h1,
.exam-hero h1,
.cl-hero h1,
.placements-hero h1,
.dept-hero h1,
.dept-hero span,
.about-hero h1,
#hero-title {
    color: #ffffff !important;
    text-align: center !important;
    word-spacing: normal !important;
}

/* Voice Assistant Toggle UI */
.voice-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    width: 100%;
}

.voice-toggle-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.voice-assistant-footer {
    display: flex;
    order: -1; /* Place before other footer items */
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
}

/* The switch - the box around the slider */
.voice-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

/* Hide default HTML checkbox */
.voice-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.voice-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.voice-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .voice-slider {
    background-color: var(--primary-orange);
}

input:checked + .voice-slider:before {
    transform: translateX(22px);
}

/* Rounded sliders */
.voice-slider.voice-round {
    border-radius: 34px;
}

.voice-slider.voice-round:before {
    border-radius: 50%;
}

.btn-voice-nav { display: none !important; } /* Site-wide suppression of old button */