/* --- ALAP BEÁLLÍTÁSOK (MARAD) --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #F1F1E6; 
    color: #333;
}
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- NAVIGÁCIÓ --- */
nav {
    background-color: #08122b;
    height: 80px; /* Fix magasság, hogy ne csússzon el a menü */
    padding: 0 2rem; /* Oldalsó távolság */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box; /* Hogy a padding ne növelje a méretet */
}
.logo img {
    height: 50px; /* Logó magasságának beállítása */
    width: auto;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}
nav a:hover {
    color: #498CFF;
}
.btn-contact {
    background-color: #F1C039;
    padding: 8px 15px;
    border-radius: 5px;
    color: #08122b !important; /* Felülírja a sima link színt */
}

header#hero {
    /* 1. HÁTTÉR: Mély, elegáns sötétkék (kicsit világosabb középen, sötét a szélén) */
    background: radial-gradient(circle at center, #1a2b5e 0%, #08122b 100%);
    
    /* 2. MÉRET: Teljes képernyő (100vh = 100% viewport height) */
    height: 100vh;
    width: 100%;
    
    /* 3. POZÍCIÓ: Minden szigorúan középen */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Függőlegesen közép */
    align-items: center;     /* Vízszintesen közép */
    text-align: center;
    
    padding: 0 20px;
    margin-top: 0;
    color: white;
    
    /* Hogy a navigáció ne takarjon bele, ha fix */
    box-sizing: border-box; 
}

#hero h1 {
    font-size: 5rem; /* Hatalmas méret */
    font-weight: 800; /* Vastag betű */
    margin: 0;
    margin-bottom: 20px; /* Hely az alcím előtt */
    letter-spacing: 2px;
    line-height: 1.1;
    text-transform: uppercase;
    
    /* --- A 3D EFFEKT --- */
    text-shadow: 
        0 1px 0 #ccc, 
        0 2px 0 #c9c9c9, 
        0 3px 0 #bbb, 
        0 4px 0 #b9b9b9, 
        0 5px 0 #aaa, 
        0 6px 1px rgba(0,0,0,.1), 
        0 0 5px rgba(0,0,0,.1), 
        0 1px 3px rgba(0,0,0,.3), 
        0 3px 5px rgba(0,0,0,.2), 
        0 5px 10px rgba(0,0,0,.25), 
        0 10px 10px rgba(0,0,0,.2), 
        0 20px 20px rgba(0,0,0,.15);
}

#hero p {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9); /* Kicsit áttetsző fehér */
    margin: 0 auto; /* Biztos, ami biztos: középre húzza */
    max-width: 700px;
    text-transform: uppercase; /* Opcionális: nagybetűs alcím is elegáns */
    letter-spacing: 3px; /* Szellős betűk */
}

/* --- HAMBURGER IKON ALAPBEÁLLÍTÁSAI (EZ HIÁNYZOTT!) --- */

/* 1. Alapból (gépen) rejtve van, de foglalja a helyet a kódban */
.hamburger {
    display: none; /* Gépen nem látszik */
    cursor: pointer;
}

/* 2. Így néznek ki a fehér csíkok (a gomb részei) */
.bar {
    display: block;
    width: 25px;       /* Szélesség */
    height: 3px;       /* Vastagság */
    margin: 5px auto;  /* Távolság a csíkok között */
    transition: all 0.3s ease-in-out; /* Animáció sebessége */
    background-color: white; /* FONTOS: Fehér szín */
}

