:root {
    --navy: #0b2a5b;
    --navy-dark: #071c3d;
    --navy-mid: #143a73;
    --red: #c8102e;
    --red-dark: #9a0c23;
    --gold: #c9a227;
    --gold-soft: #e8d48b;
    --cream: #f7f4ee;
    --paper: #fffdf8;
    --ink: #1a1f2e;
    --muted: #5b6475;
    --line: #e4ddd0;
    --white: #ffffff;
    --shadow: 0 12px 32px rgba(11, 42, 91, 0.12);
    --radius: 14px;
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 17px;
}

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

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--red);
}

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

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    background: var(--red);
    color: #fff;
    padding: 10px 16px;
    z-index: 10000;
}

.skip-link:focus {
    top: 12px;
}

.topbar {
    background: var(--navy-dark);
    color: #fff;
    font-size: 14px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 42px;
    flex-wrap: wrap;
}

.topbar a {
    color: #fff;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.tb-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.tb-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-left .tb-icon {
    color: var(--gold-soft);
}

.topbar-right a.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--red);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.topbar-right a.btn-mini.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(11, 42, 91, 0.08);
}

.header-inner {
    width: min(1320px, calc(100% - 40px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 88px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

.brand img {
    height: 92px;
    width: auto;
    max-width: 206%;
}

.nav-toggle {
    display: none;
    background: var(--navy);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-item > a,
.nav-item > button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    white-space: nowrap;
    font-weight: 650;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.nav-item > a:hover,
.nav-item > button:hover,
.nav-item.active > a,
.nav-item.active > button {
    color: var(--red);
}

.dropdown {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-top: 3px solid var(--red);
    box-shadow: var(--shadow);
    padding: 10px 0;
    display: none;
    z-index: 20;
}

@media (min-width: 1281px) {
    .nav-item:hover .dropdown,
    .nav-item:focus-within .dropdown {
        display: block;
    }
}

.dropdown a {
    display: block;
    padding: 10px 18px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}

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

.hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    align-items: end;
    color: #fff;
    overflow: hidden;
    background: var(--navy-dark) center/cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 28, 61, 0.88) 0%, rgba(7, 28, 61, 0.55) 52%, rgba(200, 16, 46, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 90px 0 70px;
    max-width: 760px;
}

.hero-slider {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background: var(--navy-dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .hero-content > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active .hero-content > * {
    opacity: 1;
    transform: none;
}

.hero-slide.is-active .hero-content > :nth-child(2) { transition-delay: 0.1s; }
.hero-slide.is-active .hero-content > :nth-child(3) { transition-delay: 0.2s; }
.hero-slide.is-active .hero-content > :nth-child(4) { transition-delay: 0.3s; }

.hero-slide .hero-content {
    padding-bottom: 100px;
}

.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    pointer-events: none;
}

.hero-controls > * {
    pointer-events: auto;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(7, 28, 61, 0.35);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
    background: var(--red);
    border-color: var(--red);
}

.hero-arrow svg {
    width: 20px;
    height: 20px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--gold-soft);
}

@media (max-width: 768px) {
    .brand img {
        height: auto;
        width: min(280px, calc(100vw - 120px));
        max-width: none;
    }

    .hero-slide .hero-content {
        padding-bottom: 100px;
    }

    .hero-controls {
        justify-content: center;
        bottom: 28px;
    }

    .hero-arrow {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .leader-text.reveal > *,
    .leader-frame::before,
    .leader-frame::after,
    .leader-frame img,
    .leader-badge,
    .leader-quote::before {
        transition: none !important;
    }

    .js .reveal,
    .js .leader-text.reveal > * {
        opacity: 1;
        transform: none;
    }

    .hover-card,
    .hover-card::after,
    .hover-card::before {
        transition: none;
    }

    .hover-card:hover,
    .hover-card:focus-within {
        transform: none;
    }

    .hover-card:hover .icon-dot .ui-icon {
        animation: none;
    }

    .about-media::before,
    .about-media::after,
    .split .about-media img {
        transition: none !important;
    }

    .about-media:hover::before,
    .about-media:hover .about-main,
    .about-media:hover .about-inset {
        transform: none;
    }

    .facility-card,
    .facility-photo {
        transition: none;
    }

    .facility-card:hover,
    .facility-card:focus-within {
        transform: none;
    }

    .facility-card:hover::before,
    .facility-card:focus-within::before {
        animation: none;
    }

    .hero-slide,
    .hero-slide .hero-content > * {
        transition: none;
    }
}

.kicker {
    display: inline-block;
    color: var(--gold-soft);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero h1,
.page-hero h1,
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--navy);
}

.hero h1,
.hero .hero-title {
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.92);
}

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
    background: #fff;
    color: var(--navy);
}

.btn-navy {
    background: var(--navy);
    color: #fff;
}

.btn-navy:hover {
    background: var(--navy-mid);
    color: #fff;
}

.section {
    padding: 80px 0;
}

.section.alt {
    background: #fff;
}

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

.section.navy h2,
.section.navy h3,
.section.navy p {
    color: #fff;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.section .kicker,
.section-head .kicker {
    color: var(--red);
}

.section.navy .kicker {
    color: var(--gold-soft);
}

.lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 42, 91, 0.05);
}

