/* ==================================================
   LOKAL INFO – NASLOVNA V2
================================================== */

.li-home-v2 {
    background: #11151c;
    color: #ffffff;
    padding-bottom: 70px;
}

.li-home-v2 .li-container,
.li-breaking-news .li-container {
    width: 1180px;
    max-width: calc(100% - 40px);
    margin-right: auto;
    margin-left: auto;
}

/* HERO + ISTAKNUTE */

.li-home-top {
    padding: 34px 0 28px;
}

.li-home-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, 1fr);
    gap: 22px;
    align-items: stretch;
}

.li-home-hero-card {
    position: relative;
    min-height: 610px;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #1a2029;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.li-home-hero-image {
    position: absolute;
    inset: 0;
    display: block;
}

.li-home-hero-image img,
.li-home-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.li-home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 10%,
        rgba(0, 0, 0, 0.26) 46%,
        rgba(0, 0, 0, 0.93) 100%
    );
}

.li-home-hero-content {
    position: absolute;
    right: 32px;
    bottom: 30px;
    left: 32px;
    z-index: 2;
}

.li-home-category,
.li-home-card-category {
    display: inline-block;
    color: #d71920;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.45px;
    text-decoration: none;
    text-transform: uppercase;
}

.li-home-hero-content .li-home-category {
    margin-bottom: 12px;
    padding: 6px 9px;
    border-radius: 4px;
    background: #d71920;
    color: #ffffff;
}

.li-home-hero-content h1 {
    max-width: 880px;
    margin: 0 0 14px;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.05;
    letter-spacing: -1px;
}

.li-home-hero-content h1 a {
    color: #ffffff;
    text-decoration: none;
}

.li-home-hero-content p {
    max-width: 720px;
    margin: 0 0 14px;
    color: #d8dde4;
    font-size: 16px;
    line-height: 1.6;
}

.li-home-hero-meta {
    display: flex;
    gap: 12px;
    color: #aeb6c1;
    font-size: 12px;
}

.li-home-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.li-home-featured-card,
.li-home-news-card,
.li-home-feed-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #171c24;
    transition: transform .25s ease, box-shadow .25s ease;
}

.li-home-featured-card:hover,
.li-home-news-card:hover,
.li-home-feed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}

.li-home-featured-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #222833;
}

.li-home-featured-image img,
.li-home-news-image img,
.li-home-feed-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.li-home-featured-card:hover img,
.li-home-news-card:hover img,
.li-home-feed-card:hover img {
    transform: scale(1.04);
}

.li-home-featured-content {
    padding: 12px 13px 13px;
}

.li-home-featured-content h2 {
    margin: 6px 0 8px;
    font-size: 16px;
    line-height: 1.3;
}

.li-home-featured-content h2 a,
.li-home-news-content h3 a,
.li-home-feed-content h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.li-home-featured-content time,
.li-home-news-content time,
.li-home-feed-content time {
    color: #8f99a8;
    font-size: 11px;
}

/* SEKCIJE */

.li-home-latest-section,
.li-home-feed-section {
    padding: 30px 0 12px;
}

.li-home-section-heading {
    margin-bottom: 20px;
    border-bottom: 2px solid #d71920;
}

.li-home-section-heading h2 {
    display: inline-block;
    margin: 0;
    padding: 0 0 10px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
}

.li-home-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.li-home-news-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #222833;
}

.li-home-news-content {
    min-height: 126px;
    padding: 14px;
}

.li-home-news-content h3 {
    margin: 7px 0 10px;
    font-size: 17px;
    line-height: 1.35;
}

/* VIDEO */

.li-video-new {
    padding: 46px 0 20px;
}

.li-video-new-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d71920;
    color: #ffffff;
    font-size: 28px;
}

.li-video-new-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr);
    gap: 20px;
}

.li-video-new-main,
.li-video-new-item {
    overflow: hidden;
    border-radius: 10px;
    background: #171c24;
}

.li-video-new-main-image,
.li-video-new-item-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #222833;
}

.li-video-new-main-image {
    aspect-ratio: 16 / 9;
}

.li-video-new-main-image img,
.li-video-new-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.li-video-new-main-content {
    padding: 18px;
}

.li-video-new-date,
.li-video-new-item-content time {
    color: #8f99a8;
    font-size: 11px;
}

.li-video-new-main-content h3 {
    margin: 8px 0 0;
    font-size: 26px;
    line-height: 1.3;
}

.li-video-new-main-content h3 a,
.li-video-new-item h3 a {
    color: #ffffff;
    text-decoration: none;
}

.li-video-new-list {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 13px;
}

.li-video-new-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding-right: 14px;
}

.li-video-new-item-image {
    width: 150px;
    height: 100%;
    min-height: 102px;
}

.li-video-new-item-content {
    min-width: 0;
}

.li-video-new-item h3 {
    margin: 7px 0 0;
    font-size: 15px;
    line-height: 1.35;
}

.li-video-new-play,
.li-video-new-small-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(215, 25, 32, .94);
    color: #ffffff;
}

.li-video-new-play {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.li-video-new-small-play {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

/* SVE VESTI */

.li-home-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.li-home-feed-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 132px;
}

.li-home-feed-image {
    display: block;
    width: 150px;
    height: 100%;
    min-height: 132px;
    overflow: hidden;
    background: #222833;
}

.li-home-feed-content {
    min-width: 0;
    padding: 13px;
}

.li-home-feed-content h3 {
    margin: 6px 0 8px;
    font-size: 16px;
    line-height: 1.3;
}

.li-home-feed-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: #aeb6c1;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.li-home-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 34px;
}

.li-home-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #1b222c;
    color: #ffffff;
    text-decoration: none;
}

