/* ─── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --c-bg: #fff;
    --c-bg-alt: #f7f8fa;
    --c-bg-card: #fff;
    --c-text: #1a1a2e;
    --c-text-muted: #5a6270;
    --c-text-light: #8a919c;
    --c-primary: #1a56db;
    --c-primary-hover: #1348b8;
    --c-primary-light: #e8eefb;
    --c-accent: #f59e0b;
    --c-accent-light: #fef3c7;
    --c-border: #e2e5ea;
    --c-success: #10b981;
    --c-featured: #fef3c7;
    --c-featured-border: #f59e0b;
    --radius: 6px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --max-width: 1100px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.5; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ─── Layout ────────────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.container--wide { max-width: 1200px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ─── Header ────────────────────────────────────────────────────────── */
/* Default header: dark bg for white-background pages */
.site-header { background: var(--c-text); color: #fff; padding: 0; border-bottom: 1px solid rgba(255,255,255,0.15); position: relative; z-index: 100; }
/* Article pages: matches the dark blue hero */
.site-header--dark-blue { background: #0f1b3d; border-bottom: 1px solid rgba(255,255,255,0.12); }
/* Homepage: header inside hero-wrapper so Vanta shows through */
.site-header--transparent { background: transparent; border-bottom: 1px solid rgba(255,255,255,0.15); position: relative; z-index: 10; }
.hero-wrapper { position: relative; background: #000; overflow: hidden; }
.hero-wrapper > canvas { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; z-index: 0; }
.hero-wrapper .site-header { position: relative; z-index: 10; }
.hero-wrapper .hero { position: relative; z-index: 5; background: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.site-logo { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.site-logo:hover { text-decoration: none; color: #fff; }
.site-logo span { color: var(--c-accent); }

/* Nav toggle (mobile only) */
.nav-toggle {
    display: none; align-items: center; gap: 6px; background: none; border: 1px solid rgba(255,255,255,0.2);
    color: #ccc; font-size: 0.82rem; font-weight: 600; padding: 8px 14px; cursor: pointer;
}
.nav-toggle svg { flex-shrink: 0; }
.nav-toggle:hover { color: #fff; background: rgba(255,255,255,0.1); }

.header-nav { display: flex; gap: 0; align-items: center; border: 1px solid rgba(255,255,255,0.2); }
.header-nav a { color: #ccc; font-size: 0.82rem; padding: 8px 14px; border-radius: 0; border-right: 1px solid rgba(255,255,255,0.2); }
.header-nav a:last-child { border-right: 0; }
.header-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .header-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: var(--c-text); border: none;
        border-top: 1px solid rgba(255,255,255,0.1); z-index: 100;
    }
    .header-nav.open { display: flex; }
    .header-nav a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 12px 16px; }
    .header-nav a:last-child { border-bottom: 0; }
    .site-header { position: relative; }
    .site-header--dark-blue .header-nav { background: #0f1b3d; }
    .site-header--transparent .header-nav { background: rgba(0,0,0,0.9); }
    .header-search { display: none; }
}

.header-search { display: flex; gap: 0; }
.header-search input {
    padding: 6px 10px; font-size: 0.82rem; border: 1px solid rgba(255,255,255,0.2);
    border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
    background: rgba(255,255,255,0.1); color: #fff; width: 180px;
}
.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search button {
    padding: 6px 12px; font-size: 0.82rem; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0 var(--radius) var(--radius) 0; background: var(--c-primary); color: #fff; cursor: pointer;
}

/* ─── Hero (homepage) ───────────────────────────────────────────────── */
.hero { background: var(--c-text); color: #fff; padding: 32px 0 36px; text-align: center; }
.hero--vanta { position: relative; padding: 56px 0 52px; min-height: 340px; display: flex; align-items: center; background: transparent; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.hero p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 20px; max-width: 540px; margin-left: auto; margin-right: auto; }

.hero-search { display: flex; max-width: 500px; margin: 0 auto; }
.hero-search input {
    flex: 1; padding: 10px 14px; font-size: 0.95rem; border: 2px solid rgba(255,255,255,0.2);
    border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: rgba(255,255,255,0.1); color: #fff;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.5); }
.hero-search button {
    padding: 10px 20px; font-size: 0.95rem; font-weight: 600; border: 2px solid var(--c-primary);
    border-radius: 0 var(--radius) var(--radius) 0; background: var(--c-primary); color: #fff; cursor: pointer;
}
.hero-search button:hover { background: var(--c-primary-hover); }

.hero-stats { display: flex; justify-content: center; gap: 28px; margin-top: 20px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.3rem; color: var(--c-accent); }
.hero-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Page Header ───────────────────────────────────────────────────── */
.page-header { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); padding: 16px 0; }
.page-header h1 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 2px; }
.page-header .subtitle { color: var(--c-text-muted); font-size: 0.88rem; }

/* ─── Breadcrumbs ───────────────────────────────────────────────────── */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.78rem; color: var(--c-text-muted); margin-bottom: 8px; }
.breadcrumbs li::after { content: '/'; margin-left: 4px; color: var(--c-text-light); }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: var(--c-primary); }

/* ─── Sections ──────────────────────────────────────────────────────── */
.section { padding: 24px 0; }
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.section-title small { font-weight: 400; color: var(--c-text-muted); font-size: 0.82rem; }

/* ─── Filter Bar ────────────────────────────────────────────────────── */
.filter-bar { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; }
.filter-bar form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filter-group { flex: 1; min-width: 140px; }
.filter-group label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.filter-group select {
    width: 100%; padding: 6px 8px; font-size: 0.85rem; border: 1px solid var(--c-border);
    border-radius: var(--radius); background: #fff; color: var(--c-text); cursor: pointer;
}
.filter-btn {
    padding: 6px 16px; font-size: 0.85rem; font-weight: 600; background: var(--c-primary);
    color: #fff; border: none; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
}
.filter-btn:hover { background: var(--c-primary-hover); }
.filter-clear { font-size: 0.8rem; color: var(--c-text-muted); padding: 6px 8px; }

/* ─── Listing Cards ─────────────────────────────────────────────────── */
.listings { display: flex; flex-direction: column; gap: 12px; }

.listing-card {
    background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 14px; display: flex; gap: 14px; transition: box-shadow 0.15s;
}
.listing-card:hover { box-shadow: var(--shadow-md); }
.listing-card.featured { border-color: var(--c-featured-border); background: var(--c-featured); }
.listing-card .featured-badge {
    display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #92400e; background: var(--c-accent-light); padding: 1px 6px;
    border-radius: 3px; margin-bottom: 4px;
}

.listing-thumb {
    width: 100px; min-width: 100px; height: 72px; border-radius: 4px; overflow: hidden;
    background: var(--c-bg-alt); display: flex; align-items: center; justify-content: center;
}
.listing-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.listing-thumb .placeholder { font-size: 0.7rem; color: var(--c-text-light); text-align: center; padding: 4px; }

.listing-content { flex: 1; min-width: 0; }
.listing-name { font-size: 0.95rem; font-weight: 700; color: var(--c-text); margin-bottom: 2px; }
.listing-name a { color: inherit; }
.listing-name a:hover { color: var(--c-primary); text-decoration: none; }
.listing-location { font-size: 0.8rem; color: var(--c-text-muted); margin-bottom: 4px; }
.listing-desc { font-size: 0.82rem; color: var(--c-text-muted); margin-bottom: 6px; line-height: 1.4; }

.listing-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
    display: inline-block; font-size: 0.7rem; padding: 1px 6px; border-radius: 3px;
    background: var(--c-primary-light); color: var(--c-primary); font-weight: 500;
}
.tag.level { background: #ecfdf5; color: #065f46; }
.tag.training { background: #fef3c7; color: #92400e; }

.listing-actions { display: flex; align-items: flex-start; gap: 6px; flex-shrink: 0; }
.btn-visit {
    display: inline-block; padding: 6px 12px; font-size: 0.8rem; font-weight: 600;
    background: var(--c-primary); color: #fff; border-radius: var(--radius); white-space: nowrap;
}
.btn-visit:hover { background: var(--c-primary-hover); text-decoration: none; }

/* ─── State/City Grid ───────────────────────────────────────────────── */
.location-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.location-grid-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; background: var(--c-bg-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); font-size: 0.88rem;
}
.location-grid-item a { font-weight: 500; }
.location-grid-item .count { font-size: 0.78rem; color: var(--c-text-muted); }

/* ─── Aircraft Grid ─────────────────────────────────────────────────── */
.aircraft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.aircraft-card {
    padding: 10px 12px; background: var(--c-bg-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); font-size: 0.85rem;
}
.aircraft-card a { font-weight: 600; color: var(--c-text); }
.aircraft-card a:hover { color: var(--c-primary); }
.aircraft-card .mfr { font-size: 0.72rem; color: var(--c-text-muted); }
.aircraft-card .count { font-size: 0.72rem; color: var(--c-text-light); }

/* ─── Listing Detail ────────────────────────────────────────────────── */
.detail-header { padding: 20px 0; border-bottom: 1px solid var(--c-border); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.detail-header .operator-logo { width: 56px; height: 56px; border-radius: 8px; background: var(--c-bg-alt); overflow: hidden; flex-shrink: 0; border: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center; }
.detail-header .operator-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.detail-header .detail-header-text { flex: 1; min-width: 0; }
.detail-header h1 { font-size: 1.4rem; margin-bottom: 4px; }
.detail-header .detail-location { font-size: 0.9rem; color: var(--c-text-muted); }

.detail-grid { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 20px 0; }
@media (min-width: 768px) { .detail-grid { grid-template-columns: 2fr 1fr; } }

.detail-main {}
.detail-sidebar { }

.detail-section { margin-bottom: 20px; }
.detail-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--c-border); }

.sim-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
.sim-table th { text-align: left; font-weight: 600; padding: 6px 8px; background: var(--c-bg-alt); border-bottom: 2px solid var(--c-border); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--c-text-muted); }
.sim-table td { padding: 6px 8px; border-bottom: 1px solid var(--c-border); }

.info-card {
    background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 14px; margin-bottom: 12px;
}
.info-card h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.info-card .info-row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 4px 0; border-bottom: 1px solid var(--c-border); }
.info-card .info-row:last-child { border-bottom: 0; }
.info-card .info-label { color: var(--c-text-muted); }
.info-card .info-value { font-weight: 500; }

.btn-website {
    display: block; text-align: center; padding: 10px 16px; font-size: 0.9rem; font-weight: 600;
    background: var(--c-primary); color: #fff; border-radius: var(--radius); margin-bottom: 10px;
}
.btn-website:hover { background: var(--c-primary-hover); text-decoration: none; }

.map-container { width: 100%; height: 250px; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; background: var(--c-bg-alt); }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ─── Pagination ────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 4px; margin-top: 20px; justify-content: center; }
.pagination a, .pagination .current {
    padding: 6px 10px; font-size: 0.82rem; border: 1px solid var(--c-border); border-radius: var(--radius);
}
.pagination a { color: var(--c-primary); background: #fff; }
.pagination a:hover { background: var(--c-primary-light); text-decoration: none; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); font-weight: 600; }

