/* Carousel — pure CSS + 20 lines of JS, no library */

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0;
}

.carousel-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    display: block;
    min-width: 100%;
    position: relative;
    line-height: 0;
    color: #fff;
    text-decoration: none;
}

.carousel-image,
.carousel-image-placeholder {
    display: block;
    width: 100%;
    height: 300px;
    max-height: 300px;
    object-fit: cover;
    background: #f0f0f0;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 2rem 1.5rem 1.5rem;
}

.carousel-content { max-width: 600px; }

.carousel-category {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.carousel-category a {
    color: #fff;
    text-decoration: none;
}

.carousel-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

/* Controls */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover { background: #fff; }

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active { background: #fff; }

@media (max-width: 768px) {
    .carousel-title { font-size: 1.15rem; }
    .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 1.2rem; }
}

/* Carousel is mobile-only; hero-grid takes over on desktop */
@media (min-width: 769px) {
    .carousel { display: none; }
}
