/* ============================================
   System32 Blog — Shared Stylesheet
   Aligned with main site design system
   ============================================ */

/* --- Design Tokens (matching index.html :root) --- */
:root {
    --gold: #E8B931;
    --gold-light: #F5D060;
    --gold-dim: rgba(232, 185, 49, 0.12);
    --gold-glow: rgba(232, 185, 49, 0.25);
    --bg: #09090B;
    --bg-elevated: #111113;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-tertiary: #71717A;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

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

/* --- Base Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Noise Texture Overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* --- Ambient Background --- */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.ambient-orb--1 {
    width: 600px;
    height: 600px;
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(232, 185, 49, 0.12), transparent 70%);
    animation: orbDrift1 25s ease-in-out infinite;
}

.ambient-orb--2 {
    width: 500px;
    height: 500px;
    top: 30%;
    right: -15%;
    background: radial-gradient(circle, rgba(232, 185, 49, 0.06), transparent 70%);
    animation: orbDrift2 30s ease-in-out infinite;
}

.ambient-orb--3 {
    width: 400px;
    height: 400px;
    bottom: -10%;
    left: 30%;
    background: radial-gradient(circle, rgba(232, 185, 49, 0.08), transparent 70%);
    animation: orbDrift3 20s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 40px); }
}
@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, -60px); }
}
@keyframes orbDrift3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -30px); }
}

/* --- Grid Pattern --- */
.grid-pattern {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}


/* =============================
   NAVIGATION
   ============================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: all 0.3s ease;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav__links {
    display: none;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .nav__links { display: flex; }
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav__link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav__link--active {
    color: var(--gold);
}

.nav__cta {
    display: none;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .nav__cta { display: flex; }
}

.nav__mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .nav__mobile-btn { display: none; }
}

.nav__mobile-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 0 1px rgba(232, 185, 49, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--primary:hover {
    background: var(--gold-light);
    box-shadow: 0 0 0 1px rgba(232, 185, 49, 0.5), 0 4px 16px rgba(232, 185, 49, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}


/* =============================
   PAGE CONTENT WRAPPER
   ============================= */
.page-content {
    position: relative;
    z-index: 10;
}


/* =============================
   BLOG CONTAINER
   ============================= */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 24px;
    padding-top: 104px; /* account for fixed nav */
}

@media (min-width: 768px) {
    .blog-container { padding: 2rem 40px; padding-top: 104px; }
}

@media (min-width: 1280px) {
    .blog-container { padding: 2rem 48px; padding-top: 104px; }
}


/* =============================
   BLOG HEADER
   ============================= */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.blog-title-gradient {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-meta {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.blog-meta span {
    color: var(--gold);
}


/* =============================
   TERMINAL SECTIONS
   ============================= */
.terminal-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 2rem 0;
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.terminal-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-close { background: #ff5f56; }
.control-minimize { background: #ffbd2e; }
.control-maximize { background: #27ca3f; }

.terminal-title {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-left: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-content {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--gold);
    font-weight: 600;
}

.command {
    color: var(--gold-light);
}

.output {
    color: var(--text-primary);
    line-height: 1.7;
}

.output strong {
    color: var(--gold);
}

.error {
    color: #ef4444;
}

.success {
    color: var(--gold);
}


/* =============================
   STEPS / CONTENT BLOCKS
   ============================= */
.step {
    background: var(--bg-card);
    border-left: 3px solid var(--gold);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
}

.step-number {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.step-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0.5rem 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.step-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.step-content p {
    margin: 1rem 0;
    line-height: 1.7;
}

.step-content p:first-child {
    margin-top: 0;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-content strong {
    color: var(--text-primary);
    display: inline;
}

.terminal-content .output strong {
    display: inline;
    margin: 0;
}


/* =============================
   SECTION HEADERS
   ============================= */
.section-header {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem 0;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    letter-spacing: -0.02em;
}


/* =============================
   HIGHLIGHT, TIP, WARNING
   ============================= */
.highlight {
    background: var(--gold-dim);
    color: var(--gold);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

.warning {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-xs);
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #fca5a5;
    line-height: 1.6;
}

.tip {
    background: var(--gold-dim);
    border: 1px solid rgba(232, 185, 49, 0.2);
    border-radius: var(--radius-xs);
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tip strong {
    color: var(--gold);
}

.highlight-box {
    background: var(--gold-dim);
    border: 1px solid rgba(232, 185, 49, 0.2);
    border-radius: var(--radius-xs);
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.highlight-box strong {
    color: var(--gold);
    display: inline;
    margin: 0;
}


/* =============================
   CODE BLOCKS
   ============================= */
.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.code-block::before {
    content: attr(data-lang);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-tertiary);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}


/* =============================
   FEATURE GRID
   ============================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.feature:hover {
    border-color: var(--border-hover);
}

.feature strong {
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}


/* =============================
   RESOURCE CARDS
   ============================= */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.resource-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.resource-title {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.resource-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* =============================
   LISTS
   ============================= */
ul, ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

li strong {
    color: var(--text-primary);
}

.step-content ul {
    margin: 1rem 0;
}

.step-content ul li {
    margin: 0.5rem 0;
}


/* =============================
   LINKS
   ============================= */
a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold-light);
}


/* =============================
   BACK LINK
   ============================= */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 3rem;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}


/* =============================
   ASCII DIVIDER
   ============================= */
.ascii-divider {
    color: var(--border);
    text-align: center;
    margin: 3rem 0;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}


/* =============================
   CONCEPT IMAGE
   ============================= */
.concept-image {
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.concept-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
    margin: 0 auto;
}

.image-caption {
    margin-top: 1.5rem;
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.image-description {
    margin: 1rem auto 0 auto;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%;
    text-align: center;
}


/* =============================
   BLINKING CURSOR
   ============================= */
.blinking {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


/* =============================
   TABLES
   ============================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th {
    background: var(--gold-dim);
    color: var(--gold);
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 600;
}

table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

table td:first-child {
    color: var(--gold);
    font-weight: 500;
}


/* =============================
   FOOTER
   ============================= */
.blog-footer {
    margin-top: 4rem;
    padding: 2rem 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.blog-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.blog-footer p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}


/* =============================
   ANIMATIONS
   ============================= */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* =============================
   BLOG LISTING PAGE
   ============================= */
.blog-listing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 24px;
    padding-top: 104px;
}

@media (min-width: 768px) {
    .blog-listing-container { padding: 2rem 40px; padding-top: 104px; }
}

.search-section {
    margin: 0 0 3rem 0;
    padding: 2rem 0;
}

.search-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.search-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.search-subtitle .highlight {
    color: var(--gold);
    font-weight: 500;
}

.search-subtitle kbd {
    background: var(--gold-dim);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--gold);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.search-input:focus ~ .search-icon {
    color: var(--gold);
}

.search-filters {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
}

.search-results-info {
    text-align: center;
    margin: 1rem 0;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.no-results {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 3rem 0;
    padding: 2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.clear-search {
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}


/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.blog-category {
    display: inline-block;
    background: var(--gold-dim);
    color: var(--gold);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.read-time, .blog-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card.hidden {
    display: none;
}

.blog-card.searching {
    opacity: 0.3;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.blog-card.match {
    opacity: 1;
    transform: scale(1);
    border-color: var(--gold);
}


/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 768px) {
    .blog-container {
        padding: 1.5rem 16px;
        padding-top: 88px;
    }

    .blog-listing-container {
        padding: 1.5rem 16px;
        padding-top: 88px;
    }

    .blog-title {
        font-size: 1.75rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .section-header {
        font-size: 1.4rem;
    }

    .terminal-content {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .step {
        padding: 1.5rem;
    }

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

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

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

    .search-title {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .concept-image {
        margin: 2rem auto;
        padding: 1rem;
    }

    .image-caption {
        font-size: 1rem;
    }

    .image-description {
        font-size: 0.9rem;
    }

    .nav__inner {
        height: 56px;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 1rem 12px;
        padding-top: 80px;
    }

    .blog-listing-container {
        padding: 1rem 12px;
        padding-top: 80px;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .blog-header {
        padding: 1.25rem;
    }

    .terminal-section {
        margin: 1.5rem 0;
    }

    .search-title {
        font-size: 1.3rem;
    }

    .search-input {
        font-size: 16px; /* prevent zoom on iOS */
    }
}
