:root {
    --ink: #172033;
    --muted: #647086;
    --paper: #f6f8fb;
    --white: #ffffff;
    --red: #b5122b;
    --red-dark: #85142a;
    --teal: #0f9f9a;
    --gold: #f3aa21;
    --blue: #2454a6;
    --line: rgba(23, 32, 51, 0.12);
    --shadow: 0 24px 70px rgba(23, 32, 51, 0.16);
    --radius: 8px;
    --container: min(1180px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
}

body.protect-content main,
body.protect-content footer {
    user-select: none;
    -webkit-user-select: none;
}

input,
textarea,
select {
    user-select: text;
    -webkit-user-select: text;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

.fi {
    display: inline-flex;
    line-height: 1;
}

.skip-link {
    position: fixed;
    left: 18px;
    top: 12px;
    z-index: 1000;
    transform: translateY(-140%);
    background: var(--ink);
    color: var(--white);
    padding: 10px 14px;
    border-radius: var(--radius);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--white);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 18px 44px rgba(23, 32, 51, 0.14);
}

.top-strip {
    min-height: 38px;
    background: var(--ink);
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 8px 20px;
    font-size: 13px;
}

.top-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-shell {
    width: 100%;
    min-height: 82px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(20px, calc((100vw - 1180px) / 2));
    backdrop-filter: blur(18px);
}

.brand img {
    width: 54px;
    height: 62px;
    object-fit: contain;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-wordmark,
.footer-logo span {
    display: grid;
    line-height: 1.02;
}

.brand-wordmark strong,
.footer-logo strong {
    color: #103f88;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.brand-wordmark small,
.footer-logo small {
    color: #4c5566;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 14px;
}

.site-menu > a,
.menu-group > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: #29354a;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-menu > a:hover,
.menu-group:hover > a,
.site-menu [aria-current="page"] {
    color: var(--red);
    background: rgba(181, 18, 43, 0.08);
}

.menu-group {
    position: relative;
}

.course-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 330px;
    padding: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.menu-group:hover .course-dropdown,
.menu-group:focus-within .course-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.course-dropdown a {
    display: block;
    padding: 12px;
    border-radius: 6px;
    color: var(--ink);
}

.course-dropdown a:hover {
    background: var(--paper);
    color: var(--red);
}

.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: var(--radius);
    background: var(--red);
    color: var(--white);
    font-size: 22px;
}

.hero {
    position: relative;
    min-height: calc(100vh - 120px);
    color: var(--white);
    display: grid;
    align-items: center;
    padding: clamp(92px, 14vh, 150px) max(20px, calc((100vw - 1180px) / 2)) 90px;
    overflow: hidden;
}

.hero-video,
.hero-scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    object-fit: cover;
}

.hero-scrim {
    background:
        linear-gradient(90deg, rgba(13, 20, 36, 0.9), rgba(13, 20, 36, 0.56) 52%, rgba(13, 20, 36, 0.28)),
        linear-gradient(130deg, rgba(181, 18, 43, 0.52), transparent 44%);
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    right: -8vw;
    bottom: -110px;
    width: 45vw;
    height: 220px;
    background: var(--gold);
    transform: skewX(-18deg);
    opacity: 0.9;
}

.hero-content,
.hero-panel {
    position: relative;
    z-index: 1;
}

.hero-content {
    width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffcf5b;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.96;
    margin-bottom: 22px;
    max-width: 820px;
}

h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    margin-bottom: 18px;
}

h3 {
    font-size: 22px;
    line-height: 1.2;
}

.hero-lede {
    max-width: 690px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.hero-actions,
.form-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: var(--white);
    background: var(--red);
    box-shadow: 0 16px 35px rgba(181, 18, 43, 0.28);
}

.button.primary:hover {
    background: var(--red-dark);
}

.button.ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
}

.button.ghost.dark {
    color: var(--ink);
    border-color: var(--line);
    background: var(--white);
}

.hero-panel {
    position: absolute;
    right: max(20px, calc((100vw - 1180px) / 2));
    bottom: 70px;
    width: 280px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
}