.card h3 {
    font-size: 1.25rem;
}

.icon-dot {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(200, 16, 46, 0.1);
    color: var(--red);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-weight: 800;
}

.icon-dot .ui-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-card:hover .icon-dot,
.hover-card:hover .icon-dot {
    background: var(--red);
    color: #fff;
}

.icon-dot {
    transition: background 0.2s ease, color 0.2s ease;
}

.campus-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.campus-card:hover img {
    transform: scale(1.04);
}

.hover-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hover-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.hover-card::before {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.1), transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.hover-card:hover,
.hover-card:focus-within {
    transform: translateY(-8px);
    border-color: rgba(200, 16, 46, 0.35);
    box-shadow: 0 22px 44px rgba(11, 42, 91, 0.16);
}

.hover-card:hover::after,
.hover-card:focus-within::after {
    transform: scaleX(1);
}

.hover-card:hover::before,
.hover-card:focus-within::before {
    transform: scale(1.6);
}

.hover-card h3 {
    transition: color 0.3s ease;
}

.hover-card:hover h3 {
    color: var(--red);
}

.hover-card:hover .icon-dot .ui-icon {
    animation: icon-pop 0.5s ease;
}

@keyframes icon-pop {
    0% { transform: scale(1) rotate(0); }
    40% { transform: scale(1.2) rotate(-10deg); }
    70% { transform: scale(0.95) rotate(6deg); }
    100% { transform: scale(1) rotate(0); }
}

.hover-card .pill {
    transition: background 0.3s ease, color 0.3s ease;
}

.hover-card:hover .pill {
    background: var(--red);
    color: #fff;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--navy);
}

.card-link span {
    transition: transform 0.3s ease;
}

.hover-card:hover .card-link {
    color: var(--red);
}

.hover-card:hover .card-link span {
    transform: translateX(6px);
}

.why-card,
.facility-card,
.value-card {
    height: 100%;
}

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.facility-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.facility-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 3px;
    border-radius: inherit;
    background: conic-gradient(from var(--border-angle), var(--red), var(--gold), var(--navy), var(--red));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.facility-card:hover,
.facility-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(11, 42, 91, 0.18);
}

.facility-card:hover::before,
.facility-card:focus-within::before {
    opacity: 1;
    animation: border-spin 2.5s linear infinite;
}

@keyframes border-spin {
    to {
        --border-angle: 360deg;
    }
}

.facility-card h3 {
    transition: color 0.3s ease;
}

