

/* =========================================================
   KOMPAS KOMUNITNÉ CENTRUM
   Hlavný stylesheet
   ========================================================= */


/* =========================================================
   1. ZÁKLADNÉ NASTAVENIA
   ========================================================= */

/* Písmo Inter je uložené priamo na webe (priečinok fonts),
   aby sa nenačítavalo z Google a neodovzdávali sa IP adresy návštevníkov */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-green: #518D69;
    --dark-bg: #0f1113;
    --dark-secondary: #0b0d0e;
    --dark-card: #1a1c1e;

    --text-white: #ffffff;
    --text-light: #cccccc;
    --text-gray: #999999;
    --text-muted: #666666;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 20px;

    --transition: 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}


html {
    scroll-behavior: smooth;
}


body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    min-height: 100vh;
}


/* =========================================================
   2. NAVIGÁCIA
   ========================================================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 5%;

    position: fixed;
    top: 0;
    left: 0;

    width: 90%;
    z-index: 1000;

    background: transparent !important;

    will-change: transform, opacity;

    transition:
        transform 0.3s ease-in-out,
        opacity 0.3s ease-in-out;

    transform: translateY(0);
    opacity: 1;
}


header.hidden {
    opacity: 0 !important;
    transform: translateY(-100%) !important;
    pointer-events: none;
}


/* Logo */

.logo-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}


.logo-link:hover {
    opacity: 0.8;
}


.logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -1px;
}


.logo span {
    color: var(--primary-green);
}


/* Navigačné odkazy */

nav ul {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    list-style: none;
}


nav ul li {
    margin: 0 20px;
    list-style: none;
}


nav ul li a,
nav ul li a:visited {
    display: inline-block;

    color: var(--text-white) !important;
    text-decoration: none !important;

    font-size: 0.8rem;
    font-weight: 700;

    text-transform: uppercase;

    transition: color var(--transition);
}


nav ul li a:hover {
    color: var(--primary-green) !important;
}


/* Tlačidlo v navigácii */

.btn-nav {
    background-color: var(--primary-green);
    color: #000 !important;

    padding: 10px 20px;

    border-radius: 5px;

    font-size: 0.8rem;
    font-weight: 700;

    text-decoration: none !important;

    transition: transform 0.2s ease;
}


.btn-nav:hover {
    transform: translateY(-2px);
}


/* =========================================================
   3. HERO
   ========================================================= */

.hero {
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(144, 238, 144, 0.15) 0%,
            rgba(15, 17, 19, 1) 70%
        );
}


.subtitle {
    margin-bottom: 30px;

    color: var(--primary-green);

    font-size: 1rem;
    font-weight: 700;

    letter-spacing: 5px;
    text-transform: uppercase;
}


.hero h1 {
    margin-top: 0;
    margin-bottom: 40px;

    font-size: clamp(2rem, 8vw, 5rem);
    line-height: 0.9;
    font-weight: 900;
}


.btn-main {
    display: inline-block;

    padding: 18px 40px;

    background-color: var(--primary-green);
    color: #000;

    border-radius: 5px;

    font-weight: 900;
    text-decoration: none;

    text-transform: uppercase;
}



/* =========================
   4. KARTY / GRID
========================= */

.grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
}

.card {
    height: 300px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(0.98);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.main-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card-overlay {
    width: 100%;
    padding: 30px 25px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8),
        transparent
    );

    text-align: center;
    pointer-events: none;
}

.card h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

/* Typy kariet */

.card-green {
    background: var(--primary-green);
    color: #000;
}

.card-white {
    background: #f4f4f4;
    color: #000;
}

.card-image {
    background: #333 url('tvoj-obrazok.jpg') center / cover;
    color: white;
}

