:root {
    --ink: #111827;
    --muted: #5b6472;
    --surface: #ffffff;
    --surface-soft: #f5f7fa;
    --line: #d8dee8;
    --primary: #0a67d8;
    --primary-dark: #034aa6;
    --primary-soft: #e8f2ff;
    --accent: #ffd21f;
    --accent-dark: #e5b800;
    --red: #e30620;
    --red-dark: #b90018;
    --shadow: 0 20px 60px rgba(3, 74, 166, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

img,
svg {
    display: block;
    max-width: 100%;
}

.material-symbols-rounded {
    font-size: 1.25rem;
    line-height: 1;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    color: #ffffff;
    transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    color: #06221d;
    background: linear-gradient(135deg, var(--accent), #fff4c7);
    font-size: 0.8rem;
    font-weight: 800;
}

.brand-logo {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(3, 74, 166, 0.18);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a {
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.is-open .site-nav a:hover,
.site-header.is-open .site-nav a:focus-visible {
    background: var(--surface-soft);
}

.icon-button {
    display: inline-grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.menu-button {
    display: none;
}

.hero {
    position: relative;
    display: grid;
    min-height: 92vh;
    align-items: end;
    padding: 8.5rem clamp(1rem, 5vw, 5rem) 3rem;
    overflow: hidden;
    color: #ffffff;
    background: #061b42;
}

.hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(4, 23, 62, 0.92) 0%, rgba(4, 42, 110, 0.62) 48%, rgba(227, 6, 32, 0.2) 100%),
        linear-gradient(0deg, rgba(4, 23, 62, 0.92) 0%, rgba(4, 23, 62, 0) 42%);
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1800&q=80");
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(3.3rem, 9vw, 7.8rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 680px;
    margin: 1.4rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    min-height: 3.1rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
    outline: none;
    transform: translateY(-2px);
}

.button-primary {
    color: #07111f;
    background: var(--accent);
    box-shadow: 0 14px 34px rgba(240, 180, 41, 0.22);
}

.button-outline {
    color: var(--primary-dark);
    border: 1px solid rgba(10, 103, 216, 0.26);
    background: #ffffff;
}

.button-small {
    min-height: 2.55rem;
    padding: 0.65rem 0.9rem;
    color: #ffffff;
    background: var(--primary);
}

.button-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
    position: absolute;
    z-index: 2;
    right: clamp(1rem, 5vw, 5rem);
    bottom: 3rem;
    width: min(360px, calc(100% - 2rem));
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.panel-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.intro-section {
    background: var(--surface);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.intro-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.metric-row div {
    min-height: 9rem;
    padding: 1.2rem;
    border-right: 1px solid var(--line);
}

.metric-row div:last-child {
    border-right: 0;
}

.metric-row strong {
    display: block;
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
}

.metric-row span {
    display: block;
    margin-top: 0.6rem;
    color: var(--muted);
    font-weight: 700;
}

.pillars-section {
    background: #eef5ff;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.pillar-card {
    min-height: 280px;
    padding: 1.2rem;
    border: 1px solid rgba(10, 103, 216, 0.18);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.pillar-card .material-symbols-rounded {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary);
}

.pillar-card:nth-child(2) .material-symbols-rounded {
    background: var(--red);
}

.pillar-card:nth-child(4) .material-symbols-rounded {
    color: #07111f;
    background: var(--accent);
}

.pillar-card h3,
.program-list h3,
.newsletter-form h3 {
    margin: 1rem 0 0.45rem;
    font-size: 1.08rem;
}

.pillar-card p,
.program-list p,
.newsletter-form p {
    margin: 0;
    color: var(--muted);
}

.programs-section {
    background: var(--surface);
}

.program-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1.2rem;
    align-items: stretch;
}

.program-list {
    display: grid;
    gap: 1rem;
}

.program-list article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.program-list .material-symbols-rounded {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.program-list h3 {
    margin-top: 0;
}

.newsletter-form {
    align-self: stretch;
    padding: 1.4rem;
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(3, 74, 166, 0.88), rgba(3, 74, 166, 0.88)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.newsletter-form p {
    color: rgba(255, 255, 255, 0.78);
}

label {
    display: block;
    margin: 1rem 0 0.4rem;
    font-size: 0.86rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 109, 91, 0.13);
    outline: none;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
}

.submit-icon {
    align-self: end;
    color: #06221d;
    background: var(--accent);
}

.contact-section {
    background: var(--surface-soft);
}

.content-section {
    background: #ffffff;
}

.jobs-section {
    background: #fff8df;
}

.split-heading {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.post-card,
.empty-state,
.job-card,
.admin-panel,
.admin-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.post-card {
    overflow: hidden;
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--primary-soft);
}

.post-card div,
.empty-state {
    padding: 1.2rem;
}

.post-card h3,
.empty-state h3,
.job-card h3 {
    margin: 0.45rem 0;
}

.post-card p,
.empty-state p,
.job-card p {
    margin: 0;
    color: var(--muted);
}

.content-meta {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.empty-state {
    grid-column: 1 / -1;
}

.empty-state .material-symbols-rounded {
    color: var(--primary);
    font-size: 2rem;
}

.job-list {
    display: grid;
    gap: 1rem;
}

.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem;
}

.job-card p + p {
    margin-top: 0.35rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 920px;
}

.field-group label {
    margin-top: 0;
}

.full-span {
    grid-column: 1 / -1;
}

.contact-form .button-primary {
    width: fit-content;
}

.toast {
    position: fixed;
    z-index: 30;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    max-width: min(420px, calc(100% - 2rem));
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 8px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.toast-success {
    background: var(--primary);
}

.toast-error {
    background: #b42318;
}

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 2rem clamp(1rem, 5vw, 5rem);
    color: #ffffff;
    background: #061b42;
}

.admin-body {
    min-height: 100vh;
    background: var(--surface-soft);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(18px);
}

.admin-main {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1rem, 4vw, 3rem);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.admin-panel {
    padding: 1.25rem;
}

.admin-panel h1,
.admin-panel h2 {
    margin: 0 0 1rem;
}

.admin-form {
    display: grid;
    gap: 0.9rem;
}

.admin-form label {
    margin: 0 0 0.35rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-login {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1rem;
}

.admin-login .admin-panel {
    width: min(440px, 100%);
}

.admin-message {
    margin: 1rem 0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: #ffffff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .pillar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pillar-card:last-child {
        grid-column: 1 / -1;
    }

    .hero-panel {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 2rem;
    }
}

@media (max-width: 780px) {
    .menu-button {
        display: inline-grid;
    }

    .site-nav {
        position: absolute;
        top: calc(100% - 0.4rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--ink);
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        border-radius: 8px;
    }

    .hero {
        min-height: 86vh;
    }

    .intro-grid,
    .program-layout,
    .contact-form,
    .content-grid,
    .admin-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .split-heading,
    .job-card {
        align-items: stretch;
        flex-direction: column;
    }

    .metric-row {
        grid-template-columns: 1fr;
    }

    .metric-row div {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .metric-row div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 560px) {
    .hero-actions,
    .button {
        width: 100%;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .pillar-card:last-child {
        grid-column: auto;
    }

    .program-list article {
        grid-template-columns: 1fr;
    }
}
