/* ==========================================================================
   imtaqin.id — site.css
   Full dark, terminal-flavoured design system.
   Loaded after Bootstrap 3; restyles its primitives + all custom classes.
   ========================================================================== */

:root {
    --bg: #0b0b0e;
    --bg-subtle: #101014;
    --bg-muted: #17171c;
    --surface: #121217;
    --surface-2: #1a1a21;
    --text: #e8e8ec;
    --text-soft: #c2c2ca;
    --muted: #8b8b96;
    --faint: #5d5d68;
    --border: #26262e;
    --border-soft: #1d1d24;
    --accent: #34d399;
    --accent-hover: #6ee7b7;
    --accent-dim: rgba(52, 211, 153, .12);
    --accent-2: #22d3ee;
    --radius: 8px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
    --container: 1080px;
}

/* ---------- Base ---------- */

html { height: 100%; }

html, body {
    overflow-x: hidden;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-soft);
    background: var(--bg);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-hover); text-decoration: none; }

::selection { background: var(--accent); color: #06130d; }

.page-wrapper { flex: 1; background: var(--bg); }

.container { max-width: var(--container); }

.glyphicon { color: inherit; opacity: .75; }

.text-muted { color: var(--muted) !important; }

hr { border-color: var(--border-soft); }

/* ---------- Bootstrap primitive overrides ---------- */

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all .15s ease;
    box-shadow: none;
}

.btn-default {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-soft);
}
.btn-default:hover, .btn-default:focus,
.btn-default:active, .btn-default.active,
.btn-default:active:hover {
    background: var(--surface-2);
    border-color: #34343e;
    color: var(--text);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #06130d;
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus,
.btn-primary:active, .btn-primary:active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #06130d;
}

