/**
 * Atrkadeh homepage Hero media slider.
 * The original server-rendered image remains the LCP element.
 */

.atrkadeh-home-hero__media.atrkadeh-home-hero__slider {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.atrkadeh-home-hero__slider
    > .atrkadeh-home-hero__slide {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.atrkadeh-home-hero__slider
    > .atrkadeh-home-hero__slide:first-of-type {
    position: relative;
}

.atrkadeh-home-hero__slider
    > .atrkadeh-home-hero__slide:not(:first-of-type) {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.atrkadeh-home-hero__slider
    > .atrkadeh-home-hero__slide.is-active {
    opacity: 1;
}

.atrkadeh-home-hero__slider::after {
    z-index: 2;
    pointer-events: none;
}

.atrkadeh-home-hero__slider-nav {
    position: absolute;
    right: auto;
    bottom: 14px;
    left: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 4px 18px rgba(20, 16, 25, 0.12);
    direction: ltr;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
}

.atrkadeh-home-hero__slider-dot {
    width: 8px;
    min-width: 8px;
    height: 8px;
    min-height: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(37, 33, 47, 0.35);
    box-shadow: none;
    cursor: pointer;
    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.atrkadeh-home-hero__slider-dot:hover,
.atrkadeh-home-hero__slider-dot:focus-visible {
    background: #25212f;
}

.atrkadeh-home-hero__slider-dot.is-active {
    width: 22px;
    background: #25212f;
}

.atrkadeh-home-hero__slider-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .atrkadeh-home-hero__slider-nav {
        bottom: 10px;
        gap: 6px;
        padding: 6px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atrkadeh-home-hero__slider
        > .atrkadeh-home-hero__slide,
    .atrkadeh-home-hero__slider-dot {
        transition: none;
    }
}
