/* ============================================================
   CodeSierra Blog - Brand Stylesheet
   Colors: #FF6E3A (primary), #EC4356 (primary-dark), #FFBB56 (gold)
   Text: #383539 | Background: #FFFFFF
   Consistent with main website (codesierra.tech)
   ============================================================ */

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

:root {
    --primary: #FF6E3A;
    --primary-dark: #EC4356;
    --gold: #FFBB56;
    --text: #383539;
    --text-light: #6b7280;
    --text-muted: #9a949f;
    --bg: #FFFFFF;
    --bg-warm: #FFF9F5;
    --bg-light: #f8f6f4;
    --border: #ede8e4;
    --shadow-sm: 0 1px 3px rgba(56, 53, 57, 0.06);
    --shadow: 0 4px 16px rgba(56, 53, 57, 0.08);
    --shadow-lg: 0 8px 32px rgba(56, 53, 57, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --gradient: linear-gradient(135deg, #FF6E3A 0%, #EC4356 50%, #FFBB56 100%);
    --gradient-text: linear-gradient(135deg, #FF6E3A, #EC4356);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* --- Utility --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }         /* px-4  */
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) {                                                  /* sm:   */
    .container, .container--narrow { padding: 0 24px; }
}
@media (min-width: 1024px) {                                                 /* lg:   */
    .container, .container--narrow { padding: 0 32px; }
}

/* =============================================================
   SHARED HEADER — pixel-perfect match to main website Tailwind
   Selector reference: <header class="site-header">
   ============================================================= */
.site-header {
    background-color: #ffffff;                     /* bg-background        */
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);     /* shadow-sm            */
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header__nav {
    max-width: 80rem;                              /* max-w-7xl = 1280px   */
    margin: 0 auto;
    padding: 0 16px;                               /* px-4                 */
}
@media (min-width: 640px) {
    .site-header__nav { padding: 0 24px; }         /* sm:px-6              */
}
@media (min-width: 1024px) {
    .site-header__nav { padding: 0 32px; }         /* lg:px-8              */
}
.site-header__inner {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;                               /* py-4                 */
}

/* Logo */
.site-header__logo-wrap { display: flex; align-items: center; }
.site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.site-header__logo > * + * { margin-left: 8px; }  /* space-x-2            */
.site-header__logo-icon {
    width: 40px;                                   /* w-10                 */
    height: 40px;                                  /* h-10                 */
    position: relative;
    flex-shrink: 0;
}
.site-header__logo-icon img {
    position: absolute;
    height: 100%; width: 100%;
    left: 0; top: 0; right: 0; bottom: 0;
    object-fit: contain;
}
.site-header__logo-text {
    font-size: 1.5rem;                             /* text-2xl             */
    font-weight: 700;                              /* font-bold            */
    color: var(--text);
}

/* Desktop links */
.site-header__links {
    display: none;                                 /* hidden               */
    align-items: center;
}
.site-header__links > a + a { margin-left: 24px; } /* space-x-6            */
.site-header__links > a {
    font-size: 16px;                               /* text-base            */
    font-weight: 500;                              /* font-medium          */
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-header__links > a:hover { color: var(--primary); }
@media (min-width: 1024px) {
    .site-header__links { display: flex; }         /* lg:flex              */
}

/* CTA button */
.site-header__cta {
    margin-left: 8px;                              /* ml-2                 */
    display: inline-block;
    border-radius: 6px;                            /* rounded-md           */
    background-color: var(--primary);              /* bg-primary           */
    padding: 8px 16px;                             /* py-2 px-4            */
    font-size: 16px;                               /* text-base            */
    font-weight: 500;                              /* font-medium          */
    color: #ffffff !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.site-header__cta:hover {
    background-color: var(--primary-dark);         /* hover:bg-primary-dark*/
    color: #ffffff !important;
}

/* Mobile hamburger wrapper */
.site-header__mobile-toggle {
    display: block;
}
.site-header__mobile-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;                            /* rounded-md           */
    padding: 8px;                                  /* p-2                  */
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}
.site-header__mobile-toggle button:hover {
    background: #f3f4f6;                           /* hover:bg-gray-100    */
}
.site-header__mobile-toggle svg {
    width: 24px; height: 24px;                     /* h-6 w-6              */
}
.site-header__mobile-toggle .icon-close { display: none; }
.site-header__mobile-toggle button.active .icon-open { display: none; }
.site-header__mobile-toggle button.active .icon-close { display: block; }
@media (min-width: 1024px) {
    .site-header__mobile-toggle { display: none; } /* lg:hidden            */
}

/* Screen-reader only utility */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 110, 58, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 110, 58, 0.35);
    color: white;
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* --- Hero / Page Header --- */
.page-hero {
    background: var(--bg-warm);
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 {
    font-size: 2.6em;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.15;
}
.page-hero h1 span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero p {
    font-size: 1.15em;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Blog Grid --- */
.blog-section {
    padding: 48px 0 80px;
}
.blog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.blog-section-header h2 {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text);
}
.post-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 4px 14px;
    border-radius: 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* --- Post Card --- */
.post-card {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.post-card-accent {
    height: 4px;
    background: var(--gradient);
}
.post-card-thumb {
    overflow: hidden;
    max-height: 180px;
}
.post-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}
.post-card-body {
    padding: 24px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.post-card-badge {
    display: inline-block;
    background: var(--bg-warm);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
}
.post-card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-title a {
    color: inherit;
    text-decoration: none;
}
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.post-card-read {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.post-card-read:hover { gap: 8px; }
.post-card-readtime {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Featured Post (first card) --- */
.post-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: none;
    background: var(--bg-warm);
}
.post-featured .post-card-accent { display: none; }
.post-featured .post-featured-visual {
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) 0 0 var(--radius);
}
.post-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
}
.post-featured .post-featured-visual::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}
.post-featured .featured-label {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.post-featured .post-card-body {
    padding: 36px 32px;
}
.post-featured .post-card-title {
    font-size: 1.5em;
    -webkit-line-clamp: 4;
}
.post-featured .post-card-excerpt {
    -webkit-line-clamp: 4;
}

/* --- Article Page --- */
.article-header {
    background: var(--bg-warm);
    padding: 50px 0 40px;
    border-bottom: 1px solid var(--border);
}
.article-header .breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.article-header .breadcrumb a { color: var(--primary); }
.article-header h1 {
    font-size: 2.4em;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}
.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article Featured Image */
.article-featured-image {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Article Inline Images (section illustrations) */
.article-inline-image {
    margin: 32px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article-inline-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Article Body */
.article-content {
    padding: 48px 0 60px;
}
.article-body h1 {
    display: none; /* Hide duplicate h1 from Gemini output */
}
.article-body h2 {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text);
    margin-top: 44px;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}
.article-body h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 12px;
}
.article-body p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
}
.article-body strong { color: var(--text); }
.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-left: 28px;
}
.article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}
.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-warm);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-light);
}
.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(255, 110, 58, 0.3);
    text-underline-offset: 2px;
}
.article-body a:hover {
    text-decoration-color: var(--primary);
}

