/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
mark { background: #fef08a; color: inherit; border-radius: 2px; padding: 0 2px; }

:root {
    --primary:      #4f46e5;
    --primary-dark: #3730a3;
    --text:         #111827;
    --text-muted:   #6b7280;
    --border:       #e5e7eb;
    --bg:           #f9fafb;
    --white:        #ffffff;
    --radius:       6px;
    --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:    0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.05);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

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

/* ── Layout ───────────────────────────────────────────────────────────────── */
.site-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.site-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0 60px;
    align-items: start;
}
.site-main--full { grid-template-columns: 1fr; }
.site-main--pb   { padding-top: 0; padding-bottom: 0; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 #e5e7eb, 0 4px 16px rgba(0,0,0,.06);
}

.site-header__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.5px;
    text-decoration: none;
    flex-shrink: 0;
    padding-right: 24px;
}
.site-logo:hover { color: var(--primary); text-decoration: none; }
.site-logo img { height: 44px; width: auto; }

/* ── Primary navigation ───────────────────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: stretch;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color .15s;
    gap: 5px;
}

/* Active underline indicator */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .2s ease;
}

.nav-menu > li > a:hover { color: var(--primary); }
.nav-menu > li.current-menu-item > a { color: var(--primary); }
.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after { transform: scaleX(1); }

/* Chevron for items with children */
.nav-menu > li.menu-item-has-children > a .menu-item-label::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 4px;
    opacity: .6;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Regular dropdown ─────────────────────────────────────────────────────── */
.sub-menu {
    list-style: none;
    margin: 0;
    padding: 6px;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 500;
}
.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.sub-menu li { position: relative; }
.sub-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: background .12s, color .12s;
}
.sub-menu li a:hover { background: #f5f3ff; color: var(--primary); }
.sub-menu li.current-menu-item > a { color: var(--primary); background: #f5f3ff; }

/* ── Mega Menu ────────────────────────────────────────────────────────────── */

/* The mega-menu li is static so dropdown positions relative to .site-header */
.mega-menu-item { position: static !important; }

.mega-dropdown {
    display: none;
    position: absolute;
    /* Span the full width of the sticky header */
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 3px solid var(--primary);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(0,0,0,.10), 0 4px 10px rgba(0,0,0,.06);
    z-index: 500;
    animation: megaFadeIn .18s ease;
}
@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mega-menu-item:hover .mega-dropdown { display: block; }

/* Inner wrapper — constrained to site-container width, centered */
.mega-dropdown-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 20px;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

/* Column widths */
.mega-column {
    flex: 1;
    min-width: 160px;
    padding: 0 24px;
    border-right: 1px solid #f3f4f6;
}
.mega-column:first-child { padding-left: 0; }
.mega-column:last-child  { border-right: none; padding-right: 0; }
.mega-column-span-2 { flex: 2; }
.mega-column-span-3 { flex: 3; }

/* Column heading */
.mega-column-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--primary);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ede9fe;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mega-column-icon { font-size: 14px; }

/* Links list */
.mega-column-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mega-column-links li + li { margin-top: 1px; }

.mega-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: #374151;
    font-size: 13.5px;
    font-weight: 500;
    transition: background .12s, color .12s;
    line-height: 1.3;
}
.mega-link:hover {
    background: #f5f3ff;
    color: var(--primary);
    text-decoration: none;
}
.mega-column-links li.current-menu-item .mega-link {
    background: #ede9fe;
    color: var(--primary);
}

