
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: sans-serif;
    background: #0b0e1a;
    color: #fff;
    padding-bottom: 40px; /* clear fixed footer */

    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.retrain-pipelines {
    font-family: 'Lobster', cursive;
    font-style: normal;
    letter-spacing: 1px;
    background-color: #3D4A7B;
    padding: 0 3px;
}

.intro-text {
    width: 60vw;
    padding: 3rem 0 2rem;
    color: #a8b4cc;
    font-size: 1.2rem;
    line-height: 1.6;
}

.intro-text p + p {
    margin-top: 1.25rem;
}

.intro-text p {
    text-align: justify;
}

.carousel-container {
    width: 80vw;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    height: min(
        calc(80vw / 3 * 16 / 9 * 1.3 + 4rem),
        90vh
    ); /* max item + title (capped at 90vh) */
}

.carousel-row {
    display: flex;
    align-items: center;
    transition: transform 1s ease-in-out;
}

.carousel-item {
    position: relative;
    flex-shrink: 0;
    margin: 0 0.5vw;
    display: flex;
    flex-direction: column; /* stack video and title */
    justify-content: center;
    align-items: center;
    transition: width 1s ease-in-out, height 1s ease-in-out;
    overflow: hidden;
    cursor: pointer;
}

.carousel-item.active {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
}

.video-wrap {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.video-wrap video {
    display: none; /* revealed by JS on first hover */
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: none;
    object-fit: contain;
    background: #000;
}

.video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-title {
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
    font-size: 1rem;
    text-align: center;
    transition: font-size 1s ease-in-out;
}


.mascot {
    width: min(320px, 60vw);
    border-radius: 18px;
    box-shadow: 0px 0px 10px 10px rgba(255,215,0,0.15);
    opacity: 40%;
    display:block;
    margin:1.5rem auto;
}