.btn-danger { background: #f43f5e; border-color: #f43f5e; }

.form-control {
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
    color: var(--text);
}
.form-control::placeholder { color: var(--faint); }
.form-control:focus {
    background: var(--surface-2);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
select.form-control option { background: var(--surface); color: var(--text); }

label { color: var(--text-soft); }

.alert { border-radius: var(--radius); border-width: 1px; }
.alert-info { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .25); color: #7dd3fc; }
.alert-warning { background: rgba(250, 204, 21, .08); border-color: rgba(250, 204, 21, .25); color: #fde047; }
.alert-danger { background: rgba(244, 63, 94, .08); border-color: rgba(244, 63, 94, .25); color: #fda4af; }
.alert-success { background: var(--accent-dim); border-color: rgba(52, 211, 153, .3); color: var(--accent); }
.alert a { color: inherit; text-decoration: underline; }

.breadcrumb {
    background: transparent;
    padding: 12px 0;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--faint);
    font-family: var(--font-mono);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb > li + li:before { color: var(--faint); content: "/\00a0"; }
.breadcrumb > .active { color: var(--faint); }

.pagination > li > a,
.pagination > li > span {
    background: var(--surface);
    color: var(--text-soft);
    border-color: var(--border);
    margin: 0 2px;
    border-radius: 6px !important;
}
.pagination > li > a:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #06130d;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover {
    background: var(--surface);
    border-color: var(--border-soft);
    color: var(--faint);
}

.badge { background: var(--surface-2); color: var(--muted); font-weight: 600; }

.well, .panel {
    background: var(--surface);
    border-radius: var(--radius);
    border-color: var(--border);
    box-shadow: none;
    color: var(--text-soft);
}
.panel-heading { background: var(--surface-2) !important; border-color: var(--border) !important; color: var(--text) !important; }

.table > thead > tr > th { border-bottom-color: var(--border); color: var(--text); }
.table > tbody > tr > td { border-top-color: var(--border-soft); }
.table-striped > tbody > tr:nth-of-type(odd) { background: var(--bg-subtle); }

.list-group-item { background: var(--surface); border-color: var(--border); color: var(--text-soft); }

.modal-content { background: var(--surface); border: 1px solid var(--border); }
.modal-header, .modal-footer { border-color: var(--border-soft); }
.close { color: var(--text); opacity: .5; }

/* ---------- Navbar ---------- */

.navbar-classic {
    background: rgba(11, 11, 14, .88);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border: none;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-classic .navbar-brand {
    color: #fff !important;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.02em;
    padding: 19px 15px 19px 0;
    transition: opacity .15s ease;
}
.navbar-classic .navbar-brand:hover { opacity: .8; text-shadow: none; }
.navbar-classic .navbar-brand .navbar-logo { height: 26px; max-height: 26px; margin-top: -2px; }

.navbar-classic .navbar-nav > li > a {
    color: var(--muted) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 20px 13px;
    transition: color .15s ease;
    position: relative;
}
.navbar-classic .navbar-nav > li > a:hover,
.navbar-classic .navbar-nav > li > a:focus {
    color: var(--accent) !important;
    background: transparent;
}
.navbar-classic .navbar-nav > li.active > a { color: var(--text) !important; }
.navbar-classic .navbar-nav > li > a::after { display: none; }
.navbar-classic .navbar-nav > li > a .glyphicon { font-size: 12px; }
.navbar-classic .navbar-nav > li.open > a,
.navbar-classic .navbar-nav > li.open > a:hover,
.navbar-classic .navbar-nav > li.open > a:focus {
    background: transparent !important;
    color: var(--accent) !important;
}

.navbar-classic .dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, .6);
    padding: 6px;
    margin-top: 4px;
    min-width: 200px;
}
.navbar-classic .dropdown-menu > li > a {
    color: var(--text-soft) !important;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    transition: background .12s ease;
}
.navbar-classic .dropdown-menu > li > a:hover {
    background: var(--surface-2);
    color: var(--accent) !important;
}
.navbar-classic .dropdown-menu .divider { margin: 6px 4px; background: var(--border-soft); }

.navbar-classic .navbar-toggle {
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-right: 15px;
    padding: 8px 10px;
    transition: background .15s ease;
}
.navbar-classic .navbar-toggle .icon-bar { background: var(--text); width: 20px; height: 2px; }
.navbar-classic .navbar-toggle:hover,
.navbar-classic .navbar-toggle:focus { background: var(--surface-2); border-color: var(--border); }

.navbar-classic .btn-signup {
    background: var(--accent) !important;
    color: #06130d !important;
    padding: 7px 16px !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px !important;
    margin: 11px 0 11px 8px;
    border: none;
    box-shadow: none;
    transition: background .15s ease;
}
.navbar-classic .btn-signup:hover {
    background: var(--accent-hover) !important;
    transform: none;
    box-shadow: 0 0 20px rgba(52, 211, 153, .35);
}

.navbar-form { margin-top: 12px; margin-bottom: 12px; }
.navbar-form .form-control {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 7px 16px;
    font-size: 13px;
    font-family: var(--font-mono);
    background: var(--surface);
    color: var(--text);
    width: 170px;
    transition: all .15s ease;
}
.navbar-form .form-control::placeholder { color: var(--faint); }
.navbar-form .form-control:focus {
    background: var(--surface-2);
    border-color: var(--accent);
    box-shadow: none;
    width: 210px;
}
.navbar-form .input-group-btn { display: none; }
.navbar-form .input-group .form-control { border-radius: 999px !important; }

@media (max-width: 767px) {
    .navbar-classic { position: static; }
    .navbar-classic .navbar-brand { padding: 19px 0 19px 20px; }
    .navbar-classic .navbar-brand .navbar-logo { height: 22px !important; max-height: 22px; width: auto !important; max-width: 120px; }
    .navbar-classic .navbar-collapse {
        background: var(--bg);
        border-top: 1px solid var(--border-soft);
        max-height: 75vh;
        overflow-y: auto;
    }
    .navbar-classic .navbar-nav > li > a {
        padding: 13px 20px;
        border-bottom: 1px solid var(--border-soft);
    }
    .navbar-classic .navbar-nav > li > a:hover { background: var(--bg-subtle); }
    .navbar-classic .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: var(--bg-subtle);
    }
    .navbar-classic .dropdown-menu > li > a { padding: 11px 36px; border-radius: 0; }
    .navbar-classic .btn-signup { margin: 12px 20px; display: block; text-align: center; border-radius: 8px; }
    .navbar-form { margin: 12px 20px; padding: 0; }
    .navbar-form .form-control, .navbar-form .form-control:focus { width: 100%; }
}

@media (min-width: 768px) {
    .navbar-classic .dropdown:hover > .dropdown-menu { display: block; }
}

/* ---------- Hero ---------- */

.hero-section {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 60% 50% at 20% 0%, rgba(52, 211, 153, .07), transparent),
        radial-gradient(circle at 1px 1px, #1d1d24 1px, transparent 0);
    background-size: auto, 28px 28px;
    color: var(--text);
    padding: 72px 0 64px;
    margin-bottom: 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.hero-section h1 {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    text-shadow: none;
}
.hero-section p {
    font-size: 17px;
    color: var(--muted);
    max-width: 560px;
    margin: 0;
    opacity: 1;
    text-shadow: none;
}
.hero-section .glyphicon { display: none; }
.hero-section .search-box { margin-left: 0 !important; }
.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: .02em;
}
.hero-eyebrow::after {
    content: '▊';
    margin-left: 4px;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.no-webp .hero-section { background-color: var(--bg); }

/* ---------- Section headers ---------- */

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 40px 0 20px;
}
.section-head h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    font-family: var(--font-mono);
}
.section-head h2::before { content: '# '; color: var(--accent); font-weight: 700; }
.section-head .head-sub { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; font-weight: 400; font-family: var(--font-sans); }
.section-head a.more-link {
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--muted);
    white-space: nowrap;
}
.section-head a.more-link:hover { color: var(--accent); }

