/* ================================================================
   DSC-SINGLE-COL — Zapier-inspired theme for DeadSimpleChat Blog
   ================================================================ */

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

/* ── CSS Custom Properties ── */
:root {
    /* Brand purples */
    --purple-700: #6d28d9;
    --purple-600: #7c3aed;
    --purple-500: #8b5cf6;
    --purple-400: #a78bfa;
    --purple-300: #c4b5fd;
    --purple-200: #ddd6fe;
    --purple-100: #ede9fe;
    --purple-50: #f5f3ff;

    /* Neutrals */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;

    /* Page-level */
    --bg-page: #faf8ff;
    --bg-card: #ffffff;
    --border-subtle: rgba(124, 58, 237, 0.06);
    --border-card: rgba(124, 58, 237, 0.08);

    /* Shadows (purple-tinted) */
    --shadow-sm: 0 1px 2px rgba(124, 58, 237, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(124, 58, 237, 0.06), 0 2px 4px -2px rgba(124, 58, 237, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(124, 58, 237, 0.06), 0 4px 6px -4px rgba(124, 58, 237, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(124, 58, 237, 0.06), 0 8px 10px -6px rgba(124, 58, 237, 0.03);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #c4b5fd 100%);

    /* Radii */
    --radius: 12px;
    --radius-lg: 16px;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Transitions */
    --transition: 200ms ease;
}

/* ── Base ── */
body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--gray-900); line-height: 1.25; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 255, 0.92);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.3px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links > li > a,
.nav-dropdown-toggle {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    padding: 8px 14px;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-dropdown-toggle:hover {
    color: var(--purple-600);
    background: var(--purple-50);
}

/* Auth buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-auth a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-auth a:first-child {
    color: var(--gray-600);
}

.nav-auth a:first-child:hover {
    color: var(--purple-600);
}

.btn-signup {
    background: var(--purple-600);
    color: var(--white) !important;
}

.btn-signup:hover {
    background: var(--purple-500);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    padding: 4px;
}

/* ── Flyout Menus ── */
.has-dropdown {
    position: relative;
}

.nav-flyout {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 200;
    animation: flyoutIn 200ms ease;
}

@keyframes flyoutIn {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.has-dropdown:hover > .nav-flyout {
    display: block;
}

.nav-flyout::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

/* Wide flyout (SDKs) */
.nav-flyout-wide {
    width: 400px;
}

.flyout-items {
    padding: 12px;
}

.flyout-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background var(--transition);
}

.flyout-item:hover {
    background: var(--gray-50);
}

.flyout-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 10px;
}

.flyout-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flyout-text strong {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.flyout-text small {
    font-size: 13px;
    color: var(--gray-500);
}

.flyout-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--gray-100);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.flyout-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}

.flyout-footer a:hover {
    color: var(--purple-600);
    background: var(--purple-50);
}

/* Compact flyout (Solutions) */
.nav-flyout-compact {
    width: 220px;
    padding: 8px;
}

.nav-flyout-compact a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.nav-flyout-compact a:hover {
    background: var(--purple-50);
    color: var(--purple-600);
}

/* ── Mobile Nav ── */
.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 16px 16px;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: 8px;
    transition: background var(--transition);
}

.nav-mobile a:hover {
    background: var(--gray-50);
}

.mobile-signup {
    margin-top: 8px;
    background: var(--purple-600);
    color: var(--white) !important;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
}

/* ================================================================
   FEATURED HERO
   ================================================================ */
.featured-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 0;
}

.featured-hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.featured-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.08);
}

.featured-hero-image {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.featured-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition);
}

.featured-hero-card:hover .featured-hero-image img {
    opacity: 0.85;
}

.featured-hero-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: rgba(255, 255, 255, 0.5);
}

.featured-hero-placeholder svg {
    width: 64px;
    height: 64px;
}

