/* Mindvision Design System — Component 001: Department Hero v1.0 */
.mv-department-hero,
.mv-department-hero *,
.mv-department-hero *::before,
.mv-department-hero *::after { box-sizing: border-box; }

.mv-department-hero {
    position: relative;
    min-height: 286px;
    overflow: hidden;
    background: #f4f5f5;
    --mv-department-accent: #12bbb7;
    --mv-hero-navy: var(--mv-navy, #27384a);
    --mv-hero-copy: var(--mv-copy, #58636e);
}

.mv-department-hero__shell {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.mv-department-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(500px, 1.25fr);
    min-height: 252px;
    align-items: stretch;
}

.mv-department-hero__copy {
    position: relative;
    z-index: 3;
    align-self: center;
    max-width: 520px;
    padding: 20px 0 34px;
}

.mv-department-hero__eyebrow {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
    color: var(--mv-department-accent);
    font-family: "Oswald", Arial, sans-serif;
    font-size: .73rem;
    font-weight: 400;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.mv-department-hero__title {
    max-width: 500px;
    margin: 0 0 13px;
    color: var(--mv-hero-navy);
    font-family: "Oswald", Arial, sans-serif;
    font-size: clamp(36px, 3vw, 48px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.04em;
    text-transform: uppercase;}

.mv-department-hero__title span { display: block;
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;}
.mv-department-hero__title-primary { color: var(--mv-hero-navy);
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;}
.mv-department-hero__title-secondary { color: var(--mv-department-accent);
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;}

.mv-department-hero__text {
    max-width: 470px;
    margin: 0 0 18px;
    color: var(--mv-hero-copy);
    font-family: "Poppins", Arial, sans-serif;
    font-size: .88rem;
    line-height: 1.62;
}

.mv-department-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mv-department-hero__button {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mv-department-hero__button:hover { transform: translateY(-2px); }
.mv-department-hero__button--primary {
    color: #fff;
    background: var(--mv-department-accent);
    box-shadow: 0 10px 22px rgba(15, 157, 161, .22);
}
.mv-department-hero__button--secondary {
    color: var(--mv-hero-navy);
    background: #fff;
    border-color: var(--mv-hero-navy);
}
.mv-department-hero__button svg { width: 15px; height: 15px; }

.mv-department-hero__visual {
    position: absolute;
    z-index: 0;
    top: -34px;
    right: calc((100vw - min(1280px, calc(100vw - 48px))) / -2);
    bottom: 0;
    left: 38%;
    min-height: 286px;
    overflow: hidden;
}

.mv-department-hero__visual::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, #f4f5f5 0%, rgba(244,245,245,.98) 8%, rgba(244,245,245,.84) 18%, rgba(244,245,245,.46) 32%, rgba(244,245,245,.12) 47%, rgba(244,245,245,0) 62%);
    pointer-events: none;
}

.mv-department-hero__visual img {
    width: 100%;
    height: 100%;
    min-height: 286px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 820px) {
    .mv-department-hero { min-height: 430px; }
    .mv-department-hero__shell { width: min(100% - 30px, 1280px); }
    .mv-department-hero__grid { display: block; min-height: 430px; }
    .mv-department-hero__copy { max-width: 78%; padding: 42px 0 36px; }
    .mv-department-hero__visual { right: -15px; left: 0; min-height: 430px; }
    .mv-department-hero__visual::before {
        background: linear-gradient(90deg, rgba(244,245,245,.99) 0%, rgba(244,245,245,.96) 55%, rgba(244,245,245,.76) 78%, rgba(244,245,245,.36) 100%);
    }
}

@media (max-width: 560px) {
    .mv-department-hero__copy { max-width: 92%; padding-top: 34px; }
    .mv-department-hero__title { font-size: clamp(29px, 9vw, 40px);
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;}
    .mv-department-hero__actions { align-items: stretch; flex-direction: column; }
    .mv-department-hero__button { width: 100%; }
}

/* Mindvision Editorial Hero v2.0 — shared Content Studio integration */
.mv-department-hero.mv-editorial-page-hero {
    margin-bottom: 0;
}

/* Preserve the same hero footprint when a purpose-specific page intentionally
   has no image (for example a policy or FAQ). */
.mv-department-hero--without-visual .mv-department-hero__grid {
    grid-template-columns: minmax(0, 1fr);
}
.mv-department-hero--without-visual .mv-department-hero__copy {
    max-width: 760px;
}

@media (max-width: 820px) {
    .mv-department-hero--without-visual,
    .mv-department-hero--without-visual .mv-department-hero__grid {
        min-height: 286px;
    }
}
