        /* Add your CSS here or link to external file */
         /* Modern CSS Reset & Variables */
                :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;
        }

        [data-theme="dark"] {
            --light: #0F172A;
            --dark: #F8FAFC;
            --darker: #1E293B;
            --text: #E2E8F0;
            --text-light: #94A3B8;
            --white: #1E293B;
            --card-gradient: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
            --glass: rgba(15, 23, 42, 0.3);
            --glass-border: rgba(255, 255, 255, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: calc(var(--header-height) + var(--news-nav-height));
            -webkit-overflow-scrolling: touch;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--text);
            background-color: var(--light);
            overflow-x: hidden;
            transition: var(--transition);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        h1, h2, h3, h4, h5, h6 {
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        [data-theme="dark"] h1, 
        [data-theme="dark"] h2, 
        [data-theme="dark"] h3, 
        [data-theme="dark"] h4, 
        [data-theme="dark"] h5, 
        [data-theme="dark"] h6 {
            color: var(--darker);
        }

        p {
            margin-bottom: 1rem;
        }

        a {
            color: var(--primary);
            text-decoration: none;
            transition: var(--transition);
        }

        a:hover, a:focus {
            color: var(--accent);
            outline: 3px solid var(--accent);
            outline-offset: 2px;
        }

        img {
            max-width: 100%;
            height: auto;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .section {
            padding: 80px 0;
            width: 100%;
        }

        .section-title {
            font-size: clamp(1.8rem, 4vw, 2.5rem);
            margin-bottom: 3rem;
            text-align: center;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--gradient);
            border-radius: 2px;
        }

        /* Touch-friendly buttons - Minimum 44px */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            font-size: 0.95rem;
            gap: 8px;
            text-align: center;
            min-height: 44px;
            min-width: 44px;
        }

        .btn-primary {
            background: var(--gradient);
            color: var(--white);
            box-shadow: var(--shadow);
        }

        .btn-primary:hover, .btn-primary:focus {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
            outline: 2px solid var(--white);
        }

        .btn-secondary {
            background: var(--white);
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-secondary:hover, .btn-secondary:focus {
            background: var(--primary);
            color: var(--white);
            outline: 2px solid var(--white);
        }

        .btn-outline {
            background: transparent;
            color: var(--dark);
            border: 2px solid var(--dark);
        }

        [data-theme="dark"] .btn-outline {
            color: var(--darker);
            border-color: var(--darker);
        }

        .btn-outline:hover, .btn-outline:focus {
            background: var(--dark);
            color: var(--light);
            outline: 2px solid var(--light);
        }

        [data-theme="dark"] .btn-outline:hover, [data-theme="dark"] .btn-outline:focus {
            background: var(--darker);
            color: var(--dark);
            outline: 2px solid var(--dark);
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 0.85rem;
            min-height: 40px;
        }

        .btn-icon {
            width: 44px;
            height: 44px;
            padding: 0;
            border-radius: 50%;
        }

        /* Skip to content link */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 6px;
            background: var(--primary);
            color: white;
            padding: 8px;
            text-decoration: none;
            border-radius: 4px;
            z-index: 10000;
            transition: top 0.3s;
            min-height: 44px;
            min-width: 44px;
        }

        .skip-link:focus {
            top: 6px;
            outline: 2px solid white;
        }

        /* Theme Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--gradient);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow-lg);
            transition: var(--transition);
            border: none;
            min-height: 50px;
            min-width: 50px;
        }

        .theme-toggle:hover, .theme-toggle:focus {
            transform: scale(1.1);
            outline: 2px solid white;
        }

        /* Modern Navigation */
        .navbar {
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            transition: var(--transition);
            height: var(--header-height);
            width: 100%;
        }

        @supports not (backdrop-filter: blur(10px)) {
            .navbar {
                background-color: var(--white);
            }
            
            [data-theme="dark"] .navbar {
                background: var(--darker);
            }
        }

        [data-theme="dark"] .navbar {
            background: rgba(30, 41, 59, 0.95);
        }

        .navbar.scrolled {
            height: 70px;
        }

        .navbar.hidden {
            transform: translateY(-100%);
        }

        .navbar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            height: 100%;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo img {
            height: 50px;
            width: auto;
        }

        .logo-text h1 {
            font-size: 1rem;
            margin-bottom: 0;
            color: var(--primary);
            line-height: 1.2;
        }

        .logo-text p {
            font-size: 0.8rem;
            color: var(--text-light);
            margin: 0;
        }


        .nav-links ul {
            display: flex;
            list-style: none;
            gap: 25px;
        }

        .nav-links li {
            position: relative;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text);
            font-weight: 600;
            transition: var(--transition);
            flex-direction: column;
            display: flex;
            align-items: center;
            padding: 8px 0;
            position: relative;
            font-size: 0.8rem;
    border-radius: 8px;
    text-align: center;
    gap: 8px;            
        }

        .nav-links a i {
            margin-right: 0px;
            font-size: 0.9rem;
            margin-bottom: 2px;
            transition: transform 0.1s ease; 
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        .active-link a {
            color: var(--primary);
        }

        .active-link a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--gradient);
        }