/* Icon + text */
.menu-item-icon  { font-size: 16px; flex-shrink: 0; line-height: 1.3; }
.menu-item-text  { display: flex; flex-direction: column; gap: 2px; }
.menu-item-label { font-weight: 500; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.menu-item-desc  { font-size: 12px; color: #9ca3af; line-height: 1.4; }

/* Badges */
.menu-item-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.4;
    white-space: nowrap;
}
.menu-badge-primary { background: #ede9fe; color: #6d28d9; }
.menu-badge-success { background: #dcfce7; color: #15803d; }
.menu-badge-danger  { background: #fee2e2; color: #b91c1c; }
.menu-badge-warning { background: #fef9c3; color: #92400e; }
.menu-badge-info    { background: #dbeafe; color: #1d4ed8; }
.menu-badge-dark    { background: #1e293b; color: #f8fafc; }

/* Mobile: stack mega columns */
@media (max-width: 860px) {
    .mega-dropdown { position: static; border: none; box-shadow: none; animation: none; }
    .mega-dropdown-inner { flex-direction: column; gap: 0; padding: 8px 0 8px 16px; }
    .mega-column { border-right: none; padding: 0 0 12px 0; flex: none; }
    .mega-column-title { font-size: 10px; margin-bottom: 8px; }
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    align-self: center;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    cursor: pointer;
    padding: 7px 10px;
    font-size: 20px;
    color: #374151;
    line-height: 1;
    transition: background .12s;
}
.nav-toggle:hover { background: var(--bg); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 40px;
}
.hero__content { max-width: 700px; }
.hero__category {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: 12px;
}
.hero__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero__excerpt { font-size: 17px; opacity: .9; margin-bottom: 24px; }
.hero__meta { font-size: 13px; opacity: .75; }

/* ── Post Card ────────────────────────────────────────────────────────────── */
.post-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 12px 36px rgba(79,70,229,.13), 0 4px 12px rgba(0,0,0,.07);
    transform: translateY(-5px);
    border-color: #c4b5fd;
}

/* ── Image (the <a> wrapper) ──────────────────────────────────────────────── */
.post-card__image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e0e7ff, #ddd6fe);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

/* Dark overlay — fades in on card hover */
.post-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.55) 0%, rgba(15,23,42,0) 55%);
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 1;
    pointer-events: none;
}

/* Arrow icon — scales up on hover */
.post-card__image::before {
    content: '→';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    pointer-events: none;
}

.post-card:hover .post-card__image img     { transform: scale(1.08); }
.post-card:hover .post-card__image::after  { opacity: 1; }
.post-card:hover .post-card__image::before { opacity: 1; transform: scale(1); }

/* Placeholder (no image) */
.post-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #a5b4fc;
    transition: transform .45s ease;
}
.post-card:hover .post-card__image-placeholder { transform: scale(1.05); }

/* ── Body ─────────────────────────────────────────────────────────────────── */
.post-card__body {
    padding: 18px 20px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Category pills */
.post-card__categories { display: flex; flex-wrap: wrap; gap: 5px; }
.post-card__category {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--primary);
    background: #ede9fe;
    padding: 3px 9px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.post-card__category:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

/* Title */
.post-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0;
}
.post-card__title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--primary), var(--primary));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: color .2s, background-size .3s ease;
    display: inline;
}
.post-card__title a:hover {
    color: var(--primary);
    background-size: 100% 2px;
}

/* Excerpt */
.post-card__excerpt {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.65;
    flex: 1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #9ca3af;
    background: #fafafa;
}
.post-card__author {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
}
.post-card__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}
.post-card__read-more {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: gap .15s;
}
.post-card__read-more:hover { gap: 6px; text-decoration: none; }

/* ── Search Result Card ───────────────────────────────────────────────────── */
.search-results { display: grid; gap: 16px; }

.search-result-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.search-result-card:hover {
    box-shadow: 0 10px 30px rgba(79,70,229,.12), 0 3px 8px rgba(0,0,0,.06);
    transform: translateY(-3px);
    border-color: #c4b5fd;
}

.search-result__thumb {
    flex-shrink: 0;
    width: 120px;
    height: 84px;
    border-radius: 9px;
    overflow: hidden;
    display: block;
    position: relative;
    background: linear-gradient(135deg, #e0e7ff, #ddd6fe);
}
.search-result__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.search-result__thumb::after {
    content: '→';
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.42);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    opacity: 0;
    transition: opacity .3s ease;
}
.search-result-card:hover .search-result__thumb img { transform: scale(1.08); }
.search-result-card:hover .search-result__thumb::after { opacity: 1; }