/* ---------- Featured strip ---------- */

.featured-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.featured-strip .feat-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.featured-strip .feat-item:hover {
    border-color: rgba(52, 211, 153, .4);
    box-shadow: 0 0 24px rgba(52, 211, 153, .08);
    transform: translateY(-2px);
    color: var(--text);
}
.featured-strip .feat-thumb {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    background: var(--bg-muted);
    display: block;
}
.featured-strip .feat-body { padding: 2px 14px 14px; }
.featured-strip .feat-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: 6px;
    display: block;
}
.featured-strip .feat-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-strip .feat-item:hover .feat-title { color: var(--accent); }
.featured-strip .feat-meta { font-size: 12px; color: var(--faint); margin-top: 6px; font-family: var(--font-mono); }

@media (max-width: 767px) {
    .featured-strip { grid-template-columns: 1fr; }
}

/* ---------- Projects grid ---------- */

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.proj-item {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    overflow: hidden;
}
.proj-item:hover {
    border-color: rgba(52, 211, 153, .4);
    box-shadow: 0 0 24px rgba(52, 211, 153, .08);
    transform: translateY(-2px);
    color: var(--text);
}
.proj-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-muted); display: block; }
.proj-info { padding: 12px 14px 14px; }
.proj-info h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.proj-item:hover h3 { color: var(--accent); }
.proj-meta { font-size: 11.5px; color: var(--faint); display: flex; gap: 12px; font-family: var(--font-mono); }
.proj-meta span { display: inline-flex; align-items: center; gap: 4px; }
.proj-meta .glyphicon { font-size: 10px; }

/* ---------- Post list ---------- */

.post-list { display: flex; flex-direction: column; }

