/* ==================================================
   HERO – GLAVNA VEST I NAJNOVIJE VESTI
================================================== */

.li-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "main latest";
    gap: 24px;
    align-items: stretch;
}

.li-main-column {
    grid-area: main;
    min-width: 0;
}

.li-latest-column {
    grid-area: latest;
    min-width: 0;
}


/* ==================================================
   GLAVNA VEST
================================================== */

.li-hero {
    position: relative;
    min-height: 520px;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #20242a;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.li-hero-image,
.li-hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.li-hero-image img {
    display: block;
    object-fit: cover;
}

.li-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.20) 25%,
        rgba(0, 0, 0, 0.55) 60%,
        rgba(0, 0, 0, 0.90) 100%
    );
}

.li-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    pointer-events: none;
}

.li-hero-content {
    position: absolute;
    right: 34px;
    bottom: 30px;
    left: 34px;
    z-index: 2;
    max-width: 820px;
}

.li-category-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 5px;
    background: #d71920;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.li-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.li-hero h1 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.li-hero h1 a:hover {
    color: #f2f2f2;
}

.li-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 14px 0 0;
    color: #c7cbd2;
    font-size: 12px;
}

.li-hero p {
    max-width: 720px;
    margin: 14px 0 0;
    color: #e3e6e9;
    font-size: 16px;
    line-height: 1.55;
}

.li-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 10px 16px;
    border-radius: 4px;
    background: #d71920;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.li-read-more:hover {
    background: #ffffff;
    color: #11151c;
    transform: translateY(-2px);
}


/* ==================================================
   NAJNOVIJE VESTI
================================================== */

.li-latest-column {
    padding: 18px;
    border-radius: 12px;
    background: #171c24;
}

.li-latest-column .li-section-heading {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.li-latest-column .li-section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
}

.li-latest-list {
    display: flex;
    flex-direction: column;
}

.li-latest-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.li-latest-item:first-child {
    padding-top: 0;
}

.li-latest-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.li-latest-image {
    display: block;
    width: 104px;
    height: 68px;
    overflow: hidden;
    border-radius: 7px;
    background: #222833;
}

.li-latest-image img,
.li-small-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.li-latest-image img {
    transition: transform 0.3s ease;
}

.li-latest-item:hover .li-latest-image img {
    transform: scale(1.05);
}

.li-latest-content {
    min-width: 0;
}

.li-latest-content h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.li-latest-content h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.li-latest-content h3 a:hover {
    color: #e31e24;
}

.li-latest-content time {
    display: block;
    color: #8e98a8;
    font-size: 12px;
    line-height: 1.2;
}


/* ==================================================
   TABLET I TELEFON
================================================== */

@media (max-width: 900px) {

    .li-home-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "latest";
        gap: 20px;
    }

    .li-main-column {
        order: 1;
    }

    .li-latest-column {
        order: 2;
        margin-top: 0;
    }

    .li-hero {
        min-height: 480px;
    }
}

@media (max-width: 600px) {

    .li-home-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .li-main-column {
        order: 1;
        width: 100%;
    }

    .li-latest-column {
        order: 2;
        width: 100%;
        padding: 15px;
    }

    .li-hero {
        min-height: 430px;
        border-radius: 10px;
    }

    .li-hero-content {
        right: 18px;
        bottom: 20px;
        left: 18px;
    }

    .li-category-label {
        margin-bottom: 10px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .li-hero h1 {
        font-size: 28px;
        line-height: 1.1;
        -webkit-line-clamp: 4;
    }

    .li-post-meta {
        gap: 8px;
        margin-top: 10px;
        font-size: 10px;
    }

    .li-hero p {
        display: none;
    }

    .li-read-more {
        margin-top: 14px;
        padding: 8px 12px;
        font-size: 10px;
    }

    .li-latest-column .li-section-heading h2 {
        font-size: 16px;
    }

    .li-latest-item {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 11px;
    }

    .li-latest-image {
        width: 92px;
        height: 62px;
    }

    .li-latest-content h3 {
        font-size: 14px;
    }
}

/* ==================================================
   ZAVRŠNO PODEŠAVANJE MOBILNOG HERO BLOKA
================================================== */

@media (max-width: 600px) {

    .li-home-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .li-main-column {
        order: 1;
        width: 100%;
        min-height: 0;
    }

    .li-latest-column {
        order: 2;
        width: 100%;
        min-height: 0;
        margin-top: 0;
        padding: 14px;
        border-radius: 9px;
    }

    .li-hero {
        min-height: 390px;
        border-radius: 9px;
    }

    .li-hero-content {
        right: 16px;
        bottom: 17px;
        left: 16px;
    }

    .li-hero h1 {
        max-width: 100%;
        margin: 0;
        font-size: 24px;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .li-category-label {
        margin-bottom: 8px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .li-post-meta {
        gap: 7px;
        margin-bottom: 8px;
        font-size: 9px;
    }

    .li-hero p {
        display: none;
    }

    .li-read-more {
        margin-top: 12px;
        padding: 7px 10px;
        font-size: 9px;
    }

    .li-latest-column .li-section-heading {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .li-latest-column .li-section-heading h2 {
        font-size: 15px;
    }

    .li-latest-item {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
    }

    .li-latest-image {
        width: 86px;
        height: 58px;
    }

    .li-latest-content h3 {
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 1.25;
    }

    .li-latest-content time {
        font-size: 10px;
    }
}