/* =================================================================
   KIIST — Kisii Impact Institute of Science and Technologies
   Main stylesheet (no framework, hand-written)
   ================================================================= */

:root {
    --navy: #0a2647;
    --navy-dark: #071a33;
    --navy-mid: #123b6d;
    --gold: #f2a900;
    --gold-dark: #d69200;
    --green: #2ecc71;
    --green-dark: #219150;
    --gray-50: #f7f9fc;
    --gray-100: #eef1f6;
    --gray-300: #cfd8e3;
    --gray-500: #6b7a90;
    --gray-700: #3a4658;
    --ink: #1b2534;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 4px 18px rgba(10, 38, 71, 0.08);
    --shadow-lg: 0 10px 30px rgba(10, 38, 71, 0.14);
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; color: var(--navy); }
p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--gold);
    color: var(--navy);
    padding: 10px 16px;
    z-index: 1000;
    font-weight: 600;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    font-size: 0.95rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-apply, .btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    box-shadow: var(--shadow);
}
.btn-apply:hover, .btn-primary:hover { background: var(--gold-dark); }
.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,.7);
    color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-block { width: 100%; text-align: center; }

/* ---------------- Header ---------------- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(10,38,71,.08);
    position: sticky;
    top: 0;
    z-index: 500;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
    width: 46px; height: 46px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(10,38,71,.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--navy); font-size: 1.05rem; letter-spacing: .3px; }
.brand-text small { color: var(--gray-500); font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; gap: 26px; }
.primary-nav a {
    font-weight: 600;
    color: var(--navy);
    font-size: .93rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.primary-nav a:hover { color: var(--green-dark); }
.primary-nav a.active { color: var(--green-dark); border-bottom-color: var(--green); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------------- Hero (page banner) ---------------- */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
    padding: 24px 0 14px;
    text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; font-size: 2rem; }
.breadcrumb { font-size: .88rem; opacity: .85; }
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------------- Homepage hero ---------------- */
.hero {
    background: linear-gradient(135deg, rgba(10,38,71,.92), rgba(18,59,109,.85));
    color: var(--white);
    padding: 90px 0;
}
.hero-inner { max-width: 640px; }
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 18px; }
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: 1.08rem; opacity: .92; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Homepage hero slider ---------------- */
.hero-slider { position: relative; overflow: hidden; min-height: 82vh; padding: 0; }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden; z-index: 1;
    transition: opacity .8s ease;
    overflow: hidden;
}
/* Background image lives on its own layer so it can zoom/pan (Ken Burns)
   independently of the slide's content, which must stay put. */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: -20px;
    z-index: 0;
    background-image: var(--slide-bg, none);
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transform-origin: center center;
    will-change: transform;
}
.hero-slide::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
    /* Fades from strong navy at top-left down to a light wash at bottom-right,
       so the image reads through more toward the far edge instead of a flat tint. */
    background: linear-gradient(
        105deg,
        rgba(10,38,71,.665) 0%,
        rgba(10,38,71,.42) 55%,
        rgba(10,38,71,.175) 100%
    );
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.hero-slide.active.is-ken-burns::before { animation: heroKenBurnsRight 6.5s linear forwards; }
.hero-slide.active.is-ken-burns[data-ken-dir="left"]::before { animation-name: heroKenBurnsLeft; }
.hero-slide.active.is-ken-burns.is-loop::before { animation-iteration-count: infinite; animation-direction: alternate; }
@keyframes heroKenBurnsRight {
    from { transform: scale(1.06) translate3d(-1.2%, 0, 0); }
    to   { transform: scale(1.15) translate3d(1.2%, 0, 0); }
}
@keyframes heroKenBurnsLeft {
    from { transform: scale(1.06) translate3d(1.2%, 0, 0); }
    to   { transform: scale(1.15) translate3d(-1.2%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide.active.is-ken-burns::before { animation: none; }
}

/* Continuous typing effect on the hero title */
.hero-type-line { display: inline-block; min-height: 1.2em; }
.hero-type-line.is-typing::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: .85em;
    margin-left: 4px;
    background: var(--gold);
    vertical-align: -.1em;
    animation: heroCaretBlink .85s steps(1) infinite;
}
@keyframes heroCaretBlink { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .hero-type-line.is-typing::after { animation: none; opacity: 0; }
}
.hero-slider-dots {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%; padding: 0; border: none;
    background: rgba(255,255,255,.4); cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.hero-dot.active { background: var(--gold); transform: scale(1.2); }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4);
    color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 3; transition: background .2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }

/* ---------------- Stats bar — floats up over the hero's bottom edge ---------------- */
.stats-bar { position: relative; z-index: 2; margin-top: -100px; margin-bottom: 40px; }
.stats-float-card {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px 16px;
}
.stats-float-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
    position: relative;
    text-align: center;
    padding: 12px 8px;
    border-radius: var(--radius);
    transition: background .2s ease, transform .2s ease;
}
.stat-item:hover { background: var(--gray-50); transform: translateY(-3px); }
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 20%;
    height: 60%; width: 1px;
    background: var(--gray-300);
}
.stat-icon { font-size: 1.3rem; margin-bottom: .35rem; display: block; }
.stat-item .value { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-item .label { color: var(--gray-500); font-size: .8rem; margin-top: .15rem; font-weight: 500; }

/* ---------------- Sections ---------------- */
section { padding: 44px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.section-head h2 { font-size: 1.9rem; }
.eyebrow {
    display: inline-block;
    color: var(--green-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.bg-alt { background: var(--gray-50); }

/* ---------------- Cards / grid ---------------- */
.grid { display: grid; gap: 26px; }
.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: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover .icon { transform: translateY(-3px); box-shadow: 0 16px 24px -8px rgba(46,204,113,.6); }
.card .icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(46,204,113,.12);
    color: var(--green-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    box-shadow: 0 10px 18px -8px rgba(46,204,113,.55);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--gray-700); font-size: .93rem; margin-bottom: 0; }

.section-head p { color: var(--gray-700); font-size: 1.02rem; margin-top: 6px; }

/* ---------------- Features (Why Choose KIIST) ---------------- */
.feature-card {
    position: relative;
    border-radius: 16px;
    padding: 32px 26px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: var(--white);
    box-shadow: 0 12px 20px -10px rgba(10,38,71,.5);
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.feature-card:nth-child(2) .icon { background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 12px 20px -10px rgba(46,204,113,.5); }
.feature-card:nth-child(3) .icon { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); box-shadow: 0 12px 20px -10px rgba(242,169,0,.5); }
.feature-card:nth-child(4) .icon { background: linear-gradient(135deg, var(--navy-mid), var(--navy)); box-shadow: 0 12px 20px -10px rgba(10,38,71,.5); }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { color: var(--gray-700); font-size: .93rem; margin-bottom: 0; }

/* ---------------- Steps to Apply ---------------- */
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.steps-grid { gap: 30px 18px; max-width: 1280px; margin: 0 auto; }
.step-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    padding: 32px 18px 26px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-icon-wrap { position: relative; width: 68px; margin: 0 auto 18px; }
.step-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: var(--white);
    box-shadow: 0 14px 24px -10px rgba(10,38,71,.55);
    transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover .step-icon { transform: scale(1.08) rotate(-4deg); }
.step-card:nth-child(2) .step-icon { background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 14px 24px -10px rgba(46,204,113,.5); }
.step-card:nth-child(3) .step-icon { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); box-shadow: 0 14px 24px -10px rgba(242,169,0,.5); }
.step-card:nth-child(5) .step-icon { background: linear-gradient(135deg, var(--navy-mid), var(--navy)); box-shadow: 0 14px 24px -10px rgba(10,38,71,.5); }
.step-icon-mpesa { background: linear-gradient(135deg, var(--green), var(--green-dark)) !important; box-shadow: 0 14px 24px -10px rgba(46,204,113,.55) !important; }
.step-body h3 { font-size: .98rem; margin-bottom: 6px; }
.step-body p { color: var(--gray-700); font-size: .85rem; margin-bottom: 0; }
.step-num {
    position: absolute;
    top: -4px; right: -4px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 800;
    font-size: .76rem;
    display: flex; align-items: center; justify-content: center;
    border: 2.5px solid var(--white);
    box-shadow: 0 4px 10px -2px rgba(242,169,0,.6);
}

/* ---------------- Testimonials ---------------- */
.testimonials-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 6px 4px 22px;
    -webkit-overflow-scrolling: touch;
}
.testimonials-track::-webkit-scrollbar { height: 8px; }
.testimonials-track::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
.testimonials-track::-webkit-scrollbar-track { background: transparent; }

.testimonial-card {
    flex: 0 0 330px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    padding: 28px 26px;
}
.testimonial-quote-mark { font-size: 1.7rem; color: var(--gold); opacity: .55; display: block; margin-bottom: 4px; }
.testimonial-text { color: var(--gray-700); font-size: .92rem; font-style: italic; margin-bottom: 20px; min-height: 96px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: .82rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    flex-shrink: 0;
}
.testimonial-card:nth-child(3n+2) .testimonial-avatar { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.testimonial-card:nth-child(3n+3) .testimonial-avatar { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.testimonial-name { font-weight: 700; font-size: .88rem; color: var(--navy); }
.testimonial-role { font-size: .77rem; color: var(--gray-500); }

.dept-card { text-align: left; height: 210px; overflow: hidden; }
.dept-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card { display: block; text-align: left; padding: 14px 18px 13px; cursor: pointer; }
.course-card .icon { width: 32px; height: 32px; font-size: .95rem; border-radius: 9px; margin-bottom: 7px; }
.course-card h3 { font-size: .96rem; margin-bottom: 2px; transition: color .15s ease; }
.course-card:hover h3 { color: var(--green-dark); }
.course-card:nth-child(4n+2) .icon { background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 10px 16px -8px rgba(46,204,113,.5); }
.course-card:nth-child(4n+3) .icon { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); box-shadow: 0 10px 16px -8px rgba(242,169,0,.5); }
.course-card:nth-child(4n) .icon { background: linear-gradient(135deg, var(--navy-mid), var(--navy)); box-shadow: 0 10px 16px -8px rgba(10,38,71,.5); }
.course-card .course-meta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    color: var(--gray-500); font-size: .8rem; margin-top: 2px;
}
.course-card .course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-card .course-meta i { color: var(--green-dark); }
.course-card .course-requirements {
    display: flex; flex-direction: column; gap: 3px;
    margin-top: 6px; padding-top: 6px;
    border-top: 1px solid var(--gray-100);
}
.course-card .course-requirements li {
    display: flex; align-items: flex-start; gap: 6px;
    color: var(--gray-500); font-size: .78rem; line-height: 1.25;
}
.course-card .course-requirements i { color: var(--gold-dark); margin-top: 2px; flex-shrink: 0; }

/* ---------------- Course detail page ---------------- */
.course-single-meta {
    display: flex; flex-wrap: wrap; gap: 18px;
    color: var(--gray-500); font-size: .92rem; font-weight: 600;
    padding-bottom: 18px; border-bottom: 1px solid var(--gray-100);
}
.course-single-meta span { display: inline-flex; align-items: center; gap: 7px; }
.course-single-meta i { color: var(--green-dark); }
.course-single-meta a { color: var(--navy); text-decoration: underline; }
.course-requirements-lg { border-top: 0; padding-top: 0; margin-top: 4px; gap: 10px; }
.course-requirements-lg li { font-size: .95rem; }
.course-requirements-lg i { font-size: 1.05rem; }
.course-single-actions {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-top: 30px;
}
.course-single-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.course-single-back {
    display: inline-block; margin-top: 26px;
    color: var(--gray-500); font-weight: 600; font-size: .9rem;
}
.course-single-back:hover { color: var(--navy); }

.grid-scroll-3 {
    max-height: 692px;
    overflow-y: auto;
    padding-right: 8px;
    margin-right: -8px;
}
.grid-scroll-3 .grid { margin-bottom: 4px; }
.grid-scroll-3::-webkit-scrollbar { width: 8px; }
.grid-scroll-3::-webkit-scrollbar-track { background: transparent; }
.grid-scroll-3::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 8px; }
.grid-scroll-3::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* Feature list with check marks */
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray-700);
}
.check-list-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check-list li::before {
    content: '✔';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

.ordered-list { counter-reset: step; }
.ordered-list li {
    counter-increment: step;
    display: flex;
    gap: 14px;
    padding: 10px 0;
}
.ordered-list li::before {
    content: counter(step);
    background: var(--navy);
    color: var(--white);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 700;
    flex-shrink: 0;
}

/* ---------------- Why choose / split ---------------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: center;
}
.news-layout { display: grid; grid-template-columns: 2.3fr 1fr; gap: 40px; align-items: start; }
.media-block {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border-radius: 20px;
    min-height: 280px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 3rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.media-block-img {
    padding: 0;
    aspect-ratio: 5 / 2.1;
    min-height: 0;
}
.media-block-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Layered accent frame — offset gradient panel behind the image for depth. */
.media-frame { position: relative; }
.media-frame::before {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    background: linear-gradient(135deg, var(--gold), var(--green));
    border-radius: 22px;
    opacity: .16;
    z-index: 0;
}
.media-frame .media-block { position: relative; z-index: 1; box-shadow: 0 16px 40px -12px rgba(10,38,71,.35), 0 0 0 6px rgba(242,169,0,.08); }

.media-badge {
    position: absolute;
    left: -20px;
    bottom: -20px;
    z-index: 2;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.media-badge i {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.media-badge strong { display: block; font-size: 1.3rem; color: var(--navy); line-height: 1.1; }
.media-badge span { font-size: .74rem; color: var(--gray-500); font-weight: 600; }

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: 20px 0 26px;
}
.about-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--navy);
}
.about-highlights i { color: var(--green); font-size: 1.05rem; flex-shrink: 0; }