.facility-card:hover h3 {
    color: var(--red);
}

.facility-visual,
.facility-photo {
    width: 100%;
    height: 200px;
}

.facility-visual {
    background: linear-gradient(135deg, var(--navy) 0%, var(--red) 100%);
    display: grid;
    place-items: center;
    color: #fff;
}

.facility-visual .ui-icon {
    width: 56px;
    height: 56px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.facility-photo {
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.4s ease;
}

.facility-card:hover .facility-photo {
    transform: scale(1.05);
}

.facility-card .body {
    padding: 22px;
    text-align: center;
}

.facility-card .body > :last-child {
    margin-bottom: 0;
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.split img,
.portrait {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.about-media {
    position: relative;
    padding: 0 0 70px 70px;
}

.about-media::before {
    content: "";
    position: absolute;
    top: -18px;
    right: -18px;
    width: 45%;
    height: 45%;
    border-radius: 18px;
    background: repeating-linear-gradient(45deg, rgba(200, 16, 46, 0.12) 0 2px, transparent 2px 12px);
    z-index: 0;
    transition: transform 0.6s ease;
}

.about-media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 70px;
    left: 70px;
    z-index: 1;
    border-radius: 18px;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%) no-repeat;
    background-size: 250% 100%;
    background-position: 100% 0;
    pointer-events: none;
}

.split .about-media .about-main {
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.split .about-media .about-inset {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2), box-shadow 0.6s ease;
}

.about-media:hover::before {
    transform: translate(10px, -10px);
}

.about-media:hover::after {
    background-position: 0% 0;
    transition: background-position 0.9s ease;
}

.about-media:hover .about-main {
    transform: scale(1.03);
    box-shadow: 0 24px 48px rgba(11, 42, 91, 0.2);
}

.about-media:hover .about-inset {
    transform: translate(-10px, -10px) rotate(-3deg);
    box-shadow: 0 28px 50px rgba(11, 42, 91, 0.32);
}

.split .about-media img {
    position: relative;
    z-index: 1;
}

.split .about-media .about-main {
    aspect-ratio: 1 / 1;
}

.split .about-media .about-inset {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 4 / 5;
    z-index: 2;
    border: 6px solid #fff;
    box-shadow: 0 18px 40px rgba(11, 42, 91, 0.25);
}

@media (max-width: 768px) {
    .about-media {
        padding: 0 0 48px 40px;
    }

    .about-media::before {
        top: -10px;
        right: -10px;
    }

    .about-media::after {
        bottom: 48px;
        left: 40px;
    }
}

.portrait {
    max-height: 460px;
    object-position: top;
    background: #111;
}

.quote {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--navy);
    border-left: 4px solid var(--gold);
    padding-left: 18px;
}

/* Scroll reveal (only hides content when JS is running) */
.js .reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal-left {
    transform: translateX(-40px);
}

.js .reveal-right {
    transform: translateX(40px);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Leader message (Chairman / Principal) */
.leader {
    align-items: start;
}

@media (min-width: 981px) {
    .leader {
        grid-template-columns: 340px 1fr;
        gap: 64px;
    }
}

.leader-photo {
    position: relative;
    margin: 0 28px 40px 0;
}

.leader-frame {
    position: relative;
    border-radius: 18px;
}

.leader-frame::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 3px solid var(--gold);
    border-radius: 18px;
    z-index: 0;
    transition: inset 0.5s ease, border-color 0.5s ease;
}

.leader-frame::after {
    content: "";
    position: absolute;
    top: -18px;
    left: -18px;
    width: 90px;
    height: 90px;
    border-radius: 14px;
    background: repeating-linear-gradient(45deg, rgba(200, 16, 46, 0.18) 0 2px, transparent 2px 10px);
    z-index: 0;
    transition: transform 0.5s ease;
}