.featured-hero-content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--purple-100);
    color: var(--purple-700);
    padding: 5px 14px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.featured-category {
    font-size: 14px;
    font-weight: 600;
    color: var(--purple-600);
    margin-bottom: 12px;
    display: inline-block;
}

.featured-hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.featured-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-400);
}

.featured-meta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.featured-meta-author {
    font-weight: 600;
    color: var(--gray-600);
}

.featured-meta-sep {
    color: var(--gray-300);
}

/* ================================================================
   CATEGORIES
   ================================================================ */
.categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 0;
}

.categories-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-inner::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    background: var(--bg-card);
    transition: all var(--transition);
    white-space: nowrap;
}

.cat-pill:hover {
    border-color: var(--purple-300);
    color: var(--purple-600);
    background: var(--purple-50);
}

.cat-pill.active {
    background: var(--purple-600);
    color: var(--white);
    border-color: var(--purple-600);
}

/* ================================================================
   BLOG SECTION & GRID
   ================================================================ */
.blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 60px;
}

.blog-section-bottom {
    padding-top: 0;
}

.blog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.blog-section-header h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.view-all {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--purple-600);
    transition: color var(--transition);
}

.view-all:hover {
    color: var(--purple-500);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ================================================================
   POST CARDS
   ================================================================ */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

.post-card-image {
    height: 193px;
    overflow: hidden;
    position: relative;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition);
}

.post-card:hover .post-card-image img {
    opacity: 0.5;
}

.post-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: rgba(255, 255, 255, 0.5);
}

.post-card-placeholder svg {
    width: 40px;
    height: 40px;
}

.post-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-tag {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--purple-600);
    background: var(--purple-50);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.post-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.post-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-500);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-400);
    margin-top: auto;
}

.post-card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card-author {
    font-weight: 600;
    color: var(--gray-600);
}

.post-card-meta-sep {
    color: var(--gray-300);
}

/* ================================================================
   NEWSLETTER CTA
   ================================================================ */
.newsletter-cta {
    background: var(--purple-600);
    padding: 64px 32px;
    border-radius: var(--radius-lg);
    max-width: 1136px;
    margin: 0 auto 48px;
}

.newsletter-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-cta-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.newsletter-cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.newsletter-cta-input-group {
    display: flex;
    gap: 8px;
}

.newsletter-cta-form input[type="email"] {
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 15px;
    font-family: var(--font-body);
    outline: none;
    min-width: 260px;
    transition: border-color var(--transition), background var(--transition);
}

.newsletter-cta-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-cta-form input[type="email"]:focus {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.25);
}

.newsletter-cta-form button {
    padding: 14px 28px;
    background: var(--white);
    color: var(--purple-600);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.newsletter-cta-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.newsletter-cta-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

/* ================================================================
   POST HEADER (article page — clean, no gradient)
   ================================================================ */
.post-header {
    padding: 48px 32px 32px;
}

.post-header-inner {
    max-width: 780px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gray-500);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--purple-600);
}

.breadcrumb-sep {
    color: var(--gray-300);
}

.breadcrumb-current {
    color: var(--gray-400);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* Meta top row */
.post-header-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.post-category-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--purple-600);
    text-decoration: underline;
    text-decoration-color: var(--purple-300);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.post-category-label:hover {
    text-decoration-color: var(--purple-600);
}

.post-reading-time {
    font-size: 14px;
    color: var(--gray-400);
}

/* Title */
.post-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--gray-900);
    margin-bottom: 24px;
}

/* Author + Date */
.post-author-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple-100);
}

.post-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.post-author-name a {
    color: var(--gray-900);
    text-decoration: none;
}

.post-author-name a:hover {
    color: var(--purple-600);
}

.post-publish-date {
    font-size: 14px;
    color: var(--gray-400);
}

/* ================================================================
   POST FEATURE IMAGE
   ================================================================ */
.post-feature-image {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}

.post-feature-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ================================================================
   POST LAYOUT (content + TOC)
   ================================================================ */
.post-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 0;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 64px;
    align-items: start;
}

