/*
 * Irvington College — styles.css
 * Unified stylesheet. Refined for institutional authority.
 *
 * Table of Contents:
 *  1.  Reset & Variables
 *  2.  Base Typography
 *  3.  Layout
 *  4.  Buttons
 *  5.  Navigation
 *  6.  Page Banner (inner pages)
 *  7.  Homepage Hero
 *  8.  Stats Bar
 *  9.  About
 * 10.  Vision / Mission
 * 11.  Core Values
 * 12.  Cards (Why Us / Quick Links)
 * 13.  Programs (Academics)
 * 14.  Facilities
 * 15.  Admissions Steps
 * 16.  Testimonials
 * 17.  CTA Banner
 * 18.  Contact
 * 19.  Footer
 * 20.  Scroll Reveal
 * 21.  Responsive
 */


/* ── 1. Reset & Variables ──────────────── */

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

:root {
    --navy:          #0d1b2a;
    --navy-mid:      #142030;
    --navy-light:    #1b2e40;
    --gold:          #b8925a;
    --gold-lt:       #cc9f67;
    --gold-pale:     rgba(184,146,90,.09);
    --gold-border:   rgba(184,146,90,.20);
    --white:         #ffffff;
    --cream:         #f6f4f0;
    --text-on-dark:  rgba(255,255,255,.62);
    --text-dim:      rgba(255,255,255,.35);
    --border-dark:   rgba(255,255,255,.07);
    --light-text:    #1a2b3c;
    --light-body:    #4a5f72;
    --light-border:  #ddd8d0;

    --f-serif: 'Cormorant Garamond', Georgia, serif;
    --f-sans:  'DM Sans', system-ui, sans-serif;

    --nav-h:    74px;
    --sp:       108px;
    --sp-sm:    72px;
    --wrap:     1140px;
    --pad:      40px;
    --r:        12px;
    --r-sm:     4px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--f-sans);
    background: var(--navy);
    color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}


/* ── 2. Base Typography ────────────────── */

h1, h2, h3 {
    font-family: var(--f-serif);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.14;
    color: var(--white);
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin-bottom: 10px; }

h4 {
    font-family: var(--f-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

p {
    color: var(--text-on-dark);
    line-height: 1.82;
    font-size: 0.97rem;
}

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

/* Section label */
.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.label::before {
    content: '';
    width: 22px; height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}
.label--muted { color: rgba(255,255,255,.4); }
.label--muted::before { background: rgba(255,255,255,.3); }


/* ── 3. Layout ─────────────────────────── */

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.section    { padding: var(--sp) 0; }
.section-sm { padding: var(--sp-sm) 0; }
.bg-mid     { background: var(--navy-mid); }
.bg-light   { background: var(--cream); }

.bg-light h2, .bg-light h3 { color: var(--light-text); }
.bg-light p { color: var(--light-body); }

/* Section heading */
.sec-head { margin-bottom: 56px; }
.sec-head--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 56px; }
.sec-head--center .label { justify-content: center; }
.sec-head p, .sec-head--center p { margin-top: 14px; }
.sec-head--center p { max-width: 500px; margin-left: auto; margin-right: auto; }

/* Two-col */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}


/* ── 4. Buttons ────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--f-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}
.btn-primary:hover {
    background: var(--gold-lt);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(184,146,90,.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.30);
}
.btn-outline:hover {
    border-color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.06);
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm   { padding: 10px 20px; font-size: 0.82rem; }


/* ── 5. Navigation ─────────────────────── */

.nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 900;
    height: var(--nav-h);
    background: rgba(13,27,42,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
    transition: box-shadow .3s, background .3s;
}
.nav.scrolled {
    background: rgba(9,19,30,.98);
    box-shadow: 0 2px 36px rgba(0,0,0,.55);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* Logo */
.nav__logo {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav__logo img {
    height: 40px; width: auto;
    object-fit: contain; display: block;
}
.nav__logo-text {
    display: flex; flex-direction: column; line-height: 1.22;
}
.nav__logo-name {
    font-family: var(--f-serif);
    font-size: 1.08rem; font-weight: 700;
    color: var(--white); letter-spacing: 0.01em;
}
.nav__logo-est {
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold);
}

/* Menu */
.nav__menu {
    display: flex; list-style: none;
    align-items: center; gap: 2px;
}
.nav__link {
    display: block; padding: 8px 13px;
    font-size: 0.83rem; font-weight: 500;
    color: var(--text-on-dark); letter-spacing: 0.01em;
    border-radius: var(--r-sm);
    position: relative;
    transition: color .2s;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 13px; right: 13px;
    height: 1px; background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--white); }

