/* Pastelové barvy podle návrhu */
:root {
    --pastel-green: #a8d5ba;      /* Světle zelená z návrhu */
    --pastel-pink: #f4c2c2;       /* Růžová z návrhu */
    --pastel-blue: #a8d5f0;       /* Světle modrá z návrhu */
    --pastel-orange: #f4c2a8;     /* Broskev/oranžová z návrhu */
    --pastel-red: #f4a8a8;        /* Světle červená */
    --pastel-purple: #d5a8f0;     /* Pastelová fialová */
    --pastel-lavender: #e0c2f4;   /* Levandulová */
    --portrait-bg-1: #a8d5f0;
    --portrait-bg-2: #f4c2c2;
    --portrait-bg-3: #a8d5ba;
    --text-dark: #000000;
    --text-light: #333333;
    --white: #ffffff;
    --light-bg: #fffef0;          /* Světle žluté/krémové pozadí z návrhu */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-image: url('../Obrazky/pozadi/pozadi-web.jpg?v=20260327');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: #fffef0; /* Světle žluté/krémové pozadí jako fallback */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- OPRAVENÝ HEADER --- */
header {
    position: relative;
    z-index: 1001; /* menu a dropdown nad obsahem stránky */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(213, 168, 240, 0.2);
    width: 100%;
    border-bottom: 2px solid rgba(213, 168, 240, 0.3);
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-img {
    height: 70px;              /* Trochu menší, aby zbylo místo pro menu */
    width: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
    background: none;
    background-color: transparent;
    cursor: pointer;           /* Ukazatel, že je klikatelné */
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;            /* Zmenšeno z 1rem na 0.5rem */
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    align-items: center;    /* Vertikální zarovnání položek */
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;       /* Trochu tučnější pro lepší čitelnost */
    padding: 0.5rem 0.8rem; /* Větší klikací plocha */
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 1.1rem;      /* Zvětšeno z 0.95rem na 1.1rem */
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    background-color: rgba(213, 168, 240, 0.2);
    color: var(--pastel-purple);
    transform: translateY(-2px);
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.6em;
    margin-left: 0.3rem;
    opacity: 0.8;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    display: block;
    border-radius: 0;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(213, 168, 240, 0.15);
    color: var(--text-dark);
    transform: translateX(5px);
}

.dropdown-menu a.active {
    background-color: rgba(213, 168, 240, 0.25);
    color: var(--text-dark);
    font-weight: 600;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .dropdown-menu a {
        color: var(--text-dark);
        padding: 0.5rem 1rem;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(213, 168, 240, 0.2);
        color: var(--pastel-purple);
    }
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-lavender));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.hero-white {
    background: var(--white) !important;
    color: var(--text-dark);
}

.hero-white h2 {
    color: var(--text-dark);
    text-shadow: none;
}

.hero-white p {
    color: var(--text-light);
    opacity: 1;
}

/* Content section */
.content {
    padding: 2rem 0 3rem 0;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.welcome-box {
    background: linear-gradient(to bottom, rgba(213, 168, 240, 0.15), rgba(224, 194, 244, 0.15));
    border-left: 5px solid var(--pastel-purple);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem auto;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
}

.welcome-box p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.8;
    font-weight: 500;
    display: inline-block;
    width: 100%;
}

.news-section {
    margin: 3rem 0;
}

.news-section h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.news-item {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    border-left: 5px solid var(--pastel-red);
}

.news-item h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.news-highlights {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 1.5rem 0;
}

.news-highlights li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.news-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--pastel-purple);
    font-weight: bold;
    font-size: 1.2rem;
}

.news-highlights strong {
    color: var(--pastel-purple);
}

