        @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Inter:wght@300;400;600&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            color: #333;
            overflow-x: hidden;
            background: linear-gradient(135deg, #f4eee6 0%, #e3d7c8 100%);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* --- Hero / Fejléc konténer --- */
        #hero {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            transition: height 1.2s cubic-bezier(0.25, 1, 0.5, 1);
        }

        body.shrunk #hero {
            height: 300px;
        }

        /* --- A videók formázása --- */
        #startVideo, #bannerVideo {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            object-fit: cover; object-position: center center;
        }
        #startVideo { z-index: -2; transition: opacity 0.8s ease; }
        #bannerVideo { z-index: -3; }

        .video-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.25); z-index: -1;
        }

        /* --- Menüsor --- */
        .glass-nav {
            position: fixed; top: 0; left: 0; width: 100%; height: 65px; 
            background: transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
            z-index: 1000; display: flex; justify-content: center; align-items: center;
        }

        .glass-nav::before {
            content: ''; position: absolute; inset: 0;
            background: rgba(45, 45, 45, 0.65); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
            z-index: -1;
        }

        .nav-logo-container {
            position: absolute; left: 30px; display: flex; align-items: center;
            gap: 12px; opacity: 0; transform: translateY(10px);
            transition: opacity 0.4s ease, transform 0.4s ease;
            pointer-events: none; cursor: pointer;
        }

        body.scrolled .nav-logo-container { opacity: 1; transform: translateY(0); pointer-events: auto; }

        .nav-logo {
            height: 136px; width: auto; position: relative; top: 38px;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
            transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .nav-logo-container:hover .nav-logo {
            transform: scale(1.08) rotate(-2deg); 
            filter: drop-shadow(0 0 10px rgba(227, 215, 200, 0.8));
        }

        .glass-nav > ul { list-style: none; display: flex; margin: 0; padding: 0; height: 100%; }
        
        .glass-nav > ul > li { 
            position: relative; display: flex; align-items: center; padding: 0 25px; 
            cursor: default; color: #fff; text-transform: uppercase; 
            letter-spacing: 1.5px; text-shadow: 0 2px 6px rgba(0,0,0,0.6); 
            transition: color 0.3s ease; height: 100%; 
            font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 400;   
        }
        .glass-nav > ul > li:hover { color: #e3d7c8; }
        .glass-nav > ul > li::after {
            content: ''; position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
            width: 0; height: 1px; background-color: #e3d7c8; 
            transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        }
        .glass-nav > ul > li:hover::after { width: calc(100% - 50px); }

        /* --- Almenük --- */
        .glass-nav > ul > li > ul { 
            position: absolute; top: 80px; left: 0; 
            background: rgba(45, 45, 45, 0.65); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); 
            border: 1px solid rgba(255, 255, 255, 0.15); border-top: none; 
            min-width: 280px; opacity: 0; visibility: hidden; transition: all 0.3s ease; 
            display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; 
        }
        .glass-nav > ul > li:hover > ul { opacity: 1; visibility: visible; top: 65px; }
        
        .glass-nav ul li ul li { 
            position: relative; padding: 15px 20px; color: #fff; white-space: nowrap; 
            transition: all 0.3s ease; text-shadow: 0 1px 2px rgba(0,0,0,0.2); 
            font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 400;
            letter-spacing: 1px; cursor: pointer;
        }

        .glass-nav ul li ul li:hover { 
            background: linear-gradient(90deg, rgba(192, 133, 82, 0.2) 0%, transparent 100%); 
            color: #e3d7c8; box-shadow: inset 4px 0 0 #c08552; padding-left: 26px; 
        }
        
        .glass-nav ul li ul li ul {
            position: absolute; top: 0; left: calc(100% - 15px); 
            background: rgba(45, 45, 45, 0.65); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); 
            border: 1px solid rgba(255, 255, 255, 0.15); min-width: 280px; 
            opacity: 0; visibility: hidden; transition: all 0.3s ease; 
            display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; 
        }
        .glass-nav ul li ul li:hover > ul { opacity: 1; visibility: visible; left: 100%; }
        .glass-nav a { color: inherit; text-decoration: none; display: block; }

        /* --- Dinamikus Címer és Iskolanév --- */
        .dynamic-logo { 
            position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); 
            height: 320px; width: auto; z-index: 10; 
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)) drop-shadow(0 10px 20px rgba(0,0,0,0.6));
            transition: top 0.8s cubic-bezier(0.25, 1, 0.5, 1), left 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                        height 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
        }
        
        .dynamic-title { 
            position: absolute; top: 65%; left: 50%; transform: translate(-50%, 0); text-align: center; 
            width: 90%; max-width: 1200px; color: #fff; font-size: 2.9rem; 
            font-family: 'Cinzel', serif; font-weight: 400; letter-spacing: 2px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 4px 15px rgba(0,0,0,0.8);
            line-height: 1.4; z-index: 10; 
            transition: top 0.8s cubic-bezier(0.25, 1, 0.5, 1), left 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                        font-size 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                        width 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
        }

        body:not(.shrunk) .dynamic-logo { opacity: 0; animation: pulsateLogo 6.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s; }
        body:not(.shrunk) .dynamic-title { opacity: 0; animation: pulsateTitle 6.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s; }

        @keyframes pulsateLogo { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
        @keyframes pulsateTitle { 0% { opacity: 0; transform: translate(-50%, 0) scale(0.9); } 50% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } }

        body.shrunk .dynamic-logo { top: 55%; left: 60px; transform: translate(0, -50%); height: 180px; animation: none; opacity: 1; }
        body.shrunk .dynamic-title { top: 55%; left: 280px; transform: translate(0, -50%); font-size: 2.2rem; text-align: left; width: calc(100% - 320px); animation: none; opacity: 1; }

        /* --- FŐ TARTALOM --- */
        main { min-height: 100vh; padding: 30px 20px 80px 20px; }
        .content-wrapper { max-width: 1200px; margin: 0 auto; }

        .section-title { text-align: center; font-size: 2.5rem; font-weight: 300; color: #4a3f35; margin-bottom: 50px; text-transform: uppercase; letter-spacing: 2px; }
        
        
        
        
        .news-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
            gap: 30px; 
            margin-bottom: 80px; 
        }
        
        .news-card { 
            background: rgba(255, 255, 255, 0.65); 
            backdrop-filter: blur(12px); 
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.8);
            border-left: 4px solid #c08552; /* Rímel a naptárra */
            border-radius: 0 !important; /* SZÖGLETES */
            overflow: hidden; 
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
            cursor: pointer; 
            display: flex; 
            flex-direction: column; 
            position: relative;
        }
        
        .news-card:hover { 
            transform: translateY(-10px); 
            box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
            background: rgba(255, 255, 255, 0.85); /* Hoverre picit kivilágosodik */
        }
        
        .news-image-container, .news-image { 
            width: 100%; 
            height: 220px; 
            overflow: hidden; 
            background: rgba(0,0,0,0.05); 
            border-radius: 0; /* Képek is szögletesek */
        }
        
        .news-image-container img, .news-image img { 
            width: 100%; 
            height: 100%; 
            object-fit: cover; 
            transition: transform 0.6s ease; 
        }
        
        .news-card:hover .news-image-container img, .news-card:hover .news-image img { 
            transform: scale(1.08); 
        }
        
        .news-content { 
            padding: 25px; 
            display: flex; 
            flex-direction: column; 
            flex-grow: 1; 
        }
        
        .news-date { 
            font-size: 0.9rem !important; /* Felülírja a HTML inline stílust */
            font-weight: 700;
            color: #c08552 !important; 
            margin-bottom: 10px !important; 
            text-transform: uppercase; 
            letter-spacing: 1px; 
        }
        
        .news-title { 
            font-family: 'Inter', sans-serif !important; /* Visszaállítjuk a jól olvasható betűtípust */
            font-size: 1.25rem !important; 
            font-weight: 700; 
            color: #2c3e50; 
            margin-top: 0 !important;
            margin-bottom: 15px; 
            line-height: 1.4; 
            text-transform: none !important; /* Biztosítjuk, hogy normál kis- és nagybetűs maradjon */
        }
        
        .news-excerpt { 
            color: #4a3f35; 
            line-height: 1.6; 
            font-size: 0.95rem; 
            margin-bottom: 25px; 
            flex-grow: 1; 
        }
        
        .read-more { 
            display: inline-block;
            align-self: flex-start;
            padding: 8px 16px;
            border: 1px solid #c08552;
            color: #c08552 !important; 
            text-decoration: none; 
            font-family: 'Cinzel', serif;
            font-weight: 600; 
            font-size: 0.85rem; 
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s; 
            border-radius: 0;
            cursor: pointer; 
        }
        
        .news-card:hover .read-more { 
            background: #c08552; 
            color: #fff !important; 
        }

        
        .close-card-btn {
            position: absolute; 
            top: 10px; 
            right: 10px;
            background: rgba(44, 62, 80, 0.8); 
            color: #fff; 
            border: none;
            width: 35px; 
            height: 35px; 
            font-size: 22px;
            cursor: pointer; 
            z-index: 10;
            border-radius: 0 !important; /* Szögletes bezárás gomb */
            transition: background 0.3s;
        }
        
        .close-card-btn:hover { 
            background: #e74c3c; 
        }

        .social-section { display: flex; flex-direction: column; align-items: center; background: rgba(235, 224, 211, 0.6); padding: 50px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

        .dramatic-reveal { opacity: 0; transform: translateY(120px) scale(0.85) perspective(1000px) rotateX(-10deg); transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1), transform 2.5s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: bottom center; }
        .dramatic-reveal.visible { opacity: 1; transform: translateY(0) scale(1) perspective(1000px) rotateX(0); }
        .news-card:nth-child(1) { transition-delay: 0.1s; } .news-card:nth-child(2) { transition-delay: 0.5s; } .news-card:nth-child(3) { transition-delay: 0.9s; } .social-section { transition-delay: 0.3s; } 

        #article-section { background: #fff; padding: 50px; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); display: none; animation: fadeIn 0.8s ease-out forwards; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

        .back-btn { display: inline-block; margin-bottom: 30px; color: #c08552; text-decoration: none; font-weight: 600; font-size: 1rem; transition: color 0.3s; cursor: pointer; }
        .back-btn:hover { color: #9c683b; }
        .article-header { border-bottom: 2px solid #f4eee6; padding-bottom: 20px; margin-bottom: 30px; }
        .article-header h2 { font-size: 2.2rem; color: #2c3e50; font-weight: 300; }
        .article-header p { color: #888; font-size: 0.9rem; margin-top: 5px; }

        .search-container { margin-bottom: 40px; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
        .search-input { width: 100%; max-width: 450px; padding: 15px 20px; font-size: 1rem; border: 1px solid #ddd; border-radius: 30px; outline: none; transition: border-color 0.3s, box-shadow 0.3s; font-family: 'Inter', sans-serif; background: #fdfaf6; }
        .search-input:focus { border-color: #c08552; box-shadow: 0 0 10px rgba(192, 133, 82, 0.2); background: #fff; }
        .search-label { margin-bottom: 10px; font-weight: 600; color: #4a3f35; font-size: 0.95rem; }

        .list-container { margin-bottom: 60px; }
        .list-title { font-size: 1.5rem; color: #c08552; margin-bottom: 15px; font-weight: 600; border-left: 4px solid #c08552; padding-left: 15px; }
        .table-scroll-wrapper { max-height: 450px; overflow-y: auto; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.03); border: 1px solid #f0f0f0; scrollbar-width: thin; scrollbar-color: #c08552 #f4eee6; }
        .table-scroll-wrapper::-webkit-scrollbar { width: 8px; }
        .table-scroll-wrapper::-webkit-scrollbar-track { background: #f4eee6; border-radius: 8px; }
        .table-scroll-wrapper::-webkit-scrollbar-thumb { background-color: #c08552; border-radius: 8px; }
        .score-table { width: 100%; border-collapse: collapse; background: #fff; text-align: center; }
        .score-table th { position: sticky; top: 0; z-index: 2; background: #4a3f35; color: #fff; padding: 18px 15px; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
        .score-table td { padding: 15px; border-bottom: 1px solid #f0f0f0; color: #444; font-size: 1.05rem; }
        .score-table tr:hover td { background: #fdfaf6; }
        .score-table tr:last-child td { border-bottom: none; }
        .highlight-score { font-weight: 600; color: #27ae60; }

        
        
        

        .main-content-grid {
            display: grid; grid-template-columns: 2.5fr 1fr; gap: 40px; 
            max-width: 1400px; margin: 10px auto 40px auto;
        }

        .calendar-widget {
            position: sticky; top: 100px; background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.8); border-left: 4px solid #c08552; 
            border-radius: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            display: flex; flex-direction: column; padding: 25px;
        }

        .calendar-header h3 {
            font-family: 'Cinzel', serif; color: #2c3e50; font-size: 1.3rem; font-weight: 600;
            margin-top: 0; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
            border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 10px;
        }

        .calendar-events { max-height: 350px; overflow-y: auto; padding-right: 10px; margin-bottom: 20px; }
        .calendar-events::-webkit-scrollbar { width: 4px; }
        .calendar-events::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.03); }
        .calendar-events::-webkit-scrollbar-thumb { background: rgba(192, 133, 82, 0.4); border-radius: 0; }
        .calendar-events::-webkit-scrollbar-thumb:hover { background: rgba(192, 133, 82, 1); }

        .event-item { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05); transition: transform 0.2s ease, padding-left 0.2s ease; }
        .event-item:last-child { border-bottom: none; }
        .event-item:hover { transform: translateX(4px); border-left: 2px solid #c08552; padding-left: 8px; }

        .badge {
            font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
            padding: 6px 12px; border-radius: 0 !important; letter-spacing: 1px;
        }
        .badge-today { background: #e74c3c; color: #fff; box-shadow: 0 2px 5px rgba(231, 76, 60, 0.4); }
        .badge-tomorrow { background: #c08552; color: #fff; }

        .active-today {
            position: relative; overflow: hidden; border-radius: 0 !important;
            background: linear-gradient(90deg, rgba(192, 133, 82, 0.3) 0%, rgba(255,255,255,0) 100%);
            border-left: 3px solid #e74c3c; padding-left: 12px;
        }
        
        .active-today::after {
            content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
            background: linear-gradient(to right, transparent, rgba(255,255,255,0.9), transparent);
            transform: skewX(-20deg); animation: shimmer 2s infinite;
        }
        @keyframes shimmer { 0% { left: 0%; } 20% { left: 100%; } 100% { left: 100%; } }

        .event-date { font-size: 0.95rem; font-weight: 700; color: #c08552; display: flex; justify-content: space-between; margin-bottom: 4px; }
        .event-time { font-weight: 400; color: #7f8c8d; font-size: 0.85rem; }
        .event-title { font-size: 1rem; color: #2c3e50; font-weight: 500; line-height: 1.3; }

        .active-event { background: rgba(192, 133, 82, 0.1); padding: 12px; border-left: 2px solid #c08552; }
        .active-event:hover { padding-left: 12px; }

        .calendar-btn {
            display: block; text-align: center; background: transparent; color: #2c3e50; text-decoration: none;
            font-family: 'Cinzel', serif; font-weight: 600; font-size: 0.95rem; padding: 12px;
            border: 1px solid #2c3e50; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
        }
        .calendar-btn:hover { background: #2c3e50; color: #fff; box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2); }

        
        
        .calendar-page-wrapper {
            max-width: 1200px; margin: 40px auto; padding: 20px;
            background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px);
            border-radius: 0 !important; box-shadow: 0 10px 40px rgba(0,0,0,0.05);
        }

        .calendar-controls {
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; gap: 20px; margin-bottom: 30px;
            border-bottom: 2px solid rgba(192, 133, 82, 0.2); padding-bottom: 20px;
        }

        .view-toggles { display: flex; gap: 10px; }
        .export-buttons { display: flex; gap: 15px; }

        /* --- EGYSÉGESÍTETT NAPTÁR GOMBOK (Nézetváltók és Exportálók) --- */
        .toggle-btn, .export-btn {
            font-family: 'Inter', sans-serif !important; /* Jól olvasható, modern betűtípus */
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 12px 20px;
            border-radius: 0 !important; /* Marad a szögletes bolyai-dizájn */
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
            
            /* 3D Térhatás (finom árnyék alul, enyhe becsillanás a felső élen) */
            border: 1px solid rgba(0, 0, 0, 0.2);
            box-shadow: 
                0 4px 6px rgba(0, 0, 0, 0.1), 
                0 1px 3px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }

        /* Lebegtetés (Hover) - a gomb picit megemelkedik */
        .toggle-btn:hover, .export-btn:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 6px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }

        /* "Fizikai" lenyomás effektje kattintáskor */
        .toggle-btn:active, .export-btn:active {
            transform: translateY(2px); /* Lefelé mozdul */
            box-shadow: 
                0 1px 2px rgba(0, 0, 0, 0.1), 
                inset 0 2px 4px rgba(0, 0, 0, 0.15); /* A belső árnyék erősödik, mintha beesne a felületbe */
        }

        /* Színek és egyedi állapotok */
        .toggle-btn { background: #fdfaf6; color: #2c3e50; }
        .toggle-btn.active { background: #2c3e50; color: #fff; border-color: #1a252f; }
        .google-btn { background: #4285F4; color: #fff; border-color: #2a64c5; }
        .ics-btn { background: #c08552; color: #fff; border-color: #9c683b; }

        .view-container { display: none; animation: fadeIn 0.5s; }
        .view-container.active-view { display: block; }

        .full-page-list .event-item { display: flex; align-items: center; padding: 20px 25px; gap: 30px; }
        .full-page-list .event-datetime { display: flex; flex-direction: column; min-width: 140px; gap: 4px; }
        .full-page-list .event-date-text { font-weight: 700; color: #c08552; font-size: 1.1rem; }
        .full-page-list .event-time-text { font-size: 0.9rem; color: #7f8c8d; }
        .full-page-list .event-title { flex-grow: 1; font-size: 1.2rem; color: #2c3e50; font-weight: 500; }
        .full-page-list .event-badge { margin-left: auto; }

        .calendar-grid-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        
        #current-month-display { 
            font-family: 'Inter', sans-serif !important; 
            font-size: 1.4rem; /* Kisebbre vettük az évet és hónapot */
            font-weight: 700; 
            color: #2c3e50; 
            margin: 0; 
            text-transform: uppercase; 
            letter-spacing: 1px;
            text-align: center;
        }
        
        /* --- Naptár lapozó gombok (Ugyanaz a 3D hatás, mint a többinél) --- */
        .month-nav-btn {
            font-family: 'Inter', sans-serif !important;
            font-size: 1.2rem;
            font-weight: 700;
            padding: 8px 20px;
            background: #fdfaf6;
            color: #2c3e50;
            border: 1px solid rgba(0, 0, 0, 0.2);
            border-radius: 0 !important;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }
        .month-nav-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }
        .month-nav-btn:active {
            transform: translateY(2px);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.15);
        }

        /* --- Napok neveinek logikája (Alapértelmezés: Asztali nézet) --- */
        .mobile-day { display: none; }
        .desktop-day { display: inline; }

        .calendar-days-header {
            display: grid; 
            grid-template-columns: repeat(7, minmax(0, 1fr)); /* Ez akadályozza meg a kifolyást! */
            text-align: center;
            font-weight: 600; color: #4a3f35; padding-bottom: 10px;
            border-bottom: 2px solid rgba(0,0,0,0.1); margin-bottom: 10px;
        }

        .calendar-grid { 
            display: grid; 
            grid-template-columns: repeat(7, minmax(0, 1fr)); /* Ez akadályozza meg a kifolyást! */
            gap: 8px; 
        }

        .grid-cell {
            min-height: 120px; background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255, 255, 255, 0.6);
            padding: 8px; display: flex; flex-direction: column; transition: background 0.3s;
            border-radius: 0 !important;
        }
        .grid-cell:hover { background: rgba(255, 255, 255, 0.8); }
        .grid-cell.empty-cell { background: transparent; border: none; }
        .grid-cell.today-cell { background: rgba(192, 133, 82, 0.1); border: 1px solid #c08552; }

        .grid-date-num { font-weight: 700; color: #2c3e50; align-self: flex-end; margin-bottom: 5px; }

        .grid-event-item {
            font-size: 0.75rem; background: rgba(192, 133, 82, 0.15); border-left: 2px solid #c08552;
            margin-bottom: 4px; padding: 3px 5px; color: #2c3e50; line-height: 1.2; word-wrap: break-word; cursor: default;
            border-radius: 0 !important;
        }

        /* ========================================================= */
        /* --- TANTÁRGYFELOSZTÁS / RENDSZER PANELEK --- */
        /* ========================================================= */
        
        .d-none { display: none !important; }
        .text-center { text-align: center; }
        .mt-3 { margin-top: 1rem; }

        .system-panel {
            padding: 40px 20px;
            margin: 20px auto;
            max-width: 600px;
            background: rgba(255, 255, 255, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }

        .filter-controls {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        /* Legördülő menük (Kockás, üveghatású) */
        .custom-select {
            flex: 1;
            min-width: 200px;
            padding: 12px 15px;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            color: #2c3e50;
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(0,0,0,0.15);
            border-radius: 0;
            outline: none;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .custom-select:focus, .custom-select:hover {
            background: #fff;
            border-color: #c08552;
        }

        .filter-active {
            background: #2c3e50 !important;
            color: #fff;
            border-color: #1a252f;
        }

        /* Betöltő animáció (Spinner) */
        .spinner {
            display: inline-block;
            width: 50px;
            height: 50px;
            border: 4px solid rgba(192, 133, 82, 0.2);
            border-radius: 50%;
            border-top-color: #c08552;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin { to { transform: rotate(360deg); } }

        /* A táblázat lábléce a Bolyai stílushoz igazítva */
        .score-table tfoot th {
            position: sticky;
            bottom: 0;
            background: #2c3e50;
            color: #fff;
            padding: 15px;
            font-weight: 700;
            z-index: 5;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        }


        
        
        .hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; position: absolute; right: 20px; z-index: 1005; }
        .hamburger span { width: 25px; height: 2px; background: #fff; transition: 0.3s; }

        @media (max-width: 1350px) {
            .hamburger { display: flex; }
            .glass-nav > ul { 
                position: absolute; top: 65px; left: 0; width: 100%; flex-direction: column; 
                background: rgba(45, 45, 45, 0.91); height: calc(100vh - 65px); 
                overflow-y: auto; padding-bottom: 20px; display: none; 
            }
            .glass-nav > ul.active { display: flex; }
            .glass-nav > ul > li { height: auto; padding: 15px 25px; display: block; border-bottom: 1px solid rgba(255,255,255,0.05); }
            
            .glass-nav ul li ul, .glass-nav ul li ul li ul { 
                position: static; display: none; opacity: 1; visibility: visible; 
                transform: none; left: 0; background: transparent; border: none; box-shadow: none; 
                padding-top: 10px; padding-bottom: 5px; backdrop-filter: none; -webkit-backdrop-filter: none;
            }
            
            .glass-nav ul li:hover > ul, .glass-nav ul li:active > ul, .glass-nav ul li.mobile-open > ul { display: flex; flex-direction: column; }
            
            .glass-nav ul li ul li { padding: 10px 15px; border-left: 2px solid #c08552; margin-left: 10px; border-bottom: none; text-shadow: none; }
            .glass-nav ul li ul li ul li { border-left: 2px solid rgba(192, 133, 82, 0.4); margin-left: 15px; font-size: 0.8rem; padding-top: 8px; padding-bottom: 8px; }
        }

        @media (max-width: 1024px) {
            .main-content-grid { grid-template-columns: 1fr; }
            .calendar-widget { position: static; margin-top: 30px; }
        }

       @media (max-width: 768px) {
            .dynamic-title { font-size: 1.8rem; width: 95%; }
            .dynamic-logo { height: 200px; }
            body.shrunk .dynamic-logo { left: 20px; height: 100px; }
            body.shrunk .dynamic-title { left: 120px; font-size: 1.2rem; width: calc(100% - 140px); }
            
            .section-title { font-size: 2rem; }
            #article-section { padding: 30px 15px; }
            .score-table th, .score-table td { padding: 12px 10px; font-size: 0.9rem; }
            .nav-logo { height: 75px; top: 10px; }
            
            /* --- Naptár gombok mobilon (100% szélesség, kényelmes érintés) --- */
            .calendar-controls { flex-direction: column; align-items: stretch; gap: 20px; border-bottom: none; padding-bottom: 0; }
            .view-toggles, .export-buttons { display: flex; flex-direction: column; width: 100%; gap: 10px; }
            .toggle-btn, .export-btn { width: 100%; justify-content: center; padding: 15px; }
            
            /* --- NAPTÁR: Lista nézet tömörítése mobilon --- */
            .full-page-list .event-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 15px; }
            .full-page-list .event-datetime { min-width: auto; flex-direction: row; align-items: baseline; gap: 10px; }
            .full-page-list .event-badge { margin-left: 0; margin-top: 5px; }
            .full-page-list .event-date-text { font-size: 1rem; }
            .full-page-list .event-title { font-size: 1.05rem; }
            .full-page-list .event-time-text { font-size: 0.8rem; }
            
            /* --- Naptár Fejléc és Napok mobilon --- */
            #current-month-display { 
                font-size: 1.1rem !important; /* Mobilon még kisebb hónapnév */
            }
            .month-nav-btn { 
                padding: 8px 20px; /* Megmarad a kényelmes gombméret */
            }
            
            /* Mobilon elrejtjük a teljes neveket, és mutatjuk a rövidítéseket */
            .desktop-day { display: none !important; }
            .mobile-day { 
                display: inline !important; 
                font-size: 0.9rem; /* Jól olvasható méret a H, K, Sz betűknek */
                font-weight: 700;
            }
            
            .calendar-days-header div { 
                white-space: normal;
                overflow: visible;
                letter-spacing: 0;
            }
            
            /* --- NAPTÁR: Havi nézet rács mobilon --- */
            .calendar-page-wrapper { 
                padding: 10px; /* Kisebb margó a képernyő szélén, hogy több hely maradjon */
            }
            .calendar-grid { 
                gap: 3px; /* Sokkal kisebb rések a cellák között mobilon */
            }
            .grid-cell { 
                min-height: 80px; 
                padding: 3px; 
                overflow: hidden; /* Eltünteti, ha valami mégis kilógna */
            }
            .grid-event-item { 
                font-size: 0.65rem; 
                padding: 2px; 
                word-break: break-word; /* Kényszerített sortörés a hosszú időpontoknál */
                line-height: 1.1; /* Picit szorosabb sorköz */
            }
            .grid-date-num { 
                font-size: 0.8rem; 
                font-weight: 400; 
                margin-bottom: 2px; 
            }
            .filter-controls { flex-direction: column; align-items: stretch; }
            .custom-select { width: 100%; }
        }

        @media (max-width: 480px) {
            body.shrunk .dynamic-logo { left: 10px; height: 80px; }
            body.shrunk .dynamic-title { left: 100px; font-size: 1rem; width: calc(100% - 110px); }
        }