.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 2;
}

.wave-animation svg {
    width: 100%;
    height: 100%;
}

/* News Section Styles */
.news-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    z-index: 2;
}

.news-card {
    height: 100%;
    transition: transform 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e3a5f;
}

.news-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.news-read-more {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-read-more:hover {
    color: #0056b3;
}

#loadMoreNews {
    margin-top: 2rem;
    padding: 0.75rem 2rem;
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    margin: 2rem auto;
}
   



        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
            width: 100%;
        }

        body {
            font-family: 'Poppins', sans-serif;
            position: relative;
            width: 100%;
            max-width: 100vw;
        }

        :root {
            --primary-blue: #1e3a5f;
            --secondary-blue: #2c5282;
            --accent-red: #c53030;
            --light-bg: #f7fafc;
            --dark-text: #2d3748;
        }

        /* Floating shapes background */
        .floating-shapes {
            position: fixed;
            width: 100%;
            height: 100vh;
            top: 0;
            left: 0;
            z-index: -1;
            overflow: hidden;
        }

        .shape {
            position: absolute;
            opacity: 0.05;
            animation: float 20s infinite ease-in-out;
        }

        .shape:nth-child(1) {
            top: 10%;
            left: 10%;
            width: 80px;
            height: 80px;
            background: var(--primary-blue);
            border-radius: 50%;
            animation-delay: 0s;
        }

        .shape:nth-child(2) {
            top: 60%;
            right: 10%;
            width: 120px;
            height: 120px;
            background: var(--accent-red);
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
            animation-delay: 2s;
        }

        .shape:nth-child(3) {
            bottom: 20%;
            left: 15%;
            width: 100px;
            height: 100px;
            background: var(--secondary-blue);
            border-radius: 20px;
            transform: rotate(45deg);
            animation-delay: 4s;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            25% { transform: translateY(-30px) rotate(5deg); }
            50% { transform: translateY(-60px) rotate(-5deg); }
            75% { transform: translateY(-30px) rotate(3deg); }
        }

        /* Replace .navbar style */
.navbar {
    transition: all 0.4s ease;
    padding: 0.6rem 0;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}


.navbar.scrolled {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 4px 40px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--primary-blue);
            transition: all 0.3s;
        }

        .navbar-brand:hover {
            transform: translateX(5px);
        }

        .logo-circle {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            padding: 4px;
            box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
            transition: all 0.3s;
            overflow: hidden;
        }

        .navbar-logo-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .logo-circle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
        }

        .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 0.6rem;
    padding: 0.4rem 0.2rem;
    position: relative;
    transition: color 0.4s ease, all 0.3s;
    font-size: 0.85rem;
    cursor: pointer;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before {
    width: 80%;
}


.nav-link.active {
    color: var(--primary-blue) !important;
    font-weight: 600;
}
.nav-link.active::before {
    width: 80%;
}


