/* ==========================================
   KATEGORIJSKE SEKCIJE
========================================== */

.li-category-section {
    margin: 56px 0;
}

.li-category-section h2 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    border-bottom: 2px solid #e31e24;
}

.li-category-section .li-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.li-category-section .li-grid-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #171c24;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.li-category-section .li-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.li-category-section .li-grid-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.li-category-section .li-grid-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.li-category-section .li-grid-card:hover .li-grid-image img {
    transform: scale(1.05);
}

.li-category-section .li-grid-content {
    padding: 14px;
}

.li-category-section .li-grid-category {
    display: inline-block;
    margin-bottom: 7px;
    color: #e31e24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.li-category-section .li-grid-date {
    display: block;
    margin-bottom: 8px;
    color: #8f99a8;
    font-size: 11px;
}

.li-category-section .li-grid-content h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.li-category-section .li-grid-content h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    transition: color 0.25s ease;
}

.li-category-section .li-grid-content h3 a:hover {
    color: #e31e24;
}

@media (max-width: 1000px) {
    .li-category-section .li-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .li-category-section {
        margin: 38px 0;
    }

    .li-category-section h2 {
        font-size: 21px;
    }

    .li-category-section .li-category-grid {
        grid-template-columns: 1fr;
    }

    .li-category-section .li-grid-content h3 {
        font-size: 15px;
    }
}


/* ==========================================
   NAJČITANIJE VESTI
========================================== */

.li-most-read {
    margin: 58px 0 72px;
}

.li-most-read .li-section-title {
    margin: 0 0 22px;
    padding-bottom: 11px;
    border-bottom: 2px solid #e31e24;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}

.li-most-read-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.li-most-read-left,
.li-most-read-right {
    min-width: 0;
    height: 100%;
}

.li-most-read-left {
    display: flex;
}


/* Glavna najčitanija vest */

.li-most-read-featured {
    position: relative;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: #171c24;
}

.li-most-read-featured-image {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

.li-most-read-featured-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7, 10, 15, 0.96) 0%,
        rgba(7, 10, 15, 0.62) 42%,
        rgba(7, 10, 15, 0.05) 76%
    );
}

.li-most-read-featured-image img,
.li-most-read-featured-image .li-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.li-most-read-featured:hover .li-most-read-featured-image img {
    transform: scale(1.045);
}

.li-most-read-featured-content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 24px;
}

.li-most-read-featured-content h3 {
    margin: 0;
    max-width: 680px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.li-most-read-featured-content h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.li-most-read-featured-content h3 a:hover {
    color: #e31e24;
}


/* Desna kolona sa vestima 2–5 */

.li-most-read-right {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 9px;
    counter-reset: li-most-read 1;
}

.li-most-read-list-item {
    position: relative;
    display: grid;
    grid-template-columns: 32px 108px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 100px;
    padding: 9px 11px 9px 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: #171c24;
    counter-increment: li-most-read;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.li-most-read-list-item::before {
    content: counter(li-most-read);
    display: flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e31e24;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.li-most-read-list-item:hover {
    border-color: rgba(227, 30, 36, 0.45);
    background: #1d232d;
    transform: translateX(3px);
}

.li-most-read-thumb {
    display: block;
    width: 108px;
    height: 76px;
    overflow: hidden;
    border-radius: 5px;
}

.li-most-read-thumb img,
.li-most-read-thumb .li-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.li-most-read-list-item:hover .li-most-read-thumb img {
    transform: scale(1.05);
}

.li-most-read-list-content {
    display: flex;
    min-width: 0;
    align-items: center;
}

.li-most-read-list-content h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.li-most-read-list-content h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    transition: color 0.2s ease;
}

.li-most-read-list-content h3 a:hover {
    color: #e31e24;
}


/* Tablet */

@media (max-width: 900px) {
    .li-most-read-layout {
        grid-template-columns: 1fr;
    }

    .li-most-read-left {
        display: block;
        height: auto;
    }

    .li-most-read-featured {
        min-height: 390px;
        height: auto;
    }

    .li-most-read-featured-content h3 {
        font-size: 22px;
    }

    .li-most-read-right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        height: auto;
    }
}


/* Telefon */

@media (max-width: 600px) {
    .li-most-read {
        margin: 38px 0 52px;
    }

    .li-most-read .li-section-title {
        font-size: 21px;
    }

    .li-most-read-featured {
        min-height: 330px;
    }

    .li-most-read-featured-content {
        padding: 18px;
    }

    .li-most-read-featured-content h3 {
        font-size: 20px;
    }

    .li-most-read-right {
        grid-template-columns: 1fr;
    }

    .li-most-read-list-item {
        grid-template-columns: 30px 92px minmax(0, 1fr);
        min-height: 86px;
        padding: 8px 10px 8px 7px;
        gap: 9px;
    }

    .li-most-read-list-item::before {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .li-most-read-thumb {
        width: 92px;
        height: 64px;
    }

    .li-most-read-list-content h3 {
        font-size: 14px;
    }
}