/* ============================================================
   HERO CAROUSEL — Full-width Image Slider
   ============================================================ */

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-navy-darkest);
}

/* ── Track & Slides ─────────────────────────────────── */
.carousel-track {
    position: relative;
    width: 100%;
    /* Maintain 16:5 aspect ratio for banner images */
    aspect-ratio: 16 / 5;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

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

/* ── Arrow Navigation ───────────────────────────────── */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow--prev {
    left: 20px;
}

.carousel-arrow--next {
    right: 20px;
}

/* ── Dot Indicators ─────────────────────────────────── */
.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .carousel-track {
        aspect-ratio: 16 / 7;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .carousel-arrow--prev {
        left: 10px;
    }

    .carousel-arrow--next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}