/* Only show underline on active nav-link if its section is visible (handled by JS or scrollspy). Remove forced underline. */

        /* Auth Button Styles */
        .auth-buttons {
            display: flex;
            align-items: center;
        }

        .btn-auth {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 20px;
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            color: white;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
            position: relative;
            overflow: hidden;
            border: 2px solid transparent;
            white-space: nowrap;
        }

        .btn-auth::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(197, 48, 48, 0.4), transparent);
            transition: left 0.5s;
        }

        .btn-auth:hover::before {
            left: 100%;
        }

        .btn-auth:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
            color: white;
            border-color: rgba(255, 255, 255, 0.3);
        }

        .btn-auth:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(30, 58, 95, 0.3);
        }

        /* Government Seals Styling */
        .gov-seals {
            padding: 0 15px;
            border-left: 2px solid rgba(30, 58, 95, 0.1);
            border-right: 2px solid rgba(30, 58, 95, 0.1);
        }

        .seal-img {
            width: 32px;
            height: 32px;
            object-fit: contain;
            transition: all 0.3s ease;
            filter: grayscale(20%);
        }

        .seal-img:hover {
            transform: scale(1.15) rotate(5deg);
            filter: grayscale(0%);
        }

        /* Brand text styling */
        .brand-text {
            display: flex;
            flex-direction: column;
            line-height: 1.2;
        }

        .brand-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin: 0;
            transition: color 0.4s ease;
        }

        .brand-subtitle {
            font-size: 0.7rem;
            color: #718096;
            font-weight: 500;
            transition: color 0.4s ease;
        }

        @media (min-width: 993px) {
            .brand-title {
                color: white;
                text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            }

            .brand-subtitle {
                color: rgba(255, 255, 255, 0.85);
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            }

            .nav-link {
                color: rgba(255, 255, 255, 0.95) !important;
                text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            }

            .navbar.scrolled .brand-title {
                color: var(--primary-blue);
                text-shadow: none;
            }

            .navbar.scrolled .brand-subtitle {
                color: #718096;
                text-shadow: none;
            }

            .navbar.scrolled .nav-link {
                color: var(--dark-text) !important;
                text-shadow: none;
            }
        }

        .btn-auth i {
            font-size: 1rem;
            transition: transform 0.3s;
        }

        .btn-auth:hover i {
            transform: translateX(-3px);
        }

        /* Hero Section */
        .hero-section {
            min-height: 100vh;
            background: 
                linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(197, 48, 48, 0.75) 100%),
                url('../../../uploads/BarangayHall.png') center center / cover no-repeat fixed;
            display: flex;
            align-items: center;
            position: relative;
            padding: 110px 0 80px;
            overflow: hidden;
            will-change: transform;
        }
        
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
            z-index: 1;
        }
        
        .hero-section::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 200px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
            z-index: 1;
        }

        .hero-content {
            text-align: center;
            color: #ffffff;
            z-index: 2;
            animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1);
            will-change: transform, opacity;
            position: relative;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(255, 255, 255, 0.95);
            padding: 10px 26px;
            border-radius: 50px;
            font-weight: 600;
            color: var(--primary-blue);
            margin-bottom: 1.618rem;
            font-size: 0.875rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            border: 2px solid rgba(255, 255, 255, 0.3);
            animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.1s both;
            will-change: transform, opacity;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        .hero-content h1 {
            font-size: 4.236rem;
            font-weight: 700;
            margin-bottom: 1.618rem;
            color: #ffffff;
            line-height: 1.2;
            animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.2s both;
            will-change: transform, opacity;
            position: relative;
            text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4),
                         0 0 30px rgba(255, 255, 255, 0.1);
        }

        @keyframes shine {
            0% {
                background-position: -200% 0, 0 0;
            }
            100% {
                background-position: 200% 0, 0 0;
            }
        }

        .hero-subtitle {
            font-size: 1.618rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 1rem;
            animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.3s both;
            will-change: transform, opacity;
            text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
        }

        .hero-tagline {
            font-size: 1.125rem;
            font-style: italic;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2.618rem;
            animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.4s both;
            will-change: transform, opacity;
            text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
        }

        .hero-buttons {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.5s both;
            will-change: transform, opacity;
        }

        .hero-buttons .btn-custom {
            min-width: 280px;
            text-align: center;
        }

        .btn-custom {
            padding: 16px 45px;
            margin: 0;
            border-radius: 50px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            position: relative;
            overflow: hidden;
            z-index: 1;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
        }

        .btn-custom::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
            z-index: -1;
        }

        .btn-custom:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-primary-custom {
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            color: white;
            box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
        }

        .btn-primary-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(30, 58, 95, 0.4);
            color: white;
        }

        .btn-outline-white {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
        }

        .btn-outline-white:hover {
            background: white;
            color: var(--primary-blue);
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(255, 255, 255, 0.4);
        }

        /* Scroll Down Indicator */
        .scroll-down-indicator {
            position: fixed;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: white;
            cursor: pointer;
            animation: bounce 2s infinite;
            z-index: 10;
        }

        @media (min-width: 993px) {
            .scroll-down-indicator {
                display: flex;
            }
        }

        .scroll-down-indicator span {
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .mouse-icon {
            width: 28px;
            height: 45px;
            border: 2px solid white;
            border-radius: 15px;
            position: relative;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        }

        .mouse-wheel {
            width: 4px;
            height: 10px;
            background: white;
            border-radius: 2px;
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            animation: scroll-wheel 1.5s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateX(-50%) translateY(0);
            }
            40% {
                transform: translateX(-50%) translateY(-10px);
            }
            60% {
                transform: translateX(-50%) translateY(-5px);
            }
        }

        @keyframes scroll-wheel {
            0% {
                opacity: 1;
                top: 8px;
            }
            100% {
                opacity: 0;
                top: 24px;
            }
        }

        .scroll-down-indicator:hover {
            color: white;
        }

        /* Hero Logos Arrangement */
        .hero-logos-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2.618rem;
        }

        .matatag-logo-hero {
            width: 360px;
            height: auto;
            filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
        }

        /* Prevent overlap on small screens: reduce button padding and add gaps */
        @media (max-width: 768px) {
            /* Fix body overflow */
            body {
                overflow-x: hidden !important;
            }
            
            /* Fix all sections to prevent overflow */
            section, .container, .row {
                max-width: 100%;
                overflow-x: hidden;
            }
            
            /* Navbar fixes for mobile - similar to dashboard */
            .navbar {
                padding: 0.8rem 0;
            }
            
            .navbar .container {
                padding: 0 15px;
            }
            
            .navbar-toggler {
                border: 2px solid var(--primary-blue);
                padding: 0.4rem 0.6rem;
                border-radius: 8px;
            }
            
            .navbar-toggler:focus {
                box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.25);
            }
            
            .navbar-toggler-icon {
                width: 1.5rem;
                height: 1.5rem;
            }
            
            .navbar-brand {
                font-size: 1rem;
                gap: 10px;
            }
            
            .logo-circle {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .brand-title {
                font-size: 0.95rem !important;
            }
            
            .brand-subtitle {
                font-size: 0.75rem !important;
            }
            
            /* Collapsed navbar menu styling */
            .navbar-collapse {
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(20px);
                margin-top: 0.8rem;
                padding: 1rem;
                border-radius: 12px;
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            }
            
            .nav-link {
                display: block;
                width: 100%;
                padding: 0.7rem 1rem !important;
                margin: 0.2rem 0;
                border-radius: 8px;
                text-align: center;
            }
            
            .nav-link::before {
                display: none;
            }
            
            .nav-link:hover {
                background: rgba(30, 58, 95, 0.05);
            }
            
            .navbar-nav {
                margin-bottom: 1rem;
            }

            /* Auth button mobile styles */
            .auth-buttons {
                width: 100%;
                margin: 0.5rem 0;
                padding: 0 0.5rem;
            }

            .btn-auth {
                width: 100%;
                justify-content: center;
                padding: 0.8rem 1.5rem;
                font-size: 0.9rem;
            }
            
            .btn-login, .btn-register {
                width: 100%;
                margin: 0.3rem 0 !important;
                padding: 0.7rem 1rem !important;
                font-size: 0.85rem !important;
            }
            
            /* Hero section mobile fixes */
            .hero-section {
                min-height: auto;
                padding: 140px 0 60px;
                background: 
                    linear-gradient(135deg, rgba(30, 58, 95, 0.88) 0%, rgba(197, 48, 48, 0.78) 100%),
                    url('../../../uploads/BarangayHall.png') center center / cover no-repeat;
            }
            
            /* Matatag logo mobile responsiveness */
            .matatag-logo-wrapper {
                margin-bottom: 1.5rem !important;
                margin-top: 20px !important;
            }
            
            .matatag-logo {
                width: 250px !important;
            }
            
            .hero-content h1 {
                font-size: 2.2rem !important;
                line-height: 1.2;
            }
            
            .hero-subtitle {
                font-size: 1.1rem !important;
            }
            
            .hero-tagline {
                font-size: 1rem !important;
                margin-bottom: 2rem;
            }
            
            .hero-badge {
                font-size: 0.75rem;
                padding: 8px 20px;
            }
            
            /* Button fixes */
            .btn-custom {
                padding: 12px 24px;
                margin: 8px 5px;
                font-size: 0.85rem;
            }

            /* Rows and columns */
            .row {
                row-gap: 1rem;
                margin-left: 0;
                margin-right: 0;
            }
            
            .row > * {
                padding-left: 10px;
                padding-right: 10px;
            }

            /* Hero buttons */
            .hero-buttons { 
                display: flex; 
                flex-wrap: wrap; 
                justify-content: center; 
                gap: 0.5rem; 
            }

            /* Hero logos responsive */
            .hero-logos-wrapper {
                margin-bottom: 1.5rem;
                margin-top: 3rem;
            }

            .matatag-logo-hero {
                width: 200px;
            }
            
            /* Section padding */
            .section-title {
                font-size: 2.2rem;
            }
            
            section {
                padding: 60px 0 !important;
            }
            
            .stats-section {
                padding: 60px 0 !important;
            }
            
            /* Container */
            .container {
                padding-left: 20px;
                padding-right: 20px;
            }
            
            /* Images */
            img {
                max-width: 100%;
                height: auto;
            }
            
            /* Cards */
            .card, .project-card, .official-card, .announcement-card {
                margin-bottom: 1.5rem;
            }
        }

        /* Extra small devices */
        @media (max-width: 576px) {
            .navbar-brand {
                font-size: 0.9rem;
            }
            
            .logo-circle {
                width: 35px;
                height: 35px;
                font-size: 0.9rem;
            }
            
            /* Matatag logo for small phones */
            .matatag-logo {
                width: 200px !important;
            }
            
            .hero-content h1 {
                font-size: 1.8rem !important;
            }
            
            .hero-subtitle {
                font-size: 1rem !important;
            }
            
            .btn-custom {
                padding: 10px 20px;
                font-size: 0.8rem;
            }
            
            .container {
                padding-left: 15px;
                padding-right: 15px;
            }
        }

        /* Add safe bottom margin to card-like items to avoid visual overlap */
        .project-card, .official-card, .announcement-card, .gallery-item, .contact-card, .news-card {
            margin-bottom: 1rem;
        }

        /* Keep card internals from collapsing: ensure min-height for cards where appropriate */
        .project-card, .announcement-card, .news-card {
            min-height: 220px;
        }

        .btn-outline-custom {
            background: white;
            color: var(--accent-red);
            border: 2px solid var(--accent-red);
            box-shadow: 0 4px 15px rgba(197, 48, 48, 0.15);
            padding: 10px 28px !important;
            font-size: 0.85rem !important;
            letter-spacing: 0.5px !important;
        }

        .btn-outline-custom:hover {
            background: var(--accent-red);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(197, 48, 48, 0.3);
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Stats Section */
        .stats-section {
            padding: 50px 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            position: relative;
            overflow: hidden;
        }
        
        .stats-section::before {
            content: '';
            position: absolute;
            top: -100px;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
            z-index: 1;
        }
        
        .stats-section::after {
            content: '';
            position: absolute;
            bottom: -100px;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
            z-index: 1;
        }

        .stat-card {
            text-align: center;
            padding: 25px 20px;
            position: relative;
            z-index: 1;
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            transition: all 0.4s ease;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .stat-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .stat-number i {
            background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 2rem;
        }

        .stat-label {
            font-size: 0.8rem;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
        }

        /* About Section */
        .about-section {
            padding: 60px 0;
            background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
            position: relative;
            overflow: hidden;
        }
        
        .about-section::before {
            content: '';
            position: absolute;
            top: -150px;
            right: -100px;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(30, 58, 95, 0.04) 0%, transparent 70%);
            border-radius: 50%;
        }
        
        .about-section::after {
            content: '';
            position: absolute;
            bottom: -150px;
            left: -100px;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(197, 48, 48, 0.03) 0%, transparent 70%);
            border-radius: 50%;
        }

        .section-header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            z-index: 1;
        }

        .section-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: linear-gradient(135deg, rgba(30, 58, 95, 0.1), rgba(197, 48, 48, 0.1));
            padding: 8px 24px;
            border-radius: 50px;
            font-weight: 600;
            color: var(--primary-blue);
            margin-bottom: 1rem;
            font-size: 0.75rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            border: 2px solid rgba(30, 58, 95, 0.15);
            box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
            transition: all 0.3s;
        }

        .section-badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(30, 58, 95, 0.2);
            border-color: var(--primary-blue);
        }

        .section-badge i {
            font-size: 1rem;
        }

        .section-title {
            font-size: 2.2rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.8rem;
        }

        .section-subtitle {
            font-size: 0.95rem;
            color: #718096;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .about-img-wrapper {
            position: relative;
            border-radius: 25px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.12);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
        }
        
        .about-img-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(30, 58, 95, 0.1), rgba(197, 48, 48, 0.08));
            opacity: 0;
            transition: opacity 0.5s;
            z-index: 1;
        }

        .about-img-wrapper:hover {
            transform: translateY(-12px);
            box-shadow: 0 30px 80px rgba(0,0,0,0.18);
        }
        
        .about-img-wrapper:hover::before {
            opacity: 1;
        }

        .about-img {
            width: 100%;
            height: 350px;
            object-fit: cover;
            transition: all 0.5s;
            display: block;
        }



        .about-img-wrapper:hover .about-img {
            transform: scale(1.08);
        }

        .about-content {
            padding-left: 40px;
            position: relative;
            z-index: 1;
        }

        .about-text {
            font-size: 0.95rem;
            line-height: 1.7;
            color: #4a5568;
            margin-bottom: 18px;
            position: relative;
            padding-left: 16px;
        }
        
        .mission-vision-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 18px;
            margin-top: 25px;
        }

        .mv-card {
            background: white;
            padding: 25px;
            border-radius: 18px;
            border: 2px solid transparent;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 6px 25px rgba(0,0,0,0.08);
        }

        .mv-card::after {
            content: '';
            position: absolute;
            bottom: -100%;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(135deg, rgba(30, 58, 95, 0.03), rgba(197, 48, 48, 0.03));
            transition: bottom 0.4s;
            z-index: 0;
        }

        .mv-card:hover {
            transform: translateY(-8px);
            border-color: var(--accent-red);
            box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        }
        
        .mv-card:hover::after {
            bottom: 0;
        }

        .mv-icon {
            width: 55px;
            height: 55px;
            background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.4rem;
            margin-bottom: 16px;
            box-shadow: 0 8px 25px rgba(197, 48, 48, 0.25);
            position: relative;
            z-index: 1;
            transition: all 0.4s;
        }
        
        .mv-card:hover .mv-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .mv-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 12px;
            position: relative;
            z-index: 1;
        }

        .mv-text {
            color: #4a5568;
            line-height: 1.6;
            font-size: 0.88rem;
            position: relative;
            z-index: 1;
        }

        /* Projects Section */
        .projects-section {
            padding: 120px 0;
            background: var(--light-bg);
        }

        .project-card {
            background: white;
            border-radius: 25px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.08);
            transition: all 0.4s;
            margin-bottom: 30px;
            border: 2px solid transparent;
            height: 100%;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            border-color: var(--primary-blue);
        }

        .project-img {
            width: 100%;
            height: 250px;
            background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4rem;
        }

        .project-body {
            padding: 30px;
        }

        .project-status {
            display: inline-block;
            padding: 6px 20px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-ongoing {
            background: rgba(197, 48, 48, 0.1);
            color: var(--accent-red);
        }

        .status-completed {
            background: rgba(34, 197, 94, 0.1);
            color: #22c55e;
        }

        .project-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 15px;
        }

        /* Officials Section */
        .officials-section {
            padding: 70px 0;
            background: white;
        }

        /* Officials Carousel */
        .officials-carousel-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            gap: 20px;
            margin: 0 auto;
            max-width: 1200px;
        }

        .officials-carousel-container {
            overflow: hidden;
            flex: 1;
            border-radius: 15px;
        }

        .officials-carousel-track {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            gap: 25px;
        }

        .official-card-carousel {
            min-width: calc(33.333% - 17px);
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid transparent;
        }

        .official-card-carousel:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.15);
            border-color: var(--accent-red);
        }

        .official-img {
            width: 100%;
            height: 250px;
            background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4.5rem;
            position: relative;
            overflow: hidden;
        }

        .official-img::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="30" cy="30" r="20" fill="rgba(255,255,255,0.03)"/></svg>');
            background-size: 100px 100px;
            opacity: 0.3;
        }

        .official-info {
            padding: 25px;
            text-align: center;
        }

        .official-name {
            font-weight: 700;
            color: var(--primary-blue);
            font-size: 1.2rem;
            margin-bottom: 8px;
        }

        .official-position {
            color: var(--accent-red);
            font-weight: 600;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Carousel Navigation */
        .carousel-nav {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary-blue);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
            flex-shrink: 0;
        }

        .carousel-nav:hover {
            background: var(--accent-red);
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(197, 48, 48, 0.4);
        }

        .carousel-nav:active {
            transform: scale(0.95);
        }

        /* Carousel Indicators */
        .carousel-indicators {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 30px;
        }

        .carousel-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ddd;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .carousel-indicator.active {
            background: var(--primary-blue);
            width: 35px;
            border-radius: 6px;
        }

        .carousel-indicator:hover {
            background: var(--accent-red);
        }

        /* Responsive */
        @media (max-width: 992px) {
            .official-card-carousel {
                min-width: calc(50% - 12.5px);
            }

            .official-img {
                height: 220px;
                font-size: 4rem;
            }
        }

        @media (max-width: 768px) {
            .officials-section {
                padding: 50px 0;
            }

            .officials-carousel-wrapper {
                gap: 15px;
            }

            .carousel-nav {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .official-card-carousel {
                min-width: 100%;
            }

            .official-img {
                height: 200px;
                font-size: 3.5rem;
            }

            .official-info {
                padding: 20px;
            }

            .official-name {
                font-size: 1.1rem;
            }

            .official-position {
                font-size: 0.9rem;
            }
        }

        /* Announcements Section */
        .announcements-section {
            padding: 120px 0;
            background: var(--light-bg);
        }

        .announcement-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            margin-bottom: 30px;
            height: 100%;
            border: 1px solid rgba(0, 0, 0, 0.06);
            position: relative;
        }

        .announcement-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .announcement-card:hover::before {
            opacity: 1;
        }

        .announcement-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.12);
            border-color: rgba(30, 58, 95, 0.15);
        }

        .announcement-header {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            color: var(--primary-blue);
            padding: 25px;
            display: flex;
            align-items: center;
            gap: 18px;
            position: relative;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        .announcement-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(248, 249, 250, 0.2) 0%, rgba(233, 236, 239, 0.2) 100%);
            z-index: 0;
        }

        .announcement-header > * {
            position: relative;
            z-index: 1;
        }

        .announcement-icon {
            font-size: 2.2rem;
            color: var(--accent-red);
            background: white;
            width: 65px;
            height: 65px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }

        .announcement-date {
            font-size: 0.8rem;
            color: #718096;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .announcement-date::before {
            content: '\f017';
            font-family: 'Font Awesome 6 Free';
            font-weight: 400;
            font-size: 0.75rem;
        }

        .announcement-body {
            padding: 25px;
        }

        .announcement-title {
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 12px;
            font-size: 1.15rem;
            line-height: 1.4;
        }

        /* Gallery Section */
        .gallery-section {
            padding: 120px 0;
            background: white;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .gallery-item {
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.4s;
            cursor: pointer;
            aspect-ratio: 4/3;
        }

        .gallery-item:hover {
            transform: scale(1.05);
            box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        }

        .gallery-img {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
        }

        /* Contact Section */
        .contact-section {
            padding: 80px 0 50px 0;
            background: var(--light-bg);
        }

        .contact-card {
            background: white;
            border-radius: 20px;
            padding: 35px 22px;
            box-shadow: 0 15px 50px rgba(0,0,0,0.1);
        }

        .contact-info-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 18px 11px;
            background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(197, 48, 48, 0.05));
            border-radius: 12px;
            margin-bottom: 15px;
            transition: all 0.3s;
        }

        .contact-info-item:hover {
            transform: translateX(10px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .contact-form .form-control {
            padding: 12px 18px;
            border-radius: 12px;
            border: 2px solid #e2e8f0;
            margin-bottom: 12px;
            transition: all 0.3s;
        }

        .contact-form .form-control:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
        }

        /* Footer */
        .footer {
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            color: white;
            padding: 80px 0 30px;
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
        }

        .footer-title {
            font-weight: 700;
            margin-bottom: 25px;
            font-size: 1.3rem;
        }

        .footer-links {
            list-style: none;
            padding: 0;
        }

        .footer-links li {
            margin-bottom: 15px;
        }

        .footer-links a {
            color: rgba(255,255,255,0.85);
            text-decoration: none;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .footer-links a:hover {
            color: white;
            padding-left: 10px;
        }

        .footer-links a::before {
            content: '→';
            opacity: 0;
            transition: all 0.3s;
        }

        .footer-links a:hover::before {
            opacity: 1;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: rgba(255,255,255,0.15);
            border-radius: 50%;
            color: white;
            margin-right: 15px;
            transition: all 0.4s;
            font-size: 1.1rem;
            backdrop-filter: blur(10px);
        }

        .social-links a:hover {
            background: var(--accent-red);
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 10px 25px rgba(197, 48, 48, 0.4);
        }

        .footer-bottom {
            margin-top: 60px;
            padding-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.15);
            text-align: center;
        }

        @media (max-width: 992px) {
            .about-content {
                padding-left: 0;
                margin-top: 40px;
            }
            .mission-vision-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .hero-content h1 {
                font-size: 2.5rem;
            }
            .hero-subtitle {
                font-size: 1.2rem;
            }
            .section-title {
                font-size: 2rem;
            }
            .stat-number {
                font-size: 2rem;
            }
        }
        

        /* Login Modal Styles */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.login-modal-container {
    position: relative;
    animation: modalSlideIn 0.5s ease;
}

/* Forget Password Modal - Higher z-index to appear on top */
#forgetPasswordModal {
    z-index: 99999 !important;
    display: flex !important;
}