/* Apply button */
.nav__apply {
    margin-left: 8px; padding: 9px 20px;
    font-size: 0.81rem; font-weight: 700;
    color: var(--navy); background: var(--gold);
    border-radius: var(--r-sm); letter-spacing: 0.03em;
    transition: background .2s, transform .2s;
}
.nav__apply:hover {
    background: var(--gold-lt);
    transform: translateY(-1px);
}

/* Hamburger */
.nav__burger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer;
    padding: 6px; width: 36px;
}
.nav__burger span {
    display: block; width: 20px; height: 1.5px;
    background: var(--white); border-radius: 2px; transition: all .28s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; width: 100%;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--gold-border);
    z-index: 899;
    padding: 24px var(--pad) 32px;
    flex-direction: column; gap: 2px;
}
.nav__drawer.open { display: flex; }
.nav__drawer-link {
    display: block; padding: 13px 8px;
    font-size: 0.97rem; font-weight: 500;
    color: var(--text-on-dark);
    border-bottom: 1px solid var(--border-dark);
    transition: color .2s;
}
.nav__drawer-link:last-of-type { border-bottom: none; }
.nav__drawer-link:hover,
.nav__drawer-link.active { color: var(--white); }
.nav__drawer-apply {
    display: block; margin-top: 18px; padding: 14px;
    text-align: center; background: var(--gold); color: var(--navy);
    font-weight: 700; font-size: 0.92rem;
    border-radius: var(--r-sm); letter-spacing: 0.03em;
}


/* ── 6. Page Banner ────────────────────── */

.page-banner {
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 60px;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border-dark);
}
.page-banner__inner { max-width: 660px; }
.page-banner h1 { margin: 10px 0 14px; }
.page-banner p  { font-size: 1.05rem; max-width: 500px; }


/* ── 7. Homepage Hero ──────────────────── */

.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    justify-content: center; text-align: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + 52px) 24px 80px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 18%;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(9,18,28,.78) 0%,
        rgba(9,18,28,.52) 38%,
        rgba(9,18,28,.70) 72%,
        rgba(9,18,28,.90) 100%
    );
}
.hero__content {
    position: relative; z-index: 2; max-width: 800px;
    animation: fadeUp .9s cubic-bezier(.22,1,.36,1) both;
}
.hero__location {
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--gold);
    display: block; margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.9rem);
    line-height: 1.1; margin-bottom: 24px; color: var(--white);
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero__sub {
    font-size: 1.06rem; color: rgba(255,255,255,.62);
    line-height: 1.75; max-width: 570px; margin: 0 auto 42px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    z-index: 2; width: 1px; height: 52px;
    background: linear-gradient(to bottom, transparent, rgba(184,146,90,.65));
    animation: scrollBlink 2.2s ease-in-out infinite;
}
@keyframes scrollBlink {
    0%,100% { opacity: .28; } 50% { opacity: .85; }
}


/* ── 8. Stats Bar ──────────────────────── */

.stats {
    background: var(--navy-light);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}
.stats__row {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap;
    max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
}
.stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 30px 52px; flex: 1; min-width: 140px;
}
.stat__sep { width: 1px; height: 38px; background: var(--border-dark); align-self: center; }
.stat__n {
    font-family: var(--f-serif); font-size: 2.2rem;
    font-weight: 700; color: var(--white); line-height: 1;
}
.stat__n sup { font-size: 1.3rem; color: var(--gold); }
.stat__l {
    margin-top: 6px; font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,.38);
}


/* ── 9. About ──────────────────────────── */