.panel-label {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.metrics-band {
    width: var(--container);
    margin: -42px auto 0;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.metric {
    min-height: 136px;
    padding: 24px;
    border-right: 1px solid var(--line);
    display: grid;
    gap: 4px;
}

.metric:last-child {
    border-right: 0;
}

.metric i {
    color: var(--teal);
    font-size: 25px;
}

.metric strong {
    font-size: 26px;
    line-height: 1.1;
}

.metric span {
    color: var(--muted);
    font-weight: 700;
}

.section {
    width: var(--container);
    margin: 0 auto;
    padding: 96px 0;
}

.split-section,
.why-section,
.contact-section,
.course-detail-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: clamp(32px, 6vw, 76px);
    align-items: center;
}

.section-copy p,
.why-copy p,
.detail-main p,
.wide-card p {
    color: var(--muted);
    font-size: 17px;
}

.image-stack {
    position: relative;
    min-height: 470px;
}

.image-stack img,
.page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-stack img {
    position: absolute;
    inset: 0;
}

.image-note {
    position: absolute;
    left: 22px;
    bottom: 22px;
    width: min(310px, calc(100% - 44px));
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(23, 32, 51, 0.18);
}

.image-note i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--teal);
    color: var(--white);
}

.mission-section {
    width: 100%;
    background: var(--ink);
    color: var(--white);
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
}

.mission-section .section-heading,
.courses-section .section-heading,
.faq-section .section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.mission-section .section-kicker {
    color: #ffcf5b;
}