.post-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-soft);
}
.post-row:first-child { padding-top: 8px; }
.post-row-body { flex: 1; min-width: 0; }
.post-row-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 6px;
    font-family: var(--font-mono);
}
.post-row-kicker .cat {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 11px;
}
.post-row-kicker .date { color: var(--faint); }
.post-row h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.35;
    letter-spacing: -0.015em;
}
.post-row h3 a { color: var(--text); text-decoration: none; }
.post-row h3 a:hover { color: var(--accent); }
.post-row .excerpt {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-row .row-meta { font-size: 12px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); }
.post-row .row-meta a { color: var(--faint); }
.post-row .row-meta a:hover { color: var(--accent); }
.post-row .row-meta .glyphicon { font-size: 10px; margin-right: 3px; }
.post-row-thumb {
    flex: 0 0 180px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-muted);
    border: 1px solid var(--border-soft);
}
.post-row-thumb img {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .post-row { flex-direction: column-reverse; gap: 12px; padding: 20px 0; }
    .post-row-thumb { flex: none; width: 100%; }
    .post-row h3 { font-size: 17px; }
}

/* ---------- Legacy .post-card ---------- */

.post-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: border-color .15s ease;
    overflow: hidden;
    box-shadow: none !important;
}
.post-card:hover { border-color: var(--border); }
.post-card-body { padding: 20px; }
.post-thumbnail { width: 100%; overflow: hidden; background: var(--bg-muted); }
.post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: none;
}
.post-thumbnail:hover img { transform: none; }
.post-card h3 { font-size: 19px; margin-top: 0; margin-bottom: 8px; letter-spacing: -0.015em; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card h4 a { color: var(--text); }
.post-card h4 a:hover { color: var(--accent); }

.post-meta { font-size: 12px; color: var(--faint); margin-bottom: 10px; font-family: var(--font-mono); }
.post-meta a { color: var(--faint); }
.post-meta a:hover { color: var(--accent); }
.post-meta span { margin-right: 14px; display: inline-block; margin-bottom: 4px; }
.post-meta .glyphicon { margin-right: 4px; font-size: 10px; }

.post-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ---------- Badges ---------- */

.category-badge, .featured-category {
    display: inline-block;
    padding: 2px 9px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(52, 211, 153, .25);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
    font-weight: 600;
}
.category-badge:hover, .featured-category:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #06130d;
    text-decoration: none;
}

.featured-badge, .featured-badge-slider {
    display: inline-block;
    padding: 2px 9px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 6px;
}

.stats-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-right: 8px;
}
.stats-badge .glyphicon { margin-right: 5px; color: var(--faint); font-size: 11px; }

/* ---------- Sidebar ---------- */

.sidebar-widget {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-soft);
}
.sidebar-widget:last-child { border-bottom: none; }
.sidebar-widget h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--faint);
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 14px;
}
.sidebar-widget h4::before { content: '## '; color: var(--accent); }
.sidebar-widget h4 .glyphicon { display: none; }
.sidebar-widget p { font-size: 14px; color: var(--muted); }

.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { padding: 7px 0; border-bottom: none; }
.category-list a {
    color: var(--text-soft);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.category-list a:hover { color: var(--accent); }
.category-list .count {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--faint);
}

.tag-cloud a {
    display: inline-block;
    padding: 4px 11px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--muted);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    margin: 0 4px 6px 0;
    text-decoration: none;
    transition: all .12s ease;
}
.tag-cloud a:hover { background: var(--accent-dim); border-color: rgba(52, 211, 153, .35); color: var(--accent); }

/* Tools widget */
.tools-widget-list { list-style: none; padding: 0; margin: 0; }
.tools-widget-list li { margin: 0; border-bottom: none; }
.tools-widget-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13.5px;
    transition: color .12s ease;
}
.tools-widget-list a:hover { color: var(--accent); }
.tw-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--surface-2) !important;
    border: 1px solid var(--border-soft);
    color: var(--accent);
    flex-shrink: 0;
}
.tw-ico .glyphicon { font-size: 12px; color: var(--accent); }
.tools-widget-more {
    display: inline-block;
    margin-top: 10px;
    padding: 0;
    background: transparent !important;
    border-radius: 0;
    color: var(--muted) !important;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
}
.tools-widget-more:hover { color: var(--accent) !important; background: transparent !important; }