.search-result__thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #a5b4fc;
}

.search-result__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.search-result__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}
.search-result__title a { color: #0f172a; text-decoration: none; }
.search-result__title a:hover { color: var(--primary); }
.search-result__title mark { background: #fef9c3; color: #92400e; border-radius: 2px; padding: 0 2px; }

.search-result__excerpt {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}
.search-result__excerpt mark { background: #fef9c3; color: #92400e; border-radius: 2px; padding: 0 2px; }

.search-result__meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .search-result-card { flex-direction: column; }
    .search-result__thumb { width: 100%; height: 160px; border-radius: 8px; }
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.posts-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.posts-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.posts-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .posts-grid--cols-3, .posts-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .posts-grid--cols-2, .posts-grid--cols-3, .posts-grid--cols-4 { grid-template-columns: 1fr; }
}

/* View-all lazy loader */
#va-sentinel { height: 1px; }
#va-loader    { text-align: center; padding: 24px 0; color: var(--text-muted); font-size: 14px; display: none; }
#va-end       { text-align: center; padding: 24px 0; color: var(--text-muted); font-size: 13px; display: none; }

/* ── Single Post ──────────────────────────────────────────────────────────── */
.entry-header { margin-bottom: 32px; }

.entry-categories { margin-bottom: 14px; }
.entry-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--primary);
    background: #ede9fe;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 4px;
    text-decoration: none;
}

.entry-title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.entry-meta a { color: var(--text-muted); text-decoration: none; }
.entry-meta a:hover { color: var(--primary); }
.entry-meta__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.entry-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
}
.entry-featured-image img { width: 100%; max-height: 500px; object-fit: cover; }

/* ── Prose (post content) ─────────────────────────────────────────────────── */
.prose { font-size: 17px; line-height: 1.8; color: #1f2937; }
.prose p  { margin-bottom: 1.4em; }
.prose h2 { font-size: 1.6em; font-weight: 700; margin: 1.6em 0 .6em; line-height: 1.25; }
.prose h3 { font-size: 1.3em; font-weight: 700; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 1.1em; font-weight: 600; margin: 1.2em 0 .4em; }
.prose ul, .prose ol { margin: 1em 0 1em 1.5em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.6em 0;
    padding: .8em 1.4em;
    background: #f5f3ff;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: #4b5563;
}
.prose code {
    background: #f3f4f6;
    color: #e11d48;
    padding: .1em .4em;
    border-radius: 4px;
    font-size: .9em;
    font-family: 'Menlo', 'Monaco', monospace;
}
.prose pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1.2em 1.4em;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.6em 0;
}
.prose pre code { background: none; color: inherit; padding: 0; font-size: .9em; }
.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 1.6em auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95em; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--bg); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ── Post Tags ────────────────────────────────────────────────────────────── */
.entry-tags { margin: 32px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.entry-tags__label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.tag-pill {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: background .15s;
}
.tag-pill:hover { background: #ede9fe; border-color: #c4b5fd; color: var(--primary); text-decoration: none; }

/* ── Share Buttons ────────────────────────────────────────────────────────── */
.share-buttons { display: flex; align-items: center; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.share-buttons__label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
}
.share-btn:hover { opacity: .85; text-decoration: none; }
.share-btn--twitter  { background: #000; color: #fff; }
.share-btn--facebook { background: #1877f2; color: #fff; }
.share-btn--linkedin { background: #0a66c2; color: #fff; }
.share-btn--copy     { background: var(--bg); color: var(--text); border: 1px solid var(--border); cursor: pointer; }

/* ── Author Box ───────────────────────────────────────────────────────────── */
.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 36px 0;
}
.author-box__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}
.author-box__avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c4b5fd, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    flex-shrink: 0;
}
.author-box__name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.author-box__name a { color: inherit; text-decoration: none; }
.author-box__name a:hover { color: var(--primary); }
.author-box__bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Related Posts ────────────────────────────────────────────────────────── */
.related-posts { margin-top: 48px; }
.related-posts__title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.related-posts__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
}

/* Widget card */
.widget {
    background: #fff;
    border: 1px solid #f0f0f5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    overflow: hidden;
    transition: box-shadow .2s;
}
.widget:hover { box-shadow: 0 4px 16px rgba(79,70,229,.08); }

/* Widget title bar */
.widget-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin: -20px -20px 18px;
    padding: 12px 20px;
    background: #f5f3ff;
    border-bottom: 2px solid #ede9fe;
    display: flex;
    align-items: center;
    gap: 7px;
}
.widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Recent Posts widget ───────────────────────────────────────────────────── */
.widget-recent-posts { list-style: none; margin: 0; padding: 0; }

