/* ============================================================
   Detail kandidáta — redesign
   ============================================================ */

.fm-kandidat2 { overflow-x: hidden; }

/* ---- HERO ---- */
.fm-kandidat2-hero {
    position: relative;
    background: linear-gradient(115deg, var(--fm-modra-tmava, #143f63), var(--fm-modra, #1d5b8f));
    overflow: hidden;
}
.fm-kandidat2-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), transparent 60%);
    pointer-events: none;
}
.fm-kandidat2-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: center;
}
.fm-kandidat2-hero--novisual .fm-kandidat2-hero-inner {
    grid-template-columns: 1fr;
    max-width: 720px;
    text-align: center;
}
@media (max-width: 768px) {
    .fm-kandidat2-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 22px;
        text-align: center;
        justify-items: center;
    }
}

/* Foto / video */
.fm-kandidat2-media { width: 100%; }
.fm-kandidat2-foto {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    /* Zarovnat na spodni hranu — postava "vykukuje z ramu",
       misto aby se torzo vznaselo nad pruhem bileho pozadi. */
    object-position: center bottom;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(10,25,40,0.35);
    display: block;
}
.fm-kandidat2-video {
    position: relative;
    width: 100%;
    max-width: 320px;
    padding-bottom: 177.78%;      /* 9:16 vertikální medailonek */
    height: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 16px 40px rgba(10,25,40,0.35);
}
.fm-kandidat2-video iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Info vedle fotky */
.fm-kandidat2-info { color: #fff; }
.fm-kandidat2-poradi {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffd9d0;
    background: rgba(240,100,73,0.22);
    border: 1px solid rgba(240,100,73,0.5);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.fm-kandidat2-info h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin: 0 0 18px;
    line-height: 1.1;
}
.fm-kandidat2-tema-odkaz {
    display: inline-block;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 1.02rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 12px;
}
.fm-kandidat2-tema-odkaz strong { color: var(--fm-zlata, #c9a227); }
.fm-kandidat2-tema-odkaz:hover { border-bottom-color: var(--fm-zlata, #c9a227); }
.fm-kandidat2-email {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.98rem;
}
.fm-kandidat2-email:hover { color: #fff; text-decoration: underline; }

/* ---- OBSAH ---- */
.fm-kandidat2-obsah {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 24px;
}
.fm-kandidat2-sekce { margin-bottom: 44px; }
.fm-kandidat2-sekce h2 {
    font-size: 1.5rem;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fm-svetla, #eef2f6);
}
.fm-kandidat2-bio p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--fm-text, #16222e);
    margin: 0 0 18px;
}
.fm-kandidat2-bio p:last-child { margin-bottom: 0; }

/* ---- Hodnoty (chips) ---- */
.fm-hodnoty-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}
.fm-hodnoty-list li {
    background: var(--fm-modra, #1d5b8f);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
}

/* ---- Karta tématu ---- */
.fm-tema-karta {
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: var(--fm-text, #16222e);
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}
.fm-tema-karta:hover { box-shadow: 0 8px 24px rgba(20,40,60,0.10); transform: translateY(-2px); }
.fm-tema-karta img { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; }
.fm-tema-karta strong { font-size: 1.1rem; }
.fm-tema-karta-perex { margin: 4px 0 0; color: var(--fm-text-mid, #55636f); font-size: 0.92rem; }

/* ---- Galerie / reels ---- */
.fm-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.fm-galerie img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }

.fm-reels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.fm-reel-item { position: relative; padding-bottom: 177.78%; height: 0; overflow: hidden; border-radius: 12px; }
.fm-reel-item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Projekty ---- */
.fm-kandidat-projekty { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.fm-kandidat-projekty a { color: var(--fm-modra, #1d5b8f); text-decoration: none; font-weight: 500; }
.fm-kandidat-projekty a:hover { text-decoration: underline; }

/* ---- CTA ---- */
.fm-kandidat-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 8px 0 44px;
    padding-top: 32px;
    border-top: 1px solid #eef2f6;
}