.about-img { position: relative; }
.about-img__main {
    width: 100%; height: 500px;
    object-fit: cover; object-position: center top;
    border-radius: var(--r); display: block; filter: brightness(.9);
}
.about-img__crest {
    position: absolute; bottom: -18px; right: -18px;
    width: 88px; height: 88px;
    background: var(--navy); border: 1px solid var(--gold-border);
    border-radius: var(--r); display: flex; align-items: center;
    justify-content: center; padding: 13px;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.about-img__crest img { width: 100%; height: auto; object-fit: contain; }

.about-text h2 { margin-bottom: 20px; }
.about-text p  { margin-bottom: 18px; }

.value-pills {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 24px 0 32px;
}
.value-pills span {
    padding: 6px 16px;
    border: 1px solid var(--gold-border);
    border-radius: 100px;
    font-size: 0.77rem; font-weight: 600;
    color: var(--gold); letter-spacing: 0.04em;
}


/* ── 10. Vision / Mission ──────────────── */

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card {
    padding: 40px 36px;
    border: 1px solid var(--border-dark);
    border-top: 2px solid var(--gold);
    border-radius: var(--r);
    background: var(--navy-light);
    transition: background .25s;
}
.vm-card:hover { background: rgba(30,46,64,.9); }
.vm-card h3  { margin-bottom: 14px; font-size: 1.15rem; }
.vm-card > p { font-size: .98rem; font-style: italic; line-height: 1.75; }


/* ── 11. Core Values ───────────────────── */

.values-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 1px; background: var(--border-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--r); overflow: hidden;
}
.value-item {
    background: var(--navy-mid);
    padding: 44px 26px; text-align: center;
    transition: background .25s;
}
.value-item:hover { background: var(--navy-light); }
.value-item svg {
    width: 28px; height: 28px; color: var(--gold);
    display: block; margin: 0 auto 18px; stroke-width: 1.5;
}
.value-item h4 {
    font-size: 0.88rem; text-transform: none;
    letter-spacing: 0; color: var(--white); margin-bottom: 10px;
}
.value-item p { font-size: .84rem; line-height: 1.65; }


/* ── 12. Cards ─────────────────────────── */

.cards-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.card {
    padding: 36px 28px;
    background: var(--navy-light);
    border: 1px solid var(--border-dark);
    border-radius: var(--r);
    transition: border-color .25s, background .25s, transform .25s;
    display: block; text-decoration: none;
}
.card:hover {
    border-color: var(--gold-border);
    background: rgba(28,46,62,.9);
    transform: translateY(-3px);
}
.card__num {
    font-family: var(--f-serif); font-size: 2.6rem;
    font-weight: 700; color: var(--gold-border);
    line-height: 1; margin-bottom: 20px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p  { font-size: .88rem; line-height: 1.72; }
.card__arrow {
    margin-top: 20px; display: flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--gold);
    transition: gap .2s;
}
.card:hover .card__arrow { gap: 10px; }


/* ── 13. Programs ──────────────────────── */

.programs { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.program {
    background: var(--cream); border-radius: var(--r);
    padding: 44px 32px; position: relative; overflow: hidden;
}
.program__num {
    position: absolute; top: 12px; right: 22px;
    font-family: var(--f-serif); font-size: 5rem; font-weight: 700;
    color: rgba(13,27,42,.05); line-height: 1; pointer-events: none;
}
.program h3  { color: var(--light-text); margin-bottom: 12px; }
.program > p { color: var(--light-body); font-size: .9rem; margin-bottom: 22px; }
.program__list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.program__list li {
    display: flex; align-items: center; gap: 10px;
    font-size: .85rem; color: var(--light-body);
}
.program__list li::before {
    content: ''; width: 4px; height: 4px; border-radius: 50%;
    background: var(--gold); flex-shrink: 0;
}


/* ── 14. Facilities ────────────────────── */

.facilities-grid {
    display: grid; grid-template-columns: repeat(2,1fr);
    gap: 1px; background: var(--border-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--r); overflow: hidden;
}
.facility {
    background: var(--navy-light); padding: 40px 36px;
    display: flex; gap: 24px; align-items: flex-start;
    transition: background .25s;
}
.facility:hover { background: rgba(28,46,62,.9); }
.facility__icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: var(--gold-pale); border: 1px solid var(--gold-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--gold);
}
.facility__icon svg { width: 20px; height: 20px; stroke-width: 1.6; }
.facility h3 { font-size: 1.05rem; margin-bottom: 8px; }
.facility p  { font-size: .88rem; line-height: 1.7; }


