:root {
    /* Core Colors - Premium Light Theme */
    --bg-white: #ffffff;
    --bg-surface: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 51, 102, 0.1);
    --glass-blur: 15px;
    
    --primary-color: #003366; /* Deep Institutional Blue */
    --secondary-color: #EB1C23; /* Logo Red (Updated) */
    --accent-color: #684285; /* Logo Purple (Updated) */
    
    --text-main: #1e293b;
    --text-dim: #64748b;
    --white: #ffffff;
    
    /* Shadows & Effects */
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100%;
    padding-top: 36px;
}

p, 
.dept-card p, 
.hero p, 
.news-info p, 
.marquee-item p, 
.event-info p, 
.modal-section p, 
.footer-grid p,
.page-header-premium p {
    text-align: justify !important;
    text-justify: inter-word;
}

html {
    overflow-x: hidden !important;
    width: 100%;
}


h1, h2, h3, h4, .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

/* Global Responsive Images & Media */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 36px;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    top: 36px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar .nav-container {
    width: 98%;
    max-width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.college-logo {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.college-logo.acet {
    height: 55px; /* Slightly smaller for better balance */
}

@media (max-width: 480px) {
    .college-logo { height: 35px; }
    .college-logo.acet { height: 42px; }
    .logo-group { gap: 8px; }
}

.nav-links {
    display: flex;
    gap: clamp(10px, 1.5vw, 25px);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    opacity: 0.8;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 12px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    border: 1px solid rgba(0,0,0,0.05);
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0 !important;
    transition: 0.3s;
    opacity: 1 !important;
}

.dropdown-content a:hover {
    background-color: var(--bg-surface);
    color: var(--secondary-color) !important;
    padding-left: 25px;
}

.dropdown-content a::after {
    display: none !important;
}

/* For mobile nav, handle dropdowns carefully */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: none; /* COLLAPSED BY DEFAULT */
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: rgba(0, 0, 0, 0.02);
        padding: 0;
        min-width: 100%;
        border: none;
        border-left: 3px solid var(--secondary-color);
        margin-top: 5px;
        transition: none; /* Instant toggle on mobile */
    }
    
    .dropdown.active .dropdown-content {
        display: block;
        max-height: 1000px;
    }

    .dropdown-content a {
        text-align: left;
        padding: 15px 25px;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 0;
        font-weight: 700;
    }

    .dropdown > a::after {
        content: '\f078';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 0.8rem;
        transition: 0.3s;
    }

    .dropdown.active > a::after {
        transform: rotate(180deg);
    }
}

.btn-admission {
    padding: 10px 24px;
    border-radius: 50px; /* Rounded for a cleaner look */
    background: var(--secondary-color);
    color: var(--white) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(235, 28, 35, 0.2);
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: var(--transition-smooth);
}

.btn-admission:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 66, 133, 0.3);
}

/* Base Button Styles */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(235, 28, 35, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--white) !important;
}

.btn-outline:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #000; /* Dark fallback */
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.85) 20%, rgba(0, 51, 102, 0.45) 80%);
    z-index: 2;
}

.hero-visual {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Auto-adjusting font size */
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white); /* Changed to absolute white for better contrast */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero h1 span {
    display: block;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9); /* Brighter for readability */
    margin-bottom: 40px;
    max-width: 550px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; margin-bottom: 25px; }
    .btn-outline { margin-left: 0; margin-top: 15px; }
    .hero-content .btn { width: 100%; display: block; }
}

/* Sections */
.section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* Auto-adjusting font size */
    color: var(--primary-color);
}

/* Stats */
.stats {
    background: var(--bg-surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stat-card {
        padding: 20px 10px;
    }
    .stat-number {
        font-size: 2rem;
    }
}

.stat-card {
    padding: 30px;
    text-align: center;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-dim);
    text-align: center; /* Labels should stay centered */
}

/* Departments */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.dept-card {
    padding: 40px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary-color);
}

