/**
 * ACBAR homepage dynamic slider
 */
.acbar-home-slider {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    background: #1a1a1a;
}

.acbar-home-slider__viewport {
    position: relative;
    width: 100%;
    height: auto;
}

.acbar-home-slider__track {
    position: relative;
    width: 100%;
    height: auto;
}

/* Inactive slides stack; active slide is in flow so height follows the full image */
.acbar-home-slider__slide {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    pointer-events: none;
    z-index: 0;
}

.acbar-home-slider__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

/* Full image — natural aspect ratio, no crop */
.acbar-home-slider__media {
    display: block;
    width: 100%;
    margin: 0;
    line-height: 0;
    background: #111;
}

.acbar-home-slider__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

.acbar-home-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.acbar-home-slider__overlay--default {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.45) 100%);
}

.acbar-home-slider__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

.acbar-home-slider__title {
    font-weight: 700;
    line-height: 1.15;
    font-size: var(--fs-d, 42px);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.acbar-home-slider__subtitle {
    font-size: var(--fs-d, 18px);
    line-height: 1.45;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.acbar-home-slider__buttons {
    gap: 10px;
}

.acbar-home-slider__btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.acbar-home-slider__btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: inherit;
}

.acbar-home-slider__btn--theme {
    background: #27883b !important;
    color: #fff !important;
}

.acbar-home-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #212931;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.acbar-home-slider__arrow--prev {
    inset-inline-start: 12px;
}

.acbar-home-slider__arrow--next {
    inset-inline-end: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .acbar-home-slider__slide {
        transition: none;
    }

    .acbar-home-slider__btn {
        transition: none;
    }
}

.acbar-home-slider__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.acbar-home-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.acbar-home-slider__dot.is-active {
    background: #27883b;
    transform: scale(1.15);
}

@media (max-width: 1023px) {
    .acbar-home-slider__title {
        font-size: var(--fs-t, var(--fs-d, 32px));
    }

    .acbar-home-slider__subtitle {
        font-size: var(--fs-t, var(--fs-d, 16px));
    }
}

@media (max-width: 767px) {
    .acbar-home-slider__title {
        font-size: var(--fs-m, var(--fs-t, 24px));
    }

    .acbar-home-slider__subtitle {
        font-size: var(--fs-m, var(--fs-t, 14px));
    }

    .acbar-home-slider__btn {
        font-size: 13px;
        padding: 8px 18px;
        white-space: normal;
        text-align: center;
    }

    .acbar-home-slider__arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .acbar-home-slider__arrow--prev {
        inset-inline-start: 6px;
    }

    .acbar-home-slider__arrow--next {
        inset-inline-end: 6px;
    }
}

[dir="rtl"] .acbar-home-slider__arrow--prev i::before {
    content: "\f054";
}

[dir="rtl"] .acbar-home-slider__arrow--next i::before {
    content: "\f053";
}

@media (prefers-color-scheme: dark) {
    .acbar-home-slider__arrow {
        background: rgba(30, 30, 30, 0.85);
        color: #fff;
    }
}