.li-home-pagination .current,
.li-home-pagination .page-numbers:hover {
    background: #d71920;
}

.li-home-empty {
    color: #9ca6b4;
}

/* TABLET */

@media (max-width: 1000px) {
    .li-home-top-grid {
        grid-template-columns: 1fr;
    }

    .li-home-hero-card {
        min-height: 540px;
    }

    .li-home-featured-grid {
        grid-template-rows: none;
    }

    .li-home-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .li-video-new-grid {
        grid-template-columns: 1fr;
    }

    .li-home-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILNI */

@media (max-width: 600px) {
    .li-home-v2 .li-container,
    .li-breaking-news .li-container {
        width: auto;
        max-width: calc(100% - 24px);
    }

    .li-home-top {
        padding-top: 20px;
    }

    .li-home-hero-card {
        min-height: 430px;
        border-radius: 10px;
    }

    .li-home-hero-content {
        right: 17px;
        bottom: 18px;
        left: 17px;
    }

    .li-home-hero-content h1 {
        font-size: 29px;
        line-height: 1.08;
    }

    .li-home-hero-content p {
        display: none;
    }

    .li-home-featured-grid,
    .li-home-latest-grid,
    .li-home-feed-grid {
        grid-template-columns: 1fr;
    }

    .li-home-featured-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .li-home-featured-image {
        width: 120px;
        height: 100%;
        min-height: 100px;
        aspect-ratio: auto;
    }

    .li-home-section-heading h2,
    .li-video-new-title {
        font-size: 23px;
    }

    .li-home-news-content {
        min-height: 0;
    }

    .li-video-new-item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .li-video-new-item-image {
        width: 120px;
        min-height: 88px;
    }

    .li-home-feed-card {
        grid-template-columns: 115px minmax(0, 1fr);
        min-height: 112px;
    }

    .li-home-feed-image {
        width: 115px;
        min-height: 112px;
    }

    .li-home-feed-content p {
        display: none;
    }
}

/* KATEGORIJE */

.li-category-page {
    min-height: 70vh;
}

.li-category-header {
    padding: 42px 0 12px;
}

.li-category-header h1 {
    margin: 7px 0 8px;
    color: #ffffff;
    font-size: 42px;
    line-height: 1.1;
}

.li-category-header p {
    max-width: 720px;
    margin: 0;
    color: #aeb6c1;
    font-size: 15px;
    line-height: 1.6;
}

.li-category-page .li-home-feed-content h2 {
    margin: 6px 0 8px;
    font-size: 17px;
    line-height: 1.3;
}

.li-category-page .li-home-feed-content h2 a {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (max-width: 600px) {
    .li-category-header {
        padding-top: 28px;
    }

    .li-category-header h1 {
        font-size: 32px;
    }
}

/* ===== CATEGORY ===== */

.li-category-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:28px;

margin-top:35px;

}

.li-category-card{

background:#181e29;

border-radius:10px;

overflow:hidden;

transition:.25s;

}

.li-category-card:hover{

transform:translateY(-4px);

}

.li-category-thumb img{

display:block;

width:100%;

height:230px;

object-fit:cover;

}

.li-category-content{

padding:18px;

}

.li-category-content h2{

margin:10px 0;

font-size:24px;

line-height:1.25;

}

.li-category-content h2 a{

color:#fff;

text-decoration:none;

}

.li-category-content p{

margin:15px 0;

font-size:15px;

line-height:1.7;

color:#b9c0c9;

}

.li-category-content time{

font-size:13px;

opacity:.7;

}

@media(max-width:1000px){

.li-category-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:650px){

.li-category-grid{

grid-template-columns:1fr;

}

}

/* ==================================================
   KATEGORIJE – ZAVRŠNO UREĐENJE
================================================== */

.li-category-page {
    min-height: 70vh;
}

.li-category-header {
    padding: 42px 0 10px;
}

.li-category-header h1 {
    margin: 7px 0 8px;
    color: #ffffff;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.li-category-header p {
    max-width: 760px;
    margin: 0;
    color: #aeb6c1;
    font-size: 15px;
    line-height: 1.65;
}

.li-category-content-section {
    padding: 18px 0 70px;
}

.li-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.li-category-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #181e29;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.li-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.li-category-thumb {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #222833;
}

.li-category-thumb img,
.li-category-thumb .li-home-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.li-category-card:hover .li-category-thumb img {
    transform: scale(1.05);
}

.li-category-content {
    display: flex;
    min-height: 245px;
    padding: 18px;
    flex-direction: column;
}

.li-category-content .li-home-card-category {
    margin-bottom: 8px;
}

.li-category-content h2 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.25;
}

.li-category-content h2 a {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.li-category-card:hover h2 a {
    color: #e31e24;
}

.li-category-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    color: #b4bdc9;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.li-category-content time {
    margin-top: auto;
    color: #8993a1;
    font-size: 12px;
}

/* Paginacija kategorija */

.li-category-page .li-home-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 42px;
}

.li-category-page .li-home-pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #1b222c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.li-category-page .li-home-pagination .page-numbers:hover {
    background: #d71920;
    transform: translateY(-2px);
}

.li-category-page .li-home-pagination .current {
    background: #d71920;
}

/* Tablet */

@media (max-width: 1000px) {
    .li-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .li-category-thumb {
        height: 230px;
    }
}

/* Telefon */

@media (max-width: 650px) {
    .li-category-header {
        padding-top: 28px;
    }

    .li-category-header h1 {
        font-size: 34px;
    }

    .li-category-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .li-category-thumb {
        height: 215px;
    }

    .li-category-content {
        min-height: 0;
        padding: 16px;
    }

    .li-category-content h2 {
        font-size: 21px;
    }
}
