/* ============================================================
   NVU - Native Village of Unalakleet
   Main Stylesheet
   ============================================================ */

:root {
    --navy:  #1a3a5c;
    --teal:  #2d8a6e;
    --gold:  #c4922a;
    --cream: #f5f0e8;
    --white: #ffffff;
    --text:  #2c2c2c;
    --text-light: #555555;
    --border: #ddd5c4;
    --shadow: rgba(26,58,92,0.12);
    --nav-height: 72px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-lg: 14px;
    --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }
address { font-style: normal; }

h1, h2, h3, h4, h5 {
    color: var(--navy);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-main { flex: 1; padding-top: var(--nav-height); }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.navbar {
    background: var(--navy);
    box-shadow: 0 2px 16px var(--shadow);
    height: var(--nav-height);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
}
.nav-brand:hover { color: var(--gold); }

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--navy);
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.brand-sub  { font-size: 0.72rem; opacity: 0.75; font-weight: 400; }

/* Nav Menu */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.dropdown-arrow { font-size: 0.55rem; margin-top: 1px; }

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 100;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 0.55rem 1.1rem;
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 400;
    transition: background var(--transition), color var(--transition);
}
.dropdown-menu li a:hover {
    background: var(--cream);
    color: var(--teal);
}

/* Member Portal button */
.btn-portal {
    background: var(--teal) !important;
    color: var(--white) !important;
    border-radius: 20px !important;
    padding: 0.45rem 1.1rem !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
}
.btn-portal:hover { background: #256b56 !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HOME HERO
   ============================================================ */
.home-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0f2540 60%, #1a3a5c 100%);
    color: var(--white);
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(44,138,110,0.2) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 20%, rgba(196,146,42,0.15) 0%, transparent 60%);
}
.home-hero .hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.home-hero h1 { color: var(--white); margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3.2rem); }
.home-hero .subtitle { font-size: clamp(1rem, 2.5vw, 1.3rem); color: var(--gold); font-weight: 500; margin-bottom: 1.5rem; }
.home-hero .location { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary   { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: #a87624; border-color: #a87624; color: var(--navy); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-teal  { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: #256b56; border-color: #256b56; color: var(--white); }
.btn-navy  { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: #0f2540; border-color: #0f2540; color: var(--white); }
.btn-sm    { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-danger:hover { background: #a93226; border-color: #a93226; }

/* ============================================================
   FEATURE CARDS (Home)
   ============================================================ */
.feature-section { padding: 4rem 1.5rem; background: var(--white); }
.feature-section .section-label {
    text-align: center;
    color: var(--teal);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.feature-section h2 { text-align: center; margin-bottom: 2.5rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px var(--shadow); }
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.card h3 { color: var(--navy); margin-bottom: 0.6rem; font-size: 1.05rem; }
.card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.2rem; }
.card .card-link {
    color: var(--teal);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.card .card-link:hover { color: var(--navy); }

/* Service cards */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px var(--shadow); }
.service-card h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1rem; }
.service-card p  { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1rem; }

/* ============================================================
   HOME SECTIONS
   ============================================================ */
.home-section {
    padding: 4rem 1.5rem;
}
.home-section.alt { background: var(--cream); }
.home-section .inner { max-width: 800px; margin: 0 auto; }
.home-section .section-label {
    color: var(--teal);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}
.home-section h2 { margin-bottom: 1rem; }
.home-section p  { color: var(--text-light); margin-bottom: 1.5rem; }

/* ============================================================
   ABOUT / COUNCIL / STAFF CARDS
   ============================================================ */
.council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.council-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
}
.council-card .role {
    display: inline-block;
    background: var(--navy);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}
.council-card .name { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.25rem; }
.council-card .term { color: var(--text-light); font-size: 0.85rem; }

.council-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Staff table */
.staff-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}
.staff-table th {
    background: var(--navy);
    color: var(--white);
    padding: 0.85rem 1.1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
}
.staff-table td {
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: top;
}
.staff-table tr:last-child td { border-bottom: none; }
.staff-table tr:hover td { background: var(--cream); }
.staff-table .vacant { color: #888; font-style: italic; }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.section-intro {
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius) var(--radius) 0 0;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.info-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-box {
    background: rgba(44,138,110,0.08);
    border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.highlight-box p { margin: 0; }

.warning-box {
    background: rgba(196,146,42,0.1);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.callout-contact {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-top: 2rem;
    text-align: center;
}
.callout-contact h3 { color: var(--gold); margin-bottom: 0.5rem; }
.callout-contact p  { color: rgba(255,255,255,0.85); margin: 0.25rem 0; }
.callout-contact a  { color: var(--gold); font-weight: 600; }

/* Table general */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}
.data-table th {
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
}
.data-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--cream); }

/* ============================================================
   ENVIRONMENT TABS
   ============================================================ */
.tabs { margin: 2rem 0; }
.tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}
.tab-btn {
    padding: 0.7rem 1.4rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color var(--transition), border-color var(--transition);
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--teal); }
.tab-btn:hover  { color: var(--navy); }
.tab-panel { display: none; padding: 2rem 0; }
.tab-panel.active { display: block; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--teal);
}
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.6rem;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--teal);
}
.timeline-year { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.timeline-desc { color: var(--text-light); font-size: 0.9rem; margin-top: 0.15rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(45,138,110,0.12);
}
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }

.form-error { color: #c0392b; font-size: 0.85rem; margin-top: 0.3rem; display: block; }
.form-success {
    background: rgba(44,138,110,0.1);
    border: 1px solid var(--teal);
    color: #1a5e45;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-error {
    background: rgba(192,57,43,0.1);
    border: 1px solid #c0392b;
    color: #c0392b;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ============================================================
   MEMBER PORTAL
   ============================================================ */
.portal-header {
    background: var(--navy);
    color: var(--white);
    padding: 2rem 1.5rem;
}
.portal-header h1 { color: var(--white); margin-bottom: 0.25rem; }
.portal-header p  { color: rgba(255,255,255,0.75); }

.portal-body { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }

.file-category { margin-bottom: 2.5rem; }
.file-category h2 {
    font-size: 1.1rem;
    color: var(--navy);
    border-bottom: 2px solid var(--teal);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.file-list { list-style: none; padding: 0; }
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    gap: 1rem;
}
.file-item:hover { background: var(--cream); }
.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.file-desc { color: var(--text-light); font-size: 0.8rem; margin-top: 0.15rem; }
.file-date { color: #aaa; font-size: 0.75rem; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout { display: flex; min-height: calc(100vh - var(--nav-height)); }

.admin-sidebar {
    width: 220px;
    background: var(--navy);
    flex-shrink: 0;
    padding: 1.5rem 0;
}
.admin-sidebar .sidebar-brand {
    padding: 0 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}
.sidebar-nav { list-style: none; padding: 0; }
.sidebar-nav li a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active { background: rgba(255,255,255,0.1); color: var(--white); }

.admin-content { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-content h1 { margin-bottom: 1.5rem; font-size: 1.5rem; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    text-align: center;
}
.stat-card .stat-num { font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-card .stat-label { color: var(--text-light); font-size: 0.85rem; margin-top: 0.4rem; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    font-size: 0.875rem;
}
.admin-table th {
    background: var(--navy);
    color: var(--white);
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 600;
}
.admin-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-active   { background: rgba(44,138,110,0.12); color: var(--teal); }
.badge-inactive { background: rgba(192,57,43,0.1); color: #c0392b; }

.admin-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 2rem;
    max-width: 600px;
}
.admin-form-card h2 { margin-bottom: 1.25rem; font-size: 1.1rem; }

/* Admin login */
.admin-login-wrap {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--cream);
}
.admin-login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px var(--shadow);
    text-align: center;
}
.admin-login-card h1 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.admin-login-card .subtitle { color: var(--text-light); font-size: 0.9rem; margin-bottom: 2rem; }
.admin-login-card .form-label { text-align: left; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 0;
    margin-top: auto;
}
.footer-container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { color: var(--gold); font-size: 1rem; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.site-footer h4 { color: var(--white); font-size: 0.875rem; margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer address { font-size: 0.875rem; line-height: 1.7; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; }
.footer-links li a { font-size: 0.875rem; display: block; padding: 0.15rem 0; }
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.footer-bottom {
    text-align: center;
    padding: 1.25rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
}

/* ============================================================
   LINKS PAGE
   ============================================================ */
.links-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}
.link-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.link-card:hover { box-shadow: 0 4px 16px var(--shadow); transform: translateX(4px); }
.link-card .link-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    flex-shrink: 0;
    font-size: 1.1rem;
}
.link-card .link-text h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.link-card .link-text p  { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.link-card .link-url { color: var(--teal); font-size: 0.85rem; font-weight: 500; margin-top: 0.2rem; display: block; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb span { margin: 0 0.35rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--navy);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        padding: 1rem 0 2rem;
    }
    .nav-menu.open { transform: translateX(0); }

    .nav-link {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        border-radius: 0;
        width: 100%;
    }
    .btn-portal {
        border-radius: 0 !important;
        margin: 0.5rem 1rem !important;
        justify-content: center;
        border-radius: 24px !important;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border-radius: 0;
        display: none;
        min-width: 0;
    }
    .has-dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu li a {
        padding: 0.6rem 2rem;
        color: rgba(255,255,255,0.75);
        background: transparent;
    }
    .dropdown-menu li a:hover { color: var(--gold); background: transparent; }

    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0 1rem; }
    .sidebar-nav li a { padding: 0.5rem 0.75rem; border-radius: var(--radius); }
}

@media (max-width: 600px) {
    .card-grid { grid-template-columns: 1fr; }
    .council-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .file-item { flex-direction: column; align-items: flex-start; }
    .home-hero { padding: 4rem 1rem 3rem; }
    .brand-sub { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .tab-buttons { flex-direction: column; border-bottom: none; border-left: 2px solid var(--border); padding-left: 0; }
    .tab-btn { border-bottom: none; border-left: 3px solid transparent; margin-left: -2px; margin-bottom: 0; }
    .tab-btn.active { border-left-color: var(--teal); }
}

/* ============================================================
   Additional page-specific styles
   ============================================================ */

/* Hero section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, #2d5a8a 60%, var(--teal) 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,149.3C96,139,192,117,288,122.7C384,128,480,160,576,165.3C672,171,768,149,864,138.7C960,128,1056,128,1152,144C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') bottom/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(10,25,40,0.35); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero-sub { color: rgba(255,255,255,0.88); font-size: 1.25rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Section utilities */
.section-navy { background: var(--navy); }
.text-white { color: #fff !important; }
.text-light-muted { color: rgba(255,255,255,0.75); }

/* Service highlights (navy section) */
.service-highlights { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 2rem; }
.sh-item { background: rgba(255,255,255,0.12); color: #fff; padding: .5rem 1.25rem; border-radius: 99px; font-size: .95rem; }

/* Quick cards */
.quick-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.quick-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); text-decoration: none; color: var(--text); display: block; }
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow); color: var(--text); }
.quick-card-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.quick-card h3 { color: var(--navy); margin-bottom: .5rem; }
.quick-card p { color: var(--text-light); font-size: .95rem; margin: 0; }

/* Two-column layout */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; }
.two-col-sm { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
.info-box { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 2rem; }
.info-box h3 { color: var(--gold); margin-bottom: 1rem; }
.fact-list { list-style: none; padding: 0; }
.fact-list li { padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: .95rem; }
.fact-list li:last-child { border-bottom: none; }
.fact-list strong { color: var(--gold); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #2a5080 100%); padding: 3.5rem 0 2.5rem; }
.page-hero h1 { color: #fff; }
.page-hero-sm { padding: 2.5rem 0 2rem; }
.breadcrumb { color: rgba(255,255,255,0.6); font-size: .85rem; margin-bottom: .75rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold); }

/* Content body */
.container-narrow { max-width: 800px; }
.container-narrow-inner { max-width: 760px; }
.content-body p, .content-body ul { margin-bottom: 1.25rem; }
.content-body h2 { margin: 2rem 0 1rem; }
.lead { font-size: 1.15rem; color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.7; }
.source-note { font-size: .85rem; color: #888; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 2rem; }
.page-nav-links { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* Content list */
.content-list { padding-left: 1.5rem; }
.content-list li { margin-bottom: .5rem; }
.two-col-list { column-count: 2; column-gap: 2rem; }

/* Mission blocks */
.mission-block { margin-bottom: 3rem; }
.mission-label { font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.mission-quote { font-size: 1.25rem; line-height: 1.7; color: var(--navy); border-left: 4px solid var(--gold); padding-left: 1.5rem; margin: 0; font-style: italic; }
.vision-quote { border-left-color: var(--teal); }

/* Council grid */
.council-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.council-card { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem 1.25rem; text-align: center; border: 1px solid var(--border); box-shadow: 0 2px 8px var(--shadow); }
.council-avatar { font-size: 2.5rem; margin-bottom: .75rem; }
.council-role { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--teal); font-weight: 600; margin-bottom: .35rem; }
.council-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.council-term { font-size: .85rem; color: var(--text-light); }

/* Staff table */
.staff-table-wrap { overflow-x: auto; }
.staff-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.staff-table th { background: var(--navy); color: #fff; padding: .75rem 1rem; text-align: left; font-weight: 600; }
.staff-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.staff-table tr:hover td { background: rgba(45,138,110,0.05); }
.vacant { color: #999; font-style: italic; }

/* Notice/highlight boxes */
.notice-box { background: #fff8e6; border: 1px solid #e8c77a; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.notice-box p { margin-bottom: .5rem; }
.notice-box p:last-child { margin-bottom: 0; }
.notice-warning { background: #fff3e0; border-color: #ff9800; }
.highlight-box { background: #e8f5f0; border: 1px solid #2d8a6e; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.highlight-urgent { background: #fff0f0; border-color: #c0392b; }
.highlight-urgent strong { color: #c0392b; }
.highlight-box h3 { color: var(--navy); margin-bottom: .5rem; font-size: 1.05rem; }
.resource-box { background: #f0f7ff; border: 1px solid #2a6496; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.resource-box h3 { color: var(--navy); margin-bottom: .5rem; }

/* Contact */
.contact-block { background: var(--cream); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border: 1px solid var(--border); }
.contact-block p { margin-bottom: .4rem; }
.contact-block p:last-child { margin-bottom: 0; }
.contact-row { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.ci-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.contact-info-block { display: flex; flex-direction: column; gap: 0; }

/* Data table */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th { background: var(--navy); color: #fff; padding: .7rem 1rem; text-align: left; }
.data-table td { padding: .6rem 1rem; border-bottom: 1px solid var(--border); }
.data-table tr:nth-child(even) td { background: rgba(0,0,0,0.02); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; border-left: 3px solid var(--teal); }
.tl-item { position: relative; margin-bottom: 1.5rem; }
.tl-item::before { content: ''; position: absolute; left: -2.5rem; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--teal); }
.tl-date { font-weight: 700; color: var(--navy); font-size: .9rem; margin-bottom: .2rem; }
.tl-body { color: var(--text-light); font-size: .95rem; }

/* Tabs */
.tab-nav { display: flex; gap: .5rem; margin-bottom: 2rem; border-bottom: 2px solid var(--border); padding-bottom: 0; flex-wrap: wrap; }
.tab-btn { padding: .65rem 1.5rem; border: none; background: transparent; cursor: pointer; font-size: 1rem; font-family: var(--font); color: var(--text-light); font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all var(--transition); border-radius: var(--radius) var(--radius) 0 0; }
.tab-btn:hover { color: var(--navy); background: var(--cream); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; background: rgba(45,138,110,0.06); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .2s ease; }

/* Benefit cards */
.benefit-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.benefit-card { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; border: 1px solid var(--border); text-align: center; }
.benefit-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.benefit-card h3 { color: var(--navy); margin-bottom: .5rem; }

/* Job listings */
.job-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.job-item { background: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; border-left: 4px solid var(--gold); box-shadow: 0 2px 6px var(--shadow); }
.job-item h3 { color: var(--navy); margin-bottom: .35rem; font-size: 1.05rem; }
.job-item p { margin: 0; color: var(--text-light); font-size: .95rem; }

/* Links list */
.links-list { display: flex; flex-direction: column; gap: 0; }
.link-item { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.link-item:last-child { border-bottom: none; }
.link-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.link-item h3 a { color: var(--teal); }
.link-item h3 a:hover { color: var(--navy); }
.link-item p { margin: 0; color: var(--text-light); font-size: .9rem; }

/* Auth card */
.auth-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: 0 8px 32px var(--shadow); max-width: 440px; margin: 2rem auto; }
.auth-card-header { text-align: center; margin-bottom: 1.75rem; }
.auth-icon { font-size: 3rem; margin-bottom: .5rem; }
.auth-card-header h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.auth-card-header p { color: var(--text-light); margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
    padding: .7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font);
    background: #fff;
    transition: border-color var(--transition);
    width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,138,110,0.12); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); }
.form-card h2 { margin-bottom: .5rem; }
.form-success { background: #e8f5f0; border: 1px solid var(--teal); border-radius: var(--radius-lg); padding: 2rem; text-align: center; }
.form-success h3 { color: var(--teal); margin-bottom: .5rem; }

/* Alert */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .95rem; }
.alert-error { background: #fff0f0; border: 1px solid #f0a0a0; color: #c0392b; }
.alert-success { background: #e8f5f0; border: 1px solid var(--teal); color: var(--navy); }

/* Member portal */
.portal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.portal-header h2 { margin: 0 0 .25rem; }
.portal-header p { margin: 0; color: var(--text-light); }
.file-category { margin-bottom: 2.5rem; }
.file-cat-title { color: var(--navy); font-size: 1.15rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.file-list { display: flex; flex-direction: column; gap: .75rem; }
.file-item { background: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.file-info { display: flex; align-items: center; gap: .85rem; }
.file-icon { font-size: 1.75rem; flex-shrink: 0; }
.file-name { font-weight: 600; color: var(--navy); }
.file-desc { font-size: .88rem; color: var(--text-light); margin-top: .15rem; }
.file-date { font-size: .8rem; color: #999; margin-top: .15rem; }
.placeholder-block { background: #fff; border-radius: var(--radius-lg); padding: 3rem 2rem; border: 2px dashed var(--border); text-align: center; }
.placeholder-block h2, .placeholder-block h3 { color: var(--navy); margin-bottom: .75rem; }
.placeholder-block p { color: var(--text-light); margin-bottom: 1rem; }

/* Admin panel */
.admin-body { background: #f0f2f5; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-nav { width: 220px; background: var(--navy); flex-shrink: 0; padding: 1.5rem 0; }
.admin-brand { color: var(--gold); font-weight: 700; font-size: 1.1rem; padding: 0 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1rem; }
.admin-nav ul { list-style: none; }
.admin-nav ul li a { display: block; padding: .65rem 1.25rem; color: rgba(255,255,255,0.75); font-size: .95rem; transition: all var(--transition); }
.admin-nav ul li a:hover, .admin-nav ul li a.active { color: #fff; background: rgba(255,255,255,0.1); border-left: 3px solid var(--gold); }
.logout-link { color: rgba(255,100,100,0.8) !important; }
.admin-main { flex: 1; padding: 2.5rem; max-width: 1100px; }
.admin-main h1 { margin-bottom: 1.5rem; }
.admin-main h2 { margin-bottom: 1rem; font-size: 1.25rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.stat-num { font-size: 2.5rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: .9rem; color: var(--text-light); margin-top: .25rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.admin-table th { background: var(--navy); color: #fff; padding: .75rem 1rem; text-align: left; font-weight: 600; }
.admin-table td { padding: .65rem 1rem; border-bottom: 1px solid #eee; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(45,138,110,0.04); }
.admin-form-card { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.admin-form { display: flex; flex-direction: column; gap: .85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.muted { color: var(--text-light); font-style: italic; }

/* Badges */
.badge { display: inline-block; padding: .2em .65em; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.badge-green { background: #d4edda; color: #1a6630; }
.badge-red { background: #f8d7da; color: #721c24; }

/* Buttons - additional */
.btn-teal { background: var(--teal); color: #fff; border: none; }
.btn-teal:hover { background: #236b55; color: #fff; }
.btn-gold { background: var(--gold); color: #fff; border: none; }
.btn-gold:hover { background: #a87820; color: #fff; }
.btn-danger { background: #c0392b; color: #fff; border: none; }
.btn-danger:hover { background: #a93226; color: #fff; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

/* Responsive */
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; }
    .admin-wrap { flex-direction: column; }
    .admin-nav { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .two-col-sm { grid-template-columns: 1fr; }
    .two-col-list { column-count: 1; }
}

/* Logo image in nav */
.nav-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
