/* ===== Hero Carousel / Banner Slider ===== */
.hero-carousel {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1100px;
    margin: 0 auto 20px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.10);
    aspect-ratio: 4 / 1;
    min-height: 220px;
    background: #f0f4f8;
}

.hero-carousel .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel .carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

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

.hero-carousel .carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.hero-carousel .carousel-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

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

/* Arrow buttons */
.hero-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #334155;
    transition: all 0.25s ease;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero-carousel:hover .carousel-arrow {
    opacity: 1;
}

.hero-carousel .carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.hero-carousel .carousel-arrow--prev {
    left: 12px;
}

.hero-carousel .carousel-arrow--next {
    right: 12px;
}

/* Ad slot badge */
.hero-carousel .carousel-ad-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        width: calc(100% - 16px);
        border-radius: 10px;
        aspect-ratio: 3 / 1;
        min-height: 180px;
        margin-bottom: 14px;
    }

    .hero-carousel .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

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