.card-dark {
    background: #1a1c1e;
    border: 1px solid #333;
    color: white;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-section {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .card {
        height: 280px;
    }
}



/* =========================================================
   5. PODSTRÁNKY
   ========================================================= */

.sub-hero {
    height: 60vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(144, 238, 144, 0.1) 0%,
            rgba(15, 17, 19, 1) 80%
        );

    border-bottom: 1px solid #222;
}


.content-area {
    display: flex;
    justify-content: center;

    padding: 80px 5%;
}


.container {
    width: 100%;
    max-width: 1000px;
}


.text-block h2 {
    margin-bottom: 20px;

    color: var(--primary-green);

    font-size: 2rem;
    font-weight: 900;

    text-transform: uppercase;
}


.text-block p {
    margin-bottom: 30px;

    color: var(--text-light);

    font-size: 1.1rem;
    line-height: 1.8;
}


/* =========================================================
   6. GALÉRIA
   ========================================================= */

.image-gallery {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-top: 50px;
}


.img-box {
    height: 300px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--dark-card);

    border: 1px dashed #444;
    border-radius: 12px;

    color: #555;

    font-weight: 700;

    transition: var(--transition);
}


.img-box:hover {
    border-color: var(--primary-green);
}


/* =========================================================
   7. PODUJATIA
   ========================================================= */

.events-section {
    padding: 80px 5%;

    background:
        radial-gradient(
            circle at bottom right,
            rgba(144, 238, 144, 0.05),
            transparent 40%
        );
}


.events-container {
    max-width: 900px;

    display: flex;
    flex-direction: column;

    gap: 15px;

    margin: 0 auto;
}


.event-row {
    display: grid;

    grid-template-columns: 100px 1fr 120px;

    align-items: center;

    padding: 15px 25px;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    cursor: pointer;

    transition: var(--transition);
}


.event-row:hover {
    background: rgba(144, 238, 144, 0.08);

    border-color: var(--primary-green);

    transform: translateY(-3px);
}


.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-right: 20px;

    border-right: 1px solid rgba(255, 255, 255, 0.1);
}


.event-date .day {
    color: var(--primary-green);

    font-size: 2rem;
    font-weight: 900;

    line-height: 1;
}


.event-date .month {
    color: #888;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}


.event-info h4 {
    margin-bottom: 4px;

    color: #fff;

    font-size: 1.25rem;
}


.event-info p {
    color: var(--text-gray);

    font-size: 0.9rem;
    line-height: 1.4;
}


.event-meta {
    display: flex;
    flex-direction: column;

    gap: 10px;

    text-align: right;
}


.event-time {
    color: var(--primary-green);

    font-size: 0.85rem;
    font-weight: 600;
}


.btn-event {
    display: inline-block;

    padding: 0 0 2px;

    background: none;

    border: none;
    border-bottom: 2px solid var(--primary-green);

    color: var(--primary-green);

    font-family: inherit;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;

    cursor: pointer;

    transition: var(--transition);
}


.btn-event:hover {
    color: white;
    border-bottom-color: white;
    opacity: 0.8;
}


.btn-event-link {
    color: var(--primary-green);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;

    border-bottom: 2px solid var(--primary-green);

    transition: var(--transition);
}


.event-row:hover .btn-event-link {
    color: white;
    border-bottom-color: white;
}


.event-row.highlight {
    background:
        linear-gradient(
            90deg,
            rgba(144, 238, 144, 0.1),
            rgba(255, 255, 255, 0.03)
        );

    border-left: 4px solid var(--primary-green);
}


/* =========================================================
   8. DETAIL PODUJATIA
   ========================================================= */

.detail-page {
    max-width: 800px;

    padding: 120px 5%;

    margin: 0 auto;
}


.btn-back {
    display: block;

    margin-bottom: 20px;

    color: var(--primary-green);

    font-weight: bold;
    text-decoration: none;
}


#detail-nazov {
    margin-bottom: 10px;

    font-size: 3rem;
}


.detail-date {
    color: var(--primary-green);

    font-weight: bold;

    letter-spacing: 1px;
}


