/* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #FF8C00;
            --secondary: #228B22;
            --accent: #FF4500;
            --light: #f8f9fa;
            --dark: #2d3748;
            --text: #4a5568;
            --text-light: #718096;
            --white: #ffffff;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
            --transition: all 0.3s ease;
            --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        }

        /* FIX: Ensure html and body cover full viewport */
        html, body {
            width: 100%;
            min-height: 100vh;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            background-color: var(--light);
            -webkit-text-size-adjust: 100%; /* Prevent text zoom on mobile */
        }

        body {
            font-family: 'Lato', sans-serif;
            line-height: 1.6;
            color: var(--text);
            background-color: var(--light);
        }

        section {
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            display: block;
        }

        /* FIX: Hero section needs special handling */
     .hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    /* Height is controlled by content + padding to match your screenshot */
    display: flex;
    align-items: center;
    padding: 140px 0; /* Adjust these numbers to make it taller or shorter */
    overflow: hidden;
    background-color: #1a1a1a;
}

.hero-carousel, .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    background-size: cover;
    background-position: center 20%; /* Focus slightly higher on the building image */
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Darker, more professional overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65); /* Solid dark overlay like the screenshot */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 1200px; /* Standard container width */
    margin: 0 auto;
    padding: 0 40px;
    text-align: left;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-subtitle .highlight {
    color: #f0ad4e; /* Gold/Yellow color for the school name */
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 400;
}

/* --- Buttons to match the Screenshot --- */
.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: #FF8C00; /* The specific orange from the UI */
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: 0.3s;
}

.btn-secondary {
    background-color: #ffffff; /* The white button */
    color: #223;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: 0.3s;
}