.widget-recent-posts__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background .12s;
}
.widget-recent-posts__item:first-child { padding-top: 0; }
.widget-recent-posts__item:last-child  { border-bottom: none; padding-bottom: 0; }

.widget-recent-posts__thumb {
    display: block;
    flex-shrink: 0;
    width: 60px;
    height: 48px;
    border-radius: 7px;
    overflow: hidden;
    background: #f1f5f9;
}
.widget-recent-posts__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.widget-recent-posts__item:hover .widget-recent-posts__thumb img { transform: scale(1.06); }

.widget-recent-posts__info { flex: 1; min-width: 0; }

.widget-recent-posts__title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.widget-recent-posts__title:hover { color: var(--primary); }

.widget-recent-posts__date {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}
.widget-recent-posts__date::before {
    content: '📅';
    font-size: 10px;
}

/* ── Categories widget ─────────────────────────────────────────────────────── */
.widget-categories { list-style: none; margin: 0; padding: 0; }

.widget-categories__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 10px;
    border-radius: 7px;
    margin: 1px 0;
    transition: background .12s;
}
.widget-categories__item:hover { background: #f5f3ff; }
.widget-categories__item:hover .widget-categories__count { background: var(--primary); color: #fff; }

.widget-categories__item a {
    color: #374151;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.widget-categories__item a::before { content: '›'; color: #c4b5fd; font-size: 16px; line-height: 1; }
.widget-categories__item a:hover { color: var(--primary); }

.widget-categories__count {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 20px;
    transition: background .12s, color .12s;
    flex-shrink: 0;
}

/* ── Tags widget ───────────────────────────────────────────────────────────── */
.widget-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.widget-tag-cloud__tag {
    display: inline-block;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #5b21b6;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 20px;
    text-decoration: none;
    transition: background .12s, color .12s, border-color .12s;
    white-space: nowrap;
}
.widget-tag-cloud__tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}

/* ── Search widget ─────────────────────────────────────────────────────────── */
.widget-search__wrap {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.widget-search__wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.widget-search__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 14px;
    background: transparent;
    color: #1e293b;
    min-width: 0;
}
.widget-search__input::placeholder { color: #9ca3af; }
.widget-search__btn {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.widget-search__btn:hover { background: var(--primary-dark); }
.widget-search__btn svg { display: block; }

/* ── Social Links widget ───────────────────────────────────────────────────── */
.widget-social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.widget-social__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background .12s, color .12s, transform .12s;
}
.widget-social__link:hover { transform: translateX(3px); text-decoration: none; }

.widget-social__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    color: #fff;
}

/* Per-network colors */
.widget-social__link--facebook .widget-social__icon { background: #1877f2; }
.widget-social__link--twitter  .widget-social__icon { background: #000; }
.widget-social__link--instagram .widget-social__icon { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.widget-social__link--youtube  .widget-social__icon { background: #ff0000; }
.widget-social__link--linkedin .widget-social__icon { background: #0a66c2; }

.widget-social__link--facebook:hover  { background: #e8f0fe; color: #1877f2; }
.widget-social__link--twitter:hover   { background: #f0f0f0; color: #000; }
.widget-social__link--instagram:hover { background: #fdf2f8; color: #dc2743; }
.widget-social__link--youtube:hover   { background: #fff0f0; color: #ff0000; }
.widget-social__link--linkedin:hover  { background: #e8f3fb; color: #0a66c2; }

/* ── Text / HTML widget ────────────────────────────────────────────────────── */
.widget-text, .widget-custom-html {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.widget-text a, .widget-custom-html a { color: var(--primary); }

/* ── Archives widget ───────────────────────────────────────────────────────── */
.widget-archives { list-style: none; margin: 0; padding: 0; }
.widget-archives li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 7px;
    margin: 1px 0;
    font-size: 13.5px;
    transition: background .12s;
}
.widget-archives li:hover { background: #f5f3ff; }
.widget-archives a { color: #374151; text-decoration: none; font-weight: 500; }
.widget-archives a:hover { color: var(--primary); }
.widget-archives li span { font-size: 11px; color: #9ca3af; }

/* ── Recent Comments widget ────────────────────────────────────────────────── */
.widget-recent-comments { list-style: none; margin: 0; padding: 0; }
.widget-recent-comments li {
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}
.widget-recent-comments li:last-child { border-bottom: none; }
.widget-recent-comments a { color: #374151; font-weight: 600; text-decoration: none; }
.widget-recent-comments a:hover { color: var(--primary); }

/* ── Comments Section ─────────────────────────────────────────────────────── */
.comments-section { margin-top: 48px; }

.comments-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }

.comment {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }

.comment-children {
    margin-left: 48px;
    border-left: 2px solid var(--border);
    padding-left: 20px;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.comment-body { flex: 1; }
.comment-header { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.comment-author { font-weight: 700; font-size: 14px; }
.comment-author a { color: inherit; text-decoration: none; }
.comment-author a:hover { color: var(--primary); }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-content { font-size: 15px; line-height: 1.65; color: #374151; }
.comment-reply-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    margin-top: 8px;
    display: inline-block;
    text-decoration: none;
}
.comment-reply-btn:hover { text-decoration: underline; }

.comment-form { margin-top: 40px; }
.comment-form__title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #374151; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    color: var(--text);
    background: var(--white);
    font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
textarea.form-control { resize: vertical; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    font-family: inherit;
    line-height: 1;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

.char-counter { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 3px; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background .15s;
}
.pagination a:hover { background: var(--bg); text-decoration: none; }
.pagination .active, .pagination [aria-current="page"] {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination .disabled { color: var(--text-muted); cursor: default; background: none; }

/* ── Page Header (archive pages) ─────────────────────────────────────────── */
.page-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
    margin-bottom: 0;
}
.page-header__title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.page-header__desc  { font-size: 15px; color: var(--text-muted); margin-top: 8px; max-width: 600px; }
.page-header__meta  { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ── Search page ──────────────────────────────────────────────────────────── */
.search-form { display: flex; gap: 8px; margin-bottom: 32px; }
.search-form input {
    flex: 1;
    max-width: 500px;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color .15s;
}
.search-form input:focus { border-color: var(--primary); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(180deg, #0a0f1e 0%, #111827 100%);
    color: #94a3b8;
    margin-top: 60px;
    position: relative;
}

/* Gradient top accent bar */
.site-footer__accent {
    height: 4px;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 52px 0 40px;
}

/* Brand column */
.site-footer__brand { display: flex; flex-direction: column; gap: 0; }
.site-footer__logo { display: block; margin-bottom: 14px; }
.site-footer__logo img { max-height: 48px; width: auto; }
.site-footer__tagline {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 20px;
    max-width: 280px;
}

/* Section headings */
.site-footer__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e293b;
    position: relative;
}
.site-footer__heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}
.site-footer__heading svg { opacity: .6; flex-shrink: 0; }

/* Nav links */
.site-footer__nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.site-footer__nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    padding: 6px 0;
    transition: color .2s ease, gap .2s ease;
    border-radius: 4px;
}
.site-footer__nav a svg { opacity: .5; flex-shrink: 0; transition: opacity .2s, transform .2s; }
.site-footer__nav a:hover { color: #a5b4fc; text-decoration: none; gap: 12px; }
.site-footer__nav a:hover svg { opacity: 1; transform: translateX(2px); }

/* Social icons */
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #1e293b;
    color: #64748b;
    text-decoration: none;
    border: 1px solid #1e293b;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.footer-social__btn:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79,70,229,.4);
    text-decoration: none;
}
.footer-social__btn--facebook:hover  { background: #1877f2; border-color: #1877f2; box-shadow: 0 6px 20px rgba(24,119,242,.4); }
.footer-social__btn--twitter:hover   { background: #1da1f2; border-color: #1da1f2; box-shadow: 0 6px 20px rgba(29,161,242,.4); }
.footer-social__btn--instagram:hover { background: #e1306c; border-color: #e1306c; box-shadow: 0 6px 20px rgba(225,48,108,.4); }
.footer-social__btn--youtube:hover   { background: #ff0000; border-color: #ff0000; box-shadow: 0 6px 20px rgba(255,0,0,.4); }
.footer-social__btn--linkedin:hover  { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 6px 20px rgba(10,102,194,.4); }

/* Bottom bar */
.site-footer__bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}
.site-footer__copy { color: #475569; }
.site-footer__copy strong { color: #94a3b8; font-weight: 600; }
.site-footer__bottom .nav-menu { display: flex; gap: 4px; }
.site-footer__bottom .nav-menu a { color: #475569; font-size: 13px; padding: 4px 10px; border-radius: 4px; transition: color .15s, background .15s; }
.site-footer__bottom .nav-menu a:hover { color: #a5b4fc; background: rgba(79,70,229,.08); text-decoration: none; }

/* Back to top button */
.footer-back-top {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s, transform .2s;
    letter-spacing: .03em;
}
.footer-back-top:hover {
    color: #fff;
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-2px);
}

/* ── Footer widget overrides — strip card styling, match dark theme ─────── */
.site-footer .widget {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: none;
}
.site-footer .widget:last-child { margin-bottom: 0; }
.site-footer .widget:hover { box-shadow: none; }

/* Widget title → styled as footer column heading (reset all sidebar card styles) */
.site-footer .widget-title {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 20px;
    padding: 0 0 12px;
    background: transparent;
    border-bottom: 1px solid #1e293b;
    border-top: none;
    border-left: none;
    border-right: none;
    position: relative;
}
.site-footer .widget-title::before {
    display: none; /* remove sidebar vertical bar */
}
.site-footer .widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}
/* Brand column: hide widget titles (logo/tagline already identify the col) */
.site-footer__brand .widget-title { display: none; }

/* Custom HTML / Text widgets */
.site-footer .widget-custom-html,
.site-footer .widget-text {
    font-size: 14px;
    color: #94a3b8;
}
.site-footer .widget-custom-html a,
.site-footer .widget-text a { color: #94a3b8; }
.site-footer .widget-custom-html a:hover,
.site-footer .widget-text a:hover { color: #a5b4fc; text-decoration: none; }

/* Social Links widget → horizontal icon buttons (matches dark footer style) */
.site-footer .widget-social {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .widget-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #1e293b;
    color: #64748b;
    border: 1px solid #1e293b;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    padding: 0;
    gap: 0;
    overflow: hidden;
}
.site-footer .widget-social__link:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79,70,229,.4);
    text-decoration: none;
}
.site-footer .widget-social__link--facebook:hover  { background: #1877f2; border-color: #1877f2; box-shadow: 0 6px 20px rgba(24,119,242,.4); }
.site-footer .widget-social__link--twitter:hover   { background: #000; border-color: #000; box-shadow: none; }
.site-footer .widget-social__link--instagram:hover { background: #e1306c; border-color: #e1306c; box-shadow: 0 6px 20px rgba(225,48,108,.4); }
.site-footer .widget-social__link--youtube:hover   { background: #ff0000; border-color: #ff0000; box-shadow: 0 6px 20px rgba(255,0,0,.4); }
.site-footer .widget-social__link--linkedin:hover  { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 6px 20px rgba(10,102,194,.4); }
/* Hide text label; show only icon character */
.site-footer .widget-social__link > span:not(.widget-social__icon) { display: none; }
.site-footer .widget-social__icon {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: inherit !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

/* Categories widget → dark footer styling */
.site-footer .widget-categories { list-style: none; margin: 0; padding: 0; }
.site-footer .widget-categories__item {
    padding: 0;
    border-bottom: none;
    background: transparent;
}
.site-footer .widget-categories__item:hover { background: transparent; }
.site-footer .widget-categories__item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid #1e293b;
    transition: color .15s;
}
.site-footer .widget-categories__item:first-child > a { padding-top: 0; }
.site-footer .widget-categories__item:last-child > a { border-bottom: none; }
.site-footer .widget-categories__item > a::before { content: none; }
.site-footer .widget-categories__item > a:hover { color: #a5b4fc; }
.site-footer .widget-categories__count {
    background: #1e293b;
    color: #475569;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}
.site-footer .widget-categories__count:hover { color: #475569; }

/* Recent posts in footer */
.site-footer .widget-recent-posts { list-style: none; margin: 0; padding: 0; }
.site-footer .widget-recent-posts__item { border-bottom: 1px solid #1e293b; padding: 8px 0; }
.site-footer .widget-recent-posts__item:first-child { padding-top: 0; }
.site-footer .widget-recent-posts__item:last-child { border-bottom: none; }
.site-footer .widget-recent-posts__title a { color: #94a3b8; font-weight: 500; }
.site-footer .widget-recent-posts__title a:hover { color: #a5b4fc; text-decoration: none; }
.site-footer .widget-recent-posts__date { color: #475569; }

/* Archives in footer */
.site-footer .widget-archives { list-style: none; margin: 0; padding: 0; }
.site-footer .widget-archives li {
    border-bottom: 1px solid #1e293b;
    background: transparent;
    padding: 7px 0;
}
.site-footer .widget-archives li:last-child { border-bottom: none; }
.site-footer .widget-archives li:hover { background: transparent; }
.site-footer .widget-archives a { color: #94a3b8; }
.site-footer .widget-archives a:hover { color: #a5b4fc; text-decoration: none; }
.site-footer .widget-archives li span { color: #475569; }

/* Search widget in footer */
.site-footer .widget-search__input { background: #1e293b; border-color: #334155; color: #94a3b8; }
.site-footer .widget-search__input::placeholder { color: #475569; }
.site-footer .widget-search__wrap:focus-within { border-color: #4f46e5; }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: 14px; }
.text-xs      { font-size: 12px; }
.font-bold    { font-weight: 700; }
.mt-1  { margin-top: 4px; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }

/* Alert banners */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: #e0f2fe; color: #0c4a6e; border: 1px solid #7dd3fc; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   1200px  large desktop  → default styles
   1024px  laptop         → slightly tighter
    900px  tablet-land    → sidebar collapses
    768px  tablet-port    → nav hamburger, 2-col grids
    480px  large-mobile   → tighter padding
    360px  small-mobile   → minimal
   ══════════════════════════════════════════════════════════════════ */

/* ── Laptop (≤1200px) ─────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .site-container { padding: 0 24px; }
    .site-main { grid-template-columns: 1fr 270px; gap: 32px; }
}

/* ── Tablet landscape (≤1024px) ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .site-container { padding: 0 20px; }
    .site-main { grid-template-columns: 1fr 240px; gap: 24px; }
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .related-posts__grid { grid-template-columns: 1fr 1fr; }
    .posts-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet portrait (≤900px) — sidebar stacks, nav collapses ─────────────── */
@media (max-width: 900px) {
    /* Layout */
    .site-main { grid-template-columns: 1fr; gap: 32px; padding: 28px 0 48px; }
    .sidebar { position: static; }

    /* Nav hamburger */
    .site-header__inner { align-items: center; position: relative; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 20px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,.10);
        z-index: 999;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .site-nav--open { display: block; }
    .nav-menu { flex-direction: column; align-items: flex-start; gap: 0; height: auto; }
    .nav-menu > li { height: auto; align-items: center; width: 100%; }
    .nav-menu > li > a { padding: 11px 6px; height: auto; font-size: 15px; }
    .nav-menu > li > a::after { display: none; }
    .nav-menu > li.menu-item-has-children > a .menu-item-label::after { display: none; }
    .sub-menu {
        position: static; opacity: 1; pointer-events: auto;
        transform: none; box-shadow: none; border: none;
        border-radius: 0; padding: 0 0 4px 20px;
    }
    .mega-menu-item { position: static !important; }
    .mega-dropdown { position: static; border: none; box-shadow: none; animation: none; }
    .mega-dropdown-inner { flex-direction: column; gap: 0; padding: 0 0 8px 20px; max-width: none; }
    .mega-column { border-right: none; padding: 0 0 10px 0; flex: none; }

    /* Grids */
    .related-posts__grid { grid-template-columns: 1fr 1fr; }
    .posts-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
    .posts-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }

    /* Comments form */
    .comment-form .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ── Mobile (≤640px) ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .site-container { padding: 0 16px; }
    .site-main { padding: 20px 0 40px; }
    .site-header__inner { height: 60px; }
    .site-nav { top: 60px; }
    .site-logo img { height: 38px; }

    /* Hero */
    .hero { padding: 32px 0; }
    .hero__title { font-size: 26px; }

    /* Page header */
    .page-header { padding: 20px 0; }
    .page-header__title { font-size: 22px; }

    /* Post cards */
    .post-card { flex-direction: column; }
    .posts-grid { grid-template-columns: 1fr !important; }
    .posts-grid--cols-2,
    .posts-grid--cols-3,
    .posts-grid--cols-4 { grid-template-columns: 1fr; }

    /* Related posts */
    .related-posts__grid { grid-template-columns: 1fr; }

    /* Author box */
    .author-box { flex-direction: column; align-items: center; text-align: center; }

    /* Share buttons */
    .share-buttons { flex-wrap: wrap; gap: 8px; }

    /* Comments */
    .comment-children { margin-left: 20px; padding-left: 14px; }

    /* Footer */
    .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .site-footer__bottom { flex-direction: column; text-align: center; gap: 8px; }

    /* Widgets — no sticky on mobile */
    .sidebar { position: static; }
}

/* ── Small mobile (≤400px) ────────────────────────────────────────────────── */
@media (max-width: 400px) {
    .site-container { padding: 0 12px; }
    .widget { padding: 16px; }
    .widget-title { margin: -16px -16px 14px; padding: 10px 16px; }
    .share-btn { font-size: 12px; padding: 7px 12px; }
    .mega-column-title { font-size: 10px; }
}

/* ── Page Builder Post Cards — unified hover effects ──────────────────────── */

/* Card lift & glow on hover */
.fd-blog-post {
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.fd-blog-post:hover {
    box-shadow: 0 12px 36px rgba(79,70,229,.13), 0 4px 12px rgba(0,0,0,.07) !important;
    transform: translateY(-4px);
    border-color: #c4b5fd !important;
}

/* Image link hover overlay (arrow + dark gradient) */
.pb-img-link {
    position: relative;
    overflow: hidden;
}
.pb-img-link img {
    display: block;
    transition: transform .45s ease;
}
.pb-img-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.55) 0%, rgba(15,23,42,0) 55%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: 1;
}
.pb-img-link::before {
    content: '→';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.pb-img-link:hover img         { transform: scale(1.08); }
.pb-img-link:hover::after      { opacity: 1; }
.pb-img-link:hover::before     { opacity: 1; transform: scale(1); }

/* Title link hover — color shift + underline animation */
.pb-post-title {
    background-image: linear-gradient(var(--primary, #4f46e5), var(--primary, #4f46e5));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: color .2s ease, background-size .3s ease !important;
}
.pb-post-title:hover {
    color: var(--primary, #4f46e5) !important;
    background-size: 100% 2px;
    text-decoration: none !important;
}