.content {
    margin-top: 30px;

    color: var(--text-light);

    font-size: 1.1rem;
    line-height: 1.6;
}


/* =========================================================
   9. VŠEOBECNÉ MODAL OKNO
   ========================================================= */

.modal {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 1000;

    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.7);

    backdrop-filter: blur(8px);
}


.modal-content {
    position: relative;

    width: 80%;
    max-width: 700px;

    padding: 40px;

    background: rgba(25, 28, 30, 0.95);

    border: 1px solid rgba(144, 238, 144, 0.3);
    border-radius: 20px;

    color: white;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5);
}


.close-button {
    position: absolute;

    top: 15px;
    right: 25px;

    color: var(--primary-green);

    font-size: 35px;

    cursor: pointer;

    transition: var(--transition);
}


.close-button:hover {
    color: white;
}


#modal-body h2 {
    margin-bottom: 10px;

    color: var(--primary-green);

    font-size: 2rem;
}


#modal-body .modal-date {
    display: block;

    margin-bottom: 20px;

    color: #888;

    font-weight: bold;
}


#modal-body img {
    width: 100%;

    margin-bottom: 20px;

    border-radius: 10px;
}


#modal-body p {
    color: var(--text-light);

    line-height: 1.6;
}


/* =========================================================
   10. NEWSLETTER
   ========================================================= */

/* Pozadie newsletter modalu */

#newsletter-modal {
    display: none;

    justify-content: center;
    align-items: center;

    padding: 20px;
}


/* Hlavné okno */

.newsletter-content {
    width: 90%;
    max-width: 520px;

    padding: 45px 45px 40px;

    background: #15191b;

    border: 1px solid rgba(81, 141, 105, 0.45);
    border-radius: 22px;

    text-align: center;

    position: relative;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(81, 141, 105, 0.08);
}


/* Tlačidlo zatvorenia */

.close-newsletter {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 38px;
    height: 38px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: transparent;

    border: none;
    border-radius: 50%;

    color: #777;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition: var(--transition);
}


.close-newsletter:hover {
    color: white;

    background: rgba(255, 255, 255, 0.06);

    transform: rotate(90deg);
}


/* Obsah */

.modal-body-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Ikona */

.newsletter-icon {
    width: 68px;
    height: 68px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto 22px;

    background: rgba(81, 141, 105, 0.12);
    border: 1px solid rgba(81, 141, 105, 0.3);
    border-radius: 50%;

    box-shadow: 0 0 25px rgba(81, 141, 105, 0.08);
}

/* Štýl pre logo vnútri kruhu */
.newsletter-logo {
    max-width: 36px;  /* Veľkosť loga vnútri kruhu (uprav podľa potreby) */
    max-height: 36px;
    object-fit: contain;
}


/* Nadpis */

.modal-body-newsletter h2 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 900;
}


/* Popis */

.modal-body-newsletter > p {
    max-width: 390px;

    margin: 0 auto 28px;

    color: var(--text-gray);

    font-size: 0.95rem;
    line-height: 1.6;
}


/* Formulár */

#newsletter-form {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 16px;
}


/* Email */

#newsletter-email {
    width: 100%;
    height: 52px;

    padding: 0 18px;

    background: #0f1113;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    color: white;

    font-family: inherit;
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}


#newsletter-email::placeholder {
    color: #666;
}


#newsletter-email:focus {
    background: #111416;

    border-color: var(--primary-green);

    box-shadow:
        0 0 0 3px rgba(81, 141, 105, 0.12);
}


/* GDPR súhlas */

.newsletter-consent {
    width: 100%;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding: 14px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;

    text-align: left;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition);
}


.newsletter-consent:hover {
    background: rgba(81, 141, 105, 0.05);

    border-color: rgba(81, 141, 105, 0.25);
}


.newsletter-consent input {
    width: 18px;
    height: 18px;

    min-width: 18px;

    margin-top: 2px;

    accent-color: var(--primary-green);

    cursor: pointer;
}