.news-urgent {
    background: linear-gradient(135deg, var(--pastel-red), #e86a6a);
    color: white !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
    text-align: center;
    padding: 1rem 1.5rem !important;
    border-radius: 10px;
    margin: 1rem 0 0 0 !important;
    box-shadow: 0 4px 15px rgba(244, 168, 168, 0.5);
    letter-spacing: 0.02em;
}

.news-urgent-link {
    color: var(--pastel-purple) !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.news-urgent-link:hover {
    color: var(--text-dark) !important;
    text-decoration: underline;
}

.news-content {
    color: var(--text-light);
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-content strong {
    color: var(--pastel-purple);
    font-weight: 600;
}

.highlight-news {
    background: linear-gradient(to bottom, rgba(213, 168, 240, 0.15), rgba(224, 194, 244, 0.15));
    border-left: 5px solid var(--pastel-purple);
}

.highlight-news h3 {
    color: var(--text-dark);
    font-size: 1.6rem;
    text-align: center;
    margin: 0;
    font-weight: 700;
}


.open-days-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.open-day-tile {
    background: linear-gradient(to bottom, rgba(213, 168, 240, 0.15), rgba(224, 194, 244, 0.15));
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border-top: 4px solid var(--pastel-red);
    box-shadow: 0 2px 10px rgba(213, 168, 240, 0.25);
    transition: transform 0.3s ease;
}

.open-day-tile:nth-child(2) {
    border-top-color: var(--pastel-pink);
}

.open-day-tile:hover {
    transform: translateY(-3px);
}

.open-day-tile p {
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.open-day-tile p:first-child {
    font-size: 1.1rem;
}

.open-day-tile strong {
    color: var(--text-dark);
    font-weight: 600;
}

.open-day-tile .address-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(213, 168, 240, 0.25);
}

.open-day-tile .address-link a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.open-day-tile .address-link a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.map-container {
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.price-table thead {
    background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-lavender));
    color: var(--white);
}

.price-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
}

.price-table th:last-child {
    border-right: none;
}

.price-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(213, 168, 240, 0.25);
    border-right: 1px solid rgba(213, 168, 240, 0.15);
    color: var(--text-dark);
}

.price-table td:first-child {
    font-weight: 600;
    text-align: left;
    background: rgba(213, 168, 240, 0.1);
    color: var(--text-dark);
}

.price-table td:last-child {
    border-right: none;
}

.price-table tbody tr:hover {
    background: rgba(213, 168, 240, 0.1);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.food-prices {
    margin: 2rem 0;
}

.food-item {
    background: linear-gradient(to bottom, rgba(213, 168, 240, 0.15), rgba(224, 194, 244, 0.15));
    border-left: 4px solid var(--pastel-purple);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.food-item p {
    margin: 0;
    color: var(--text-dark);
}

.food-item .price {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    background: var(--light-bg);
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(213, 168, 240, 0.35);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--pastel-purple);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--pastel-purple);
}

.school-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.school-main-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    object-fit: cover;
}

/* Karusel fotek — vložený do textu (Školička Hostavice / Jahodnice) */
.skolicka-inline-gallery {
    margin: 1.35rem 0 1.6rem;
}

.hostavice-carousel,
.jahodnice-carousel {
    position: relative;
    max-width: 100%;
}

.hostavice-carousel-viewport,
.jahodnice-carousel-viewport {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: min(48vh, 400px);
    height: clamp(200px, 38vh, 400px);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: var(--light-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hostavice-carousel-slide,
.jahodnice-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease-in-out;
    z-index: 0;
}

.hostavice-carousel-slide.is-active,
.jahodnice-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hostavice-carousel-slide-btn,
.jahodnice-carousel-slide-btn {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    padding: 0;
    margin: 0;
    border: none;
    cursor: zoom-in;
    background: var(--light-bg);
}

.hostavice-carousel-slide-btn img,
.jahodnice-carousel-slide-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.hostavice-carousel-arrow,
.jahodnice-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: rgba(50, 45, 55, 0.55);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hostavice-carousel-arrow:hover,
.jahodnice-carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--text-dark);
}