.leader-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: top;
    border-radius: 18px;
    box-shadow: var(--shadow);
    background: var(--cream);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.leader-badge {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    width: max-content;
    max-width: 88%;
    background: var(--navy);
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    border-bottom: 3px solid var(--red);
    text-align: center;
    box-shadow: 0 14px 30px rgba(7, 28, 61, 0.3);
    transition: transform 0.5s ease;
}

.leader-badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.leader-badge span {
    display: block;
    font-size: 13px;
    color: var(--gold-soft);
}

.leader-photo:hover .leader-frame::before {
    inset: 12px -12px -12px 12px;
    border-color: var(--red);
}

.leader-photo:hover .leader-frame::after {
    transform: translate(-6px, -6px) rotate(-6deg);
}

.leader-photo:hover .leader-frame img {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(11, 42, 91, 0.25);
}

.leader-photo:hover .leader-badge {
    transform: translateX(-50%) translateY(-8px);
}

.leader-text .kicker {
    margin-bottom: 10px;
}

.leader-quote {
    position: relative;
    margin: 0 0 24px;
    padding: 6px 0 6px 22px;
    border-left: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    line-height: 1.4;
}

.leader-quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(var(--gold), var(--red));
    transform-origin: top;
    transition: transform 0.9s ease 0.4s;
}

.leader-quote::after {
    content: "\201C";
    position: absolute;
    right: 0;
    top: -40px;
    font-size: 7rem;
    line-height: 1;
    color: rgba(200, 16, 46, 0.12);
    font-style: normal;
    pointer-events: none;
}

.js .reveal .leader-quote::before {
    transform: scaleY(0);
}

.js .reveal.is-visible .leader-quote::before {
    transform: scaleY(1);
}

.js .leader-text.reveal > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .leader-text.reveal.is-visible > * {
    opacity: 1;
    transform: none;
}

.js .leader-text.reveal.is-visible > :nth-child(2) { transition-delay: 0.15s; }
.js .leader-text.reveal.is-visible > :nth-child(3) { transition-delay: 0.3s; }
.js .leader-text.reveal.is-visible > :nth-child(4) { transition-delay: 0.45s; }
.js .leader-text.reveal.is-visible > :nth-child(5) { transition-delay: 0.6s; }
.js .leader-text.reveal.is-visible > :nth-child(6) { transition-delay: 0.75s; }
.js .leader-text.reveal.is-visible > :nth-child(n+7) { transition-delay: 0.9s; }

.leader-sign {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    position: relative;
}

.leader-sign::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--red);
}

.leader-sign strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy);
}

.leader-sign span {
    display: block;
    font-size: 15px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .leader-photo {
        max-width: 300px;
        margin: 0 auto 56px;
    }
}

@media (max-width: 480px) {
    .leader-photo {
        margin-right: 12px;
    }

    .leader-frame::before {
        inset: 12px -12px -12px 12px;
    }

    .leader-frame::after {
        top: -10px;
        left: -10px;
        width: 60px;
        height: 60px;
    }
}

.page-hero {
    background: linear-gradient(120deg, var(--navy-dark), var(--navy-mid) 60%, #8d1530);
    color: #fff;
    padding: 72px 0 56px;
}

.page-hero h1,
.page-hero p {
    color: #fff;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #fff;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

th,
td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    background: var(--navy);
    color: #fff;
    font-weight: 650;
}

tr:nth-child(even) td {
    background: #faf7f1;
}

.form {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 650;
    font-size: 14px;
    color: var(--navy);
}

input,
select,
textarea {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(200, 16, 46, 0.25);
    border-color: var(--red);
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.alert-success {
    background: #e8f6ee;
    color: #14532d;
}

.alert-info {
    background: var(--cream);
    border-left: 4px solid var(--gold);
    color: var(--navy);
    margin-bottom: 24px;
}

.alert-error {
    background: #fdecec;
    color: #7f1d1d;
}

.steps {
    counter-reset: step;
    display: grid;
    gap: 18px;
}

.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-grid a,
.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--navy);
    min-height: 180px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.05);
}

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

