/* KeyResumes — Main Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --dark: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
}

body { font-family: Arial, sans-serif; font-size: 15px; color: var(--dark); background: #f1f5f9; line-height: 1.6; }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-gap { padding-top: 48px; padding-bottom: 48px; }

/* ── Nav ── */
.topnav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 16px; height: 60px; flex-wrap: wrap; }
.nav-logo { font-size: 20px; font-weight: 800; color: var(--blue); text-decoration: none; white-space: nowrap; }
.nav-logo:hover { text-decoration: none; }
.nav-search { display: flex; flex: 1; min-width: 180px; max-width: 360px; }
.nav-search input { flex: 1; padding: 7px 12px; border: 1px solid var(--border); border-radius: 6px 0 0 6px; font-size: 14px; outline: none; }
.nav-search input:focus { border-color: var(--blue); }
.nav-search button { padding: 7px 14px; background: var(--blue); color: #fff; border: none; border-radius: 0 6px 6px 0; cursor: pointer; font-size: 14px; }
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.nav-links a { padding: 6px 12px; border-radius: 6px; font-size: 14px; color: var(--dark); white-space: nowrap; }
.nav-links a:hover { background: var(--light); text-decoration: none; }
.nav-cta { background: var(--blue) !important; color: #fff !important; font-weight: 600; }
.nav-cta:hover { background: var(--blue-dark) !important; }

/* ── Flash ── */
.flash { padding: 12px 20px; font-size: 14px; text-align: center; }
.flash-success { background: #d1fae5; color: #065f46; border-bottom: 1px solid #6ee7b7; }
.flash-error   { background: #fee2e2; color: #991b1b; border-bottom: 1px solid #fca5a5; }
.flash-info    { background: #dbeafe; color: #1e40af; border-bottom: 1px solid #93c5fd; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 9px 18px; border-radius: 7px; font-size: 14px; font-weight: 600; border: 1px solid var(--border); background: #fff; color: var(--dark); cursor: pointer; text-decoration: none; transition: .15s; }
.btn:hover { background: var(--light); text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-hero { display: inline-block; padding: 14px 32px; background: #fff; color: var(--blue); border-radius: 8px; font-size: 16px; font-weight: 700; text-decoration: none; }
.btn-hero:hover { background: #eff6ff; text-decoration: none; }
.btn-hero-out { display: inline-block; padding: 14px 32px; background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.5); border-radius: 8px; font-size: 16px; font-weight: 700; text-decoration: none; }
.btn-hero-out:hover { background: rgba(255,255,255,.25); text-decoration: none; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-err  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-ok   { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ── Cards ── */
.card-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, #1d4ed8, #6d28d9); color: #fff; padding: 72px 20px; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); margin-bottom: 16px; }
.hero p { font-size: 18px; opacity: .9; max-width: 600px; margin: 0 auto; }

/* ── Section header ── */
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { margin: 0; }

/* ── Blog ── */
.blog-container { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.blog-header { margin-bottom: 28px; }
.blog-header h1 { margin-bottom: 6px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img-ph { height: 160px; background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.blog-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-body h3 { font-size: 16px; margin: 0; }
.blog-card-body h3 a { color: var(--dark); }
.blog-card-body h3 a:hover { color: var(--blue); text-decoration: none; }
.blog-meta { font-size: 13px; color: var(--gray); }
.blog-excerpt { font-size: 14px; color: var(--gray); line-height: 1.5; }
.cat-label { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none; }

/* ── Blog cats ── */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cat-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 2px solid var(--border); background: #fff; color: var(--gray); text-decoration: none; transition: .15s; }
.cat-btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.cat-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-count { background: rgba(255,255,255,.3); padding: 0 6px; border-radius: 999px; font-size: 12px; }

/* ── Profiles grid ── */
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.profile-mini { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--dark); transition: box-shadow .2s; }
.profile-mini:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.profile-mini img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pm-name { font-weight: 700; font-size: 14px; }
.pm-hl { font-size: 12px; color: var(--gray); margin-top: 2px; }
.pm-loc { font-size: 11px; color: #94a3b8; margin-top: 3px; }

/* ── Auth ── */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 60px); padding: 24px; background: var(--light); }
.auth-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-md); padding: 40px; width: 100%; max-width: 480px; }
.auth-card h1 { margin-bottom: 24px; font-size: 24px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 4px; margin-top: 14px; }
.auth-card input { width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 7px; font-size: 14px; outline: none; }
.auth-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #dbeafe; }
.auth-card .btn { width: 100%; margin-top: 20px; padding: 12px; font-size: 16px; }
.auth-alt { margin-top: 16px; font-size: 14px; color: var(--gray); text-align: center; }
.hint { font-size: 12px; color: var(--gray); margin-top: 4px; display: block; }
.pw-rules { background: #f8fafc; border: 1px solid var(--border); border-radius: 7px; padding: 10px 14px; margin-top: 8px; font-size: 13px; color: var(--gray); }
.pw-rules ul { list-style: none; margin: 6px 0 0; }
.pw-rules li { padding-left: 18px; position: relative; margin-bottom: 2px; }
.pw-rules li::before { content: '✗'; position: absolute; left: 0; color: #ef4444; }
.pw-rules li.ok::before { content: '✓'; color: #22c55e; }
.pw-rules li.ok { color: #166534; }

/* ── Dashboard ── */
.dash-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 24px; max-width: 1100px; margin: 32px auto; padding: 0 20px; align-items: start; }
@media (max-width: 768px) { .dash-wrap { grid-template-columns: 1fr; } }
.dash-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 80px; }
.dash-side h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); margin-bottom: 12px; }
.dash-nav a, .dash-side nav a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--dark); font-size: 14px; margin-bottom: 2px; }
.dash-nav a:hover, .dash-side nav a:hover { background: var(--light); text-decoration: none; }
.dash-nav a.active, .dash-side nav a.active { background: var(--blue); color: #fff; font-weight: 600; }
.dash-main h1 { margin: 0 0 24px; font-size: 24px; }

/* ── Stats grid ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); margin-bottom: 8px; }
.stat-val { font-size: 28px; font-weight: 800; color: var(--dark); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 7px; font-size: 14px; font-family: inherit; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #dbeafe; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input { width: auto; }
.help { font-size: 12px; color: var(--gray); margin-top: 4px; }
.code { font-family: monospace; background: var(--light); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ── Data table ── */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.data-table th { background: var(--light); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Badges ── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-ok  { background: #d1fae5; color: #065f46; }
.badge-off { background: #fee2e2; color: #991b1b; }
.badge-admin { background: #fef3c7; color: #92400e; }

/* ── Tags ── */
.tag-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #eff6ff; color: var(--blue); font-size: 13px; font-weight: 500; text-decoration: none; }
.tag-pill:hover { background: #dbeafe; text-decoration: none; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ── Search ── */
.search-big { display: flex; gap: 8px; margin-bottom: 24px; }
.search-big input { flex: 1; padding: 12px 16px; font-size: 16px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
.search-big input:focus { border-color: var(--blue); }
.result-list { display: flex; flex-direction: column; gap: 16px; }
.result-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 16px; }
.result-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.muted { color: var(--gray); }
.small { font-size: 13px; }

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .page-cur { padding: 7px 13px; border-radius: 6px; border: 1px solid var(--border); background: #fff; color: var(--dark); font-size: 14px; text-decoration: none; }
.pagination a:hover { background: var(--light); text-decoration: none; }
.page-cur { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Profile page ── */
.profile-banner { height: 220px; background: linear-gradient(135deg, #1d4ed8, #6d28d9); border-radius: var(--radius) var(--radius) 0 0; position: relative; }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.profile-header { background: #fff; border-radius: 0 0 var(--radius) var(--radius); padding: 0 32px 28px; }
.profile-avatar-wrap { margin-top: -56px; margin-bottom: 14px; position: relative; z-index: 10; }
.profile-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-md); }
.profile-name { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.profile-headline { font-size: 16px; color: var(--gray); margin-bottom: 10px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.profile-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.profile-layout aside { position: sticky; top: 80px; }
@media (max-width: 860px) { .profile-layout { grid-template-columns: 1fr; } .profile-layout aside { position: static; } }
.profile-section { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.profile-section h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.exp-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.exp-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.exp-title { font-weight: 700; font-size: 16px; }
.exp-company { color: var(--gray); font-size: 14px; }
.exp-dates { font-size: 13px; color: #94a3b8; margin-top: 2px; }
.exp-desc { font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* ── Prose (blog/about content) ── */
.prose { line-height: 1.8; font-size: 16px; color: #334155; }
.prose h1, .prose h2, .prose h3 { color: var(--dark); margin: 1.4em 0 .5em; font-weight: 700; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 4px solid var(--blue); margin: 1.4em 0; padding: 10px 18px; background: #eff6ff; border-radius: 0 7px 7px 0; color: #1e40af; }
.prose pre { background: #1e293b; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; margin: 1em 0; }
.prose code { background: #f1f5f9; color: #be185d; padding: 2px 5px; border-radius: 4px; font-size: .88em; }
.prose img { max-width: 100%; border-radius: 8px; margin: .8em 0; }
.prose a { color: var(--blue); }

/* ── Blog post ── */
.blog-post-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 28px; max-width: 1100px; margin: 32px auto; padding: 0 20px; align-items: start; }
@media (max-width: 860px) { .blog-post-wrap { grid-template-columns: 1fr; } }
.blog-post-article { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.blog-post-hero img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.blog-post-hdr { padding: 28px 36px 0; }
.blog-post-hdr h1 { font-size: clamp(20px, 4vw, 32px); margin: 0 0 14px; line-height: 1.25; }
.blog-post-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.blog-author-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.blog-post-body { padding: 20px 36px 36px; }
@media (max-width: 600px) { .blog-post-hdr, .blog-post-body { padding-left: 20px; padding-right: 20px; } }
.related-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.related-card h3 { font-size: 14px; margin-bottom: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; }
.related-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.related-item:last-child { border-bottom: none; }
.related-item a { font-size: 14px; font-weight: 500; color: var(--dark); }

/* ── Footer ── */
.site-footer { background: var(--dark); color: #94a3b8; padding: 32px 20px; margin-top: 60px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer p { font-size: 14px; }
.site-footer nav a { color: #94a3b8; font-size: 14px; margin-left: 16px; }
.site-footer nav a:hover { color: #fff; }

/* ── Tag input widget ── */
.tag-input-wrap { border: 1px solid var(--border); border-radius: 7px; padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; cursor: text; }
.tag-input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #dbeafe; }
.tag-input-wrap input { border: none; outline: none; font-size: 14px; min-width: 120px; flex: 1; padding: 2px 4px; }
.tag-input-wrap .pill { background: #eff6ff; color: var(--blue); padding: 3px 10px; border-radius: 999px; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.tag-input-wrap .pill .x { cursor: pointer; font-weight: 700; font-size: 15px; }

/* ── Utilities ── */
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }


/* ── Banner Picker ──────────────────────────────────────────── */
/* ── User Banner Picker ─────────────────────────────────────── */
.banner-picker { display:flex; flex-wrap:wrap; gap:10px; }
.banner-option { cursor:pointer; border-radius:6px; overflow:hidden; border:3px solid transparent; transition:border-color .15s,box-shadow .15s; display:inline-block; position:relative; width:180px; }
.banner-option input[type=radio] { display:none; }
.banner-option .bp-thumb { width:180px; height:70px; object-fit:cover; display:block; transition:transform .15s; }
.banner-option:hover .bp-thumb { transform:scale(1.04); }
.banner-option:hover { border-color:#93c5fd; }
.banner-option.selected { border-color:#2563eb; box-shadow:0 0 0 2px #2563eb; }
.banner-option.selected::after { content:'✓'; position:absolute; top:4px; right:6px; color:#fff; font-size:13px; font-weight:700; text-shadow:0 1px 3px rgba(0,0,0,.5); }
.banner-option span { display:block; font-size:11px; padding:3px 5px; background:#f8fafc; color:#64748b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Lightbox */
.banner-preview-btn { position:absolute; bottom:4px; left:50%; transform:translateX(-50%); background:rgba(0,0,0,.55); color:#fff; font-size:10px; padding:2px 7px; border-radius:99px; opacity:0; transition:opacity .15s; pointer-events:none; white-space:nowrap; }
.banner-option:hover .banner-preview-btn { opacity:1; }
.lb-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.82); z-index:9999; align-items:center; justify-content:center; }
.lb-overlay.open { display:flex; }
.lb-overlay img { max-width:90vw; max-height:80vh; border-radius:8px; box-shadow:0 8px 40px rgba(0,0,0,.6); }
.lb-close { position:absolute; top:20px; right:28px; color:#fff; font-size:32px; cursor:pointer; line-height:1; }
.lb-label { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); color:#fff; font-size:15px; background:rgba(0,0,0,.5); padding:4px 16px; border-radius:99px; }

/* ── Admin Banner Grid ──────────────────────────────────────── */
.banner-admin-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media(max-width:900px){ .banner-admin-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:580px){ .banner-admin-grid { grid-template-columns:1fr; } }
.banner-admin-card { background:#fff; border-radius:10px; box-shadow:0 1px 4px rgba(0,0,0,.08); overflow:hidden; }
.banner-admin-card.inactive { opacity:.5; }
.banner-admin-thumb { position:relative; cursor:zoom-in; }
.banner-admin-thumb img { width:100%; height:70px; object-fit:cover; display:block; transition:opacity .15s; }
.banner-admin-thumb:hover img { opacity:.85; }
.banner-admin-zoom { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .15s; }
.banner-admin-thumb:hover .banner-admin-zoom { opacity:1; }
.banner-admin-zoom span { background:rgba(0,0,0,.55); color:#fff; font-size:11px; padding:3px 10px; border-radius:99px; }
.banner-admin-info { padding:8px 12px 4px; }
.banner-admin-info strong { font-size:13px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.banner-admin-info small { font-size:11px; color:#94a3b8; }
.banner-admin-actions { padding:6px 12px 12px; display:flex; gap:5px; flex-wrap:wrap; align-items:center; }

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE — comprehensive fix
   ═══════════════════════════════════════════════ */

/* Blog post layout */
.blog-post-grid { display:grid; grid-template-columns:1fr 300px; gap:32px; max-width:1100px; margin:0 auto; padding:32px 20px; align-items:start; }

/* Navbar mobile */
@media (max-width:768px) {
    .nav-inner { flex-wrap:wrap; height:auto; padding:10px 16px; gap:8px; }
    .nav-logo { font-size:18px; }
    .nav-search { order:3; flex:1 1 100%; max-width:100%; }
    .nav-search input { font-size:14px; }
    .nav-links { order:2; flex-wrap:wrap; gap:4px 8px; font-size:13px; }
    .nav-links a { padding:4px 6px; }
    .nav-cta { padding:6px 12px !important; font-size:13px; }
}

/* Blog post grid */
@media (max-width:860px) {
    .blog-post-grid { grid-template-columns:1fr; padding:16px; gap:20px; }
    .blog-post-grid aside { position:static !important; }
}

/* Profile header contact box */
@media (max-width:700px) {
    .profile-header { flex-direction:column !important; }
    .profile-header > div:last-child { min-width:unset !important; width:100%; }
}

/* Blog grid single column on mobile */
@media (max-width:600px) {
    .blog-grid { grid-template-columns:1fr; }
    .blog-container { padding:16px; }
    .hero { padding:40px 16px; }
    .hero h1 { font-size:28px; }
    .hero p { font-size:15px; }
    .container { padding:0 12px; }
    .section-gap { padding-top:28px; }
    .profiles-grid { grid-template-columns:1fr 1fr; }
    .dash-wrap { padding:0 12px; margin:16px auto; gap:16px; }
    .dash-main h1 { font-size:20px; }
    .card-box { padding:16px; }
    .search-big { flex-direction:column; gap:8px; }
    .search-big input { width:100%; }
    .result-card { flex-direction:column; }
    .result-avatar { width:60px !important; height:60px !important; }
}

/* Extra small */
@media (max-width:400px) {
    .profiles-grid { grid-template-columns:1fr; }
    .nav-links .nav-cta { display:none; }
    .profile-actions { flex-wrap:wrap; gap:6px; }
    .profile-actions a { font-size:12px; padding:6px 10px; }
}