.portal-btn {
    background: var(--gradient);
    color: var(--white) !important;
    border-radius: 4px;        /* Slightly tighter radius */
    padding: 6px 15px !important; /* Compact button padding */
    box-shadow: 0 2px 5px rgba(255, 140, 0, 0.2);
    margin-left: 5px;
}

.portal-btn:hover {
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    transform: translateY(-1px);
}

/* Remove underline from button */
.portal-btn::before { display: none; }
/* --- MOBILE TOGGLE & ANIMATION --- */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px; 
    
    /* --- THE FIX IS HERE --- */
    position: relative; /* z-index only works if position is set */
    z-index: 2000;      /* Increased to ensure it is above the mobile menu (1000) */
}

/* Show on mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* --- THE "X" ANIMATION --- */
/* 1. Hide the middle bar */
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

/* 2. Rotate top bar */
.menu-toggle.active .bar:nth-child(1) {
    /* Move down 8px (gap + height) and rotate */
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent); /* Optional: Turns Red when active */
}

/* 3. Rotate bottom bar */
.menu-toggle.active .bar:nth-child(3) {
    /* Move up 8px and rotate */
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent); /* Optional: Turns Red when active */
}

        /* Enhanced Mobile Navigation */
        .mobile-nav-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .mobile-nav-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        /* Page Header */
        .page-header {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            padding: 180px 0 100px;
            text-align: center;
            color: var(--white);
            margin-top: var(--header-height);
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        @supports (-webkit-touch-callout: none) {
            .page-header {
                background-attachment: scroll;
            }
        }

        .page-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gradient);
            opacity: 0.3;
            z-index: 0;
        }

        .page-header .container {
            position: relative;
            z-index: 1;
        }

        .page-header h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: 1.5rem;
            color: var(--white);
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .page-header p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto 2rem;
        }

        .header-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
            margin-top: 40px;
        }

        .header-stat {
            text-align: center;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: var(--radius);
            border: 1px solid rgba(255, 255, 255, 0.2);
            min-width: 150px;
        }

        .header-stat .number {
            display: block;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .header-stat .label {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        /* News Navigation - Fixed to be sticky with disappearing effect */
        .news-nav {
            background: var(--white);
            padding: 20px 0;
            box-shadow: var(--shadow);
            position: sticky;
            top: var(--header-height);
            z-index: 999;
            transition: all 0.4s ease;
            height: var(--news-nav-height);
            display: flex;
            align-items: center;
            width: 100%;
        }

        [data-theme="dark"] .news-nav {
            background: var(--darker);
        }

        .news-nav.hidden {
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
        }

        .news-nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            width: 100%;
        }

        .news-nav ul {
            display: flex;
            list-style: none;
            flex-wrap: wrap;
            gap: 10px;
        }

        .news-nav a {
            text-decoration: none;
            color: var(--text);
            font-weight: 500;
            padding: 12px 20px;
            border-radius: 30px;
            transition: var(--transition);
            background: var(--light);
            min-height: 44px;
            display: inline-flex;
            align-items: center;
        }

        [data-theme="dark"] .news-nav a {
            background: var(--dark);
        }

        .news-nav a:hover,
        .news-nav a:focus,
        .news-nav a.active {
            background: var(--gradient);
            color: var(--white);
            transform: translateY(-2px);
            outline: 2px solid var(--white);
        }

        .search-container {
            display: flex;
            align-items: center;
        }

        .search-box {
            display: flex;
            background: var(--light);
            border-radius: 30px;
            padding: 10px 15px;
            align-items: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        [data-theme="dark"] .search-box {
            background: var(--dark);
        }

        .search-box:focus-within {
            box-shadow: var(--shadow-lg);
            outline: 2px solid var(--primary);
        }

        .search-input {
            border: none;
            background: transparent;
            padding: 5px 10px;
            outline: none;
            width: 200px;
            font-size: 1rem;
            color: var(--text);
        }

        input, textarea, select {
            font-size: 16px;
        }

        .search-btn {
            background: transparent;
            border: none;
            color: var(--primary);
            cursor: pointer;
            padding: 5px;
            transition: var(--transition);
            min-height: 44px;
            min-width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-btn:hover, .search-btn:focus {
            color: var(--accent);
            outline: 2px solid var(--accent);
            border-radius: 50%;
        }

        /* Featured News Section with Disappearing Effect */
        .featured-news {
            padding: 80px 0;
            background: var(--light);
            transition: all 0.5s ease;
            position: relative;
            width: 100%;
        }

        .featured-news.hidden {
            opacity: 0;
            transform: translateY(20px);
            pointer-events: none;
            height: 0;
            padding: 0;
            overflow: hidden;
        }

        .featured-slider {
            position: relative;
            overflow: hidden;
            border-radius: var(--radius);
            box-shadow: var(--shadow-xl);
        }

        .featured-slide {
            position: relative;
            height: 500px;
            display: none;
            overflow: hidden;
        }

        .featured-slide.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .featured-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .featured-slide:hover img {
            transform: scale(1.05);
        }

        .featured-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.9));
            color: var(--white);
            padding: 40px;
        }

        .featured-content h2 {
            color: var(--white);
            font-size: 1.8rem;
            margin-bottom: 15px;
        }

        .featured-content p {
            margin-bottom: 20px;
            opacity: 0.9;
            max-width: 600px;
        }

        .featured-meta {
            display: flex;
            gap: 20px;
            font-size: 0.9rem;
            opacity: 0.8;
            flex-wrap: wrap;
        }

        .featured-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .slider-controls {
            position: absolute;
            bottom: 20px;
            right: 20px;
            display: flex;
            gap: 10px;
        }

        .slider-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--white);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            box-shadow: var(--shadow);
            min-height: 44px;
            min-width: 44px;
        }

        .slider-btn:hover, .slider-btn:focus {
            background: var(--primary);
            color: var(--white);
            transform: scale(1.1);
            outline: 2px solid var(--white);
        }

        .slider-dots {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }

        .slider-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            min-height: 12px;
            min-width: 12px;
        }

        .slider-dot.active {
            background: var(--primary);
            transform: scale(1.2);
        }

        .slider-dot:focus {
            outline: 2px solid var(--primary);
        }

        /* News Grid Section */
        .news-grid-section {
            padding: 80px 0;
            background: var(--white);
            width: 100%;
        }

        [data-theme="dark"] .news-grid-section {
            background: var(--darker);
        }

        .news-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .view-toggle {
            display: flex;
            gap: 10px;
            background: var(--light);
            padding: 5px;
            border-radius: 8px;
        }

        [data-theme="dark"] .view-toggle {
            background: var(--dark);
        }

        .view-btn {
            background: transparent;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            transition: var(--transition);
            color: var(--text-light);
            min-height: 44px;
            min-width: 44px;
        }

        .view-btn.active {
            background: var(--primary);
            color: var(--white);
        }

        .view-btn:hover, .view-btn:focus {
            outline: 2px solid var(--primary);
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
        }

        .news-grid.list-view {
            grid-template-columns: 1fr;
        }

        .news-grid.list-view .news-card {
            display: flex;
            height: 200px;
        }

        .news-grid.list-view .news-image {
            width: 300px;
            height: 100%;
            flex-shrink: 0;
        }

        .news-grid.list-view .news-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .news-card {
            background: var(--white);
            border-radius: var(--radius);
            overflow: hidden;
            transition: var(--transition);
            box-shadow: var(--shadow);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        [data-theme="dark"] .news-card {
            background: var(--darker);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .news-card:hover, .news-card:focus-within {
            transform: translateY(-8px);
            box-shadow: var(--shadow-xl);
        }

        .news-image {
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .news-card:hover .news-image img, .news-card:focus-within .news-image img {
            transform: scale(1.05);
        }

        .image-placeholder {
            background: var(--gradient);
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1.5rem;
        }

        .news-content {
            padding: 25px;
        }

        .news-category {
            display: inline-block;
            padding: 5px 15px;
            background: var(--gradient);
            color: var(--white);
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .news-title {
            font-size: 1.3rem;
            margin-bottom: 15px;
            line-height: 1.4;
        }

        .news-title a {
            color: var(--dark);
            text-decoration: none;
            transition: var(--transition);
        }

        [data-theme="dark"] .news-title a {
            color: var(--text);
        }

        .news-title a:hover, .news-title a:focus {
            color: var(--primary);
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        .news-excerpt {
            color: var(--text-light);
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .news-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: var(--text-light);
        }

        .news-date {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .news-actions {
            display: flex;
            gap: 10px;
        }

        .action-btn {
            background: transparent;
            border: none;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            padding: 5px;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .action-btn:hover, .action-btn:focus {
            color: var(--primary);
            background: rgba(59, 130, 246, 0.1);
            outline: 2px solid var(--primary);
        }

        .action-btn.saved {
            color: var(--accent);
        }

        /* Upcoming Events Section */
        .events-section {
            padding: 80px 0;
            background: var(--light);
            width: 100%;
        }

        .events-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

.calendar-view { display: block; }

        .calendar-view.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        .calendar {
            background: var(--white);
            border-radius: var(--radius);
            padding: 25px;
            box-shadow: var(--shadow);
        }

        [data-theme="dark"] .calendar {
            background: var(--darker);
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 10px;
        }

        .calendar-day {
            text-align: center;
            padding: 10px 5px;
            font-weight: 600;
            color: var(--text-light);
            font-size: 0.9rem;
        }

        .calendar-date {
            text-align: center;
            padding: 10px 5px;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
            min-height: 44px;
            min-width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .calendar-date:hover, .calendar-date:focus {
            background: var(--light);
            outline: 2px solid var(--primary);
        }

        [data-theme="dark"] .calendar-date:hover, [data-theme="dark"] .calendar-date:focus {
            background: var(--dark);
            outline: 2px solid var(--primary);
        }

        .calendar-date.has-event {
            background: rgba(59, 130, 246, 0.1);
            color: var(--primary);
            font-weight: 600;
        }

        .calendar-date.active {
            background: var(--primary);
            color: var(--white);
        }

        .event-card {
            background: var(--white);
            border-radius: var(--radius);
            padding: 25px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border-left: 4px solid var(--secondary);
            position: relative;
            overflow: hidden;
        }

        [data-theme="dark"] .event-card {
            background: var(--darker);
        }

        .event-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gradient);
            opacity: 0;
            transition: var(--transition);
            z-index: 0;
        }

        .event-card:hover, .event-card:focus-within {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .event-card:hover::before, .event-card:focus-within::before {
            opacity: 0.03;
        }

        .event-card > * {
            position: relative;
            z-index: 1;
        }

        .event-date {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .event-day {
            width: 60px;
            height: 60px;
            background: var(--gradient);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-weight: 700;
            flex-shrink: 0;
        }

        .event-day .day {
            font-size: 1.5rem;
            line-height: 1;
        }

        .event-day .month {
            font-size: 0.8rem;
        }

        .event-info h3 {
            color: var(--primary);
            margin-bottom: 10px;
        }

        .event-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 15px;
        }

        .event-detail {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-light);
            font-size: 0.9rem;
        }

        /* Newsletter Section */
        .newsletter-section {
            padding: 80px 0;
            background: var(--gradient);
            color: var(--white);
            text-align: center;
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        .newsletter-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
            background-size: cover;
            background-position: center;
            opacity: 0.1;
        }

        .newsletter-content {
            max-width: 600px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .newsletter-content h2 {
            color: var(--white);
            margin-bottom: 15px;
        }

        .newsletter-content p {
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .newsletter-form {
            display: flex;
            max-width: 500px;
            margin: 0 auto;
            background: var(--white);
            border-radius: 50px;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
        }

        .newsletter-input {
            flex: 1;
            padding: 15px 20px;
            border: none;
            font-size: 1rem;
            outline: none;
            color: var(--text);
        }

        .newsletter-btn {
            background: var(--darker);
            color: var(--white);
            border: none;
            padding: 15px 25px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            white-space: nowrap;
            min-height: 50px;
        }

        .newsletter-btn:hover, .newsletter-btn:focus {
            background: var(--accent);
            outline: 2px solid var(--white);
        }

        /* Modal Styles - Mobile Optimized */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            backdrop-filter: blur(5px);
        }

        .modal.active {
            display: flex;
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: var(--white);
            border-radius: var(--radius);
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-xl);
            animation: modalSlideIn 0.3s ease;
            touch-action: pan-y;
        }

        [data-theme="dark"] .modal-content {
            background: var(--darker);
        }

        @keyframes modalSlideIn {
            from { transform: translateY(-20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-header {
            padding: 20px 25px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        [data-theme="dark"] .modal-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-header h3 {
            margin: 0;
            color: var(--primary);
        }

        .close-modal {
            background: transparent;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-light);
            transition: var(--transition);
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .close-modal:hover, .close-modal:focus {
            color: var(--primary);
            background: rgba(0, 0, 0, 0.05);
            outline: 2px solid var(--primary);
        }

        [data-theme="dark"] .close-modal:hover, [data-theme="dark"] .close-modal:focus {
            background: rgba(255, 255, 255, 0.1);
        }

        .modal-body {
            padding: 25px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text);
        }

        [data-theme="dark"] .form-label {
            color: var(--text);
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            font-size: 1rem;
            transition: var(--transition);
            background: var(--light);
            color: var(--text);
        }

        [data-theme="dark"] .form-control {
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: var(--dark);
            color: var(--text);
        }

        .form-control:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        .modal-footer {
            padding: 20px 25px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        [data-theme="dark"] .modal-footer {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Loading States */
        .loading {
            position: relative;
            overflow: hidden;
        }

        .loading::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Mobile-optimized loading spinner */
        .loading-spinner-mobile {
            display: none;
        }

        /* Social Sharing */
        .social-sharing {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            color: var(--white);
            text-decoration: none;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .social-btn.facebook {
            background: #3b5998;
        }

        .social-btn.twitter {
            background: #1da1f2;
        }

        .social-btn.linkedin {
            background: #0077b5;
        }

        .social-btn.whatsapp {
            background: #25d366;
        }

        .social-btn:hover, .social-btn:focus {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
            outline: 2px solid white;
        }

        /* 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);
        }


        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 90px;
            right: 30px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--gradient);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow-lg);
            transition: var(--transition);
            border: none;
            opacity: 0;
            visibility: hidden;
            z-index: 999;
            min-height: 50px;
            min-width: 50px;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover, .back-to-top:focus {
            transform: translateY(-3px);
            outline: 2px solid white;
        }

        /* Mobile Search Overlay */
        .mobile-search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .mobile-search-overlay.active {
            display: flex;
        }

        .mobile-search-box {
            background: var(--white);
            border-radius: var(--radius);
            padding: 20px;
            width: 100%;
            max-width: 500px;
            box-shadow: var(--shadow-xl);
        }

        .mobile-search-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .mobile-search-input {
            width: 100%;
            padding: 15px;
            border: 2px solid var(--light);
            border-radius: 8px;
            font-size: 1rem;
            outline: none;
            transition: var(--transition);
        }

        .mobile-search-input:focus {
            border-color: var(--primary);
        }

        /* Mobile Search Button */
        .mobile-search-btn {
            display: none;
            background: transparent;
            border: none;
            color: var(--primary);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: var(--transition);
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
        }

        .mobile-search-btn:hover, .mobile-search-btn:focus {
            background: rgba(0, 0, 0, 0.05);
            outline: 2px solid var(--primary);
        }

        /* Screen reader only */
        .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;
        }

        /* Toast Notifications */
        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--white);
            color: var(--text);
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: var(--shadow-lg);
            z-index: 3000;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 90%;
        }

        [data-theme="dark"] .toast {
            background: var(--darker);
            color: var(--text);
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
        }

        .toast.success {
            border-left: 4px solid var(--secondary);
        }

        .toast.error {
            border-left: 4px solid #EF4444;
        }

        .toast i {
            font-size: 1.2rem;
        }

        .toast.success i {
            color: var(--secondary);
        }

        .toast.error i {
            color: #EF4444;
        }

        /* Animation for sections */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section-animate {
            animation: fadeInUp 0.6s ease forwards;
        }

        /* Better focus states for mobile */
        button:focus, 
        a:focus, 
        input:focus, 
        select:focus, 
        textarea:focus {
            outline: 3px solid var(--primary);
            outline-offset: 2px;
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            :root {
                --primary: #000000;
                --secondary: #000000;
                --accent: #000000;
                --light: #ffffff;
                --dark: #000000;
                --text: #000000;
                --text-light: #333333;
                --white: #ffffff;
            }

            .btn-primary, .btn-secondary, .btn-outline {
                border: 2px solid #000000;
            }
        }

        /* Reduced motion support */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            .featured-slide img {
                transition: none;
            }

            .news-card:hover, .event-card:hover {
                transform: none;
            }
        }

        /* Responsive Design - Mobile Optimizations */
        @media (max-width: 1200px) {
            .container {
                max-width: 100%;
                padding: 0 20px;
            }
            
            .news-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
            
            :root {
                --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.12);
                --shadow-xl: 0 6px 12px rgba(0, 0, 0, 0.15);
            }
        }

        @media (max-width: 768px) {
            .section {
                padding: 40px 0;
            }
            
            body {
                font-size: 16px;
                line-height: 1.6;
                letter-spacing: -0.01em;
            }
            
            h1, .page-header h1 {
                font-size: clamp(1.8rem, 5vw, 2.5rem);
                line-height: 1.2;
                letter-spacing: -0.02em;
            }
            
            h2, .section-title {
                font-size: clamp(1.5rem, 4vw, 2rem);
                line-height: 1.3;
            }
            
            h3, .news-title {
                font-size: clamp(1.2rem, 3vw, 1.5rem);
                line-height: 1.4;
            }
            
            p {
                margin-bottom: 1.2rem;
                line-height: 1.7;
            }
            
            .news-excerpt {
                line-height: 1.6;
                font-size: 0.95rem;
            }
            
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 300px;
                height: 100vh;
                background: var(--white);
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
                transition: var(--transition);
                z-index: 1000;
                padding-top: 90px;
                overflow-y: auto;
            }
            
            .nav-links.active {
                right: 0;
            }
            
            .nav-links ul {
                flex-direction: column;
                gap: 0;
                padding: 0 20px;
            }
            
            .nav-links li {
                margin: 0;
                border-bottom: 1px solid rgba(0,0,0,0.05);
            }
            
            .nav-links a {
                padding: 18px 25px;
                display: block;
                font-size: 1.1rem;
            }
            
            .nav-links a i {
                width: 20px;
                text-align: center;
                margin-right: 12px;
                font-size: 1.1rem;
            }
            
            /* Active link indicator for mobile */
            .active-link a {
                background: linear-gradient(90deg, rgba(255,140,0,0.1) 0%, transparent 100%);
                border-left: 4px solid var(--primary);
            }
            
            .active-link a::after {
                display: none;
            }
            
            .menu-toggle {
                display: flex;
            }
            .search-container {
                display: none;
            }
            
            .featured-slide {
                height: 350px;
            }
            
            .featured-content {
                padding: 15px;
            }
            
            .featured-content h2 {
                font-size: 1.5rem;
            }
            
            .news-grid.list-view .news-card {
                flex-direction: column;
                height: auto;
            }
            
            .news-grid.list-view .news-image {
                width: 100%;
                height: 200px;
            }
            
            .events-grid {
                grid-template-columns: 1fr;
            }
            
            .newsletter-form {
                flex-direction: column;
                border-radius: 12px;
            }
            
            .newsletter-input {
                border-radius: 12px 12px 0 0;
                margin-bottom: 0;
            }
            
            .newsletter-btn {
                border-radius: 0 0 12px 12px;
                width: 100%;
            }
            
            .modal-content {
                width: 95%;
                margin: 10px auto;
                max-height: 85vh;
                border-radius: 16px 16px 0 0;
                position: fixed;
                bottom: 0;
                top: auto;
                animation: modalSlideUp 0.3s ease;
            }
            
            @keyframes modalSlideUp {
                from { transform: translateY(100%); }
                to { transform: translateY(0); }
            }
            
            .modal-header {
                position: sticky;
                top: 0;
                background: inherit;
                z-index: 1;
            }
            
            .modal-footer {
                position: sticky;
                bottom: 0;
                background: inherit;
                padding: 15px 20px;
                gap: 10px;
            }
            
            .modal-footer .btn {
                flex: 1;
                min-height: 50px;
                font-size: 1rem;
            }
            
            .close-modal {
                width: 44px;
                height: 44px;
                font-size: 1.5rem;
            }
            
            .loading-spinner-mobile {
                display: block;
                width: 30px;
                height: 30px;
                border: 3px solid var(--light);
                border-top: 3px solid var(--primary);
                border-radius: 50%;
                animation: spin 1s linear infinite;
                margin: 20px auto;
            }
            
            @keyframes spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }
            
            .error-message-mobile {
                background: rgba(239, 68, 68, 0.1);
                border-left: 4px solid #EF4444;
                padding: 15px;
                margin: 15px 0;
                border-radius: 8px;
                font-size: 0.95rem;
            }

            .header-stats {
                gap: 15px;
            }

            .header-stat {
                min-width: 120px;
                padding: 15px;
            }

            .header-stat .number {
                font-size: 2rem;
            }

            .page-header {
                padding: 150px 0 80px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 15px;
            }

            .news-grid {
                grid-template-columns: 1fr;
            }

            .header-stats {
                gap: 10px;
            }

            .header-stat {
                min-width: calc(50% - 10px);
                padding: 12px;
            }

            .featured-slide {
                height: 300px;
            }

            .featured-content {
                padding: 20px;
            }

            .featured-content h2 {
                font-size: 1.2rem;
            }

            .theme-toggle, .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
            }

            .back-to-top {
                bottom: 80px;
            }

            .page-header {
                padding: 120px 0 60px;
            }

            .page-header h1 {
                font-size: clamp(2rem, 5vw, 3rem);
            }

            .page-header p {
                font-size: 1rem;
            }
        }
        /* The hidden full text */
.full-text {
    display: none;
    font-size: 0.9rem; /* Reduced size */
    line-height: 1.4;
    margin-top: 10px;
    animation: fadeIn 0.4s ease;
}

/* When the card has the 'is-expanded' class */
.news-card.is-expanded .full-text {
    display: block;
}

.news-card.is-expanded .news-excerpt {
    display: none; /* Hide the short summary */
}
/* Compact Reading Mode for Full Articles */
#article-modal-content p {
    font-size: 0.95rem; /* Slightly smaller than the 1rem base */
    line-height: 1.5;   /* Tightened for better density */
    color: var(--text);
    margin-bottom: 1.2rem;
}

/* Ensure headings inside the expanded view stay prominent */
#article-modal-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    color: var(--primary);
}
/* 1. Fix the Scroll: Allow the backdrop to scroll if content is too tall */
.modal {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto; /* Allows scrolling if content is long */
    padding: 20px 10px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: block; /* Change from flex to block to support overflow-y */
}


/* 2. Adjust alignment: Use margin instead of justify-center for tall content */
.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    margin: 30px auto; /* Centering horizontally, giving space at top/bottom */
    position: relative;
    box-shadow: var(--shadow-xl);
}

/* 3. Reduce Font Size for "Read More" Content */
#article-modal-content {
    font-size: 0.92rem; /* Reduced from default 1rem/16px */
    line-height: 1.6;
    color: var(--text);
}

