:root {
    --blue-950: #071d3b;
    --blue-900: #0a2850;
    --blue-800: #0e3a70;
    --blue-700: #12539a;
    --blue-600: #1769ba;
    --blue-100: #e7f1fb;
    --blue-50: #f3f8fd;
    --orange-600: #d95d0b;
    --orange-500: #ed731d;
    --orange-100: #ffeadb;
    --ink: #14243a;
    --muted: #526176;
    --line: #dce4ed;
    --surface: #ffffff;
    --surface-muted: #f6f8fb;
    --shadow-sm: 0 4px 8px rgba(7, 29, 59, 0.1);
    --shadow-md: 0 10px 30px rgba(7, 29, 59, 0.13);
    --radius-sm: 8px;
    --radius-md: 14px;
    --header-height: 78px;
    --container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--surface);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid #ffb477;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1200;
    padding: 10px 16px;
    color: #fff;
    background: var(--blue-950);
    border-radius: var(--radius-sm);
    transform: translateY(-150%);
}

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

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: clamp(72px, 8vw, 112px);
    scroll-margin-top: var(--header-height);
}

.section-fit {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(40px, 5vh, 72px);
    box-sizing: border-box;
}

.section-fit > .container {
    width: 100%;
}

.section-muted {
    background: var(--surface-muted);
}

.section-blue {
    color: #fff;
    background: var(--blue-900);
}

