﻿/* Hero video */
.hero {
    position: relative;
    height: 80vh;
    min-height: 460px;
    background: #000;
    overflow: hidden;
}

    /* vrstvy: fallback(0) < video(1) < overlay(2) < content(3) */
    .hero .fallback-image {
        position: absolute;
        inset: 0;
        z-index: 0;
        background: #000 center/cover no-repeat;
        opacity: 1;
        transition: opacity .35s ease;
    }

    .hero video {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        opacity: 0;
        transition: opacity .35s ease;
    }

    .hero.is-video .fallback-image {
        opacity: 0;
    }

    .hero.is-video video {
        opacity: 1;
    }

    .hero .overlay {
        position: absolute;
        inset: 0;
        z-index: 2;
        background: linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.15) 55%,rgba(0,0,0,0) 80%);
        pointer-events: none;
    }

    .hero .content {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        padding: 0 16px;
    }

.container {
    max-width: 1140px;
    margin: 0 auto;
}

.hero h1, .hero p {
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 14px;
}

.hero p {
    font-size: 18px;
    max-width: 880px;
}

.hero-ctas {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.6);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: #fff;
    color: #111;
    border-color: #fff;
}

    .btn-primary:hover {
        filter: brightness(0.95);
    }

.btn-ghost {
    background: transparent;
}

    .btn-ghost:hover {
        background: rgba(255,255,255,.1);
    }

@media (max-width: 991px) {
    .hero {
        height: 68vh;
        min-height: 380px;
    }

        .hero h1 {
            font-size: 32px;
        }

        .hero p {
            font-size: 16px;
        }

        .hero .overlay {
            background: linear-gradient(0deg,rgba(0,0,0,.55),rgba(0,0,0,0) 100%);
        }
}

/* Rychlý index kurzů (pills) */
.course-index {
    background: #fff;
    border-top: 1px solid #eee;
}

    .course-index .pills {
        list-style: none;
        margin: 0;
        padding: 24px 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
    }

        .course-index .pills li {
            margin: 0;
        }

        .course-index .pills a {
            display: inline-block;
            padding: 10px 14px;
            border-radius: 999px;
            border: 1px solid #e7e7e7;
            text-decoration: none;
            color: #111;
            background: #fafafa;
        }

            .course-index .pills a:hover {
                border-color: #111;
            }

/* Hero CTA — plná, čitelná tlačítka přes video */
.hero-ctas .btn { border: none; padding: 13px 24px; box-shadow: 0 4px 16px rgba(0,0,0,.28); font-size: 16px; }
.hero-ctas .btn-primary { background: #e26091; color: #fff; }
.hero-ctas .btn-primary:hover { background: #d14d7a; color: #fff; filter: none; }
.hero-ctas .btn-ghost { background: #fff; color: #d14d7a; }
.hero-ctas .btn-ghost:hover { background: #fff; color: #e26091; }

/* Hero — pruh o volných místech přímo na videu */
.hero .hero-availability {
    display: inline-block; background: #e26091; color: #fff; border-radius: 999px;
    padding: 9px 20px; margin: 6px 0 0; font-size: 16px; font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,.3); text-shadow: none; max-width: none;
}
.hero .hero-availability i { margin-right: 8px; }

/* Availability — výraznější + pulzující glow */
.hero .hero-availability {
    padding: 12px 26px;
    font-size: 18px;
    font-weight: 800;
    margin: 12px 0 2px;
    letter-spacing: .2px;
    animation: availPulse 2.2s infinite;
}
.hero .hero-availability i { font-size: 17px; }
@keyframes availPulse {
    0%   { box-shadow: 0 0 0 0 rgba(226,96,145,.55); }
    70%  { box-shadow: 0 0 0 18px rgba(226,96,145,0); }
    100% { box-shadow: 0 0 0 0 rgba(226,96,145,0); }
}
