/* Homepage banner section (replaces the Elementor carousel + image widgets). */

.ars-banners {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.ars-banners__slider {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    aspect-ratio: 1024 / 625;
    overflow: hidden;
}

.ars-slides {
    position: absolute;
    inset: 0;
}

.ars-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease-in-out;
    pointer-events: none;
    display: block;
}

.ars-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Without JS (single slide, or script blocked) the first slide still shows. */
.ars-banners__slider:not(.is-ready) .ars-slide:first-child {
    opacity: 1;
    pointer-events: auto;
}

.ars-banners__tiles {
    flex: 1 1 50%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
}

.ars-tile {
    display: block;
    overflow: hidden;
    min-height: 0;
}

.ars-banners img.ars-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

a.ars-slide,
a.ars-tile {
    transition: opacity .8s ease-in-out, filter .2s ease;
}

a.ars-tile:hover,
a.ars-slide:hover {
    filter: brightness(1.05);
}

/* Arrows — desktop only; not rendered at all when there is a single slide. */
.ars-banners .ars-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .3);
    color: #fff;
    cursor: pointer;
    opacity: .75;
    transition: opacity .2s ease, background .2s ease;
}

.ars-banners .ars-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ars-banners .ars-arrow:hover,
.ars-banners .ars-arrow:focus-visible {
    opacity: 1;
    background: rgba(0, 0, 0, .5);
}

.ars-banners .ars-arrow--prev {
    left: 10px;
}

.ars-banners .ars-arrow--next {
    right: 10px;
}

/* Dots — selectors kept specific, the theme styles bare <button> elements. */
.ars-banners .ars-dots {
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .28);
}

.ars-banners .ars-dots .ars-dot {
    width: 8px;
    height: 8px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 4px rgba(0, 0, 0, .5);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.ars-banners .ars-dots .ars-dot:hover {
    background: #fff;
}

.ars-banners .ars-dots .ars-dot.is-active {
    background: #f9b233;
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .ars-banners {
        flex-direction: column;
    }

    .ars-banners__slider,
    .ars-banners__tiles {
        flex: 1 1 auto;
        width: 100%;
    }

    .ars-banners__tiles {
        grid-auto-rows: auto;
    }

    .ars-tile {
        aspect-ratio: 1024 / 625;
    }

    .ars-banners .ars-arrow {
        display: none;
    }

    .ars-banners .ars-dots {
        right: 6px;
        bottom: 6px;
        gap: 5px;
        padding: 4px 6px;
    }

    .ars-banners .ars-dots .ars-dot {
        width: 7px;
        height: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ars-slide {
        transition: none;
    }
}