.newsletter-consent span {
    color: var(--text-gray);

    font-size: 0.78rem;
    line-height: 1.5;
}


.newsletter-consent a {
    color: var(--primary-green);

    font-weight: 700;

    text-decoration: none;
}


.newsletter-consent a:hover {
    color: white;

    text-decoration: underline;
}


/* Tlačidlo odoslania */

.newsletter-submit {
    width: 100%;
    height: 52px;

    margin-top: 2px;

    background: var(--primary-green);

    border: 2px solid var(--primary-green);
    border-radius: 10px;

    color: #0b0d0e;

    font-family: inherit;

    font-size: 0.85rem;
    font-weight: 900;

    letter-spacing: 1px;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition),
        opacity var(--transition);
}


/* Hover */

.newsletter-submit:hover:not(:disabled) {
    background: transparent;

    color: var(--primary-green);

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(81, 141, 105, 0.18);
}


/* Click */

.newsletter-submit:active:not(:disabled) {
    transform: translateY(0);
}


/* Disabled stav */

.newsletter-submit:disabled {
    background: rgba(81, 141, 105, 0.18);

    border-color: rgba(81, 141, 105, 0.18);

    color: rgba(255, 255, 255, 0.35);

    cursor: not-allowed;

    box-shadow: none;
}


/* Správa po odoslaní */

#newsletter-message {
    margin: 2px 0 0;

    color: var(--primary-green);

    font-size: 0.85rem;

    line-height: 1.4;
}


/* Malý GDPR text */

.gdpr-small {
    margin-top: 10px;

    color: var(--text-muted);

    font-size: 0.7rem;

    line-height: 1.5;
}


.gdpr-small a {
    color: var(--primary-green);

    text-decoration: none;
}


/* Staršia trieda tlačidla, ak sa ešte niekde používa */

.btn-subscribe {
    background: var(--primary-green);

    border: 2px solid var(--primary-green);
    border-radius: 12px;

    padding: 12px 28px;

    color: #0b0d0e;

    font-size: 0.9rem;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;

    cursor: pointer;

    transition: var(--transition);
}


.btn-subscribe:hover {
    background: transparent;

    color: var(--primary-green);

    box-shadow:
        0 0 20px rgba(144, 238, 144, 0.4);

    transform: translateY(-2px);
}


/* =========================================================
   11. MOBILNÉ MENU
   ========================================================= */

.menu-toggle {
    display: none;

    flex-direction: column;

    gap: 6px;

    padding: 10px;

    z-index: 2001;

    cursor: pointer;
}


.menu-toggle span {
    width: 30px;
    height: 3px;

    background-color: var(--primary-green);

    border-radius: 2px;

    transition: var(--transition);
}


/* =========================================================
   12. STATUS
   ========================================================= */

.status {
    margin-bottom: 15px;

    color: #90ee90;

    font-weight: bold;
}


/* =========================================================
   13. PARTNERI
   ========================================================= */

.partner-item {
    min-height: 100px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;

    opacity: 1;

    transition:
        background var(--transition),
        border-color var(--transition);
}


.partner-item:hover {
    background: rgba(144, 238, 144, 0.05);

    border-color: #90ee90;
}


.partner-item img {
    filter: none !important;
    opacity: 1 !important;
}


/* =========================================================
   14. FOOTER
   ========================================================= */

footer {
    padding: 60px 5% 30px;

    background: var(--dark-secondary);

    border-top: 1px solid #222;
}


.footer-container {
    max-width: 1200px;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(200px, 1fr));

    gap: 40px;

    margin: 0 auto;
}


.footer-column h4 {
    margin-bottom: 15px;

    color: var(--primary-green);

    font-size: 0.9rem;
    text-transform: uppercase;
}


.footer-column p,
.footer-column a {
    color: #ccc;

    font-size: 0.9rem;

    text-decoration: none;
}