@media (hover: hover) and (pointer: fine) {
    .hostavice-carousel .hostavice-carousel-arrow,
    .jahodnice-carousel .jahodnice-carousel-arrow {
        opacity: 0;
    }

    .hostavice-carousel:hover .hostavice-carousel-arrow,
    .jahodnice-carousel:hover .jahodnice-carousel-arrow {
        opacity: 1;
    }
}

.hostavice-carousel-prev,
.jahodnice-carousel-prev {
    left: 12px;
}

.hostavice-carousel-next,
.jahodnice-carousel-next {
    right: 12px;
}

.hostavice-carousel-dots,
.jahodnice-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin-top: 0.65rem;
    padding: 0 2.5rem;
}

.hostavice-carousel-dot,
.jahodnice-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    padding: 0;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hostavice-carousel-dot:hover,
.jahodnice-carousel-dot:hover {
    background: rgba(0, 0, 0, 0.22);
}

.hostavice-carousel-dot.is-active,
.jahodnice-carousel-dot.is-active {
    width: 18px;
    background: rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    .hostavice-carousel-slide,
    .jahodnice-carousel-slide {
        transition: none;
    }
}

.logos-section {
    text-align: center;
}

.logos-section h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(213, 168, 240, 0.35));
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }

    .hostavice-carousel-viewport,
    .jahodnice-carousel-viewport {
        height: clamp(190px, 42vh, 360px);
        min-height: 190px;
        max-height: min(52vh, 360px);
        border-radius: 8px;
    }

    .hostavice-carousel .hostavice-carousel-arrow,
    .jahodnice-carousel .jahodnice-carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        opacity: 1;
    }

    .hostavice-carousel-prev,
    .jahodnice-carousel-prev {
        left: 6px;
    }

    .hostavice-carousel-next,
    .jahodnice-carousel-next {
        right: 6px;
    }

    .hostavice-carousel-dots,
    .jahodnice-carousel-dots {
        padding: 0 2rem;
        margin-top: 0.5rem;
    }
    
    .school-images {
        grid-template-columns: 1fr;
    }
    
    .partner-logos {
        gap: 2rem;
    }
    
    .partner-logo {
        max-width: 150px;
    }
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--pastel-purple);
}

.card:nth-child(1) {
    border-top-color: var(--pastel-purple);
}

.card:nth-child(2) {
    border-top-color: var(--pastel-pink);
}

.card:nth-child(3) {
    border-top-color: var(--pastel-red);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-lavender));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Rozcestník pro školičky */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.choice-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.choice-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.choice-card.jahodnice {
    border-top: 5px solid var(--pastel-purple);
}

.choice-card.hostavice {
    border-top: 5px solid var(--pastel-lavender);
}

.choice-card.tabory {
    border-top: 5px solid var(--pastel-orange);
}

.choice-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.choice-card p {
    color: var(--text-light);
}

/* Page content */
.page-content {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    margin: 2rem 0;
    border-left: 4px solid var(--pastel-lavender);
}

.page-content h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--pastel-lavender);
    padding-bottom: 0.5rem;
}

.page-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    line-height: 1.8;
}

.page-content ul li {
    margin-bottom: 0.5rem;
}

.page-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.camp-list li,
.camp-price-list li {
    margin-bottom: 0.6rem;
}

.camp-price-list {
    background: linear-gradient(to right, rgba(213, 168, 240, 0.15), rgba(224, 194, 244, 0.1));
    padding: 1rem 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--pastel-purple);
}

.camp-price-list li {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.schedule-table thead {
    background: linear-gradient(135deg, var(--pastel-green), var(--pastel-purple));
    color: var(--white);
}

.schedule-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    font-size: 0.9rem;
}

.schedule-table th:last-child {
    border-right: none;
}

.schedule-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(213, 168, 240, 0.25);
    border-right: 1px solid rgba(213, 168, 240, 0.15);
    color: var(--text-dark);
}

