/* BIMS homepage hero — background slideshow + welcome overlay */
.bims-hero {
    position: relative;
    width: 100%;
    min-height: 92vh;
    min-height: calc(100vh - 20px);
    max-height: 960px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    margin-top: 0;
}

.bims-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bims-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    transition: opacity 2.2s ease-in-out;
    will-change: opacity;
}

.bims-hero__slide.is-active {
    opacity: 1;
    z-index: 2;
}

.bims-hero__slide.is-exiting {
    opacity: 0;
    z-index: 1;
    transition: opacity 2.2s ease-in-out;
}

.bims-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(105deg, rgba(0, 40, 24, 0.82) 0%, rgba(0, 60, 35, 0.55) 42%, rgba(0, 0, 0, 0.35) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 45%);
    pointer-events: none;
}

.bims-hero__content {
    position: relative;
    z-index: 3;
    max-width: 920px;
    margin: 0 auto;
    padding: 120px 28px 100px;
    text-align: center;
}

.bims-hero__eyebrow {
    display: inline-block;
    margin: 0 0 20px;
    padding: 10px 22px;
    font-size: clamp(14px, 1.8vw, 17px);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.28);
    animation: bimsHeroFadeUp 0.9s ease 0.15s both;
}

.bims-hero__title {
    margin: 0 0 18px;
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-family: 'Nunito', sans-serif;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5), 0 4px 30px rgba(0, 0, 0, 0.35);
    animation: bimsHeroFadeUp 0.9s ease 0.3s both;
}

.bims-hero__title span {
    display: block;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ffffff 0%, #a8e6c4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(3.35rem, 8.5vw, 6rem);
    line-height: 1.05;
    margin-top: 4px;
}

.bims-hero__tagline {
    margin: 0 auto 36px;
    max-width: 720px;
    font-size: clamp(1.35rem, 3vw, 1.95rem);
    font-weight: 500;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
    animation: bimsHeroFadeUp 0.9s ease 0.45s both;
}

.bims-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    animation: bimsHeroFadeUp 0.9s ease 0.6s both;
}

.bims-hero__btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.bims-hero__btn--primary {
    background: #009355 !important;
    border: 2px solid #009355 !important;
    color: #fff !important;
    box-shadow: 0 8px 28px rgba(0, 147, 85, 0.45);
}

.bims-hero__btn--primary:hover {
    background: #00b366 !important;
    border-color: #00b366 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 147, 85, 0.5);
}

.bims-hero__btn--ghost {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    color: #fff !important;
}

.bims-hero__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.bims-hero__indicators {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}

.bims-hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.bims-hero__dot.is-active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.bims-hero__scroll-hint {
    position: absolute;
    bottom: 72px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    animation: bimsHeroBounce 2s ease-in-out infinite;
    pointer-events: none;
}

.bims-hero__scroll-hint i {
    display: block;
    margin-top: 0;
    font-size: 22px;
    width: 1em;
    text-align: center;
}

@keyframes bimsHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bimsHeroBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* Fallback when no slider images */
.bims-hero--fallback .bims-hero__slide {
    background-image: linear-gradient(135deg, #004d2e 0%, #009355 50%, #1a5c3a 100%) !important;
    opacity: 1;
}

/* Announcements marquee below hero */
.bims-news-ticker .progress-bar {
    line-height: 40px;
}

.bims-news-ticker__text {
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 40px;
    font-weight: 600;
}

.bims-news-ticker__text .fa-circle {
    font-size: 8px;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .bims-hero {
        min-height: 85vh;
        max-height: none;
    }

    .bims-hero__content {
        padding: 100px 20px 88px;
    }

    .bims-hero__eyebrow {
        font-size: 13px;
        padding: 8px 16px;
        letter-spacing: 0.14em;
    }

    .bims-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .bims-hero__btn {
        width: 100%;
        max-width: 280px;
    }

    .bims-hero__scroll-hint {
        display: none;
    }

    .bims-news-ticker__text {
        font-size: 16px;
    }
}
