:root {
    --navy: #071428;
    --ink: #0b2545;
    --ink-soft: #16365c;
    --gold: #e8b84a;
    --gold-dark: #c4922a;
    --cream: #f4efe4;
    --paper: #faf8f4;
    --teal: #2a6f7a;
    --text: #1d2430;
    --muted: #5b6573;
    --line: #e4ddd0;
    --white: #ffffff;
    --shadow: 0 18px 40px rgba(7, 20, 40, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: var(--paper);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, .display-font {
    font-family: "Fraunces", Georgia, serif;
    letter-spacing: -0.02em;
    color: var(--ink);
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.topbar {
    background: var(--navy);
    color: #d7deea;
    font-size: 0.82rem;
    padding: 0.45rem 0;
}

.topbar a { color: #d7deea; }

.site-nav {
    background: rgba(250, 248, 244, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0;
}

.navbar-brand strong {
    display: block;
    font-family: "Fraunces", serif;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.1;
}

.navbar-brand small {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-icon {
    height: 48px;
    width: 48px;
    object-fit: contain;
    display: block;
}

.footer-logo-wrap {
    display: inline-block;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
}

.site-nav .nav-link {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.8rem;
}

.site-nav .nav-link.active,
.site-nav .nav-link:hover {
    color: var(--gold-dark);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: none;
    font-weight: 700;
    border-radius: 999px;
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.btn-navy {
    background: var(--ink);
    color: var(--white);
    border: none;
    font-weight: 700;
    border-radius: 999px;
}

.btn-navy:hover { background: var(--navy); color: var(--gold); }

.btn-outline-navy {
    border: 1.5px solid var(--ink);
    color: var(--ink);
    font-weight: 700;
    border-radius: 999px;
}

.btn-outline-navy:hover {
    background: var(--ink);
    color: var(--white);
}

.hero {
    position: relative;
    background:
        linear-gradient(115deg, rgba(7, 20, 40, 0.92) 0%, rgba(11, 37, 69, 0.78) 55%, rgba(42, 111, 122, 0.55) 100%),
        url("https://images.unsplash.com/photo-1523580846011-d95a429affd7?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
    color: var(--white);
    padding: 6.5rem 0 5.5rem;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 70px;
    background: var(--paper);
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 4.1rem);
    line-height: 1.08;
    max-width: 16ch;
}

.hero p.lead {
    color: #e8edf4;
    max-width: 38rem;
}

.kicker {
    display: inline-block;
    background: rgba(232, 184, 74, 0.18);
    color: var(--gold);
    border: 1px solid rgba(232, 184, 74, 0.4);
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-hero {
    background: var(--ink);
    color: var(--white);
    padding: 4.2rem 0 3.4rem;
    position: relative;
}

.page-hero h1 { color: var(--white); }
.page-hero p { color: #d4dce8; max-width: 42rem; }

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42px;
    background: var(--paper);
    clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}

.section {
    padding: 4.5rem 0 5rem;
    position: relative;
    z-index: 1;
}

.section-cream { background: var(--cream); }
.section-navy { background: var(--ink); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.stat-grid {
    margin-top: -3.4rem;
    position: relative;
    z-index: 2;
}

.stat-card, .info-card, .op-card, .program-card, .team-card, .legal-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 1.5rem 1.3rem;
    text-align: center;
}

.stat-card .num {
    font-family: "Fraunces", serif;
    font-size: 2.1rem;
    color: var(--ink);
    display: block;
}

.stat-card span.label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.info-card, .op-card, .program-card, .team-card {
    padding: 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.op-card, .program-card, .team-card {
    height: 100%;
}

.info-card:hover, .op-card:hover, .program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(7, 20, 40, 0.16);
}

.icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 184, 74, 0.18);
    color: var(--gold-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.icon-badge.teal {
    background: rgba(42, 111, 122, 0.14);
    color: var(--teal);
}

.timeline {
    position: relative;
    padding-left: 1.4rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--gold);
}

.timeline-item {
    position: relative;
    padding: 0 0 1.8rem 1.6rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.4rem;
    top: 0.4rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--ink);
}

.legal-table td, .legal-table th {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.legal-table th {
    width: 38%;
    color: var(--muted);
    font-weight: 600;
}

.process-step {
    background: var(--white);
    border-radius: 18px;
    padding: 1.4rem;
    border: 1px solid var(--line);
    height: 100%;
}

.process-step .step-no {
    font-family: "Fraunces", serif;
    color: var(--gold-dark);
    font-size: 1.7rem;
    line-height: 1;
}

.form-control, .form-select {
    border-radius: 12px;
    border-color: #d9d1c3;
    padding: 0.7rem 0.9rem;
    background: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(232, 184, 74, 0.2);
}

.site-footer {
    background: var(--navy);
    color: #c9d2df;
    padding: 3.5rem 0 1.4rem;
    margin-top: auto;
    position: relative;
    z-index: 2;
    clear: both;
}

.site-footer h5, .site-footer h6 { color: var(--white); }
.site-footer a { color: #c9d2df; }
.site-footer a:hover { color: var(--gold); }
.site-footer hr { border-color: rgba(255,255,255,0.12); margin: 2rem 0 1rem; }
.footer-links li { margin-bottom: 0.4rem; }
.cin-line { color: var(--gold); font-weight: 600; font-size: 0.9rem; }

.alert-soft {
    background: #eef6ef;
    border: 1px solid #c9e3cc;
    color: #1e5a2a;
    border-radius: 14px;
}

.alert-danger-soft {
    background: #fdecec;
    border: 1px solid #f3c4c4;
    color: #8a1f1f;
    border-radius: 14px;
}

.admin-wrap { min-height: 100vh; background: #f3efe6; }
.admin-side {
    background: var(--navy);
    min-height: 100vh;
    padding: 1.6rem 1.1rem;
    color: #d7deea;
}
.admin-side a {
    display: block;
    color: #d7deea;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.admin-side a.active, .admin-side a:hover {
    background: rgba(232, 184, 74, 0.16);
    color: var(--gold);
}

.table thead { background: var(--cream); }
.badge-new { background: var(--gold); color: var(--navy); }

.project-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: var(--shadow);
}

.project-mark {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--gold-dark);
    background: rgba(232, 184, 74, 0.16);
    border-radius: 999px;
    padding: 0.28rem 0.8rem;
}

.project-mark.teal {
    color: var(--teal);
    background: rgba(42, 111, 122, 0.14);
}

@media (max-width: 767px) {
    .hero { padding: 4.2rem 0 4rem; }
    .stat-grid { margin-top: -1.5rem; }
}
