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

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

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

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

.carousel-image,
.carousel-image-placeholder {
    width: 100%;
    aspect-ratio: 21 / 9;
    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.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(26, 115, 232, 0.9);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

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

.carousel-title a { color: #fff; text-decoration: none; }
.carousel-title a:hover { text-decoration: underline; }

.carousel-excerpt {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 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-excerpt { display: none; }
    .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 1.2rem; }
}
