:is(.portal-page, .staff-page, .infrastructure-page) .student-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    min-height: clamp(270px, 25vw, 370px);
    padding: clamp(26px, 4.2vw, 64px);
    margin-bottom: 24px;
    border: 1px solid #d7e4f0;
    border-radius: 16px;
    background: #edf5fc;
}

.student-hero .student-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 58%;
    border-radius: 0;
}

.student-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, #edf5fc 0%, #edf5fce8 28%, #edf5fc90 47%, transparent 68%);
}

@media (min-width: 1000px) {
    .first-year-hero::after {
        background: linear-gradient(90deg, #edf5fc9c 0%, #edf5fc46 25%, transparent 52%);
    }
}

.student-hero-copy > p:first-child,
.student-hero-copy > p:last-child { margin: 0; }
.student-hero-copy > p:last-child { max-width: 29rem; color: #375773; }

.campus-topic-hero .student-hero-copy > .staff-lead { max-width: 34rem; }
.campus-safety-hero .student-hero-image { object-position: center 27%; }

[aria-labelledby="upbringing-support"] > .portal-grid + p {
    margin-block-start: clamp(16px, 2vw, 24px);
}

.upbringing-contacts .portal-contact {
    display: grid;
    grid-template-columns: clamp(96px, 11vw, 152px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(14px, 1.8vw, 24px);
    padding: clamp(16px, 1.9vw, 25px);
}

.upbringing-contact-photo {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    background: #e9edf2;
}

.upbringing-contact-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upbringing-contact-info {
    display: grid;
    gap: 8px;
    align-self: center;
}

.upbringing-contact-info h3 {
    margin: 0;
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.3;
}

.upbringing-contact-info p { margin: 0; }

.student-training .portal-strip {
    margin: 0;
    padding: clamp(22px, 3.6vw, 50px);
    gap: clamp(18px, 3vw, 44px);
}

.student-training .portal-strip h3 {
    margin: 0 0 13px;
    color: #fff;
    font-size: clamp(22px, 2.5vw, 32px);
    line-height: 1.2;
    text-transform: none;
}

.student-training .portal-strip p {
    font-size: 16px;
    line-height: 1.65;
}

.student-training .portal-strip p + p { margin-top: 12px; }
.student-training .button { justify-self: start; }
.student-groups .portal-card h3 { text-transform: none; }
.student-groups .portal-card > .student-group-arrow {
    align-self: flex-end;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 640px) {
    :is(.portal-page, .staff-page, .infrastructure-page) .student-hero {
        min-height: 0;
        padding: 24px 20px clamp(130px, 37vw, 210px);
    }

    .student-hero .student-hero-image {
        inset: auto 0 0;
        height: 62%;
        object-position: 65% 62%;
    }

    .student-hero::after {
        background: linear-gradient(180deg, #edf5fc 36%, #edf5fce8 48%, transparent 75%);
    }

    .staff-page .campus-topic-hero h1 {
        font-size: clamp(18px, 7vw, 32px);
    }

    .campus-topic-hero::after {
        background: linear-gradient(to top, transparent 60px, #edf5fc calc(clamp(130px, 37vw, 210px) + 8px));
    }

    .campus-topic-hero .student-hero-image { object-position: right 62%; }

    .campus-safety-hero .student-hero-image {
        inset: auto 0 0 auto;
        width: 135%;
        max-width: none;
        height: calc(clamp(130px, 37vw, 210px) + 15px);
        object-position: right top;
    }

    .infra-intro.student-hero .student-hero-image {
        height: 47%;
    }

    .infra-intro.student-hero::after {
        background: linear-gradient(180deg, #edf5fc 52%, #edf5fce8 62%, transparent 78%);
    }
}