/* ── 15. Admissions Steps ──────────────── */

.steps {
    display: grid; grid-template-columns: repeat(4,1fr);
    position: relative; margin-bottom: 60px;
}
.steps::before {
    content: ''; position: absolute;
    top: 26px; left: calc(12.5% + 1px); width: calc(75% - 2px);
    height: 1px; background: var(--gold-border); z-index: 0;
}
.step {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 0 18px; position: relative; z-index: 1;
}
.step__num {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--navy-mid); border: 1.5px solid var(--gold-border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; position: relative; z-index: 2;
    box-shadow: 0 0 0 6px var(--navy);
    transition: background .2s, border-color .2s;
}
.step:hover .step__num { background: var(--gold); border-color: var(--gold); }
.step:hover .step__num span { color: var(--navy); }
.step__num span {
    font-family: var(--f-serif); font-size: 1.1rem; font-weight: 700;
    color: var(--gold); transition: color .2s;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p  { font-size: .85rem; line-height: 1.7; }

.admissions-cta {
    text-align: center; display: flex; flex-direction: column;
    align-items: center; gap: 16px;
}
.admissions-cta p { font-size: .88rem; }
.admissions-cta a[href^="tel"] { color: var(--gold); font-weight: 600; }


/* ── 16. Testimonials ──────────────────── */

.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testi {
    background: var(--navy-light); border: 1px solid var(--border-dark);
    border-top: 2px solid var(--gold);
    border-radius: var(--r); padding: 32px 28px; transition: border-color .25s;
}
.testi:hover { border-color: var(--gold-border); }
.testi__stars { color: var(--gold); font-size: .8rem; letter-spacing: 3px; margin-bottom: 16px; }
.testi > p {
    font-size: .92rem; font-style: italic;
    line-height: 1.78; margin-bottom: 24px; color: rgba(255,255,255,.6);
}
.testi__author {
    display: flex; align-items: center; gap: 12px;
    padding-top: 18px; border-top: 1px solid var(--border-dark);
}
.testi__author img,
.testi__init {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}
.testi__init {
    background: var(--gold-pale); border: 1px solid var(--gold-border);
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 700; color: var(--gold);
}
.testi__author strong { display: block; font-size: .88rem; font-weight: 700; color: var(--white); }
.testi__author span   { font-size: .74rem; color: rgba(255,255,255,.38); }


/* ── 17. CTA Banner ────────────────────── */

.cta-banner {
    position: relative; padding: 100px 0; text-align: center; overflow: hidden;
}
.cta-banner__bg { position: absolute; inset: 0; }
.cta-banner__bg img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 30%; display: block;
}
.cta-banner__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,rgba(9,18,28,.92) 0%,rgba(13,27,42,.87) 100%);
}
.cta-banner__body {
    position: relative; z-index: 2;
    max-width: 580px; margin: 0 auto; padding: 0 var(--pad);
}
.cta-banner__body h2 { margin-bottom: 14px; }
.cta-banner__body p  { margin-bottom: 36px; }
.cta-banner__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* ── 18. Contact ───────────────────────── */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info > p { margin-bottom: 36px; }
.ci-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.ci { display: flex; gap: 16px; align-items: flex-start; }
.ci__icon {
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--gold-pale); border: 1px solid var(--gold-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--gold);
}
.ci__icon svg { width: 17px; height: 17px; stroke-width: 1.8; }
.ci h4  { margin-bottom: 4px; }
.ci p   { font-size: .87rem; line-height: 1.65; margin: 0; }

