﻿:root {
    /* Vibrant Palette - SRK Břízky */
    --primary-color: #2EA642;
    /* Vibrant Sporty Green */
    --primary-dark: #1e8030;
    --secondary-color: #0077CC;
    /* Vibrant Azure Blue */
    --accent-color: #FF8800;
    /* Energetic Orange */
    --dark-blue: #003366;
    /* Deep Navy */

    --background-color: #FAFAFA;
    /* Clean Off-White */
    --surface-color: #FFFFFF;

    --text-color: #333333;
    --text-light: #ffffff;
    --text-muted: #666666;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --spacing-sm: 8px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;

    /* Styling */
    --border-radius: 8px;
    /* Classic, sporty rounded corners */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Utilities */
.center {
    text-align: center;
}

.blend-multiply {
    mix-blend-mode: multiply;
}

@media (max-width: 600px) {
    .hide {
        display: none !important;
    }
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* Layout Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.mobile-brand {
    display: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-blue);
    position: absolute;
    left: 20px;
    text-decoration: none;
    /* For the link */
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    height: 100%;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
}

nav a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--surface-color);
    background-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--dark-blue);
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Hero Section */
.hero {
    background-color: #eef7f0;
    /* Very light green bg */
    background-image: url('/img/hero-bg.jpg');
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;

    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 5px solid var(--accent-color);
}

.hero-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 32px;
    color: var(--dark-blue);
    text-align: left;
}

.hero-flex-layout {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-image,
.hero-text {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 24px;
    }

    .hero-flex-layout {
        flex-direction: column;
        gap: 30px;
    }

    .hero-image {
        order: 1;
    }

    .hero-text {
        order: 2;
        text-align: center;
    }
}

.hero h1 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--text-light);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Quick Links Emoji Grid */
.emoji-link {
    transition: transform 0.2s ease;
}

.emoji-link:hover {
    transform: scale(1.1);
}

.emoji-link a {
    color: var(--dark-blue);
    display: block;
    margin-top: 5px;
}

.emoji-link a:hover {
    color: var(--accent-color);
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--dark-blue);
    border-radius: 4px;
    font-weight: 700;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 0px #cc6d00;
}

.btn:hover {
    background-color: #ff9933;
    color: var(--dark-blue);
    transform: translateY(2px);
    box-shadow: 0 2px 0px #cc6d00;
}

.btn-soft {
    display: inline-block;
    padding: 8px 18px;
    background-color: #ffe0b2;
    /* Very light, decent orange */
    color: var(--dark-blue);
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 0px #eebb99;
}

.btn-soft:hover {
    background-color: #ffcc80;
    /* Slightly darker orange */
    color: var(--dark-blue);
    transform: translateY(2px);
    box-shadow: 0 2px 0px #eebb99;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 0px #005599;
}

.btn-secondary:hover {
    background-color: #3399ff;
    color: white;
    box-shadow: 0 2px 0px #005599;
}


/* Stats Section */
.stats-section {
    background-color: #f0f7f2;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* SVG Dividers */
.section-divider {
    line-height: 0;
    width: 100%;
    overflow: hidden;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 40px;
}

.wave-fill {
    fill: #f0f7f2;
}

.wave-fill-white {
    fill: #ffffff;
}


/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 48px;
    color: var(--dark-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 16px auto 0;
}

/* Cards (Activities/News) */
.activity-card,
.news-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--secondary-color);
    height: 100%;
}

.lektor-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary-color);
    transition: all 0.2s;
}

.lektor-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.lektor-plain {
    color: var(--text-muted);
    font-weight: normal;
    opacity: 0.8;
    font-style: italic;
}

.news-card {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-content img {
    margin: 20px auto;
    display: block;
}

/* Removed hover movement, only color change */
.activity-card:hover,
.news-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.activity-card h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
}

