:root {
    --red: #C0392B;
    --dark-red: #922B21;
    --green: #1E8449;
    --dark-green: #145A32;
    --navy: #1A2550;
    --gold: #D4AC0D;
    --light: #F9F6EF;
    --white: #FFFFFF;
    --text: #1C1C1C;
    --muted: #5D6D7E;
    --line: #E7EAF1;
}

* { box-sizing: border-box; }

body {
    background: var(--light);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    margin: 0;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; }

.site-header {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    align-items: center;
    display: flex;
    gap: 22px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1160px;
    padding: 12px 20px;
}

.brand {
    align-items: center;
    color: white;
    display: flex;
    gap: 12px;
    min-width: max-content;
    text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand img {
    border: 2px solid var(--gold);
    border-radius: 50%;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 1rem; }
.brand small { color: rgba(255,255,255,0.7); font-size: 0.76rem; }

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

.nav-links a {
    border-bottom: 3px solid transparent;
    color: rgba(255,255,255,0.78);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 12px 10px;
    text-transform: uppercase;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
    text-decoration: none;
}

.hero {
    background: linear-gradient(135deg, rgba(26,37,80,0.94), rgba(13,27,62,0.92), rgba(146,43,33,0.9)), url("images/science-banner.jpg") center/cover;
    color: white;
    overflow: hidden;
    position: relative;
}

.hero::after,
.cta::after,
.page-hero::after {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 80px);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero-inner {
    margin: 0 auto;
    max-width: 1160px;
    padding: 94px 20px 82px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-logo {
    border: 5px solid rgba(212,172,13,0.7);
    border-radius: 50%;
    box-shadow: 0 18px 52px rgba(0,0,0,0.35);
    height: 150px;
    margin: 0 auto 28px;
    object-fit: cover;
    padding: 6px;
    width: 150px;
}

.hero h1,
.hero h2,
.page-hero h1,
.page-hero h2,
.cta h2 {
    color: white;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 900;
}

.hero h1 span { color: var(--gold); }

.hero p {
    color: rgba(255,255,255,0.82);
    font-size: 1.08rem;
    margin: 0 auto 20px;
    max-width: 760px;
}

.hero-badge,
.section-tag {
    border-radius: 30px;
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-badge {
    background: rgba(212,172,13,0.18);
    border: 1px solid rgba(212,172,13,0.55);
    color: var(--gold);
    margin-bottom: 18px;
    padding: 6px 18px;
}

.hero-stats {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 38px auto 0;
    max-width: 840px;
}

.stat-item {
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 16px 12px;
}

.stat-num {
    color: var(--gold);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.65);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 8px;
    text-transform: uppercase;
}

.hero-actions,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.button,
button,
input[type="submit"] {
    background: var(--red);
    border: 0;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 900;
    padding: 13px 22px;
    text-decoration: none;
}

.button:hover,
button:hover {
    background: var(--dark-red);
    text-decoration: none;
}

.button.secondary { background: var(--green); }
.button.secondary:hover { background: var(--dark-green); }
.button.light { background: white; color: var(--red); }
.button.light:hover { background: #fff7e1; color: var(--dark-red); }
.danger { background: var(--red); }

.page-hero {
    background: linear-gradient(135deg, var(--navy), #0D1B3E 58%, var(--dark-red));
    color: white;
    overflow: hidden;
    position: relative;
}

.page-hero .wrap {
    padding-bottom: 58px;
    padding-top: 58px;
    position: relative;
    z-index: 1;
}

.page-hero p { color: rgba(255,255,255,0.78); max-width: 760px; }

.wrap {
    margin: 0 auto;
    max-width: 1160px;
    padding: 64px 20px;
}

.band {
    background: #F0F4F8;
    border-block: 1px solid var(--line);
}

.section-header {
    margin-bottom: 42px;
    text-align: center;
}

.section-tag {
    color: var(--red);
    margin-bottom: 10px;
}

.section-line {
    background: linear-gradient(90deg, var(--red), var(--green));
    border-radius: 2px;
    height: 4px;
    margin: 14px auto 0;
    width: 64px;
}

.grid {
    display: grid;
    gap: 22px;
}

.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 28px;
}

.card h2,
.card h3 { margin-top: 0; }

.accent-card { border-top: 5px solid var(--red); }
.accent-card.green { border-top-color: var(--green); }
.accent-card.gold { border-top-color: var(--gold); }

.muted { color: var(--muted); }

.leader-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leader-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.leader-top {
    align-items: flex-start;
    display: flex;
    gap: 22px;
    padding: 30px 30px 0;
}

.leader-photo-wrap {
    flex-shrink: 0;
    position: relative;
}

.leader-photo {
    border: 3px solid var(--red);
    border-radius: 14px;
    display: block;
    height: 120px;
    object-fit: cover;
    object-position: top center;
    width: 105px;
}

.leader-card.patron .leader-photo { border-color: var(--green); }

.leader-role {
    background: var(--red);
    border-radius: 20px;
    bottom: -10px;
    color: white;
    font-size: 0.58rem;
    font-weight: 900;
    left: 50%;
    letter-spacing: 1px;
    padding: 4px 10px;
    position: absolute;
    text-transform: uppercase;
    transform: translateX(-50%);
    white-space: nowrap;
}

.leader-card.patron .leader-role { background: var(--green); }

.leader-title {
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.leader-card.patron .leader-title { color: var(--green); }

.quote-mark {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4rem;
    line-height: 0.8;
    opacity: 0.12;
}

.leader-body {
    color: #3D4F61;
    font-size: 0.9rem;
    padding: 20px 30px 28px;
}

.leader-body p { margin: 0 0 12px; }
.leader-body ul { margin: 10px 0 12px 18px; }

.leader-footer {
    align-items: center;
    border-top: 1px solid #EEF1F8;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 16px 30px;
}

.leader-signature {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
}

.leader-signature span {
    color: var(--muted);
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
}

.small-badge {
    background: var(--red);
    border-radius: 20px;
    color: white;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 4px 10px;
    text-transform: uppercase;
}

.impact-band {
    background: linear-gradient(135deg, var(--dark-green), var(--green));
    color: white;
}

.impact-band h2 { color: white; }
.impact-band .section-tag { color: rgba(255,255,255,0.72); }

.impact-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-card {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 16px;
    padding: 28px 18px;
    text-align: center;
}

.impact-card strong {
    color: white;
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    line-height: 1;
}

.impact-card span {
    color: rgba(255,255,255,0.82);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 10px;
    text-transform: uppercase;
}

.cta {
    background: linear-gradient(135deg, var(--red), var(--dark-red));
    color: white;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.cta .wrap {
    position: relative;
    z-index: 1;
}

.cta p {
    color: rgba(255,255,255,0.85);
    margin: 0 auto 24px;
    max-width: 660px;
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

label {
    color: var(--navy);
    display: block;
    font-weight: 900;
    margin-bottom: 6px;
}

input,
select,
textarea {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    padding: 12px 13px;
    width: 100%;
}

textarea { min-height: 130px; resize: vertical; }

.alert {
    border-radius: 10px;
    margin: 0 0 18px;
    padding: 13px 15px;
}

.alert.success { background: #E6F4EC; color: #145A32; }
.alert.error { background: #FDECEB; color: #922B21; }
.alert.info { background: #EEF1F8; color: var(--navy); }

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

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 11px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #EEF1F8;
    color: var(--navy);
}

.admin-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: var(--navy);
    color: white;
    padding: 24px 18px;
}

.sidebar h2 { color: white; }

.sidebar a {
    border-radius: 8px;
    color: white;
    display: block;
    font-weight: 800;
    padding: 10px 12px;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255,255,255,.12);
    color: var(--gold);
    text-decoration: none;
}

.admin-main { padding: 28px; }

.site-footer {
    background: var(--navy);
    color: white;
    padding: 48px 20px 34px;
    text-align: center;
}

.site-footer img {
    border: 3px solid var(--gold);
    border-radius: 50%;
    height: 80px;
    object-fit: cover;
    width: 80px;
}

.site-footer h3 {
    color: white;
    margin-bottom: 4px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    margin: 24px 0;
}

.footer-links a {
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--gold);
    text-decoration: none;
}

@media (max-width: 900px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links { justify-content: flex-start; }

    .grid.three,
    .grid.two,
    .leader-grid,
    .impact-grid,
    .hero-stats,
    .form-grid,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .leader-top,
    .leader-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
