.video-carousel-section {
    margin: 1em 0;
}

.video-carousel-section > .header {
    margin-bottom: 0.75em;
    font-size: 1.5em;
    text-align: center;
}

.video-carousel {
    position: relative;
}

.video-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

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

.video-carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.video-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}

.video-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 12px white solid;
    border-radius: 48px;
    box-shadow: inset 0 0 24px gray;
}

.video-carousel-caption {
    margin: 8px 0 0 0;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}

.video-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    padding: 0 12px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    user-select: none;
}

.video-carousel-prev {
    left: 4px;
}

.video-carousel-next {
    right: 4px;
}

.video-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.video-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.video-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.video-carousel-dot.active {
    background: #555;
}

@media (max-width: 768px) {
    .video-carousel-btn {
        font-size: 1.8rem;
        padding: 0 8px;
    }
}