@media (max-width: 768px) {

    /* 1. HAMBURGER IKON MEGJELENÍTÉSE ÉS ANIMÁLÁSA */
    .hamburger {
        display: block; /* Mobilon láthatóvá tesszük */
    }

    /* Amikor kinyílik, X alakot vesz fel */
    .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);
    }

    /* 2. A LEGÖRDÜLŐ MENÜ (FÜGGÖNY EFFEKT) */
    /* ... A @media (max-width: 768px) blokkon belül ... */

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        
        /* ITT A LÉNYEG A JAVÍTÁSHOZ: */
        padding-top: 100px;  /* Fent marad a hely */
        padding-left: 0;     /* Bal oldali behúzás törlése -> ÍGY LESZ KÖZÉPEN */
        padding-right: 0;    /* Jobb oldalt is biztosra megyünk */
        
        z-index: -1;
        background-color: #08122b; 
        
        /* Flexbox igazítások */
        display: flex;       /* Biztosítjuk, hogy flex legyen */
        flex-direction: column;
        align-items: center; /* Vízszintesen középre igazít */
        text-align: center;
        
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        
        /* Animáció */
        max-height: 0;       
        overflow: hidden;    

        /* A visibility: hidden a Tab-sorrendből is kiveszi a rejtett linkeket.
           A max-height: 0 önmagában NEM tenné meg: csukott menü mellett a
           fókusz láthatatlan linkekre ugrálna (WCAG 2.4.3 / 2.4.7).
           A váltás záráskor késleltetve történik (0.5s = pont a max-height
           animáció ideje), hogy a becsukódás végig látszódjon. */
        visibility: hidden;
        transition: max-height 0.5s ease-in-out, visibility 0s linear 0.5s; 
    }

    .nav-links li {
        margin: 25px 0;
        opacity: 0; /* A szöveg még láthatatlan */
        transition: opacity 0.3s ease-out;
    }

    /* Aktív állapot (Kinyitva) */
    .nav-links.active {
        /* FONTOS: a .nav-links content-box, és van rajta 100px padding-top,
           ezért a sima 100vh-ból a doboz TELJES magassága 100vh + 100px lenne,
           vagyis mindig kilógna a képernyő aljából. A padding levonásával a
           teljes magasság pontosan a képernyőbe fér.
           (A 100px a fenti padding-top értéke – együtt kell mozogniuk.) */
        max-height: calc(100vh - 100px);
        /* Ha a menüpontok nem férnek ki (alacsony kijelzőn, pl. 640-780px magas
           telefonon), a nyitott menü legyen görgethető. Enélkül az utolsó
           menüpontok az overflow: hidden miatt levágódnának, és sem koppintással,
           sem Tab-bal nem lennének elérhetők. Ha kifér, nincs hatása: görgetősáv
           sem jelenik meg. Az overscroll-behavior megakadályozza, hogy a menü
           aljára érve a mögötte lévő oldal kezdjen el görögni. */
        overflow-y: auto;
        overscroll-behavior: contain;
        /* Nyitáskor azonnal láthatóvá kell válnia, hogy a linkek rögtön
           fókuszálhatók legyenek – itt tehát nincs késleltetés */
        visibility: visible;
        transition: max-height 0.5s ease-in-out, visibility 0s linear 0s;
    }

    .nav-links.active li {
        opacity: 1; /* Megjelenik a szöveg */
    }

    /* 3. HERO SZEKCIÓ (3D SZÖVEG MOBILON) */
    header#hero {
        height: 100vh; /* Mobilon is teljes képernyő */
    }

    #hero h1 {
        font-size: 2.5rem; /* Mobilon kisebb betűméret */
        /* Kisebb 3D árnyék, hogy olvasható maradjon kis kijelzőn */
        text-shadow: 
            0 1px 0 #ccc, 
            0 2px 0 #bbb, 
            0 3px 0 #aaa, 
            0 5px 10px rgba(0,0,0,.2);
    }
    
    #hero p {
        font-size: 1rem;
        letter-spacing: 1px;
        padding: 0 10px; /* Kis margó a széleken */
    }

    /* 4. TARTALOM IGAZÍTÁSA (GRID -> EGYMÁS ALÁ) */
    /* A kártyák ne egymás mellett, hanem alatt legyenek */
    .team-grid, .groups-grid, .events-grid, .news-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .container {
        flex-direction: column;
    }

    .image-box img {
        width: 100%;
        max-width: 350px;
    }
}



section {
    padding: 80px 20px;
    text-align: center;
}

/* --- RÓLUNK & ELNÖKSÉG (KICSIT FINOMÍTVA) --- */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.image-box img {
    max-width: 100%;
    width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.text-box {
    max-width: 400px;
    text-align: left;
}
.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.member-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.member-card:hover {
    transform: translateY(-10px); /* Kicsit "felemelkedik" ha ráviszed az egeret */
}
.member-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #08122b;
    margin-bottom: 15px;
}

