/* ==========================================================================
   ASTRA CHILD THEME - KOMPLETNÍ SJEDNOCENÉ CSS (Verze 2.5 - Velké oranžové kruhy)
   ========================================================================== */

/* 1. GLOBÁLNÍ PROMĚNNÉ A ZÁKLADNÍ STYLY */
:root {
    --statecni-orange: #ff5a00;
    --statecni-black: #1a1c1e;
    --statecni-white: #ffffff;
}

body {
    background-color: var(--statecni-white) !important;
}

/* 2. HLAVIČKA ŠABLONY (MENU A LOGO ASTRA) */
.site-header {
    background-color: var(--statecni-white) !important;
    position: relative !important;
    z-index: 999 !important;
    border-bottom: 2px solid #f0f0f0;
}

.site-header .ast-container {
    max-width: 1200px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 auto !important;
}

.main-navigation a {
    color: var(--statecni-black) !important;
    font-weight: 700 !important;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--statecni-orange) !important;
}

/* 3. HERO SPLIT LAYOUT */
.hero-split-sekce { background-color: var(--statecni-white) !important; width: 100% !important; border-bottom: 1px solid #f0f0f0; }
.hero-split-container { display: flex !important; width: 100% !important; min-height: 520px !important; }
.hero-split-text-col { width: 38% !important; background-color: var(--statecni-white) !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 40px !important; box-sizing: border-box !important; }
.hero-split-text-content { max-width: 380px !important; text-align: left !important; }
.hero-split-logo { max-width: 250px !important; height: auto !important; margin-bottom: 20px !important; display: block !important; }
.hero-split-heslo { font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important; font-weight: 900 !important; color: var(--statecni-black) !important; text-transform: uppercase !important; margin: 0 0 15px 0 !important; line-height: 1.15 !important; }
.hero-split-podnadpis { font-size: 1.05rem !important; color: #555555 !important; font-weight: 600 !important; margin: 0 0 30px 0 !important; }
.hero-split-image-col { width: 62% !important; background-size: cover !important; background-position: center top !important; }

.btn-hlavni {
    background-color: var(--statecni-orange) !important;
    color: var(--statecni-white) !important;
    padding: 14px 32px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

/* 4. MŘÍŽKA A DESIGN RAZÍTEK */
.priority-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
    padding: 40px 0 !important;
}

.priorita {
    background: var(--statecni-white) !important;
    width: 320px !important;
    height: 320px !important;
    border-radius: 40px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border: 1px solid #ddd !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease;
    text-decoration: none !important;
}

.priorita:hover { transform: translateY(-10px); }

/* VÝCHOZÍ ČERNÝ DESIGN RAZÍTKA (PRO KANDIDÁTY) */
.stamp-design {
    box-sizing: border-box !important;
    border: 2.5px solid #000 !important;
    border-radius: 50% !important;
    width: 280px !important;
    height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
    background: var(--statecni-white) !important;
    padding: 20px !important;
}

.stamp-design::before {
    content: '' !important;
    position: absolute !important;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px solid #000 !important;
    border-radius: 50% !important;
}

/* --- OPRAVA: VELKÉ ORANŽOVÉ KRUHY PRO NÁŠ PROGRAM --- */
.program-v-priprave-trigger .stamp-design {
    border-color: #ff5a00 !important; /* Vnější velký kruh bude oranžový */
}

.program-v-priprave-trigger .stamp-design::before {
    border-color: #ff5a00 !important; /* Vnitřní tenký velký kruh bude oranžový */
}

.program-v-priprave-trigger .stamp-line {
    background-color: #ff5a00 !important; /* Dělící linka v razítku bude také oranžová */
}

/* --- ÚPRAVA STŘEDOVÝCH IKONEK (Zrušena malá kolečka) --- */
.stamp-photo, .stamp-icon {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto 5px auto !important;
    display: block !important;
}

.stamp-design .stamp-icon img {
    width: 70px !important; /* Jemné zmenšení, aby ikonka ladila v kruhu */
    height: 70px !important;
    border: none !important; /* Odstraněno staré malé kolečko */
    padding: 0 !important;
    background: transparent !important;
    object-fit: contain !important;
    margin: 10px auto 0 auto !important;
}

/* Ponechání kruhového ořezu pro fotky kandidátů */
.stamp-design .stamp-photo img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.stamp-design h3 {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    color: #000 !important;
    text-transform: uppercase !important;
    margin: 5px 0 !important;
    line-height: 1.2 !important;
}

.stamp-line { width: 60% !important; height: 2px !important; background: #000 !important; margin: 8px 0 !important; border: none !important; }
.stamp-design p { font-size: 0.85rem !important; color: #000 !important; font-weight: 700 !important; line-height: 1.2 !important; margin: 0 !important; }

/* 5. ODSTRANĚNÍ NADPISŮ ŠABLONY ASTRA */
div.entry-header, header.entry-header, h1.entry-title, .ast-archive-description, .page .entry-header {
    display: none !important;
}

/* ==========================================================================
   VYSKAKOVACÍ OKNO (MODAL POP-UP) PRO PROGRAM
   ========================================================================== */
.st-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(26, 28, 30, 0.8) !important;
    z-index: 999999 !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.st-modal-overlay.st-modal-aktivni {
    display: flex !important;
}

.st-modal-okno {
    background: #ffffff !important;
    width: 100%;
    max-width: 450px;
    border-radius: 40px;
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    text-align: center;
    border: 3px solid #ff5a00 !important;
    animation: stPopIn 0.3s ease;
}

.st-modal-zavrit {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 35px; font-weight: bold;
    color: #aaa; cursor: pointer;
}
.st-modal-zavrit:hover { color: #000; }

.st-modal-obsah h2 { font-size: 1.8rem !important; font-weight: 900 !important; color: #000 !important; text-transform: uppercase !important; }
.st-modal-obsah p { font-size: 1.1rem !important; color: #333 !important; line-height: 1.5; font-weight: 600; }

@keyframes stPopIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   KALENDÁŘ AKCÍ
   ========================================================================== */
.st-kalendar-seznam { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.st-akce-radek { display: flex !important; background: #fff !important; border: 1px solid #e0f0f0; border-radius: 16px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); overflow: hidden; }
.st-akce-datum-box { background: var(--statecni-orange) !important; color: #fff !important; width: 90px; min-width: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.st-akce-den { font-size: 2.2rem; font-weight: 900; }
.st-akce-mesic { font-size: 0.9rem; font-weight: 800; }
.st-akce-info-box { padding: 20px; flex: 1; }
.st-akce-info-box h3 { font-size: 1.3rem !important; font-weight: 800 !important; margin: 0 0 8px 0 !important; }
.st-akce-meta { display: flex; gap: 20px; font-size: 0.95rem; color: #555; }
/* ==========================================================================
   9. DETAILNÍ PROFIL KANDIDÁTA (RESPONZIVNÍ LAYOUT)
   ========================================================================== */
.st-profil-kandidata {
    display: flex !important;
    gap: 50px !important;
    max-width: 900px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    align-items: flex-start !important;
}

.st-profil-foto-box {
    width: 250px !important;
    min-width: 250px !important;
}

.st-profil-foto {
    width: 250px !important;
    height: 250px !important;
    border-radius: 50% !important;
    border: 5px solid #ff5a00 !important; /* Naše oranžová z loga */
    object-fit: cover !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.st-profil-info-box {
    flex: 1 !important;
}

.st-profil-info-box h1 {
    font-size: 2.4rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    color: #1a1c1e !important;
    margin: 0 !important;
    letter-spacing: -0.5px !important;
}

.st-profil-data {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    font-size: 1.15rem !important;
    color: #222 !important;
}

.st-profil-data li {
    margin-bottom: 10px !important;
}

.st-profil-data li strong {
    color: #ff5a00 !important;
}

.st-profil-text h3 {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin: 0 0 15px 0 !important;
}

.st-profil-text {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: #444 !important;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Responzivní zobrazení pro mobilní telefony */
@media (max-width: 768px) {
    .st-profil-kandidata {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 30px !important;
    }
    .st-profil-info-box {
        width: 100% !important;
    }
    .st-profil-info-box h1 {
        font-size: 2rem !important;
    }
    .stamp-line {
        margin: 15px auto !important;
    }
}
/* Responzivní oprava ořezávání obsahu na mobilech */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Pojistka pro hlavní kontejner šablony Astra */
    #page, .site, #content {
        overflow: hidden;
        width: 100%;
    }
}
/* ==========================================================================
   OPRAVA RESPONZIVITY PRO MOBILNÍ TELEFONY (Zabránění ořezu na úvodní straně)
   ========================================================================== */
@media (max-width: 920px) {
    /* Globální pojistka proti utíkání prvků doprava */
    html, body {
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Celý kontejner banneru přepneme na vertikální směr */
    .hero-split-container {
        flex-direction: column !important;
        min-height: auto !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Sloupec s logem a textem roztáhneme na celou šířku */
    .hero-split-text-col {
        width: 100% !important;
        padding: 30px 20px !important; /* Bezpečné vnitřní okraje */
        box-sizing: border-box !important;
        display: block !important;
        text-align: center !important; /* Vycentrování na střed mobilu */
    }

    /* Obsah uvnitř textového sloupce vycentrujeme */
    .hero-split-text-content {
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* Logo Stateční vycentrujeme na střed */
    .hero-split-logo {
        max-width: 180px !important; /* Mírné zmenšení pro malé displeje */
        margin: 0 auto 20px auto !important;
    }

    /* Nadpis NEBUĎME LHOSTEJNÍ */
    .hero-split-heslo {
        font-size: 1.8rem !important; /* Zmenšení písma, aby se text nezalamoval uprostřed slov */
        line-height: 1.2 !important;
        margin: 0 auto 15px auto !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Podnadpis */
    .hero-split-podnadpis {
        font-size: 1rem !important;
        text-align: center !important;
        margin: 0 auto 25px auto !important;
    }

    /* Sloupec se společnou fotkou kandidátů */
    .hero-split-image-col {
        width: 100% !important;
        height: 350px !important; /* Pevná rozumná výška fotky na mobilu */
        background-size: cover !important;
        background-position: center top !important; /* Fotka se bude centrovat na obličeje shora */
        display: block !important;
        margin-top: 10px !important;
    }
}
/* ==========================================================================
   PODBARVENÍ TEXTU LÍDRA (Zvýraznění na hlavní straně)
   ========================================================================== */
.st-leader-podbarveni {
    background-color: #ff5a00 !important; /* Naše volební oranžová */
    color: #ffffff !important;            /* Čistě bílý text pro perfektní čitelnost */
    padding: 6px 14px !important;         /* Vnitřní okraje, aby měl text kolem sebe prostor */
    border-radius: 8px !important;        /* Jemné zaoblení rohů */
    display: inline-block !important;     /* Zajistí, že se podbarví jen samotný text, ne celý řádek přes celou obrazovku */
    font-weight: 800 !important;          /* Extra tučné písmo */
    text-transform: uppercase !important; /* Velká písmena pro maximální důraz */
    letter-spacing: 0.5px !important;     /* Jemné rozestupy mezi písmeny */
    box-shadow: 0 4px 10px rgba(255, 90, 0, 0.2) !important; /* Jemný oranžový stín pro moderní vzhled */
    margin-bottom: 10px !important;
}