/* ============================================================
   NABME — thenabme.org
   National Advisory Board for Motorsports Education
   ============================================================ */

/* 01. CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Brand */
    --nabme-blue: #5B6FA5;
    --nabme-blue-dark: #2D3A5C;
    --nabme-blue-deeper: #1E2840;
    --nabme-blue-light: #EEF1F8;
    --nabme-red: #C41230;
    --nabme-red-dark: #9E0E26;

    /* Neutrals */
    --white: #FFFFFF;
    --bg: #F5F6FA;
    --border: #E2E5EC;
    --text: #1A1E2E;
    --text-muted: #5A6175;
    --text-light: #8A90A2;

    /* Type */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Manrope', var(--font);

    /* Layout */
    --max-w: 1140px;
    --radius: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 02. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--nabme-blue);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--nabme-red);
}

ul {
    list-style: none;
}

/* 03. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 24px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 04. LAYOUT
   ============================================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-light {
    background: var(--white);
}

.section-alt {
    background: var(--bg);
}

.section-dark {
    background: var(--nabme-blue-dark);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nabme-red);
    margin-bottom: 12px;
}

.section-label-light {
    color: rgba(255,255,255,0.7);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 48px;
}

.section-dark .section-intro {
    color: rgba(255,255,255,0.75);
}

/* 05. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--nabme-red);
    color: var(--white);
    border-color: var(--nabme-red);
}

.btn-primary:hover {
    background: var(--nabme-red-dark);
    border-color: var(--nabme-red-dark);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* 06. NAV
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    transition: box-shadow 0.3s var(--ease);
}

.site-nav.scrolled {
    box-shadow: var(--shadow);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s var(--ease);
}

.nav-links a:hover {
    color: var(--nabme-red);
}

.nav-links .btn {
    color: var(--white);
}

.nav-links .btn:hover {
    color: var(--white);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 32px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-links a {
    display: block;
    padding: 16px 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-nav-links a:hover {
    color: var(--nabme-red);
}

/* 07. HERO
   ============================================================ */
.section-hero {
    background: url('images/hero-bg.jpg') center center / cover no-repeat;
    padding: 180px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30,40,64,0.92) 0%,
        rgba(45,58,92,0.85) 40%,
        rgba(91,111,165,0.75) 100%
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin: 0 auto 32px;
    height: 64px;
    width: auto;
}

.section-hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0 auto 28px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-accent {
    width: 72px;
    height: 4px;
    background: var(--nabme-red);
    margin: 0 auto 40px;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(196,18,48,0.4);
}

.hero-trademark {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 08. MISSION
   ============================================================ */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
    margin-top: 8px;
}

.mission-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.mission-text p:first-child {
    color: var(--text);
    font-size: 1.05rem;
}

.mission-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--nabme-blue);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    list-style: none;
}

.stat-disciplines li {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--nabme-blue);
    background: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* 09. PRINCIPLES GRID
   ============================================================ */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.principle-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.principle-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.principle-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--nabme-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--nabme-blue);
}

.principle-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.principle-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 10. PARTNERS
   ============================================================ */
.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.partner-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    border: 1px solid var(--border);
}

.partner-logo-area {
    margin-bottom: 20px;
}

.partner-logo-img {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

.partner-name-display {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--nabme-blue-dark);
    letter-spacing: 0.02em;
}

.partner-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text);
}

.partner-card h3 a {
    color: var(--text);
}

.partner-card h3 a:hover {
    color: var(--nabme-red);
}

.partner-card p a {
    color: var(--nabme-blue);
    font-weight: 500;
}

.partner-card p a:hover {
    color: var(--nabme-red);
}

.partner-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.65;
}

.partner-signatory {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.partner-signatory strong {
    font-size: 0.95rem;
    color: var(--text);
}

.partner-signatory span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 11. BOARD / TEAM
   ============================================================ */
.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.board-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 20px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.board-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.board-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--nabme-blue-light);
}

.board-card h4 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.board-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* 11b. COMMITTEE
   ============================================================ */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.committee-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 140px;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.committee-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.committee-logo {
    max-height: 52px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.committee-logos-dual {
    display: flex;
    align-items: center;
    gap: 12px;
}

.committee-logos-dual .committee-logo {
    max-height: 40px;
    max-width: 80px;
}

.committee-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* 12. CONTACT / CTA
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    align-items: center;
}

.contact-text h2 {
    margin-bottom: 16px;
}

.contact-text p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-list li {
    padding-left: 24px;
    position: relative;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

.contact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nabme-red);
}

.contact-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.contact-card p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.contact-card .btn {
    width: 100%;
    margin-bottom: 16px;
}

