/* =========================================================
   BLOG — HLAVNÍ ODSAZENÍ
========================================================= */

.news-item-detail {
    padding-top: 40px;
}


/* =========================================================
   BLOG — HLAVNÍ NADPIS H1
========================================================= */

.news-item-detail > h1 {
    position: relative;
    z-index: 2;

    margin: 0 0 18px !important;
    padding-top: 20px;

    font-family: "Manrope", sans-serif !important;
    font-size: clamp(32px, 3vw, 48px) !important;
    font-weight: 900 !important;

    line-height: 1 !important;
    letter-spacing: -0.05em !important;

    color: #000 !important;
}


/* =========================================================
   BLOG — VELKÝ NÁPIS V POZADÍ
========================================================= */

.news-item-detail > h1::before {
    content: "BLOG";

    position: absolute;
    left: 0;
    top: -42px;

    transform: none;
    z-index: -1;

    font-family: "Manrope", sans-serif;
    font-size: clamp(78px, 10vw, 150px);
    font-weight: 900;

    line-height: 0.82;
    letter-spacing: -0.08em;

    color: rgba(0, 0, 0, 0.03);

    white-space: nowrap;
    pointer-events: none;
}


/* =========================================================
   BLOG — DATUM
========================================================= */

.news-item-detail > time {
    display: block;

    margin: 28px 0 54px !important;

    font-family: "Inter", sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;

    line-height: 1.4 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;

    color: rgba(0, 0, 0, 0.42) !important;
}


/* =========================================================
   BLOG — ZÁKLADNÍ TEXT
========================================================= */

.news-item-detail .text {
    font-family: "Inter", sans-serif !important;
    color: rgba(0, 0, 0, 0.74) !important;
}

.news-item-detail .text p {
    margin: 0 0 22px !important;

    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;

    line-height: 1.7 !important;

    color: rgba(0, 0, 0, 0.74) !important;
}


/* =========================================================
   BLOG — H2
========================================================= */

.news-item-detail .text h2 {
    margin: 68px 0 26px !important;

    font-family: "Manrope", sans-serif !important;
    font-size: clamp(28px, 2.5vw, 40px) !important;
    font-weight: 900 !important;

    line-height: 1.02 !important;
    letter-spacing: -0.05em !important;

    color: #000 !important;
}

.news-item-detail .text h2 strong {
    font-weight: 900 !important;
    color: inherit !important;
}

.news-item-detail .text > h2:first-child {
    margin-top: 0 !important;
}


/* =========================================================
   BLOG — H3
========================================================= */

.news-item-detail .text h3 {
    margin: 46px 0 18px !important;

    font-family: "Manrope", sans-serif !important;
    font-size: clamp(22px, 1.8vw, 28px) !important;
    font-weight: 800 !important;

    line-height: 1.15 !important;
    letter-spacing: -0.035em !important;

    color: #111 !important;
}

.news-item-detail .text h3 strong {
    font-weight: 800 !important;
    color: inherit !important;
}


/* =========================================================
   BLOG — H4
========================================================= */

.news-item-detail .text h4 {
    margin: 30px 0 12px !important;

    font-family: "Manrope", sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;

    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;

    color: #111 !important;
}


/* =========================================================
   BLOG — TUČNÝ TEXT
========================================================= */

.news-item-detail .text p strong,
.news-item-detail .text li strong {
    font-weight: 700 !important;
    color: #111 !important;
}


/* =========================================================
   BLOG — BĚŽNÉ ODKAZY
========================================================= */

.news-item-detail .text a {
    color: #000 !important;

    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 4px !important;

    transition: opacity 0.2s ease;
}

.news-item-detail .text a:hover {
    opacity: 0.55;
}


/* =========================================================
   BLOG — ODKAZ DO KATEGORIE
========================================================= */

.news-item-detail .text .blog-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 8px 0 40px;
    padding: 16px 20px;

    border: 1px solid #e5e5e5;
    background: #f7f7f7;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;

    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: #000 !important;
    text-decoration: none !important;

    opacity: 1;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.news-item-detail .text .blog-category-link:hover {
    transform: translateY(-3px);

    border-color: #bdbdbd;
    background: #f9f9f9;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);

    color: #000 !important;
    opacity: 1;
}


/* Pokud je odkaz vložený uvnitř odstavce */

.news-item-detail .text p:has(> .blog-category-link) {
    margin-bottom: 0 !important;
}


/* =========================================================
   BLOG — SEZNAMY
========================================================= */

.news-item-detail .text ul,
.news-item-detail .text ol {
    margin: 0 0 28px !important;
    padding-left: 24px !important;
}

.news-item-detail .text li {
    margin: 0 0 10px !important;

    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;

    line-height: 1.7 !important;

    color: rgba(0, 0, 0, 0.74) !important;
}


/* =========================================================
   BLOG — MOBIL
========================================================= */

@media (max-width: 767px) {

    .news-item-detail {
        padding-top: 30px;
    }

    .news-item-detail > h1 {
        padding-top: 16px;

        font-size: clamp(28px, 8vw, 38px) !important;
        letter-spacing: -0.045em !important;
    }

    .news-item-detail > h1::before {
        top: -24px;

        font-size: clamp(68px, 22vw, 100px);
        letter-spacing: -0.07em;
    }

    .news-item-detail > time {
        margin: 24px 0 40px !important;

        font-size: 11px !important;
    }

    .news-item-detail .text p,
    .news-item-detail .text li {
        font-size: 15px !important;
        line-height: 1.75 !important;
    }

    .news-item-detail .text h2 {
        margin: 52px 0 20px !important;

        font-size: clamp(26px, 8vw, 34px) !important;
        line-height: 1.05 !important;
    }

    .news-item-detail .text > h2:first-child {
        margin-top: 0 !important;
    }

    .news-item-detail .text h3 {
        margin: 38px 0 16px !important;

        font-size: clamp(21px, 6vw, 26px) !important;
    }

    .news-item-detail .text h4 {
        margin: 26px 0 10px !important;

        font-size: 17px !important;
    }

    .news-item-detail .text .blog-category-link {
        margin-bottom: 34px;
        padding: 11px 16px;

        font-size: 12px;
    }
}

/* =========================================================
   BLOG — TLAČÍTKA VEDLE SEBE
========================================================= */

.blog-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;

    margin: 8px 0 40px;
}

.news-item-detail .text .blog-category-grid .blog-category-link {
    width: 100%;
    min-height: 90px;

    margin: 0;

    text-align: center;
}


/* TABLET */

@media (max-width: 991px) {
    .blog-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* MOBIL */

@media (max-width: 767px) {
    .blog-category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-item-detail .text .blog-category-grid .blog-category-link {
        min-height: 70px;
    }
}