.social-icons {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-top: 10px;
}


.social-img {
    width: 28px;
    height: 28px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.social-img:hover {
    transform: scale(1.15);

    opacity: 0.85;
}


.socials a {
    position: relative;

    z-index: 10;

    color: var(--primary-green) !important;

    font-weight: bold;
}


.copyright {
    margin-top: 50px;

    color: #555;

    font-size: 0.8rem;

    text-align: center;
}


/* =========================================================
   15. PRÁZDNY KALENDÁR
   ========================================================= */

.empty-calendar-notice {
    max-width: 600px;
    padding: 50px 20px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(81, 141, 105, 0.2);
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.notice-icon {
    margin-bottom: 15px;
    font-size: 2.5rem;
    opacity: 0.8;
}

.empty-calendar-notice h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
}

.empty-calendar-notice p {
    max-width: 420px;
    margin: 0 auto;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================================================
   16. EÚ / PROGRAM SLOVENSKO
   ========================================================= */

.eu-funding {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px 20px;

    background: #fff;
}


.eu-funding img {
    display: block;

    width: min(552px, 100%);

    height: auto;
}


/* =========================================================
   17. RESPONZÍVNY DIZAJN
   ========================================================= */


/* ---------- Tablet ---------- */

@media (max-width: 768px) {

    /* Navigácia */

    .menu-toggle {
        display: flex;
    }


    nav {
        position: fixed;

        top: 0;
        right: -100%;

        width: 80%;
        height: 100vh;

        padding-top: 100px;

        background-color: var(--dark-secondary);

        box-shadow:
            -10px 0 20px rgba(0, 0, 0, 0.8);

        z-index: 2000;

        transition: 0.4s ease-in-out;
    }


    nav.active {
        right: 0;
    }


    nav ul {
        flex-direction: column;
        align-items: center;

        gap: 35px;
    }


    nav ul li {
        margin: 0;
    }


    nav ul li a {
        font-size: 1.2rem;
    }


    /* Hamburger */

    .menu-toggle.open span:nth-child(1) {
        transform:
            translateY(9px)
            rotate(45deg);
    }


    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }


    .menu-toggle.open span:nth-child(3) {
        transform:
            translateY(-9px)
            rotate(-45deg);
    }


    /* Galéria */

    .image-gallery {
        grid-template-columns: 1fr;
    }
}


/* ---------- Mobil ---------- */

@media (max-width: 600px) {

    /* Karty */

    .grid-section {
        grid-template-columns: 1fr;
    }


    /* Podujatia */

    .event-row {
        grid-template-columns: 1fr;

        padding: 30px;

        text-align: center;
    }


    .event-date {
        margin-right: 0;
        margin-bottom: 15px;

        padding-bottom: 15px;

        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }


    .event-meta {
        margin-top: 15px;

        text-align: center;
    }


    /* Newsletter */

    #newsletter-modal {
        padding: 15px;
    }


    .newsletter-content {
        width: 100%;

        padding: 40px 22px 25px;

        border-radius: 18px;
    }


    .newsletter-icon {
        width: 58px;
        height: 58px;

        margin-bottom: 18px;

        font-size: 26px;
    }


    .modal-body-newsletter h2 {
        font-size: 1.5rem;
    }


    .modal-body-newsletter > p {
        margin-bottom: 22px;

        font-size: 0.88rem;
    }


    .newsletter-consent {
        padding: 12px;
    }


    .newsletter-consent span {
        font-size: 0.73rem;
    }


    /* EÚ logo */

    .eu-funding {
        padding: 20px 15px;
    }


    .eu-funding img {
        width: 100%;

        max-width: 552px;
    }
}


/* =========================================================
   18. DETAIL PODUJATIA V MODÁLE + PRIDAŤ DO KALENDÁRA
   ========================================================= */

#event-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}