.btn-primary:hover { background-color: #4a62e0; }
.btn-secondary:hover { background-color: #f0f0f0; }


        .btn-secondary {
            background-color: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-secondary:hover, .btn-secondary:focus {
            background-color: var(--primary);
            color: var(--white);
            transform: translateY(-2px);
        }

        /* Focus styles for accessibility */
        button:focus, a:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        /* IMPROVED NAVIGATION STYLES - More Stylish */
        .navbar {
            background-color: rgba(255, 255, 255, 0.98);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            border-bottom: 2px solid transparent;
        }

        .navbar.scrolled {
            background-color: rgba(255, 255, 255, 0.98);
            padding: 0;
            box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
            border-bottom: 2px solid var(--primary);
        }

        .navbar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 30px;
            height: 80px;
            transition: height 0.3s ease;
        }

        .navbar.scrolled .container {
            height: 70px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
            transition: transform 0.3s ease;
        }

        .logo:hover {
            transform: translateY(-2px);
        }

        .logo img {
            height: 55px;
            width: auto;
            transition: all 0.3s ease;
            filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
        }

        .navbar.scrolled .logo img {
            height: 50px;
        }

        .logo-text h1 {
            font-size: 1.1rem;
            margin-bottom: 0;
            color: var(--primary);
            line-height: 1.2;
            font-weight: 800;
            letter-spacing: -0.5px;
        }

        .logo-text p {
            font-size: 0.8rem;
            color: var(--text-light);
            margin: 0;
            font-weight: 550;
        }

        .nav-links ul {
            display: flex;
            list-style: none;
            gap: 25px;
        }

        .nav-links li {
            position: relative;
        }

        .nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 10px 0;
    position: relative;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

        .nav-links a:hover {
            color: var(--primary);
            transform: translateY(-2px);
        }

        .nav-links a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::before {
            width: 100%;
        }
 
       

        .active-link a {
            color: var(--primary);
        }

        .active-link a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--gradient);
            border-radius: 2px;
        }

        .dropdown-arrow {
            width: 16px;
            height: 16px;
            margin-left: 5px;
            transition: var(--transition);
        }

        .dropdown:hover .dropdown-arrow {
            transform: rotate(180deg);
        }

        .dropdown-content {
            position: absolute;
            top: calc(100% + 10px);
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.98);
            min-width: 220px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            border-radius: 12px;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 100;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            overflow: hidden;
        }

        .dropdown:hover .dropdown-content {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .dropdown-content::before {
            content: '';
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid rgba(255, 255, 255, 0.98);
        }

        .dropdown-content a {
            display: block;
            padding: 15px 25px;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            width: 100%;
            color: var(--dark);
            font-size: 0.9rem;
            transition: all 0.3s ease;
            text-transform: none;
            letter-spacing: normal;
        }

        .dropdown-content a:last-child {
            border-bottom: none;
        }

        .dropdown-content a:hover {
            background-color: var(--primary);
            color: var(--white);
            padding-left: 30px;
            transform: none;
        }

        .menu-toggle {
            display: none;
            flex-direction: column;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 10px;
            min-height: 44px;
            min-width: 44px;
            justify-content: center;
            align-items: center;
            transition: all 0.3s ease;
            border-radius: 8px;
        }

        .menu-toggle:hover {
            background: rgba(255, 140, 0, 0.1);
        }

        .menu-toggle:active {
            transform: scale(0.95);
        }

        .bar {
            width: 25px;
            height: 3px;
            background-color: var(--primary);
            margin: 3px 0;
            transition: var(--transition);
            border-radius: 2px;
        }

        .menu-toggle.active .bar:nth-child(1) {
            transform: rotate(-45deg) translate(-5px, 6px);
            background-color: var(--accent);
        }

        .menu-toggle.active .bar:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active .bar:nth-child(3) {
            transform: rotate(45deg) translate(-5px, -6px);
            background-color: var(--accent);
        }

        /* Slider Base Styles */
        .slider-container {
            position: relative;
            overflow: hidden;
            margin: 0 auto 40px;
            padding: 0 10px;
        }

        .slider {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            gap: 20px;
            padding: 20px 0;
        }

        .slider-nav {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .arrow {
            background: var(--gradient);
            color: var(--white);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            min-width: 44px;
        }

        .arrow:hover:not(:disabled) {
            transform: scale(1.1);
            box-shadow: var(--shadow-hover);
        }

        .arrow:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .slider-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }

        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ddd;
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .dot.active {
            background: var(--primary);
            transform: scale(1.2);
        }

        .dot:hover {
            border-color: var(--primary);
        }

        /* Departments Section */
        .departments-section {
            padding: 80px 0;
            background-color: var(--light);
        }

        /* Department Cards */
        .department-card {
            flex: 0 0 300px;
            background: var(--white);
            padding: 25px 20px;
            border-radius: 12px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .department-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: var(--transition);
        }

        .department-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
        }

        .department-card:hover::before {
            transform: scaleX(1);
        }

        .department-icon {
            width: 70px;
            height: 70px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: var(--white);
            font-size: 1.8rem;
            transition: var(--transition);
        }

        .department-card:hover .department-icon {
            transform: scale(1.1);
        }

        .department-card h3 {
            color: var(--primary);
            margin-bottom: 12px;
            font-size: 1.2rem;
            min-height: 3em;
            display: flex;
            align-items: center;
            justify-content: center;
            word-wrap: break-word;
            hyphens: auto;
        }

        .department-card p {
            color: var(--text);
            line-height: 1.6;
            margin-bottom: 15px;
            min-height: 4.5em;
        }

        .department-stats {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
            font-size: 0.85rem;
        }

        .department-stats span {
            display: flex;
            align-items: center;
            color: var(--text-light);
        }

        .department-stats i {
            margin-right: 5px;
            color: var(--primary);
        }

        /* Quick Access Section */
        .quick-access-section {
            padding: 80px 0;
            background: var(--light);
        }

        .access-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 25px;
            margin-top: 50px;
        }

        .access-card {
            background: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .access-card:hover {
            border-color: var(--primary);
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .access-card.active {
            border-color: var(--primary);
        }

        .access-header {
            display: flex;
            align-items: center;
            padding: 20px;
            cursor: pointer;
            background: var(--white);
            transition: var(--transition);
        }

        .access-card.active .access-header {
            background: var(--gradient);
            color: var(--white);
        }

        .access-card.active .access-header h3 {
            color: var(--white);
        }

        .access-card.active .access-header .access-icon {
            background: rgba(255, 255, 255, 0.2);
            color: var(--white);
        }

        .access-icon {
            width: 45px;
            height: 45px;
            background: var(--gradient);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: var(--white);
            font-size: 1.1rem;
            transition: var(--transition);
        }

        .access-header h3 {
            flex: 1;
            margin: 0;
            color: var(--primary);
            font-size: 1.2rem;
            transition: var(--transition);
        }

        .toggle-feature {
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            min-width: 44px;
        }

        .access-card.active .toggle-feature {
            color: var(--white);
            transform: rotate(180deg);
            background: rgba(255, 255, 255, 0.2);
        }

        .toggle-feature:hover {
            background: var(--light);
            color: var(--primary);
        }

        .access-card.active .toggle-feature:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .access-content {
            max-height: 0;
            overflow: hidden; /* Keep hidden when collapsed */
            transition: max-height 0.4s ease, padding 0.3s ease;
            padding: 0 20px;
        }

        .access-card.active .access-content {
            max-height: 500px;
            overflow-y: auto; /* Change to auto when expanded */
            padding: 0 20px 20px;
        }


        /* Live Calendar Styles */
        .mini-calendar {
            background: var(--white);
            border-radius: 10px;
            padding: 15px;
            box-shadow: var(--shadow);
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .calendar-nav {
            background: var(--gradient);
            color: var(--white);
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            transition: var(--transition);
            min-height: 44px;
            min-width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .calendar-nav:hover {
            transform: scale(1.1);
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
        }

        .calendar-day-header {
            text-align: center;
            font-weight: bold;
            color: var(--primary);
            padding: 5px;
            font-size: 0.85rem;
        }

        .calendar-day {
            text-align: center;
            padding: 8px;
            border-radius: 5px;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.85rem;
            min-height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .calendar-day:hover {
            background: var(--light);
        }

        .calendar-day.today {
            background: var(--primary);
            color: var(--white);
        }

        .calendar-day.event {
            position: relative;
        }

        .calendar-day.event::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 4px;
            background: var(--secondary);
            border-radius: 50%;
        }

        .calendar-day.other-month {
            color: var(--text-light);
            opacity: 0.5;
        }

        .upcoming-events {
            margin-top: 20px;
        }

        .upcoming-events h5 {
            margin-bottom: 15px;
            color: var(--primary);
        }

        .event-item {
            display: flex;
            align-items: center;
            padding: 10px;
            background: var(--light);
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .event-date {
            background: var(--gradient);
            color: var(--white);
            padding: 8px;
            border-radius: 6px;
            text-align: center;
            min-width: 50px;
            margin-right: 12px;
        }

        .event-date .day {
            display: block;
            font-size: 1.1rem;
            font-weight: bold;
        }

        .event-date .month {
            display: block;
            font-size: 0.7rem;
            text-transform: uppercase;
        }

        .event-info {
            flex: 1;
        }

        .event-info strong {
            display: block;
            margin-bottom: 3px;
        }

        .event-info span {
            color: var(--text-light);
            font-size: 0.85rem;
        }

        /* Quick Links Grid */
        .quick-links-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 15px;
        }

        .quick-link-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 15px 8px;
            background: var(--light);
            border-radius: 8px;
            text-decoration: none;
            color: var(--text);
            transition: var(--transition);
            text-align: center;
            min-height: 80px;
        }

        .quick-link-item:hover, .quick-link-item:focus {
            background: var(--gradient);
            color: var(--white);
            transform: translateY(-2px);
        }

        .quick-link-item i {
            font-size: 1.3rem;
            margin-bottom: 6px;
        }

        .quick-link-item span {
            font-size: 0.8rem;
            font-weight: 700;
        }


        /* Announcement Styles */
        .announcement-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .announcement-item {
            display: flex;
            padding: 12px;
            background: var(--light);
            border-radius: 8px;
            border-left: 4px solid transparent;
            transition: var(--transition);
        }

        .announcement-item.urgent {
            border-left-color: var(--accent);
        }

        .announcement-item:hover {
            background: #e9ecef;
        }

        .announcement-badge {
            background: var(--accent);
            color: var(--white);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: bold;
            margin-right: 10px;
            white-space: nowrap;
        }

        .announcement-date {
            background: var(--primary);
            color: var(--white);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: bold;
            margin-right: 10px;
            white-space: nowrap;
        }

        .announcement-content {
            flex: 1;
        }

        .announcement-content strong {
            display: block;
            margin-bottom: 4px;
        }

        .announcement-content p {
            color: var(--text-light);
            font-size: 0.85rem;
            margin: 0;
        }

        /* Achievement Styles */
        .achievement-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .achievement-item {
            display: flex;
            align-items: center;
            padding: 12px;
            background: var(--light);
            border-radius: 8px;
            transition: var(--transition);
        }

        .achievement-item:hover {
            background: #e9ecef;
        }

        .achievement-badge {
            width: 40px;
            height: 40px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            margin-right: 12px;
            font-size: 1.1rem;
        }

        .achievement-info {
            flex: 1;
        }

        .achievement-info strong {
            display: block;
            margin-bottom: 3px;
        }

        .achievement-info span {
            color: var(--text-light);
            font-size: 0.85rem;
        }

        /* Contact List Styles */
        .contact-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            padding: 12px;
            background: var(--light);
            border-radius: 8px;
            transition: var(--transition);
        }

        .contact-item:hover {
            background: #e9ecef;
        }

        .contact-item i {
            width: 40px;
            height: 40px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            margin-right: 12px;
            font-size: 1.1rem;
        }

        .contact-info {
            flex: 1;
        }

        .contact-info strong {
            display: block;
            margin-bottom: 3px;
        }

        .contact-info span {
            color: var(--text-light);
            font-size: 0.85rem;
        }

        /* Gallery Section */
        .gallery-section {
            padding: 80px 0;
            background: var(--white);
        }

        .section-subtitle {
            text-align: center;
            color: var(--text-light);
            margin-bottom: 50px;
            font-size: 1.1rem;
        }

        .gallery-filters {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 8px 20px;
            background: var(--light);
            border: 2px solid transparent;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 700;
            color: var(--text);
            transition: var(--transition);
            font-size: 0.85rem;
            min-height: 44px;
            display: flex;
            align-items: center;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--gradient);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .gallery-slider-container {
            position: relative;
            overflow: hidden;
            margin: 0 auto 30px;
            padding: 0 15px;
        }

        .gallery-slider {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            gap: 20px;
            padding: 20px 0;
        }

        .gallery-slide {
            flex: 0 0 300px;
            border-radius: 12px;
            overflow: hidden;
            transition: var(--transition);
        }

        .gallery-slide:hover {
            transform: translateY(-8px);
        }

        .gallery-card {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            aspect-ratio: 4/3;
        }

        .gallery-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .gallery-card:hover img {
            transform: scale(1.05);
        }

        .gallery-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                to bottom,
                transparent 0%,
                rgba(0, 0, 0, 0.1) 30%,
                rgba(0, 0, 0, 0.7) 100%
            );
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 15px;
            opacity: 0;
            transition: var(--transition);
        }

        .gallery-card:hover .gallery-overlay {
            opacity: 1;
        }

        .gallery-info {
            transform: translateY(15px);
            transition: var(--transition);
        }

        .gallery-card:hover .gallery-info {
            transform: translateY(0);
        }

        .gallery-info h3 {
            color: var(--white);
            margin-bottom: 6px;
            font-size: 1.1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .gallery-info p {
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 6px;
            font-size: 0.85rem;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .gallery-date {
            color: var(--primary);
            font-weight: 700;
            font-size: 0.8rem;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .gallery-expand {
            align-self: flex-end;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            transform: translateY(15px);
            opacity: 0;
            min-height: 44px;
            min-width: 44px;
        }

        .gallery-card:hover .gallery-expand {
            transform: translateY(0);
            opacity: 1;
        }

        .gallery-expand:hover {
            background: var(--primary);
            color: var(--white);
            transform: scale(1.1);
        }

        /* Leadership Section */
        .leadership-section {
            padding: 80px 0;
            background: var(--white);
        }

        .leadership-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 50px;
            border-bottom: 2px solid #eee;
            flex-wrap: wrap;
            gap: 10px;
        }

        .tab-button {
            background: none;
            border: none;
            padding: 12px 25px;
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            border-bottom: 3px solid transparent;
            border-radius: 6px 6px 0 0;
            min-height: 44px;
            display: flex;
            align-items: center;
        }

        .tab-button:hover {
            color: var(--primary);
            background: var(--light);
        }

        .tab-button.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.4s ease;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Executive Cards */
        .executive-card {
            flex: 0 0 260px;
            background: var(--white);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
            text-align: center;
            padding-bottom: 20px;
        }

        .executive-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
        }

        .card-image {
            width: 180px;
            height: 180px;
            margin: 20px auto 15px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid var(--light);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .executive-card:hover .card-image {
            border-color: var(--primary);
            transform: scale(1.05);
        }

        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .executive-card:hover .card-image img {
            transform: scale(1.1);
        }

        .executive-info {
            padding: 0 15px;
        }

        .executive-info h3 {
            font-size: 1rem;
            margin-bottom: 5px;
            color: var(--primary);
            line-height: 1.3;
        }

        .executive-info p {
            color: var(--text-light);
            font-weight: 700;
            font-size: 0.85rem;
        }

        /* Deanary Cards */
        .deanary-card {
            flex: 0 0 260px;
            background: var(--light);
            border-radius: 12px;
            padding: 20px 15px;
            text-align: center;
            transition: var(--transition);
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
        }

        .deanary-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: var(--transition);
        }

        .deanary-card:hover::before {
            transform: scaleX(1);
        }

        .deanary-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-hover);
        }

        .deanary-image {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto 12px;
            border: 3px solid var(--primary);
            transition: var(--transition);
        }

        .deanary-card:hover .deanary-image {
            border-color: var(--secondary);
            transform: scale(1.05);
        }

        .deanary-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .deanary-card:hover .deanary-image img {
            transform: scale(1.1);
        }

        .deanary-info h3 {
            font-size: 1rem;
            margin-bottom: 6px;
            color: var(--primary);
        }

        .deanary-info p {
            color: var(--text-light);
            font-size: 0.85rem;
            margin-bottom: 10px;
        }

        .deanary-contact {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            font-size: 0.8rem;
        }

        .deanary-contact i {
            margin-right: 6px;
            color: var(--secondary);
        }

        /* Senators Grid */
        .senators-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 20px;
        }

        .senator-card {
            background: var(--light);
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            transition: var(--transition);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .senator-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }

        .senator-image {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto 8px;
            border: 2px solid var(--secondary);
        }

        .senator-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .senator-info h3 {
            font-size: 0.85rem;
            margin-bottom: 4px;
            color: var(--primary);
        }

        .senator-info p {
            color: var(--text-light);
            font-size: 0.75rem;
        }

        /* History Section */
        .history-section {
            padding: 80px 0;
            background-color: var(--light);
            position: relative;
        }

        .history-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient);
        }

        .history-container {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .history-title {
            font-size: 2.2rem;
            margin-bottom: 2rem;
            color: var(--primary);
        }

        .history-text {
            margin-bottom: 1.5rem;
            font-size: 1.05rem;
            line-height: 1.7;
        }

        .btn-history {
            background: var(--gradient);
            color: var(--white);
            box-shadow: var(--shadow);
        }

        .btn-history:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-hover);
        }

        /* Responsibility Section */
        .responsibility-section {
            padding: 80px 0;
            background-color: var(--white);
        }

        .responsibility-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
        }

        .responsibility-item {
            text-align: center;
            padding: 25px 20px;
            border-radius: 10px;
            background: var(--light);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .responsibility-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: var(--transition);
        }

        .responsibility-item:hover::before {
            transform: scaleX(1);
        }

        .responsibility-item:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow);
        }

        .icon-circle {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            font-size: 1.8rem;
            color: var(--white);
            transition: var(--transition);
        }

        .responsibility-item:hover .icon-circle {
            transform: scale(1.1);
        }

        .academic-circle {
            background: var(--gradient);
        }

        .accommodation-circle {
            background: linear-gradient(135deg, var(--secondary) 0%, #32CD32 100%);
        }

        .transportation-circle {
            background: linear-gradient(135deg, var(--primary) 0%, #FFA500 100%);
        }

        .welfarism-circle {
            background: linear-gradient(135deg, #FF4500 0%, #FF6347 100%);
        }

        .responsibility-item h3 {
            margin-bottom: 12px;
            color: var(--primary);
            font-size: 1.2rem;
        }

        .responsibility-item p {
            line-height: 1.6;
            color: var(--text);
        }

        /* Stats Section */
        .stats-section {
            padding: 80px 0;
            background: var(--gradient);
            color: var(--white);
            position: relative;
            overflow: hidden;
        }

        .stats-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('https://source.unsplash.com/random/1920x1080/?pattern,abstract') center/cover;
            opacity: 0.1;
        }

        .stats-container {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
            gap: 20px;
        }

        .stat-item {
            text-align: center;
            padding: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            backdrop-filter: blur(10px);
            transition: var(--transition);
            flex: 1;
            min-width: 150px;
            max-width: 200px;
        }

        .stat-item:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.15);
        }

        .stat-icon {
            width: 50px;
            height: 50px;
            margin-bottom: 12px;
            color: var(--white);
        }

        .stat-number {
            display: block;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 1rem;
            opacity: 0.9;
        }

        /* News Section */
        .news-section {
            padding: 80px 0;
            background-color: var(--light);
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .news-card {
            background: var(--white);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
        }

        .news-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
        }

        .news-date {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--gradient);
            color: var(--white);
            padding: 8px;
            border-radius: 6px;
            text-align: center;
            line-height: 1.2;
            z-index: 2;
        }

        .date-day {
            display: block;
            font-size: 1.3rem;
            font-weight: 700;
        }

        .date-month {
            display: block;
            font-size: 0.75rem;
            text-transform: uppercase;
        }

        .news-card h3 {
            padding: 20px 20px 10px;
            color: var(--primary);
            font-size: 1.15rem;
            line-height: 1.3;
        }

        .news-card p {
            padding: 0 20px 20px;
            color: var(--text);
            line-height: 1.5;
        }

        .btn-read-more {
            display: block;
            margin: 0 20px 20px;
            background: var(--gradient);
            color: var(--white);
            text-align: center;
            padding: 10px 20px;
        }

        .btn-read-more:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        /* Social Share Buttons */
        .social-share {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            padding: 0 20px 20px;
        }

        .share-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            text-decoration: none;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .share-btn.facebook { background: #3b5998; }
        .share-btn.twitter { background: #1da1f2; }
        .share-btn.linkedin { background: #0077b5; }
        .share-btn.whatsapp { background: #25d366; }

        .share-btn:hover {
            transform: translateY(-2px);
        }

        /* Contact Section */
        .contact-section {
            padding: 80px 0;
            background-color: var(--white);
        }

        .contact-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
        }

        .contact-info h3 {
            margin-bottom: 25px;
            color: var(--primary);
            position: relative;
        }

        .contact-info h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--gradient);
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .contact-item i {
            width: 40px;
            height: 40px;
            background: var(--light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: var(--primary);
            transition: var(--transition);
        }

        .contact-item:hover i {
            background: var(--gradient);
            color: var(--white);
            transform: scale(1.1);
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .social-links a {
            width: 40px;
            height: 40px;
            background: var(--light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            transition: var(--transition);
            text-decoration: none;
        }

        .social-links a:hover {
            background: var(--gradient);
            color: var(--white);
            transform: translateY(-3px);
        }

        .contact-form {
            background: var(--light);
            padding: 25px;
            border-radius: 10px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-family: 'Lato', sans-serif;
            transition: var(--transition);
            font-size: 1rem;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .form-error {
            color: #e53e3e;
            font-size: 0.85rem;
            margin-top: 5px;
            display: none;
        }

        .form-success {
            background: #48bb78;
            color: white;
            padding: 12px;
            border-radius: 6px;
            margin-bottom: 15px;
            display: none;
        }

        /* Footer */
        .main-footer {
            background-color: var(--dark);
            color: var(--white);
            padding-top: 60px;
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 35px;
            margin-bottom: 40px;
        }

        .footer-logo img {
            height: 50px;
            margin-right: 12px;
        }

        .logo-and-text-wrapper {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .footer-logo-text h3 {
            margin-bottom: 5px;
            color: var(--white);
            font-size: 1.2rem;
        }

        .footer-logo-text p {
            color: var(--text-light);
            font-size: 0.85rem;
        }

        .footer-description {
            margin-bottom: 15px;
            line-height: 1.6;
            color: var(--text-light);
        }

        .footer-contact h4,
        .footer-menu h4,
        .footer-university h4 {
            margin-bottom: 18px;
            color: var(--white);
            position: relative;
            font-size: 1.1rem;
        }

        .footer-contact h4::after,
        .footer-menu h4::after,
        .footer-university h4::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--gradient);
        }

        .footer-contact p {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            color: var(--text-light);
        }

        .footer-contact i {
            margin-right: 8px;
            color: var(--primary);
            width: 16px;
        }

        .footer-links {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }

        .footer-menu ul,
        .footer-university ul {
            list-style: none;
        }

        .footer-menu li,
        .footer-university li {
            margin-bottom: 8px;
        }

        .footer-menu a,
        .footer-university a {
            color: var(--text-light);
            text-decoration: none;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .footer-menu a:hover,
        .footer-university a:hover {
            color: var(--primary);
            padding-left: 5px;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 20px 0;
            text-align: center;
        }

        .footer-bottom p {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        .footer-bottom a {
            color: var(--primary);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-bottom a:hover {
            color: var(--white);
        }

        /* Lightbox */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .lightbox.active {
            display: flex;
            opacity: 1;
        }

        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-image {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .lightbox-close {
            position: absolute;
            top: -45px;
            right: 0;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            color: var(--white);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            min-height: 44px;
            min-width: 44px;
        }

        .lightbox-close:hover {
            background: var(--accent);
            transform: scale(1.1);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            color: var(--white);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            min-height: 44px;
            min-width: 44px;
        }

        .lightbox-prev {
            left: -60px;
        }

        .lightbox-next {
            right: -60px;
        }

        .lightbox-nav:hover {
            background: var(--primary);
            transform: translateY(-50%) scale(1.1);
        }

        .lightbox-info {
            position: absolute;
            bottom: -70px;
            left: 0;
            right: 0;
            text-align: center;
            color: var(--white);
        }

        .lightbox-info h3 {
            margin-bottom: 6px;
            font-size: 1.2rem;
        }

        .lightbox-info p {
            margin-bottom: 6px;
            opacity: 0.9;
            font-size: 0.95rem;
        }

        .lightbox-info span {
            color: var(--primary);
            font-weight: 700;
            font-size: 0.9rem;
        }

        /* Scroll to Top Button */
        .scroll-to-top {
            position: fixed;
            bottom: 25px;
            right: 25px;
            width: 48px;
            height: 48px;
            background: var(--gradient);
            color: var(--white);
            border: none;
            border-radius: 50%;
            font-size: 1.1rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            min-width: 44px;
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .scroll-to-top:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
        }

        /* Loading Animation */
        .loading {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: var(--white);
            animation: spin 1s ease-in-out infinite;
            margin-right: 8px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Skeleton Loading */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: 4px;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Fade-in Animation */
        .fade-in {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }

        /* Notification System */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #48bb78;
            color: white;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 10001;
            max-width: 400px;
            animation: slideInRight 0.3s ease;
        }

        .notification.error {
            background: #f56565;
        }

        .notification.warning {
            background: #ed8936;
        }

        .notification.info {
            background: #4299e1;
        }

        .notification-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .notification-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            margin-left: 10px;
            padding: 0;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes slideOutRight {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }

        /* Search Bar */
        .search-container {
            position: relative;
            margin: 20px 0;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-input {
            width: 100%;
            padding: 12px 45px 12px 15px;
            border: 2px solid #e2e8f0;
            border-radius: 25px;
            font-size: 1rem;
            transition: var(--transition);
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
        }

        .search-btn {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--gradient);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-btn:hover {
            transform: translateY(-50%) scale(1.1);
        }

        /* Breadcrumb */
        .breadcrumb {
            padding: 15px 0;
            background: var(--light);
            margin-bottom: 30px;
        }

        .breadcrumb-list {
            display: flex;
            list-style: none;
            flex-wrap: wrap;
        }

        .breadcrumb-item {
            margin-right: 5px;
            font-size: 0.9rem;
        }

        .breadcrumb-item:not(:last-child)::after {
            content: '/';
            margin-left: 5px;
            color: var(--text-light);
        }

        .breadcrumb-item a {
            color: var(--primary);
            text-decoration: none;
        }

        .breadcrumb-item a:hover {
            text-decoration: underline;
        }

        .breadcrumb-item.active {
            color: var(--text-light);
        }

        /* Back to Top Progress */
        .progress-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: transparent;
            z-index: 1000;
        }

        .progress-bar {
            height: 4px;
            background: var(--gradient);
            width: 0%;
            transition: width 0.3s ease;
        }

        /* Department Cards as Links */
        .department-card {
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .department-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            text-decoration: none;
            color: inherit;
        }

        /* Ensure the department card content is properly aligned */
        .department-card > * {
            pointer-events: none; /* This prevents the inner elements from interfering with the link */
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .container {
                padding: 0 15px;
            }
            
            .hero-title {
                font-size: clamp(2.2rem, 5vw, 3.5rem);
            }
            
            .access-grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            }
            
            .quick-links-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .nav-links ul {
                gap: 15px;
            }
            
            .navbar .container {
                padding: 0 20px;
            }
        }

        /* IMPROVED MOBILE VIEW - 768px */
        @media (max-width: 768px) {
            /* FIX: Adjust sections for mobile view */
            section {
                width: 100%;
                left: 0;
                right: 0;
                margin-left: 0;
                margin-right: 0;
                padding: 40px 0 !important;
            }
            
            .hero-section {
                width: 100%;
                left: 0;
                right: 0;
                margin-left: 0;
                margin-right: 0;
                height: 70vh;
                min-height: 400px;
                margin-top: 70px;
            }
            
            .hero-content {
                padding: 0 20px;
                text-align: center;
            }
            
            .hero-title {
                font-size: 1.5rem;
                margin-bottom: 0.4rem;
                text-align: center;
            }
            
            .hero-subtitle {
                font-size: 1.0rem;
                margin-bottom: 1.0rem;
                text-align: center;
            }
            
            .hero-description {
                font-size: 1rem;
                margin-bottom: 1.0rem;
                line-height: 1.0;
                text-align: center;
            }
            
            .hero-buttons {
                flex-direction: column;
                gap: 8px;
                align-items: center;
                justify-content: center;
            }
            
            .btn {
                width: 60%;
                max-width: 280px;
                padding: 14px 20px;
                font-size: 1rem;
            }
            
            /* IMPROVED NAVBAR FOR MOBILE */
            .navbar {
                background-color: rgba(255, 255, 255, 0.98);
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            }
            
            .navbar .container {
                padding: 0 15px;
                height: 70px;
            }
            
            .logo img {
                height: 45px;
            }
            
            .logo-text h1 {
                font-size: 0.85rem;
                line-height: 1.1;
            }
            
            .logo-text p {
                font-size: 0.7rem;
            }
            
            .nav-links ul {
                flex-direction: column;
                position: fixed;
                top: 70px;
                left: 0;
                right: 0;
                background: rgba(255, 255, 255, 0.98);
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
                display: none;
                padding: 15px 0;
                gap: 0;
                max-height: calc(100vh - 70px);
                overflow-y: auto;
                backdrop-filter: blur(10px);
                border-top: 1px solid rgba(0,0,0,0.1);
            }
            
            .nav-links.active ul {
                display: flex;
            }
            
            .nav-links li {
                margin: 0;
                border-bottom: 1px solid rgba(0,0,0,0.05);
                width: 100%;
            }
            
            .nav-links a {
                padding: 18px 20px;
                display: block;
                font-size: 1rem;
                justify-content: space-between;
                color: var(--dark);
            }
            
            .nav-links a:hover {
                background-color: rgba(255, 140, 0, 0.1);
                transform: none;
            }
            
            .dropdown-content {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                background: rgba(0,0,0,0.02);
                margin-left: 0;
                display: none;
                width: 100%;
                border-radius: 0;
                border: none;
            }
            
            .dropdown.active .dropdown-content {
                display: block;
            }
            
            .dropdown-content a {
                padding: 15px 30px;
                font-size: 0.9rem;
            }
            
            .dropdown-content a:hover {
                background-color: rgba(255, 140, 0, 0.15);
                color: var(--dark);
            }
            
            .menu-toggle {
                display: flex;
            }
            
            .menu-toggle.active .bar:nth-child(1) {
                transform: rotate(-45deg) translate(-5px, 6px);
                background-color: var(--accent);
            }
            
            .menu-toggle.active .bar:nth-child(2) {
                opacity: 0;
            }
            
            .menu-toggle.active .bar:nth-child(3) {
                transform: rotate(45deg) translate(-5px, -6px);
                background-color: var(--accent);
            }
            
            .section-title {
                font-size: 2rem;
                margin-bottom: 2rem;
            }
            
            /* Department Cards Slider Improvement */
            .department-card,
            .executive-card,
            .deanary-card,
            .gallery-slide {
                flex: 0 0 calc(100% - 40px) !important;
                margin: 0 10px;
            }
            
            .slider-container {
                padding: 0 5px;
            }
            
            .slider {
                gap: 10px;
            }
            
            /* Quick Access Grid Improvement */
            .access-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .access-card {
                margin-bottom: 10px;
            }
            
            .access-header {
                padding: 15px;
            }
            
            .access-header h3 {
                font-size: 1.1rem;
            }
            
            /* Quick Links Grid Improvement */
            .quick-links-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .quick-link-item {
                padding: 12px 5px;
                min-height: 70px;
            }
            
            .quick-link-item i {
                font-size: 1.2rem;
                margin-bottom: 5px;
            }
            
            .quick-link-item span {
                font-size: 0.75rem;
            }
            
            /* Gallery Improvements */
            .gallery-slide {
                flex: 0 0 280px;
            }
            
            .gallery-filters {
                flex-wrap: nowrap;
                overflow-x: auto;
                justify-content: flex-start;
                padding-bottom: 10px;
                margin-bottom: 30px;
                -webkit-overflow-scrolling: touch;
            }
            
            .gallery-filters::-webkit-scrollbar {
                height: 4px;
            }
            
            .filter-btn {
                white-space: nowrap;
                padding: 8px 15px;
                font-size: 0.8rem;
            }
            
            /* Leadership Tabs Improvement */
            .leadership-tabs {
                flex-direction: column;
                align-items: center;
                gap: 5px;
                border-bottom: none;
            }
            
            .tab-button {
                width: 100%;
                max-width: 300px;
                margin-bottom: 5px;
                border-radius: 8px;
                border: 1px solid #eee;
                justify-content: center;
            }
            
            .tab-button.active {
                border-bottom-color: var(--primary);
                border-bottom-width: 3px;
            }
            
            /* Senator Grid Improvement */
            .senators-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .senator-card {
                padding: 12px;
            }
            
            .senator-image {
                width: 60px;
                height: 60px;
            }
            
            .senator-info h3 {
                font-size: 0.8rem;
            }
            
            .senator-info p {
                font-size: 0.7rem;
            }
            
            /* News Grid Improvement */
            .news-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .news-card h3 {
                font-size: 1.1rem;
                padding: 15px 15px 10px;
            }
            
            .news-card p {
                padding: 0 15px 15px;
                font-size: 0.95rem;
            }
            
            /* Footer Improvements */
            .footer-links {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .footer-content {
                gap: 25px;
            }
            
            .logo-and-text-wrapper {
                align-items: flex-start;
            }
            
            .footer-logo-text h3 {
                font-size: 1.1rem;
            }
            
            /* Contact Form Improvement */
            .contact-container {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .contact-form {
                padding: 20px;
            }
            
            /* Stats Section Improvement */
            .stats-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .stat-item {
                min-width: auto;
                max-width: none;
                padding: 15px;
            }
            
            .stat-number {
                font-size: 2rem;
            }
            
            .lightbox-prev {
                left: 10px;
            }
            
            .lightbox-next {
                right: 10px;
            }
            
            .lightbox-close {
                top: 10px;
                right: 10px;
            }

            .department-card, .executive-card, .deanary-card {
                min-height: auto;
            }
            
            /* Search Bar Improvement */
            .search-container {
                margin: 15px auto;
            }
            
            .search-input {
                padding: 14px 50px 14px 20px;
                font-size: 1rem;
            }
            
            .search-btn {
                width: 40px;
                height: 40px;
            }
            
            .main-footer {
                width: 100%;
                left: 0;
                right: 0;
                margin-left: 0;
                margin-right: 0;
            }
        }

        /* IMPROVED SMALL MOBILE VIEW - 480px */
        @media (max-width: 480px) {
            .container {
                padding: 0 12px;
            }
            
            .hero-section {
                height: 60vh;
                min-height: 350px;
                margin-top: 60px;
            }
            
            .hero-content {
                padding: 0 15px;
                text-align: center;
            }
            
            .hero-title {
                font-size: 2rem;
                line-height: 1.1;
                text-align: center;
            }
            
            .hero-subtitle {
                font-size: 1.2rem;
                text-align: center;
            }
            
            .hero-description {
                font-size: 0.95rem;
                margin-bottom: 1.8rem;
                text-align: center;
            }
            
            .section-title {
                font-size: 1.8rem;
                margin-bottom: 1.5rem;
            }
            
            .department-card,
            .executive-card,
            .deanary-card {
                flex: 0 0 calc(100% - 30px) !important;
                padding: 20px 15px;
            }
            
            .department-icon {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }
            
            .department-card h3 {
                font-size: 1.1rem;
                min-height: 2.5em;
            }
            
            .department-card p {
                font-size: 0.9rem;
                min-height: 4em;
            }
            
            .card-image {
                width: 150px;
                height: 150px;
            }
            
            .executive-info h3 {
                font-size: 0.95rem;
            }
            
            .quick-links-grid {
                grid-template-columns: 1fr;
            }
            
            .gallery-filters {
                gap: 8px;
            }
            
            .filter-btn {
                padding: 8px 12px;
                font-size: 0.75rem;
                min-height: 40px;
            }
            
            .gallery-slide {
                flex: 0 0 260px;
            }
            
            .senators-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            .senator-card {
                padding: 10px;
            }
            
            .senator-image {
                width: 50px;
                height: 50px;
            }
            
            .stats-container {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            
            .stat-item {
                padding: 15px;
            }
            
            .stat-number {
                font-size: 2.2rem;
            }
            
            .stat-label {
                font-size: 0.9rem;
            }
            
            .contact-container {
                gap: 25px;
            }
            
            .contact-form {
                padding: 15px;
            }
            
            .form-group input,
            .form-group textarea {
                padding: 14px;
                font-size: 1rem;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .footer-logo-text h3 {
                font-size: 1rem;
            }
            
            .footer-description {
                font-size: 0.9rem;
            }
            
            .scroll-to-top {
                bottom: 15px;
                right: 15px;
                width: 42px;
                height: 42px;
                font-size: 1rem;
            }
            
            /* Breadcrumb Improvement */
            .breadcrumb {
                padding: 12px 0;
                margin-bottom: 20px;
            }
            
            .breadcrumb-item {
                font-size: 0.8rem;
            }
            
            /* Social Share Buttons */
            .social-share {
                justify-content: center;
            }
            
            .share-btn {
                width: 40px;
                height: 40px;
            }
            
            /* News Date Improvement */
            .news-date {
                top: 10px;
                right: 10px;
                padding: 6px;
            }
            
            .date-day {
                font-size: 1.1rem;
            }
            
            .date-month {
                font-size: 0.7rem;
            }
            
            /* Mobile Navbar Adjustments */
            .navbar .container {
                padding: 0 10px;
                height: 65px;
            }
            
            .logo img {
                height: 40px;
            }
            
            .logo-text h1 {
                font-size: 0.75rem;
            }
            
            .logo-text p {
                font-size: 0.65rem;
            }
            
            .nav-links ul {
                top: 65px;
                max-height: calc(100vh - 65px);
            }
        }

        /* High DPI Screens */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .hero-slide:nth-child(1) {
                background-image: url('https://source.unsplash.com/random/3840x2160/?engineering,university');
            }

            .hero-slide:nth-child(2) {
                background-image: url('https://source.unsplash.com/random/3840x2160/?engineering,laboratory');
            }

            .hero-slide:nth-child(3) {
                background-image: url('https://source.unsplash.com/random/3840x2160/?engineering,students');
            }

            .hero-slide:nth-child(4) {
                background-image: url('https://source.unsplash.com/random/3840x2160/?engineering,workshop');
            }
        }

        /* Reduced motion support */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            
            .slider {
                transition: none;
            }
            
            .hero-slide {
                transition: none;
            }
        }

        /* High contrast mode */
        @media (prefers-contrast: high) {
            :root {
                --text: #2d3748;
                --text-light: #4a5568;
            }
            
            .department-card, .executive-card, .news-card {
                border: 1px solid #e2e8f0;
            }
        }

        /* Print styles */
        @media print {
            .navbar,
            .hero-buttons,
            .slider-nav,
            .access-header button,
            .gallery-filters,
            .lightbox,
            .scroll-to-top,
            .social-links,
            .contact-form,
            .social-share,
            .search-container,
            .progress-container {
                display: none !important;
            }
            
            .hero-section {
                background: none !important;
                color: black !important;
                height: auto !important;
                margin-top: 0 !important;
            }
            
            .hero-overlay {
                display: none !important;
            }
            
            .hero-content {
                color: black !important;
                position: static !important;
            }
            
            .section-title::after {
                background: black !important;
            }
            
            .btn {
                border: 1px solid black !important;
                background: white !important;
                color: black !important;
            }
            
            a {
                color: black !important;
                text-decoration: underline !important;
            }

            .department-card, .executive-card, .news-card {
                break-inside: avoid;
                box-shadow: none;
                border: 1px solid #ddd;
            }

            .stats-section {
                background: #f8f9fa !important;
                color: black !important;
            }

            .stat-item {
                background: white !important;
                color: black !important;
                border: 1px solid #ddd;
            }
        }
        
        /* ==========================================
   MOBILE OPTIMIZATION ENHANCEMENTS
   ========================================== */

/* Enhanced Touch-Friendly Interface */
@media (max-width: 768px) {
  /* Larger touch targets - minimum 44px */
  .btn, 
  .filter-btn, 
  .tab-button, 
  .arrow, 
  .calendar-nav, 
  .toggle-feature, 
  .lightbox-nav, 
  .lightbox-close, 
  .scroll-to-top, 
  .share-btn, 
  .search-btn,
  .menu-toggle {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }

  /* Better spacing for thumb reach */
  .nav-links a {
    padding: 20px 25px;
    margin: 5px 0;
  }

  /* Square gallery items on mobile */
  .gallery-slide {
    flex: 0 0 85vw !important;
    aspect-ratio: 1/1;
  }

  .gallery-card {
    aspect-ratio: 1/1;
  }

  /* Reduced animations for better performance */
  * {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
  }

  /* Reduced shadow intensity */
  .department-card,
  .access-card,
  .executive-card,
  .deanary-card,
  .news-card,
  .gallery-card,
  .navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .department-card:hover,
  .access-card:hover,
  .executive-card:hover,
  .deanary-card:hover,
  .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
}

/* Improved Mobile Navigation */
@media (max-width: 768px) {
  /* Wider mobile menu */
  .nav-links ul {
    width: 300px;
    left: auto;
    right: 0;
    border-left: 2px solid var(--primary);
  }

  /* Better visual feedback for active links */
  .nav-links a.active {
    background: rgba(255, 140, 0, 0.1);
    border-left: 4px solid var(--primary);
  }

  /* Larger font sizes and icons */
  .nav-links a {
    font-size: 1.1rem;
    padding: 20px 25px;
  }

  .dropdown-arrow {
    width: 20px;
    height: 20px;
  }

  /* Enhanced menu toggle animation */
  .menu-toggle {
    transform: scale(1);
    transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .menu-toggle.active {
    transform: scale(0.95);
  }

  .bar {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
  }
}

/* Optimized Lightbox for Mobile */
@media (max-width: 768px) {
  .lightbox {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Bottom-positioned navigation controls */
  .lightbox-nav {
    position: fixed;
    top: auto;
    bottom: 20px;
    transform: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
  }

  .lightbox-prev {
    left: 20px;
    right: auto;
  }

  .lightbox-next {
    right: 20px;
    left: auto;
  }

  /* Larger close button */
  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
  }

  /* Touch swipe support area */
  .lightbox-content {
    touch-action: pan-y pinch-zoom;
  }

  /* Better mobile scrolling */
  .lightbox-content img {
    max-height: 60vh;
  }

  .lightbox-info {
    bottom: -60px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    margin: 0 20px;
  }
}

/* Performance Optimizations */
@media (max-width: 768px) {
  /* Optimized image rendering */
  img {
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  /* Smooth scrolling for iOS */
  html {
    -webkit-overflow-scrolling: touch;
  }

  body, .access-content, .nav-links ul {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }

  /* Hardware acceleration for animations */
  .department-card,
  .executive-card,
  .gallery-card,
  .news-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Enhanced Mobile JavaScript Support */
/* Haptic feedback simulation */
.haptic-feedback {
  animation: haptic 0.1s ease;
}

@keyframes haptic {
  0% { transform: scale(1); }
  50% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

/* Touch vs scroll detection */
.touch-active {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.touch-active:active {
  opacity: 0.7;
}

/* Better error display for mobile */
.form-error {
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 6px;
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.2);
}

/* Responsive Typography Enhancements */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }

  /* Adjusted font sizes for mobile */
  .section-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .department-card h3,
  .executive-info h3,
  .deanary-info h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .department-card p,
  .executive-info p,
  .deanary-info p,
  .news-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Better text spacing */
  p, li {
    margin-bottom: 1em;
    letter-spacing: 0.01em;
  }

  /* Improved readability */
  .hero-description,
  .history-text,
  .responsibility-item p {
    line-height: 1.7;
    max-width: 100%;
  }
}

/* Mobile-Specific Loading States */
@media (max-width: 768px) {
  /* Smaller loading spinners */
  .loading {
    width: 24px;
    height: 24px;
    border-width: 2px;
  }

  /* Better error display */
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    width: auto;
    padding: 12px 15px;
  }

  .notification-content {
    font-size: 0.95rem;
  }

  /* Mobile-optimized layouts for loading */
  .skeleton {
    border-radius: 8px;
    margin: 5px 0;
  }
}

/* Accessibility Improvements for Mobile */
@media (max-width: 768px) {
  /* Better focus states */
  button:focus,
  a:focus,
  input:focus,
  textarea:focus,
  .filter-btn:focus,
  .tab-button:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2);
  }

  /* Screen reader support */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Keyboard navigation support */
  [tabindex]:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
  }

  /* Touch-friendly focus indicators */
  .nav-links a:focus,
  .department-card:focus,
  .access-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* Cross-Device Compatibility */
/* Full-width sections on all devices */
section, .main-footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

@media (max-width: 768px) {
  section, .main-footer {
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Prevent horizontal scrolling */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Consistent experience across screen sizes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

/* Proper fallbacks for unsupported features */
@supports not (backdrop-filter: blur(10px)) {
  .navbar,
  .dropdown-content,
  .lightbox-close,
  .lightbox-nav {
    background: rgba(255, 255, 255, 0.98);
  }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
  body, .navbar, .main-footer {
    padding-left: min(0px, env(safe-area-inset-left));
    padding-right: min(0px, env(safe-area-inset-right));
  }
  
  .navbar {
    padding-top: env(safe-area-inset-top);
  }
}

/* Additional Mobile-Specific Improvements */

/* Prevent zoom on input focus for iOS */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea {
    font-size: 16px !important; /* Prevents iOS zoom */
  }
}

/* Improved button feedback */
@media (max-width: 768px) {
  .btn:active,
  .filter-btn:active,
  .tab-button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Better scrolling performance */
@media (max-width: 768px) {
  .slider,
  .gallery-slider,
  .nav-links ul {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
  }
}

/* Optimize form inputs for mobile */
@media (max-width: 768px) {
  .form-group input,
  .form-group textarea,
  .search-input {
    padding: 14px 16px;
    font-size: 16px; /* Prevents iOS zoom */
    border-radius: 8px;
    border: 2px solid #e2e8f0;
  }

  .form-group input:focus,
  .form-group textarea:focus,
  .search-input:focus {
    border-color: var(--primary);
    outline: none;
  }
}

/* Improve dropdown interactions on mobile */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.active .dropdown-content {
    max-height: 500px;
  }

  .dropdown-content a {
    padding: 16px 30px;
    font-size: 1rem;
  }
}

/* Enhanced hero section for mobile */
@media (max-width: 768px) {
  .hero-section {
    height: 70vh;
    min-height: 500px;
    padding: 100px 0 60px;
  }

  .hero-content {
    text-align: center;
    padding: 0 20px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* Optimize stats section for mobile */
@media (max-width: 768px) {
  .stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-item {
    padding: 15px;
    min-width: auto;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}

/* Improve gallery filters for touch */
@media (max-width: 768px) {
  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 30px;
    scrollbar-width: none; /* Firefox */
  }

  .gallery-filters::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .filter-btn {
    white-space: nowrap;
    padding: 10px 20px;
    flex-shrink: 0;
  }
}

/* Optimize quick links grid */
@media (max-width: 768px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .quick-link-item {
    padding: 15px 10px;
    min-height: 80px;
  }

  .quick-link-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .quick-link-item span {
    font-size: 0.85rem;
  }
}

/* Enhanced footer for mobile */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-menu ul,
  .footer-university ul {
    columns: 1;
  }

  .footer-contact p,
  .footer-menu a,
  .footer-university a {
    font-size: 0.95rem;
  }
}

/* Loading state improvements */
@media (max-width: 768px) {
  .loading-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
}

/* Prevent pull-to-refresh on iOS */
@media (max-width: 768px) {
  body {
    overscroll-behavior-y: contain;
  }
}

/* Optimize modal/dialog for mobile */
@media (max-width: 768px) {
  .modal-content {
    margin: 20px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Improved list items for touch */
@media (max-width: 768px) {
  .announcement-item,
  .achievement-item,
  .contact-item,
  .event-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .announcement-item:hover,
  .achievement-item:hover,
  .contact-item:hover,
  .event-item:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
  }
}

/* ==========================================
   UTILITY CLASSES FOR MOBILE
   ========================================== */

/* Hide on mobile */
.mobile-hidden {
  display: none;
}

@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
}

/* Show on mobile only */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

/* Touch-friendly text selection */
.touch-selectable {
  -webkit-user-select: text;
  user-select: text;
}

/* Prevent text overflow */
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Multi-line ellipsis */
.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Safe area padding */
.safe-area-top {
  padding-top: env(safe-area-inset-top);
}

.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Loading skeleton animation */
.skeleton-mobile {
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* ==========================================
   PRINT STYLES FOR MOBILE DOCUMENTS
   ========================================== */

@media print and (max-width: 768px) {
  .navbar,
  .hero-buttons,
  .slider-nav,
  .access-header button,
  .gallery-filters,
  .lightbox,
  .scroll-to-top,
  .social-links,
  .contact-form,
  .social-share,
  .search-container {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: black !important;
    height: auto !important;
    margin-top: 0 !important;
  }
  
  .hero-overlay {
    display: none !important;
  }
  
  .hero-content {
    color: black !important;
    position: static !important;
  }
  
  .section-title::after {
    background: black !important;
  }
  
  .btn {
    border: 1px solid black !important;
    background: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }

  .department-card,
  .executive-card,
  .news-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .stats-section {
    background: #f8f9fa !important;
    color: black !important;
  }

  .stat-item {
    background: white !important;
    color: black !important;
    border: 1px solid #ddd;
  }
}
/* Add this to your existing CSS - removes blue underline from all links */

/* Remove default link underline from ALL links */
a {
    text-decoration: none !important;
    color: inherit;
}

/* Ensure links maintain hover effects without underline */
a:hover, a:focus {
    text-decoration: none !important;
}

/* Specifically target "Read More" links if they have a class */
.btn-read-more, 
.btn-primary, 
.btn-secondary {
    text-decoration: none !important;
}

/* Remove any existing text-decoration from specific link types */
.nav-links a,
.footer-menu a, 
.footer-university a,
.quick-link-item,
.announcement-item a,
.achievement-item a,
.contact-item a,
.event-item a {
    text-decoration: none !important;
}

/* If there are inline links in paragraphs, ensure they don't have underline */
p a, 
.history-text a, 
.hero-description a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Remove any border-bottom that might be used as underline */
a[style*="text-decoration: underline"],
a[style*="border-bottom"] {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Override any browser default styles for links */
a:-webkit-any-link {
    text-decoration: none !important;
}

/* Ensure visited links also don't show underline */
a:visited {
    text-decoration: none !important;
}

/* Remove underline from active/clicked links */
a:active {
    text-decoration: none !important;
}
/* ==============================================
   FIX: REMOVE WHITE SPACE ABOVE HERO ON MOBILE
   ============================================== */

@media (max-width: 768px) {
    .hero-section {
        /* 1. Remove the external gap */
        margin-top: 0 !important; 
        
        /* 2. Add internal padding so the text isn't hidden behind the navbar */
        padding-top: 120px !important; 
        
        /* 3. Ensure background covers the full area */
        top: 0;
        min-height: 80vh; /* Optional: Makes hero taller on mobile for better look */
    }

    /* Fix global section padding that might be interfering */
    section {
        padding-top: 40px; /* Remove !important if possible, or override specific sections */
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-top: 0 !important;
        padding-top: 100px !important;
    }
}
