/* ============================================
   NUTRIAA – Přestylování karet novinek (Shoptet)
   Verze 4 – čistý minimalistický look (bez zaoblení a stínu)
   ============================================ */

/* ---- Mřížka karet: 4 sloupce ---- */
#newsWrapper.news-wrapper.blog-wrapper--fullNews {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    padding: 20px 0 !important;
    background: transparent !important;
    align-items: stretch !important;
}

/* ---- Karta ---- */
#newsWrapper .news-item {
    background: #ffffff !important;
    overflow: hidden !important;
    border: 1px solid #ededed !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease, transform 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    float: none !important;
}

#newsWrapper .news-item:hover {
    border-color: #d4d4d4 !important;
    transform: translateY(-2px) !important;
}

/* Vnitřní wrapper karty */
#newsWrapper .news-item > div {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---- OBRÁZEK ---- */
#newsWrapper .news-item .image {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    max-height: 200px !important;
    min-height: 200px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 0 !important;
}

#newsWrapper .news-item .image::before,
#newsWrapper .news-item .image::after {
    content: none !important;
    display: none !important;
    background: none !important;
    opacity: 0 !important;
}

#newsWrapper .news-item .image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
}

#newsWrapper .news-item .image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transition: transform 0.5s ease !important;
}

#newsWrapper .news-item:hover .image img {
    transform: scale(1.04) !important;
}

/* ---- TEXTOVÁ ČÁST ---- */
#newsWrapper .news-item .text {
    padding: 22px 22px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    background: #ffffff !important;
    position: static !important;
    color: #333 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    overflow: visible !important;
    margin: 0 !important;
}

#newsWrapper .news-item .text::before,
#newsWrapper .news-item .text::after {
    content: none !important;
    display: none !important;
    background: none !important;
    opacity: 0 !important;
}

/* ---- NADPIS ---- */
#newsWrapper .news-item .text .title-link {
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 1.35 !important;
    color: #2f5b26 !important;
    text-decoration: none !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    text-transform: none !important;
    text-align: left !important;
    background: transparent !important;
    transition: color 0.2s ease !important;
}

#newsWrapper .news-item .text .title-link:hover {
    color: #1f3f19 !important;
}

/* ---- DATUM ---- */
#newsWrapper .news-item .text time {
    font-size: 13px !important;
    font-weight: 300 !important;
    color: #999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    letter-spacing: 0.3px !important;
    position: static !important;
    background: transparent !important;
    text-transform: none !important;
}

/* ---- POPIS ---- */
#newsWrapper .news-item .text .description {
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    background: transparent !important;
    max-height: 4.8em !important;
}

#newsWrapper .news-item .text .description p {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    background: transparent !important;
}

#newsWrapper .news-item .text .description p:empty {
    display: none !important;
}

#newsWrapper .news-item .text .description meta {
    display: none !important;
}

/* ---- TLAČÍTKO "Číst článek" – hranaté, plné, bílý text, užší ---- */
#newsWrapper .news-item .text .read-article {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    padding: 9px 22px !important;
    background: #e4cdc8 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: auto 0 0 0 !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
}

#newsWrapper .news-item .text .read-article i {
    font-size: 13px !important;
    color: #ffffff !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Velký tablet / menší desktop: stále 4 sloupce, menší obrázek */
@media (max-width: 1280px) {
    #newsWrapper.news-wrapper.blog-wrapper--fullNews {
        gap: 20px !important;
    }

    #newsWrapper .news-item .image {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
}

/* Tablet: 3 sloupce */
@media (max-width: 1024px) {
    #newsWrapper.news-wrapper.blog-wrapper--fullNews {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    #newsWrapper .news-item .image {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
}

/* Mobil + malý tablet: 2 sloupce vedle sebe */
@media (max-width: 768px) {
    #newsWrapper.news-wrapper.blog-wrapper--fullNews {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    #newsWrapper .news-item .image {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
    }

    #newsWrapper .news-item .text {
        padding: 18px 18px !important;
    }

    #newsWrapper .news-item .text .title-link {
        font-size: 16px !important;
    }

    #newsWrapper .news-item .text .description {
        font-size: 13px !important;
        -webkit-line-clamp: 3 !important;
    }

    #newsWrapper .news-item .text .read-article {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

/* Velmi malé telefony – pořád 2 sloupce, menší obrázky a fonty */
@media (max-width: 420px) {
    #newsWrapper.news-wrapper.blog-wrapper--fullNews {
        gap: 12px !important;
    }

    #newsWrapper .news-item .image {
        height: 130px !important;
        min-height: 130px !important;
        max-height: 130px !important;
    }

    #newsWrapper .news-item .text {
        padding: 14px 14px !important;
    }

    #newsWrapper .news-item .text .title-link {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    #newsWrapper .news-item .text time {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }

    #newsWrapper .news-item .text .description {
        font-size: 12px !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 14px !important;
    }

    #newsWrapper .news-item .text .read-article {
        padding: 7px 12px !important;
        font-size: 11px !important;
    }
}

article>img {
    margin-bottom: 0px !important;
    padding: 10px !important;
}

.news-item-detail .text {
    margin-bottom: 15px !important;
    padding: 10px !important;
}

.news-item-detail .next-prev {
    padding-right: 15px !important;
}

.news-item time, .news-item-detail time {
    padding-left: 11px !important;
}

article header h1 {
    line-height: 1.2 !important;
}

.news-item-detail time {
display: none !important;
}

#newsWrapper .news-item .text time {
display: none!important;
}