.modal-event-date {
    margin-bottom: 10px;

    color: #90ee90;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


#modal-body .modal-place {
    margin-top: 18px;

    color: var(--text-gray);
    font-size: 0.95rem;
}


.calendar-add {
    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid var(--border-light);
}


.calendar-add h3 {
    margin-bottom: 14px;

    font-size: 1.05rem;
    font-weight: 900;
}


.calendar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.calendar-btn {
    display: inline-block;

    padding: 11px 18px;

    background: rgba(144, 238, 144, 0.1);
    border: 1px solid rgba(144, 238, 144, 0.4);
    border-radius: var(--radius-small);

    color: #90ee90;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;

    cursor: pointer;

    transition: background var(--transition), color var(--transition);
}


.calendar-btn:hover {
    background: var(--primary-green);
    color: #fff;
}


.calendar-series {
    margin-top: 18px;
}


#modal-body .calendar-series p {
    margin-bottom: 10px;

    color: var(--text-light);
    font-size: 0.95rem;
}


.calendar-note {
    margin-top: 12px;

    color: var(--text-gray) !important;
    font-size: 0.85rem;
}


/* --- Termíny opakovaného podujatia v riadku kalendára --- */

[hidden] {
    display: none !important;
}


.event-terms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;

    margin-top: 10px;
}


.event-terms-count {
    margin-right: 2px;

    color: var(--text-gray);

    font-size: 0.8rem;
    font-weight: 700;
}


.event-term {
    padding: 3px 9px;

    border: 1px solid var(--border-light);
    border-radius: 999px;

    color: var(--text-light);

    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}


.event-term.next {
    border-color: var(--primary-green);
    background: rgba(144, 238, 144, 0.12);
    color: #90ee90;
}


.event-term.past {
    color: var(--text-muted);
    text-decoration: line-through;
}


/* --- Zoznam termínov v detaile --- */

.modal-terms {
    list-style: none;

    margin: 20px 0 0;
    padding: 0;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-medium);
}


.modal-terms li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    padding: 12px 16px;
}


.modal-terms li + li {
    border-top: 1px solid var(--border);
}


.modal-terms strong {
    display: block;
    color: #fff;
}


.modal-terms li span {
    color: var(--text-gray);
    font-size: 0.9rem;
}


.modal-terms li.past {
    opacity: 0.45;
}


.modal-terms em {
    color: var(--text-gray);
    font-size: 0.85rem;
}


.modal-term-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}


.modal-term-buttons a,
.modal-term-buttons button {
    padding: 6px 10px;

    background: none;
    border: 1px solid rgba(144, 238, 144, 0.4);
    border-radius: 6px;

    color: #90ee90;

    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;

    cursor: pointer;

    transition: background var(--transition);
}


.modal-term-buttons a:hover,
.modal-term-buttons button:hover {
    background: rgba(144, 238, 144, 0.15);
}


/* --- Prepínač Zoznam / Kalendár --- */

.events-view-toggle {
    display: flex;
    justify-content: center;
    gap: 6px;

    width: fit-content;
    margin: 0 auto 30px;
    padding: 5px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 999px;
}


.events-view-btn {
    padding: 9px 22px;

    background: none;
    border: none;
    border-radius: 999px;

    color: var(--text-gray);

    font-family: inherit;
    font-weight: 700;

    cursor: pointer;

    transition: background var(--transition), color var(--transition);
}


.events-view-btn.active {
    background: var(--primary-green);
    color: #fff;
}


/* --- Mesačný kalendár --- */

.events-month {
    max-width: 900px;
    margin: 0 auto;
}


.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}


.month-header h3 {
    font-size: 1.4rem;
    font-weight: 900;
}


.month-nav {
    width: 42px;
    height: 42px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 50%;

    color: #fff;

    font-size: 1.1rem;

    cursor: pointer;

    transition: border-color var(--transition), color var(--transition);
}


.month-nav:hover {
    border-color: #90ee90;
    color: #90ee90;
}


