/* DS Kerempuh horizontalni arhiva - Styles */

.dskha-container {
    width: 100%;
    margin: 0 auto;
    outline: none;
}

.dskha-main-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px; /* Razmak između naslova i izbornika */
}

/* Za veće ekrane - poravnaj desno */
@media (min-width: 1000px) {
    .dskha-main-wrapper {
        justify-content: flex-end;
    }
}

.dskha-prefix-title {
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
}

.dskha-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0; /* Bez razmaka */
}

.dskha-content {
    text-align: center;
    padding: 0; /* Bez paddinga */
    overflow: hidden;
    position: relative;
    min-width: auto; /* Auto width */
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dskha-title {
    margin: 0 !important;
    padding: 0;
    font-weight: 700;
    line-height: 1.3;
    min-height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
}

.dskha-title a {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 10px;
}

.dskha-title a:hover {
    transform: scale(1.05);
}

.dskha-title a:visited,
.dskha-title a:active,
.dskha-title a:focus {
    color: inherit !important;
}

/* Navigation buttons */
.dskha-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px; /* Smanjen padding sa 10px na 5px */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
    margin-left: -10px;
    margin-right: -10px;
}

.dskha-nav-btn:hover {
    transform: scale(1.1);
}

.dskha-nav-btn:focus {
    outline: none;
}

.dskha-arrow {
    transition: all 0.3s ease;
    display: block;
}

.dskha-arrow-left {
    transform: rotate(180deg);
}

/* Carousel animations - ISPRAVNO POSTAVLJENO */
.dskha-title.slide-out-left {
    transform: translateX(100px); /* Stari tekst izlazi lijevo */
    opacity: 0;
}

.dskha-title.slide-out-right {
    transform: translateX(-100px); /* Stari tekst izlazi desno */
    opacity: 0;
}

/* VAŽNO: slide-in animacije */
.dskha-title.slide-in-left {
    transform: translateX(100px); /* Novi tekst počinje LIJEVO i dolazi na centar */
    opacity: 0;
}

.dskha-title.slide-in-right {
    transform: translateX(-100px); /* Novi tekst počinje DESNO i dolazi na centar */
    opacity: 0;
}

.dskha-title.slide-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive styles */
@media (max-width: 690px) {
    .dskha-main-wrapper {
        flex-direction: column;
        gap: 5px;
        margin-top: 40px;
        padding-bottom: 50px;
    }

    .dskha-prefix-title {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dskha-wrapper {
        gap: 0;
        padding: 15px 0;
    }

    .dskha-content {
        padding: 0;
        min-width: auto;
    }

    .dskha-nav-btn {
        padding: 5px;
        min-width: 36px;
        min-height: 36px;
    }

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

@media (max-width: 480px) {
    .dskha-wrapper {
        gap: 0;
        padding: 10px 0;
    }

    .dskha-content {
        padding: 0;
        min-width: auto;
    }

    .dskha-nav-btn {
        padding: 3px;
        min-width: 32px;
        min-height: 32px;
    }

    .dskha-title,
    .dskha-prefix-title {
        font-size: 16px !important;
    }
}