.dept-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.dept-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.dept-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: #001f3f;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-logos {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    align-items: center;
}

.footer-logo {
    height: 45px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
}

footer h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

footer ul li {
    list-style: none;
    margin-bottom: 12px;
}

footer ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: 0.3s;
}

footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Nav */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(2) {
    width: 18px;
    align-self: flex-end;
}

.hamburger span:nth-child(3) {
    width: 22px;
}

/* Hide mobile-only elements by default */
.mobile-menu-header, .nav-backdrop {
    display: none !important;
}

#menu-close {
    display: none;
}

/* On Desktop, hide navigation icons to keep it clean */
@media (min-width: 1025px) {
    .nav-links a i, .dropdown a i.fas:not(.fa-chevron-down) {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 0 !important;
    }
    
    .mobile-menu-header {
        display: none !important;
    }
}

/* --- Modern Mobile Menu (Side-Drawer) --- */
@media (max-width: 1024px) {
    .hamburger { 
        display: flex; 
        z-index: 10002; 
    }
    
    .nav-links { 
        position: fixed;
        top: 0;
        left: 0; /* Start at left edge */
        transform: translateX(-100%); /* Hide entirely off-screen to the left */
        width: 320px; /* Sidebar width */
        max-width: 85%;
        height: 100dvh;
        background: var(--white);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0; /* Header-based padding now */
        gap: 0;
        z-index: 10001;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
    }

    .nav-links.active {
        transform: translateX(0); /* Slide exactly into place */
        visibility: visible;
        opacity: 1;
    }

    /* Mobile Backdrop */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 20, 40, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: 0.4s ease;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        background: var(--bg-surface);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        margin-bottom: 10px;
    }

    .mobile-logo {
        height: 35px;
    }

    .mobile-menu-header i {
        display: block !important; /* Ensure close icon is visible in mobile menu */
    }

    /* Main Menu Links */
    .nav-links > a, .dropdown > a {
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: var(--primary-color) !important;
        padding: 18px 25px;
        border-bottom: 1px solid rgba(0, 51, 102, 0.05);
        width: 100%;
        display: flex;
        justify-content: flex-start; /* Left aligned icon + text */
        align-items: center;
        text-align: left;
        transition: 0.3s;
        gap: 12px;
    }

    .nav-links > a:hover {
        background: var(--bg-surface);
        padding-left: 30px;
    }

    .nav-links > a i, .dropdown > a i {
        width: 24px;
        font-size: 1.1rem;
        color: var(--secondary-color);
        opacity: 1;
    }

    /* Sub-menu Styling (Accordion) */
    .dropdown-content {
        position: static;
        display: block;
        max-height: 0;
        overflow: hidden;
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        margin-left: 20px; /* Indent sub-items */
    }

    .dropdown.active .dropdown-content {
        max-height: 1200px;
        opacity: 1;
        padding: 10px 0 20px;
    }

    .dropdown-content a {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: var(--text-dim) !important;
        padding: 12px 0 !important;
        text-align: left;
        border-bottom: none !important;
    }

    .dropdown-content a:hover {
        background: transparent;
        color: var(--secondary-color) !important;
        padding-left: 5px !important;
    }

    /* Chevron Animation */
    .dropdown > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 1.2rem;
        transition: transform 0.4s ease;
        margin-right: 5px;
    }



    /* Hamburger Animation */
    .hamburger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
        width: 25px;
    }
    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
        width: 25px;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }

    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center;
    }

    .footer-logos {
        justify-content: center;
    }

    .dept-grid {
        grid-template-columns: 1fr;
    }
    
    .dynamic-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet viewports */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 92%;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .dept-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Welcome Popup Modal Styles */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content-box {
    position: relative;
    background: var(--white);
    max-width: 600px;
    max-height: 95vh; /* Maximum height to fit viewport */
    width: auto;
    max-width: 90%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-close:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    flex: 1;
}

