/* =============================================================
   THE FIELD ENGINEER'S CODEX — Design System
   Palette: Petroleum green-black · Amber · Phosphor green
   Typography: Archivo (headings) · Bitter (slab) · Lora (body) · Fira Code (mono) · Barlow Condensed (labels)
   ============================================================= */

/* Global Styles & Resets */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0B1410;
    color: #E2D9C4;
    font-family: 'Lora', Georgia, serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bitter', Georgia, serif;
}

/* Text Selection */
::selection {
    background: #D4820A;
    color: #000;
}

::-moz-selection {
    background: #D4820A;
    color: #000;
}

/* Focus & Accessibility */
:focus-visible {
    outline: 2px solid #D4820A;
    outline-offset: 2px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #0B1410;
}

::-webkit-scrollbar-thumb {
    background: #D4820A;
    border-radius: 0;
}

/* Borders */
.technical-border {
    border: 1px solid #1A2E22;
}

.technical-border-hover:hover {
    border-color: #D4820A;
    box-shadow: 0 0 0 1px #D4820A, 0 0 20px rgba(212, 130, 10, 0.25);
    transform: translateY(-2px);
    transition: all 0.25s ease;
}

.tag {
    padding: 2px 10px;
    border: 1px solid #1A2E22;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.7rem;
    color: #7A9080;
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
    border-color: #D4820A;
    color: #D4820A;
}