/* ─── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--c-text); color: rgba(255,255,255,0.5); padding: 24px 0; margin-top: 40px; font-size: 0.78rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: #fff; }

/* ─── FAQ / Expandable ──────────────────────────────────────────────── */
.faq-list { margin-bottom: 20px; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q { display: block; width: 100%; text-align: left; background: none; border: none; padding: 10px 0; font-size: 0.9rem; font-weight: 600; color: var(--c-text); cursor: pointer; }
.faq-q::before { content: '+ '; color: var(--c-primary); font-weight: 700; }
.faq-q[aria-expanded="true"]::before { content: '− '; }
.faq-a { padding: 0 0 10px; font-size: 0.85rem; color: var(--c-text-muted); line-height: 1.5; display: none; }
.faq-a.open { display: block; }

/* ─── No Results ────────────────────────────────────────────────────── */
.no-results { text-align: center; padding: 40px 20px; color: var(--c-text-muted); }
.no-results h2 { font-size: 1.1rem; margin-bottom: 8px; color: var(--c-text); }

/* ─── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; gap: 8px; }
    .header-search input { width: 140px; }
    .hero h1 { font-size: 1.3rem; }
    .hero-stats { gap: 16px; }
    .hero-stat strong { font-size: 1.1rem; }
    .listing-card { flex-direction: column; gap: 10px; }
    .listing-thumb { width: 100%; height: 120px; }
    .listing-actions { margin-top: 4px; }
    .location-grid { grid-template-columns: 1fr 1fr; }
    .filter-bar form { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .detail-header h1 { font-size: 1.15rem; }
    .article-hero h1 { font-size: 1.5rem; }
    .article-hero { padding: 32px 0 28px; }
}

@media (max-width: 480px) {
    .hero-search { flex-direction: column; gap: 8px; }
    .hero-search input, .hero-search button { border-radius: var(--radius); border: 2px solid rgba(255,255,255,0.2); }
    .location-grid { grid-template-columns: 1fr; }
}

/* ─── Article Grid & Cards ─────────────────────────────────────────── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.article-card {
    display: block; padding: 16px; background: var(--c-bg-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); transition: box-shadow 0.15s, border-color 0.15s;
}
.article-card:hover { box-shadow: var(--shadow-md); border-color: var(--c-primary); text-decoration: none; }
.article-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--c-text); margin: 6px 0; line-height: 1.4; }
.article-card p { font-size: 0.82rem; color: var(--c-text-muted); line-height: 1.5; margin: 0 0 8px; }
.article-card-cat { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-primary); }
.article-card-meta { font-size: 0.72rem; color: var(--c-text-light); }

/* ─── Article Hero Banner ──────────────────────────────────────────── */
.article-hero {
    background: #0f1b3d; color: #fff; padding: 80px 0 76px; margin-bottom: 0; text-align: center;
}
.article-hero .breadcrumbs { margin-bottom: 12px; justify-content: center; }
.article-hero .breadcrumbs a { color: rgba(255,255,255,0.6); }
.article-hero .breadcrumbs a:hover { color: #fff; }
.article-hero .breadcrumbs li::after { color: rgba(255,255,255,0.3); }
.article-hero .breadcrumbs li:last-child { color: rgba(255,255,255,0.8); }
.article-hero .article-cat-badge { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.article-hero h1 { font-size: 2.2rem; font-weight: 700; margin: 12px 0 10px; letter-spacing: -0.03em; line-height: 1.25; color: #fff; }
.article-hero .article-meta-bar { color: rgba(255,255,255,0.5); justify-content: center; }

/* ─── Article Layout (3 columns) ──────────────────────────────────── */
.article-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
@media (min-width: 960px) {
    .article-layout { grid-template-columns: 200px 1fr 220px; }
}
@media (min-width: 768px) and (max-width: 959px) {
    .article-layout { grid-template-columns: 1fr 220px; }
    .article-sidebar-left { display: none; }
}

.article-header { margin-bottom: 20px; }
.article-header h1 { font-size: 1.5rem; font-weight: 700; margin: 8px 0; letter-spacing: -0.02em; line-height: 1.3; }
.article-cat-badge { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-primary); background: var(--c-primary-light); padding: 2px 8px; border-radius: 3px; }
.article-meta-bar { display: flex; gap: 14px; font-size: 0.78rem; color: var(--c-text-light); margin-top: 8px; }

.key-takeaways {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius);
    padding: 16px 20px; margin-bottom: 20px;
}
.key-takeaways h2, .key-takeaways h3 { font-size: 0.9rem; font-weight: 700; color: #166534; margin: 0 0 8px; }
.key-takeaways ul { margin: 0 0 0 18px; }
.key-takeaways li { font-size: 0.85rem; color: #15803d; margin-bottom: 4px; line-height: 1.5; list-style: disc; }

.article-body { margin-bottom: 24px; }

.article-tags-section { margin: 16px 0; padding-top: 12px; border-top: 1px solid var(--c-border); }
.article-tags-section h3 { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.article-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

.article-faq { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.article-faq h2 { font-size: 1.1rem; margin-bottom: 12px; }

/* Article sidebar - left (TOC) */
.article-sidebar-left { display: flex; flex-direction: column; gap: 14px; }
.article-sidebar-left .toc-card { position: sticky; top: 16px; background: transparent; border: none; padding: 0; }
.article-sidebar-left .toc-nav { display: flex; flex-direction: column; }

/* Article sidebar - right (related) */
.article-sidebar-right { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); overflow-y: auto; }

/* Legacy sidebar fallback */
.article-sidebar { display: flex; flex-direction: column; gap: 14px; }
.toc-card { position: sticky; top: 16px; }
.toc-nav { display: flex; flex-direction: column; }

/* Inline TOC (mobile/tablet collapsible) */
.toc-inline { display: none; margin-bottom: 20px; }
.toc-inline-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 10px 14px; font-size: 0.88rem; font-weight: 600; color: var(--c-text); cursor: pointer;
}
.toc-inline-toggle svg { transition: transform 0.2s; }
.toc-inline-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.toc-inline-nav {
    display: none; background: var(--c-bg-alt); border: 1px solid var(--c-border);
    border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 8px 14px 12px;
}
.toc-inline-nav.open { display: flex; }

/* Article sidebar responsive overrides (must come after base styles) */
@media (max-width: 959px) {
    .article-sidebar-left { display: none !important; }
    .toc-inline { display: block; }
}
@media (max-width: 767px) {
    .article-sidebar-right { order: 99; }
}
.toc-link { font-size: 0.8rem; color: var(--c-text-muted); padding: 4px 0; border-left: 2px solid var(--c-border); padding-left: 10px; }
.toc-link:hover { color: var(--c-primary); border-left-color: var(--c-primary); text-decoration: none; }
.toc-link.toc-sub { padding-left: 22px; font-size: 0.76rem; }
.silo-link { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--c-text); padding: 6px 0; border-bottom: 1px solid var(--c-border); }
.silo-link:last-child { border-bottom: 0; }
.silo-link:hover { color: var(--c-primary); text-decoration: none; }
.silo-link.silo-pillar { font-weight: 600; }
.silo-link span { font-size: 0.72rem; color: var(--c-text-light); flex-shrink: 0; margin-left: 8px; }

/* ─── Training Program Grid ────────────────────────────────────────── */
.training-program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.training-program-card {
    display: block; padding: 16px; background: var(--c-bg-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); transition: box-shadow 0.15s, border-color 0.15s;
}
.training-program-card:hover { box-shadow: var(--shadow-md); border-color: var(--c-primary); text-decoration: none; }
.training-program-card h2 { font-size: 1rem; font-weight: 700; color: var(--c-text); margin-bottom: 6px; }
.training-program-card p { font-size: 0.82rem; color: var(--c-text-muted); line-height: 1.5; margin: 0; }

/* ─── Pillar Featured Card ─────────────────────────────────────────── */
.pillar-card {
    display: block; background: #0f1b3d; border-radius: var(--radius); padding: 28px 32px;
    color: #fff; transition: box-shadow 0.15s, transform 0.15s;
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.pillar-card-inner { }
.pillar-card .article-cat-badge { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); margin-bottom: 4px; display: inline-block; }
.pillar-card h3 { font-size: 1.3rem; font-weight: 700; margin: 10px 0 8px; line-height: 1.3; color: #fff; }
.pillar-card p { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 12px; }
.pillar-card-meta { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.pillar-card-cta {
    display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 600;
    color: var(--c-accent); border-bottom: 1px solid transparent;
}
.pillar-card:hover .pillar-card-cta { border-bottom-color: var(--c-accent); }

@media (max-width: 640px) {
    .pillar-card { padding: 20px; }
    .pillar-card h3 { font-size: 1.1rem; }
}

/* ─── SEO Content Blocks ───────────────────────────────────────────── */
.seo-content { font-size: 0.9rem; line-height: 1.7; color: var(--c-text-muted); }
.seo-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--c-text); margin: 20px 0 8px; letter-spacing: -0.01em; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 { font-size: 1rem; font-weight: 600; color: var(--c-text); margin: 16px 0 6px; }
.seo-content p { margin-bottom: 10px; }
.seo-content p:last-child { margin-bottom: 0; }
.seo-content ul, .seo-content ol { margin: 8px 0 12px 20px; }
.seo-content li { margin-bottom: 4px; list-style: disc; }

/* ─── Nav Dropdown ──────────────────────────────────────────────────── */
.mfr-logo { display: inline-block; vertical-align: middle; border-radius: 2px; flex-shrink: 0; }

/* ─── Mega Menu ────────────────────────────────────────────────────── */
.nav-mega { position: static; }
.nav-mega-toggle {
    display: flex; align-items: center; gap: 4px; background: none; border: none;
    color: #ccc; font-size: 0.82rem; padding: 8px 14px; cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.2); transition: color 0.2s;
}
.nav-mega-toggle:hover { color: #fff; }
.nav-mega-toggle svg { flex-shrink: 0; transition: transform 0.2s; }
.nav-mega.open .nav-mega-toggle svg { transform: rotate(180deg); }
.nav-mega.open .nav-mega-toggle { color: #fff; }

.mega-menu {
    display: none; position: fixed; left: 0; right: 0; width: 100%;
    background: #fff; border-top: 3px solid var(--c-primary);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
    z-index: 9999; border-radius: 0 0 8px 8px;
}
.mega-menu.open { display: block; }

.mega-menu-inner {
    max-width: 1100px; margin: 0 auto; padding: 24px 24px 20px;
    display: grid; grid-template-columns: 0.8fr 0.8fr 1fr 1.2fr; gap: 20px;
}

.mega-col { text-align: left; }
.mega-heading {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; text-align: left;
    color: var(--c-text-lighter); padding-bottom: 8px; margin-bottom: 8px;
    border-bottom: 2px solid var(--c-primary);
}
.mega-heading a { color: inherit; text-decoration: none; }
.mega-heading a:hover { color: var(--c-primary); }

.mega-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.mega-list li { margin-bottom: 1px; }
.mega-list li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 8px; font-size: 13px; color: var(--c-text); text-align: left;
    text-decoration: none; border-radius: 4px; transition: all 0.12s;
}
.mega-list li a:hover { background: #f0f4ff; color: var(--c-primary); }
.mega-link-label { display: inline-flex; align-items: center; gap: 6px; }
.mega-list li a span { font-size: 11px; color: var(--c-text-lighter); font-weight: 500; }
.mega-list li a:hover span { color: var(--c-primary); }
.mega-more a { color: var(--c-primary) !important; font-weight: 600; font-size: 12px !important; }

.mega-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: transparent; z-index: 9998;
}
.mega-overlay.active { display: block; }

@media (max-width: 960px) { .mega-menu-inner { grid-template-columns: 0.7fr 0.7fr 1fr 1.2fr; gap: 12px; padding: 16px; font-size: 12px; } .mega-list li a { padding: 4px 6px; font-size: 12px; } .mega-heading { font-size: 11px; } }
@media (max-width: 680px) { .mega-menu-inner { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 12px; } }
@media (max-width: 480px) { .mega-menu-inner { grid-template-columns: 1fr; gap: 12px; padding: 10px; } }



/* ─── Country Tabs ─────────────────────────────────────────────────── */
/* ─── Browse Training Centers ──────────────────────────────────────── */
.browse-section { padding: 32px 0; }
.browse-country-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.country-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; background: #fff; border: 1px solid var(--c-border); border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--c-text); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.country-pill:hover { border-color: var(--c-primary); color: var(--c-primary); background: #f0f4ff; }
.country-pill.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.country-pill-count { font-size: 10px; background: rgba(0,0,0,0.06); padding: 1px 6px; border-radius: 10px; font-weight: 600; }
.country-pill.active .country-pill-count { background: rgba(255,255,255,0.25); }
.browse-box { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); overflow: hidden; }
.browse-panel { display: none; padding: 16px 20px 20px; }
.browse-panel.active { display: block; }
.browse-panel-footer { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }
.btn--outline { background: var(--c-primary); color: #fff; border: none; font-size: 13px; border-radius: 6px; padding: 8px 16px; text-decoration: none; display: inline-block; }
.btn--outline:hover { background: #1a4fa0; color: #fff; }
.browse-states { column-count: 4; column-gap: 16px; }
.browse-state { break-inside: avoid; margin-bottom: 10px; }
.browse-state-title { display: block; font-size: 13px; font-weight: 600; color: var(--c-text); text-decoration: none; margin-bottom: 4px; }
.browse-state-title:hover { color: var(--c-primary); }
.browse-cities { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.browse-city-pill { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; background: #eef2ff; border: none; border-radius: 12px; font-size: 11px; color: #3b5998; text-decoration: none; transition: all 0.15s; line-height: 1.4; }
.browse-city-pill:hover { color: #fff; background: var(--c-primary); }
.pill-count { font-size: 9px; background: #dde3f7; color: #5a73a7; padding: 0 4px; border-radius: 6px; font-weight: 600; }
.browse-city-pill:hover .pill-count { background: rgba(255,255,255,0.3); color: #fff; }

@media (max-width: 960px) { .browse-states { column-count: 3; } }
@media (max-width: 680px) { .browse-states { column-count: 2; } .browse-country-pills { gap: 6px; } .country-pill { padding: 5px 10px; font-size: 12px; } .browse-panel { padding: 12px 14px 16px; } }
@media (max-width: 480px) { .browse-states { column-count: 1; } }


/* ─── View Tabs (Category / Manufacturer toggle) ──────────────────── */
.view-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--c-border); }
.view-tab { padding: 10px 24px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--c-text-light); transition: all 0.2s; }
.view-tab:hover { color: var(--c-text); }
.view-tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.view-panel { display: none; }
.view-panel.active { display: block; }
.aircraft-group { margin-bottom: 28px; }

/* ─── Quick Reference (Listing page top section) ──────────────────── */
.quick-ref { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin: 20px 0 24px; }
.quick-ref-side { display: flex; flex-direction: column; gap: 16px; }
.quick-ref-card { background: #fff; border: 1px solid var(--c-border); border-radius: 8px; padding: 16px; }
.quick-ref-card h3 { font-size: 14px; font-weight: 700; color: var(--c-text); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.quick-ref-count { display: inline-block; background: var(--c-primary); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 10px; font-weight: 600; }
.sim-table--compact { font-size: 13px; }
.sim-table--compact th { padding: 6px 8px; font-size: 11px; }
.sim-table--compact td { padding: 5px 8px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a.tag { text-decoration: none; }
.tag-list a.tag:hover { background: var(--c-primary); color: #fff; }
.detail-header { display: flex; align-items: center; gap: 16px; padding: 20px 0 0; }
.detail-header-cta { margin-left: auto; }
@media (max-width: 768px) {
    .quick-ref { grid-template-columns: 1fr; }
    .detail-header { flex-wrap: wrap; }
    .detail-header-cta { margin-left: 0; width: 100%; }
    .detail-header-cta .btn-website { display: block; text-align: center; }
}