.modal-image {
    max-width: 100%;
    max-height: calc(95vh - 120px); /* Leave room for buttons and padding */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.modal-actions {
    padding: 20px;
    text-align: center;
    background: var(--bg-surface);
}

.modal-actions .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.3);
}

@media (max-width: 600px) {
    .modal-content-box {
        width: 95%;
    }
    .modal-actions {
        padding: 20px;
    }
    .modal-actions .btn {
        width: 100%;
    }
}

/* Academics Page Specific Styles */
.page-header-premium {
    position: relative;
    padding: 120px 0 80px; /* Reduced for mobile-first, adjusted below */
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
}

@media (min-width: 769px) {
    .page-header-premium {
        padding: 160px 0 100px;
        margin-bottom: 60px;
    }
}

.page-header-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(255, 165, 0, 0.4) 100%);
    z-index: 1;
}

.page-header-premium .container {
    position: relative;
    z-index: 2;
}

.page-header-premium h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.page-header-premium p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 500;
}

/* Redesigned Dept Cards */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dept-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 5px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dept-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.dept-card.card-primary { border-bottom-color: var(--primary-color); }
.dept-card.card-secondary { border-bottom-color: var(--secondary-color); }

.dept-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.dept-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.dept-card p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

/* Resource Cards */
.resource-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-top: 6px solid var(--primary-color);
}