.contact-email {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* 13. FOOTER
   ============================================================ */
.site-footer {
    background: var(--nabme-blue-deeper);
    color: rgba(255,255,255,0.6);
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer-bottom p {
    font-size: 0.8rem;
}

.footer-llms {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    transition: color 0.2s var(--ease);
}

.footer-llms:hover {
    color: rgba(255,255,255,0.6);
}

.footer-links-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 14. RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-stats {
        flex-direction: row;
    }

    .stat-card {
        flex: 1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .section-hero {
        padding: 140px 0 80px;
        min-height: 440px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .mission-stats {
        flex-direction: column;
    }

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

    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* 15. JOBS PAGE
   ============================================================ */

/* Jobs Hero (compact) */
.jobs-hero {
    background: url('images/hero-bg.jpg') center center / cover no-repeat;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
}

.jobs-hero h1 {
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

/* Active nav link */
.nav-active {
    color: var(--nabme-red) !important;
    font-weight: 600 !important;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    min-width: 72px;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.filter-pill:hover {
    border-color: var(--nabme-blue);
    color: var(--nabme-blue);
}

.filter-pill.active {
    background: var(--nabme-blue);
    border-color: var(--nabme-blue);
    color: var(--white);
}

.jobs-count {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Job Cards */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 840px;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease);
}

.job-card:hover {
    box-shadow: var(--shadow-sm);
}

.job-card-featured {
    border-left: 3px solid var(--nabme-red);
}

.job-card-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    cursor: pointer;
}

.job-card-logo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.job-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.job-card-info {
    flex: 1;
    min-width: 0;
}

.job-card-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.job-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.job-card-sep {
    color: var(--text-light);
}

.job-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.job-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.job-badge-category {
    background: var(--nabme-blue-light);
    color: var(--nabme-blue);
}

.job-badge-type {
    background: #f0f0f0;
    color: var(--text-muted);
}

.job-badge-remote {
    background: #e8f5e9;
    color: #2e7d32;
}

.job-badge-featured {
    background: var(--nabme-red);
    color: var(--white);
}

.job-card-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.job-card-pay {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.job-card-date {
    font-size: 0.78rem;
    color: var(--text-light);
}

.job-card-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s var(--ease);
    margin-top: 2px;
}

.job-card-toggle:hover {
    color: var(--nabme-blue);
    background: var(--nabme-blue-light);
}

.job-card.expanded .job-card-toggle svg {
    transform: rotate(180deg);
}

/* Expandable Detail */
.job-card-detail {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid var(--border);
}

.job-card.expanded .job-card-detail {
    display: block;
}

.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0;
}

.job-detail-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nabme-blue);
    margin-bottom: 8px;
}

.job-detail-section p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.job-detail-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.job-detail-item {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.job-detail-item strong {
    color: var(--text);
}

/* Empty State */
.jobs-empty {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
    color: var(--text-light);
    gap: 12px;
}

.jobs-empty h3 {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.jobs-empty p {
    font-size: 0.95rem;
}

.link-btn {
    background: none;
    border: none;
    color: var(--nabme-blue);
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.link-btn:hover {
    color: var(--nabme-red);
}

/* Student CTA */
.student-cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    align-items: center;
}

.student-cta-info h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.student-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.student-checklist li {
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.student-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--nabme-blue);
    background: var(--nabme-blue-light);
}

.student-cta-action {
    text-align: center;
}

.student-cta-action p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.student-cta-action .btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 12px;
}

.student-cta-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.student-cta-crs {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.student-cta-crs a {
    color: var(--nabme-red);
    font-weight: 600;
    text-decoration: none;
}
.student-cta-crs a:hover {
    text-decoration: underline;
}

/* Employer Section */
.employer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.employer-value-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.employer-value-card .principle-icon {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

.employer-value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.employer-value-card p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Pricing Card */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.pricing-header {
    margin-bottom: 28px;
}

.pricing-header h3 {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.pricing-dollar {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--nabme-blue);
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--nabme-blue-light);
    border: 2px solid var(--nabme-blue);
}

.pricing-card .btn {
    width: 100%;
    margin-bottom: 16px;
}

.pricing-note {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
}

/* 16. JOBS RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    .student-cta-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .job-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .jobs-hero {
        padding: 120px 0 60px;
        min-height: 280px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filter-label {
        min-width: auto;
    }

    .job-card-main {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px;
    }

    .job-card-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .job-card-detail {
        padding: 0 20px 20px;
    }

    .job-detail-meta {
        flex-direction: column;
        gap: 8px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-dollar {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .job-card-logo {
        width: 44px;
        height: 44px;
    }

    .job-card-badges {
        gap: 4px;
    }

    .job-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
}

/* 17. MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.modal-close:hover { color: var(--text); }
.modal-icon { margin-bottom: 16px; }
.modal-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}
.modal-card > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px;
}
.modal-card .btn {
    display: inline-flex;
    margin-bottom: 16px;
}
.modal-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0 16px;
}
.modal-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.modal-note a {
    color: var(--nabme-blue);
    text-decoration: underline;
}
.modal-pricing {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}
.modal-price {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}
.modal-price-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .modal-card {
        padding: 28px 20px;
    }
    .modal-card h3 { font-size: 1.25rem; }
}

/* 18. UTILITIES
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* 19. ADMIN PAGE
   ============================================================ */

/* Admin Main */
.admin-main {
    padding-top: 72px;
    min-height: 100vh;
    background: var(--bg);
}

/* Login */
.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    padding: 24px;
}

.admin-login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
}