.map-box {
    background: var(--navy-light); border: 1px solid var(--border-dark);
    border-radius: var(--r); padding: 28px;
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; text-align: center;
}
.map-box svg { width: 24px; height: 24px; color: var(--gold); }
.map-box p  { font-size: .85rem; }
.map-box a  { font-size: .82rem; font-weight: 600; color: var(--gold); transition: color .2s; }
.map-box a:hover { color: var(--gold-lt); }

.contact-form {
    background: var(--navy-light); border: 1px solid var(--border-dark);
    border-radius: var(--r); padding: 40px;
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-note { font-size: .78rem; color: var(--text-dim); margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label {
    display: block; font-size: .68rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.38); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--r-sm); color: var(--white);
    font-family: var(--f-sans); font-size: .92rem;
    outline: none; appearance: none; -webkit-appearance: none;
    transition: border-color .2s, background .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.18); }
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--gold); background: rgba(184,146,90,.05);
}
.field textarea { resize: none; }
.field select   { cursor: pointer; }


/* ── 19. Footer ────────────────────────── */

.footer {
    background: #070f1a;
    border-top: 1px solid rgba(184,146,90,.11);
    padding: 72px 0 0;
}
.footer__grid {
    display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 56px;
}
.footer__logo {
    height: 30px; width: auto; display: block; margin-bottom: 16px;
    filter: brightness(0) invert(1) opacity(.6);
}
.footer__tagline { font-size: .84rem; line-height: 1.72; color: rgba(255,255,255,.28); }
.footer h5 {
    font-family: var(--f-sans); font-size: .66rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--gold); margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { font-size: .84rem; color: rgba(255,255,255,.32); transition: color .2s; }
.footer__col ul a:hover { color: rgba(255,255,255,.7); }
.footer__col p { font-size: .84rem; color: rgba(255,255,255,.32); margin-bottom: 8px; line-height: 1.6; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.05); padding: 20px 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__bottom p { font-size: .76rem; color: rgba(255,255,255,.22); margin: 0; }
.footer__rule { width: 26px; height: 1px; background: var(--gold); opacity: .4; }


/* ── 20. Scroll Reveal ─────────────────── */

.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .10s; }
.delay-2 { transition-delay: .20s; }
.delay-3 { transition-delay: .30s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── 21. Responsive ────────────────────── */

@media (max-width: 1024px) {
    :root { --pad: 28px; --sp: 88px; }
    .cards-grid { grid-template-columns: repeat(2,1fr); }
    .programs   { grid-template-columns: 1fr; max-width: 560px; }
    .two-col    { gap: 52px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --sp: 72px; --sp-sm: 56px; --pad: 24px; }

    /* Nav */
    .nav__menu, .nav__apply { display: none; }
    .nav__burger { display: flex; }

    /* Hero */
    .hero h1   { font-size: clamp(1.9rem,7vw,2.8rem); }
    .hero__sub { font-size: .97rem; }

    /* Layouts */
    .two-col         { grid-template-columns: 1fr; gap: 40px; }
    .vm-grid         { grid-template-columns: 1fr; }
    .contact-grid    { grid-template-columns: 1fr; gap: 48px; }
    .testi-grid      { grid-template-columns: 1fr; max-width: 480px; }
    .programs        { grid-template-columns: 1fr; }
    .facilities-grid { grid-template-columns: 1fr; }

    /* About image */
    .about-img__main  { height: 320px; }
    .about-img__crest { width: 70px; height: 70px; bottom: -14px; right: -14px; }

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

    /* Steps */
    .steps { grid-template-columns: 1fr; gap: 28px; }
    .steps::before { display: none; }
    .step { flex-direction: row; text-align: left; align-items: flex-start; gap: 20px; padding: 0; }
    .step__num { margin-bottom: 0; flex-shrink: 0; }

    /* Stats */
    .stat { padding: 22px 26px; min-width: 120px; }
    .stat__sep { display: none; }
}

@media (max-width: 480px) {
    :root { --sp: 56px; --sp-sm: 48px; --pad: 20px; --nav-h: 64px; }

    .hero { padding: calc(var(--nav-h) + 32px) 20px 56px; min-height: 85vh; }
    .hero h1 { font-size: 1.9rem; }
    .hero__actions  { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { justify-content: center; }

    .cta-banner__actions { flex-direction: column; }
    .cta-banner__actions .btn { justify-content: center; }

    .cards-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 28px 20px; }
    .footer__grid { grid-template-columns: 1fr; }
    .page-banner { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 44px; }

    /* Gallery responsive */
    .gallery-row { grid-template-columns: 1fr; gap: 16px; }
    .gallery-row--flip { direction: ltr; }
    .gallery-item--feature,
    .gallery-item--portrait { grid-row: auto; }
    .gallery-item img { height: 260px; }
    .achievement-showcase { grid-template-columns: 1fr; gap: 40px; }
    .campus-strip { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; }
    .campus-strip__item--tall { grid-row: auto; }
    .campus-strip__item img,
    .campus-strip__item--tall img { height: 240px; }
    .fac-banner { min-height: 52vh; padding-top: calc(var(--nav-h) + 32px); }
    .fac-banner__content h1 { font-size: 2rem; }
}


/* ─────────────────────────────────────────────
   22. FACILITIES PHOTO BANNER
───────────────────────────────────────────── */

.fac-banner {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: var(--nav-h);
}

.fac-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    transition: transform 8s ease;
}