.value-grid,
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.value-card,
.wide-card {
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

.mission-section .value-card {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.value-card i,
.wide-card i {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: var(--radius);
    background: rgba(181, 18, 43, 0.1);
    color: var(--red);
    font-size: 25px;
}

.mission-section .value-card i {
    background: var(--gold);
    color: var(--ink);
}

.value-card p {
    color: inherit;
    opacity: 0.78;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(23, 32, 51, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.course-image {
    position: relative;
    aspect-ratio: 1.26;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.08);
}

.course-image span {
    position: absolute;
    left: 16px;
    top: 16px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--red);
    font-weight: 900;
    font-size: 13px;
}

.course-body {
    padding: 24px;
}

.course-body p {
    color: var(--teal);
    font-weight: 900;
    margin-bottom: 8px;
}

.course-body dl,
.course-summary dl {
    margin: 0;
}

.course-body dl div,
.course-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.course-body dt,
.course-summary dt {
    color: var(--muted);
    font-weight: 800;
}

.course-body dd,
.course-summary dd {
    margin: 0;
    text-align: right;
    font-weight: 900;
}

.course-body a {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-weight: 900;
}

.why-section {
    background: var(--white);
    width: 100%;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
}

.why-list {
    display: grid;
    gap: 14px;
}

.why-item {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    font-weight: 900;
    background: var(--paper);
}

.why-item i,
.check-list i {
    color: var(--teal);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 900;
    font-size: 18px;
}

.faq-item p {
    color: var(--muted);
    margin: 12px 0 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 90px max(20px, calc((100vw - 1180px) / 2));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: clamp(28px, 6vw, 70px);
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #f8f9fc 52%, #ecf6f5 100%);
}

.inner-hero,
.student-hero,
.contact-hero {
    min-height: 500px;
}

.page-hero-copy,
.page-hero-media,
.contact-cards {
    position: relative;
    z-index: 1;
}

.page-hero-copy p {
    color: var(--muted);
    font-size: 18px;
}

.page-hero-media {
    height: 390px;
}

.course-hero.care {
    background: linear-gradient(135deg, #fff 0%, #fff4f5 52%, #edf9f4 100%);
}

.course-hero.strategy {
    background: linear-gradient(135deg, #fff 0%, #eff6ff 54%, #fff7df 100%);
}

.course-hero.leadership {
    background: linear-gradient(135deg, #fff 0%, #f2f8ff 48%, #f4fbf8 100%);
}

.course-detail-section {
    align-items: start;
}

.detail-main {
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 46px);
    box-shadow: 0 18px 44px rgba(23, 32, 51, 0.08);
}

.detail-main h2 {
    font-size: 28px;
    margin-top: 34px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--muted);
    font-weight: 700;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-list span {
    padding: 10px 12px;
    background: rgba(15, 159, 154, 0.1);
    color: #087a76;
    border-radius: var(--radius);
    font-weight: 900;
}

.course-summary {
    position: sticky;
    top: 124px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.course-summary dt {
    color: rgba(255, 255, 255, 0.68);
}

.course-summary dl div {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.values-long {
    display: grid;
    gap: 18px;
}

.wide-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
}

.wide-card i {
    grid-row: span 2;
}

.value-grid.compact {
    grid-template-columns: 1fr;
}

.contact-cards {
    display: grid;
    gap: 14px;
}

.contact-cards div {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 18px 44px rgba(23, 32, 51, 0.08);
    font-weight: 800;
}

.contact-cards i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: var(--radius);
    background: var(--red);
    color: var(--white);
}

.enquiry-form,
.map-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 18px 44px rgba(23, 32, 51, 0.08);
}

.enquiry-form {
    display: grid;
    gap: 18px;
}

.enquiry-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 900;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(15, 159, 154, 0.2);
    border-color: var(--teal);
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

.form-message {
    border-radius: var(--radius);
    padding: 14px 16px;
    font-weight: 800;
}

.form-message.success {
    background: rgba(15, 159, 154, 0.12);
    color: #087a76;
}

.form-message.error {
    background: rgba(181, 18, 43, 0.1);
    color: var(--red);
}

.form-message p {
    margin: 0;
}

.map-panel {
    min-height: 390px;
    color: var(--white);
    background:
        linear-gradient(rgba(23, 32, 51, 0.82), rgba(23, 32, 51, 0.82)),
        url("../images/campus.jpg") center/cover;
    display: grid;
    align-content: end;
}

.map-panel > i {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--gold);
    color: var(--ink);
    font-size: 28px;
    margin-bottom: 18px;
}

.site-footer {
    position: relative;
    background: #111929;
    color: var(--white);
    padding: 58px max(20px, calc((100vw - 1180px) / 2)) 28px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    overflow: hidden;
}

.site-footer::before {
    content: "Monash Polytechnic College";
    position: absolute;
    inset: auto 0 16px;
    text-align: center;
    font-size: clamp(36px, 8vw, 120px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.035);
    pointer-events: none;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 10px 14px 10px 10px;
    margin-bottom: 18px;
}

.footer-logo img {
    width: 54px;
    height: 62px;
    object-fit: contain;
}

.site-footer h2 {
    font-size: 18px;
    margin-bottom: 14px;
}

.site-footer a,
.site-footer p {
    position: relative;
    z-index: 1;
    display: block;
    color: rgba(255, 255, 255, 0.74);
    margin: 0 0 9px;
}

.copyright {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.68);
}

.copy-alert {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 150;
    transform: translate(-50%, 22px);
    opacity: 0;
    pointer-events: none;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-alert.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

main::before {
    content: "Monash Polytechnic College";
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    display: grid;
    place-items: center;
    color: rgba(181, 18, 43, 0.035);
    font-size: clamp(34px, 8vw, 110px);
    font-weight: 900;
    transform: rotate(-18deg);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes lift {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-panel {
    animation: lift 4s ease-in-out infinite;
}

@media (max-width: 980px) {
    .top-strip {
        display: none;
    }

    .menu-button {
        display: grid;
        place-items: center;
    }

    .site-menu {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 94px;
        display: none;
        align-items: stretch;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 12px;
        box-shadow: var(--shadow);
    }

    .site-menu.is-open {
        display: grid;
    }

    .site-menu > a,
    .menu-group > a {
        justify-content: space-between;
        border-radius: var(--radius);
    }

    .course-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 0;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: var(--paper);
    }

    .hero {
        min-height: 760px;
        padding-top: 84px;
    }

    .hero-panel {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(100%, 360px);
        margin-top: 34px;
    }

    .metrics-band,
    .value-grid,
    .course-grid,
    .split-section,
    .why-section,
    .page-hero,
    .contact-section,
    .course-detail-section,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .metrics-band {
        margin-top: 0;
    }

    .metric {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .page-hero {
        padding-top: 70px;
    }

    .course-summary {
        position: static;
    }

    .site-footer {
        padding-bottom: 34px;
    }
}

@media (max-width: 640px) {
    :root {
        --container: min(100vw - 28px, 1180px);
    }

    .nav-shell {
        min-height: 76px;
        padding-inline: 14px;
    }

    .brand img {
        width: 46px;
        height: 54px;
    }

    .brand-wordmark strong {
        font-size: 19px;
    }

    .brand-wordmark small {
        font-size: 10px;
    }

    .site-menu {
        top: 84px;
        left: 14px;
        right: 14px;
    }

    .hero {
        min-height: 700px;
        padding-inline: 14px;
        padding-bottom: 48px;
    }

    .hero-actions,
    .form-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .section {
        padding: 70px 0;
    }

    .image-stack,
    .page-hero-media {
        min-height: 330px;
        height: 330px;
    }

    .wide-card {
        grid-template-columns: 1fr;
    }

    .copyright {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
