/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Libre Franklin', 'Georgia', serif;
    background: #0c1220;
    color: #e8e4df;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input { font-family: inherit; }

/* === UTILITIES === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.gold { color: #c9a84c; }
.mono { font-family: 'JetBrains Mono', monospace; }
.center { text-align: center; }
.bg-dark { background: #0f1829; border-top: 1px solid rgba(201,168,76,0.06); border-bottom: 1px solid rgba(201,168,76,0.06); }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes gradientShift { 0% { background-position:0% 50%; } 50% { background-position:100% 50%; } 100% { background-position:0% 50%; } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

/* === HEADER === */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: all 0.4s ease; padding: 0 40px;
}
.site-header.scrolled {
    background: rgba(12,18,32,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.header-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, #c9a84c, #a08030);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900; color: #0c1220;
    font-family: 'Playfair Display', serif;
}
.logo-icon.sm { width: 32px; height: 32px; font-size: 16px; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.nav-link {
    color: rgba(232,228,223,0.6); font-size: 13px; font-weight: 500;
    letter-spacing: 0.5px; transition: color 0.2s; text-transform: uppercase;
}
.nav-link:hover, .nav-link.active { color: #c9a84c; }
.nav-link-search { font-size: 16px; opacity: 0.5; transition: opacity 0.2s; }
.nav-link-search:hover { opacity: 1; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #e8e4df; margin: 5px 0; transition: 0.3s; }

/* === HERO === */
.hero {
    position: relative; overflow: hidden; padding: 140px 0 80px;
    background: linear-gradient(170deg, #0c1220 0%, #142038 40%, #1a2c50 70%, #0c1220 100%);
}
.hero-stars { position: absolute; inset: 0; pointer-events: none; }
.hero-star {
    position: absolute; width: 2px; height: 2px;
    background: rgba(201,168,76,0.3); border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}
.hero-line {
    position: absolute; top: 0; width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.06), transparent);
}
.hero-line.left { left: 10%; }
.hero-line.right { right: 10%; }
.hero-content { text-align: center; margin-bottom: 48px; animation: fadeInUp 0.8s ease-out; }
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 100px;
    border: 1px solid rgba(201,168,76,0.25); background: rgba(201,168,76,0.06);
    font-size: 12px; font-weight: 600; color: #c9a84c;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 24px;
}
.hero-title {
    font-family: 'Playfair Display', serif; font-size: 64px; font-weight: 800;
    line-height: 1.08; color: #e8e4df; margin-bottom: 20px; letter-spacing: -1.5px;
}
.gold-gradient {
    background: linear-gradient(135deg, #c9a84c 0%, #e8d48b 50%, #c9a84c 100%);
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}
.hero-subtitle {
    font-size: 18px; color: rgba(232,228,223,0.5); max-width: 580px;
    margin: 0 auto; line-height: 1.6; font-weight: 300;
}

/* === SEARCH === */
.search-box {
    max-width: 720px; margin: 0 auto; display: flex;
    background: rgba(255,255,255,0.06); border-radius: 16px;
    border: 1px solid rgba(201,168,76,0.15); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.search-icon { padding: 0 0 0 20px; font-size: 20px; opacity: 0.4; display: flex; align-items: center; }
.search-input {
    flex: 1; background: none; border: none; padding: 18px 16px;
    font-size: 16px; color: #e8e4df; outline: none;
}
.search-input::placeholder { color: rgba(232,228,223,0.35); }
.search-input:focus { box-shadow: none; }
.search-btn {
    padding: 18px 32px; background: linear-gradient(135deg, #c9a84c, #a08030);
    border: none; color: #0c1220; font-size: 15px; font-weight: 700;
    cursor: pointer; letter-spacing: 0.3px; transition: opacity 0.2s;
}
.search-btn:hover { opacity: 0.9; }

/* === QUICK FILTERS === */
.quick-filters {
    display: flex; gap: 8px; margin-top: 16px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.filter-tag {
    padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 500;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    color: rgba(232,228,223,0.45); transition: all 0.2s;
}
.filter-tag:hover { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.2); color: #c9a84c; }

/* === LEVEL TABS === */
.level-tabs {
    display: flex; gap: 12px; justify-content: center; margin-top: 48px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.tab-btn {
    padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600;
    background: rgba(255,255,255,0.03); color: rgba(232,228,223,0.5);
    border: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 8px;
    transition: all 0.3s;
}
.tab-btn:hover { background: rgba(201,168,76,0.08); }
.tab-btn.active {
    background: rgba(201,168,76,0.15); color: #c9a84c;
    border-color: rgba(201,168,76,0.3);
}

/* === STATS BAR === */
.stats-bar {
    background: #0f1829; border-top: 1px solid rgba(201,168,76,0.08);
    border-bottom: 1px solid rgba(201,168,76,0.08); padding: 28px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 800; color: #c9a84c; letter-spacing: -1px; }
.stat-label { font-size: 14px; font-weight: 600; color: rgba(232,228,223,0.7); margin-top: 2px; }
.stat-sub { font-size: 11px; color: rgba(232,228,223,0.3); margin-top: 2px; }

/* === SECTIONS === */
.section { padding: 72px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.section-subtitle { color: rgba(232,228,223,0.4); font-size: 15px; }
.view-all { color: #c9a84c; font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(201,168,76,0.3); transition: 0.2s; }
.view-all:hover { border-color: #c9a84c; }

/* === CATEGORY GRID === */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card {
    padding: 24px 20px; border-radius: 14px; text-align: center;
    background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s; display: flex; flex-direction: column; align-items: center;
}
.cat-card:hover { transform: translateY(-3px); border-color: rgba(201,168,76,0.2); }
.cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cat-count { font-size: 13px; font-weight: 600; color: #c9a84c; font-family: 'JetBrains Mono', monospace; }
.cat-label { font-size: 10px; color: rgba(232,228,223,0.3); margin-top: 2px; }

/* === JOB CARDS === */
.jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.job-card {
    padding: 28px; border-radius: 16px; display: block;
    background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.job-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); border-color: rgba(201,168,76,0.4); }
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.job-info { flex: 1; margin-right: 12px; }
.job-title { font-size: 17px; font-weight: 700; color: #e8e4df; margin-bottom: 4px; line-height: 1.3; }
.job-agency { font-size: 13px; color: rgba(232,228,223,0.45); }
.level-badge {
    font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
    letter-spacing: 0.8px; text-transform: uppercase; white-space: nowrap;
}
.job-meta { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; color: rgba(232,228,223,0.4); flex-wrap: wrap; }
.job-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tag {
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
}
.tag-remote { background: rgba(124,58,237,0.12); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }
.tag-clearance { background: rgba(220,38,38,0.1); color: #f87171; border: 1px solid rgba(220,38,38,0.2); }
.tag-category { background: rgba(255,255,255,0.04); color: rgba(232,228,223,0.4); border: 1px solid rgba(255,255,255,0.06); }
.job-card-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05);
}
.job-date { font-size: 12px; color: rgba(232,228,223,0.3); }
.job-apply-hint { font-size: 12px; font-weight: 700; color: #c9a84c; }

/* === STATES GRID === */
.states-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.state-card {
    padding: 20px; border-radius: 12px; display: flex; flex-direction: column;
    background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}
.state-card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-2px); }
.state-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.state-count { font-size: 12px; color: rgba(232,228,223,0.4); font-family: 'JetBrains Mono', monospace; }

/* === TOOLS GRID === */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.tool-card {
    padding: 28px; border-radius: 16px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}
.tool-card:hover { transform: translateY(-3px); }
.tool-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; font-size: 26px;
    margin-bottom: 16px; border: 1px solid;
}
.tool-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.tool-card p { font-size: 13px; color: rgba(232,228,223,0.4); line-height: 1.6; }

/* === BREADCRUMBS === */
.breadcrumbs { padding: 16px 0; font-size: 13px; color: rgba(232,228,223,0.4); }
.breadcrumbs a { color: rgba(232,228,223,0.5); transition: color 0.2s; }
.breadcrumbs a:hover { color: #c9a84c; }
.bc-sep { margin: 0 8px; opacity: 0.4; }
.bc-current { color: rgba(232,228,223,0.7); }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-link {
    padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    color: rgba(232,228,223,0.5); transition: all 0.2s;
}
.page-link:hover { background: rgba(201,168,76,0.1); color: #c9a84c; border-color: rgba(201,168,76,0.2); }
.page-link.active { background: rgba(201,168,76,0.15); color: #c9a84c; border-color: rgba(201,168,76,0.3); }
.page-link.disabled { opacity: 0.3; pointer-events: none; }

/* === FOOTER === */
.site-footer { border-top: 1px solid rgba(201,168,76,0.08); padding: 48px 0 32px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-disclaimer { font-size: 12px; color: rgba(232,228,223,0.25); line-height: 1.6; margin-top: 12px; }
.footer-columns { display: flex; gap: 56px; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: #c9a84c; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(232,228,223,0.35); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #c9a84c; }
.footer-bottom {
    max-width: 1280px; margin: 32px auto 0; padding: 24px 40px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex; justify-content: space-between; font-size: 11px; color: rgba(232,228,223,0.2);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .states-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .site-header { padding: 0 20px; }
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 15px; }
    .search-box { flex-direction: column; }
    .search-btn { padding: 14px; }
    .level-tabs { flex-wrap: wrap; gap: 8px; }
    .tab-btn { font-size: 12px; padding: 8px 14px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-number { font-size: 24px; }
    .section { padding: 48px 0; }
    .section-title { font-size: 28px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .jobs-grid { grid-template-columns: 1fr; }
    .states-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-columns { flex-direction: column; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
/* === JOB DETAIL PAGE === */
.job-detail-hero {
    padding: 100px 0 40px;
    background: linear-gradient(170deg, #0c1220 0%, #142038 50%, #1a2c50 100%);
    border-bottom: 1px solid rgba(201,168,76,0.08);
}
.job-detail-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
    margin-top: 16px;
}
.job-detail-main { flex: 1; }
.job-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.job-detail-title {
    font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 800;
    line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 12px; color: #e8e4df;
}
.job-detail-agency { font-size: 16px; color: rgba(232,228,223,0.6); margin-bottom: 16px; }
.job-detail-agency a { color: #c9a84c; transition: opacity 0.2s; }
.job-detail-agency a:hover { opacity: 0.8; }
.dept-sep { margin: 0 8px; opacity: 0.3; }
.dept-name { color: rgba(232,228,223,0.4); }
.job-detail-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.meta-item { font-size: 14px; color: rgba(232,228,223,0.5); }
.meta-item a { color: rgba(232,228,223,0.5); transition: color 0.2s; }
.meta-item a:hover { color: #c9a84c; }
.meta-grade { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: #c9a84c !important; }
.meta-salary { font-family: 'JetBrains Mono', monospace; font-weight: 500; }

.job-detail-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.btn-apply {
    display: inline-block; padding: 14px 32px; border-radius: 12px; text-align: center;
    background: linear-gradient(135deg, #c9a84c, #a08030); color: #0c1220;
    font-weight: 700; font-size: 15px; transition: all 0.2s; letter-spacing: 0.3px;
}
.btn-apply:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,168,76,0.25); }
.btn-secondary {
    display: inline-block; padding: 12px 24px; border-radius: 12px; text-align: center;
    background: rgba(255,255,255,0.04); color: rgba(232,228,223,0.6);
    border: 1px solid rgba(255,255,255,0.08); font-weight: 600; font-size: 13px;
    transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: #e8e4df; }
.btn-closed {
    display: inline-block; padding: 14px 32px; border-radius: 12px; text-align: center;
    background: rgba(220,38,38,0.1); color: #f87171; border: 1px solid rgba(220,38,38,0.2);
    font-weight: 700; font-size: 15px; cursor: not-allowed;
}

/* Body Grid */
.job-detail-body { padding: 40px 0 72px; }
.job-detail-grid { display: grid; grid-template-columns: 1fr minmax(0, 340px); gap: 32px; align-items: start; }
.job-detail-content { min-width: 0; }

/* Content Sections */
.detail-section {
    margin-bottom: 32px; padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.detail-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.detail-section h2 {
    font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
    margin-bottom: 16px; color: #e8e4df;
}
.detail-text {
    font-size: 15px; line-height: 1.8; color: rgba(232,228,223,0.6);
    word-wrap: break-word; overflow-wrap: break-word;
}
.detail-text br + br { display: none; }

/* Sidebar */
.job-detail-sidebar { position: sticky; top: 80px; }
.sidebar-card {
    background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 24px; margin-bottom: 16px;
}
.sidebar-card h3 {
    font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
    margin-bottom: 16px; color: #c9a84c; padding-bottom: 12px;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.sidebar-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
    gap: 12px;
}
.sidebar-row:last-child { border-bottom: none; }
.sidebar-label { font-size: 13px; color: rgba(232,228,223,0.35); white-space: nowrap; min-width: 100px; }
.sidebar-value { font-size: 13px; color: rgba(232,228,223,0.7); text-align: right; word-break: break-word; }
.sidebar-value a { color: #c9a84c; transition: opacity 0.2s; }
.sidebar-value a:hover { opacity: 0.8; }
.days-left { font-size: 11px; color: rgba(232,228,223,0.35); display: block; margin-top: 2px; }
.closed-text { color: #f87171 !important; }
.sidebar-apply { width: 100%; display: block; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
    .job-detail-hero { padding-top: 80px; }
    .job-detail-header { flex-direction: column; gap: 24px; }
    .job-detail-title { font-size: 26px; }
    .job-detail-actions { min-width: auto; flex-direction: row; flex-wrap: wrap; }
    .job-detail-grid { grid-template-columns: 1fr; }
    .job-detail-sidebar { position: static; }
    .job-detail-meta { gap: 12px; }
}
/* === LISTING PAGES === */
.listing-hero {
    padding: 100px 0 40px;
    background: linear-gradient(170deg, #0c1220 0%, #142038 50%, #1a2c50 100%);
    border-bottom: 1px solid rgba(201,168,76,0.08);
}
.listing-title {
    font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 800;
    letter-spacing: -0.5px; margin-bottom: 8px;
}
.listing-subtitle { color: rgba(232,228,223,0.4); font-size: 15px; margin-bottom: 12px; }
.listing-stats { margin-top: 8px; }
.listing-count {
    font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600;
    color: #c9a84c; background: rgba(201,168,76,0.08); padding: 6px 14px;
    border-radius: 8px; border: 1px solid rgba(201,168,76,0.15);
}

.listing-body { padding: 32px 0 72px; }

.listing-grid-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.listing-main { min-width: 0; }

/* Controls */
.listing-controls {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.listing-filters { display: flex; gap: 8px; }
.filter-pill {
    padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    color: rgba(232,228,223,0.5); transition: all 0.2s;
}
.filter-pill:hover { background: rgba(201,168,76,0.08); color: #c9a84c; border-color: rgba(201,168,76,0.15); }
.filter-pill.active { background: rgba(201,168,76,0.12); color: #c9a84c; border-color: rgba(201,168,76,0.25); }

.listing-sort { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 12px; color: rgba(232,228,223,0.3); }
.sort-opt {
    font-size: 12px; font-weight: 600; color: rgba(232,228,223,0.4);
    padding: 4px 10px; border-radius: 6px; transition: all 0.2s;
}
.sort-opt:hover { color: rgba(232,228,223,0.7); }
.sort-opt.active { color: #c9a84c; background: rgba(201,168,76,0.08); }

/* Job List Cards */
.listing-jobs { display: flex; flex-direction: column; gap: 8px; }
.list-job-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-radius: 14px; gap: 20px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.25s;
}
.list-job-card:hover {
    background: rgba(255,255,255,0.04); border-color: rgba(201,168,76,0.2);
    transform: translateX(4px);
}
.list-job-left { flex: 1; min-width: 0; }
.list-job-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.list-job-title { font-size: 16px; font-weight: 700; color: #e8e4df; line-height: 1.3; }
.list-job-agency { font-size: 13px; color: rgba(232,228,223,0.4); margin-bottom: 8px; }
.list-job-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(232,228,223,0.4); align-items: center; }
.list-job-right { text-align: right; white-space: nowrap; min-width: 100px; }
.list-job-date { display: block; font-size: 12px; color: rgba(232,228,223,0.35); margin-bottom: 4px; }
.list-job-closing { display: block; font-size: 11px; color: rgba(201,168,76,0.6); }

/* Sidebar for listings */
.listing-sidebar { position: sticky; top: 80px; }
.sidebar-agency-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 13px; color: rgba(232,228,223,0.6); transition: color 0.2s;
}
.sidebar-agency-link:last-child { border-bottom: none; }
.sidebar-agency-link:hover { color: #c9a84c; }

/* No results */
.no-results {
    text-align: center; padding: 60px 20px;
    color: rgba(232,228,223,0.4); font-size: 16px;
}

/* Pagination dots */
.page-dots { color: rgba(232,228,223,0.3); padding: 0 4px; }

/* Responsive */
@media (max-width: 768px) {
    .listing-hero { padding-top: 80px; }
    .listing-title { font-size: 26px; }
    .listing-grid-with-sidebar { grid-template-columns: 1fr; }
    .listing-sidebar { position: static; }
    .listing-controls { flex-direction: column; align-items: flex-start; }
    .list-job-card { flex-direction: column; align-items: flex-start; gap: 8px; }
    .list-job-right { text-align: left; }
}
/* === STATE DIRECTORY === */
.states-grid-full { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.state-card-lg {
    padding: 20px; border-radius: 12px; display: flex; flex-direction: column;
    background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s; text-align: center;
}
.state-card-lg:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-3px); background: rgba(255,255,255,0.04); }
.state-abbr { font-family: 'Playfair Display',serif; font-size: 28px; font-weight: 800; color: #c9a84c; margin-bottom: 4px; }
.state-name-lg { font-size: 14px; font-weight: 600; color: #e8e4df; margin-bottom: 6px; }
.state-count-lg { font-size: 13px; font-family: 'JetBrains Mono', monospace; color: rgba(232,228,223,0.4); }

.all-states-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.state-link-row {
    display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 8px;
    font-size: 14px; color: rgba(232,228,223,0.6); transition: all 0.2s;
}
.state-link-row:hover { background: rgba(201,168,76,0.06); color: #c9a84c; }

/* === PAY SCALE === */
.pay-intro { margin-bottom: 32px; }
.pay-table-wrapper { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); }
.pay-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.pay-table thead { background: rgba(201,168,76,0.08); }
.pay-table th {
    padding: 12px 14px; text-align: right; font-weight: 700; color: #c9a84c;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
.pay-table th.grade-col, .pay-table td.grade-col { text-align: left; position: sticky; left: 0; background: #0f1829; z-index: 1; min-width: 70px; }
.pay-table td {
    padding: 10px 14px; text-align: right; color: rgba(232,228,223,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.pay-table td.grade-col { font-family: 'Libre Franklin',serif; font-size: 13px; color: #c9a84c; }
.pay-table td.step-1 { color: #e8e4df; font-weight: 600; }
.pay-table tbody tr:hover { background: rgba(201,168,76,0.04); }
.pay-table tbody tr:hover td { color: rgba(232,228,223,0.8); }

.locality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.locality-card {
    padding: 20px; border-radius: 14px; background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s;
}
.locality-card:hover { border-color: rgba(201,168,76,0.2); }
.locality-name { font-size: 16px; font-weight: 700; color: #e8e4df; margin-bottom: 4px; }
.locality-pct { font-family: 'JetBrains Mono',monospace; font-size: 20px; font-weight: 700; color: #c9a84c; margin-bottom: 8px; }
.locality-example { font-size: 12px; color: rgba(232,228,223,0.4); }

.grade-guide { display: flex; flex-direction: column; gap: 8px; }
.grade-row {
    display: flex; align-items: center; gap: 20px; padding: 16px 20px;
    border-radius: 12px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04); transition: all 0.2s;
}
.grade-row:hover { background: rgba(255,255,255,0.04); border-color: rgba(201,168,76,0.15); }
.grade-range { font-weight: 700; color: #c9a84c; min-width: 120px; font-size: 15px; }
.grade-desc { flex: 1; font-size: 14px; color: rgba(232,228,223,0.5); }
.grade-salary { font-size: 14px; font-weight: 600; color: rgba(232,228,223,0.7); min-width: 130px; text-align: right; }

.grade-links { display: flex; flex-wrap: wrap; gap: 10px; }
.grade-link-pill {
    padding: 12px 20px; border-radius: 12px; display: flex; flex-direction: column;
    align-items: center; gap: 4px; background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06); font-weight: 700; font-size: 15px;
    color: #e8e4df; transition: all 0.3s; min-width: 100px;
}
.grade-link-pill:hover { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.25); color: #c9a84c; }

/* Responsive */
@media (max-width: 768px) {
    .states-grid-full { grid-template-columns: repeat(2, 1fr); }
    .all-states-grid { grid-template-columns: repeat(2, 1fr); }
    .locality-grid { grid-template-columns: 1fr; }
    .grade-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .grade-salary { text-align: left; }
}
/* === ABOUT PAGE === */
.about-content { max-width: 860px; }
.about-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.about-section:last-child { border-bottom: none; }
.about-section h2 { font-family: 'Playfair Display',serif; font-size: 24px; font-weight: 700; color: #c9a84c; margin-bottom: 16px; }
.about-section p { font-size: 15px; line-height: 1.8; color: rgba(232,228,223,0.6); }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 16px; }
.about-feature {
    padding: 24px; border-radius: 14px; background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
}
.about-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.about-feature h3 { font-size: 16px; font-weight: 700; color: #e8e4df; margin-bottom: 8px; }
.about-feature p { font-size: 13px; line-height: 1.6; color: rgba(232,228,223,0.5); }

/* === CONTACT PAGE === */
.contact-grid { display: grid; grid-template-columns: 1fr minmax(0, 340px); gap: 32px; align-items: start; }
.contact-form-wrap { min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: rgba(232,228,223,0.6); }
.required { color: #c9a84c; }
.form-group input, .form-group select, .form-group textarea {
    padding: 14px 16px; border-radius: 12px; font-size: 15px; font-family: inherit;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    color: #e8e4df; transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: rgba(201,168,76,0.4); box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(232,228,223,0.25); }
.form-group select { cursor: pointer; }
.form-group select option { background: #0c1220; color: #e8e4df; }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-error {
    padding: 14px 20px; border-radius: 12px; margin-bottom: 16px;
    background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.2);
    color: #f87171; font-size: 14px;
}
.contact-success { text-align: center; padding: 48px 20px; }
.contact-links { display: flex; flex-direction: column; gap: 0; }
.contact-links a {
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 14px; color: rgba(232,228,223,0.6); transition: color 0.2s;
}
.contact-links a:last-child { border-bottom: none; }
.contact-links a:hover { color: #c9a84c; }

@media (max-width: 768px) {
    .about-features { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
/* === JOB TABS === */
.job-tabs { display: flex; gap: 0; border-bottom: 2px solid rgba(255,255,255,0.06); margin-bottom: 28px; overflow-x: auto; overscroll-behavior-x: contain; }
.job-tab {
    padding: 12px 20px; font-size: 14px; font-weight: 600; color: rgba(232,228,223,0.4);
    border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all 0.2s;
}
.job-tab:hover { color: rgba(232,228,223,0.7); }
.job-tab.active { color: #c9a84c; border-bottom-color: #c9a84c; }
.job-tab-content { display: none; }
.job-tab-content.active { display: block; }
.job-tab-content h2 { font-family: 'Playfair Display',serif; font-size: 20px; font-weight: 700; color: #e8e4df; margin: 28px 0 14px; }
.job-tab-content h2:first-child { margin-top: 0; }
.job-text { font-size: 14px; line-height: 1.85; color: rgba(232,228,223,0.6); word-wrap: break-word; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.muted { color: rgba(232,228,223,0.35); font-size: 14px; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02); overflow: hidden; transition: all 0.2s;
}
.faq-item[open] { border-color: rgba(201,168,76,0.2); background: rgba(201,168,76,0.03); }
.faq-question {
    padding: 16px 20px; cursor: pointer; font-size: 15px; font-weight: 600;
    color: #e8e4df; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-size: 20px; color: #c9a84c; font-weight: 300; transition: transform 0.2s; }
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer { padding: 0 20px 16px; font-size: 14px; line-height: 1.75; color: rgba(232,228,223,0.55); }

/* === APPLY STEPS === */
.apply-steps { display: flex; flex-direction: column; gap: 16px; }
.apply-step {
    display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px;
    border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
}
.step-num {
    min-width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(201,168,76,0.12); color: #c9a84c; font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.apply-step div { font-size: 14px; line-height: 1.7; color: rgba(232,228,223,0.55); }
.apply-step strong { color: #e8e4df; }

/* === BENEFITS LIST === */
.benefits-list { display: flex; flex-direction: column; gap: 8px; }
.benefit-item { font-size: 13px; color: rgba(232,228,223,0.55); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.benefit-item:last-child { border-bottom: none; }

/* === SIDEBAR APPLY BUTTON === */
.sidebar-apply { display: block; text-align: center; width: 100%; margin-bottom: 16px; }

@media (max-width: 768px) {
    .job-tabs { gap: 0; }
    .job-tab { padding: 10px 14px; font-size: 13px; }
    .apply-step { flex-direction: column; gap: 8px; }
}
/* === BROWSE PAGES === */
.browse-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.browse-card {
    padding: 24px 20px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px;
    background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}
.browse-card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-3px); background: rgba(201,168,76,0.04); }
.browse-icon { font-size: 28px; }
.browse-name { font-size: 15px; font-weight: 700; color: #e8e4df; }
.browse-desc { font-size: 12px; color: rgba(232,228,223,0.35); line-height: 1.5; }
@media (max-width: 768px) { .browse-grid { grid-template-columns: repeat(2, 1fr); } }

/* === MODERN RESPONSIVE FIXES (2026) === */

/* Fluid typography */
.hero-title { font-size: clamp(32px, 6vw, 64px); }
.section-title { font-size: clamp(24px, 4vw, 38px); }
.listing-title { font-size: clamp(22px, 4vw, 36px); }
.job-detail-title { font-size: clamp(22px, 4vw, 36px); }
.stat-number { font-size: clamp(20px, 3vw, 32px); }

/* Fluid container */
.container { padding: 0 clamp(16px, 4vw, 40px); }
.site-header { padding: 0 clamp(16px, 4vw, 40px); }
.footer-inner { padding: 0 clamp(16px, 4vw, 40px); }
.footer-bottom { padding: 24px clamp(16px, 4vw, 40px) 0; }

/* Responsive ad units */
[id^="div-gpt-ad"] { min-width: 0 !important; max-width: 100%; overflow: hidden; }

/* Mobile menu */
.mobile-nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(12,18,32,0.98); backdrop-filter: blur(20px);
    z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-size: 18px; font-weight: 600; color: rgba(232,228,223,0.7);
    padding: 12px 24px; transition: color 0.2s;
}
.mobile-nav a:hover { color: #c9a84c; }

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    .filter-pill, .sort-opt, .tab-btn, .page-link { min-height: 44px; display: inline-flex; align-items: center; }
    .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
    .faq-question { min-height: 48px; }
    
    /* Fix search box */
    .search-box { border-radius: 12px; }
    .search-input { font-size: 16px; } /* Prevent iOS zoom */
    
    /* Scroll snap for tabs */
    .job-tabs { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .job-tabs::-webkit-scrollbar { display: none; }
    .job-tab { scroll-snap-align: start; }
    
    /* Fix overflow */
    body { overflow-x: hidden; }
    .pay-table-wrapper { -webkit-overflow-scrolling: touch; }
    
    /* Stack listing controls better */
    .listing-filters { flex-wrap: wrap; }
    .listing-sort { width: 100%; justify-content: flex-start; }
    
    /* Better card padding on mobile */
    .list-job-card { padding: 16px; }
    .sidebar-card { padding: 18px; }
    .job-card { padding: 20px; }
    
    /* Full-width buttons */
    .btn-apply, .btn-closed { width: 100%; }
    
    /* Pagination scroll */
    .pagination { flex-wrap: wrap; }
    .page-link { padding: 8px 14px; font-size: 13px; }
}

/* Small phones */
@media (max-width: 480px) {
    .hero { padding: 110px 0 48px; }
    .hero-subtitle { font-size: 14px; }
    .level-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .level-tabs::-webkit-scrollbar { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-grid, .browse-grid { grid-template-columns: 1fr; }
    .states-grid, .states-grid-full { grid-template-columns: repeat(2, 1fr); }
    .all-states-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .grade-link-pill { min-width: 70px; padding: 10px 14px; font-size: 13px; }
    .list-job-meta { gap: 8px; font-size: 12px; }
    .footer-columns { gap: 20px; }
    .listing-hero, .job-detail-hero { padding-top: 76px; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .hero-star { animation: none; }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .site-header { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .site-footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}

/* Hover only on devices that support it */
@media (hover: hover) {
    .job-card:hover { transform: translateY(-4px); }
    .list-job-card:hover { transform: translateX(4px); }
    .browse-card:hover { transform: translateY(-3px); }
    .state-card:hover { transform: translateY(-2px); }
    .state-card-lg:hover { transform: translateY(-3px); }
}
@media (hover: none) {
    .job-card:hover, .list-job-card:hover, .browse-card:hover, .state-card:hover, .state-card-lg:hover { transform: none; }
}

/* === SIDEBAR DETAIL FIX === */
.sidebar-detail {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
    gap: 12px;
}
.sidebar-detail:last-child { border-bottom: none; }
.sidebar-detail .sidebar-label { 
    font-size: 13px; color: rgba(232,228,223,0.35); white-space: nowrap; 
    min-width: 80px; flex-shrink: 0;
}
.sidebar-detail .sidebar-value { 
    font-size: 13px; color: rgba(232,228,223,0.7); text-align: right; 
    word-break: break-word; min-width: 0;
}

/* === MOBILE TEXT OVERFLOW FIX === */
@media (max-width: 768px) {
    .sidebar-detail { flex-direction: column; gap: 2px; }
    .sidebar-detail .sidebar-label { min-width: auto; }
    .sidebar-detail .sidebar-value { text-align: left; }
    
    /* Fix text clipping */
    .job-text, .detail-text, .job-tab-content { 
        overflow-wrap: break-word; word-break: break-word; 
        max-width: 100%; overflow-x: hidden;
    }
    
    /* Content area overflow */
    .job-detail-content { overflow: hidden; }
    
    /* Sidebar card overflow */
    .sidebar-card { overflow: hidden; max-width: 100%; }
    
    /* Fix sidebar ad on mobile */
    .sidebar-card[style*="text-align:center"] { padding: 10px; }
}
html, body { overflow-x: hidden; max-width: 100vw; }

/* === JOB PAGE CLASS NAME FIX === */
/* Template uses job-hero, job-body, job-content, job-sidebar */
.job-hero {
    padding: 100px 0 40px;
    background: linear-gradient(170deg, #0c1220 0%, #142038 50%, #1a2c50 100%);
    border-bottom: 1px solid rgba(201,168,76,0.08);
}
.job-body { padding: 40px 0 72px; }
.job-content { min-width: 0; overflow: hidden; }
.job-sidebar { position: sticky; top: 80px; }

/* Fix job-text overflow - URLs and long strings */
.job-text {
    
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .job-hero { padding: 80px 0 32px; }
    .job-content { overflow: hidden; max-width: 100vw; }
    .job-sidebar { position: static; }
    .job-detail-grid { grid-template-columns: 1fr; }
    .job-text { font-size: 14px; }
    .job-hero-content .job-title { font-size: clamp(22px, 5vw, 36px); }
    .job-org { font-size: 14px; }
    .job-hero-meta { gap: 8px; font-size: 13px; }
    .job-hero-cta { margin-top: 16px; }
    .job-hero-cta .btn-apply { width: 100%; text-align: center; }
}

/* === NUCLEAR OVERFLOW FIX === */
.job-detail-grid { overflow: hidden; max-width: 100%; }
.sidebar-card { overflow: hidden; max-width: 100%; box-sizing: border-box; }
.job-body .container { overflow: hidden; }
.related-grid { overflow: hidden; max-width: 100%; }
.job-tabs { max-width: 100%; }
@media (max-width: 768px) {
    .job-detail-grid, .job-content, .job-sidebar, .job-body .container, .sidebar-card {
        max-width: 100vw; overflow: hidden; box-sizing: border-box;
    }
    html { overflow-x: hidden; }
    body { overflow-x: hidden; width: 100%; }
    .container { max-width: 100%; overflow: hidden; box-sizing: border-box; }
}

/* ===== BLOG STYLES ===== */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.blog-card{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06);transition:transform .2s,box-shadow .2s;text-decoration:none;color:inherit;display:flex;flex-direction:column}
.blog-card:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(0,0,0,.1)}
.blog-card-img{aspect-ratio:16/9;overflow:hidden;background:#f3f4f6}
.blog-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.blog-card:hover .blog-card-img img{transform:scale(1.03)}
.blog-card-body{padding:1.2rem;flex:1;display:flex;flex-direction:column}
.blog-card-cat{font-size:0.7rem;font-weight:700;text-transform:uppercase;letter-spacing:0.06em;color:var(--accent,#b89830);margin-bottom:0.4rem}
.blog-card-title{font-size:1.05rem;font-weight:700;line-height:1.35;margin:0 0 0.5rem;color:var(--navy,#0c1220);font-family:'Libre Franklin',sans-serif}
.blog-card-excerpt{font-size:0.85rem;color:#555;line-height:1.5;margin:0 0 auto}
.blog-card-meta{display:flex;gap:1rem;font-size:0.75rem;color:#999;margin-top:0.8rem;padding-top:0.8rem;border-top:1px solid #f0f0f0}
.filter-btn{padding:0.4rem 1rem;border-radius:20px;font-size:0.8rem;font-weight:600;background:#f3f4f6;color:#555;text-decoration:none;transition:all .2s}
.filter-btn:hover,.filter-btn.active{background:var(--navy,#0c1220);color:#fff}

/* Article detail */
.article-layout{display:grid;grid-template-columns:1fr 320px;gap:2.5rem;align-items:start}
.article-hero-img{width:100%;border-radius:10px;margin-bottom:1.5rem;aspect-ratio:16/9;object-fit:cover}
.article-meta-bar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;font-size:0.8rem;color:#888;margin-bottom:1rem}
.article-cat-badge{background:var(--accent,#b89830);color:#fff;padding:0.2rem 0.7rem;border-radius:12px;font-size:0.7rem;font-weight:700;text-transform:uppercase;text-decoration:none}
.article-title{font-family:'Playfair Display',serif;font-size:2rem;line-height:1.25;margin:0 0 1.5rem;color:var(--navy,#0c1220)}
.article-content{font-size:1rem;line-height:1.8;color:#333}
.article-content h2{font-family:'Libre Franklin',sans-serif;font-size:1.4rem;margin:2rem 0 0.8rem;color:var(--navy,#0c1220)}
.article-content h3{font-size:1.15rem;margin:1.5rem 0 0.6rem;color:var(--navy,#0c1220)}
.article-content p{margin:0 0 1.2rem}
.article-tags{display:flex;flex-wrap:wrap;gap:0.4rem;margin-top:2rem;padding-top:1.5rem;border-top:1px solid #eee}
.tag-pill{background:#f3f4f6;color:#555;padding:0.3rem 0.8rem;border-radius:14px;font-size:0.75rem;font-weight:600}
.related-article-link{display:flex;gap:0.8rem;align-items:center;padding:0.7rem 0;border-bottom:1px solid #f0f0f0;text-decoration:none;color:inherit}
.related-article-link:last-child{border-bottom:none}
.related-cat{font-size:0.65rem;font-weight:700;text-transform:uppercase;color:var(--accent,#b89830);display:block}
.related-title{font-size:0.85rem;font-weight:600;color:var(--navy,#0c1220);display:block;line-height:1.3}

@media(max-width:900px){.blog-grid{grid-template-columns:repeat(2,1fr)}.article-layout{grid-template-columns:1fr}.article-sidebar{order:2}}
@media(max-width:600px){.blog-grid{grid-template-columns:1fr}.article-title{font-size:1.5rem}}

/* Author page + byline */
.author-profile{display:flex;gap:2rem;align-items:flex-start;padding:2rem;background:#fff;border-radius:12px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.author-avatar-lg{width:80px;height:80px;border-radius:50%;background:var(--navy,#0c1220);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;flex-shrink:0;font-family:'Libre Franklin',sans-serif}
.article-author-byline a{color:var(--navy,#0c1220);font-weight:600;text-decoration:none}
.article-author-byline a:hover{color:var(--accent,#b89830);text-decoration:underline}
@media(max-width:600px){.author-profile{flex-direction:column;align-items:center;text-align:center}}

/* Article table fix */
.article-content table{background:#1a2233;border-radius:10px;overflow:hidden;border:1px solid #2d3e55;width:100%;border-collapse:separate;border-spacing:0}
.article-content table tr{background:#1a2233 !important}
.article-content table tr:nth-child(even){background:#1f2d42 !important}
.article-content table tr:hover{background:#243348 !important}
.article-content table td{color:#e8ecf1 !important;border:1px solid #2d3e55 !important;padding:0.75rem 1.2rem !important;font-size:0.92rem;vertical-align:middle}
.article-content table td:first-child{color:#d4a94b !important;font-weight:700;width:40%;background:rgba(0,0,0,0.15) !important}

/* Article content text contrast fix */
.article-content p{color:#d8dce2 !important}
.article-content strong{color:#fff !important}
.article-content h2{color:#fff !important}
.article-content h3{color:#e8c65a !important}
.article-content a{color:#d4a94b !important}

/* Article title + meta contrast fix */
.article-title{color:#fff !important}
.article-meta-bar{color:#a0a8b4 !important}
.article-meta-bar a{color:#d4a94b !important}
.article-meta-bar time{color:#a0a8b4 !important}
.article-cat-badge{background:#d4a94b !important;color:#0c1220 !important}
.article-author-byline a{color:#d4a94b !important}

/* Category badge fix */
.article-meta-bar .article-cat-badge{background:#d4a94b !important;color:#0c1220 !important;padding:0.25rem 0.8rem !important;border-radius:12px !important;border:none !important;font-size:0.75rem !important;font-weight:700 !important;text-transform:uppercase !important;text-decoration:none !important;letter-spacing:0.04em}

/* Tag pills clickable */
a.tag-pill{text-decoration:none !important;color:#fff !important;background:#1e2d42 !important;border:1px solid #3a506b;padding:0.35rem 0.9rem;border-radius:20px;font-size:0.8rem;display:inline-block;margin:0.25rem;transition:all 0.2s}
a.tag-pill:hover{background:#d4a94b !important;color:#0c1220 !important;border-color:#d4a94b !important}

/* Blog page hero fix - clear fixed header */
.blog-hero{padding-top:80px !important}
.page-hero.compact{padding-top:80px !important}

/* Published/Updated timestamps */
.article-meta-bar time,.article-updated{color:#8a94a3 !important;font-size:0.85rem}
.article-updated{color:#6dbf6d !important}
