.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(7, 59, 76, .84), rgba(15, 76, 92, .54));
    pointer-events: none;
}

html[dir="rtl"] .home-hero::after {
    background: linear-gradient(270deg, rgba(7, 59, 76, .84), rgba(15, 76, 92, .54));
}

.hero-backgrounds,
.hero-background-slide {
    position: absolute;
    inset: 0;
}

.hero-backgrounds {
    z-index: 1;
    overflow: hidden;
    background: #073b4c;
}

.hero-background-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.65s ease, visibility 0s linear 1.65s;
}

.hero-background-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.65s ease, visibility 0s linear 0s;
}

.hero-background-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.06) saturate(1.04);
}

.hero-slider-controls {
    position: absolute;
    right: 50%;
    bottom: 22px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 9px;
    transform: translateX(50%);
}

.hero-slider-controls > button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(7, 59, 76, .46);
    color: #fff;
    backdrop-filter: blur(8px);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.hero-slider-controls > button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .64);
    background: rgba(7, 59, 76, .72);
}

.hero-slider-controls svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[dir="ltr"] .hero-slider-controls svg {
    transform: scaleX(-1);
}

.hero-slider-dots {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(7, 59, 76, .35);
    backdrop-filter: blur(8px);
}

.hero-slider-dots button {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .46);
    transition: width .3s ease, border-radius .3s ease, background .3s ease;
}

.hero-slider-dots button.is-active {
    width: 22px;
    border-radius: 999px;
    background: #fff;
}

@media (max-width: 980px) {
    .hero-slider-controls {
        bottom: 14px;
    }
}

@media (max-width: 640px) {
    .hero-slider-controls {
        right: auto;
        left: 12px;
        gap: 7px;
        transform: none;
    }

    html[dir="rtl"] .hero-slider-controls {
        right: 12px;
        left: auto;
    }

    .hero-slider-controls > button {
        width: 30px;
        height: 30px;
    }

    .hero-slider-dots {
        max-width: 90px;
        height: 30px;
        gap: 5px;
        padding-inline: 7px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hero-slider-dots::-webkit-scrollbar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-background-slide,
    .hero-background-slide.is-active,
    .hero-slider-dots button {
        transition-duration: .01ms;
    }
}