/* Backgrounds — dot-grid like an engineering field notebook */
.grid-bg {
    background-image: radial-gradient(circle, #1A2E22 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Text Effects */
.gradient-text {
    background: linear-gradient(90deg, #D4820A, #F5A623);
    background-clip: text;
    color: transparent;
}

@supports (-webkit-background-clip: text) {
    .gradient-text {
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.section-label {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #3FA06B;
}

/* Amber glow utility */
.amber-glow {
    box-shadow: 0 0 20px rgba(212, 130, 10, 0.3);
}

/* Scanline overlay for hero use */
.scanline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Material Icons */
.mi {
    font-family: 'Material Icons Outlined';
    font-size: 1.25rem;
    line-height: 1;
    text-transform: none;
}

.mi-sm {
    font-size: 1rem;
}

.mi-lg {
    font-size: 1.5rem;
}

.mi-xl {
    font-size: 6rem;
}

/* Reading Card & Article Prose */
.reading-card {
    background: #0F1C16;
    color: #E2D9C4;
    border-radius: 0;
    border: 1px solid #1A2E22;
}

.reading-card .article-body {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.85;
    color: #C8BFA8;
}

.reading-card .article-body p {
    margin-bottom: 1.6em;
}

.reading-card .article-body h2 {
    font-family: 'Bitter', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F0E8D5;
    margin: 2em 0 0.6em;
    border-bottom: 1px solid #1A2E22;
    padding-bottom: 0.4em;
}

.reading-card .article-body h3 {
    font-family: 'Bitter', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #D4820A;
    margin: 1.8em 0 0.5em;
}

.reading-card .article-body h4 {
    font-family: 'Bitter', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #D4820A;
    margin: 1.5em 0 0.4em;
}

.reading-card .article-body strong {
    color: #F0E8D5;
    font-weight: 700;
}

.reading-card .article-body a {
    color: #D4820A;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reading-card .article-body a:hover {
    color: #F5A623;
}

.reading-card .article-body code {
    background: #0B1410;
    color: #3FA06B;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875em;
}

.reading-card .article-body pre {
    background: #0B1410;
    color: #E2D9C4;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.875em;
    border: 1px solid #1A2E22;
    position: relative;
}

.reading-card .article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.reading-card .article-body blockquote {
    border-left: 4px solid #3FA06B;
    padding: 0.75em 1.25rem;
    margin: 1.5em 0;
    color: #7A9080;
    background: #0B1410;
    font-style: italic;
}

.reading-card .article-body ul,
.reading-card .article-body ol {
    padding-left: 1.75rem;
    margin: 0.75em 0 1.4em;
}

.reading-card .article-body li {
    margin: 0.4em 0;
}

.reading-card .article-body ul > li { list-style-type: disc; }
.reading-card .article-body ol > li { list-style-type: decimal; }

/* GitHub-style code block wrapper */
.code-block-wrapper {
    border: 1px solid #1A2E22;
    border-radius: 6px;
    overflow: hidden;
    margin: 1.5em 0;
}

.code-block-wrapper pre {
    margin: 0 !important;
    border: none !important;
    border-left: none !important;
    border-radius: 0 !important;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1A2E22;
    border-bottom: 1px solid #2A3E32;
    padding: 0.4rem 0.75rem;
}

.code-lang {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.75rem;
    color: #7A9080;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

/* Copy button in code header */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid transparent;
    color: #7A9080;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.7rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.copy-btn:hover { background: #0F1C16; color: #E2D9C4; border-color: #1A2E22; }
.copy-btn .copy-icon { fill: currentColor; flex-shrink: 0; }

/* Share buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.75rem;
    color: #7A9080;
    background: #0F1C16;
    border: 1px solid #1A2E22;
    border-radius: 4px;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1;
}
.share-btn:hover { background: #1A2E22; color: #E2D9C4; border-color: #D4820A; }
.share-btn .mi { font-size: 0.875rem; }

/* Print styles */
@media print {
    nav, footer, .share-bar, [data-noprint], .copy-btn { display: none !important; }
    body { background: #fff !important; }
    .reading-card {
        border: none !important;
        background: #fff !important;
        color: #111 !important;
    }
    .reading-card .article-body { color: #111 !important; }
    .reading-card .article-body h2,
    .reading-card .article-body h3,
    .reading-card .article-body h4 { color: #111 !important; border-color: #ddd !important; }
    .reading-card .article-body a { color: #7A4A00 !important; }
    .reading-card .article-body code { background: #f4f4f5 !important; color: #111 !important; }
    .reading-card .article-body pre { background: #f4f4f5 !important; color: #111 !important; border-color: #ddd !important; }
    .reading-card .article-body blockquote { background: #f9f9f9 !important; color: #444 !important; }
}

/* Animations & Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 130, 10, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 130, 10, 0.7);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease infinite;
}

/* Interactive Elements */
a {
    position: relative;
    text-decoration: none;
}

button,
a,
[role="button"] {
    transition: all 0.2s ease;
}

/* Form Elements */
input,
textarea,
select {
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #D4820A;
}

/* Navigation Bar */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(11, 20, 16, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1A2E22;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-badge {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
}

.footer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-logo span {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-desktop a {
    color: #C8BFA8;
    transition: color 0.2s ease;
}

.nav-desktop a:hover {
    color: #D4820A;
}

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

.nav-cta-button {
    display: none;
    background: #D4820A;
    color: #000;
    padding: 0.5rem 1rem;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid transparent;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.nav-cta-button:hover {
    border-color: #000;
    background: #F5A623;
}

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

.nav-contact-mobile {
    display: flex;
    background: #D4820A;
    color: #000;
    padding: 0.5rem 0.75rem;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid transparent;
    align-items: center;
    transition: all 0.2s ease;
}

.nav-contact-mobile:hover {
    border-color: #000;
}

@media (min-width: 768px) {
    .nav-contact-mobile {
        display: none;
    }
}

/* Mobile navigation controls wrapper (hamburger + contact shortcut) */
.nav-mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .nav-mobile-controls {
        display: none;
    }
}

/* Hamburger button */
.nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: 1px solid #1A2E22;
    color: #C8BFA8;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-hamburger:hover {
    border-color: #D4820A;
    color: #D4820A;
}

/* Mobile dropdown menu */
.nav-mobile-menu {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    z-index: 49;
    background: rgba(11, 20, 16, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1A2E22;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1.5rem 1.5rem;
}

.nav-mobile-menu a {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C8BFA8;
    padding: 1rem 0;
    border-bottom: 1px solid #1A2E22;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-mobile-menu a:hover {
    color: #D4820A;
}

.nav-mobile-cta {
    margin-top: 1rem;
    background: #D4820A;
    color: #000 !important;
    padding: 0.75rem 1rem !important;
    font-weight: 700;
    justify-content: center;
    border: 2px solid transparent !important;
}

.nav-mobile-cta:hover {
    border-color: #000 !important;
}

/* Layout Components */
.main-content {
    flex-grow: 1;
    padding-top: 5rem;
}

.footer {
    background: #080F0B;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    border-top: 3px solid #D4820A;
    margin-top: 0;
}

.footer-featured-card {
    background: #0F1C16;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #1A2E22;
}

.footer-featured-card:hover {
    border-color: #D4820A;
    box-shadow: 0 0 0 1px #D4820A, 0 0 24px rgba(212, 130, 10, 0.2);
    transform: translateY(-2px);
    transition: all 0.25s ease;
}

.footer-featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(212, 130, 10, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.footer-featured-card:hover::before {
    opacity: 1;
}

.footer-section-title {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    color: #7A9080;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #C8BFA8;
    font-family: 'Lora', Georgia, serif;
}

.footer-nav-list a {
    transition: all 0.2s ease;
}

.footer-nav-list a:hover {
    color: #D4820A;
    padding-left: 0.5rem;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #1A2E22;
    transition: all 0.2s ease;
}

.footer-social-icon:hover {
    background: #D4820A;
    color: #000;
    border-color: #D4820A;
}

.footer-copyright {
    padding-top: 2rem;
    border-top: 1px solid #1A2E22;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #3A5040;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .footer-copyright {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #D4820A;
    color: #000;
    padding: 0.75rem 1.5rem;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: #F5A623;
    box-shadow: 0 0 16px rgba(212, 130, 10, 0.4);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid #1A2E22;
    color: #7A9080;
    padding: 0.625rem 1rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
    color: #E2D9C4;
    border-color: rgba(212, 130, 10, 0.5);
}

/* Admin Form Utilities */
.form-label {
    display: block;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7A9080;
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    background: #070E0A !important;
    border: 1px solid #1A2E22;
    color: #E2D9C4 !important;
    font-size: 0.875rem;
    font-family: 'Lora', Georgia, serif;
    padding: 0.5rem 0.75rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.form-input:focus {
    border-color: #D4820A;
}

.form-input::placeholder {
    color: #2E4838;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
}

/* --- Markdown Prose Styles --- */
.markdown-prose { color: #C8BFA8; line-height: 1.8; }

.markdown-prose h1,
.markdown-prose h2,
.markdown-prose h3,
.markdown-prose h4,
.markdown-prose h5,
.markdown-prose h6 {
    font-family: 'Bitter', Georgia, serif;
    font-weight: 700;
    color: #F0E8D5;
    margin: 1.5em 0 0.5em;
}

.markdown-prose h1 { font-size: 1.875rem; }
.markdown-prose h2 { font-size: 1.5rem; border-bottom: 1px solid #1A2E22; padding-bottom: 0.3em; }
.markdown-prose h3 { font-size: 1.25rem; color: #D4820A; }
.markdown-prose h4 { font-size: 1.1rem; color: #D4820A; }

.markdown-prose p { margin: 0.75em 0; }

.markdown-prose a { color: #D4820A; text-decoration: underline; }
.markdown-prose a:hover { color: #F5A623; }

.markdown-prose strong { color: #F0E8D5; font-weight: 700; }
.markdown-prose em { font-style: italic; }

.markdown-prose ul,
.markdown-prose ol { padding-left: 1.5rem; margin: 0.75em 0; }
.markdown-prose li { margin: 0.3em 0; }
.markdown-prose ul > li { list-style-type: disc; }
.markdown-prose ol > li { list-style-type: decimal; }

.markdown-prose blockquote {
    border-left: 4px solid #3FA06B;
    margin: 1em 0;
    padding: 0.5em 1em;
    color: #7A9080;
    background: #0F1C16;
    font-style: italic;
}

.markdown-prose code {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: #0F1C16;
    color: #3FA06B;
    padding: 0.15em 0.4em;
    font-size: 0.875em;
    border-radius: 3px;
}

.markdown-prose pre {
    background: #0F1C16;
    border: 1px solid #1A2E22;
    padding: 1rem;
    overflow-x: auto;
    margin: 1em 0;
    border-radius: 0;
}

.markdown-prose pre code {
    background: none;
    padding: 0;
    color: #E2D9C4;
    font-size: 0.875rem;
}

.markdown-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.875rem;
}

.markdown-prose th {
    background: #0F1C16;
    color: #D4820A;
    text-align: left;
    padding: 0.5em 0.75em;
    border: 1px solid #1A2E22;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.markdown-prose td {
    padding: 0.5em 0.75em;
    border: 1px solid #1A2E22;
}

.markdown-prose tr:nth-child(even) td { background: #0F1C16; }

.markdown-prose hr {
    border: none;
    border-top: 1px solid #1A2E22;
    margin: 2em 0;
}

.markdown-prose img {
    max-width: 100%;
    height: auto;
    border: 1px solid #1A2E22;
}

/* =============================================================
   QUANZO-INSPIRED BLOG STYLES — Dark Editorial
   ============================================================= */

/* --- Blog Post Cards (Listing Page) --- */
.blog-card {
    display: block;
    background: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0F1C16;
    border: 1px solid #1A2E22;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F1C16, #132A1E);
}

.blog-card-body {
    padding: 1.75rem 0;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #7A9080;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.blog-card-meta .meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1A2E22;
}

.blog-card-title {
    font-family: 'Archivo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F0E8D5;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: #D4820A;
}

@media (min-width: 640px) {
    .blog-card-title {
        font-size: 1.75rem;
    }
}

.blog-card-excerpt {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #7A9080;
    margin-bottom: 1rem;
}

.blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D4820A;
    position: relative;
    padding-bottom: 2px;
}

.blog-card-readmore::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4820A;
    transition: width 0.3s ease;
}

.blog-card:hover .blog-card-readmore::after {
    width: 100%;
}

.blog-card-readmore .mi {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-readmore .mi {
    transform: translateX(4px);
}

/* Quote-style card (for posts without images) */
.blog-card-quote {
    background: #D4820A;
    padding: 2.5rem;
    position: relative;
}

.blog-card-quote::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-family: 'Archivo', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.blog-card-quote .blog-card-title {
    color: #ffffff;
    font-style: italic;
}

.blog-card-quote:hover .blog-card-title {
    color: #000;
}

.blog-card-quote .blog-card-meta {
    color: rgba(255, 255, 255, 0.7);
}

.blog-card-quote .blog-card-readmore {
    color: #000;
}

.blog-card-quote .blog-card-readmore::after {
    background: #000;
}

/* Blog listing separator */
.blog-separator {
    border: none;
    border-top: 1px solid #1A2E22;
    margin: 0;
}

/* --- Blog Detail Hero --- */
.blog-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: 550px;
    overflow: hidden;
    background: #0F1C16;
}

.blog-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0B1410 0%, rgba(11, 20, 16, 0.6) 40%, rgba(11, 20, 16, 0.2) 100%);
}

.blog-hero-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #0F1C16, #132A1E 50%, #0F1C16);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blog detail content area */
.blog-content-area {
    max-width: 768px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
    .blog-content-area {
        padding: 4rem 2rem;
    }
}

/* Quanzo-style blockquotes (accent bg + white text) */
.blog-content-area .markdown-prose blockquote,
.blog-content-area .article-body blockquote {
    border-left: none;
    background: #D4820A;
    color: #ffffff;
    font-style: italic;
    font-family: 'Archivo', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    padding: 2rem 2.5rem;
    margin: 2rem 0;
    position: relative;
}

.blog-content-area .markdown-prose blockquote::before,
.blog-content-area .article-body blockquote::before {
    content: '\201C';
    position: absolute;
    top: 0.25rem;
    left: 0.75rem;
    font-family: 'Archivo', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.12);
    line-height: 1;
}

.blog-content-area .markdown-prose blockquote p,
.blog-content-area .article-body blockquote p {
    color: #ffffff;
    margin-bottom: 0;
}

.blog-content-area .markdown-prose blockquote strong,
.blog-content-area .article-body blockquote strong {
    color: #ffffff;
}

/* Post navigation (prev/next) */
.post-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: #1A2E22;
    border: 1px solid #1A2E22;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .post-nav {
        grid-template-columns: 1fr 1fr;
    }
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #0F1C16;
    transition: background 0.2s ease;
    text-decoration: none;
}

.post-nav-item:hover {
    background: #132A1E;
}

.post-nav-label {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7A9080;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.post-nav-title {
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #E2D9C4;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.post-nav-item:hover .post-nav-title {
    color: #D4820A;
}

.post-nav-item.next {
    text-align: right;
}

.post-nav-item.next .post-nav-label {
    justify-content: flex-end;
}

/* Blog detail meta bar */
.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #7A9080;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-detail-meta .meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3A5040;
}

/* Quanzo-style page title */
.blog-page-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    line-height: 1.05;
    color: #F0E8D5;
    letter-spacing: -0.02em;
}

/* Blog author section */
.blog-author-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    background: #0F1C16;
    border: 1px solid #1A2E22;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .blog-author-card {
        flex-direction: row;
        align-items: center;
    }
}

/* Print overrides for new blog styles */
@media print {
    .blog-card-quote {
        background: #f0f0f0 !important;
        color: #111 !important;
    }
    .blog-card-quote .blog-card-title {
        color: #111 !important;
    }
    .blog-content-area .markdown-prose blockquote,
    .blog-content-area .article-body blockquote {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
    .blog-content-area .markdown-prose blockquote p,
    .blog-content-area .article-body blockquote p {
        color: #333 !important;
    }
    .post-nav { display: none !important; }
}
