/**
 * DS Kerempuh Reprizne - Styles
 */

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

/* Responsive row-gap */
@media (max-width: 600px) {
    .ds-kerempuh-reprizne-grid {
        row-gap: 50px !important;
    }
}

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



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

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

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

/* Image */
.dskr-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

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

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

/* Meta Info */
.dskr-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 10px;
    margin-top: -6px;
    font-weight: bold !important;
}

.dskr-type {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dskr-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #000;
    font-size: 15px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 700;
}

.dskr-duration img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-bottom: 0 !important;
}

/* Title */
.dskr-title {
    margin: 0;
    padding: 5px 0 18px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.dskr-title a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

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

/* Content */
.dskr-content {
    padding: 0 0 26px;
    line-height: 1.6;
    flex-grow: 1;
    color: #000 !important;
}

/* Button */
.dskr-button {
    margin: 0 0 20px 0;
       padding: 10px 20px;
        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;
}

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

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

.dskr-load-more {
    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;

    /* FIX ZA IPHONE */
    color: #000000 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

.dskr-load-more .dskr-plus {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease;
    color: #000000 !important;
    transform: translateZ(0); /* Force GPU acceleration */
}

.dskr-load-more:hover .dskr-plus {
    transform: rotate(90deg) translateZ(0);
}


.dskr-item.dskr-fade-in {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.dskr-item.dskr-fade-in.dskr-visible {
    opacity: 1;
}

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

/* SVG plus */
.dskr-load-more .dskr-plus svg {
    width: 100%;
    height: 100%;
    display: block;
    margin-top: 1px;
}

/* HOVER - rotira SVG */
.dskr-load-more:hover .dskr-plus {
    transform: rotate(90deg);
}

.dskr-load-more .dskr-text {
    font-size: 18px;
    font-weight: 700;
    color: #000000 !important;
    font-family: "Barlow" !important;
}

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

/* Loading animacija */
.dskr-load-more.loading .dskr-plus {
    transform: rotate(90deg); /* ✅ Fiksna rotacija za loading */
}


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

@media (max-width: 900px) {
    .ds-kerempuh-reprizne-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .dskr-image img {
    height: 230px !important;
}

}

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

    .dskr-title {
        font-size: 20px;
    }

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

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

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

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

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



td {
    font-size: 18px !important;
    font-family: 'Barlow' !important;
    font-weight: 500 !important;
}






@media only screen and (max-width: 999px) {
.dskr-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;

}
}