.ayu-department-hero {
    --department-accent: #BA1530;
    position: relative;
    isolation: isolate;
    color: #fff;
    background: linear-gradient(108deg, #0c1c35 0%, #152640 53%, #435064 100%);
}

.ayu-department-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 44%, rgba(255, 255, 255, .025) 44%, rgba(255, 255, 255, .025) 63%, transparent 63%);
}

.ayu-department-hero .carousel-item {
    padding: 78px 0 112px;
}

.ayu-department-hero__content {
    max-width: 920px;
    min-height: 290px;
    text-align: left;
}

.ayu-department-hero .ayu-department-hero__faculty {
    margin: 0 0 18px;
    color: #ff758b;
    font: 700 15px/1.5 "Segoe UI", Arial, sans-serif;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.ayu-department-hero .ayu-department-hero__title {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3.2vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-transform: none;
    text-align: left;
    text-wrap: wrap;
    overflow-wrap: anywhere;
}

.ayu-department-hero .ayu-department-hero__description {
    max-width: 660px;
    margin: 22px 0 0;
    color: #d8e0ec;
    font: 400 17px/1.7 "Segoe UI", Arial, sans-serif;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.ayu-department-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.ayu-department-hero__button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    min-height: 48px;
    padding: 13px 22px;
    border: 1px solid var(--department-accent);
    border-radius: 6px;
    color: #fff;
    background: var(--department-accent);
    font: 600 14px/1.5 "Segoe UI", Arial, sans-serif;
}
.ayu-department-hero__button:hover { background: #971128; border-color: #971128; color: #fff; }
.ayu-department-hero__button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.ayu-department-programmes { scroll-margin-top: 120px; }

.ayu-department-hero__button:disabled {
    opacity: 1;
    cursor: default;
}

.ayu-department-hero__button--outline {
    border-color: rgba(255, 255, 255, .4);
    background: transparent;
}

.ayu-department-metrics-wrap {
    position: relative;
    z-index: 2;
    margin-top: -46px;
}

.ayu-department-metrics {
    display: grid;
    grid-template-columns: repeat(var(--department-metric-count, 4), minmax(0, 1fr));
    margin: 0;
    padding: 12px 0;
    border: 1px solid #edf0f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 34, 57, .09);
}

.ayu-department-metrics__item {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 16px 30px;
}

.ayu-department-metrics__item + .ayu-department-metrics__item {
    border-left: 1px solid #edf0f4;
}

.ayu-department-metrics dt {
    color: #536174;
    font: 500 14px/1.5 "Segoe UI", Arial, sans-serif;
    overflow-wrap: anywhere;
}

.ayu-department-metrics dd {
    margin: 0;
    color: #ba1530;
    font: 700 clamp(28px, 2.2vw, 38px)/1.1 Georgia, "Times New Roman", serif;
    overflow-wrap: anywhere;
}

.ayu-department-metrics dd .ayu-department-metrics__suffix {
    font-size: .7em;
}

@media (max-width: 767px) {
    .ayu-department-hero .carousel-item { padding: 52px 0 94px; }
    .ayu-department-hero__content { min-height: 0; }
    .ayu-department-hero .ayu-department-hero__faculty { font-size: 12px; margin-bottom: 14px; }
    .ayu-department-hero .ayu-department-hero__description { font-size: 16px; }
    .ayu-department-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 14px; }
    .ayu-department-metrics__item { padding: 16px 20px; }
    .ayu-department-metrics__item:nth-child(odd) { border-left: 0; }
    .ayu-department-metrics__item:nth-child(n + 3) { border-top: 1px solid #edf0f4; }
    .ayu-department-metrics dt { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .ayu-department-hero .carousel-item { transition: none; }
}
/* Decorative media with a single administrator-controlled 0–85% overlay. */
.ayu-department-hero--media { overflow: hidden; }
.ayu-department-hero .ayu-department-hero__background,
.ayu-department-hero .ayu-department-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.ayu-department-hero__background { z-index: -3; }
.ayu-department-hero__video { z-index: -2; opacity: 0; }
.ayu-department-hero.is-video-ready .ayu-department-hero__video { opacity: 1; }
.ayu-department-hero--media::before { z-index: -1; background: rgba(0,0,0,var(--hero-overlay,.65)); }
.ayu-department-hero--media .ayu-department-hero__content {
    position: relative; z-index: 0; box-sizing: border-box; padding: 32px 80px 32px 32px; margin-left: -32px;
}
.ayu-department-hero--video .carousel-item { box-sizing: border-box; min-height: 620px; padding-top: 64px; padding-bottom: 110px; }
.ayu-department-hero--video .carousel-item.active { display: flex; align-items: center; }
.ayu-department-hero__pause { position: absolute; z-index: 4; right: 24px; bottom: 62px; display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; border: 1px solid #aeb8c6; border-radius: 50%; background: #0c1c35; color: #fff; cursor: pointer; }
.ayu-department-hero__pause svg { width: 22px; height: 22px; }
.ayu-department-hero__pause svg[hidden] { display: none; }
.ayu-department-hero__pause:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.ayu-department-hero__pause[hidden] { display: none; }
@media (max-width: 767px) {
    .ayu-department-hero--video .carousel-item { min-height: 0; padding: 52px 0 94px; }
    .ayu-department-hero--media .ayu-department-hero__content { width: 100%; margin-left: 0; padding: 24px; }
    .ayu-department-hero__video, .ayu-department-hero__pause { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ayu-department-hero__video, .ayu-department-hero__pause { display: none; } }