.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}


.month-weekday {
    padding-bottom: 6px;

    color: var(--text-gray);

    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}


.month-day {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-height: 88px;
    min-width: 0;
    padding: 8px;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    color: var(--text-light);

    font-family: inherit;
    text-align: left;
}


.month-day.empty {
    background: none;
    border-color: transparent;
}


.month-day.past {
    opacity: 0.4;
}


.month-day.today .month-day-num {
    color: #90ee90;
    font-weight: 900;
}


.month-day.has-events {
    background: rgba(144, 238, 144, 0.06);
    border-color: rgba(144, 238, 144, 0.3);

    cursor: pointer;

    transition: border-color var(--transition), background var(--transition);
}


.month-day.has-events:hover,
.month-day.selected {
    background: rgba(144, 238, 144, 0.14);
    border-color: #90ee90;
}


.month-day-num {
    font-size: 0.9rem;
    font-weight: 700;
}


.month-day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}


.month-chip {
    overflow: hidden;

    padding: 2px 6px;

    background: var(--primary-green);
    border-radius: 4px;

    color: #fff;

    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;

    cursor: pointer;

    transition: background var(--transition);
}


.month-chip:hover {
    background: #6aab84;
}


.month-more {
    color: #90ee90;
    font-size: 0.72rem;
    font-weight: 700;
}


.month-detail {
    margin-top: 22px;
}


.month-detail h4 {
    margin-bottom: 12px;

    color: #90ee90;

    font-size: 1rem;
    text-transform: capitalize;
}


.month-detail-event {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 15px;

    width: 100%;
    margin-bottom: 8px;
    padding: 14px 18px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-medium);

    color: #fff;

    font-family: inherit;
    font-size: 1rem;
    text-align: left;

    cursor: pointer;

    transition: border-color var(--transition), background var(--transition);
}


.month-detail-event:hover {
    background: rgba(144, 238, 144, 0.08);
    border-color: var(--primary-green);
}


.month-hint {
    color: var(--text-gray);
    text-align: center;
}


@media (max-width: 600px) {

    #event-modal .modal-content {
        width: 100%;
        padding: 30px 22px;
    }

    .calendar-btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .modal-terms li {
        flex-wrap: wrap;
    }

    /* Na mobile sú v dňoch namiesto názvov len bodky */
    .month-grid {
        gap: 4px;
    }

    .month-day {
        align-items: center;
        min-height: 52px;
        padding: 6px 2px;
    }

    .month-day-events {
        flex-direction: row;
        gap: 3px;
    }

    .month-chip {
        width: 7px;
        height: 7px;
        padding: 0;

        border-radius: 50%;

        font-size: 0;
    }

    .month-more {
        display: none;
    }

    .month-detail-event {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


/* =========================================================
   19. MÉDIÁ (media.html, pribehy.html, povedali.html)
   ========================================================= */

.media-header {
    min-height: 55vh;
    padding: 140px 5% 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(144, 238, 144, 0.12) 0%,
            rgba(15, 17, 19, 1) 70%
        );
}


.media-header .subtitle {
    margin-bottom: 15px;

    color: var(--primary-green);

    font-weight: 700;
    letter-spacing: 5px;
}


.media-header h1 {
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1;

    text-transform: uppercase;
}


.media-header .lead {
    max-width: 650px;
    margin-top: 25px;

    color: var(--text-light);

    font-size: 1.15rem;
    line-height: 1.7;
}


.media-wrapper {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 5% 100px;
}


.media-back {
    display: inline-block;
    margin-bottom: 40px;

    color: var(--text-gray);
    text-decoration: none;

    font-weight: 700;

    transition: color var(--transition);
}


.media-back:hover {
    color: #90ee90;
}


.media-section-title {
    margin: 70px 0 30px;
    padding-left: 20px;

    position: relative;

    font-size: 1.8rem;
    font-weight: 900;
}