/* ---------------- Tabs (Admissions requirements / Courses) ---------------- */
.tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--gray-300); }
.tab-btn {
    background: none; border: none; cursor: pointer;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 3px solid transparent;
    font-size: .95rem;
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------------- Intake / info box ---------------- */
.info-box {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 26px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.info-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--green));
}
.info-box h3 { font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.info-box h3 i { color: var(--green-dark); }
.info-box ul li { padding: 8px 0; color: var(--gray-700); border-bottom: 1px dashed var(--gray-300); display: flex; align-items: center; gap: 8px; }
.info-box ul li:last-child { border-bottom: none; }
.info-box ul li i { color: var(--green-dark); flex-shrink: 0; }

/* ---------------- Payment waiting spinner ---------------- */
.payment-spinner {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 5px solid var(--gray-100);
    border-top-color: var(--green);
    animation: payment-spin 0.9s linear infinite;
}
@keyframes payment-spin { to { transform: rotate(360deg); } }

.apply-preselected-banner {
    display: flex; align-items: center; gap: 10px;
    background: rgba(46,204,113,.1);
    border: 1px solid rgba(46,204,113,.3);
    color: var(--green-dark);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: .9rem;
}
.apply-preselected-banner i { font-size: 1.1rem; flex-shrink: 0; }
.apply-preselected-banner strong { color: var(--navy); }

.payment-method-options { display: grid; gap: 10px; margin-bottom: 20px; }
.payment-method-option {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    transition: border-color .15s ease, background .15s ease;
}
.payment-method-option:has(input:checked) { border-color: var(--green); background: rgba(46,204,113,.06); }
.payment-method-option input[type="radio"] { width: auto; margin: 0; accent-color: var(--green); }
.payment-method-panel { margin-bottom: 18px; padding-top: 4px; }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--navy); }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: var(--font);
    font-size: .95rem;
    background: var(--white);
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(18,59,109,.15);
}
textarea { resize: vertical; min-height: 120px; }
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    border: 1px solid var(--gray-100);
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: .93rem;
}
.alert-success { background: #e6f9ee; color: var(--green-dark); border: 1px solid #b7ecd0; }
.alert-error { background: #fdeceb; color: #c0392b; border: 1px solid #f5c6c1; }

input.is-invalid, select.is-invalid, textarea.is-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.field-hint { display: block; color: var(--gray-500); font-size: .78rem; margin-top: 5px; }
.field-hint.is-error { color: #c0392b; font-weight: 600; }

/* ---------------- Application wizard ---------------- */
.stepper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 92px;
    text-align: center;
    cursor: default;
}
.step-item.completed { cursor: pointer; }
.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    background: var(--gray-100);
    color: var(--gray-500);
    flex-shrink: 0;
    transition: background .2s ease, color .2s ease;
}
.step-label {
    font-size: .76rem;
    font-weight: 600;
    color: var(--gray-500);
    line-height: 1.25;
}
.step-item.active .step-circle { background: var(--navy); color: var(--white); }
.step-item.active .step-label { color: var(--navy); }
.step-item.completed .step-circle { background: var(--green); color: var(--white); }
.step-item.completed .step-label { color: var(--ink); }
.step-connector {
    flex: 1;
    height: 2px;
    background: var(--gray-300);
    margin-top: 17px;
    min-width: 16px;
    transition: background .2s ease;
}
.step-connector.completed { background: var(--green); }

.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-step h3 { font-size: 1.15rem; margin-bottom: 4px; }
.wizard-step .step-desc { color: var(--gray-500); font-size: .88rem; margin-bottom: 20px; }
.wizard-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}
.wizard-nav .btn-back { margin-right: auto; }