/* ---------- Filter bar ---------- */

.filter-bar {
    background: transparent;
    padding: 0 0 16px;
    border-radius: 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13.5px;
    color: var(--muted);
}
.filter-bar label { font-weight: 500; color: var(--muted); }
.filter-bar .form-control {
    display: inline-block;
    width: auto;
    height: 32px;
    padding: 4px 10px;
    font-size: 13px;
}
.filter-bar .form-inline .form-group { margin-right: 15px; }

/* ---------- Tools preview grid ---------- */

.tools-preview-section {
    background: var(--bg-subtle);
    padding: 24px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-soft);
}
.tools-preview-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tools-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-soft);
    transition: border-color .15s ease;
}
.tools-preview-item:hover {
    text-decoration: none;
    color: var(--accent);
    border-color: rgba(52, 211, 153, .4);
    box-shadow: none;
    transform: none;
}
.tools-preview-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: var(--surface-2) !important;
    color: var(--accent) !important;
    font-size: 15px;
}
.tools-preview-name { font-size: 11.5px; font-weight: 500; line-height: 1.3; }

@media (max-width: 991px) { .tools-preview-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) { .tools-preview-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* ---------- Post view ---------- */

.post-view-header { margin-bottom: 24px; }
.post-view-header h1 {
    font-size: 34px;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 12px 0 16px;
    word-wrap: break-word;
    color: #fff;
}

.post-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}
.post-view-meta a { color: var(--text-soft); font-weight: 500; }
.post-view-meta a:hover { color: var(--accent); }
.post-view-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-view-meta .glyphicon { font-size: 11px; color: var(--faint); }
.updated-badge { color: var(--muted) !important; font-weight: 500; }
.updated-badge .glyphicon { font-size: 10px; }

.post-view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
}
.post-view-actions .btn { border-radius: 999px; font-size: 13px; }

.post-featured-image { margin-bottom: 32px; }
.post-featured-image img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border-soft); }

/* ---------- Table of contents ---------- */

.post-toc {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 24px 0 32px;
    font-size: 14px;
}
.post-toc .toc-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-align: left;
}
.post-toc .toc-toggle .glyphicon { display: none; }
.post-toc .toc-toggle:focus { outline: none; }
.post-toc .toc-caret { margin-left: auto; transition: transform .15s; font-size: 10px; color: var(--faint); }
.post-toc.collapsed .toc-caret { transform: rotate(-90deg); }
.post-toc.collapsed .toc-list { display: none; }
.post-toc .toc-list { list-style: none; padding: 0; margin: 12px 0 0; }
.post-toc .toc-list li { padding: 3px 0; line-height: 1.5; }
.post-toc .toc-list li.toc-l3 { padding-left: 18px; font-size: 13px; }
.post-toc .toc-list a { color: var(--text-soft); text-decoration: none; }
.post-toc .toc-list a:hover { color: var(--accent); }

/* ---------- Post content (prose) ---------- */

.post-content {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text-soft);
}

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 { color: var(--text); }

.post-content h1 { font-size: 1.7em; border-bottom: none; padding-bottom: 0; margin: 1.6em 0 .6em; }
.post-content h2 { font-size: 1.4em; border-bottom: none; padding-bottom: 0; margin: 1.6em 0 .6em; }
.post-content h3 { font-size: 1.18em; margin: 1.5em 0 .5em; }
.post-content h4, .post-content h5, .post-content h6 { margin: 1.4em 0 .5em; }

.post-content p { margin-bottom: 1.1em; }

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    margin: 20px 0;
}

.post-content a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(52, 211, 153, .3); }
.post-content a:hover { color: var(--accent-hover); border-bottom-color: var(--accent); text-decoration: none; }

.post-content .internal-link { color: var(--accent); border-bottom: 1px dotted rgba(52, 211, 153, .35); text-decoration: none; }
.post-content .internal-link:hover { color: var(--accent-hover); border-bottom-style: solid; }