/* --- SOCIAL IKONOK STÍLUSA --- */
.socials {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px; /* Távolság az ikonok között */
}

.socials a {
    text-decoration: none; /* Aláhúzás levétele */
    color: #08122b;        /* Alapból sötétkék */
    font-size: 1.5rem;     /* Ikon mérete (kb 24px) */
    transition: transform 0.3s, color 0.3s;
}

/* Ha ráviszed az egeret */
.socials a:hover {
    color: #F1C039;        /* Sárga lesz */
    transform: scale(1.2); /* Kicsit megnő */
}

/* --- MUNKACSOPORTOK (ÚJ CSS) --- */
.groups-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.group-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.group-logo {
    height: 60px; /* Alprojekt logók mérete */
    width: auto;
    margin-bottom: 20px;
}

/* --- FOOTER --- */
footer {
    background-color: #08122b;
    color: white;
    padding: 40px 20px;
    text-align: center;
}
.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    opacity: 0.8;
}
.footer-socials a {
    color: #F1C039;
    margin: 0 10px;
    text-decoration: none;
}

/* Link a kapcsolatfelvételi űrlapra a footer #kapcsolat szekciójában.
   Arany, mint a footer többi kiemelt linkje - a sötétkék háttéren jól olvasható. */
.footer-form-link {
    margin: 6px 0 0;
}
.footer-form-link a {
    color: #F1C039;
    text-decoration: none;
    font-weight: 600;
}
.footer-form-link a:hover {
    text-decoration: underline;
}

/* --- RENDEZVÉNYEK --- */
.events-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.event-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex; /* Egymás mellé tesszük a dátumot és szöveget */
    width: 350px;
    overflow: hidden;
    text-align: left;
}

.event-date {
    background-color: #08122b; /* KGK Kék */
    color: #F1C039; /* Sárga szöveg */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 70px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-info {
    padding: 20px;
}

.event-info h3 {
    margin-top: 0;
    color: #08122b;
    font-size: 1.1rem;
}

/* --- HÍREK --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 30px auto;
    text-align: left;
}

.news-item {
    background: white;
    padding: 25px;
    border-left: 5px solid #F1C039; /* Sárga csík oldalt */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-item h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.news-item .meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.news-item a {
    color: #498CFF;
    text-decoration: none;
    font-weight: 600;
}
/* --- ANIMÁCIÓK (EXTRA) --- */

/* Alapállapot: kicsit lejjebb van és átlátszó */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(50px); /* 50 pixellel lejjebb */
    transition: all 1s ease-out; /* 1 másodperces finom átmenet */
}

/* Amikor láthatóvá válik: helyreugrik és kitisztul */
.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Hogy ne egyszerre jöjjön be minden kártya (lépcsőzetes hatás) */
.member-card:nth-child(2), .group-card:nth-child(2), .event-card:nth-child(2) {
    transition-delay: 200ms;
}
.member-card:nth-child(3), .group-card:nth-child(3), .event-card:nth-child(3) {
    transition-delay: 400ms;
}
.member-card:nth-child(4) {
    transition-delay: 600ms;
}

/* --- STATISZTIKA SZÁMLÁLÓK --- */
#stats {
    background-color: #08122b; /* Sötétkék háttér */
    color: white;
    padding: 60px 0;
}

.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    text-align: center;
}

