:root {
    --primary-blue: #0B3C6D;
    --primary-blue-dark: #072B4F;
    --secondary-blue: #1E5A99;
    --accent-blue: #3DABC7;
    --light-blue: #F0F6FF;
    --gold: #C9A24A;
    --white: #FFFFFF;
    --bg-body: #F7FAFC;
    --text-color: #1F2937;
    --text-muted: #6B7280;
    --border-color: #D9E4F2;
    --footer-bg: #082F57;
    --shadow-sm: 0 4px 16px rgba(11, 60, 109, 0.08);
    --shadow-md: 0 12px 28px rgba(11, 60, 109, 0.12);
    --radius-md: 14px;
    --radius-lg: 20px;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
}

a:hover {
    color: var(--primary-blue);
}

.container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

.site-main {
    min-height: 60vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-blue);
}

.site-brand-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-brand-text strong {
    font-size: 1rem;
}

.site-brand-text small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--primary-blue);
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 999px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    color: var(--white);
}

.page-section {
    padding: 56px 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--secondary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.alerts-wrap {
    padding-top: 16px;
}

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-top: 12px;
    font-weight: 600;
}

.alert-success {
    background: #ECFDF3;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #ECFEFF;
    color: #155E75;
    border: 1px solid #A5F3FC;
}

.site-footer {
    margin-top: 60px;
    background: var(--footer-bg);
    color: var(--white);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.88);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .site-nav {
        justify-content: center;
    }

    .header-cta {
        width: 100%;
    }
}


.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-outline:hover {
    background: rgba(11, 60, 109, 0.06);
    color: var(--primary-blue);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 55%, var(--accent-blue) 100%);
    color: var(--white);
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
}

.hero-copy p {
    margin: 0;
    max-width: 640px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-card-wrap {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.hero-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.hero-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pill-list span {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 700;
}

.section-soft {
    background: var(--light-blue);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.section-link {
    font-weight: 700;
}

.stats-grid,
.card-grid,
.steps-grid {
    display: grid;
    gap: 20px;
}

.stats-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid {
    grid-template-columns: repeat(3, 1fr);
}

.steps-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stat-card,
.step-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-card strong,
.step-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.program-card h3,
.card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.muted-text {
    color: var(--text-muted);
    display: inline-block;
    margin-top: 8px;
}

.cta-band {
    background: linear-gradient(135deg, #082F57 0%, #0B3C6D 60%, #1E5A99 100%);
    color: var(--white);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}

.cta-band h2 {
    margin: 0;
    font-size: 2rem;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-band .btn-outline {
    border-color: rgba(255, 255, 255, 0.75);
    color: var(--white);
}

.cta-band .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

@media (max-width: 1024px) {
    .hero-grid,
    .stats-grid,
    .card-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-card-wrap {
        justify-content: flex-start;
    }
}

.page-hero-card {
    background: linear-gradient(135deg, rgba(11, 60, 109, 0.08), rgba(61, 171, 199, 0.12));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.page-hero-card h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.page-hero-card p {
    margin: 0;
    max-width: 780px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card-divider {
    height: 1px;
    background: var(--border-color);
    margin: 18px 0;
}

.resource-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ECFEFF;
    color: #155E75;
    font-weight: 700;
    font-size: 0.85rem;
}

.resource-badge-protected {
    background: #FEF3C7;
    color: #92400E;
}

@media (max-width: 900px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }
}

.form-stack {
    display: grid;
    gap: 14px;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    color: var(--text-color);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(61, 171, 199, 0.14);
}

.form-stack textarea {
    resize: vertical;
    min-height: 120px;
}

.admin-body {
    background: #f5f9fd;
}

.admin-header {
    background: #0B3C6D;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    color: #ffffff;
    text-decoration: underline;
}

.admin-list {
    display: grid;
    gap: 18px;
}

.admin-list-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.admin-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.92rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.88rem;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #ffffff;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}