.fac-banner:hover .fac-banner__img {
    transform: scale(1.03);
}

.fac-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(9, 18, 28, 0.92) 0%,
        rgba(9, 18, 28, 0.55) 50%,
        rgba(9, 18, 28, 0.28) 100%
    );
}

.fac-banner__content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    width: 100%;
}

.fac-banner__content .label { color: var(--gold); }
.fac-banner__content .label::before { background: var(--gold); }
.fac-banner__content h1 { margin: 12px 0 14px; }
.fac-banner__content p { max-width: 480px; font-size: 1.05rem; }


/* ─────────────────────────────────────────────
   23. CAMPUS PHOTO STRIP (facilities page)
───────────────────────────────────────────── */

.campus-strip {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3px;
    max-width: 100%;
    margin-top: 0;
}

.campus-strip__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.campus-strip__item img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    filter: brightness(0.82) saturate(0.9);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s ease;
}

.campus-strip__item--tall img {
    height: 100%;
    min-height: 340px;
}

.campus-strip__item:hover img {
    transform: scale(1.04);
    filter: brightness(0.95) saturate(1.05);
}

.campus-strip__cap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(to top, rgba(9,18,28,0.88) 0%, transparent 100%);
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.32s ease;
}

.campus-strip__item:hover .campus-strip__cap {
    opacity: 1;
    transform: translateY(0);
}

.campus-strip__cap span {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.campus-strip__cap p {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin: 0;
}


/* ─────────────────────────────────────────────
   24. GALLERY PAGE — EDITORIAL ROWS
───────────────────────────────────────────── */

.gallery-row {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 4px;
    margin-bottom: 4px;
    max-width: 100%;
}

.gallery-row--flip {
    grid-template-columns: 1fr 1.55fr;
    direction: rtl; /* reverses column order */
}
.gallery-row--flip > * { direction: ltr; }

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--navy-light);
}

.gallery-item--feature img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    filter: brightness(0.85) saturate(0.85);
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s ease;
}

.gallery-item--portrait img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: brightness(0.85) saturate(0.85);
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(0.96) saturate(1.08);
}

/* Caption that slides up on hover */
.gallery-item__meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 32px 28px;
    background: linear-gradient(to top, rgba(9,18,28,0.90) 0%, transparent 100%);
    transform: translateY(12px);
    opacity: 0;
    transition: all 0.35s ease;
}

.gallery-item:hover .gallery-item__meta {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item__tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.gallery-item__meta h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 6px;
}

.gallery-item__meta p {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.55;
    margin: 0;
    max-width: 380px;
}


/* ─────────────────────────────────────────────
   25. ACHIEVEMENT SHOWCASE
───────────────────────────────────────────── */

.achievement-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.achievement-showcase__photo {
    position: relative;
}