.post-content {
    max-width: 720px;
    min-width: 0;
}

/* ── Table of Contents ── */
.toc {
    position: sticky;
    top: 80px;
    padding-top: 8px;
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
    border-left: 2px solid var(--gray-200);
    padding-left: 16px;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color var(--transition);
    display: block;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--purple-600);
}

.toc-list a.active {
    color: var(--purple-600);
    font-weight: 600;
}

/* ================================================================
   ARTICLE CONTENT (gh-content)
   ================================================================ */
.gh-content {
    font-size: 18px;
    line-height: 1.75;
    color: var(--gray-700);
}

.gh-content > * + * {
    margin-top: 24px;
}

.gh-content h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.gh-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
}

.gh-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 8px;
}

.gh-content p {
    margin-bottom: 24px;
}

.gh-content a {
    color: var(--purple-600);
    text-decoration: underline;
    text-decoration-color: var(--purple-300);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.gh-content a:hover {
    text-decoration-color: var(--purple-600);
}

.gh-content strong {
    font-weight: 600;
    color: var(--gray-900);
}

.gh-content ul,
.gh-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.gh-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.gh-content li::marker {
    color: var(--purple-400);
}

.gh-content blockquote {
    border-left: 3px solid var(--purple-400);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--purple-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 17px;
    font-style: italic;
    color: var(--gray-600);
}

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

.gh-content pre {
    background: var(--gray-900);
    color: #e2e8f0;
    padding: 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    margin: 32px 0;
}

.gh-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--purple-50);
    color: var(--purple-700);
    padding: 2px 6px;
    border-radius: 4px;
}

.gh-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.gh-content hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 48px 0;
}

.gh-content img {
    border-radius: var(--radius);
    margin: 32px 0;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
}

.gh-content th {
    background: var(--gray-50);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--gray-200);
    color: var(--gray-900);
}

.gh-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}

/* Ghost KG Cards */
.gh-content .kg-image-card,
.gh-content .kg-gallery-card {
    margin: 32px 0;
}

.gh-content .kg-image-card img {
    margin: 0;
}

.gh-content .kg-image-card figcaption,
.gh-content .kg-gallery-card figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 12px;
}

.gh-content .kg-width-wide {
    max-width: calc(720px + 120px);
    margin-left: calc((720px - 100%) / 2 - 60px);
}

.gh-content .kg-width-full {
    max-width: none;
    margin-left: calc(-32px);
    margin-right: calc(-32px);
    width: calc(100% + 64px);
}

.gh-content .kg-width-full img {
    border-radius: 0;
}

.gh-content .kg-bookmark-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 32px 0;
}

.gh-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.gh-content .kg-bookmark-content {
    flex: 1;
    padding: 20px;
}

.gh-content .kg-bookmark-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.gh-content .kg-bookmark-description {
    font-size: 14px;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.gh-content .kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-400);
}

.gh-content .kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.gh-content .kg-bookmark-author::before {
    content: '•';
    margin-right: 6px;
}

.gh-content .kg-bookmark-thumbnail {
    width: 180px;
    position: relative;
}

.gh-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

/* ================================================================
   CTA BOX (in post content)
   ================================================================ */
.post-cta {
    background: var(--purple-600);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin: 48px 0;
}

.post-cta h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.post-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.post-cta a {
    display: inline-block;
    padding: 14px 32px;
    background: var(--white);
    color: var(--purple-600);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.post-cta a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Post Divider ── */
.post-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 48px 0;
}

/* ================================================================
   AUTHOR CARD
   ================================================================ */
.author-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.author-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ================================================================
   SHARE BAR
   ================================================================ */
.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    margin-bottom: 60px;
}