.media-section-title::before {
    content: '';

    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);

    width: 5px;
    height: 28px;

    background: var(--primary-green);
    border-radius: 10px;
}


/* --- Rozcestník: 2 veľké karty --- */

.media-choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}


.media-card {
    position: relative;

    display: block;
    height: 420px;

    border-radius: var(--radius-large);
    border: 1px solid var(--border-light);
    overflow: hidden;

    color: var(--text-white);
    text-decoration: none;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}


.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    filter: brightness(0.75);

    transition: transform 0.6s ease, filter 0.4s ease;
}


.media-card-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 35px;

    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.92) 100%);
}


.media-card-overlay span {
    margin-bottom: 10px;

    color: #90ee90;

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}


.media-card-overlay h2 {
    margin-bottom: 10px;

    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
}


.media-card-overlay p {
    color: var(--text-light);
    line-height: 1.6;
}


.media-card-overlay .media-more {
    margin-top: 18px;

    color: #90ee90;
    font-weight: 700;
}


.media-card:hover {
    transform: translateY(-8px);
    border-color: #90ee90;
    box-shadow: 0 20px 40px rgba(144, 238, 144, 0.18);
}


.media-card:hover img {
    transform: scale(1.06);
    filter: brightness(0.9);
}


/* --- Naše príbehy --- */

.story {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 45px;
    align-items: center;

    margin-bottom: 70px;
    padding: 30px;

    background: #121517;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
}


.story:nth-child(even) .story-img {
    order: 2;
}


.story-img {
    width: 100%;
    height: 360px;
    object-fit: cover;

    border-radius: var(--radius-medium);
}


.story-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;

    color: #90ee90;
    background: rgba(144, 238, 144, 0.1);
    border-radius: 999px;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.story h3 {
    margin-bottom: 15px;

    font-size: 1.8rem;
    font-weight: 900;
}


.story blockquote {
    margin: 0 0 18px;
    padding-left: 18px;

    border-left: 3px solid var(--primary-green);

    color: var(--text-white);

    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
}


.story p {
    margin-bottom: 12px;

    color: var(--text-light);
    line-height: 1.75;
}


/* --- Povedali o nás --- */

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}


.press-card {
    display: flex;
    flex-direction: column;

    background: #121517;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    overflow: hidden;

    transition: transform var(--transition), border-color var(--transition);
}


.press-card:hover {
    transform: translateY(-6px);
    border-color: rgba(144, 238, 144, 0.5);
}


.press-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


.press-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 25px;
}


.press-source {
    margin-bottom: 10px;

    color: #90ee90;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.press-body h3 {
    margin-bottom: 12px;

    font-size: 1.25rem;
    line-height: 1.3;
}


.press-body p {
    flex: 1;
    margin-bottom: 20px;

    color: var(--text-light);
    line-height: 1.65;
}


.press-link {
    color: #90ee90;
    text-decoration: none;
    font-weight: 700;
}


.press-link:hover {
    text-decoration: underline;
}


.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}


.quote-card {
    padding: 30px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(144, 238, 144, 0.15);
    border-radius: var(--radius-large);
}


.quote-card p {
    margin-bottom: 20px;

    color: var(--text-white);

    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
}


.quote-card p::before {
    content: '„';
    color: #90ee90;
    font-size: 1.6rem;
    font-weight: 900;
}


.quote-card p::after {
    content: '“';
    color: #90ee90;
    font-size: 1.6rem;
    font-weight: 900;
}


.quote-author {
    color: var(--text-white);
    font-weight: 700;
}


.quote-role {
    display: block;
    margin-top: 3px;

    color: var(--text-gray);
    font-size: 0.9rem;
}


@media (max-width: 800px) {

    .story {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .story:nth-child(even) .story-img {
        order: 0;
    }

    .story-img {
        height: 260px;
    }

    .media-card {
        height: 360px;
    }
}

