/* =========================================
   PALILULA.INFO – NAJNOVIJE VESTI (DEFINITIVNI FIX)
   ========================================= */

/* 1. KONTROLA KONTEJNERA U SIDEBAR-U */
[data-sidebar="right"] > :is([data-type="type-3"], [data-type="type-4"]),
.widget-area .palilula-latest-widget,
.sidebar .palilula-latest-widget {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* 2. GLAVNI WIDGET - PUNA ŠIRINA BEZ SKUPLJANJA */
.palilula-latest-widget {
    --latest-accent: #d32f2f;
    --latest-text: #171717;
    --latest-muted: #858585;
    --latest-border: #e9e9e9;

    width: 100% !important;
    max-width: 100% !important; /* Osigurava da zauzme celu širinu desne kolone */
    margin: 0 !important;
    padding: 0 20px 20px !important;
    background: #fff;
    border-top: 4px solid var(--latest-accent);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.055);
    font-family: inherit;
    box-sizing: border-box;
}

.palilula-latest-widget *,
.palilula-latest-widget *::before,
.palilula-latest-widget *::after {
    box-sizing: border-box;
}


/* 3. ZAGLAVLJE ("Upravo objavljeno") */
.palilula-latest-header {
    margin: 0 0 12px !important;
    padding: 4px 0 13px !important;
    border-bottom: 1px solid var(--latest-border);
}

.palilula-latest-subtitle {
    display: block;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    color: var(--latest-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1;
    text-transform: uppercase;
}

.palilula-latest-heading {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--latest-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}


/* 4. LISTA I STAVKE */
.palilula-latest-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.palilula-latest-item {
    position: relative;
    display: flex;
    align-items: flex-start !important;
    gap: 11px;
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--latest-border);
}

.palilula-latest-item:first-child {
    padding-top: 0 !important;
}

.palilula-latest-item:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0;
}


/* 5. SLIKA */
.palilula-latest-image {
    display: block;
    flex: 0 0 88px;
    width: 88px;
    height: 66px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f1f1;
}

.palilula-latest-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
}


/* 6. TEKST I KATEGORIJA – PORAVNATI U RAVNI SA VRHOM SLIKE */
.palilula-latest-info {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    /* Koristimo transform da pomerimo tekst tačno u milimetar uz vrh slike bez greške */
    transform: translateY(-3px); 
}

.palilula-latest-category {
    display: inline-block;
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
    color: var(--latest-accent);
    font-size: 10px;
    font-weight: 800;
    line-height: 1 !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
}

.palilula-latest-category:hover {
    text-decoration: underline;
}

.palilula-latest-title {
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.palilula-latest-title a {
    color: var(--latest-text);
    text-decoration: none;
}

.palilula-latest-time {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--latest-muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
}