/* Vision Section Styles */
.vision-section {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 20px 80px;
    margin-top: 20px;
    color: #fffcf7;
}

.vision-panel {
    width: 100%;
    max-width: 1200px;
    padding: 16px 32px 8px; /* reduced top/bottom around carousel */
    background: #fffcf7;
    border: 2px solid #afc8a0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* keep carousel and content within border */
}

.vision-tagline {
    font-size: 1.725rem;
    font-weight: 700;
    color: #006d8f;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    margin-top: 12px;
    margin-bottom: 16px;
    width: 100%;
}

.vision-tagline .typing-cursor {
    display: none; /* no blinking cursor after typing */
}

.vision-description {
    font-size: 1rem;
    font-weight: 400;
    color: #006d8f;
    text-align: left;
    line-height: 1.6;
    margin-bottom: 0;
    width: 100%;
}

.vision-carousel {
    width: 100%;
    height: 75vh;
    min-height: 480px;
    margin-top: -8px;
    margin-bottom: 0;
    padding: 0; /* no top/bottom padding */
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* keep content within rounded border */
}

.vision-carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.35s ease-out;
}

.vision-carousel-slide {
    flex: 0 0 33.333%;
    width: 33.333%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 8px !important; /* no top/bottom padding */
    background: transparent;
    box-sizing: border-box;
}

.vision-carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
}

/* Marquee: multiple slides visible, continuous scroll, seamless loop */
.vision-carousel-marquee {
    overflow: hidden;
}

.vision-carousel-marquee .vision-carousel-track {
    width: 200%; /* 6 slides × 33.333% each */
    animation: vision-marquee 25s linear infinite;
}

.vision-carousel-marquee .vision-carousel-slide {
    flex: 0 0 33.333%; /* 3 slides visible at once; each slide 1/3 of track = 1/6 of full loop */
    width: 33.333%;
}

@keyframes vision-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* move by 3 slides = duplicate set; seamless reset */
    }
}

/* Trust / Credibility marquee - after Vision */
.trust-marquee-section {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 32px 0 48px;
    background: #fffcf7;
    border: 1px solid rgba(175, 200, 160, 0.5);
    box-shadow: 0 0 20px rgba(175, 200, 160, 0.25), 0 0 40px rgba(175, 200, 160, 0.15);
    overflow: hidden;
}

.trust-marquee-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(0, 109, 143, 0.8);
    text-align: center;
    margin: 0 0 16px 0;
}

.trust-marquee-wrap {
    width: 100%;
    overflow: hidden;
}

.trust-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    animation: trust-marquee 20s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .trust-marquee-track {
        animation: none;
    }
}

/* Logo slots inside carousel track */
.trust-marquee-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 144px;
    height: auto;
    min-height: 150px;
}

.trust-marquee-logo {
    max-height: 64px;
    max-width: 201px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Larger logos: mHUB, UIUC, ICorps (75% bigger) */
.trust-marquee-logo[src*="mHubLogo"],
.trust-marquee-logo[src*="UIUCLogo"],
.trust-marquee-logo[src*="ICorps"] {
    max-height: 150px;
    max-width: 474px;
}

.trust-marquee-fallback {
    display: none;
    font-size: 1rem;
    font-weight: 600;
    color: #006d8f;
}

.trust-marquee-sep {
    font-size: 0.9rem;
    color: rgba(0, 109, 143, 0.4);
    flex-shrink: 0;
}

@keyframes trust-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}