.post-content code {
    background: var(--surface-2);
    color: var(--accent-hover);
    padding: .15em .4em;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 86%;
}

.post-content blockquote {
    border-left: 2px solid var(--accent);
    padding: 2px 0 2px 20px;
    margin: 0 0 1.1em 0;
    color: var(--muted);
    font-style: italic;
}
.post-content blockquote > :first-child { margin-top: 0; }
.post-content blockquote > :last-child { margin-bottom: 0; }

.post-content ul, .post-content ol { padding-left: 1.6em; margin-bottom: 1.1em; }
.post-content li { margin-bottom: 5px; }
.post-content li + li { margin-top: 5px; }

.post-content table { border-collapse: collapse; width: 100%; margin-bottom: 1.1em; font-size: 15px; }
.post-content table th, .post-content table td { border: 1px solid var(--border); padding: 8px 12px; }
.post-content table th { background: var(--surface-2); font-weight: 600; color: var(--text); }
.post-content table tr:nth-child(even) { background: var(--bg-subtle); }

.post-content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

.post-content h2, .post-content h3 { scroll-margin-top: 80px; position: relative; }
.post-content h2 .heading-anchor, .post-content h3 .heading-anchor {
    opacity: 0;
    position: absolute;
    left: -22px;
    color: var(--faint);
    text-decoration: none;
    border-bottom: none;
    font-weight: normal;
}
.post-content h2:hover .heading-anchor, .post-content h3:hover .heading-anchor { opacity: 1; }

/* ---------- Code blocks ---------- */

.post-content pre {
    position: relative;
    background: #0d0d11;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: none;
    border: 1px solid var(--border);
}