#article-modal-content p {
    margin-bottom: 1.2rem;
}

/* Ensure images inside expanded view don't break layout */
#article-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}
 /* 1. Improved News Excerpt (The "Half-Visible" Logic) */
.news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show exactly 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
    margin-bottom: 10px;
}

/* 2. When the card is expanded, show all text */
.news-card.is-expanded .news-excerpt {
    display: block;
    -webkit-line-clamp: initial;
}

/* 3. Fix for List View Height (The issue I found) */
@media (max-width: 768px) {
    .news-grid.list-view .news-card {
        height: auto !important; /* Allow card to grow with content */
        min-height: 200px;
    }
}

/* 4. Button styling for the toggle */
.read-more-toggle {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-toggle i {
    transition: transform 0.3s ease;
}

.news-card.is-expanded .read-more-toggle i {
    transform: rotate(180deg);
}
/* The container for the dates */
#calendar-dates {
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 1;
    transform: translateY(0);
}

/* The state triggered during the month switch */
.calendar-fade {
    opacity: 0;
    transform: translateY(10px);
}

/* Hover effect for individual dates to make them feel interactive */
.calendar-date:not(:empty):hover {
    background-color: var(--light);
    color: var(--primary);
    transform: scale(1.1);
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10;
}

/* Special styling for the active (current) day */
.calendar-date.active {
    background: var(--gradient) !important;
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
}
/* Ensure the calendar is hidden by default if the 'List' button is active */
#events-calendar {
    display: none;
    width: 100%;
}

