:root {
    --navy: #0D1B2A;
    --blue: #0D1B2A;
    --blue-hover: #162B44;
    --gold: #F97316;
    --gold-light: #FB923C;
    --secondary-blue: #2D6AA5;
    --maroon: #7a1030;
    --orange: #F97316;
    --green: #22C55E;
    --bg: #FFFFFF;
    --soft-bg: #F8F9FA;
    --border: #ECECEC;
    --text: #222;
    --muted: #6B7280;
    --caption: #9CA3AF;
    --radius: 10px;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
    --font-heading: 'Fraunces', Georgia, serif;
    --font-mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---- Header / Nav (matches the public site header design) ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 6%; gap: 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--bg); }
.brand img { height: 42px; width: 42px; border-radius: 8px; object-fit: cover; }
.brand:hover { color: var(--gold-light); }
#navLinks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
#navLinks a { color: var(--bg); opacity: .85; font-weight: 500; font-size: 14.5px; }
#navLinks a:hover { color: var(--gold-light); opacity: 1; }
#navLinks a.btn { background: none; padding: 0; border-radius: 0; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--bg); width: 34px; height: 34px; }
.burger svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
    #navLinks {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 6% 24px;
        gap: 16px;
        display: none;
        box-shadow: 0 12px 24px rgba(0,0,0,.15);
    }
    #navLinks.open { display: flex; }
    .burger { display: flex; align-items: center; justify-content: center; }
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--navy), #123b7a);
    color: #fff;
    padding: 70px 20px;
    text-align: center;
    box-sizing: border-box;
}
/* Used only on the homepage hero - guarantees it never covers the full
   viewport, so visitors always see a peek of the next section below. */
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 24px; opacity: .95; }
.hero .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: .95rem;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--blue-hover); text-decoration:none; }
.btn-danger { background: var(--maroon); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }

/* ---- Sections ---- */
.section { padding: 60px 20px; }
.section h2 { text-align: center; color: var(--navy); font-size: 1.8rem; margin-bottom: 30px; }
.section-alt { background: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 22px; }
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    border-top: 4px solid var(--gold);
}
.card h3 { margin-top: 0; color: var(--navy); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; margin: 20px 0; }
.stat-box { background: #fff; border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.stat-box .num { font-size: 2.1rem; font-weight: 700; color: var(--navy); }
.stat-box .label { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---- Forms ---- */
.form-box { background: #fff; border-radius: var(--radius); padding: 30px; max-width: 520px; margin: 40px auto; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.form-box h2 { color: var(--navy); text-align: center; }
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: #333; }
input, select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: .95rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
.form-actions { margin-top: 20px; }
.form-actions .btn { width: 100%; }
.help-text { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .92rem; }
.alert-success { background: #e6f6ec; color: #1e5c37; border: 1px solid #b7e3c6; }
.alert-error { background: #fce9e9; color: #7a1010; border: 1px solid #f2b9b9; }
.alert-warn { background: #fff6e0; color: #7a5300; border: 1px solid #f2d98a; }
.alert-info { background: #e9f2fc; color: #114a80; border: 1px solid #b9d6f2; }

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: .92rem; }
th { background: var(--navy); color: #fff; font-weight: 600; }
tr:hover td { background: #f5f8fd; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.06); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .75rem; font-weight: 700; }
.badge-pending { background: #fff2cc; color: #7a5300; }
.badge-approved { background: #d9f2e3; color: #1e5c37; }
.badge-rejected { background: #f9d6d6; color: #7a1010; }
.badge-blocked { background: #f9d6d6; color: #7a1010; }
.badge-active { background: #d9f2e3; color: #1e5c37; }

/* ---- Dashboard layout ---- */
.dash-wrap { display: flex; min-height: calc(100vh - 74px); }
.sidebar { width: 230px; background: var(--navy); color: #fff; padding: 24px 0; flex-shrink: 0; }
.sidebar a { display: block; color: #cfd9ef; padding: 12px 24px; font-weight: 600; font-size: .92rem; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.dash-main { flex: 1; padding: 30px; max-width: 1000px; }
@media (max-width: 800px) {
    .dash-wrap { flex-direction: column; }
    .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px; }
    .sidebar a { padding: 8px 14px; white-space: nowrap; }
}

/* ---- Image-driven hero (separate media layer + content layer — far more
   reliable than background-image+flex-centering on a single element) ---- */
.hero-media-wrap {
    position: relative;
    color: #fff;
    overflow: hidden;
    min-height: min(70vh, 620px);
    max-height: 85vh;
    display: flex;
    align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--navy); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,42,94,.9) 10%, rgba(10,42,94,.55) 55%, rgba(10,42,94,.25) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; padding: 90px 40px 60px; }
.hero-inner h1 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; margin: 14px 0; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-inner p { font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,.88); max-width: 56ch; text-shadow: 0 1px 14px rgba(0,0,0,.4); margin-bottom: 26px; }
.hero-inner .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-cue {
    position: absolute;
    bottom: 18px;
    left: 40px;
    z-index: 1;
    opacity: .85;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
@media (max-width: 700px) {
    .hero-media-wrap { min-height: min(65vh, 520px); }
    .hero-inner { padding: 70px 24px 44px; max-width: 100%; }
}

/* Compact photo header for interior pages (same mechanic, shorter) */
.page-header-media-wrap {
    position: relative;
    color: #fff;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.page-header-media-wrap .hero-media::after {
    background: linear-gradient(135deg, rgba(10,42,94,.88), rgba(122,16,48,.68));
}
.page-header-inner { position: relative; z-index: 1; padding: 40px 20px; max-width: 700px; }
.page-header-inner h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.page-header-inner p { color: rgba(255,255,255,.9); text-shadow: 0 1px 14px rgba(0,0,0,.4); }

/* ---- Icon circles (stats, program features) ---- */
.icon-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.icon-circle-navy { background: rgba(10,42,94,.1); color: var(--navy); }
.icon-circle-gold { background: rgba(242,183,5,.18); color: #a97c00; }
.icon-circle-maroon { background: rgba(122,16,48,.1); color: var(--maroon); }
.icon-circle-green { background: rgba(46,125,79,.1); color: var(--green); }

/* ---- Split section: image on one side, text on the other ---- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.split-section.reverse .split-image { order: 2; }
.split-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
@media (max-width: 800px) {
    .split-section { grid-template-columns: 1fr; }
    .split-section.reverse .split-image { order: 0; }
}

/* ---- Program / project cards with photo ---- */
.photo-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.photo-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.photo-card .photo-card-body { padding: 20px 22px; }
.photo-card h3 { margin-top: 0; color: var(--navy); }

/* ---- Photo gallery grid ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.gallery-grid a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }

/* ---- Humans of WUIF carousel (simple, CSS-scroll based) ---- */
.humans-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 4px 20px;
    scroll-snap-type: x mandatory;
}
.humans-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.humans-card img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 3px solid var(--gold);
}
.humans-card p { font-style: italic; color: #444; font-size: .92rem; }
.humans-card .name { font-weight: 700; color: var(--navy); margin-top: 8px; font-style: normal; }

/* ---- Login split-screen ---- */
.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 74px);
}
.login-split-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.login-split-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    overflow: hidden;
    background: var(--maroon);
}
.login-split-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.login-split-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,42,94,.85), rgba(10,42,94,.15));
    z-index: 0;
}
.login-split-image .quote-box {
    position: relative;
    z-index: 1;
    color: #fff;
}
.login-split-image .quote-box p.quote { font-size: 1.1rem; font-style: italic; margin-bottom: 10px; }
@media (max-width: 850px) {
    .login-split { grid-template-columns: 1fr; }
    .login-split-image { min-height: 220px; }
}
/* ---- Footer ---- */
footer { background: var(--navy); color: var(--bg); padding: 40px 20px 20px; margin-top: 40px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer h4 { color: var(--gold-light); margin-top: 0; }
footer p { opacity: .85; }
footer a { color: var(--bg); opacity: .85; }
footer a:hover { color: var(--gold-light); opacity: 1; }
.footer-bottom { text-align: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; opacity: .55; }