/* Article CTA — softer warm gradient, all-white text */
.article-body .cta-section {
    background: linear-gradient(135deg, #ff8a5c 0%, #ea5455 60%, #feb47b 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: var(--radius);
    margin-top: 48px;
    text-align: center;
}
.article-body .cta-section h2,
.article-body .cta-section h3,
.article-body .cta-section p,
.article-body .cta-section strong,
.article-body .cta-section em,
.article-body .cta-section li,
.article-body .cta-section span {
    color: #ffffff !important;
}
.article-body .cta-section h2 {
    margin-top: 0;
    font-size: 1.4em;
    border-bottom: none;
}
.article-body .cta-section p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.95) !important;
}
.article-body .cta-section a {
    color: #ffffff !important;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.5);
    font-weight: 600;
}
.article-body .cta-section a:hover {
    text-decoration-color: #ffffff;
}
.article-body .cta-section .cta-btn,
.cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary) !important;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 15px;
    margin-top: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    color: var(--primary);
}

/* Source attribution */
.article-source {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}
.article-source a { color: var(--primary); }

/* --- Sidebar CTA (sticky) --- */
.article-sidebar-cta {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 80px;
}
.article-sidebar-cta h3 {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.article-sidebar-cta p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* =============================================================
   SHARED FOOTER — pixel-perfect match to main website Tailwind
   Selector reference: <footer class="site-footer">
   ============================================================= */
.site-footer {
    background-color: #f9fafb;                     /* bg-gray-50           */
    border-top: 1px solid #e5e7eb;                 /* border-t gray-200    */
}
.site-footer__inner {
    max-width: 80rem;                              /* max-w-7xl            */
    margin: 0 auto;
    padding: 48px 16px;                            /* py-12 px-4           */
}
@media (min-width: 640px) {
    .site-footer__inner { padding: 48px 24px; }    /* sm:px-6              */
}
@media (min-width: 1024px) {
    .site-footer__inner { padding: 48px 32px; }    /* lg:px-8              */
}

/* Grid */
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;                    /* grid-cols-1          */
    gap: 32px;                                     /* gap-8                */
}
@media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); } /* md:grid-cols-2 */
}
@media (min-width: 1024px) {
    .site-footer__grid { grid-template-columns: repeat(4, 1fr); } /* lg:grid-cols-4 */
}