.admin-login-icon {
    margin-bottom: 16px;
}

.admin-login-card h2 {
    margin-bottom: 4px;
}

.admin-login-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.admin-login-card .form-group {
    margin-bottom: 12px;
}

/* Dashboard */
.admin-dashboard {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px 24px;
}

.admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-bar h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.admin-user-info {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.admin-tab {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s var(--ease);
}

.admin-tab:hover {
    color: var(--text);
}

.admin-tab.active {
    color: var(--nabme-blue);
    border-bottom-color: var(--nabme-blue);
}

/* Toolbar */
.admin-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Cards / Forms */
.admin-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    margin-bottom: 20px;
}

.admin-card h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Form Inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

.admin-card .form-group:not(.form-row .form-group) {
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: 0.92rem;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nabme-blue);
    box-shadow: 0 0 0 3px rgba(91,111,165,0.1);
}

.form-custom-org {
    margin-top: 8px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select:disabled {
    background: var(--bg);
    color: var(--text-muted);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--nabme-blue);
}

.form-check label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.form-error {
    color: var(--nabme-red);
    font-size: 0.85rem;
    margin-top: 12px;
    min-height: 20px;
}

/* Button Variants */
.btn-outline-dark {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline-dark:hover {
    border-color: var(--text-muted);
    background: var(--bg);
    color: var(--text);
}

.btn-danger {
    background: var(--nabme-red);
    color: var(--white);
    border-color: var(--nabme-red);
}

.btn-danger:hover {
    background: var(--nabme-red-dark);
    border-color: var(--nabme-red-dark);
    color: var(--white);
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.admin-table thead {
    background: var(--bg);
}

.admin-table th {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(91,111,165,0.03);
}

.admin-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.user-row:hover {
    background: rgba(91,111,165,0.06) !important;
}

.user-detail-panel {
    padding: 16px 8px;
    background: var(--bg);
    border-radius: var(--radius);
}

.user-detail-panel .form-row {
    margin-bottom: 12px;
}

.user-detail-panel .form-actions {
    padding-top: 8px;
}

.user-detail-row td {
    padding: 0 12px 12px !important;
    border-top: none !important;
}

.user-card-detail {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.user-card-detail .form-group {
    margin-bottom: 10px;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.2s var(--ease);
}

.btn-icon:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-icon-danger:hover {
    background: #fde8ec;
    color: var(--nabme-red);
    border-color: var(--nabme-red);
}

.inline-select {
    font-family: var(--font);
    font-size: 0.82rem;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
}

.inline-select:focus {
    outline: none;
    border-color: var(--nabme-blue);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-inactive {
    background: #f5f5f5;
    color: #9e9e9e;
}

.status-expired {
    background: #fff3e0;
    color: #e65100;
}

/* Empty State */
.admin-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-light);
    font-size: 0.95rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Mobile Cards (hidden on desktop, shown on mobile) */
.admin-cards {
    display: none;
}

.admin-card-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 8px;
}

.admin-card-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.admin-card-item-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.admin-card-item-actions {
    display: flex;
    gap: 8px;
}

/* Toast */
.admin-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--nabme-blue-dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2000;
    transition: transform 0.3s var(--ease);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}

.admin-toast.show {
    transform: translateX(-50%) translateY(0);
}

.admin-toast.toast-error {
    background: var(--nabme-red);
}

/* 20. ADMIN RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .admin-login-card {
        padding: 32px 24px;
    }

    .admin-dashboard {
        padding: 20px 16px;
    }

    .admin-bar h2 {
        font-size: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 16px;
    }

    .admin-card {
        padding: 24px 20px;
    }

    .admin-table {
        display: none;
    }

    .admin-cards {
        display: block;
    }
}
