/**
 * DS Kerempuh Novosti - Styles
 */

/* Grid Container */
.ds-kerempuh-novosti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;;
    row-gap: 50px !important;
    padding: 20px 0;
}

/* Grid Item */
.novosti-item {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;

}

/* Hidden items for pagination */
.novosti-hidden-desktop {
    display: none;
}

@media (max-width: 600px) {
    .novosti-hidden-desktop {
        display: flex;
    }

    .novosti-hidden-mobile {
        display: none;
    }
}

/* Image - Fixed height */
.novosti-image {
    width: 100%;
    height: 410px;
    overflow: hidden;
    position: relative;

}

.novosti-image img {
    width: 100% !important;
    height: 410px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    margin-bottom: 0 !important;
}





.novosti-item:hover .novosti-image img {
    transform: scale(1.05);
}

/* Meta Info - Date */
.novosti-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin-top: 6px;
    margin-bottom: -5px;
}

.novosti-date {
    text-transform: uppercase;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 6px;
    margin-bottom: 10px;
}

/* Title */
.novosti-title {
    margin: 0;
    padding: 2px 0 4px;
    font-family: 'Barlow', sans-serif !important;
    font-size: 20px !important;
    line-height: 1.2;
    font-weight: 700 !important;
}

.novosti-title a {
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 26px;
}

.novosti-title a:hover {
    opacity: 0.8;
}

/* Content */
.novosti-content {
    padding: 0 0 26px;
    line-height: 1.3 !important;
    font-size: 17px !important;
    flex-grow: 1;
}

/* Button */
.novosti-button {
    margin: 0 0 20px 0;
       padding: 10px 20px !important;
        min-width: 140px !important;
        min-height: 52px !important;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid;
    text-transform: uppercase;
    text-align: center !important;
}

.novosti-button:hover {
    text-decoration: none;
}

/* Load More Button */
.novosti-load-more-wrapper {
    text-align: center;
    margin-top: 50px;
    padding: 0;
}



.novosti-load-more,
.novosti-custom-link {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    font-family: "Barlow";
}

/* Plus znak wrapper */
.novosti-load-more .novosti-plus,
.novosti-custom-link .novosti-plus {
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* SVG plus */
.novosti-load-more .novosti-plus svg,
.novosti-custom-link .novosti-plus svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* HOVER - rotira SVG */
.novosti-load-more:hover .novosti-plus,
.novosti-custom-link:hover .novosti-plus {
    transform: rotate(90deg);
}
.novosti-load-more .novosti-text,
.novosti-custom-link .novosti-text {
    font-size: 18px;
    font-weight: 700;
}

/* Loading state */
.novosti-load-more.loading {
    opacity: 0.5;
    pointer-events: none;
}

.novosti-load-more.loading .novosti-plus {
    animation: novosti-spin 1s linear infinite;
}

@keyframes novosti-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .ds-kerempuh-novosti-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .ds-kerempuh-novosti-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ds-kerempuh-novosti-grid {
        grid-template-columns: 1fr;
    }

    .novosti-title {
        font-size: 18px !important;
    }

    .novosti-content {
        font-size: 14px;
    }

    .novosti-load-more-wrapper {
        margin-top: 30px;
    }
}

/* No image fallback */
.novosti-item:not(:has(.novosti-image)) .novosti-meta {
    padding-top: 20px;
}

/* Container padding for content - only right padding */
.novosti-item > *:not(.novosti-image) {
    padding-left: 0;
}

/* Image doesn't need padding */
.novosti-image {
    padding: 0 !important;
    margin: 0 !important;
}

/* Button specific margin */
.novosti-button {
    margin: 0 0 20px 0;
}


body #page-header-bg h1, html body .row .col.section-title h1, .nectar-box-roll .overlaid-content h1, .featured-media-under-header h1 {
    font-family: "barlow", sans-serif !important;
    letter-spacing: 0px !important;
    font-size: 42px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important
}


@media only screen and (max-width: 690px) {
    #page-header-bg .span_6 h1, .single.single-post .section-title h1, body.search #page-header-bg h1, body.single.single-post .row .col.section-title.span_12 h1 {
        font-size: 26px !important;
        line-height: 1.1 !important;
    }
}




.gallery {
    margin-top: 40px !important;
    overflow: hidden !important;
    width: calc(100% + 10px) !important;
    margin-left: -5px !important;
}

.gallery .gallery-item {
    float: left !important;
    width: 33.333% !important;
    padding: 0px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    margin-bottom: 0px !important;
}

.gallery .gallery-item dt {
    margin: 0 !important;
}

.gallery .gallery-item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Potpuno ukloni BR tagove iz DOM-a ako je moguće */
.gallery br {
    display: none !important;
    float: none !important;
    clear: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Reset DL margina */
.gallery dl {
    margin: 0 !important;
}

/* Clear float na kraju */
.gallery:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery .gallery-item {
        width: 50% !important;
    }
}

@media (max-width: 480px) {
    .gallery .gallery-item {
        width: 100% !important;
    }
}




@media (max-width: 999px) {
/* Button */
.novosti-button {
            padding: 2px 4px !important;
        min-width: 120px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
}
}