/* Ensure the list is visible by default */
#events-list {
    display: grid;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Shared styles for buttons and numbers */
.pagination-btn, 
.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px; /* Touch-friendly size */
    box-shadow: var(--shadow);
}

/* Specific style for Previous/Next buttons */
.pagination-btn {
    padding: 0 20px;
    gap: 8px;
}

/* Specific style for Numbers (Square aspect) */
.pagination-number {
    width: 44px;
}

/* Hover Effects */
.pagination-btn:hover, 
.pagination-number:hover,
.pagination-btn:focus, 
.pagination-number:focus {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    outline: none;
}

/* Active Page Style */
.pagination-number.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    pointer-events: none; /* Disable clicking the current page */
}

/* Ellipsis (...) */
.pagination-ellipsis {
    color: var(--text-light);
    font-weight: 600;
    padding: 0 5px;
}

/* Dark Mode Support */
[data-theme="dark"] .pagination-btn, 
[data-theme="dark"] .pagination-number {
    background: var(--darker);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

[data-theme="dark"] .pagination-btn:hover, 
[data-theme="dark"] .pagination-number:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .pagination-number.active {
    color: var(--white);
    background: var(--gradient);
}
/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Shared styles for buttons and numbers */
.pagination-btn, 
.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px; /* Touch-friendly size */
    box-shadow: var(--shadow);
}