/* Brand column */
.site-footer__brand-row {
    display: flex;
    align-items: center;
}
.site-footer__brand-row > * + * { margin-left: 8px; } /* space-x-2 */
.site-footer__brand-icon {
    width: 32px; height: 32px;                     /* w-8 h-8              */
    position: relative;
    flex-shrink: 0;
}
.site-footer__brand-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.site-footer__brand-name {
    font-size: 1.25rem;                            /* text-xl              */
    font-weight: 700;                              /* font-bold            */
    color: var(--text);
}
.site-footer__tagline {
    font-size: 0.75rem;                            /* text-xs              */
    color: var(--text-light);
    margin-top: 4px;                               /* mt-1                 */
}
.site-footer__dev-promo {
    margin-top: 24px;                              /* mt-6                 */
    padding-top: 16px;                             /* pt-4                 */
    border-top: 1px solid #f3f4f6;                 /* border-gray-100      */
}
.site-footer__dev-title {
    font-size: 0.875rem;                           /* text-sm              */
    font-weight: 600;                              /* font-semibold        */
    color: var(--text);
    margin-bottom: 4px;                            /* mb-1                 */
}
.site-footer__dev-text {
    font-size: 0.875rem;                           /* text-sm              */
    color: var(--text-light);
    line-height: 1.625;
}
.site-footer__dev-text a {
    color: var(--primary);
    transition: color 0.15s ease;
}
.site-footer__dev-text a:hover { color: var(--primary-dark); }

/* Column headings */
.site-footer__heading {
    font-size: 0.875rem;                           /* text-sm              */
    font-weight: 600;                              /* font-semibold        */
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;                        /* tracking-wider       */
    margin-bottom: 16px;                           /* mb-4                 */
}