.share-bar > span {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    margin-right: 4px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.share-btn:hover {
    background: var(--purple-100);
    color: var(--purple-600);
}

/* ================================================================
   RELATED POSTS
   ================================================================ */
.related-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.related-posts-inner {
    border-top: 1px solid var(--gray-200);
    padding-top: 48px;
}

.related-posts h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ================================================================
   ARCHIVE HEADER (tag, author pages)
   ================================================================ */
.archive-header {
    padding: 64px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.archive-header-inner {
    max-width: 600px;
    margin: 0 auto;
}

.archive-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple-600);
    margin-bottom: 8px;
}

.archive-header h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.archive-header p {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.5;
}

.archive-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    border: 3px solid var(--purple-200);
}

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header {
    padding: 64px 32px;
    text-align: center;
}

.page-header-inner {
    max-width: 780px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

/* Page content */
.page-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

/* ================================================================
   ERROR PAGE
   ================================================================ */
.error-page {
    text-align: center;
    padding: 120px 32px;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 800;
    color: var(--purple-200);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-page p {
    font-size: 17px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--purple-600);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    transition: background var(--transition);
}

.btn-primary:hover {
    background: var(--purple-500);
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 0;
    font-family: var(--font-heading);
    font-size: 15px;
}

.pagination a {
    font-weight: 600;
    color: var(--purple-600);
    transition: color var(--transition);
}

.pagination a:hover {
    color: var(--purple-500);
}

.pagination span {
    color: var(--gray-400);
    font-size: 14px;
}

/* ================================================================
   FOOTER (dark)
   ================================================================ */
.footer {
    background: var(--gray-900);
    padding: 64px 0 0;
    margin-top: 48px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 48px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--purple-300);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .blog-grid,
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-hero-card {
        grid-template-columns: 1fr;
    }

    .featured-hero-image {
        min-height: 280px;
        max-height: 340px;
    }

    .featured-hero-content {
        padding: 32px;
    }

    .featured-hero-content h1 {
        font-size: 30px;
    }

    .post-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .toc {
        display: none;
    }

    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .newsletter-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-cta-form {
        width: 100%;
    }

    .newsletter-cta-input-group {
        justify-content: center;
    }

    .gh-content .kg-width-wide {
        max-width: none;
        margin-left: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-auth {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

    .featured-hero {
        padding: 24px 16px 0;
    }

    .featured-hero-image {
        min-height: 200px;
        max-height: 260px;
    }

    .featured-hero-content {
        padding: 24px;
    }

    .featured-hero-content h1 {
        font-size: 26px;
    }

    .featured-excerpt {
        font-size: 15px;
    }

    .categories {
        padding: 24px 16px 0;
    }

    .blog-section {
        padding: 24px 16px 48px;
    }

    .blog-section-header h2 {
        font-size: 22px;
    }

    .post-card-image {
        height: 180px;
    }

    .post-card-title {
        font-size: 18px;
    }

    .post-header {
        padding: 32px 16px 24px;
    }

    .post-title {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .post-feature-image {
        padding: 0 16px;
    }

    .post-layout {
        padding: 32px 16px 0;
    }

    .gh-content {
        font-size: 17px;
    }

    .gh-content h2 {
        font-size: 24px;
    }

    .gh-content h3 {
        font-size: 20px;
    }

    .post-cta {
        padding: 32px 24px;
    }

    .post-cta h3 {
        font-size: 22px;
    }

    .related-posts {
        padding: 0 16px 60px;
    }

    .newsletter-cta {
        margin: 0 16px 32px;
        padding: 40px 24px;
    }

    .newsletter-cta-content h2 {
        font-size: 24px;
    }

    .newsletter-cta-input-group {
        flex-direction: column;
    }

    .newsletter-cta-form input[type="email"] {
        min-width: auto;
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .archive-header {
        padding: 40px 16px;
    }

    .archive-header h1 {
        font-size: 32px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .error-code {
        font-size: 80px;
    }

    .breadcrumb-current {
        max-width: 180px;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .share-bar {
        flex-wrap: wrap;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .featured-hero-content h1 {
        font-size: 22px;
    }

    .post-title {
        font-size: 26px;
    }
}