.news-card small {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-folder {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.gallery-folder:hover {
    box-shadow: var(--shadow-md);
}

.folder-preview {
    height: 180px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.folder-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.gallery-folder:hover .folder-preview img {
    transform: scale(1.1);
}

.folder-info {
    padding: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.folder-title {
    font-weight: 700;
    color: var(--dark-blue);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.folder-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-folder:hover .image-wrapper img {
    transform: scale(1.05);
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.gallery-folder:hover .video-indicator {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Table (Schedule) */

/* Simple Clean Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    /* .bila */
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: transparent;
    /* Cleaner header */
    color: var(--dark-blue);
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

tr:hover td {
    background-color: #fcfcfc;
}

/* Day Separator Rows */
tr.den td {
    background-color: #f8f9fa;
    /* Very subtle grey instead of strong green/blue */
    color: var(--dark-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding-top: 25px;
    /* Spacing */
    border-bottom: 1px solid #ddd;
}

/* Mobile Scroll */
@media (max-width: 768px) {
    .no-hyphen {
        hyphens: none !important;
        word-break: break-all !important;
    }

    .email-cell {
        word-break: break-all !important;
    }

    .col-narrow {
        width: 15% !important;
    }

    .col-wide {
        width: 35% !important;
    }

    .phone-part {
        display: block;
        line-height: 1.1;
    }

    table {
        min-width: 600px;
        /* Ensure table keeps structure even on scroll */
    }
}

/* Footer Modernized */
footer {
    background-color: #f8f9fa;
    color: var(--text-color);
    padding: 80px 0 20px;
    margin-top: 0;
    text-align: left;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

footer h3 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-phone-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.footer-partner-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
    mix-blend-mode: multiply;
}

.footer-partner-img:hover {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid #ddd;
    /* Slightly darker border for visibility on grey */
    padding-top: 20px;
    margin-top: 40px;
}

.footer-thanks-link {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-decoration: underline;
    /* Underlined as requested */
    font-weight: 600;
    text-transform: none;
    /* Only first letter capital (default) */
    letter-spacing: 1px;
}

.footer-thanks-link:hover {
    color: var(--primary-color);
}


/* Error Message (DB) */
.error {
    background-color: #fee;
    color: #c00;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #fcc;
    margin: 20px 0;
}

/* Form Styles */
input,
textarea {
    background-color: #fff;
    border: 2px solid #ddd;
    color: var(--text-color);
    transition: border 0.3s;
    border-radius: 4px;
    padding: 10px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    user-select: none;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.lightbox-img,
.lightbox-video {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
    border: 2px solid white;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    header .container {
        justify-content: flex-end;
        /* Toggle to the right */
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        /* Match mobile header height */
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        background-color: var(--surface-color);
        padding: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 0;
        border-bottom: 3px solid var(--primary-color);
        text-align: right;
        z-index: 1000;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 10px 20px;
        width: 100%;
        border-radius: 0;
        font-size: 0.95rem;
    }

    nav a.active {
        background-color: #f8f9fa;
        color: var(--primary-color);
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.8rem;
        color: var(--dark-blue);
        cursor: pointer;
        z-index: 1001;
        transition: all 0.3s ease;
    }

    .mobile-brand {
        display: block;
    }

    header {
        height: 60px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-partners {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        /* Global shrink for better mobile layout */
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .emoji-link {
        flex-basis: 40%;
    }

    /* Mobile Fit - Ultra Minimalist */
    table {
        min-width: 0;
        width: 100% !important;
        font-size: 10px !important;
        /* Aggressive reduction */
        table-layout: fixed;
        /* Force equal/controlled columns */
    }

    th,
    td {
        padding: 4px 2px !important;
        font-size: 11px !important;
        line-height: 1.2;
        word-wrap: break-word;
        /* Break long words */
        overflow-wrap: break-word;
        hyphens: none !important;
    }

    th {
        font-size: 9px !important;
        /* Even smaller headers */
        letter-spacing: 0;
        text-transform: none;
        /* Save space */
    }

    /* Column widths for mobile */
    th:nth-child(1),
    td:nth-child(1) {
        width: 15%;
    }

    /* Cas */
    th:nth-child(2),
    td:nth-child(2) {
        width: 45%;
    }

    /* Aktivita */
    th:nth-child(3),
    td:nth-child(3) {
        width: 25%;
    }

    /* Lektor */
    th:nth-child(4),
    td:nth-child(4) {
        width: 15%;
        text-align: right;
    }

    /* Cena */
}