/* Link lists */
.site-footer__list {
    list-style: none;
}
.site-footer__list li + li { margin-top: 8px; }   /* space-y-2            */
.site-footer__list a {
    font-size: 0.875rem;                           /* text-sm              */
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-footer__list a:hover { color: var(--primary); }

/* Contact column specifics */
.site-footer__address {
    padding-top: 8px;                              /* pt-2                 */
}
.site-footer__country {
    font-size: 0.875rem;
    font-weight: 500;                              /* font-medium          */
    color: var(--text);
}
.site-footer__addr-line {
    font-size: 0.75rem;                            /* text-xs              */
    color: var(--text-light);
    margin-top: 4px;
}

/* Bottom bar */
.site-footer__bottom {
    margin-top: 32px;                              /* mt-8                 */
    border-top: 1px solid #e5e7eb;                 /* border-t gray-200    */
    padding-top: 32px;                             /* pt-8                 */
}
.site-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) {
    .site-footer__bottom-inner {
        flex-direction: row;                       /* md:flex-row           */
        justify-content: space-between;
    }
}
.site-footer__bottom p {
    font-size: 0.875rem;                           /* text-sm              */
    color: var(--text-light);
}

/* Social icons */
.site-footer__socials {
    display: flex;
    margin-top: 16px;                              /* mt-4                 */
}
.site-footer__socials > * + * { margin-left: 24px; } /* space-x-6 */
@media (min-width: 768px) {
    .site-footer__socials { margin-top: 0; }       /* md:mt-0              */
}
.site-footer__socials a {
    color: var(--text-light);
    transition: color 0.15s ease;
}
.site-footer__socials a:hover { color: var(--primary); }
.site-footer__socials svg {
    width: 20px; height: 20px;                     /* h-5 w-5              */
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg);
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination-btn:hover {
    border-color: var(--primary);
    background: var(--bg-warm);
    color: var(--primary);
}
.pagination-disabled {
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.5;
}
.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination-page:hover {
    background: var(--bg-warm);
    color: var(--primary);
}
.pagination-current {
    background: var(--gradient);
    color: white;
}
.pagination-current:hover {
    color: white;
}
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .pagination { gap: 4px; }
    .pagination-btn { padding: 8px 12px; font-size: 13px; }
    .pagination-page, .pagination-ellipsis { width: 34px; height: 34px; font-size: 13px; }
    .pagination-prev span, .pagination-next span { display: none; }
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state h2 {
    font-size: 1.5em;
    color: var(--text);
    margin-bottom: 12px;
}
.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* --- Related Articles (Internal Linking) --- */
.related-articles {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}
.related-articles-heading {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    border-bottom: none;
    display: block;
}
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.related-article-card {
    display: block;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
}
.related-article-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.related-article-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: rgba(255, 110, 58, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.related-article-card h3 {
    font-size: 1em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-article-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.related-article-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* --- Mobile Navigation Menu --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 49;
    padding: 80px 24px 32px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu a {
    display: block;
    padding: 14px 16px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.mobile-menu a:hover {
    background: #f3f4f6;                           /* gray-100             */
    color: var(--primary);
}
.mobile-menu__cta {
    display: inline-flex !important;
    justify-content: center;
    margin-top: 16px;
    background: var(--primary) !important;
    color: #ffffff !important;
    padding: 14px 24px !important;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
}
.mobile-menu__cta:hover {
    background: var(--primary-dark) !important;
    color: #ffffff !important;
}
@media (min-width: 1024px) {
    .mobile-menu { display: none !important; }     /* lg: hide             */
}

@media (max-width: 768px) {
    .page-hero { padding: 40px 0 32px; }
    .page-hero h1 { font-size: 1.8em; }
    .posts-grid { grid-template-columns: 1fr; }
    .post-featured { grid-template-columns: 1fr; }
    .post-featured .post-featured-visual {
        border-radius: var(--radius) var(--radius) 0 0;
        min-height: 100px;
    }
    .article-header h1 { font-size: 1.7em; }
    .article-body .cta-section { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn { padding: 8px 16px; font-size: 13px; }
    .post-card-body { padding: 18px; }
}

/* --- Print --- */
@media print {
    .site-header, .site-footer, .mobile-menu { display: none; }
    .article-body .cta-section { break-inside: avoid; }
}
