/* ZÁKLADNÍ NASTAVENÍ */
body {
    font-family: 'Poppins', sans-serif;
    color: #2C3370;
    background-color: #F5F8FF;
    margin: 0;
    text-decoration: none;
    word-spacing: normal;
    text-align: left;
    letter-spacing: 0;
    line-height: 1.2em;
    font-size: 1rem;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.2em;
    font-weight: 600;
}

h2 {
    width: 95%;
    text-align: left;
    margin: 1.8em 1em 1em 1em;
    padding: 0 0 .5ex 1em;
    letter-spacing: 0.2ex;
    font-size: 1.2rem;
}

h3 {
    font-size: 90%;
    font-weight: bold;
    margin: 1.8em 1em 1em 1em;
    padding: 0 0 .5ex 0;
}

/* SEKCE NOVINEK (PŘESUNUTO Z HTML) */
#sekce-novinky {
    display: none; /* Ovládáno přes JS */
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.post-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 40px;
    text-decoration: none;
    color: #333;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    border: 1px solid #eee;
}

.post-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); 
}

.post-image { 
    width: 100%; 
    height: auto; 
    display: block; 
}

.post-content { 
    padding: 30px; 
}

.post-title { 
    color: #0073aa; 
    margin: 0 0 10px 0; 
    font-size: 1.8em; 
    line-height: 1.2; 
}

.post-date { 
    color: #888; 
    font-size: 0.9em; 
    font-style: italic; 
    display: block; 
    margin-bottom: 15px; 
}

.post-excerpt { 
    line-height: 1.6; 
    margin-bottom: 20px; 
    font-size: 1.05em; 
}

.read-more-link { 
    font-weight: 700; 
    color: #0073aa; 
    text-transform: uppercase; 
    font-size: 0.9em; 
    letter-spacing: 1px; 
}

.back-btn-container { 
    text-align: center; 
    margin-bottom: 50px; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SEKCE A STRUKTURA */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    margin: 30px 20px;
}

.section-header h1 {
    margin-bottom: 0;
}

.section-header p {
    font-size: 1.2rem;
    margin: 0;
    max-width: 600px;
}

#hlavni_obrazek {
    height: auto;
    width: auto;
}

#sdeleni {
    height: auto;
    min-height: 500px;
    margin: 0 auto;
    background-color: transparent;
    text-align: justify;
    overflow: auto;
}

#sdeleni p {
    line-height: 1.5em;
}

#vlsdeleni {
    width: 100%;
    float: right;
    border-left: 1px dotted #006400;
}

#vlsdeleni p .zvyrazneni {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 3em;
}

#vlsdeleni hr {
    float: none;
    clear: both;
}

#vlsdeleni img {
    float: left;
}

#vlsdeleni ul.none {
    width: 95%;
    list-style-type: none;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5rem;
}

#vlsdeleni ul.none li {
    padding-bottom: 1rem;
}

#vlsdeleni ul.clenove { list-style-type: none; }
#vlsdeleni ul.clenove li { clear: both; list-style-type: none; padding-bottom: 10px; }

/* TLAČÍTKA */
.button-primary, .button-primary-dark {
    border: none;
    padding: 14px 22px;
    padding-left: 14px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    font-size: 1.2em;
    gap: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2em;
    text-decoration: none;
    width: fit-content;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.button-primary {
    background: white;
    color: #2C3370;
}

.button-primary-dark {
    background-color: #143970;
    color: white;
}

.button-primary:hover, .button-primary-dark:hover {
    transform: translateY(-2px);
}

.btn-icon, .btn-icon-dark {
    padding: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-icon { background: rgba(255,255,255,0.2); }
.btn-icon-dark { background: #dcecff; }

/* ODPOČET */
#countdown-box {
    margin-top: 120px;
    text-align: center;
    margin-bottom: 30px;
}

#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-block: 30px;
}

.time-box {
    background: radial-gradient(circle, #345F9E 0%, #143970 100%);
    padding: 12px 16px;
    padding-top: 18px;
    border-radius: 15px;
    text-align: center;
    min-width: 70px;
}

.time-number {
    font-size: 2rem;
    font-weight: 600;
    color: white;
}

.time-label {
    font-size: 1rem;
    margin-top: 10px;
    color: white;
}

.colon {
    font-size: 1.8rem;
    font-weight: 600;
}

#vote-image img {
    max-width: 60px;
    width: 100%;
    height: auto;
}

/* KONTAKTNÍ SEKCE */
.chat-bubble {
    gap: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block: 120px;
}

.chat-avatar {
    max-width: 200px;
    object-fit: cover;
}

.chat-content {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.chat-content h1 { text-align: left; }

.contact-btn {
    border: none;
    border-radius: 30px;
    padding-block: 14px;
    transition: 0.2s;
    gap: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2em;
    text-decoration: none;
    width: fit-content;
    background: white;
    color: #2C3370;
}

.small-icon { max-width: 44px; }

/* ZÁPATÍ */
#zapati {
    min-height: 70px;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

#zapati hr { display: none; }

/* RESPONZIVITA */
@media (max-width: 768px) {
    .button-primary, .button-primary-dark {
        justify-content: start;
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .chat-content h1 { text-align: center; }
    .chat-bubble { flex-direction: column; padding-inline: 10px; }
    .chat-content { padding: 20px; }
    #countdown-box { margin-top: 90px; margin-bottom: 90px; padding: 0 10px; }
    #countdown { gap: 6px; margin-top: 30px; }
    .time-box { min-width: 55px; padding: 10px 8px; padding-top: 14px; border-radius: 12px; }
    .time-number { font-size: 1.5rem; }
    .time-label { font-size: 0.8rem; margin-top: 6px; }
    .colon { font-size: 1.3rem; }
}

/* STARÉ/NEPOUŽÍVANÉ ELEMENTY (ZŮSTÁVAJÍ KVŮLI KOMPATIBILITĚ) */
#menu, #navcontainer, hr { display: none; }