.notice {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.notice .date {
    background: var(--cream);
    color: var(--red);
    font-weight: 800;
    text-align: center;
    border-radius: 10px;
    padding: 10px 6px;
}

.campus-card img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}

.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.86);
    padding: 64px 0 0;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 32px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.86);
}

.site-footer a:hover {
    color: var(--gold-soft);
}

.footer-links {
    display: grid;
    gap: 8px;
}

.socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.socials a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover,
.socials a:focus-visible {
    color: #fff;
    transform: translateY(-3px);
    filter: brightness(1.12);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.socials a {
    border-color: transparent;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.socials svg,
.fa-btn svg {
    width: 18px;
    height: 18px;
}

.si-fill {
    fill: currentColor;
}

.si-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.socials .soc-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.socials .soc-facebook {
    background: #1877f2;
}

.socials .soc-x {
    background: #000;
    border-color: rgba(255, 255, 255, 0.35);
}

.socials .soc-youtube {
    background: #ff0000;
}

.socials .soc-linkedin {
    background: #0a66c2;
}

.footer-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 16px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 10px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 40px;
    padding: 18px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.float-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 50;
}

.fa-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    display: grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(7, 28, 61, 0.25);
    transition: transform 0.2s ease;
}

.fa-btn:hover,
.fa-btn:focus-visible {
    color: #fff;
    transform: translateY(-2px);
}

.fa-btn svg {
    width: 24px;
    height: 24px;
}

.fa-btn[hidden] {
    display: none;
}

.fa-top {
    width: 44px;
    height: 44px;
    background: var(--navy);
}

.fa-top svg {
    width: 20px;
    height: 20px;
}

.fa-call {
    background: var(--red);
}

.fa-whatsapp {
    background: #25d366;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .float-actions {
        right: 14px;
        bottom: 14px;
        gap: 10px;
    }

    .fa-btn {
        width: 46px;
        height: 46px;
    }

    .fa-btn svg {
        width: 22px;
        height: 22px;
    }

    .fa-top {
        width: 40px;
        height: 40px;
    }
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.stat {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--red);
}

.cta-band {
    background: linear-gradient(90deg, var(--red), #8d1530);
    color: #fff;
    padding: 48px 0;
}

.cta-band h2,
.cta-band p {
    color: #fff;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.doc-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.pill {
    display: inline-block;
    background: rgba(200, 16, 46, 0.1);
    color: var(--red);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .grid-4,
    .grid-3,
    .grid-2,
    .split,
    .footer-grid,
    .stat-row,
    .gallery-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 68vh;
    }

}

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

    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0 20px;
        box-shadow: var(--shadow);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-item > a,
    .nav-item > button {
        width: 100%;
        justify-content: space-between;
        padding: 14px 20px;
        text-align: left;
    }

    .nav-item > button::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-top: -4px;
        transition: transform 0.2s ease;
    }

    .nav-item.open > button::after {
        transform: rotate(-135deg);
        margin-top: 4px;
    }

    .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border-top: 0;
        background: var(--cream);
        min-width: 0;
    }

    .nav-item.open .dropdown {
        display: block;
    }

    .dropdown a {
        padding: 10px 32px;
    }
}

@media (max-width: 768px) {
    .topbar {
        font-size: 13px;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-block: 10px 12px;
    }

    .topbar-left {
        display: none;
    }

    .topbar-left > * {
        max-width: 100%;
    }

    .tb-item {
        align-items: flex-start;
    }

    .tb-item .tb-icon {
        margin-top: 2px;
    }

    .tb-item > span {
        overflow-wrap: anywhere;
    }

    .topbar-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .topbar-right a.btn-mini {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 38px;
        padding: 6px 10px;
        line-height: 1.2;
    }
}

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

    * {
        transition: none !important;
    }
}