.schedule-table thead th:first-child {
    background: rgba(255, 255, 255, 0.2);
}

.schedule-table td:first-child {
    font-weight: 600;
    background: rgba(168, 213, 186, 0.15);
    color: var(--pastel-green);
    text-align: center;
}

.schedule-table td:last-child {
    border-right: none;
}

.schedule-table tbody tr:hover {
    background: rgba(168, 213, 186, 0.1);
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.contact-info {
    background: linear-gradient(to bottom, rgba(213, 168, 240, 0.1), rgba(244, 194, 162, 0.1));
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid var(--pastel-purple);
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--pastel-purple);
    text-decoration: underline;
}

.contact-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-tile {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    border-top: 4px solid var(--pastel-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-tile:nth-child(1) {
    border-top-color: var(--pastel-purple);
}

.contact-tile:nth-child(2) {
    border-top-color: var(--pastel-pink);
}

.contact-tile:nth-child(3) {
    border-top-color: var(--pastel-red);
}

.contact-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-tile h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--pastel-blue);
    padding-bottom: 0.5rem;
}

.contact-tile p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.contact-tile strong {
    color: var(--text-dark);
    font-weight: 600;
}

.contact-tile a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-tile a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(213, 168, 240, 0.25), rgba(213, 168, 240, 0.25));
    border: 3px solid var(--pastel-red);
    border-radius: 15px;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 6px 20px rgba(213, 168, 240, 0.4);
    position: relative;
    transform: scale(1.02);
}

.highlight-box p {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.9;
}

.highlight-box p:first-child {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.highlight-box strong {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Instagram Section */
.instagram-section {
    background: var(--white);
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--pastel-purple);
}

.instagram-header {
    text-align: center;
    margin-bottom: 2rem;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instagram-post {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(213, 168, 240, 0.35);
}

.instagram-post iframe {
    width: 100%;
    border: none;
    display: block;
}

.instagram-loading {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    grid-column: 1 / -1;
}

.instagram-error {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .instagram-feed {
        grid-template-columns: 1fr;
    }
    
    .instagram-header h2 {
        font-size: 1.5rem;
    }
}

/* Team Section */
.team-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(213, 168, 240, 0.35);
}

.team-member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--pastel-purple);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.35);
    background: var(--white);
    padding: 4px;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member-info h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-role {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.team-member-info p:last-child {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .team-section {
        grid-template-columns: 1fr;
    }
    
    .team-member-photo {
        width: 150px;
        height: 150px;
    }
}

/* Documents Section */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    border-left: 4px solid var(--pastel-purple);
    transition: all 0.3s ease;
}

.document-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(213, 168, 240, 0.35);
}

.document-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(213, 168, 240, 0.15), rgba(213, 168, 240, 0.25));
    border-radius: 12px;
    color: var(--pastel-purple);
}

.document-info {
    flex: 1;
}

.document-info h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin: 0 0 0.3rem 0;
    font-weight: 600;
}

.document-type {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.document-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-lavender));
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.document-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(213, 168, 240, 0.4);
}

.document-download svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .document-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .document-info {
        text-align: center;
    }
    
    .document-download {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
footer {
    background: var(--pastel-blue);
    color: var(--white);
    padding: 4rem 0 2rem 0;
    margin-top: 0;
}

footer p,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer span {
    color: var(--white);
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 4rem;
    margin-bottom: 4rem;
}

.footer-form {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.footer-form h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-form .form-group {
    margin-bottom: 1rem;
}

.footer-form .form-group label {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.footer-form .form-group input[type="text"],
.footer-form .form-group input[type="email"],
.footer-form .form-group input[type="tel"],
.footer-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-form .form-group input[type="text"]:focus,
.footer-form .form-group input[type="email"]:focus,
.footer-form .form-group input[type="tel"]:focus,
.footer-form .form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.footer-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.footer-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-form .checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--white);
    flex-shrink: 0;
}

.footer-form .checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.85rem;
}

