/* 1. Общие настройки */
.custom-slideshow-container {
    display: flex;
    overflow: hidden;
}

/* 2. Градиент*/
.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(43, 43, 58, 0.95) 0%,
            rgba(43, 43, 58, 0.3) 40%,
            rgba(43, 43, 58, 0) 100%)
}


/* 3. Карточка контента */
.content-card {
    background: var(--color-surface-secondary);
    color: var(--color-content-primary) !important;
    padding: 30px;
    max-width: 500px;
    z-index: 10;
    margin-left: 100px;
    margin-bottom: 60px;
}

@media (max-width: 959px) {
    .content-card {
        margin-left: 80px;
        margin-right: 80px;
        max-width: 100%;
        padding: 20px;
    }

    .overlay-gradient {
        background: linear-gradient(0deg,
                rgba(43, 43, 58, 0.95) 0%,
                rgba(43, 43, 58, 0.5) 50%,
                rgba(43, 43, 58, 0) 100%);
    }
}

.content-card h2 {
    font-family: "Bebas Neue", sans-serif;
    color: var(--color-content-primary);
    font-size: 36px;
    line-height: 42px;
    margin-bottom: 10px;
}

.content-card p {
    color: var(--color-content-primary);
    font-size: 14px;
    line-height: 20px;
    margin-top: 0;
}

/* 4. Управление и Прогресс-бары */
.controls-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 20;
    margin-left: 100px;
    margin-bottom: 20px;
}

@media (max-width: 959px) {
    .controls-wrapper {
        margin-left: 20px;
    }

    .fixed-badge {
        right: 20px;
        bottom: 20px;
        display: none;
        /* Hide badge on mobile to avoid overlap */
    }
}

.slideshow-counter {
    font-size: 16px;
    font-weight: bold;
    min-width: 40px;
}

.custom-progress-nav {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (max-width: 639px) {
    .nav-item {
        width: 50px !important;
        /* Shorter progress lines on small screens */
    }

    .controls-wrapper {
        gap: 15px;
        bottom: 0px !important;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .content-card {
        padding: 15px;
        margin-left: 15px;
        margin-right: 15px;
        margin-bottom: 70px;
    }

}

.nav-item {
    cursor: pointer;
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #FFCC00;
    /* Желтый прогресс */
    transform: scaleX(0);
    transform-origin: left;
}

/* Анимация полоски при активном слайде */
.nav-item.uk-active .progress-line {
    animation: fillProgress 5000ms linear forwards;
}

@keyframes fillProgress {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

/* 5. Фиксированный бейдж */
.fixed-badge {
    line-height: 16px;
    position: absolute;
    right: 60px;
    bottom: 60px;
    background: var(--color-surface-secondary);
    display: flex;
    padding: 10px 10px;
    gap: 10px;
    color: var(--color-content-primary);
    z-index: 30;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-text {
    font-size: 12px;
    color: var(--color-content-secondary);
}

.badge-link {
    font-weight: bold;
    font-size: 14px;
    margin-top: 4px;
}


/* Контейнер стрелки */
.custom-nav {
    background: rgb(43 43 58 / 40%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-nav:hover {
    width: 40px;
    background: rgb(43 43 58 / 80%);
}

/* Скрываем стандартную графику UIkit, если она осталась */
.custom-nav svg:not([fill="none"]) {
    display: none;
}

/* Разворачиваем левую стрелку на 180 градусов */
.prev-arrow svg {
    transform: rotate(180deg);
}

/* Если захотите менять цвет стрелки через CSS (в SVG тогда надо заменить fill="#EEF1F9" на fill="currentColor") */
.custom-nav svg path {
    transition: fill 0.3s ease;
}

.custom-nav:hover svg path {
    fill: #FFCC00;
    /* Например, при наведении стрелка станет желтой */
}

.uk-slider-items.uk-grid-medium {
    flex-wrap: nowrap;
}

.uk-dotnav>*>* {
    background: var(--color-stroke);
    border-color: transparent;
    border-radius: 0;
}

.uk-dotnav>.uk-active>* {
    background: var(--color-accent-primary);
    border-color: transparent;
}