/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* ==========================================================================
   Single Post — Antikontexty / Kontrolovaná reprodukce?
   ========================================================================== */

/* ==========================================================================
   Single Post styling — Antikontexty / Kontrolovaná reprodukce?
   Styluje nativní šablonu Hello Elementoru (bez úpravy PHP)
   ========================================================================== */

/* Hlavní kontejner článku — pozadí + odsazení od menu */
/* ==========================================================================
   Single Post styling — Antikontexty / Kontrolovaná reprodukce?
   ========================================================================== */

/* Import fontů (pokud ještě nejsou v tématu) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@400;500&display=swap');

/* ==========================================================================
   Single Post styling — Antikontexty / Kontrolovaná reprodukce?
   Styluje nativní šablonu Hello Elementoru (bez úpravy PHP)
   Fonty se dědí z globálního nastavení Elementoru.
   ========================================================================== */

/* Pozadí stránky */
body.single-post {
    background-color: #FAF6EB;
}

/* Odsazení od menu */
body.single-post .site-main {
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Hlavička článku — obrázek vlevo, titulek vpravo */
.kr-post-header {
    max-width: 1010px;
    margin: 0 auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.kr-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
    object-fit: cover;
   
}

.kr-post-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kr-post-title {
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    color: #3a1f2b;
    margin: 0;
    letter-spacing: -0.01em;
}

.kr-post-date {
    font-size: 0.9rem;
    color: #7a5a67;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Obsah článku — centrovaný na 1010 px */
body.single-post .page-content {
    max-width: 1010px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2e1a24;
}

body.single-post .page-content p {
    margin: 0 0 1.4em;
	text-align: justify !important;

}

body.single-post .page-content h2 {
    font-weight: 600;
    font-size: 2rem;
    color: #3a1f2b;
    margin: 2em 0 0.7em;
    line-height: 1.25;
}

body.single-post .page-content h3 {
    font-weight: 600;
    font-size: 1.5rem;
    color: #3a1f2b;
    margin: 1.8em 0 0.6em;
    line-height: 1.3;
}

body.single-post .page-content h4 {
    font-weight: 600;
    font-size: 1.15rem;
    color: #3a1f2b;
    margin: 1.6em 0 0.5em;
}

/* Nadpisy psané přes <strong> v <p> — dočasné řešení */
body.single-post .page-content p > strong:only-child {
    font-size: 1.6rem;
    font-weight: 600;
    color: #3a1f2b;
    display: block;
    margin-top: 1em;
    line-height: 1.3;
}

body.single-post .page-content blockquote {
    border-left: 3px solid #7a3a50;
    margin: 2em 0;
    padding: 0.5em 0 0.5em 1.5em;
    font-style: italic;
    color: #4a2a36;
}

body.single-post .page-content a {
    color: #7a3a50;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.single-post .page-content a:hover {
    color: #3a1f2b;
}

body.single-post .page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 4px;
}

body.single-post .page-content ul,
body.single-post .page-content ol {
    margin: 0 0 1.4em 1.5em;
    padding: 0;
}

body.single-post .page-content li {
    margin-bottom: 0.5em;
}

/* Zdroje — malé písmo */
body.single-post .page-content .has-small-font-size {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #5a3a46;
}

/* Responzivita */
@media (max-width: 900px) {
    .kr-post-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .kr-post-thumbnail img {
        aspect-ratio: auto;
        max-height: 400px;
    }
    body.single-post .site-main {
        padding-top: 100px;
        padding-bottom: 60px;
    }
}
@media (max-width: 600px) {
    .kr-post-title {
        font-size: 1.75rem;
    }
    body.single-post .page-content {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Pods — karty aktualit / přednášek na hlavní stránce
   ========================================================================== */

.single-prednaska .entry-title {
    display: none;
}

.prednasky-seznam {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.prednasky-seznam .pods,
.prednasky-seznam .pods-items,
.prednasky-seznam .pods-item-list {
    display: contents;
}

.prednaska-karta {
    background: #f5f1e8;
    border: 1px solid #d8d2c6;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prednaska-karta:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.prednaska-karta-obrazek {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e7e0d4;
}

.prednaska-karta-obrazek-link {
    display: block;
    width: 100%;
    height: 100%;
}

.prednaska-karta-obrazek img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.prednaska-karta:hover .prednaska-karta-obrazek img {
    transform: scale(1.05);
}

.prednaska-karta-telo {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prednaska-karta-typ {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(92, 24, 45, 0.08);
    color: #5c182d;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.prednaska-karta-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
}

.prednaska-karta-title-link,
.prednaska-karta-title-link:visited {
    color: inherit;
    text-decoration: none !important;
}

.prednaska-karta-title-link:hover,
.prednaska-karta-title-link:focus,
.prednaska-karta-title-link:active {
    color: inherit;
    text-decoration: none !important;
}

.prednaska-karta-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prednaska-karta-meta-radek {
    font-size: 15px;
    line-height: 1.5;
    color: #3b352f;
}

.prednaska-karta-meta-label {
    font-weight: 700;
    color: #1f1f1f;
}

.prednaska-karta-meta-hodnota {
    color: #3b352f;
}

.prednaska-karta-anotace {
    font-size: 15px;
    line-height: 1.55;
    color: #2f2f2f;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prednaska-karta-link-wrap {
    margin: 8px 0 0;
}

.prednaska-karta-link,
.prednaska-karta-link:visited {
    font-size: 17px;
    line-height: 1.4;
    text-decoration: none !important;
    font-weight: 400;
    color: #1f1f1f !important;
    transition: color 0.2s ease;
}

.prednaska-karta-link:hover,
.prednaska-karta-link:focus,
.prednaska-karta-link:active {
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .prednasky-seznam {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prednaska-karta-title {
        font-size: 20px;
    }

    .prednaska-karta-obrazek {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .prednasky-seznam {
        grid-template-columns: 1fr;
    }

    .prednaska-karta-title {
        font-size: 20px;
    }

    .prednaska-karta-telo {
        padding: 18px;
    }

    .prednaska-karta-obrazek {
        height: 220px;
    }
}

/* ==========================================================================
   Sticky header
   ========================================================================== */

header#masthead {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
}

/* ==========================================================================
   Karty článků na hlavní stránce — shortcode [kr_clanky]
   ========================================================================== */

.kr-clanky-seznam {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.kr-clanek-karta {
    background: #f5f1e8;
    border: 1px solid #d8d2c6;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kr-clanek-karta:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.kr-clanek-obrazek {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e7e0d4;
}

.kr-clanek-obrazek img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.kr-clanek-karta:hover .kr-clanek-obrazek img {
    transform: scale(1.05);
}

.kr-clanek-obrazek--prazdny {
    background: #e7e0d4;
}

.kr-clanek-telo {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kr-clanek-typ {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(92, 24, 45, 0.08);
    color: #5c182d;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.kr-clanek-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
    color: #1f1f1f;
}

.kr-clanek-datum {
    font-size: 14px;
    color: #7a5a67;
    margin: 0;
    letter-spacing: 0.03em;
}

.kr-clanek-anotace {
    font-size: 15px;
    line-height: 1.55;
    color: #2f2f2f;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kr-clanek-link {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 400;
    color: #1f1f1f;
    margin-top: 4px;
    transition: font-weight 0.2s ease;
}

.kr-clanek-karta:hover .kr-clanek-link {
    font-weight: 700;
}

@media (max-width: 1024px) {
    .kr-clanky-seznam {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kr-clanek-title {
        font-size: 20px;
    }

    .kr-clanek-obrazek {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .kr-clanky-seznam {
        grid-template-columns: 1fr;
    }

    .kr-clanek-title {
        font-size: 20px;
    }

    .kr-clanek-telo {
        padding: 18px;
    }

    .kr-clanek-obrazek {
        height: 220px;
    }
}

/* Schovat výchozí Pods titulek před kartou */
.prednasky-seznam .pods-item-list > h2,
.prednasky-seznam .pods-item-list > h3,
.prednasky-seznam .pods-item-list > .pod-title,
.prednasky-seznam h2.pod-title,
.prednasky-seznam h3.pods-item-title {
    display: none !important;
}



