/* ==========================================================
   HOME - INSTITUTE MARQUEE
   Header styling matched exactly to the supplied FAQ CSS
========================================================== */

.mc-institute-marquee {
    position: relative;
    overflow: hidden;
    padding: 4px 0 34px;
    background: transparent;
}

.mc-institute-marquee-head {
    position: relative;
    max-width: 820px;
    margin: 0 auto 26px;
    text-align: center;
}

/* ==========================================================
   EDITORIAL EYEBROW
========================================================== */

.mc-institute-marquee-head .mc-home-section-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 10px;
    gap: 18px;
}

/* ==========================================================
   EYEBROW TEXT
========================================================== */

.mc-institute-marquee-head .mc-home-section-eyebrow {
    flex-shrink: 0;
    color: #B98C14;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .17em;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

/* ==========================================================
   EYEBROW LINES
========================================================== */

.mc-institute-marquee-head .mc-home-section-eyebrow::before,
.mc-institute-marquee-head .mc-home-section-eyebrow::after {
    content: "";
    flex: 1;
    height: 2px;
}

/* LEFT GOLD LINE */

.mc-institute-marquee-head .mc-home-section-eyebrow::before {
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(212,175,55,.20) 15%,
            rgba(212,175,55,.55) 55%,
            rgba(212,175,55,.95) 100%
        );
}

/* RIGHT GOLD LINE */

.mc-institute-marquee-head .mc-home-section-eyebrow::after {
    background:
        linear-gradient(
            90deg,
            rgba(212,175,55,.95) 0%,
            rgba(212,175,55,.55) 45%,
            rgba(212,175,55,.20) 85%,
            transparent 100%
        );
}

/* ==========================================================
   TITLE
========================================================== */

.mc-institute-marquee-head h2 {
    margin: 0;
    color: #0A1946;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.7px;
}

/* Entire institute heading stays navy blue */

.mc-institute-marquee-head h2 span {
    color: #0A1946;
}

/* ==========================================================
   DESCRIPTION
========================================================== */

.mc-institute-marquee-head p {
    max-width: 640px;
    margin: 6px auto 0;
    color: #52627A;
    font-size: .9rem;
    line-height: 1.45;
}

/* ==========================================================
   INSTITUTE MARQUEE
========================================================== */

.mc-institute-track-wrap {
    width: 100%;
    overflow: hidden;
    padding: 7px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.mc-institute-track {
    display: flex;
    width: max-content;
    gap: 12px;
    will-change: transform;
}

.mc-institute-track-ltr {
    animation: mcInstituteLTR 78s linear infinite;
}

.mc-institute-track-rtl {
    animation: mcInstituteRTL 84s linear infinite;
}

.mc-institute-track-slower {
    animation-duration: 94s;
}

.mc-institute-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid rgba(10,25,70,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: #0A1946;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 7px 20px rgba(10,25,70,.045);
}

@keyframes mcInstituteLTR {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@keyframes mcInstituteRTL {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {
    .mc-institute-marquee {
        padding: 34px 0 40px;
    }

    .mc-institute-marquee-head {
        padding: 0 14px;
    }

    .mc-institute-marquee-head .mc-home-section-eyebrow {
        gap: 10px;
    }

    .mc-institute-marquee-head .mc-home-section-eyebrow {
        font-size: .62rem;
        letter-spacing: .11em;
    }

    .mc-institute-marquee-head .mc-home-section-eyebrow::before,
    .mc-institute-marquee-head .mc-home-section-eyebrow::after {
        height: 1px;
    }

    .mc-institute-marquee-head h2 {
        font-size: 1.8rem;
        letter-spacing: -.4px;
    }

    .mc-institute-marquee-head p {
        font-size: .84rem;
    }

    .mc-institute-pill {
        min-height: 36px;
        padding: 8px 13px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-institute-track {
        animation: none;
        transform: none;
    }
}