/* Specific style for Previous/Next buttons */
.pagination-btn {
    padding: 0 20px;
    gap: 8px;
}

/* Specific style for Numbers (Square aspect) */
.pagination-number {
    width: 44px;
}

/* Hover Effects */
.pagination-btn:hover, 
.pagination-number:hover,
.pagination-btn:focus, 
.pagination-number:focus {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    outline: none;
}

/* Active Page Style */
.pagination-number.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    pointer-events: none; /* Disable clicking the current page */
}

/* Ellipsis (...) */
.pagination-ellipsis {
    color: var(--text-light);
    font-weight: 600;
    padding: 0 5px;
}

/* Dark Mode Support */
[data-theme="dark"] .pagination-btn, 
[data-theme="dark"] .pagination-number {
    background: var(--darker);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

[data-theme="dark"] .pagination-btn:hover, 
[data-theme="dark"] .pagination-number:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .pagination-number.active {
    color: var(--white);
    background: var(--gradient);
}
/* High-Quality Verification Badges */
.v-badge {
    font-size: 14px;
    margin-left: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Specific Brand Colors */
.v-gold { color: #FFD700; filter: drop-shadow(0 0 1px rgba(0,0,0,0.2)); } /* Gold Seal */
.v-green { color: #2ecc71; } /* Verified Green */
.v-blue { color: #1DA1F2; } /* Twitter Blue */

/* Inside Checkmark (White) */
.v-badge .fa-check {
    position: absolute;
    font-size: 7px;
    color: white;
    font-weight: 900;
}