#forgetPasswordModal[style*="display: none"] {
    display: none !important;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.login-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.login-modal-close:hover {
    background: var(--accent-red);
    color: white;
    transform: rotate(90deg);
}

.modal-main-logo {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    transition: all 0.5s ease-in-out;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.3));
    z-index: 10000;
}

.modal-main-logo:hover {
    transform: translateX(-50%) scale(1.1) rotate(5deg);
}

@keyframes modalShine {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.6)) brightness(1.1);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 200, 0, 0.8)) brightness(1.3);
    }
}

@keyframes modalSunRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-container {
    background-color: #fff;
    border-radius: 100px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 90vw;
    min-height: 480px;
}

.login-container p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
}

.login-container a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

.login-container button {
    background-color: #2600ff;
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.login-container button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-container.active button {
    background-color: #db0415;
}

.login-hidden {
    background-color: transparent !important;
    border-color: #fff !important;
}

.login-container form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

/* Headings inside login modal forms */
.login-form-container h1 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin: 26px 0 12px;
    text-align: center;
    font-weight: 700;
}

.login-form-container form {
    padding-top: 10px; /* small top padding so heading doesn't touch top */
}

.login-container input {
    background-color: #eee;
    border: none;
    margin: 4px 0;
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.login-social-icons {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.login-form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.login-sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.login-container.active .login-sign-in {
    transform: translateX(100%);
}

.login-sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.login-container.active .login-sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: loginMove 0.6s;
}

@keyframes loginMove {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.login-toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 200px 0 0 5px;
    z-index: 1000;
}

.login-container.active .login-toggle-container {
    transform: translateX(-100%);
    border-radius: 0 200px 5px 0;
}

.login-toggle {
    background-color: #2600ff;
    height: 100%;
    color: #fff;
    position: relative;
    left: -100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.login-container.active .login-toggle {
    transform: translateX(50%);
    background-color: #db0415;
}

.login-toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.login-toggle-left {
    transform: translateX(-200%);
}

.login-container.active .login-toggle-left {
    transform: translateX(0);
}

.login-toggle-right {
    right: 0;
    transform: translateX(0);
}

.login-container.active .login-toggle-right {
    transform: translateX(200%);
}

.login-bouncy {
    margin: 0;
}

.login-typewriter-text {
    font-size: 30px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}

.login-typewriter-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #fff;
    margin-left: 8px;
    vertical-align: middle;
    animation: loginCaret 1s steps(1) infinite;
}

@keyframes loginCaret {
    50% { opacity: 0; }
}

.login-tw-char {
    display: inline-block;
    transform: translateY(6px);
    opacity: 0;
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease;
}

.login-tw-char.in {
    transform: translateY(0);
    opacity: 1;
}

.login-tw-char.out {
    transform: translateY(-6px);
    opacity: 0;
}

@media (max-width: 768px) {
    .login-modal-overlay {
        padding: 20px 10px;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .login-modal-container {
        width: 100%;
        max-width: 450px;
        margin: 60px auto 20px;
    }
    
    .login-container {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        border-radius: 25px;
        padding: 0;
    }
    
    .modal-main-logo {
        width: 100px;
        top: -45px;
    }
    
    .login-modal-close {
        top: -35px;
        right: 0;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    /* Hide toggle panel completely on mobile */
    .login-toggle-container {
        display: none !important;
    }
    
    /* Make both forms full width and stack */
    .login-form-container.login-sign-in,
    .login-form-container.login-sign-up {
        position: relative;
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        opacity: 1;
        z-index: 2;
        height: auto;
        min-height: auto;
        padding: 25px 20px 30px;
    }
    
    /* Hide sign up form by default */
    .login-form-container.login-sign-up {
        display: none;
    }
    
    /* Show sign in form by default */
    .login-form-container.login-sign-in {
        display: block;
    }
    
    /* When active, swap visibility */
    .login-container.active .login-form-container.login-sign-in {
        display: none;
    }
    
    .login-container.active .login-form-container.login-sign-up {
        display: block;
    }
    
    .login-form-container form {
        padding: 0;
        height: auto;
    }
    
    .login-form-container h1 {
        font-size: 1.5rem;
        margin: 10px 0 20px;
    }
    
    .login-container input {
        padding: 12px 15px;
        font-size: 14px;
        margin: 6px 0;
    }
    
    .login-container button[type="submit"] {
        padding: 12px 30px;
        font-size: 13px;
        margin-top: 15px;
        width: 100%;
    }
    
    .login-social-icons {
        margin: 15px 0;
        gap: 12px;
    }
    
    .login-social-icons img {
        width: 32px !important;
        height: 32px;
    }
    
    .login-container a {
        font-size: 12px;
        margin: 12px 0 8px;
    }
    
    .login-container p,
    .login-container span {
        font-size: 13px;
        margin: 12px 0;
    }
    
    /* Mobile toggle links */
    .mobile-toggle-link {
        display: block !important;
        text-align: center;
        margin-top: 20px;
        padding: 15px 20px;
        border-top: 2px solid #eee;
        color: var(--primary-blue);
        font-size: 14px;
        cursor: pointer;
        user-select: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        animation: fadeInUp 0.6s ease 0.3s both;
    }
    
    .mobile-toggle-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(30, 58, 95, 0.1), transparent);
        transition: left 0.5s;
    }
    
    .mobile-toggle-link:hover::before {
        left: 100%;
    }
    
    .mobile-toggle-link strong {
        color: var(--accent-red);
        font-weight: 700;
        display: inline-block;
        transition: transform 0.3s;
    }
    
    .mobile-toggle-link:hover strong {
        transform: scale(1.1);
    }
    
    .mobile-toggle-link:hover {
        background: rgba(30, 58, 95, 0.05);
        color: var(--accent-red);
        border-top-color: var(--accent-red);
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .mobile-toggle-link:active {
        background: rgba(30, 58, 95, 0.15);
        transform: scale(0.97);
    }
    
    /* Grid for sign up form */
    .login-form-container div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
}

@media (max-width: 480px) {
    .login-modal-container {
        max-width: 100%;
        margin: 50px 5px 20px;
    }
    
    .login-container {
        border-radius: 20px;
    }
    
    .modal-main-logo {
        width: 80px;
        top: -35px;
    }
    
    .login-modal-close {
        top: -30px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .login-form-container.login-sign-in,
    .login-form-container.login-sign-up {
        padding: 20px 15px 25px;
    }
    
    .login-form-container h1 {
        font-size: 1.3rem;
        margin: 8px 0 15px;
    }
    
    .login-container input {
        padding: 10px 12px;
        font-size: 13px;
        margin: 5px 0;
    }
    
    .login-container button[type="submit"] {
        padding: 11px 25px;
        font-size: 12px;
    }
    
    .login-social-icons img {
        width: 28px !important;
        height: 28px;
    }
    
    .login-container a,
    .login-container p,
    .login-container span {
        font-size: 12px;
    }
    
    .login-form-container::after {
        font-size: 12px;
        margin-top: 15px;
        padding-top: 15px;
    }
}

/* Reveal / entrance animations (global) */
.reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.995);
    transition: opacity 600ms cubic-bezier(.2,.9,.2,1), transform 600ms cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Slight upward variant */
.reveal-up { transform: translateY(36px); }
.reveal-up.active { transform: translateY(0); }

/* Improve card motion with subtle 3D tilt on hover */
.project-card, .official-card, .announcement-card, .gallery-item, .contact-card {
    transform-origin: center center;
    transition: transform 350ms cubic-bezier(.2,.9,.2,1), box-shadow 350ms ease;
    backface-visibility: hidden;
}

.project-card:hover, .official-card:hover, .announcement-card:hover, .gallery-item:hover, .contact-card:hover {
    transform: translateY(-10px) rotateX(1deg) scale(1.01);
}

/* Floating shapes subtle parallax will be handled by JS but add smoothing here */
.floating-shapes { transition: transform 0.6s cubic-bezier(.2,.9,.2,1); }

/* Make hero image feel more fluid */
.hero-content img { transition: transform 1.2s cubic-bezier(.2,.9,.2,1), filter 1.2s; }
.hero-content img:hover { transform: translateY(-6px) scale(1.01); filter: saturate(1.05); }

/* Improve focus styles for accessibility */
a:focus, button:focus, .nav-link:focus { outline: 3px solid rgba(30,58,95,0.12); outline-offset: 3px; }

/* News Section */
.news-section {
    padding: 120px 0;
    background: white;
}

.news-loading, .news-error {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.news-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 20px;
    border-color: var(--primary-blue);
    border-right-color: transparent;
}

.news-loading p {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-top: 20px;
}

.news-error {
    background: linear-gradient(135deg, rgba(197, 48, 48, 0.05), rgba(197, 48, 48, 0.02));
    border-radius: 20px;
    padding: 80px 40px;
}

.news-error i {
    font-size: 4rem;
    color: var(--accent-red);
    margin-bottom: 20px;
    display: block;
}

.news-error p {
    font-size: 1.2rem;
    color: var(--dark-text);
}

.news-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s;
    margin-bottom: 30px;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

.news-card-featured {
    height: 100%;
}

.news-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.news-image.placeholder {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
}

.news-image.placeholder i {
    position: relative;
    z-index: 2;
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.news-image-small {
    height: 120px;
    font-size: 2.5rem;
}

.news-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-red);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.news-source-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(30, 58, 95, 0.9);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
    z-index: 2;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-source-badge i {
    font-size: 0.8rem;
}

.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #718096;
    flex-wrap: wrap;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-meta i {
    color: var(--accent-red);
}

.news-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title-small {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt-small {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.news-read-more:hover {
    gap: 12px;
    color: var(--primary-blue);
}

.news-read-more i {
    transition: transform 0.3s;
}

.news-read-more:hover i {
    transform: translateX(5px);
}

#refreshNews {
    position: relative;
    padding: 16px 45px;
}

#refreshNews.rotating i {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Spinner animation for loading */
@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 992px) {
    .news-image {
        height: 250px;
        font-size: 4rem;
    }
    
    .news-title {
        font-size: 1.3rem;
    }
    
    .news-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 80px 0;
    }
    
    .news-image {
        height: 200px;
        font-size: 3rem;
    }
    
    .news-image-small {
        height: 100px;
        font-size: 2rem;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-title-small {
        font-size: 1rem;
    }
    
    .news-badge {
        padding: 6px 15px;
        font-size: 0.75rem;
        top: 15px;
        right: 15px;
    }
    
    .news-source-badge {
        padding: 5px 12px;
        font-size: 0.7rem;
        bottom: 15px;
        left: 15px;
    }
}

/* Login/Register Error Alert Styling */
#loginErrorAlert,
#registerErrorAlert {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 15px 0;
    font-size: 13px;
    color: #d32f2f !important;
    line-height: 1.4;
    text-align: left;
}

#loginErrorAlert i,
#registerErrorAlert i {
    color: #d32f2f !important;
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

#loginErrorMessage,
#registerErrorMessage {
    vertical-align: middle;
    color: #d32f2f !important;
    font-weight: 500;
}

/* ============================================
   GALLERY 3D CAROUSEL STYLES
   ============================================ */

.gallery-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Navigation Buttons */
.gallery-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(30, 58, 95, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-carousel-prev {
    left: 0;
}

.gallery-carousel-next {
    right: 0;
}

.gallery-carousel-nav:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(30, 58, 95, 0.3);
}

.gallery-carousel-nav i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.gallery-carousel-nav:hover i {
    color: white;
}

/* Gallery Cards Container */
.gallery-carousel-container {
    position: relative;
    height: 450px;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery Card */
.gallery-carousel-card {
    position: absolute;
    width: 500px;
    height: 350px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.25);
    transform: translateX(0) scale(1);
    z-index: 3;
    opacity: 1;
}

.gallery-carousel-card .gallery-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-carousel-card .gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-carousel-card .gallery-img i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Gallery Card Overlay */
.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-carousel-card:hover .gallery-card-overlay {
    transform: translateY(0);
}

.gallery-card-overlay h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-card-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Carousel Indicators */
.gallery-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: var(--primary-blue);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.gallery-indicator:hover {
    background: var(--accent-orange);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-carousel-wrapper {
        padding: 2rem 0;
    }
    
    .gallery-carousel-nav {
        width: 45px;
        height: 45px;
    }
    
    .gallery-carousel-nav i {
        font-size: 1.2rem;
    }
    
    .gallery-carousel-container {
        height: 350px;
    }
    
    .gallery-carousel-card {
        width: 350px;
        height: 280px;
    }
    
    .gallery-carousel-card .gallery-img i {
        font-size: 3.5rem;
    }
    
    .gallery-card-overlay {
        padding: 1.5rem;
    }
    
    .gallery-card-overlay h4 {
        font-size: 1.2rem;
    }
    
    .gallery-card-overlay p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-carousel-nav i {
        font-size: 1rem;
    }
    
    .gallery-carousel-container {
        height: 300px;
    }
    
    .gallery-carousel-card {
        width: 280px;
        height: 220px;
    }
    
    .gallery-carousel-card .gallery-img i {
        font-size: 2.5rem;
    }
    
    .gallery-card-overlay {
        padding: 1rem;
    }
    
    .gallery-card-overlay h4 {
        font-size: 1rem;
    }
    
    .gallery-card-overlay p {
        font-size: 0.8rem;
    }
}