.review-group { margin-bottom: 20px; }
.review-group h4 { color: var(--navy); font-size: .95rem; margin-bottom: 8px; }
.review-group dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 6px 14px;
    margin: 0;
}
.review-group dt { color: var(--gray-500); font-size: .85rem; }
.review-group dd { margin: 0; font-size: .9rem; color: var(--ink); white-space: pre-wrap; word-break: break-word; }

@media (max-width: 640px) {
    .step-item { width: 66px; }
    .step-label { font-size: .68rem; }
    .review-group dl { grid-template-columns: 1fr; }
    .review-group dt { font-weight: 600; }
}

/* ---------------- News ---------------- */
.news-card {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb-wrap { position: relative; overflow: hidden; }
.news-card img, .news-card .thumb { border-radius: 16px 16px 0 0; }
.news-card img { width: 100%; height: 170px; object-fit: cover; display: block; transition: transform .35s ease; }
.news-card:hover img { transform: scale(1.06); }
.news-card .thumb {
    height: 170px;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy));
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 2rem;
}
.news-date-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--white);
    border-radius: 10px;
    padding: 6px 11px;
    text-align: center;
    line-height: 1.15;
    box-shadow: var(--shadow);
}
.news-date-day { display: block; font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.news-date-month { display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase; color: var(--green-dark); letter-spacing: .5px; }
.news-card .body { padding: 20px; }
.news-card h3 { font-size: 1.02rem; }
.news-card h3 a { color: var(--navy); }
.news-card h3 a:hover { color: var(--green-dark); }
.news-card p { font-size: .88rem; }
.news-readmore { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--green-dark); }
.news-readmore i { font-size: .78rem; transition: transform .2s ease; }
.news-card:hover .news-readmore i { transform: translateX(4px); }

