
        :root {
            --primary: #a40028;
            --secondary: #8B0000;
            --accent: #FFD700;
            --light: #F8F9FA;
            --dark: #212529;
            --text-color: #333;
            --light-gray: #f8f9fa;
            --white: #ffffff;
            --border-radius: 8px;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--light-gray);
            color: var(--text-color);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Header Styles */
        .top-bar {
            background: var(--primary);
            color: white;
            padding: 10px 30px;
            font-size: 0.9em;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .top-bar i {
            margin-right: 8px;
            color: var(--accent);
        }

        .logo-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: white;
            padding: 20px 30px;
            min-height: 200px;
            box-shadow: var(--shadow);
            position: relative;
            gap: 40px;
        }

        .logo-bar::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
        }

        .logo-container {
            display: flex;
            align-items: center;
            width: 25%;
            gap: 20px;
        }

        .left-logo {
            justify-content: flex-end;
            padding-right: 30px;
        }

        .right-logo {
            justify-content: flex-start;
            padding-left: 30px;
        }

        .zsnhs-logo {
            height: 150px;
            width: auto;
            object-fit: contain;
            max-width: 220px;
        }

        .deped-logo {
            height: 150px;
            width: auto;
            object-fit: contain;
            max-width: 220px;
        }

        .title-container {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            padding: 0 20px;
        }

        .school-name {
            text-align: center;
        }

        .school-name h1 {
            color: var(--primary);
            font-size: 2.5em;
            margin: 0;
            font-weight: 800;
            line-height: 1.2;
            text-transform: uppercase;
        }

        /* Navigation Styles with Dropdown */
        nav {
            background: linear-gradient(135deg, var(--primary), #002244);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .nav-links {
            display: flex;
            list-style: none;
            justify-content: center;
            padding: 0 30px;
            margin: 0;
            position: relative;
        }

        .nav-links>li {
            position: relative;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.85em;
            letter-spacing: 1px;
            padding: 18px 22px;
            display: block;
            transition: var(--transition);
        }

        .nav-links a:hover {
            color: var(--accent);
        }

        /* Dropdown Menu Styles */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 220px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            border-radius: 0 0 8px 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .dropdown-menu li {
            width: 100%;
        }

        .dropdown-menu a {
            color: var(--dark);
            padding: 12px 20px;
            border-bottom: 1px solid #f0f0f0;
            text-transform: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .dropdown-menu a:hover {
            background: var(--light-gray);
            color: var(--primary);
        }

        .dropdown-menu a i {
            width: 16px;
            text-align: center;
        }

        .nav-links li:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Latest News Section */
        .latest-news-section {
            padding: 60px 30px;
            background-color: #f9f9f9;
            flex: 1;
        }

        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-header h2 {
            color: var(--primary);
            font-size: 2.5em;
            text-transform: uppercase;
            position: relative;
            display: inline-block;
            padding-bottom: 15px;
            font-weight: 700;
        }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--accent);
            border-radius: 2px;
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .news-card {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .news-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .news-image-container {
            position: relative;
            overflow: hidden;
            height: 200px;
            cursor: pointer;
        }

        .news-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .news-card:hover .news-image {
            transform: scale(1.05);
        }

        .news-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--primary);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.75em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .news-content {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .news-date {
            color: #666;
            font-size: 0.85em;
            margin-bottom: 12px;
            display: block;
            font-weight: 500;
        }

        .news-title {
            font-size: 1.3em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 12px;
            line-height: 1.4;
        }

        .news-excerpt {
            color: #555;
            line-height: 1.6;
            margin-bottom: 20px;
            font-size: 0.95em;
            flex-grow: 1;
            overflow: hidden;
            position: relative;
        }

        .news-excerpt.collapsed {
            max-height: 4.8em; /* Show 3 lines of text (1.6 line-height * 3) */
        }

        .news-excerpt.expanded {
            max-height: none;
        }

        .read-more {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            transition: var(--transition);
            margin-top: auto;
            cursor: pointer;
            border: none;
            background: none;
            font-size: inherit;
            padding: 0;
        }

        .read-more:hover {
            color: var(--secondary);
        }

        .read-more i {
            margin-left: 8px;
            transition: var(--transition);
        }

        .read-more:hover i {
            transform: translateX(5px);
        }

        .loading-message {
            text-align: center;
            padding: 40px;
            color: var(--primary);
            font-style: italic;
            grid-column: 1 / -1;
        }

        .error-message {
            text-align: center;
            padding: 40px;
            color: #dc3545;
            font-style: italic;
            grid-column: 1 / -1;
        }

        /* Image Modal Styles */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(5px);
            overflow: hidden;
        }

        .image-modal-content {
            position: relative;
            margin: auto;
            display: block;
            width: 90%;
            max-width: 1200px;
            max-height: 90vh;
            top: 50%;
            transform: translateY(-50%);
            animation: zoomIn 0.3s ease-out;
        }

        @keyframes zoomIn {
            from {
                opacity: 0;
                transform: translateY(-50%) scale(0.8);
            }
            to {
                opacity: 1;
                transform: translateY(-50%) scale(1);
            }
        }

        .modal-image {
            width: 100%;
            height: auto;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 8px;
        }

        .image-modal-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: var(--transition);
            background: rgba(0,0,0,0.5);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10001;
        }

        .image-modal-close:hover {
            background: rgba(0,0,0,0.8);
            transform: scale(1.1);
        }

        .image-modal-caption {
            position: absolute;
            bottom: 20px;
            left: 0;
            width: 100%;
            text-align: center;
            color: white;
            font-size: 1.2em;
            font-weight: 600;
            padding: 15px;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
        }

        /* Footer Styles */
        footer {
            background: linear-gradient(135deg, var(--primary), #a40028);
            color: white;
            padding: 20px 30px 20px;
        }

        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-section h3 {
            color: var(--accent);
            font-size: 1.3em;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--primary);
        }

        .footer-section p {
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            color: white;
            font-size: 1.2em;
            transition: var(--transition);
        }

        .social-links a:hover {
            color: var(--accent);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        .footer-links a::before {
            content: '» ';
            color: var(--accent);
        }

        .contact-info {
            list-style: none;
        }

        .contact-info li {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
        }

        .contact-info i {
            margin-right: 10px;
            color: var(--accent);
            margin-top: 4px;
        }

        .newsletter-form {
            display: flex;
            margin-top: 20px;
        }

        .newsletter-form input {
            padding: 12px;
            border: none;
            flex: 1;
            font-size: 0.9em;
            border-radius: 4px 0 0 4px;
        }

        .newsletter-form button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0 20px;
            cursor: pointer;
            transition: var(--transition);
            border-radius: 0 4px 4px 0;
        }

        .newsletter-form button:hover {
            background: var(--secondary);
        }

        .copyright {
            text-align: center;
            margin-top: 50px;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 0.9em;
        }

        .empty-state, .error-state, .no-events {
            text-align: center;
            padding: 60px 20px;
            color: #666;
            grid-column: 1 / -1;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .news-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .top-bar {
                flex-direction: column;
                gap: 8px;
                padding: 12px 15px;
                text-align: center;
            }

            .logo-bar {
                flex-direction: column;
                gap: 20px;
            }

            .logo-container {
                width: 100%;
                justify-content: center;
                padding: 0;
            }

            .school-name h1 {
                font-size: 1.8em;
            }

            .nav-links {
                flex-direction: column;
                padding: 0;
            }

            .nav-links>li {
                width: 100%;
                text-align: center;
            }

            /* Mobile Dropdown Styles */
            .dropdown-menu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                background: rgba(255,255,255,0.1);
                display: none;
            }

            .nav-links li:hover .dropdown-menu {
                display: block;
            }

            .dropdown-menu a {
                color: white;
                border-bottom: 1px solid rgba(255,255,255,0.1);
            }

            .dropdown-menu a:hover {
                background: rgba(255,255,255,0.1);
                color: var(--accent);
            }

            .latest-news-section {
                padding: 40px 20px;
            }

            .section-header h2 {
                font-size: 2em;
            }

            .news-grid {
                grid-template-columns: 1fr;
            }

            .footer-container {
                grid-template-columns: 1fr;
            }

            .image-modal-content {
                width: 95%;
            }

            .image-modal-close {
                top: 10px;
                right: 15px;
                font-size: 30px;
                width: 40px;
                height: 40px;
            }
        }

        @media (max-width: 576px) {
            .section-header h2 {
                font-size: 1.8em;
            }
            
            .news-content {
                padding: 20px;
            }

            .image-modal-caption {
                font-size: 1em;
                padding: 10px;
            }
        }