.footer-form .g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.footer-form .form-submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--white);
    color: var(--pastel-purple);
    border: 2px solid var(--white);
}

.footer-form .form-submit-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.footer-form .form-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    text-align: center;
}

.footer-copyright {
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 0;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: var(--white);
    width: 100%;
    border-radius: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-form {
        padding: 1.5rem;
    }
    
    .footer-form .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}


/* Responsive design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 60px;
    }
}

/* Skrytá stránka */
.hidden {
    display: none;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.25);
    border-top: 4px solid var(--pastel-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(213, 168, 240, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pastel-blue);
    box-shadow: 0 0 0 3px rgba(213, 168, 240, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--pastel-blue);
    flex-shrink: 0;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

.form-success {
    background: var(--white);
    border: 3px solid var(--pastel-blue);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(213, 168, 240, 0.35);
    text-align: center;
}

.form-success h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-success a {
    color: var(--pastel-blue);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
}

/* Krouzky specific styles */
.krouzky-cards {
    grid-template-columns: 1fr;
}

.krouzek-card {
    min-width: 0;
    overflow: visible !important;
}

.krouzek-card h3 {
    line-height: 1.2;
    font-size: 0.75rem;
    white-space: normal;
    overflow: visible !important;
    margin-bottom: 0.8rem;
    word-break: break-word;
    max-width: 100%;
    display: block;
    min-height: auto;
    padding: 0;
    height: auto;
}

@media (max-width: 1200px) {
    .krouzek-card h3 {
        font-size: 0.7rem;
    }
}

@media (max-width: 992px) {
    .krouzek-card h3 {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .krouzek-card h3 {
        font-size: 0.8rem;
        line-height: 1.3;
        word-break: break-word;
    }
}

/* Desktop - ensure 3 columns for cards on index page */
@media (min-width: 993px) {
    .cards:not(.krouzky-cards) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Tablet - 2 columns */
@media (max-width: 992px) and (min-width: 769px) {
    .cards:not(.krouzky-cards) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    .cards:not(.krouzky-cards) {
        grid-template-columns: 1fr !important;
    }
}

/* --- OPRAVA PRO MOBILY (Pod 640px) --- */
@media (max-width: 640px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* ===== DESKTOP HEADER: od 769px – grid + menu vždy v jednom řádku (nowrap) ===== */
@media (min-width: 769px) {
    header .container {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: 0.75rem;
        row-gap: 0;
        flex-direction: unset;
        justify-content: unset;
    }

    .logo-img {
        height: 64px;
        width: auto;
        max-width: min(30vw, 200px);
        flex-shrink: 0;
        cursor: pointer;
        justify-self: start;
    }

    nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        min-width: 0;
        flex: unset;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        gap: 0.1rem;
        min-width: 0;
        max-width: 100%;
    }

    nav a {
        white-space: nowrap;
    }

    .dropdown {
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    .dropdown-menu {
        z-index: 1100;
    }

    nav ul > li {
        flex-shrink: 0;
    }
}

/* Úzký notebook / okno: menší logo + kompaktnější text, stále jeden řádek menu */
@media (min-width: 769px) and (max-width: 1200px) {
    .logo-img {
        height: 56px;
        max-width: min(26vw, 160px);
    }

    nav a {
        font-size: clamp(0.72rem, 0.62rem + 0.35vw, 0.92rem);
        padding: 0.32rem 0.38rem;
    }
}

/* Široký monitor: pohodlnější čitelnost, stále jeden řádek */
@media (min-width: 1201px) {
    header .container {
        column-gap: 1.25rem;
    }

    .logo-img {
        height: 70px;
        max-width: min(34vw, 240px);
    }

    nav ul {
        gap: 0.2rem;
    }

    nav a {
        font-size: 1.05rem;
        padding: 0.45rem 0.65rem;
    }
}