.event-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}
.event-item:last-child { border-bottom: none; }
.event-date-badge {
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    width: 58px; flex-shrink: 0;
    text-align: center;
    padding: 8px 0;
}
.event-date-badge .day { font-size: 1.3rem; font-weight: 700; display: block; }
.event-date-badge .mon { font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr 0.85fr; gap: 30px; align-items: stretch; }
.contact-grid > div { display: flex; flex-direction: column; }
.contact-grid .form-card { flex: 1; display: flex; flex-direction: column; }
.contact-grid .form-card form { flex: 1; display: flex; flex-direction: column; }
.contact-grid .form-card .form-group:last-of-type { flex: 1; display: flex; flex-direction: column; }
.contact-grid .form-card .form-group:last-of-type .input-icon-wrap { flex: 1; display: flex; flex-direction: column; }
.contact-grid .form-card .form-group:last-of-type textarea { flex: 1; }
.contact-grid .map-box { flex: 1; height: auto; }

/* Modern contact form: icon-adorned fields, softer focus glow */
.modern-contact-form .input-icon-wrap { position: relative; }
.modern-contact-form .input-icon-wrap input,
.modern-contact-form .input-icon-wrap textarea { padding-left: 42px; }
.modern-contact-form .input-icon-wrap i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1rem;
    pointer-events: none;
    transition: color .2s ease;
}
.modern-contact-form .input-icon-wrap-top i { top: 16px; transform: none; }
.modern-contact-form input:focus + i,
.modern-contact-form textarea:focus + i { color: var(--green-dark); }
.modern-contact-form input,
.modern-contact-form textarea {
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.modern-contact-form input:focus,
.modern-contact-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46,204,113,.15);
}
.modern-contact-form .btn-apply { display: flex; align-items: center; justify-content: center; gap: 8px; }
.contact-info-list { list-style: none; margin: 20px 0 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--gray-50);
    transition: background .2s ease, box-shadow .2s ease;
}
.contact-info-list li:hover { background: var(--white); box-shadow: var(--shadow); }
.contact-info-list li h4 { margin: 0 0 3px; font-size: .92rem; color: var(--navy); }
.contact-info-list li p { margin: 0; color: var(--gray-500); font-size: .86rem; line-height: 1.5; }
.contact-list-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(46,204,113,.12);
    color: var(--green-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.map-box {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    height: 340px;
    min-height: 340px;
    background: var(--gray-50);
}
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-box iframe { width: 100%; height: 100%; min-height: 260px; border: 0; }

/* ---------------- Footer ---------------- */
.site-footer {
    position: relative;
    background: var(--navy-dark);
    color: rgba(255,255,255,.85);
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 34px;
    padding-top: 56px;
    padding-bottom: 34px;
    position: relative;
}
.footer-links-row { display: contents; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text small { color: rgba(255,255,255,.65); }
.footer-brand p { color: rgba(255,255,255,.65); margin-top: 12px; font-size: .9rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.8);
    transition: color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.footer-social a:hover {
    color: var(--white);
    background: var(--green);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px -6px rgba(46,204,113,.5);
}
.footer-social svg { width: 19px; height: 19px; }
.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 3px;
    border-radius: 2px;
    background: var(--gold);
}
.footer-col ul li { padding: 6px 0; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color .15s ease, padding-left .15s ease; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.75); font-size: .88rem; padding: 7px 0; }
.contact-list a { color: rgba(255,255,255,.75); transition: color .15s ease; }
.contact-list a:hover { color: var(--gold); }
.contact-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem;
    flex-shrink: 0;
}
.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.55);
}
.back-to-top {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-dark);
    border: none;
    font-size: 1.05rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
    z-index: 400;
}
.back-to-top:hover { background: var(--gold-dark); }
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.no-copy { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.no-copy input, .no-copy textarea { -webkit-user-select: text; -moz-user-select: text; user-select: text; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------------- Gallery ---------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.gallery-filter-btn {
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gallery-filter-btn:hover { border-color: var(--navy-mid); color: var(--navy); }
.gallery-filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.gallery-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--gray-100);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card-count {
    position: absolute; top: 10px; right: 10px;
    background: rgba(7, 26, 51, 0.72); color: var(--white);
    font-size: 0.74rem; font-weight: 600;
    padding: 4px 10px; border-radius: 999px;
    display: flex; align-items: center; gap: 5px;
}
.gallery-card-caption {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 26px 14px 10px;
    background: linear-gradient(to top, rgba(10, 38, 71, 0.88), rgba(10, 38, 71, 0));
    text-align: left;
}
.gallery-card-caption strong { color: var(--gold); font-size: 0.92rem; }
.gallery-card-caption em { color: var(--gray-300); font-style: normal; font-size: 0.78rem; }
.gallery-card-caption small { color: var(--gray-300); font-size: 0.72rem; line-height: 1.35; }

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 26, 51, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}
.gallery-lightbox.open { opacity: 1; visibility: visible; }
.gallery-lightbox-stage { max-width: 88vw; max-height: 86vh; text-align: center; }
.gallery-lightbox-stage img {
    max-width: 88vw;
    max-height: 78vh;
    width: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}
.gallery-lightbox-caption {
    color: var(--white);
    margin: 14px 0 0;
    font-size: 0.95rem;
}
.gallery-lightbox-caption.is-hidden { display: none; }
.gallery-lightbox-description {
    color: var(--gray-300);
    max-width: 560px;
    margin: 6px auto 0;
    font-size: 0.85rem;
    line-height: 1.5;
}
.gallery-lightbox-description.is-hidden { display: none; }
.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.gallery-lightbox-close { top: 22px; right: 22px; }
.gallery-lightbox-nav { top: 50%; transform: translateY(-50%); }
.gallery-lightbox-prev { left: 22px; }
.gallery-lightbox-next { right: 22px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
    .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .split, .contact-grid, .news-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}
@media (max-width: 720px) {
    .container { padding: 0 8px; }
    .testimonial-card { flex-basis: 82vw; }
    .media-badge { left: 10px; bottom: -16px; padding: 10px 14px; gap: 10px; }
    .media-badge i { width: 36px; height: 36px; font-size: 1rem; }
    .media-badge strong { font-size: 1.1rem; }
    .about-highlights { grid-template-columns: 1fr; }
    .footer-social a { width: 34px; height: 34px; border-radius: 8px; }
    .footer-social svg { width: 16px; height: 16px; }
    .stats-bar { margin-top: -60px; }
    .stats-float-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
    .stat-item:nth-child(2)::after { display: none; }
    .stat-item:not(:last-child)::after { top: 15%; height: 70%; }
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute;
        top: 78px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 24px;
        box-shadow: var(--shadow-lg);
        display: none;
        gap: 16px;
    }
    .primary-nav.open { display: flex; }
    .primary-nav ul { flex-direction: column; gap: 4px; }
    .primary-nav a { display: block; padding: 10px 4px; }
    .btn-apply { align-self: flex-start; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2rem; }
    .hero-slider { min-height: 72vh; }
    .hero-arrow { display: none; }
    .grid-4, .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-lightbox-nav { width: 38px; height: 38px; font-size: 1rem; }
    .gallery-lightbox-prev { left: 8px; }
    .gallery-lightbox-next { right: 8px; }
    .gallery-lightbox-close { top: 10px; right: 10px; }
    .check-list-2col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 24px; }
}
