.education-header, .education-header *, .education-hero, .education-hero * { box-sizing: border-box; }
.education-header { position: relative; z-index: 10010; display: flex; align-items: center; justify-content: space-between; gap: 28px; width: 100%; min-height: 110px; padding: 24px max(5vw, calc((100vw - 1560px)/2)); background: #fff; font-family: Arial, Helvetica, sans-serif; }
.education-home .education-header { position: absolute; top: 0; left: 0; background: transparent; }
.education-logo { display: flex; align-items: center; flex: 0 0 230px; padding: 9px 18px; border-radius: 50px; background: white; }
.education-logo img { width: 100%; height: 42px; object-fit: contain; }
.education-navigation { display: flex; align-items: center; gap: 0; }
.education-menu { display: flex; align-items: center; gap: 26px; min-height: 57px; padding: 0 25px; border: 1px solid #dce3e3; border-radius: 40px; }
.education-navigation a, .education-dropdown summary { color: #214e46; font-size: 14px; font-weight: 600; text-transform: uppercase; white-space: nowrap; text-decoration: none; }
.education-home .education-menu { border-color: rgba(255,255,255,.25); background: rgba(0,50,65,.08); }
.education-home .education-menu > a, .education-home .education-dropdown summary { color: white; }
.education-navigation a:hover { opacity: .75; }
.education-phone { display: flex; align-items: center; justify-content: center; min-height: 55px; padding: 12px 25px; border-radius: 40px; color: #111 !important; background: white; }
.education-dropdown { position: relative; }
.education-dropdown summary { cursor: pointer; list-style: none; }
.education-dropdown summary::-webkit-details-marker { display: none; }
.education-dropdown summary::after { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 0 3px 12px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.education-dropdown > div { position: absolute; top: calc(100% + 20px); left: -20px; min-width: 200px; padding: 15px 20px; border-radius: 15px; background: white; box-shadow: 0 10px 30px #0002; }
.education-dropdown > div a { display: block; padding: 10px 0; font-size: 13px; }
.education-toggle { display: none; }
.education-home .site-container { padding-top: 0; }
.education-hero { position: relative; isolation: isolate; height: 100svh; min-height: 660px; max-height: 1100px; background: #214e46; color: white; overflow: hidden; font-family: Arial, Helvetica, sans-serif; }
.education-hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.education-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(0,20,25,.14) 0%,rgba(0,15,15,.18) 35%,rgba(0,15,10,.62) 100%); }
.education-hero-content { position: absolute; bottom: 12.5%; left: 0; width: 100%; padding: 0 max(5vw, calc((100vw - 1560px)/2)); display: grid; grid-template-columns: 1.65fr 1fr; align-items: end; gap: 8%; }
.education-hero h1 { margin: 0; max-width: 900px; color: white; font-family: inherit; font-size: clamp(42px,5.1vw,100px); font-weight: 600; line-height: 1.12; letter-spacing: -2.5px; }
.education-hero-action p { margin: 0 0 36px; max-width: 480px; color: white; font: 400 clamp(19px,1.45vw,28px)/1.45 Arial, sans-serif; text-align: left; }
.education-apply { display: inline-flex; align-items: center; gap: 17px; padding: 10px 27px 10px 11px; border-radius: 40px; background: white; color: #101820; text-decoration: none; text-transform: uppercase; font-size: 18px; font-weight: 600; }
.education-apply span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #305c51; color: white; font-size: 25px; font-weight: 400; }
.education-apply:hover { background: #e7eee7; color: #101820; }
.education-header a:focus-visible, .education-header button:focus-visible, .education-header summary:focus-visible, .education-apply:focus-visible { outline: 3px solid #b79755; outline-offset: 5px; }
@media (min-width: 768px) and (max-width: 1350px) { .education-header { padding-left: 4%; padding-right: 4%; gap: 15px; } .education-logo { flex-basis: 190px; } .education-menu { gap: 17px; padding: 0 18px; } .education-navigation a, .education-dropdown summary { font-size: 12px; } .education-phone { padding: 12px 16px; } }
@media (max-width: 767px) {
    .education-header, .education-home .education-header { position: relative; min-height: 80px; padding: 14px 20px; background: white; }
    .education-logo { flex: 0 1 205px; padding: 0; border-radius: 0; }
    .education-logo img { height: 48px; object-position: left center; }
    .education-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 12px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
    .education-toggle span { display: block; width: 20px; height: 2px; background: #305c51; transition: transform .2s; }
    .education-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
    .education-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
    .education-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 20px 24px; background: white; box-shadow: 0 15px 20px #0002; max-height: calc(100svh - 80px); overflow-y: auto; }
    .education-navigation.is-open { display: block; }
    .education-home .education-menu, .education-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; border-radius: 0; background: white; }
    .education-menu > a, .education-dropdown summary { display: block; padding: 13px 0; }
    .education-home .education-menu > a, .education-home .education-dropdown summary { color: #214e46; }
    .education-dropdown > div { position: static; padding: 0 16px 10px; box-shadow: none; }
    .education-phone { justify-content: flex-start; padding: 15px 0 0; border-top: 1px solid #e6eae6; border-radius: 0; }
    .education-hero { height: calc(100svh - 80px); min-height: 515px; max-height: 900px; }
    .education-hero-content { bottom: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: 0 20px; }
    .education-hero h1 { max-width: 540px; font-size: clamp(32px,7.9vw,67px); line-height: 1.18; letter-spacing: -.8px; }
    .education-hero-action p { margin: 0 0 20px; max-width: 490px; font-size: 19px; line-height: 1.45; }
    .education-apply { gap: 12px; padding: 8px 23px 8px 9px; font-size: 14px; }
    .education-apply span { width: 27px; height: 27px; font-size: 20px; }
}
@media (max-width: 480px) { .education-hero h1 { max-width: 315px; } .education-hero-content { gap: 28px; } .education-home ul.project-link-bg { display: none; } }
@media (prefers-reduced-motion: reduce) { .education-toggle span { transition: none; } }

.site-container:has(> .education-header) { padding-top: 0; }
.education-home ul.project-link-bg { display: none; }


/* Desktop and tablet share the reference's floating header and two-column hero. */
@media (min-width: 768px) {
    .education-header { min-height: 112px; padding: 32px 9%; gap: 24px; }
    .education-logo { flex-basis: 190px; padding: 5px 16px; }
    .education-logo img { height: 43px; }
    .education-menu { gap: clamp(28px, 3vw, 58px); min-height: 57px; padding: 0 28px; }
    .education-navigation a, .education-dropdown summary { font-size: clamp(12px, 1.1vw, 21px); }
    .education-phone { min-height: 55px; padding: 12px 28px; }
    .education-hero { height: 100svh; min-height: 520px; max-height: none; }
    .education-hero-content { bottom: 13%; padding: 0 9%; grid-template-columns: 1.65fr 1fr; gap: 12%; align-items: start; }
    .education-hero h1 { font-size: clamp(42px, 5.5vw, 106px); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; }
    .education-hero-action p { font-size: clamp(16px, 1.45vw, 28px); line-height: 1.45; margin-bottom: clamp(22px, 2.2vw, 42px); }
    .education-apply { font-size: clamp(14px, 1.1vw, 21px); }
}
@media (min-width: 768px) and (max-width: 1350px) {
    .education-header { padding: 24px 4%; gap: 16px; }
    .education-logo { flex-basis: 170px; padding: 7px 12px; }
    .education-menu { gap: 25px; padding: 0 24px; }
    .education-navigation a, .education-dropdown summary { font-size: 12px; }
    .education-phone { padding: 12px 17px; }
    .education-hero-content { padding: 0 7%; gap: 9%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .education-header { padding: 22px 3%; gap: 12px; min-height: 94px; }
    .education-logo { flex-basis: 140px; padding: 5px 10px; }
    .education-logo img { height: 36px; }
    .education-menu { gap: 18px; min-height: 46px; padding: 0 18px; }
    .education-navigation a, .education-dropdown summary { font-size: 10px; }
    .education-phone { min-height: 46px; padding: 10px 13px; }
    .education-dropdown summary::after { width: 6px; height: 6px; margin-left: 7px; }
    .education-hero-content { padding: 0 6%; gap: 7%; grid-template-columns: 1.5fr 1fr; }
    .education-apply { gap: 10px; padding: 8px 20px 8px 9px; }
    .education-apply span { width: 29px; height: 29px; font-size: 21px; }
}


@media (min-width: 768px) {
    /* Match the visible top of both text columns, accounting for font leading. */
    .education-hero h1 { margin-top: -.08em; }
}



/* Keep the headline on exactly two lines at every screen width. */
.education-hero h1 span { display: block; white-space: nowrap; }
@media (min-width: 768px) {
    .education-hero h1 { font-size: clamp(32px, calc(4.35vw + 2px), 88px); }
}
@media (max-width: 767px) {
    .education-hero h1 { font-size: clamp(26px, calc(8.1vw + 2px), 62px); max-width: 100%; }
}


.education-apply span svg { display: block; width: 19px; height: 19px; flex-shrink: 0; }

/* Enlarge the artwork without changing the logo pill's dimensions. */
.education-logo img { transform: scale(1.25); transform-origin: center; }
@media (max-width: 767px) {
    .education-logo img { transform-origin: left center; }
}

/* Wider logo pill, keeping its existing height. */
@media (min-width: 1351px) {
    .education-logo { flex-basis: 230px; }
}
@media (min-width: 1024px) and (max-width: 1350px) {
    .education-logo { flex-basis: 205px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .education-logo { flex-basis: 170px; }
}

/* Reduce the displayed logo width by 2px after the existing 1.25 scale. */
.education-logo img { width: calc(100% - 1.6px); margin-inline: .8px; }

/* Add space around the artwork without enlarging it with the pill. */
@media (min-width: 1351px) {
    .education-logo { flex-basis: 250px; padding-inline: 26px; }
}
@media (min-width: 1024px) and (max-width: 1350px) {
    .education-logo { flex-basis: 225px; padding-inline: 22px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .education-logo { flex-basis: 190px; padding-inline: 20px; }
}
.education-logo img { width: calc(100% - 3.2px); margin-inline: 1.6px; }

/* Smaller artwork in the mobile header only. */
@media (max-width: 767px) {
    .education-logo img { transform: scale(.8); }
}



/* Floating mobile logo and menu controls over the hero. */
@media (max-width: 767px) {
    .education-header, .education-home .education-header { background: transparent; }
    .education-home .education-header { position: absolute; top: 0; left: 0; }
    .education-logo { background: #fff; border-radius: 40px; padding: 0 12px; }
    .education-toggle { background: #fff; border-radius: 50%; flex-shrink: 0; }
    .education-home .education-hero { height: 100svh; min-height: 595px; }
}

/* Fit the mobile pill to the reduced logo instead of reserving scaled-out space. */
@media (max-width: 767px) {
    .education-logo { flex: 0 1 172px; padding: 0 10px; }
    .education-logo img { width: 100%; height: 48px; margin-inline: 0; transform: none; }
}