.post-content pre .code-header {
    display: flex;
    align-items: center;
    background: var(--surface);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-soft);
}
.post-content pre .code-header .dots { display: flex; gap: 7px; }
.post-content pre .code-header .dot { width: 11px; height: 11px; border-radius: 50%; }
.post-content pre .code-header .dot.red { background: #ff5f56; }
.post-content pre .code-header .dot.yellow { background: #ffbd2e; }
.post-content pre .code-header .dot.green { background: #27c93f; }
.post-content pre .code-header .lang-label {
    margin-left: auto;
    font-size: 11px;
    color: var(--faint);
    font-family: var(--font-mono);
    text-transform: lowercase;
    letter-spacing: .03em;
}

.post-content pre code {
    display: block;
    background: none;
    color: #d4d4d8;
    padding: 16px;
    font-size: 13.5px;
    line-height: 1.65;
    overflow-x: auto;
    font-family: var(--font-mono);
}

.post-content pre code,
.post-content pre code[class*="language-"] { color: #d4d4d8; }
.post-content pre code .token.comment, .post-content pre code .token.prolog,
.post-content pre code .token.doctype, .post-content pre code .token.cdata { color: #5d5d68; }
.post-content pre code .token.punctuation { color: #a1a1aa; }
.post-content pre code .token.property, .post-content pre code .token.tag,
.post-content pre code .token.boolean, .post-content pre code .token.number,
.post-content pre code .token.constant, .post-content pre code .token.symbol,
.post-content pre code .token.deleted { color: #f87171; }
.post-content pre code .token.selector, .post-content pre code .token.attr-name,
.post-content pre code .token.string, .post-content pre code .token.char,
.post-content pre code .token.builtin, .post-content pre code .token.inserted { color: #86efac; }
.post-content pre code .token.operator, .post-content pre code .token.entity,
.post-content pre code .token.url, .post-content pre code .language-css .token.string,
.post-content pre code .style .token.string { color: #67e8f9; }
.post-content pre code .token.atrule, .post-content pre code .token.attr-value,
.post-content pre code .token.keyword { color: #c4b5fd; }
.post-content pre code .token.function, .post-content pre code .token.class-name { color: #93c5fd; }
.post-content pre code .token.regex, .post-content pre code .token.important,
.post-content pre code .token.variable { color: #fdba74; }

.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--muted);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    cursor: pointer;
    opacity: 0;
    transition: all .15s ease;
    font-family: var(--font-mono);
    z-index: 10;
}
.post-content pre:hover .code-copy-btn { opacity: 1; }
.code-copy-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.code-copy-btn.copied { background: var(--accent); border-color: var(--accent); color: #06130d; }

/* ---------- Project CTA box ---------- */

.project-cta-box {
    margin: 32px 0 20px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}
.project-cta-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.project-cta-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}
.project-cta-rule { flex: 1; height: 1px; background: var(--border-soft); }
.project-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background .15s ease, box-shadow .15s ease;
}
.project-cta:hover { transform: none; box-shadow: 0 0 20px rgba(52, 211, 153, .15); }
.project-cta--github { background: #fff; color: #0b0b0e !important; }
.project-cta--github:hover { background: #e4e4e7; color: #0b0b0e !important; }
.project-cta--website { background: var(--surface-2); color: var(--accent) !important; border-color: var(--border); }
.project-cta--website:hover { background: var(--accent-dim); color: var(--accent-hover) !important; border-color: rgba(52, 211, 153, .35); }
.project-cta--reddit { background: #ff4500; color: #fff !important; }
.project-cta--reddit:hover { background: #e63e00; color: #fff !important; }
@media (max-width: 500px) {
    .project-cta-buttons { flex-direction: column; align-items: stretch; }
    .project-cta { justify-content: center; }
}

/* ---------- Inline related card ---------- */

.inline-related-card {
    margin: 32px 0;
    padding: 20px;
    border: 1px solid var(--border-soft);
    border-left: 2px solid var(--accent);
    background: var(--surface);
    border-radius: var(--radius);
}
.inline-related-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.inline-related-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}
.inline-related-rule { flex: 1; height: 1px; background: var(--border-soft); }
.inline-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.inline-related-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    text-decoration: none !important;
    border: 1px solid var(--border-soft) !important;
    background: var(--surface-2);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s ease;
}
.inline-related-item:hover { transform: none; box-shadow: none; border-color: rgba(52, 211, 153, .4) !important; color: var(--accent); }
.inline-related-thumb { display: block; width: 100%; padding-top: 56%; background: var(--bg-muted) center/cover no-repeat; }
.inline-related-thumb--ph { background: var(--bg-muted); }
.inline-related-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; padding: 4px 12px 12px; }
@media (max-width: 700px) {
    .inline-related-grid { grid-template-columns: 1fr; }
    .inline-related-thumb { padding-top: 38%; }
}

/* ---------- Author bio ---------- */

.author-bio-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px 0;
    margin: 32px 0 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-soft);
    border-radius: 0;
}
.author-bio-avatar img {
    border-radius: 50%;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    box-shadow: none;
}
.author-bio-body { flex: 1; min-width: 0; }
.author-bio-name { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.author-bio-name strong { font-size: 15px; color: var(--text); }
.author-bio-label {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 8px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.author-bio-text { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.author-bio-links { display: flex; gap: 16px; font-size: 13px; }
.author-bio-links a { color: var(--text-soft); text-decoration: none; font-weight: 500; }
.author-bio-links a:hover { color: var(--accent); }

@media (max-width: 600px) {
    .author-bio-box { padding: 18px 0; gap: 12px; }
    .author-bio-avatar img { width: 52px; height: 52px; }
}

/* ---------- Share / tags / comments ---------- */

.post-share-box {
    margin-top: 24px;
    padding: 20px 0;
    background: transparent;
    border-radius: 0;
    border-top: 1px solid var(--border-soft);
    font-size: 14px;
}
.post-share-box strong { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.post-share-box .share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.post-share-box .btn { border-radius: 999px; font-size: 13px; }

.post-tags-box { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: 14px; }
.post-tags-box strong { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.post-tags-box strong .glyphicon { display: none; }
.post-tags-box .tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.post-tags-box .tag-list .btn {
    border-radius: 4px;
    background: var(--surface);
    border-color: var(--border-soft);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
}
.post-tags-box .tag-list .btn:hover { background: var(--accent-dim); border-color: rgba(52, 211, 153, .35); color: var(--accent); }

#comments-section { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
#comments-section h2 { font-size: 18px; margin-bottom: 20px; font-family: var(--font-mono); }
#comments-section h2::before { content: '# '; color: var(--accent); }
#comments-section h2 .glyphicon { display: none; }
#comments-section .badge { background: var(--surface-2) !important; color: var(--muted); }
.comment-form { margin-bottom: 28px; }
.comment-item { background: var(--surface) !important; border: 1px solid var(--border-soft); border-radius: var(--radius) !important; }

.related-posts-section { margin-top: 48px; }
.related-posts-section h2 { font-size: 18px; margin-bottom: 16px; font-family: var(--font-mono); }
.related-posts-section h2::before { content: '# '; color: var(--accent); }
.related-posts-section .post-card { border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: 16px; }
.related-posts-section .post-card:hover { border-color: rgba(52, 211, 153, .4); }
.related-posts-section .post-card-body { padding: 16px; }

/* ---------- Footer ---------- */

.footer {
    background: var(--bg-subtle);
    color: var(--muted);
    padding: 40px 0 28px;
    margin-top: 64px;
    border-top: 1px solid var(--border-soft);
}
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-brand h4 { color: var(--text); margin: 0 0 6px; font-size: 15px; font-weight: 700; font-family: var(--font-mono); }
.footer-brand p { margin: 0; font-size: 13.5px; max-width: 400px; color: var(--muted); }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 13.5px; transition: color .15s ease; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid var(--border-soft);
    margin-top: 28px;
    padding-top: 18px;
    text-align: left;
}
.footer-bottom p { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 767px) {
    .footer { margin-top: 40px; }
    .footer-main { flex-direction: column; text-align: left; }
    .footer-links { justify-content: flex-start; }
}

/* ---------- Mobile general ---------- */

@media (max-width: 767px) {
    .hero-section { padding: 40px 0 32px; }
    .hero-section h1 { font-size: 28px; }
    .hero-section p { font-size: 15px; }

    .post-view-header h1 { font-size: 24px; }
    .post-view-meta { font-size: 12px; }
    .post-view-actions { flex-direction: row; }

    .post-content { font-size: 15.5px; }
    .post-content pre { margin-left: -10px; margin-right: -10px; border-radius: 0; border-left: none; border-right: none; }
    .post-content pre code { padding: 14px 12px; font-size: 12.5px; }
    .code-copy-btn { display: none; }

    .sidebar-widget { padding-bottom: 18px; margin-bottom: 18px; }
    aside.col-md-4 { margin-top: 32px; }

    .container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Personal brand: hero CTA + services ---------- */

.hero-section .hero-name { color: var(--accent); }
.hero-section h1 { font-size: 46px; line-height: 1.15; }
.hero-desc strong { color: var(--text); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .15s ease;
}
.cta-btn--primary { background: var(--accent); color: #06130d !important; }
.cta-btn--primary:hover { background: var(--accent-hover); box-shadow: 0 0 24px rgba(52, 211, 153, .35); }
.cta-btn--ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--border); }
.cta-btn--ghost:hover { border-color: var(--accent); color: var(--accent) !important; }

.services-section { padding: 8px 0 16px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.svc-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 22px 20px;
    transition: border-color .15s ease, transform .15s ease;
}
.svc-card:hover { border-color: rgba(52, 211, 153, .35); transform: translateY(-2px); }
.svc-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-dim);
    border: 1px solid rgba(52, 211, 153, .25);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 14px;
}
.svc-card h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; }
.svc-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }

@media (max-width: 991px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 30px; }
    .hero-cta { margin-top: 20px; }
    .cta-btn { flex: 1; justify-content: center; }
}