/* NEWS CAROUSEL */
.news-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 4rem 80px;
}

.news-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(30, 58, 95, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-carousel-prev { left: 20px; }
.news-carousel-next { right: 20px; }

.news-carousel-nav:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(30, 58, 95, 0.3);
}

.news-carousel-nav i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.news-carousel-nav:hover i { color: white; }

.news-carousel-container {
    position: relative;
    height: 480px;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.news-carousel-card {
    position: absolute;
    width: 520px;
    left: 50%;
    margin-left: -260px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.25);
    border-left: 5px solid var(--primary-blue);
}

.news-carousel-card-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-carousel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-carousel-card-img i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.news-carousel-card-content { padding: 2rem; }

.news-carousel-card-date {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-carousel-card-date i { color: var(--accent-orange); }

.news-carousel-card-title {
    font-size: 1.35rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-carousel-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-carousel-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-carousel-card-link:hover {
    color: var(--accent-orange);
    gap: 0.75rem;
}

.news-carousel-card-link i { transition: transform 0.3s ease; }
.news-carousel-card-link:hover i { transform: translateX(5px); }

.news-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
}

.news-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-indicator.active {
    background: var(--primary-blue);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.news-indicator:hover {
    background: var(--accent-orange);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .news-carousel-wrapper { padding: 2rem 60px; }
    .news-carousel-nav { width: 45px; height: 45px; }
    .news-carousel-nav i { font-size: 1.2rem; }
    .news-carousel-container { height: 420px; }
    .news-carousel-card { width: 380px; margin-left: -190px; }
    .news-carousel-card-img { height: 180px; }
    .news-carousel-card-content { padding: 1.5rem; }
    .news-carousel-card-title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .news-carousel-wrapper { padding: 2rem 50px; }
    .news-carousel-nav { width: 40px; height: 40px; }
    .news-carousel-nav i { font-size: 1rem; }
    .news-carousel-container { height: 380px; }
    .news-carousel-card { width: 300px; margin-left: -150px; }
    .news-carousel-card-img { height: 150px; }
    .news-carousel-card-content { padding: 1.25rem; }
    .news-carousel-card-title { font-size: 1.1rem; }
    .news-carousel-card-excerpt { -webkit-line-clamp: 2; line-clamp: 2; }
}