.achievement-showcase__photo img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--r);
    display: block;
    filter: brightness(0.92);
}

/* Subtle gold glow behind the photo */
.achievement-showcase__glow {
    position: absolute;
    inset: -12px;
    border-radius: calc(var(--r) + 12px);
    background: radial-gradient(
        ellipse at center,
        rgba(184,146,90,0.14) 0%,
        transparent 70%
    );
    z-index: -1;
}

.achievement-showcase__content h2 { margin-bottom: 16px; }
.achievement-showcase__content > p { margin-bottom: 32px; }

.achievement-awards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.achievement-award {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 20px;
    background: var(--navy-light);
    border: 1px solid var(--border-dark);
    border-left: 3px solid var(--gold);
    border-radius: var(--r-sm);
}

.achievement-award__year {
    font-family: var(--f-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
    min-width: 44px;
}

.achievement-award__detail strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
}

.achievement-award__detail span {
    font-size: 0.8rem;
    color: var(--text-on-dark);
    line-height: 1.4;
}

.achievement-note {
    font-size: 0.86rem;
    font-style: italic;
    color: rgba(255,255,255,0.42);
    line-height: 1.7;
    border-top: 1px solid var(--border-dark);
    padding-top: 20px;
    margin: 0 !important;
}


/* ─────────────────────────────────────────────
   26. GALLERY RESPONSIVE OVERRIDES
───────────────────────────────────────────── */

@media (max-width: 1024px) {
    .gallery-item--feature img,
    .gallery-item--portrait img { height: 420px; }
    .achievement-showcase { grid-template-columns: 1fr; gap: 48px; }
    .achievement-showcase__photo img { height: 340px; }
    .campus-strip { grid-template-columns: 1fr 1fr; }
    .campus-strip__item--tall { grid-column: span 2; }
    .campus-strip__item--tall img { height: 320px; min-height: auto; }
    .campus-strip__item img { height: 260px; }
}

@media (max-width: 768px) {
    .gallery-row,
    .gallery-row--flip {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .gallery-item--feature img,
    .gallery-item--portrait img { height: 300px; }
    .gallery-item__meta { opacity: 1; transform: translateY(0); }
    .campus-strip { grid-template-columns: 1fr; }
    .campus-strip__item--tall { grid-column: auto; }
    .campus-strip__item img,
    .campus-strip__item--tall img { height: 260px; min-height: auto; }
    .campus-strip__cap { opacity: 1; transform: translateY(0); }
    .fac-banner { min-height: 56vh; }
}

/* ─────────────────────────────────────
   RESPONSIVE DESIGN (Add to bottom of CSS)
───────────────────────────────────── */

/* Tablet View (992px and below) */
@media (max-width: 992px) {
    .wrap {
        max-width: 90%;
        padding: 0 20px;
    }

    /* Switches the "About" section from side-by-side to stacked */
    .two-col {
        grid-template-columns: 1fr !important; 
        text-align: center;
    }

    .about-img {
        margin-bottom: 30px;
    }
}

/* Mobile Phone View (768px and below) */
@media (max-width: 768px) {
    /* 1. Hero Section Scaling */
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero__sub {
        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: column; /* Stacks "Apply" and "About" buttons */
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%; /* Makes buttons full-width for easy tapping */
        text-align: center;
    }

    /* 2. Stats Section Grid */
    .stats__row {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2x2 grid instead of one long row */
        gap: 30px;
    }

    .stat__sep {
        display: none; /* Hide vertical lines on mobile */
    }

    /* 3. Cards & Testimonials Grid */
    /* Forces the 3-column grids to become 1-column */
    .cards-grid, 
    .testi-grid, 
    .programs, 
    .values-grid,
    .vm-grid {
        grid-template-columns: 1fr !important; 
        gap: 20px;
    }

    /* 4. Navigation Layout Fix */
    /* Adjusts the logo and menu if they overlap */
    nav {
        flex-direction: column;
        padding: 15px 0;
    }
}

/* Small Phones (480px and below) */
@media (max-width: 480px) {
    .stats__row {
        grid-template-columns: 1fr; /* One stat per line on very small screens */
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}