.section-heading {
    max-width: 720px;
    margin-bottom: clamp(34px, 5vw, 58px);
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.split-heading h2 {
    margin: 0 0 14px;
    color: var(--blue-950);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.section-blue .section-heading h2 {
    color: #fff;
}

.section-heading p,
.split-heading p {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    text-wrap: pretty;
}

.section-blue .section-heading p {
    color: #c7d8ea;
}

.section-rule {
    display: block;
    width: 58px;
    height: 4px;
    margin-bottom: 20px;
    background: var(--orange-500);
    border-radius: 999px;
}

.icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 800;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(220, 228, 237, 0.9);
}

.site-nav {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 12px;
    color: var(--blue-950);
    text-decoration: none;
}

.brand-logo {
    width: 52px;
    height: 52px;
    padding: 3px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.brand-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.brand-place {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 11px;
    align-items: center;
    color: #314257;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--blue-700);
    background: var(--blue-50);
}

.login-link {
    margin-left: 8px;
    color: #fff;
    background: var(--blue-700);
}

.login-link:hover,
.login-link:focus-visible {
    color: #fff;
    background: var(--blue-800);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    color: var(--blue-950);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle-lines {
    position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    position: absolute;
    left: 0;
    content: "";
}

.nav-toggle-lines::before {
    top: -6px;
}

.nav-toggle-lines::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

.hero {
    position: relative;
    display: grid;
    min-height: min(820px, calc(100svh - var(--header-height)));
    padding-block: clamp(88px, 13vw, 150px) 130px;
    align-items: end;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: var(--blue-950);
}

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

.hero-image {
    z-index: -2;
    object-fit: cover;
    object-position: center 50%;
    scale: 1.015;
    animation: hero-settle 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-overlay {
    z-index: -1;
    background: rgba(3, 19, 39, 0.64);
}

.hero-content {
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 8px 14px;
    align-items: center;
    gap: 9px;
    color: #fff;
    background: rgba(7, 29, 59, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-badge::before {
    width: 8px;
    height: 8px;
    background: var(--orange-500);
    border-radius: 50%;
    content: "";
}

.hero h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(3.4rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-wrap: balance;
}

.hero-subheading {
    max-width: 760px;
    margin: 24px 0 0;
    color: #f4f7fb;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.hero-address {
    display: flex;
    max-width: 680px;
    margin-top: 23px;
    align-items: flex-start;
    gap: 10px;
    color: #dce8f4;
    font-size: 0.98rem;
    line-height: 1.55;
}

.hero-address .icon {
    margin-top: 2px;
    color: #ff9a55;
}

.hero-actions {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 11px 20px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 2px solid transparent;
    border-radius: 9px;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
    color: #fff;
    background: var(--orange-600);
}

.button-primary:hover {
    color: #fff;
    background: #bd4e06;
}

.button-secondary {
    color: #fff;
    background: rgba(7, 29, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.68);
}

.button-secondary:hover {
    color: #fff;
    background: var(--blue-900);
    border-color: #fff;
}

.button-blue {
    color: #fff;
    background: var(--blue-700);
}

.button-blue:hover {
    color: #fff;
    background: var(--blue-800);
}

.stats-wrap {
    position: relative;
    z-index: 3;
    margin-top: -56px;
}

.stats-grid {
    display: grid;
    overflow: hidden;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
}

.stat-item {
    display: flex;
    min-height: 118px;
    padding: 24px;
    align-items: center;
    gap: 16px;
}

.stat-item + .stat-item {
    border-left: 1px solid var(--line);
}

.stat-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--orange-600);
    background: var(--orange-100);
    border-radius: 50%;
}

.stat-number {
    display: block;
    color: var(--blue-900);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.about-grid {
    display: grid;
    align-items: center;
    gap: clamp(36px, 7vw, 84px);
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.about-image-wrap {
    position: relative;
    padding: 0 24px 24px 0;
}

.about-image-wrap::after {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 52%;
    height: 58%;
    background: var(--orange-500);
    border-radius: 0 0 var(--radius-md) 0;
    content: "";
}

.about-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.about-copy h2 {
    margin: 0 0 24px;
    color: var(--blue-950);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.about-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.06rem;
    text-wrap: pretty;
}

.about-signature {
    display: flex;
    margin-top: 30px;
    padding-top: 22px;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--line);
    color: var(--blue-800);
    font-weight: 800;
}

.profile-grid {
    display: grid;
    overflow: hidden;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.profile-item {
    display: grid;
    min-width: 0;
    padding: 24px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.profile-item:nth-child(3),
.profile-item:nth-child(6),
.profile-item:nth-child(8),
.profile-item:nth-child(10),
.profile-item:nth-child(13) {
    border-right: 0;
}

.profile-item:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.profile-item.wide {
    grid-column: span 2;
}

.profile-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--blue-700);
    background: var(--blue-100);
    border-radius: 9px;
}

.profile-icon .icon {
    width: 19px;
    height: 19px;
}

.profile-label {
    display: block;
    margin-bottom: 5px;
    color: #68758a;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.3;
    text-transform: uppercase;
}

.profile-value {
    display: block;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
}

.profile-value a {
    color: var(--blue-700);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.students-layout {
    display: grid;
    align-items: end;
    gap: clamp(36px, 7vw, 88px);
    grid-template-columns: 0.8fr 1.2fr;
}

.student-total {
    margin-top: 28px;
    color: #fff;
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.student-total span {
    display: block;
    margin-top: 13px;
    color: #c7d8ea;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.rombel-total {
    display: inline-flex;
    margin-top: 26px;
    padding: 11px 15px;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 700;
}

.grade-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.grade-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.grade-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.grade-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.grade-name {
    font-size: 1.1rem;
    font-weight: 800;
}

.grade-count {
    color: #ffb37d;
    font-weight: 800;
}

.grade-track {
    height: 7px;
    margin-top: 13px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 999px;
}

.grade-fill {
    display: block;
    height: 100%;
    background: var(--orange-500);
    border-radius: inherit;
}

.vision-grid {
    display: grid;
    align-items: start;
    gap: clamp(34px, 6vw, 72px);
    grid-template-columns: 0.85fr 1.15fr;
}

.vision-card {
    position: sticky;
    top: calc(var(--header-height) + 26px);
    padding: clamp(30px, 5vw, 52px);
    color: #fff;
    background: var(--blue-800);
    border-radius: var(--radius-md);
}

.vision-card .icon {
    width: 36px;
    height: 36px;
    margin-bottom: 24px;
    color: #ffad72;
}

.vision-card h3,
.mission-wrap h3 {
    margin: 0 0 18px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
}

.vision-card blockquote {
    margin: 0;
    font-size: clamp(1.18rem, 2.3vw, 1.55rem);
    font-weight: 600;
    line-height: 1.6;
    text-wrap: pretty;
}

.mission-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0;
    list-style: none;
}

.mission-item {
    display: grid;
    padding: 20px 0;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.mission-item:first-child {
    border-top: 1px solid var(--line);
}

.mission-number {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--blue-800);
    background: var(--blue-100);
    border-radius: 50%;
    font-weight: 800;
}

.mission-item p {
    margin: 3px 0 0;
    color: #405067;
    line-height: 1.65;
}

.legal-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, 1fr);
}

.legal-card {
    display: grid;
    padding: clamp(26px, 4vw, 40px);
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: transform 200ms ease, border-color 200ms ease;
}

.legal-card:hover {
    border-color: #9cbcdf;
    transform: translateY(-4px);
}

.legal-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    background: var(--blue-700);
    border-radius: 12px;
}

.legal-card h3 {
    margin: 0 0 16px;
    color: var(--blue-950);
    font-size: 1.35rem;
}

.legal-meta {
    display: grid;
    margin: 0;
    gap: 10px;
}

.legal-meta div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
}

.legal-meta dt {
    color: var(--muted);
    font-size: 0.87rem;
    font-weight: 700;
}

.legal-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 800;
}

.facility-layout {
    display: grid;
    align-items: center;
    gap: clamp(38px, 7vw, 84px);
    grid-template-columns: 0.83fr 1.17fr;
}

.facility-list {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.facility-item {
    display: flex;
    padding: 17px 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.facility-name {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
}

.facility-name .icon {
    color: var(--blue-700);
}

.facility-value {
    color: var(--blue-950);
    font-weight: 800;
    text-align: right;
}

.facility-value.unavailable {
    color: #934211;
}

.facility-images {
    display: grid;
    min-height: 520px;
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.facility-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.facility-image:first-child {
    grid-row: span 2;
}

.facility-image:hover {
    transform: scale(1.015);
}

.organization-layout {
    display: grid;
    align-items: center;
    gap: clamp(32px, 6vw, 70px);
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.organization-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
}

.organization-button img {
    width: 100%;
    height: auto;
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.organization-button:hover img {
    transform: scale(1.02);
}

.zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    padding: 9px 13px;
    align-items: center;
    gap: 7px;
    color: #fff;
    background: rgba(7, 29, 59, 0.9);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.organization-copy h2 {
    margin: 0 0 20px;
    color: var(--blue-950);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-wrap: balance;
}

.organization-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    text-wrap: pretty;
}

.gallery-grid {
    column-count: 3;
    column-gap: 18px;
}

.gallery-item {
    margin: 0 0 18px;
    overflow: hidden;
    break-inside: avoid;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.gallery-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #dfe8f1;
    border: 0;
    cursor: zoom-in;
}

.gallery-button img {
    width: 100%;
    height: auto;
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.gallery-button::after {
    position: absolute;
    inset: 0;
    background: rgba(7, 29, 59, 0);
    content: "";
    transition: background-color 220ms ease;
}

.gallery-button:hover img {
    transform: scale(1.035);
}

.gallery-button:hover::after {
    background: rgba(7, 29, 59, 0.12);
}

.gallery-caption {
    margin: 0;
    padding: 14px 16px 16px;
    color: var(--blue-950);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.4;
}

.leaders-grid {
    display: grid;
    max-width: 820px;
    margin-inline: auto;
    gap: 22px;
    grid-template-columns: repeat(2, 1fr);
}

.leader {
    display: flex;
    padding: 28px;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-bottom: 3px solid var(--orange-500);
    border-radius: 12px 12px 4px 4px;
    box-shadow: var(--shadow-sm);
    transition: transform 200ms ease;
}

.leader:hover {
    transform: translateY(-4px);
}

.leader-avatar {
    display: grid;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--blue-700);
    background: var(--blue-100);
    border-radius: 50%;
}

.leader-avatar .icon {
    width: 28px;
    height: 28px;
}

.leader-role {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.leader-name {
    display: block;
    margin-top: 3px;
    color: var(--blue-950);
    font-size: 1.2rem;
    font-weight: 800;
}

.contact-section {
    padding-block: clamp(72px, 9vw, 118px);
    color: #fff;
    background: var(--blue-900);
}

.contact-grid {
    display: grid;
    align-items: center;
    gap: clamp(38px, 8vw, 100px);
    grid-template-columns: 1fr 0.85fr;
}

.contact-copy h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    text-wrap: balance;
}

.contact-copy > p {
    max-width: 560px;
    margin: 0;
    color: #c7d8ea;
    font-size: 1.08rem;
}

.contact-list {
    display: grid;
    margin: 30px 0 0;
    padding: 0;
    gap: 17px;
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: #edf4fa;
}

.contact-item .icon {
    margin-top: 3px;
    color: #ff9a55;
}

.contact-item a {
    overflow-wrap: anywhere;
    text-underline-offset: 4px;
}

.contact-panel {
    padding: clamp(26px, 4vw, 42px);
    color: var(--ink);
    background: #fff;
    border-radius: var(--radius-md);
}

.contact-panel h3 {
    margin: 0 0 8px;
    color: var(--blue-950);
    font-size: 1.55rem;
}

.contact-panel p {
    margin: 0 0 24px;
    color: var(--muted);
}

.contact-actions {
    display: grid;
    gap: 12px;
}

.site-footer {
    padding-block: 54px 24px;
    color: #c7d2df;
    background: #04152c;
}

.footer-main {
    display: grid;
    padding-bottom: 38px;
    align-items: start;
    gap: 38px;
    grid-template-columns: 1.2fr 0.8fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo {
    width: 58px;
    height: 58px;
    padding: 3px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
}

.footer-school-name {
    display: block;
    margin: 2px 0 8px;
    color: #fff;
    font-size: 1.25rem;
}

.footer-brand p {
    max-width: 590px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-email {
    display: inline-block;
    margin-top: 8px;
    color: #fff;
    text-underline-offset: 3px;
}

.footer-nav {
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
}

.footer-nav a {
    color: #e8eef5;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #ff9a55;
}

.footer-bottom {
    display: flex;
    padding-top: 22px;
    justify-content: space-between;
    gap: 20px;
    color: #9daec0;
    font-size: 0.82rem;
}

.lightbox {
    width: min(94vw, 1180px);
    max-width: none;
    max-height: 92vh;
    margin: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

.lightbox::backdrop {
    background: rgba(2, 12, 25, 0.88);
}

.lightbox-inner {
    position: relative;
    display: grid;
    max-height: 92vh;
    place-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(92vh - 60px);
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.lightbox-caption {
    margin: 10px 48px 0;
    color: #fff;
    font-size: 0.93rem;
    font-weight: 700;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -18px;
    right: -12px;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: var(--blue-950);
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.reveal {
    opacity: 0.86;
    transform: translateY(10px);
    transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes hero-settle {
    from {
        opacity: 0.7;
        scale: 1.045;
    }
    to {
        opacity: 1;
        scale: 1.015;
    }
}

@media (max-width: 1120px) {
    .nav-toggle {
        display: grid;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: grid;
        max-height: calc(100svh - var(--header-height));
        padding: 16px 20px 24px;
        overflow-y: auto;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 260ms;
    }

    .nav-links.is-open {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        min-height: 48px;
        padding-inline: 14px;
    }

    .login-link {
        margin: 8px 0 0;
        justify-content: center;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-item.wide {
        grid-column: auto;
    }

    .profile-item:nth-child(3),
    .profile-item:nth-child(6),
    .profile-item:nth-child(8),
    .profile-item:nth-child(10),
    .profile-item:nth-child(13) {
        border-right: 1px solid var(--line);
    }

    .profile-item:nth-child(2n) {
        border-right: 0;
    }

    .profile-item:nth-last-child(-n + 3) {
        border-bottom: 1px solid var(--line);
    }

    .profile-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(3) {
        border-left: 0;
    }

    .stat-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .about-grid,
    .students-layout,
    .vision-grid,
    .facility-layout,
    .organization-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-copy {
        max-width: 690px;
    }

    .vision-card {
        position: static;
    }

    .facility-images {
        min-height: 450px;
    }

    .organization-copy {
        grid-row: 1;
    }

    .gallery-grid {
        column-count: 2;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 70px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .section {
        padding-block: 68px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .brand-place {
        font-size: 0.68rem;
    }

    .hero {
        min-height: 700px;
        padding-block: 78px 112px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 17vw, 4.3rem);
    }

    .hero-subheading {
        font-size: 1rem;
    }

    .hero-address {
        font-size: 0.9rem;
    }

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

    .stats-wrap {
        margin-top: -44px;
    }

    .stat-item {
        min-height: 108px;
        padding: 18px 14px;
        gap: 11px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon .icon {
        width: 19px;
        height: 19px;
    }

    .stat-number {
        font-size: 1.55rem;
    }

    .stat-label {
        font-size: 0.74rem;
    }

    .about-image-wrap {
        padding: 0 14px 14px 0;
    }

    .profile-grid,
    .legal-grid,
    .leaders-grid {
        grid-template-columns: 1fr;
    }

    .profile-item,
    .profile-item.wide {
        grid-column: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .profile-item:nth-child(2n),
    .profile-item:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .profile-item:last-child {
        border-bottom: 0;
    }

    .legal-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 15px;
    }

    .legal-icon {
        width: 48px;
        height: 48px;
    }

    .legal-meta div {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .facility-images {
        min-height: 540px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1.25fr 0.75fr;
    }

    .facility-image:first-child {
        grid-row: auto;
        grid-column: span 2;
    }

    .gallery-grid {
        column-count: 1;
    }

    .leader {
        padding: 22px;
    }

    .footer-brand {
        display: grid;
    }

    .footer-bottom {
        display: grid;
    }

    .lightbox-close {
        top: -14px;
        right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::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;
    }
}