.resource-card.secondary {
    border-top-color: var(--secondary-color);
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-item:last-child {
    border-bottom: none;
}

/* Interactive Resource List Items (PEO/PSO reveals) */
.resource-item.interactive {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    padding: 20px 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
    justify-content: flex-start;
    gap: 15px;
}

.resource-item.interactive:hover {
    background: var(--bg-surface);
}

.resource-item.interactive strong {
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1.1rem;
    z-index: 2;
    min-width: 60px; /* ensure alignment of the labels */
}

.resource-item.interactive:hover strong {
    color: var(--secondary-color);
}

.resource-item.interactive .resource-desc {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
    color: var(--text-color);
    text-align: left;
}

.resource-item.interactive:hover .resource-desc {
    opacity: 1;
    transform: translateX(0);
}

.star-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 16px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.star-card:hover {
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Stay Updated Section Styles */
.stay-updated {
    background-color: var(--bg-surface);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.update-col {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.update-header {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.announcements-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.news-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.update-header i {
    font-size: 1.5rem;
}

.update-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Marquee Styles */
.marquee-container {
    height: 350px;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    flex-direction: column;
    animation: marquee-vertical 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.marquee-item:hover {
    background: rgba(235, 28, 35, 0.02);
}

.marquee-item p {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0;
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.badge.new {
    background: var(--secondary-color);
    color: var(--white);
}

@keyframes marquee-vertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.update-footer {
    padding: 15px 30px;
    background: var(--bg-surface);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: right;
}

.update-footer a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
}

.update-footer a:hover {
    color: var(--secondary-color);
}

/* Slider Styles - Refactored for multiple items */
.news-slider-container {
    height: 380px; /* High enough to show multiple items */
    position: relative;
    overflow: hidden;
    padding: 10px 30px;
}

.news-slider {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card {
    position: relative;
    width: 100%;
    min-height: 110px;
    display: flex;
    gap: 20px;
    opacity: 0.6;
    visibility: visible;
    transform: scale(0.96);
    transition: all 0.5s ease;
    padding: 15px;
    background: #fdfdfd;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.03);
}

.news-card.active {
    opacity: 1;
    transform: scale(1);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: rgba(235, 28, 35, 0.1);
}

.news-date {
    flex-shrink: 0;
    width: 55px;
    height: 65px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.15);
}

.news-date .day {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.news-date .month {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
}

.news-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.slider-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    color: var(--primary-color);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

@media (max-width: 900px) {
    .updates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .update-col {
        border-radius: 15px;
    }
    .marquee-container, .news-slider-container {
        height: 320px;
    }
    .news-card {
        gap: 15px;
    }
    .news-date {
        width: 50px;
        height: 60px;
    }
}

/* Social Media "Ad" Card Styles */
.social-ad-card {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Floating on the right is standard for ads/widgets */
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(104, 66, 133, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 9000; /* Lower than mobile menu */
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.social-ad-card.minimized {
    width: 65px;
    height: 65px;
    bottom: 25px;
    right: 25px;
    border-radius: 50%;
    cursor: pointer;
    background: var(--accent-color);
    box-shadow: 0 10px 30px rgba(104, 66, 133, 0.4);
}

.social-ad-card.minimized .card-expanded-content {
    display: none;
}

.social-ad-card.minimized .card-minimized-icon {
    display: flex;
}

.card-minimized-icon {
    display: none;
    width: 65px;
    height: 65px;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

.card-header {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    padding: 18px 25px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-toggle {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: 0.3s;
}

.card-toggle:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.card-body {
    padding: 25px;
}

.social-feed-preview {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.feed-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 12px;
    display: block;
    letter-spacing: 1px;
}

.feed-post {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    min-height: 70px;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.social-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.social-link-item i {
    width: 45px;
    height: 45px;
    background: var(--bg-surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-color);
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-link-item:hover i {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 8px 20px rgba(104, 66, 133, 0.2);
}

.social-link-item span {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
}

.card-footer {
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.01);
}

.btn-follow {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(104, 66, 133, 0.25);
}

.btn-follow:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(235, 28, 35, 0.35);
}

@media (max-width: 600px) {
    .social-ad-card {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    .social-ad-card.minimized {
        width: 60px;
        height: 60px;
        left: auto;
        right: 20px;
    }
}

/* Social Media Grid Section Refined */
.social-grid-section {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.social-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 51, 102, 0.1), transparent);
}

.social-grid-header {
    text-align: center;
    margin-bottom: 60px;
}

.social-grid-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--primary-color);
    margin-top: 10px;
}

.social-grid-header p {
    color: var(--secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.instagram-card {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.instagram-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(0, 51, 102, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    color: var(--white);
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 30px;
    text-align: center;
}

.instagram-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
}

.instagram-card:hover img {
    transform: scale(1.1);
}

.instagram-card:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.instagram-overlay p {
    font-size: 0.95rem;/* Responsive Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-responsive table {
    min-width: 600px; /* Forces scroll on small screens */
}

@media (max-width: 600px) {
    .table-responsive table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 10px 8px;
    }
}
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    .social-grid-section {
        padding: 60px 0;
    }
}

/* Committee Refactor Styles */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.committee-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.committee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.committee-card:hover::before {
    transform: scaleX(1);
}

.committee-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.committee-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.committee-card h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.3;
}

.committee-card .in-charge {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
}

.committee-card .view-btn {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 35px;
    height: 35px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-header i {
    font-size: 3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.modal-body {
    padding-top: 10px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h4 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.modal-section p {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.95rem;
}

.in-charge-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(235, 28, 35, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.obj-list {
    list-style: none;
}

.obj-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-dim);
    border-bottom: 1px solid #f8fafc;
}

.obj-list li:last-child {
    border-bottom: none;
}
/* Responsive Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

table {
    border-collapse: collapse;
}

@media (max-width: 768px) {
    .data-table .data-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .data-row span:first-child, .data-row span:last-child {
        width: 100%;
        text-align: left;
    }
}

/* Fix for horizontal scroll on some pages */
img {
    max-width: 100%;
    height: auto;
}

.obj-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.helpline-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff1f2;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #e11d48;
    margin-top: 20px;
}

.helpline-badge i {
    font-size: 1.5rem;
    color: #e11d48;
}

.helpline-badge .text-group span {
    display: block;
    font-size: 0.75rem;
    color: #9f1239;
    font-weight: 800;
    text-transform: uppercase;
}

.helpline-badge .text-group strong {
    font-size: 1.2rem;
    color: #e11d48;
}

/* Event Timeline in Modal */
.events-timeline {
    margin-top: 15px;
    border-left: 2px solid #f1f5f9;
    padding-left: 20px;
}

.event-item {
    margin-bottom: 20px;
    position: relative;
}

.event-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--white);
}

.event-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.event-info strong {
    font-size: 1rem;
    color: var(--text-dark);
}

.event-info p {
    font-size: 0.85rem !important;
    margin-top: 4px !important;
}

/* Modal Gallery */
.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.modal-gallery img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.modal-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Refined Department Navigation Bar */
.dept-nav-bar {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 74px; /* Desktop height */
    z-index: 990;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .dept-nav-bar {
        top: 59px; /* Mobile height after scroll */
    }
}

.dept-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
}

.dept-nav-container::-webkit-scrollbar {
    display: none;
}

.dept-nav-link {
    padding: 20px 25px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    opacity: 0.8;
    white-space: nowrap;
}

.dept-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
}

.dept-nav-link:hover, .dept-nav-link.active {
    opacity: 1;
    color: var(--primary-color);
}

.dept-nav-link:hover::after, .dept-nav-link.active::after {
    width: 100%;
}

.tab-content {
    padding: 60px 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .dept-nav-bar {
        top: 60px;
    }
    .dept-nav-link {
        padding: 15px 18px;
        font-size: 0.75rem;
    }
}

/* Navbar Logo Separation & Top Scrolling Announcements */
@media (min-width: 1025px) {
    .navbar .logo-group {
        display: contents;
    }
    .navbar .logo-group a:first-child {
        order: 1;
    }
    .navbar .logo-group a:last-child {
        order: 3;
    }
    .navbar .nav-links {
        order: 2;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1024px) {
    .navbar .logo-group {
        display: contents;
    }
    .navbar .logo-group a:first-child {
        order: 1;
    }
    .navbar .logo-group a:last-child {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    .navbar .hamburger {
        order: 3;
    }
}

/* Top Announcement Ticker Style */
.top-announcement-ticker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    display: flex;
    align-items: center;
    z-index: 1001;
    font-size: 0.85rem;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.ticker-label {
    background: var(--primary-color);
    color: var(--white);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 5px 0 15px rgba(0,0,0,0.15);
}

.ticker-label i {
    margin-right: 6px;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white) !important;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-animation 25s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding-right: 50px;
    font-weight: 600;
}

.ticker-item::after {
    content: '•';
    margin-left: 25px;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes ticker-animation {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Premium Hero Manual Slider Controls */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
    outline: none;
}

.hero-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 51, 102, 0.4);
}

.hero-nav-btn.prev {
    left: 30px;
}

.hero-nav-btn.next {
    right: 30px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.hero-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-dots .dot.active {
    background: var(--white);
    transform: scale(1.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.8);
}

@media (max-width: 768px) {
    .hero-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .hero-nav-btn.prev {
        left: 15px;
    }
    .hero-nav-btn.next {
        right: 15px;
    }
    .hero-dots {
        bottom: 15px;
    }
}

/* Premium Navigation Search Box */
.nav-search-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

.search-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.search-toggle-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 51, 102, 0.05);
}

.search-dropdown-box {
    position: absolute;
    top: 50px;
    right: 0;
    width: 340px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1005;
    padding: 12px;
}

.search-dropdown-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px 8px;
    background: #f8fafc;
    transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.08);
    background: var(--white);
}

.search-icon-inside {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-right: 8px;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 0.9rem;
    outline: none;
    color: var(--text-main);
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    display: none;
    outline: none;
}

.search-clear-btn:hover {
    color: #64748b;
}

.search-results-dropdown {
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.search-group-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 8px 4px;
    border-bottom: 1px solid #f1f5f9;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

.search-result-item:hover {
    background: rgba(0, 51, 102, 0.05);
}

.search-result-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.search-result-category {
    font-size: 0.72rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2px;
}

.search-no-results {
    padding: 15px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}



