/* ── Option B: Side-peek slider ── */
.carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}
.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 16px;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
    flex: 0 0 80%;
    margin: 0 1%;
    border-radius: 16px;
    border: 1px solid rgba(52, 114, 200, 0.15);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    overflow: hidden;
    opacity: 0.35;
    transform: scale(0.92);
    filter: brightness(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease, border-color 0.5s ease;
    cursor: pointer;
}
.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
    border-color: rgba(52, 114, 200, 0.3);
}
.carousel-slide.active:hover {
    border-color: rgba(52, 114, 200, 0.5);
    box-shadow: 0 0 30px rgba(52, 114, 200, 0.1);
}
.carousel-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.carousel-slide .carousel-caption {
    padding: 1rem 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.carousel-slide .carousel-caption strong {
    color: var(--text-primary);
    font-weight: 600;
}
/* Arrows — hidden until hover */
.carousel-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(52, 114, 200, 0.25);
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(8px);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}
.carousel:hover .carousel-arrow {
    opacity: 1;
}
.carousel-arrow:hover {
    border-color: rgba(0, 229, 255, 0.4);
    color: #00e5ff;
    background: rgba(3, 7, 18, 0.9);
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }
/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(52, 114, 200, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}
.carousel-dot.active {
    background: #3472c8;
    box-shadow: 0 0 8px rgba(52, 114, 200, 0.5);
    transform: scale(1.25);
}
.carousel-dot:hover:not(.active) {
    background: rgba(52, 114, 200, 0.55);
}
@media (max-width: 768px) {
    .carousel { padding: 0 1rem; }
    .carousel-slide { flex: 0 0 92%; margin: 0 0.5%; }
    .carousel-arrow { display: none; }
    .carousel-slide .carousel-caption { font-size: 0.8rem; padding: 0.75rem 1rem; }
}
