  :root {
            --primary-color: #cc0000; /* Red */
            --secondary-color: #ffffff; /* White */
            --accent-color: #ff0000; /* Bright Red */
            --text-dark: #cc0000;
            --text-light: #cc0000;
            --text-white: #ffffff;
            --bg-body: #ffffff;
            --bg-card: #ffffff;
            --bg-alt: #ffffff;
            --border-color: #ffcccc;
            --shadow-color: rgba(204,0,0,0.1);
            --nav-bg: rgba(255, 255, 255, 0.95);
            --hero-overlay: rgba(255, 255, 255, 0.9);
            --footer-bg: #ffffff;
        }

        body.dark-mode {
            --bg-body: #000000;
            --bg-card: #000000;
            --bg-alt: #000000;
            --text-dark: #ff0000;
            --text-light: #ff0000;
            --border-color: #cc0000;
            --shadow-color: rgba(255,0,0,0.4);
            --primary-color: #ff0000;
            --nav-bg: rgba(0, 0, 0, 0.9);
            --hero-overlay: rgba(0, 0, 0, 0.9);
            --footer-bg: #000000;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 80px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background-color: var(--bg-body);
            color: var(--text-dark);
            line-height: 1.6;
            transition: background-color 0.3s, color 0.3s;
        }

        /* Navigation */
        nav {
            background-color: var(--nav-bg);
            color: var(--text-light);
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            border-bottom: 1px solid var(--border-color);
            backdrop-filter: blur(10px);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo img {
            height: 40px;
            width: auto;
            border-radius: 50%;
        }

        .nav-links a {
            color: var(--text-light);
            text-decoration: none;
            margin-left: 20px;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }

        .nav-links i {
            margin-right: 5px;
        }

        /* Theme Toggle */
        .theme-btn {
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1.2rem;
            cursor: pointer;
            margin-right: 20px;
            transition: transform 0.3s;
        }
        .theme-btn:hover {
            transform: rotate(15deg);
        }

        /* Hamburger Menu */
        .hamburger {
            display: none;
            cursor: pointer;
        }

        .bar {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px auto;
            -webkit-transition: all 0.3s ease-in-out;
            transition: all 0.3s ease-in-out;
            background-color: var(--primary-color);
        }

        /* Hero Section */
        header {
            background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('https://images.unsplash.com/photo-1532444458054-01a7dd3e9fca?q=80&w=1920&auto=format&fit=crop');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            height: 80vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: var(--text-light);
            padding: 0 20px;
        }

        header h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        header p {
            font-size: 1.2rem;
            max-width: 600px;
            margin-bottom: 2rem;
        }

        /* Countdown Timer */
        .countdown-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .countdown-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(0, 0, 0, 0.3);
            padding: 10px 15px;
            border-radius: 8px;
            min-width: 70px;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .countdown-number {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--primary-color);
            line-height: 1.2;
        }

        .countdown-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.9;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .cta-btn, .submit-btn {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            padding: 12px 30px;
            border-radius: 5px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
            transition: transform 0.2s;
        }

        .cta-btn:hover, .submit-btn:hover {
            background-color: var(--primary-color);
            color: var(--text-white);
            transform: scale(1.05);
        }

        /* Leaderboard Section */
        .section {
            padding: 4rem 5%;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            color: var(--primary-color);
            font-size: 2.5rem;
        }

        .leaderboard-container {
            max-width: 800px;
            margin: 0 auto;
            background: var(--bg-card);
            border-radius: 10px;
            box-shadow: 0 10px 30px var(--shadow-color);
            overflow: hidden;
        }

        .leaderboard-header {
            background-color: #333;
            color: white;
            padding: 15px 20px;
            display: grid;
            grid-template-columns: 0.5fr 2fr 1fr 1fr 1fr;
            font-weight: bold;
            text-align: center;
        }
        
        .leaderboard-header > div:nth-child(2) {
            text-align: left;
        }

        .house-row {
            display: grid;
            grid-template-columns: 0.5fr 2fr 1fr 1fr 1fr;
            padding: 15px 20px;
            border-bottom: 1px solid var(--border-color);
            align-items: center;
        }

        .house-row:nth-child(even) {
            background-color: var(--bg-alt);
        }

        .rank {
            font-weight: bold;
            font-size: 1.2rem;
        }

        .house-name {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
        }

        .house-color-dot {
            width: 15px;
            height: 15px;
            border-radius: 50%;
            display: inline-block;
        }

        .medal {
            font-weight: bold;
            text-align: center;
            font-size: 1.1rem;
        }
        
        .medal.gold { color: #FFD700; }
        .medal.silver { color: #C0C0C0; }
        .medal.bronze { color: #CD7F32; }

        /* Houses Grid */
        .houses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .house-card {
            background: var(--bg-card);
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 5px 15px var(--shadow-color);
            border-top: 5px solid #ccc;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .house-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }

        /* Specific House Colors (Customizable) */
        .border-peace { border-color: #007bff; } /* Blue */
        .border-national { border-color: #800080; } /* Purple */
        .border-independence { border-color: #ffc107; } /* Yellow */
        .border-liberty { border-color: #dc3545; } /* Red */
        .border-honesty { border-color: #ff69b4; } /* Pink */
        .border-unity { border-color: #28a745; } /* Green */

        /* Registration Form */
        .form-container {
            max-width: 600px;
            margin: 0 auto;
            background: var(--bg-card);
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 10px 30px var(--shadow-color);
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .form-group input, .form-group select {
            width: 100%;
            padding: 10px;
            border: 2px solid var(--border-color);
            border-radius: 5px;
            transition: border-color 0.3s;
        }

        .form-group input:focus, .form-group select:focus {
            border-color: var(--primary-color);
            outline: none;
            background-color: var(--bg-body);
            color: var(--text-dark);
        }

        /* Gallery Styles */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }
        .gallery-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            transition: transform 0.3s;
        }
        .gallery-item img:hover {
            transform: scale(1.05);
        }

        /* Blog Styles */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        .blog-card {
            background: var(--bg-card);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px var(--shadow-color);
            transition: transform 0.3s ease;
        }
        .blog-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }
        .blog-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        .blog-picture {
            width: 70%;
            height: 200px;
            object-fit: cover;
            object-position: center top; /* Focus on the top of the image */
            border-radius: 8px;
            margin: 20px 0;
        }
        .blog-content {
            padding: 20px;
        }
        .blog-title {
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        .blog-date {
            color: #888;
            font-size: 0.85rem;
            margin-bottom: 8px;
            display: block;
        }
        .read-more {
            color: var(--primary-color);
            font-weight: bold;
            text-decoration: none;
            display: inline-block;
            margin-top: 10px;
        }

        /* Modal Gallery Styles */
        .modal-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
            margin-top: 20px;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
        }
        .modal-gallery img {
            width: 100%;
            height: 80px;
            object-fit: cover;
            object-position: center top; /* Focus on faces in thumbnails */
            border-radius: 5px;
            cursor: pointer;
            transition: transform 0.2s, opacity 0.2s;
            border: 2px solid transparent;
        }
        .modal-gallery img:hover {
            transform: scale(1.05);
            opacity: 0.9;
            border-color: var(--primary-color);
        }

        /* Blog Search & Actions */
        .search-wrapper {
            position: relative;
            max-width: 500px;
            margin: 0 auto 40px;
        }
        
        .search-wrapper input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            border: 2px solid var(--border-color);
            border-radius: 30px;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.3s;
            background: var(--bg-card);
            color: var(--text-dark);
        }
        
        .search-wrapper input:focus {
            border-color: var(--primary-color);
        }
        
        .search-wrapper i {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
        }

        .blog-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            border-top: 1px solid var(--border-color);
            padding-top: 15px;
        }

        .blog-actions .share-buttons {
            margin-top: 0;
            border-top: none;
            padding-top: 0;
        }

        .like-btn {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            color: #888;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            font-family: 'Poppins', sans-serif;
        }

        .like-btn:hover {
            color: var(--primary-color);
            transform: scale(1.05);
        }

        .like-btn.liked {
            color: var(--primary-color);
        }
        
        .like-btn.liked i {
            font-weight: 900; /* Solid heart */
        }

        /* Pagination */
        .pagination-container {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 30px;
        }

        .pagination-container button {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-dark);
            padding: 8px 15px;
            cursor: pointer;
            border-radius: 5px;
            transition: all 0.3s;
            font-family: 'Poppins', sans-serif;
        }

        .pagination-container button:hover, .pagination-container button.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        /* Responsive Map */
        .map-responsive {
            overflow: hidden;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            position: relative;
            height: 0;
            margin-top: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .map-responsive iframe {
            left: 0;
            top: 0;
            height: 100%;
            width: 100%;
            position: absolute;
            border: 0;
        }

        /* Comment Section in Modal */
        .comment-section {
            margin-top: 30px;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
            text-align: left;
        }

        .comment-list {
            margin-bottom: 20px;
            max-height: 200px;
            overflow-y: auto;
        }

        .comment-item {
            background: var(--bg-alt);
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 10px;
            border-left: 3px solid var(--primary-color);
        }

        .comment-item strong {
            display: block;
            color: var(--primary-color);
            font-size: 0.9rem;
        }

        .comment-item p {
            font-size: 0.9rem;
            margin: 5px 0 0;
        }

        .comment-form textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            margin-bottom: 10px;
            resize: vertical;
            font-family: inherit;
        }

        .comment-form input {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            margin-bottom: 10px;
            font-family: inherit;
        }

        /* Sponsors Section */
        .sponsors-container {
            overflow: hidden;
            padding: 20px 0;
            background: var(--bg-body);
            position: relative;
        }

        /* Fade effect on edges */
        .sponsors-container::before,
        .sponsors-container::after {
            content: "";
            position: absolute;
            top: 0;
            width: 100px;
            height: 100%;
            z-index: 2;
            pointer-events: none;
        }

        .sponsors-container::before {
            left: 0;
            background: linear-gradient(to right, var(--bg-body), transparent);
        }

        .sponsors-container::after {
            right: 0;
            background: linear-gradient(to left, var(--bg-body), transparent);
        }

        .sponsors-track {
            display: flex;
            width: max-content;
            animation: scroll 30s linear infinite;
        }
        
        .sponsors-track:hover {
            animation-play-state: paused;
        }

        .sponsor-slide {
            display: flex;
            align-items: center;
            gap: 50px;
            padding-right: 50px;
        }

        .sponsor-slide img {
            height: 60px;
            width: auto;
            filter: grayscale(100%);
            opacity: 0.6;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .sponsor-slide img:hover {
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.1);
        }

        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        footer {
            background-color: var(--footer-bg);
            color: var(--primary-color);
            padding: 3rem 5%;
            margin-top: 2rem;
            border-top: 1px solid var(--border-color);
        }

        .footer-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-section {
            flex: 1;
            min-width: 300px;
        }

        .footer-section h3 {
            margin-bottom: 1rem;
            color: var(--accent-color);
        }

        .footer-section.info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: right;
        }

        .footer-form input, .footer-form textarea {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #444;
            border-radius: 5px;
            background: var(--bg-body);
            color: var(--text-dark);
            font-family: 'Poppins', sans-serif;
        }

        .footer-form button {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: transform 0.2s;
        }

        .footer-form button:hover {
            background-color: var(--primary-color);
            color: var(--text-white);
            transform: scale(1.05);
        }

        /* QR Scanner Styles */
        #reader {
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
            border-radius: 8px;
            overflow: hidden;
        }

        /* Admin Login Overlay */
        .login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 2000;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .login-box {
            background: var(--bg-card);
            padding: 2rem;
            border-radius: 10px;
            text-align: center;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
        }

        .login-box h2 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        /* Animation Utilities */
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        .animate-on-scroll.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Social Share Buttons */
        .share-buttons {
            margin-top: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-top: 1px solid var(--border-color);
            padding-top: 15px;
        }

        .share-btn {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            color: var(--text-white);
            text-decoration: none;
            font-size: 0.9rem;
            transition: transform 0.2s;
        }
        .share-btn:hover { transform: scale(1.1); }
        .share-btn.twitter { background-color: #1da1f2; }
        .share-btn.facebook { background-color: #1877f2; }
        .share-btn.whatsapp { background-color: #25d366; }

        /* Loader Styles */
        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--bg-body);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: opacity 0.5s ease;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid var(--border-color);
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        /* Back to Top Button */
        #backToTopBtn {
            display: none;
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 99;
            font-size: 18px;
            border: none;
            outline: none;
            background-color: var(--primary-color);
            color: white;
            cursor: pointer;
            padding: 15px;
            border-radius: 50%;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: background-color 0.3s, transform 0.3s;
        }

        #backToTopBtn:hover {
            background-color: var(--accent-color);
            transform: translateY(-5px);
        }

        /* Locked Section Styles */
        .locked-container {
            text-align: center;
            padding: 40px 20px;
            background: var(--bg-card);
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow-color);
            border: 1px solid var(--border-color);
        }
        body.dark-mode .locked-container {
            background-color: #1a1a1a;
        }
        .lock-timer {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-top: 15px;
            font-family: 'Courier New', monospace;
        }

        /* Event Started Animation */
        @keyframes pulse-green {
            0% { transform: scale(1); text-shadow: 0 0 0 rgba(40, 167, 69, 0.4); }
            50% { transform: scale(1.1); text-shadow: 0 0 20px rgba(40, 167, 69, 0.8); }
            100% { transform: scale(1); text-shadow: 0 0 0 rgba(40, 167, 69, 0.4); }
        }

        .event-started {
            color: #28a745 !important; /* Green */
            animation: pulse-green 1.5s infinite;
            display: inline-block;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Team Section */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            justify-content: center;
        }
        .team-card {
            background: var(--bg-card);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px var(--shadow-color);
            text-align: center;
            padding-bottom: 20px;
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .team-card:hover {
            transform: translateY(-5px);
        }
        .team-image {
            width: 100%;
            height: 300px;
            object-fit: cover;
            object-position: top;
            margin-bottom: 15px;
        }
        .team-name {
            color: var(--primary-color);
            margin-bottom: 5px;
        }
        .team-role {
            color: var(--text-dark);
            font-weight: 500;
            margin-bottom: 15px;
        }

          :root {
            --primary-color: #cc0000; /* Red */
            --secondary-color: #ffffff; /* White */
            --accent-color: #ff0000; /* Bright Red */
            --text-dark: #cc0000;
            --text-light: #cc0000;
            --text-white: #ffffff;
            --bg-body: #ffffff;
            --bg-card: #ffffff;
            --bg-alt: #ffffff;
            --border-color: #ffcccc;
            --shadow-color: rgba(204,0,0,0.1);
            --nav-bg: rgba(255, 255, 255, 0.95);
            --hero-overlay: rgba(255, 255, 255, 0.9);
            --footer-bg: #ffffff;
        }

        body.dark-mode {
            --bg-body: #000000;
            --bg-card: #000000;
            --bg-alt: #000000;
            --text-dark: #ff0000;
            --text-light: #ff0000;
            --border-color: #cc0000;
            --shadow-color: rgba(255,0,0,0.4);
            --primary-color: #ff0000;
            --nav-bg: rgba(0, 0, 0, 0.9);
            --hero-overlay: rgba(0, 0, 0, 0.9);
            --footer-bg: #000000;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 80px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background-color: var(--bg-body);
            color: var(--text-dark);
            line-height: 1.6;
            transition: background-color 0.3s, color 0.3s;
        }

        /* Navigation */
        nav {
            background-color: var(--nav-bg);
            color: var(--text-light);
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            border-bottom: 1px solid var(--border-color);
            backdrop-filter: blur(10px);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo img {
            height: 40px;
            width: auto;
            border-radius: 50%;
        }

        .nav-links a {
            color: var(--text-light);
            text-decoration: none;
            margin-left: 20px;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }

        .nav-links i {
            margin-right: 5px;
        }

        /* Theme Toggle */
        .theme-btn {
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1.2rem;
            cursor: pointer;
            margin-right: 20px;
            transition: transform 0.3s;
        }
        .theme-btn:hover {
            transform: rotate(15deg);
        }

        /* Hamburger Menu */
        .hamburger {
            display: none;
            cursor: pointer;
        }

        .bar {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px auto;
            -webkit-transition: all 0.3s ease-in-out;
            transition: all 0.3s ease-in-out;
            background-color: var(--primary-color);
        }

        /* Hero Section */
        header {
            background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('https://images.unsplash.com/photo-1532444458054-01a7dd3e9fca?q=80&w=1920&auto=format&fit=crop');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            height: 80vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: var(--text-light);
            padding: 0 20px;
        }

        header h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        header p {
            font-size: 1.2rem;
            max-width: 600px;
            margin-bottom: 2rem;
        }

        /* Countdown Timer */
        .countdown-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .countdown-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(0, 0, 0, 0.3);
            padding: 10px 15px;
            border-radius: 8px;
            min-width: 70px;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .countdown-number {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--primary-color);
            line-height: 1.2;
        }

        .countdown-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.9;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .cta-btn, .submit-btn {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            padding: 12px 30px;
            border-radius: 5px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
            transition: transform 0.2s;
        }

        .cta-btn:hover, .submit-btn:hover {
            background-color: var(--primary-color);
            color: var(--text-white);
            transform: scale(1.05);
        }

        /* Leaderboard Section */
        .section {
            padding: 4rem 5%;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            color: var(--primary-color);
            font-size: 2.5rem;
        }

        .leaderboard-container {
            max-width: 800px;
            margin: 0 auto;
            background: var(--bg-card);
            border-radius: 10px;
            box-shadow: 0 10px 30px var(--shadow-color);
            overflow: hidden;
        }

        .leaderboard-header {
            background-color: #333;
            color: white;
            padding: 15px 20px;
            display: grid;
            grid-template-columns: 0.5fr 2fr 1fr 1fr 1fr;
            font-weight: bold;
            text-align: center;
        }
        
        .leaderboard-header > div:nth-child(2) {
            text-align: left;
        }

        .house-row {
            display: grid;
            grid-template-columns: 0.5fr 2fr 1fr 1fr 1fr;
            padding: 15px 20px;
            border-bottom: 1px solid var(--border-color);
            align-items: center;
        }

        .house-row:nth-child(even) {
            background-color: var(--bg-alt);
        }

        .rank {
            font-weight: bold;
            font-size: 1.2rem;
        }

        .house-name {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
        }

        .house-color-dot {
            width: 15px;
            height: 15px;
            border-radius: 50%;
            display: inline-block;
        }

        .medal {
            font-weight: bold;
            text-align: center;
            font-size: 1.1rem;
        }
        
        .medal.gold { color: #FFD700; }
        .medal.silver { color: #C0C0C0; }
        .medal.bronze { color: #CD7F32; }

        /* Houses Grid */
        .houses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .house-card {
            background: var(--bg-card);
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 5px 15px var(--shadow-color);
            border-top: 5px solid #ccc;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .house-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }

        /* Specific House Colors (Customizable) */
        .border-peace { border-color: #007bff; } /* Blue */
        .border-national { border-color: #800080; } /* Purple */
        .border-independence { border-color: #ffc107; } /* Yellow */
        .border-liberty { border-color: #dc3545; } /* Red */
        .border-honesty { border-color: #ff69b4; } /* Pink */
        .border-unity { border-color: #28a745; } /* Green */

        /* Registration Form */
        .form-container {
            max-width: 600px;
            margin: 0 auto;
            background: var(--bg-card);
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 10px 30px var(--shadow-color);
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .form-group input, .form-group select {
            width: 100%;
            padding: 10px;
            border: 2px solid var(--border-color);
            border-radius: 5px;
            transition: border-color 0.3s;
        }

        .form-group input:focus, .form-group select:focus {
            border-color: var(--primary-color);
            outline: none;
            background-color: var(--bg-body);
            color: var(--text-dark);
        }

        /* Gallery Styles */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }
        .gallery-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            transition: transform 0.3s;
        }
        .gallery-item img:hover {
            transform: scale(1.05);
        }

        /* Blog Styles */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        .blog-card {
            background: var(--bg-card);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px var(--shadow-color);
            transition: transform 0.3s ease;
        }
        .blog-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }
        .blog-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        .blog-picture {
            width: 100%;
            height: 300px;
            object-fit: cover;
            object-position: center top; /* Focus on the top of the image */
            border-radius: 8px;
            margin: 20px 0;
        }
        .blog-content {
            padding: 20px;
        }
        .blog-title {
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        .blog-date {
            color: #888;
            font-size: 0.85rem;
            margin-bottom: 8px;
            display: block;
        }
        .read-more {
            color: var(--primary-color);
            font-weight: bold;
            text-decoration: none;
            display: inline-block;
            margin-top: 10px;
        }

        /* Modal Gallery Styles */
        .modal-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
            margin-top: 20px;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
        }
        .modal-gallery img {
            width: 100%;
            height: 80px;
            object-fit: cover;
            object-position: center top; /* Focus on faces in thumbnails */
            border-radius: 5px;
            cursor: pointer;
            transition: transform 0.2s, opacity 0.2s;
            border: 2px solid transparent;
        }
        .modal-gallery img:hover {
            transform: scale(1.05);
            opacity: 0.9;
            border-color: var(--primary-color);
        }

        /* Blog Search & Actions */
        .search-wrapper {
            position: relative;
            max-width: 500px;
            margin: 0 auto 40px;
        }
        
        .search-wrapper input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            border: 2px solid var(--border-color);
            border-radius: 30px;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.3s;
            background: var(--bg-card);
            color: var(--text-dark);
        }
        
        .search-wrapper input:focus {
            border-color: var(--primary-color);
        }
        
        .search-wrapper i {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
        }

        .blog-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            border-top: 1px solid var(--border-color);
            padding-top: 15px;
        }

        .blog-actions .share-buttons {
            margin-top: 0;
            border-top: none;
            padding-top: 0;
        }

        .like-btn {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            color: #888;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            font-family: 'Poppins', sans-serif;
        }

        .like-btn:hover {
            color: var(--primary-color);
            transform: scale(1.05);
        }

        .like-btn.liked {
            color: var(--primary-color);
        }
        
        .like-btn.liked i {
            font-weight: 900; /* Solid heart */
        }

        /* Pagination */
        .pagination-container {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 30px;
        }

        .pagination-container button {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-dark);
            padding: 8px 15px;
            cursor: pointer;
            border-radius: 5px;
            transition: all 0.3s;
            font-family: 'Poppins', sans-serif;
        }

        .pagination-container button:hover, .pagination-container button.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        /* Responsive Map */
        .map-responsive {
            overflow: hidden;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            position: relative;
            height: 0;
            margin-top: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .map-responsive iframe {
            left: 0;
            top: 0;
            height: 100%;
            width: 100%;
            position: absolute;
            border: 0;
        }

        /* Comment Section in Modal */
        .comment-section {
            margin-top: 30px;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
            text-align: left;
        }

        .comment-list {
            margin-bottom: 20px;
            max-height: 200px;
            overflow-y: auto;
        }

        .comment-item {
            background: var(--bg-alt);
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 10px;
            border-left: 3px solid var(--primary-color);
        }

        .comment-item strong {
            display: block;
            color: var(--primary-color);
            font-size: 0.9rem;
        }

        .comment-item p {
            font-size: 0.9rem;
            margin: 5px 0 0;
        }

        .comment-form textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            margin-bottom: 10px;
            resize: vertical;
            font-family: inherit;
        }

        .comment-form input {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            margin-bottom: 10px;
            font-family: inherit;
        }

        /* Related Posts in Modal */
        .related-posts-section {
            margin-top: 30px;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
            text-align: left;
        }

        .related-posts-section h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .related-posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .related-post-item {
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            background: var(--bg-alt);
            padding: 10px;
            border-radius: 8px;
            transition: background-color 0.3s;
        }

        .related-post-item:hover {
            background-color: var(--border-color);
        }

        .related-post-item img {
            width: 80px;
            height: 60px;
            object-fit: cover;
            border-radius: 5px;
        }

        .related-post-item-info h4 {
            font-size: 0.9rem;
            margin: 0 0 5px;
            color: var(--text-dark);
        }

        .related-post-item-info span {
            font-size: 0.8rem;
            color: #888;
        }

        /* Sponsors Section */
        .sponsors-container {
            overflow: hidden;
            padding: 20px 0;
            background: var(--bg-body);
            position: relative;
        }

        /* Fade effect on edges */
        .sponsors-container::before,
        .sponsors-container::after {
            content: "";
            position: absolute;
            top: 0;
            width: 100px;
            height: 100%;
            z-index: 2;
            pointer-events: none;
        }

        .sponsors-container::before {
            left: 0;
            background: linear-gradient(to right, var(--bg-body), transparent);
        }

        .sponsors-container::after {
            right: 0;
            background: linear-gradient(to left, var(--bg-body), transparent);
        }

        .sponsors-track {
            display: flex;
            width: max-content;
            animation: scroll 30s linear infinite;
        }
        
        .sponsors-track:hover {
            animation-play-state: paused;
        }

        .sponsor-slide {
            display: flex;
            align-items: center;
            gap: 50px;
            padding-right: 50px;
        }

        .sponsor-slide img {
            height: 60px;
            width: auto;
            filter: grayscale(100%);
            opacity: 0.6;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .sponsor-slide img:hover {
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.1);
        }

        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        footer {
            background-color: var(--footer-bg);
            color: var(--primary-color);
            padding: 3rem 5%;
            margin-top: 2rem;
            border-top: 1px solid var(--border-color);
        }

        .footer-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-section {
            flex: 1;
            min-width: 300px;
        }

        .footer-section h3 {
            margin-bottom: 1rem;
            color: var(--accent-color);
        }

        .footer-section.info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: right;
        }

        .footer-form input, .footer-form textarea {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #444;
            border-radius: 5px;
            background: var(--bg-body);
            color: var(--text-dark);
            font-family: 'Poppins', sans-serif;
        }

        .footer-form button {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: transform 0.2s;
        }

        .footer-form button:hover {
            background-color: var(--primary-color);
            color: var(--text-white);
            transform: scale(1.05);
        }

        /* QR Scanner Styles */
        #reader {
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
            border-radius: 8px;
            overflow: hidden;
        }

        /* Admin Login Overlay */
        .login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 2000;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .login-box {
            background: var(--bg-card);
            padding: 2rem;
            border-radius: 10px;
            text-align: center;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
        }

        .login-box h2 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        /* Animation Utilities */
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        .animate-on-scroll.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Social Share Buttons */
        .share-buttons {
            margin-top: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-top: 1px solid var(--border-color);
            padding-top: 15px;
        }

        .share-btn {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            color: var(--text-white);
            text-decoration: none;
            font-size: 0.9rem;
            transition: transform 0.2s;
        }
        .share-btn:hover { transform: scale(1.1); }
        .share-btn.twitter { background-color: #1da1f2; }
        .share-btn.facebook { background-color: #1877f2; }
        .share-btn.whatsapp { background-color: #25d366; }
        .share-btn.copy-link { background-color: #6c757d; cursor: pointer; border: none; }

        /* Loader Styles */
        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--bg-body);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: opacity 0.5s ease;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid var(--border-color);
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        /* Back to Top Button */
        #backToTopBtn {
            display: none;
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 99;
            font-size: 18px;
            border: none;
            outline: none;
            background-color: var(--primary-color);
            color: white;
            cursor: pointer;
            padding: 15px;
            border-radius: 50%;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: background-color 0.3s, transform 0.3s;
        }

        #backToTopBtn:hover {
            background-color: var(--accent-color);
            transform: translateY(-5px);
        }

        /* Locked Section Styles */
        .locked-container {
            text-align: center;
            padding: 40px 20px;
            background: var(--bg-card);
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow-color);
            border: 1px solid var(--border-color);
        }
        body.dark-mode .locked-container {
            background-color: #1a1a1a;
        }
        .lock-timer {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-top: 15px;
            font-family: 'Courier New', monospace;
        }

        /* Event Started Animation */
        @keyframes pulse-green {
            0% { transform: scale(1); text-shadow: 0 0 0 rgba(40, 167, 69, 0.4); }
            50% { transform: scale(1.1); text-shadow: 0 0 20px rgba(40, 167, 69, 0.8); }
            100% { transform: scale(1); text-shadow: 0 0 0 rgba(40, 167, 69, 0.4); }
        }

        .event-started {
            color: #28a745 !important; /* Green */
            animation: pulse-green 1.5s infinite;
            display: inline-block;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Team Section */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            justify-content: center;
        }
        .team-card {
            background: var(--bg-card);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px var(--shadow-color);
            text-align: center;
            padding-bottom: 20px;
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .team-card:hover {
            transform: translateY(-5px);
        }
        .team-image {
            width: 100%;
            height: 300px;
            object-fit: cover;
            object-position: top;
            margin-bottom: 15px;
        }
        .team-name {
            color: var(--primary-color);
            margin-bottom: 5px;
        }
        .team-role {
            color: var(--text-dark);
            font-weight: 500;
            margin-bottom: 15px;
        }

        /* Blog Preview Slideshow */
        #blog-preview {
            background-color: var(--bg-alt);
        }
        .blog-slideshow-container {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
            background: var(--bg-card);
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow-color);
            overflow: hidden;
            padding: 40px 60px; /* Space for arrows */
        }

        .blog-slideshow-wrapper {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }

        .blog-slide {
            min-width: 100%;
            box-sizing: border-box;
            text-align: center;
        }

        .blog-slide h3 {
            color: var(--primary-color);
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        .blog-slide .slide-date {
            font-size: 0.9rem;
            color: #888;
            margin-bottom: 15px;
        }

        .blog-slide p {
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto 20px;
            opacity: 0.9;
        }

        .slide-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            color: var(--text-dark);
            border: none;
            font-size: 2rem;
            cursor: pointer;
            z-index: 10;
            transition: color 0.3s, transform 0.3s;
        }

        .slide-arrow:hover {
            color: var(--primary-color);
            transform: translateY(-50%) scale(1.2);
        }

        .prev-slide { left: 15px; }
        .next-slide { right: 15px; }

        @media (max-width: 768px) {
            header h1 { font-size: 2rem; }
            
            .hamburger {
                display: block;
            }

            .hamburger.active .bar:nth-child(2) {
                opacity: 0;
            }

            .hamburger.active .bar:nth-child(1) {
                transform: translateY(8px) rotate(45deg);
            }

            .hamburger.active .bar:nth-child(3) {
                transform: translateY(-8px) rotate(-45deg);
            }

            .nav-links {
                position: fixed;
                left: -100%;
                top: 73px;
                gap: 0;
                flex-direction: column;
                background-color: var(--nav-bg);
                width: 100%;
                height: calc(100vh - 73px);
                text-align: center;
                transition: 0.3s;
                padding: 20px 0;
                backdrop-filter: blur(10px);
            }

            .nav-links.active {
                left: 0;
            }

            .nav-links a {
                margin: 16px 0;
                display: block;
                margin-left: 0;
            }

            .footer-section.info {
                text-align: left;
            }
        }

        /* Alert Messages */
        .alert-box {
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            text-align: center;
            font-weight: 500;
            animation: slideIn 0.4s ease-out;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }

        .alert-success {
            background-color: #d1e7dd;
            color: #0f5132;
            border: 1px solid #badbcc;
        }

        .alert-error {
            background-color: #f8d7da;
            color: #842029;
            border: 1px solid #f5c2c7;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Events List Styles */
        .events-list {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 15px;
            max-width: 900px;
            margin: 0 auto;
        }
        
        .events-list li {
            background: var(--bg-card);
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 5px var(--shadow-color);
            display: flex;
            align-items: center;
            font-weight: 500;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            animation: fadeInUp 0.5s ease-out forwards;
            opacity: 0; /* For animation */
        }

        .events-list li:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px var(--shadow-color);
            border-left: 4px solid var(--primary-color);
        }
        
        .events-list li i {
            color: var(--primary-color);
            margin-right: 15px;
            width: 20px;
            text-align: center;
        }

        /* Staggered Animation for List */
        .events-list li:nth-child(1) { animation-delay: 0.1s; }
        .events-list li:nth-child(2) { animation-delay: 0.15s; }
        .events-list li:nth-child(3) { animation-delay: 0.2s; }
        .events-list li:nth-child(4) { animation-delay: 0.25s; }
        .events-list li:nth-child(5) { animation-delay: 0.3s; }
        /* ... add more if needed, or let CSS handle it naturally */

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Chart Container */
        .chart-container {
            max-width: 800px;
            margin: 0 auto 40px;
            background: var(--bg-card);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow-color);
        }

        /* Modal Styles */
        .modal {
            display: none; 
            position: fixed; 
            z-index: 2000; 
            left: 0;
            top: 0;
            width: 100%; 
            height: 100%; 
            overflow: auto; 
            background-color: rgba(0,0,0,0.8); 
            backdrop-filter: blur(5px);
            animation: fadeIn 0.3s;
        }

        .modal-content {
            background-color: var(--bg-card);
            margin: 15% auto; 
            padding: 30px;
            border: 1px solid var(--border-color);
            width: 90%;
            max-width: 500px;
            border-radius: 10px;
            text-align: center;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            animation: slideIn 0.3s;
        }

        .close-modal {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            position: absolute;
            top: 10px;
            right: 20px;
            cursor: pointer;
        }

        .close-modal:hover,
        .close-modal:focus {
            color: var(--primary-color);
            text-decoration: none;
            cursor: pointer;
        }

        @keyframes fadeIn {
            from {opacity: 0;} 
            to {opacity: 1;}
        }

        /* Copy Button */
        .copy-btn {
            background: none;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
            border-radius: 4px;
            padding: 2px 8px;
            cursor: pointer;
            margin-left: 10px;
            font-size: 0.8rem;
            transition: all 0.2s;
        }
        .copy-btn:hover {
            background: var(--primary-color);
            color: white;
        }

        /* RSVP Canvas */
        #rsvpCanvas {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow-color);
            cursor: move; /* Indicate draggable */
        }

        /* Color Picker Buttons */
        .color-options {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        .color-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 3px solid transparent;
            cursor: pointer;
            transition: transform 0.2s, border-color 0.2s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        .color-btn:hover {
            transform: scale(1.1);
        }
        .color-btn.active {
            border-color: #333;
            transform: scale(1.1);
        }

        /* Lightbox Styles */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 3000;
            padding-top: 50px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.95);
        }

        .lightbox-content {
            margin: auto;
            display: block;
            width: 80%;
            max-width: 1000px;
            max-height: 80vh;
            object-fit: contain;
            animation: zoomIn 0.3s;
        }

        #lightboxCaption {
            margin: auto;
            display: block;
            width: 80%;
            max-width: 700px;
            text-align: center;
            color: #ccc;
            padding: 10px 0;
            height: 150px;
        }

        .close-lightbox {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
        }

        .close-lightbox:hover,
        .close-lightbox:focus {
            color: #bbb;
            text-decoration: none;
            cursor: pointer;
        }

        @keyframes zoomIn {
            from {transform:scale(0)}
            to {transform:scale(1)}
        }

        /* Blog Preview Slideshow */
        #blog-preview {
            background-color: var(--bg-alt);
        }
        .blog-slideshow-container {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
            background: var(--bg-card);
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow-color);
            overflow: hidden;
            padding: 40px 60px; /* Space for arrows */
        }

        .blog-slideshow-wrapper {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }

        .blog-slide {
            min-width: 100%;
            box-sizing: border-box;
            text-align: center;
            cursor: pointer;
            transition: opacity 0.3s;
        }

        .blog-slide:hover {
            opacity: 0.8;
        }

        .blog-slide:hover h3 {
            text-decoration: underline;
        }

        .blog-slide h3 {
            color: var(--primary-color);
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        .blog-slide .slide-date {
            font-size: 0.9rem;
            color: #888;
            margin-bottom: 15px;
        }

        .blog-slide p {
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto 20px;
            opacity: 0.9;
        }

        .slide-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            color: var(--text-dark);
            border: none;
            font-size: 2rem;
            cursor: pointer;
            z-index: 10;
            transition: color 0.3s, transform 0.3s;
        }

        .slide-arrow:hover {
            color: var(--primary-color);
            transform: translateY(-50%) scale(1.2);
        }

        .prev-slide { left: 15px; }
        .next-slide { right: 15px; }

        /* Slideshow Dots */
        .slide-dots {
            position: absolute;
            bottom: 15px;
            left: 0;
            width: 100%;
            text-align: center;
            z-index: 10;
        }

        .dot {
            display: inline-block;
            width: 12px;
            height: 12px;
            margin: 0 5px;
            background-color: #ccc;
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s;
        }

        .dot.active, .dot:hover {
            background-color: var(--primary-color);
            transform: scale(1.2);
        }

        @media (max-width: 768px) {
            header h1 { font-size: 2rem; }
            
            .hamburger {
                display: block;
            }

            .hamburger.active .bar:nth-child(2) {
                opacity: 0;
            }

            .hamburger.active .bar:nth-child(1) {
                transform: translateY(8px) rotate(45deg);
            }

            .hamburger.active .bar:nth-child(3) {
                transform: translateY(-8px) rotate(-45deg);
            }

            .nav-links {
                position: fixed;
                left: -100%;
                top: 73px;
                gap: 0;
                flex-direction: column;
                background-color: var(--nav-bg);
                width: 100%;
                height: calc(100vh - 73px);
                text-align: center;
                transition: 0.3s;
                padding: 20px 0;
                backdrop-filter: blur(10px);
            }

            .nav-links.active {
                left: 0;
            }

            .nav-links a {
                margin: 16px 0;
                display: block;
                margin-left: 0;
            }

            .footer-section.info {
                text-align: left;
            }
        }

        /* Alert Messages */
        .alert-box {
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            text-align: center;
            font-weight: 500;
            animation: slideIn 0.4s ease-out;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }

        .alert-success {
            background-color: #d1e7dd;
            color: #0f5132;
            border: 1px solid #badbcc;
        }

        .alert-error {
            background-color: #f8d7da;
            color: #842029;
            border: 1px solid #f5c2c7;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Events List Styles */
        .events-list {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 15px;
            max-width: 900px;
            margin: 0 auto;
        }
        
        .events-list li {
            background: var(--bg-card);
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 5px var(--shadow-color);
            display: flex;
            align-items: center;
            font-weight: 500;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            animation: fadeInUp 0.5s ease-out forwards;
            opacity: 0; /* For animation */
        }

        .events-list li:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px var(--shadow-color);
            border-left: 4px solid var(--primary-color);
        }
        
        .events-list li i {
            color: var(--primary-color);
            margin-right: 15px;
            width: 20px;
            text-align: center;
        }

        /* Staggered Animation for List */
        .events-list li:nth-child(1) { animation-delay: 0.1s; }
        .events-list li:nth-child(2) { animation-delay: 0.15s; }
        .events-list li:nth-child(3) { animation-delay: 0.2s; }
        .events-list li:nth-child(4) { animation-delay: 0.25s; }
        .events-list li:nth-child(5) { animation-delay: 0.3s; }
        /* ... add more if needed, or let CSS handle it naturally */

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Chart Container */
        .chart-container {
            max-width: 800px;
            margin: 0 auto 40px;
            background: var(--bg-card);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow-color);
        }

        /* Modal Styles */
        .modal {
            display: none; 
            position: fixed; 
            z-index: 2000; 
            left: 0;
            top: 0;
            width: 100%; 
            height: 100%; 
            overflow: auto; 
            background-color: rgba(0,0,0,0.8); 
            backdrop-filter: blur(5px);
            animation: fadeIn 0.3s;
        }

        .modal-content {
            background-color: var(--bg-card);
            margin: 15% auto; 
            padding: 30px;
            border: 1px solid var(--border-color);
            width: 90%;
            max-width: 500px;
            border-radius: 10px;
            text-align: center;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            animation: slideIn 0.3s;
        }

        .close-modal {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            position: absolute;
            top: 10px;
            right: 20px;
            cursor: pointer;
        }

        .close-modal:hover,
        .close-modal:focus {
            color: var(--primary-color);
            text-decoration: none;
            cursor: pointer;
        }

        @keyframes fadeIn {
            from {opacity: 0;} 
            to {opacity: 1;}
        }

        /* Copy Button */
        .copy-btn {
            background: none;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
            border-radius: 4px;
            padding: 2px 8px;
            cursor: pointer;
            margin-left: 10px;
            font-size: 0.8rem;
            transition: all 0.2s;
        }
        .copy-btn:hover {
            background: var(--primary-color);
            color: white;
        }

        /* RSVP Canvas */
        #rsvpCanvas {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow-color);
            cursor: move; /* Indicate draggable */
        }

        /* Color Picker Buttons */
        .color-options {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        .color-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 3px solid transparent;
            cursor: pointer;
            transition: transform 0.2s, border-color 0.2s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        .color-btn:hover {
            transform: scale(1.1);
        }
        .color-btn.active {
            border-color: #333;
            transform: scale(1.1);
        }

        /* Lightbox Styles */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 3000;
            padding-top: 50px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.95);
        }

        .lightbox-content {
            margin: auto;
            display: block;
            width: 80%;
            max-width: 1000px;
            max-height: 80vh;
            object-fit: contain;
            animation: zoomIn 0.3s;
        }

        #lightboxCaption {
            margin: auto;
            display: block;
            width: 80%;
            max-width: 700px;
            text-align: center;
            color: #ccc;
            padding: 10px 0;
            height: 150px;
        }

        .close-lightbox {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
        }

        .close-lightbox:hover,
        .close-lightbox:focus {
            color: #bbb;
            text-decoration: none;
            cursor: pointer;
        }

        @keyframes zoomIn {
            from {transform:scale(0)}
            to {transform:scale(1)}
        }

        /* Chess Game Styles */
        .chess-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
            background: var(--bg-card);
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow-color);
            text-align: center;
            position: relative;
        }
        .game-info {
            margin-top: 20px;
            font-weight: bold;
            color: var(--text-dark);
        }
        .game-controls {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        .chess-select {
            padding: 8px;
            border-radius: 5px;
            border: 1px solid var(--border-color);
            background: var(--bg-body);
            color: var(--text-dark);
        }

        /* Chessboard.js Styles (Fallback for Tiles) */
        .board-b72b1 {
            border: 2px solid #404040;
            box-sizing: content-box;
        }
        .square-55d63 {
            float: left;
            position: relative;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        .white-1e1d7 {
            background-color: #f0d9b5;
            color: #b58863;
        }
        .black-3c85d {
            background-color: #b58863;
            color: #f0d9b5;
        }
        .highlight1-32417, .highlight2-9c5d2 {
            box-shadow: inset 0 0 3px 3px yellow;
        }
        .notation-322f9 {
            cursor: default;
            font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
            font-size: 14px;
            position: absolute;
        }
        .alpha-d2270 {
            bottom: 1px;
            right: 3px;
        }
        .numeric-fc462 {
            top: 2px;
            left: 2px;
        }

        /* Highlight Legal Moves */
        .highlight-move {
            box-shadow: inset 0 0 3px 3px rgba(255, 255, 0, 0.8);
            background-color: rgba(255, 255, 0, 0.2);
        }

        /* Game Over Modal */
        .game-over-modal {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.9);
            color: #fff;
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            z-index: 100;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            width: 80%;
            max-width: 350px;
        }
        .game-over-modal h2 { color: #FFD700; margin-bottom: 10px; font-size: 2rem; }
        .game-over-modal p { font-size: 1.2rem; margin-bottom: 20px; }
        @keyframes popIn {
            0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
        }

        /* Chess Layout & History */
        .chess-layout {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            align-items: flex-start;
            margin-top: 20px;
        }

        .board-section {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
            position: relative;
        }

        #myBoard {
            width: 100%;
        }

        .history-section {
            flex: 0 0 250px;
            background: var(--bg-alt);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 15px;
            height: 500px;
            display: flex;
            flex-direction: column;
            text-align: left;
        }

        .history-section h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-size: 1.1rem;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 5px;
        }

        .history-list {
            flex: 1;
            overflow-y: auto;
        }

        #moveHistoryTable {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
        }

        #moveHistoryTable th {
            position: sticky;
            top: 0;
            background: var(--bg-alt);
            padding: 5px;
            border-bottom: 2px solid var(--border-color);
            color: var(--text-dark);
        }

        #moveHistoryTable td {
            padding: 5px;
            border-bottom: 1px solid var(--border-color);
        }

        #moveHistoryTable tr:nth-child(even) {
            background-color: rgba(0,0,0,0.03);
        }

        @media (max-width: 768px) {
            .history-section {
                width: 100%;
                flex: none;
                height: 250px;
            }
        }

        /* Urgent Countdown Styles */
        .urgent-countdown .countdown-number {
            color: #ff0000 !important;
            animation: pulse-red 1s infinite;
        }

        @keyframes pulse-red {
            0% { opacity: 1; }
            50% { opacity: 0.6; }
            100% { opacity: 1; }
        }

        /* Registration Closed Banner */
        .registration-closed-banner {
            background-color: #dc3545;
            color: white;
            text-align: center;
            padding: 15px 20px;
            font-weight: 600;
            font-size: 1.1rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            position: relative;
            z-index: 990;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            animation: slideDown 0.5s ease-out;
        }

        @keyframes slideDown {
            from { transform: translateY(-20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }