/* ArdreamX hero slider (prefix ax-hero). */
.ax-hero {
    --ax-hero-gold: #e2b45f;
    --ax-hero-border: rgba(226, 180, 95, .45);
    --ax-hero-radius: 10px;
    --ax-hero-ease: cubic-bezier(.22, .7, .2, 1);
    --ax-hero-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 4px 12px rgba(0, 0, 0, .45);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3.5fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    max-width: 1367px;
    margin: 14px auto;
    box-sizing: border-box;
    outline: none;
}

.ax-hero *,
.ax-hero *::before,
.ax-hero *::after {
    box-sizing: border-box;
}

.ax-hero:focus-visible {
    outline: 2px solid var(--ax-hero-gold);
    outline-offset: 4px;
    border-radius: var(--ax-hero-radius);
}

/* Shared frame for the three columns */
.ax-hero__side,
.ax-hero__viewport {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ax-hero-border);
    border-radius: var(--ax-hero-radius);
    background: #0b0a09;
    box-shadow: var(--ax-hero-shadow);
}

/* Side columns: same height as the main slide (grid stretch) */
.ax-hero__side {
    min-height: 0;
    transition: filter .35s var(--ax-hero-ease), box-shadow .35s var(--ax-hero-ease);
}

.ax-hero__side:hover {
    filter: brightness(1.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .6), 0 0 0 1px rgba(226, 180, 95, .25);
}

.ax-hero__side-track {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    transition: transform 700ms var(--ax-hero-ease);
    will-change: transform;
}

.ax-hero__card {
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

.ax-hero__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main slide */
.ax-hero__main {
    position: relative;
    min-width: 0;
}

.ax-hero__viewport {
    aspect-ratio: 1686 / 750;
    width: 100%;
    touch-action: pan-y;
}

.ax-hero__track {
    display: flex;
    height: 100%;
    transition: transform 700ms var(--ax-hero-ease);
    will-change: transform;
}

.ax-hero__slide {
    flex: 0 0 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.ax-hero__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

/* Prev / next: dark glass buttons on the center edges */
.ax-hero__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    border: 1px solid var(--ax-hero-border);
    border-radius: 50%;
    background: rgba(12, 10, 8, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #f3e2bd;
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s ease, background-color .25s ease, color .25s ease;
}

.ax-hero__nav--prev {
    left: 14px;
}

.ax-hero__nav--next {
    right: 14px;
}

.ax-hero__main:hover .ax-hero__nav,
.ax-hero:focus-within .ax-hero__nav,
.ax-hero__nav:focus-visible {
    opacity: 1;
}

.ax-hero__nav:hover,
.ax-hero__nav:focus-visible {
    background: rgba(12, 10, 8, .8);
    color: var(--ax-hero-gold);
    outline: none;
}

.ax-hero__nav[hidden],
.ax-hero__dots[hidden] {
    display: none;
}

/* Dots: small pills at the bottom center, over the image */
.ax-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 2;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 5px 8px;
    list-style: none;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
}

.ax-hero__dots li {
    display: flex;
    margin: 0;
    padding: 0;
}

.ax-hero__dot {
    width: 10px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: width .3s var(--ax-hero-ease), background-color .3s ease;
}

.ax-hero__dot:hover {
    background: rgba(255, 255, 255, .8);
}

.ax-hero__dot:focus-visible {
    outline: 2px solid var(--ax-hero-gold);
    outline-offset: 2px;
}

.ax-hero__dot[aria-current="true"] {
    width: 26px;
    background: var(--ax-hero-gold);
}

/* Narrow screens: main slide only */
@media (max-width: 899px) {
    .ax-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .ax-hero__side {
        display: none;
    }
}

/* Reduced motion: no animated transitions (JS also adds ax-hero--static) */
.ax-hero--static .ax-hero__track,
.ax-hero--static .ax-hero__side-track,
.ax-hero--static .ax-hero__side,
.ax-hero--static .ax-hero__nav,
.ax-hero--static .ax-hero__dot {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .ax-hero__track,
    .ax-hero__side-track,
    .ax-hero__side,
    .ax-hero__nav,
    .ax-hero__dot {
        transition: none;
    }
}