.stat-box h3 {
    font-size: 3rem;
    color: #F1C039; /* Sárga számok */
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.stat-box p {
    margin-top: 10px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- CIKK OLDAL STÍLUSOK --- */
.article-page {
    padding-top: 100px; /* Hogy a fix menü ne takarja ki a címet */
    min-height: 80vh;   /* Hogy akkor is legyen alja, ha rövid a cikk */
    text-align: left;   /* A cikk szövege balra igazítva szebb */
}

.article-container {
    max-width: 800px;   /* Olvasható szélesség, mint egy blogban */
    margin: 0 auto;     /* Középre igazítás */
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.article-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-text {
    line-height: 1.8;   /* Szellősebb sorköz a könnyebb olvasásért */
    font-size: 1.1rem;
    color: #444;
}

.article-text h3 {
    color: #08122b;
    margin-top: 30px;
}

blockquote {
    border-left: 5px solid #F1C039;
    margin: 30px 0;
    padding-left: 20px;
    font-style: italic;
    color: #555;
}




/* --- BETÖLTÉS SZÖVEG --- */
.loading-text {
    color: #aaa;
    font-style: italic;
    text-align: center;
    width: 100%;
    padding: 20px 0;
}

/* --- ÁLTALÁNOS GOMB --- */
.btn {
    display: inline-block;
    background-color: #F1C039;
    color: #08122b;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s, transform 0.2s;
}
.btn:hover {
    background-color: #d4a82e;
    transform: translateY(-2px);
}

/* --- DISZKRÉT ADMIN LINK --- */
.admin-link {
    display: block;
    margin-top: 20px;
    color: rgba(255,255,255,0.08);
    font-size: 0.5rem;
    text-decoration: none;
    transition: color 0.3s;
    user-select: none;
}
.admin-link:hover {
    color: rgba(255,255,255,0.25);
}

/* ════════════════════════════════════════════
   SKELETON LOADER
════════════════════════════════════════════ */

@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #e0e0d8 25%, #ececE4 50%, #e0e0d8 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 6px;
}

/* ── ELNÖKSÉG skeleton ── */
.skeleton-member-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.skeleton-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.skeleton-line {
    height: 14px;
    width: 120px;
}

.skeleton-line.short {
    width: 80px;
    height: 12px;
}

/* ── HÍREK skeleton ── */
.skeleton-news-item {
    background: white;
    padding: 25px;
    border-left: 5px solid #e0e0d8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-news-title {
    height: 18px;
    width: 85%;
}

.skeleton-news-meta {
    height: 11px;
    width: 40%;
}

.skeleton-news-text {
    height: 13px;
    width: 100%;
}

.skeleton-news-text.last {
    width: 65%;
}

.skeleton-news-link {
    height: 13px;
    width: 30%;
    margin-top: 6px;
}

/* ── RENDEZVÉNYEK skeleton ── */
.skeleton-event-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    width: 350px;
    overflow: hidden;
}

.skeleton-event-date {
    width: 70px;
    min-width: 70px;
    height: 90px;
    border-radius: 0;
    background: linear-gradient(90deg, #c8cdd8 25%, #d4d8e2 50%, #c8cdd8 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-event-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.skeleton-event-title {
    height: 15px;
    width: 75%;
}

.skeleton-event-desc {
    height: 12px;
    width: 90%;
}

/* ── MUNKACSOPORTOK skeleton ── */
.skeleton-group-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 280px;
    border-top: 5px solid #e0e0d8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-group-title {
    height: 16px;
    width: 70%;
    margin-top: 8px;
}

.skeleton-group-desc {
    height: 12px;
    width: 100%;
}

.skeleton-group-desc.last {
    width: 55%;
}

/* ── RÓLUNK skeleton ── */
.skeleton-rolunk-img {
    width: 500px;
    max-width: 100%;
    height: 320px;
    border-radius: 10px;
}

.skeleton-rolunk-text {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-rolunk-line {
    height: 14px;
    width: 100%;
}

.skeleton-rolunk-line.short {
    width: 60%;
}

/* ── STATISZTIKÁK skeleton ── */
/* A #stats háttere sötétkék, ezért itt nem a világos .skeleton gradienst
   használjuk, hanem áttetsző fehéret – ugyanazzal a shimmer animációval. */
.skeleton-stat {
    display: block;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(255,255,255,0.07) 25%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.07) 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 6px;
}

/* A magasság em-ben van, így pontosan akkora, mint majd a beírt szöveg sora
   – nem ugrik meg a layout, amikor megérkezik az adat. */
.skeleton-stat-value {
    width: 96px;
    height: 1.2em;
}

.skeleton-stat-label {
    width: 140px;
    height: 1.2em;
}

/* ── CIKK oldal skeleton ── */
.skeleton-article-date {
    height: 12px;
    width: 120px;
    margin-bottom: 12px;
}

.skeleton-article-title {
    height: 28px;
    width: 80%;
    margin-bottom: 20px;
}

.skeleton-article-img {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.skeleton-article-para {
    height: 13px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-article-para.short {
    width: 70%;
}

/* --- SZPONZOROK SZEKCIÓ --- */
#szponzorok {
    background: #fff;
    padding: 60px 0;
}

#szponzorok h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #08122b;
}

/* Statikus mód: középre igazítva */
.sponsors-belt {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.sponsors-track {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Scrollozó mód: automatikusan kapcsol JS-ből */
.sponsors-belt.scrolling {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.sponsors-track.scrolling {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    padding: 0;
    animation: sponsors-scroll 24s linear infinite;
}

.sponsors-track.scrolling:hover {
    animation-play-state: paused;
}

@keyframes sponsors-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sponsor-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sponsor-item img {
    height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.sponsor-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* A logó (és a helyette megjelenő név) sose kapjon link-aláhúzást */
.sponsor-link {
    text-decoration: none;
}

/* Név-fallback: ha a logó képe nem tölthető be, a kép helyén a szponzor neve jelenik meg */
.sponsor-name-fallback {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 56px;
    max-width: 160px;
    color: #08122b;
    opacity: 0.55;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s;
}

.sponsor-item.no-logo img {
    display: none;
}

.sponsor-item.no-logo .sponsor-name-fallback {
    display: block;
}

.sponsor-item:hover .sponsor-name-fallback {
    opacity: 1;
}

/* Tooltip */
.sponsor-tooltip {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #08122b;
    color: #F1C039;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.sponsor-item:hover .sponsor-tooltip {
    opacity: 1;
}

/* Skeleton szponzor */
.sponsor-skeleton {
    width: 120px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
}

/* --- HÍREK KÁRTYA KÉP --- */
.news-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 14px;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: #e8e8e0;
    display: block;
}

.news-card-img.loaded {
    opacity: 1;
}


/* ════════════════════════════════════════════
   HÍRARCHÍVUM (hirek.html) – LAPOZÁS
════════════════════════════════════════════ */

.archive-intro {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* "Összes hír megtekintése" gomb a főoldali hírek alatt */
.news-more {
    margin-top: 25px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 45px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 6px;
    box-sizing: border-box;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

/* Előző / Következő gombok */
.page-btn {
    background-color: #08122b;
    color: #F1C039;
    border: 2px solid #08122b;
    padding: 10px 18px;
}

.page-btn:hover {
    background-color: #162047;
    border-color: #162047;
    transform: translateY(-2px);
}

.page-btn.disabled {
    background-color: transparent;
    border-color: #dcdccf;
    color: #b3b3a6;
    cursor: default;
    transform: none;
}

/* Oldalszámok */
.page-num {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #08122b;
    border: 2px solid #e2e2d6;
}

.page-num:hover {
    border-color: #08122b;
    transform: translateY(-2px);
}

.page-num.active {
    background-color: #F1C039;
    border-color: #F1C039;
    color: #08122b;
    cursor: default;
    transform: none;
}

.page-gap {
    color: #aaa;
    font-weight: 700;
    padding: 0 2px;
    user-select: none;
}

@media (max-width: 768px) {
    .pagination { gap: 8px; }
    .page-btn { padding: 9px 14px; font-size: 0.78rem; }
    .page-num { width: 36px; height: 36px; font-size: 0.8rem; }
}

/* ════════════════════════════════════════════
   404 OLDAL + NEM LÉTEZŐ HÍR
════════════════════════════════════════════ */

.notfound-page {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.notfound-box {
    background: #fff;
    width: 100%;
    max-width: 560px;
    padding: 50px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.notfound-box .notfound-code {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 4.5rem;
    line-height: 1;
    letter-spacing: 4px;
    color: #F1C039;
    margin: 0 0 10px;
}

.notfound-box h1 {
    font-size: 1.5rem;
    color: #08122b;
    margin: 0 0 14px;
}

.notfound-box p {
    color: #666;
    line-height: 1.7;
    margin: 0 0 30px;
}

.notfound-actions,
.article-missing-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.notfound-link,
.article-missing-link {
    color: #498CFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.notfound-link:hover,
.article-missing-link:hover {
    text-decoration: underline;
}

/* Nem létező hír a hir.html-en – az article-container belsejébe kerül */
.article-missing {
    text-align: center;
    padding: 50px 20px 60px;
}

.article-missing-badge {
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background-color: #08122b;
    color: #F1C039;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-missing h1 {
    font-size: 1.5rem;
    color: #08122b;
    margin: 0 0 14px;
}

.article-missing p {
    color: #666;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto 30px;
}

@media (max-width: 768px) {
    .notfound-box { padding: 40px 24px; }
    .notfound-box .notfound-code { font-size: 3.4rem; }
}

/* ════════════════════════════════════════════
   VISSZA A TETEJÉRE GOMB
════════════════════════════════════════════ */

/* A gombot a script.js initBackToTop() hozza létre és fűzi a body végére,
   ezért egyik publikus HTML fájlban sincs jelen. Az admin.html nem tölti be
   a script.js-t, ott tehát nem is jelenik meg. */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #F1C039;
    border-radius: 50%;
    background-color: #08122b;
    color: #F1C039;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(8, 18, 43, 0.35);

    /* A sticky nav (1000) és a hir.html lightboxa (9999) fölé SOHA ne kerüljön */
    z-index: 900;

    /* Alapból rejtve. A visibility azért kell az opacity mellé, mert az
       önmagában nem venné ki a gombot a Tab-sorrendből – rejtett állapotban
       a fókusz ráugorhatna. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease,
                background-color 0.2s ease, color 0.2s ease,
                visibility 0s linear 0.3s;
}

/* Megjelenés: a visibility itt késleltetés nélkül vált, hogy a gomb azonnal
   kattintható és fókuszálható legyen, amint elkezd előbukkanni */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.back-to-top:hover {
    background-color: #F1C039;
    color: #08122b;
}

.back-to-top:focus-visible {
    outline: 3px solid #498CFF;
    outline-offset: 3px;
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Nyitott mobil menü mellett a gomb ne lebegjen a menüpontok fölött */
body:has(.nav-links.active) .back-to-top {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ════════════════════════════════════════════
   KAPCSOLAT OLDAL (kapcsolat.html)
════════════════════════════════════════════ */

/* A 404 oldal mintájára: középre igazított, önálló kártya.
   A globális `section` szabály paddingjét felülírjuk. */
.kapcsolat-page {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px;
}

.kapcsolat-box {
    background: #fff;
    width: 100%;
    max-width: 640px;
    padding: 50px 44px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.kapcsolat-box h1 {
    font-size: 1.6rem;
    color: #08122b;
    margin: 0 0 14px;
}

.kapcsolat-intro {
    color: #666;
    line-height: 1.7;
    margin: 0 0 34px;
}

/* --- MAGA AZ ŰRLAP --- */
.kapcsolat-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-mezo {
    display: flex;
    flex-direction: column;
}

.form-mezo label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #08122b;
    margin-bottom: 8px;
}

.form-mezo .kotelezo {
    color: #d33;
}

.form-mezo input,
.form-mezo textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
    background-color: #fbfbf6;
    border: 2px solid #e4e4da;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-mezo input::placeholder,
.form-mezo textarea::placeholder {
    color: #b3b3a8;
}

.form-mezo input:focus,
.form-mezo textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: #F1C039;
    box-shadow: 0 0 0 3px rgba(241, 192, 57, 0.28);
}

.form-mezo textarea {
    min-height: 150px;
    resize: vertical; /* csak függőlegesen, hogy ne lógjon ki a kártyából */
}

/* A gomb a design system arany .btn stílusát viszi tovább – itt csak azok a
   tulajdonságok kellenek, amiket egy <button>-nél alapból a böngésző ad. */
.kapcsolat-form .btn {
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 15px 24px;
    font-size: 1rem;
    margin-top: 4px;
}

/* Küldés közbeni ("Küldés...") állapot */
.kapcsolat-form .btn:disabled {
    background-color: #ddd9c9;
    color: #7d7d72;
    cursor: default;
    transform: none;
}

/* --- VISSZAJELZÉS A FORM ALATT (alert() helyett) --- */
.form-uzenet {
    display: none;
    margin-top: 24px;
    padding: 15px 18px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
}

.form-uzenet.latszik {
    display: block;
}

.form-uzenet.siker {
    background-color: #e7f6ec;
    color: #19653a;
    border-left: 5px solid #2e9e52;
}

.form-uzenet.hiba {
    background-color: #fdeaea;
    color: #8f2020;
    border-left: 5px solid #d33;
}

.form-uzenet a {
    color: inherit;
    font-weight: 700;
}

/* Tartalék elérési út a form alatt */
.kapcsolat-fallback {
    margin: 26px 0 0;
    font-size: 0.9rem;
    color: #888;
}

.kapcsolat-fallback a {
    color: #498CFF;
    text-decoration: none;
    font-weight: 600;
}

.kapcsolat-fallback a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .kapcsolat-page {
        padding: 60px 16px;
    }

    .kapcsolat-box {
        padding: 34px 22px;
    }

    .kapcsolat-box h1 {
        font-size: 1.35rem;
    }

    /* 16px alatt az iOS Safari ráközelít a mezőre fókuszáláskor – ezért
       mobilon pont 16px a betűméret. A magasabb padding a kényelmes
       érintéshez kell (min. ~48px magas mezők és gomb). */
    .form-mezo input,
    .form-mezo textarea {
        font-size: 16px;
        padding: 14px 14px;
    }

    .kapcsolat-form .btn {
        padding: 16px 24px;
    }
}


/* ════════════════════════════════════════════
   FUNKCIÓ-KAPCSOLÓK (feature flags) – BETÖLTŐ ÁLLAPOT
════════════════════════════════════════════ */

/* Az admin felületről ki/be kapcsolható szekciók a HTML-ben már eleve
   `class="flag-pending"` állapotban születnek. Amíg a kapcsolók állapota meg
   nem érkezik a Supabase-ből, a szekció VALÓDI tartalma nincs kirajzolva –
   helyette a projekt megszokott shimmer-csíkjai látszanak. Így egy kikapcsolt
   szekció soha nem villan fel egy pillanatra, mielőtt eltűnne.

   Az osztályt a script.js applyFeatureFlags() veszi le. Ha a hálózat elszáll
   vagy a feature_flags tábla nem létezik, a loadFeatureFlags() akkor is
   lefut (időkorláttal), tehát a shimmer sosem ragad be. */

/* Specificitás: (0,2,0) – magasabb, mint a .container / .sponsors-belt /
   .kapcsolat-form `display: flex` szabálya (0,1,0), ezért nem kell
   !important. Ha ide valaha ID-vel címzett display szabály kerülne
   (pl. `#golyaknak .container`), az felülírná ezt – arra figyelj. */
.flag-pending > *:not(.flag-skeleton) { display: none; }

/* A skeleton fordítva: alapból rejtve, CSAK pending állapotban látszik.
   Így a kész oldalon nem marad ott egy üres doboz. */
.flag-skeleton { display: none; }

.flag-pending > .flag-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

/* A magasságok a valódi tartalom méretéhez vannak igazítva, hogy a szekció
   ne ugorjon meg túlzottan, amikor a tartalom a skeleton helyére lép. */
.skeleton-flag-title {
    height: 30px;
    width: 240px;
    max-width: 80%;
}

.skeleton-flag-line {
    height: 14px;
    width: 100%;
}

.skeleton-flag-line.short {
    width: 55%;
}

.skeleton-flag-btn {
    height: 48px;
    width: 260px;
    max-width: 100%;
    border-radius: 6px;
    margin-top: 18px;
}

/* Űrlapmező-alakú csík (kapcsolat.html) */
.skeleton-flag-field {
    height: 46px;
    width: 100%;
    border-radius: 6px;
}

.skeleton-flag-field.tall {
    height: 130px;
}

/* Logó-sor (szponzorok szekció) – a .sponsor-skeleton méreteit használja,
   ugyanazzal a 60px-es térközzel, mint a valódi .sponsors-track */
.flag-skeleton-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 26px;
}

/* ── KIKAPCSOLT KAPCSOLAT OLDAL (kapcsolat.html) ──
   Ez a doboz akkor jelenik meg a form HELYETT, ha a „kapcsolat_visible"
   kapcsoló ki van kapcsolva. Alapból a `hidden` attribútum rejti. */
.kapcsolat-kikapcsolva {
    margin-top: 10px;
    padding: 26px 22px;
    background-color: #f4f4ec;
    border-left: 5px solid #F1C039;
    border-radius: 6px;
    text-align: left;
    line-height: 1.7;
    color: #444;
}

.kapcsolat-kikapcsolva a {
    color: #498CFF;
    text-decoration: none;
    font-weight: 700;
}

.kapcsolat-kikapcsolva a:hover {
    text-decoration: underline;
}


/* ════════════════════════════════════════════
   KAPCSOLAT CTA SÁV (index.html – #kapcsolat-cta)
════════════════════════════════════════════ */

/* Önálló, statikus szekció a Rendezvények és a Gólyáknak között. Sötétkék
   sávként megtöri a világos hátterű szekciók sorát – így nem tűnik úgy,
   mintha két egyforma doboz (CTA + Gólyáknak) ismétlődne egymás után.
   A #stats sávtól a cím alatti arany vonal és a gomb különbözteti meg.

   FONTOS – a `flag-pending` állapot miatt: ezek a szabályok ID-vel vannak
   címezve (1,0,x), tehát ERŐSEBBEK a
   `.flag-pending > *:not(.flag-skeleton) { display: none; }` szabálynál
   (0,2,0). Ezért itt a szekció KÖZVETLEN gyerekeire (h2, p, .btn) SOHA nem
   írunk `display` értéket – az felülírná a betöltő állapotot, és a tartalom
   a kapcsolók megérkezése előtt felvillanna. (A h2::after kivétel: az
   pszeudo-elem, nem közvetlen gyerek, és a rejtett h2-vel együtt eltűnik.) */
#kapcsolat-cta {
    background-color: #08122b;
    color: #fff;
    padding: 70px 20px;
}

#kapcsolat-cta h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #fff;
}

/* Rövid arany vonal a cím alatt – a design system kiemelő eleme. */
#kapcsolat-cta h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 18px auto 0;
    background-color: #F1C039;
    border-radius: 2px;
}

#kapcsolat-cta p {
    max-width: 620px;
    margin: 22px auto 32px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* A gomb az általános arany .btn stílust viszi tovább (sötétkék háttéren
   önmagában is erős kontraszt) – itt csak nagyobb lesz, hogy CTA-súlya
   legyen. A fókuszgyűrű fehér, mert a böngésző alapértelmezett, sötét
   körvonala a sötétkék sávon alig látszana. */
#kapcsolat-cta .btn {
    padding: 14px 34px;
    font-size: 1.05rem;
}

#kapcsolat-cta .btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Betöltő shimmer sötét háttéren: a világos .skeleton gradiens itt kiütne,
   ezért – a #stats .skeleton-stat mintájára – áttetsző fehérre cseréljük.
   A `background-size` ismétlése KÖTELEZŐ: a `background` rövidítés
   alaphelyzetbe állítaná, és a shimmer animáció megállna. */
#kapcsolat-cta .skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.07) 25%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.07) 75%);
    background-size: 600px 100%;
}

@media (max-width: 768px) {
    #kapcsolat-cta {
        padding: 55px 18px;
    }

    #kapcsolat-cta h2 {
        font-size: 1.5rem;
    }

    #kapcsolat-cta p {
        font-size: 1rem;
        margin: 20px auto 26px;
    }

    /* Csak a belső térköz nő – `display: block`-ot itt sem adhatunk
       (lásd a fenti specificitás-megjegyzést). */
    #kapcsolat-cta .btn {
        padding: 14px 28px;
    }
}
