﻿/* ── CSS Custom Properties ─────────────────────────────────────────── */
:root {
    --c-primary: #1a56db;
    --c-primary-d: #1240a8;
    --c-accent: #f59e0b;
    --c-accent-d: #d97706;
    --c-dark: #0f172a;
    --c-dark-2: #1e293b;
    --c-mid: #475569;
    --c-light: #94a3b8;
    --c-border: #e2e8f0;
    --c-bg: #f8fafc;
    --c-white: #ffffff;
    --c-success: #10b981;
    --c-tag-bg: #eff6ff;
    --c-tag-text: #1a56db;
    --font-head: 'Sora', system-ui, sans-serif;
    --font-body: 'Lora', Georgia, serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
    --max-w: 1200px;
    --sidebar-w: 320px;
    --transition: 0.22s ease;
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--c-dark);
    background: var(--c-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color var(--transition)
}

    a:hover {
        color: var(--c-primary-d)
    }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    line-height: 1.25;
    font-weight: 700;
    color: var(--c-dark)
}

p {
    margin-bottom: 1.1em
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.1em
}

li {
    margin-bottom: .4em
}

/* ── Utility ───────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 1.25rem
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap
}

.text-center {
    text-align: center
}

.text-muted {
    color: var(--c-mid)
}

/* ── Badges / Tags ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .7rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase
}

.badge-cat {
    background: var(--c-tag-bg);
    color: var(--c-tag-text)
}

.badge-top {
    background: #fef3c7;
    color: #92400e
}

.badge-budget {
    background: #d1fae5;
    color: #065f46
}

.badge-scale {
    background: #ede9fe;
    color: #5b21b6
}

.badge-featured {
    background: var(--c-accent);
    color: var(--c-white)
}

.badge-new {
    background: #fee2e2;
    color: #991b1b
}

/* ══════════════════════════════════════════════════════════════════
               HEADER
               ══════════════════════════════════════════════════════════════════ */
.site-header {
    background: var(--c-white);
    border-bottom: 2px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

/* AdSense Header Banner */
.header-ad-bar {
    background: #f1f5f9;
    border-bottom: 1px solid var(--c-border);
    padding: .5rem 0;
    text-align: center;
    min-height: 50px;
}

    .header-ad-bar .ad-label {
        font-family: var(--font-head);
        font-size: .65rem;
        color: var(--c-light);
        letter-spacing: .06em;
        text-transform: uppercase;
        margin-bottom: .2rem;
    }

.ad-slot {
    width: 100%;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-light);
    font-family: var(--font-head);
    font-size: .75rem;
    letter-spacing: .05em;
}

.ad-slot-leaderboard {
    min-height: 90px
}

.ad-slot-rectangle {
    min-height: 250px;
    max-width: 300px;
    margin-inline: auto
}

.ad-in-content {
    min-height: 280px;
    margin: 2rem 0;
    padding: 1rem
}

.ad-slot-footer {
    min-height: 90px;
    margin: 2rem 0
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 0;
    gap: 1rem;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--c-dark);
    white-space: nowrap;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--c-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-icon svg {
        width: 22px;
        height: 22px;
        fill: white
    }

.logo-accent {
    color: var(--c-primary)
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: .25rem
}

.nav-link {
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 600;
    color: var(--c-mid);
    padding: .4rem .75rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition),color var(--transition);
}

    .nav-link:hover, .nav-link.active {
        background: var(--c-tag-bg);
        color: var(--c-primary)
    }

/* Search bar */
.header-search {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--c-bg);
    border: 1.5px solid var(--c-border);
    border-radius: 50px;
    padding: .3rem .35rem .3rem .9rem;
    transition: border-color var(--transition);
}

    .search-form:focus-within {
        border-color: var(--c-primary)
    }

    .search-form input {
        background: none;
        border: none;
        outline: none;
        font-family: var(--font-head);
        font-size: .85rem;
        color: var(--c-dark);
        width: 160px;
    }

    .search-form button {
        background: var(--c-primary);
        border: none;
        cursor: pointer;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: background var(--transition);
        flex-shrink: 0;
    }

        .search-form button:hover {
            background: var(--c-primary-d)
        }

        .search-form button svg {
            width: 14px;
            height: 14px;
            fill: white
        }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    color: var(--c-dark);
}

    .menu-toggle svg {
        width: 24px;
        height: 24px;
        fill: currentColor
    }

/* ══════════════════════════════════════════════════════════════════
               BREADCRUMB
               ══════════════════════════════════════════════════════════════════ */
.breadcrumb-bar {
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    padding: .55rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-head);
    font-size: .8rem;
    color: var(--c-mid);
}

    .breadcrumb li:not(:last-child)::after {
        content: "/";
        margin-left: .3rem;
        color: var(--c-light)
    }

    .breadcrumb a {
        color: var(--c-mid);
        transition: color var(--transition)
    }

        .breadcrumb a:hover {
            color: var(--c-primary)
        }

    .breadcrumb [aria-current] {
        color: var(--c-dark);
        font-weight: 600
    }

/* ══════════════════════════════════════════════════════════════════
               LAYOUT: main + sidebar
               ══════════════════════════════════════════════════════════════════ */
.page-body {
    padding: 2.5rem 0 4rem
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 2.5rem;
    align-items: start;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem
}

.sidebar-widget {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.widget-title {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-mid);
    padding: .9rem 1.2rem;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
}

.widget-body {
    padding: 1rem 1.2rem
}

/* ══════════════════════════════════════════════════════════════════
               BLOG CARDS (listing grid)
               ══════════════════════════════════════════════════════════════════ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 1.6rem;
}

.posts-grid-large {
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
}

.post-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition),box-shadow var(--transition),border-color var(--transition);
}

    .post-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--c-primary);
    }

.card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #e2e8f0;
}

    .card-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

.post-card:hover .card-img-wrap img {
    transform: scale(1.05)
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#dbeafe 0%,#eff6ff 100%);
}

    .card-img-placeholder svg {
        width: 48px;
        height: 48px;
        opacity: .3;
        fill: var(--c-primary)
    }

.card-cat-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1
}

.card-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-head);
    font-size: .75rem;
    color: var(--c-light);
    margin-bottom: .65rem;
}

.card-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--c-border)
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .6rem;
    color: var(--c-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .card-title a {
        color: inherit;
        transition: color var(--transition)
    }

        .card-title a:hover {
            color: var(--c-primary)
        }

.card-excerpt {
    font-size: .88rem;
    color: var(--c-mid);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .85rem;
    border-top: 1px solid var(--c-border);
}

.card-author {
    font-family: var(--font-head);
    font-size: .78rem;
    color: var(--c-mid);
}

.card-read-more {
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    gap: .3rem;
    transition: gap var(--transition);
}

    .card-read-more:hover {
        gap: .6rem;
        color: var(--c-primary-d)
    }

    .card-read-more svg {
        width: 14px;
        height: 14px;
        fill: currentColor
    }

/* Featured card variant */
.post-card-featured {
    grid-column: span 2;
    flex-direction: row;
}

    .post-card-featured .card-img-wrap {
        width: 45%;
        flex-shrink: 0;
        aspect-ratio: unset;
        border-radius: 0;
    }

    .post-card-featured .card-title {
        font-size: 1.3rem
    }

/* ══════════════════════════════════════════════════════════════════
               HERO SECTION
               ══════════════════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg,#0f172a 0%,#1e3a5f 60%,#1a56db 100%);
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
    }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    padding: .3rem 1rem;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,.9);
}

.hero h1 {
    font-size: clamp(1.8rem,4vw,3.2rem);
    font-weight: 800;
    color: white;
    max-width: 800px;
    margin-inline: auto 0;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

    .hero h1 span {
        color: var(--c-accent)
    }

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.78);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1.6rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--c-accent);
    color: var(--c-dark);
    border-color: var(--c-accent)
}

    .btn-primary:hover {
        background: var(--c-accent-d);
        color: var(--c-dark);
        border-color: var(--c-accent-d);
        transform: translateY(-2px)
    }

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,.4)
}

    .btn-outline:hover {
        background: rgba(255,255,255,.12);
        border-color: white;
        color: white
    }

.btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor
}

/* ══════════════════════════════════════════════════════════════════
               SECTION HEADERS
               ══════════════════════════════════════════════════════════════════ */
.section-header {
    margin-bottom: 2rem
}

.section-eyebrow {
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: .5rem;
}

.section-title {
    font-size: clamp(1.4rem,2.5vw,2rem);
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: .5rem;
}

.section-sub {
    color: var(--c-mid);
    font-size: .95rem
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.view-all {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .3rem;
}

    .view-all svg {
        width: 14px;
        height: 14px;
        fill: currentColor;
        transition: transform var(--transition)
    }

    .view-all:hover svg {
        transform: translateX(3px)
    }

/* ══════════════════════════════════════════════════════════════════
               CATEGORY CHIPS (navigation)
               ══════════════════════════════════════════════════════════════════ */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem 1rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    background: var(--c-white);
    border: 1.5px solid var(--c-border);
    color: var(--c-mid);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

    .chip:hover, .chip.active {
        background: var(--c-primary);
        border-color: var(--c-primary);
        color: white;
    }

.chip-count {
    background: var(--c-border);
    color: var(--c-mid);
    border-radius: 50px;
    padding: .05rem .4rem;
    font-size: .7rem;
    transition: inherit;
}

.chip:hover .chip-count, .chip.active .chip-count {
    background: rgba(255,255,255,.25);
    color: white
}

/* ══════════════════════════════════════════════════════════════════
               BLOG DETAIL / POST BODY
               ══════════════════════════════════════════════════════════════════ */
.post-header {
    margin-bottom: 2.5rem
}

.post-hero-img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.post-title {
    font-size: clamp(1.6rem,3.5vw,2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 2rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-head);
    font-size: .82rem;
    color: var(--c-mid);
}

    .post-meta-item svg {
        width: 15px;
        height: 15px;
        fill: currentColor
    }

    .post-meta-item strong {
        color: var(--c-dark)
    }

/* Post body typography */
.post-body {
    font-size: 1.06rem;
    line-height: 1.85;
    color: #2d3748
}

    .post-body h2 {
        font-size: 1.65rem;
        font-weight: 800;
        margin: 2.2rem 0 .8rem;
        color: var(--c-dark);
        padding-bottom: .5rem;
        border-bottom: 2px solid var(--c-border);
    }

    .post-body h3 {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 1.8rem 0 .6rem;
        color: var(--c-dark)
    }

    .post-body h4 {
        font-size: 1.05rem;
        font-weight: 700;
        margin: 1.4rem 0 .4rem;
        color: var(--c-dark)
    }

    .post-body p {
        margin-bottom: 1.25rem
    }

    .post-body a {
        color: var(--c-primary);
        text-decoration: underline;
        text-underline-offset: 3px
    }

    .post-body ul, .post-body ol {
        margin-bottom: 1.25rem;
        padding-left: 1.6rem
    }

    .post-body li {
        margin-bottom: .5rem
    }

    .post-body strong {
        font-weight: 700;
        color: var(--c-dark)
    }

    .post-body blockquote {
        border-left: 4px solid var(--c-primary);
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
        background: var(--c-tag-bg);
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        font-style: italic;
        color: var(--c-mid);
    }

    .post-body img {
        border-radius: var(--radius-md);
        margin: 1.5rem 0;
        box-shadow: var(--shadow-md);
    }

/* Callout boxes */
.callout {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    margin: 1.75rem 0;
    border-left: 4px solid;
}

.callout-info {
    background: #eff6ff;
    border-color: var(--c-primary);
    color: #1e3a5f
}

.callout-cta {
    background: #fff7ed;
    border-color: var(--c-accent);
    color: #7c2d12
}

.callout-success {
    background: #ecfdf5;
    border-color: var(--c-success);
    color: #064e3b
}

/* Tool cards in posts */
.tool-card {
    background: var(--c-white);
    border: 2px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    transition: border-color var(--transition);
}

    .tool-card:hover {
        border-color: var(--c-primary)
    }

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
    flex-wrap: wrap
}

    .tool-header h3 {
        margin: 0;
        font-size: 1.1rem
    }

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem
}

.pros h4, .cons h4 {
    font-size: .85rem;
    margin-bottom: .5rem;
    font-family: var(--font-head)
}

.pros-cons ul {
    font-size: .87rem;
    padding-left: 1.2rem;
    margin: 0
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .9rem;
}

    .comparison-table th {
        background: var(--c-dark);
        color: white;
        padding: .75rem 1rem;
        text-align: left;
        font-family: var(--font-head);
        font-weight: 600;
    }

    .comparison-table td {
        padding: .65rem 1rem;
        border-bottom: 1px solid var(--c-border);
    }

    .comparison-table tr:nth-child(even) td {
        background: var(--c-bg)
    }

/* Stat grid in pillar */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--c-primary);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800
}

.stat-label {
    display: block;
    font-size: .8rem;
    opacity: .85;
    margin-top: .25rem
}

/* TOC box */
.toc-box {
    background: var(--c-bg);
    border: 2px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

    .toc-box h2 {
        font-size: 1rem;
        margin-bottom: .75rem;
        color: var(--c-dark)
    }

    .toc-box ol {
        margin: 0;
        padding-left: 1.4rem
    }

    .toc-box li {
        margin-bottom: .35rem;
        font-size: .92rem
    }

    .toc-box a {
        color: var(--c-primary)
    }

/* ══════════════════════════════════════════════════════════════════
               PILLAR CLUSTER SECTION
               ══════════════════════════════════════════════════════════════════ */
.cluster-section {
    margin-bottom: 3rem
}

.cluster-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg,var(--c-dark) 0%,var(--c-dark-2) 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    color: white;
}

    .cluster-header h3 {
        color: white;
        font-size: 1rem;
        margin: 0;
        font-family: var(--font-head)
    }

.cluster-icon {
    width: 30px;
    height: 30px;
    opacity: .7;
    fill: white
}

.cluster-posts {
    border: 1px solid var(--c-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--c-white);
}

.cluster-post-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
    transition: background var(--transition);
}

    .cluster-post-item:last-child {
        border-bottom: none
    }

    .cluster-post-item:hover {
        background: var(--c-bg)
    }

    .cluster-post-item .num {
        font-family: var(--font-head);
        font-size: .75rem;
        font-weight: 700;
        color: var(--c-light);
        min-width: 20px;
    }

    .cluster-post-item .title {
        font-family: var(--font-head);
        font-size: .9rem;
        font-weight: 600;
        color: var(--c-dark);
        flex: 1;
    }

        .cluster-post-item .title a {
            color: inherit;
            transition: color var(--transition)
        }

            .cluster-post-item .title a:hover {
                color: var(--c-primary)
            }

    .cluster-post-item .arrow {
        color: var(--c-primary);
        opacity: 0;
        transition: opacity var(--transition)
    }

    .cluster-post-item:hover .arrow {
        opacity: 1
    }

/* ══════════════════════════════════════════════════════════════════
               SIDEBAR WIDGETS
               ══════════════════════════════════════════════════════════════════ */
.popular-post-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .75rem 0;
    border-bottom: 1px solid var(--c-border);
}

    .popular-post-item:last-child {
        border-bottom: none
    }

.popular-num {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--c-border);
    min-width: 28px;
    line-height: 1;
}

.popular-title {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-dark);
    line-height: 1.35;
}

    .popular-title a {
        color: inherit;
        transition: color var(--transition)
    }

        .popular-title a:hover {
            color: var(--c-primary)
        }

.popular-meta {
    font-family: var(--font-head);
    font-size: .72rem;
    color: var(--c-light);
    margin-top: .25rem
}

.cat-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 0;
    border-bottom: 1px solid var(--c-border);
    font-family: var(--font-head);
    font-size: .87rem;
}

    .cat-list-item:last-child {
        border-bottom: none
    }

    .cat-list-item a {
        color: var(--c-mid);
        transition: color var(--transition);
        display: flex;
        align-items: center;
        gap: .4rem;
        flex: 1;
    }

        .cat-list-item a:hover {
            color: var(--c-primary)
        }

        .cat-list-item a::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--c-primary);
            opacity: .4;
            flex-shrink: 0;
        }

/* Newsletter widget */
.newsletter-widget {
    background: linear-gradient(135deg,var(--c-primary) 0%,var(--c-dark) 100%);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: white;
}

    .newsletter-widget h3 {
        color: white;
        font-size: 1.05rem;
        margin-bottom: .5rem
    }

    .newsletter-widget p {
        font-size: .85rem;
        opacity: .85;
        margin-bottom: 1rem
    }

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.newsletter-input {
    padding: .6rem .9rem;
    border-radius: var(--radius-sm);
    border: none;
    outline: none;
    font-family: var(--font-head);
    font-size: .85rem;
    background: rgba(255,255,255,.15);
    color: white;
}

    .newsletter-input::placeholder {
        color: rgba(255,255,255,.6)
    }

    .newsletter-input:focus {
        background: rgba(255,255,255,.22)
    }

.newsletter-btn {
    padding: .6rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    background: var(--c-accent);
    color: var(--c-dark);
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    transition: background var(--transition);
}

    .newsletter-btn:hover {
        background: var(--c-accent-d)
    }

/* ══════════════════════════════════════════════════════════════════
               PAGINATION
               ══════════════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 2.5rem;
    font-family: var(--font-head);
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--c-border);
    color: var(--c-mid);
    font-size: .88rem;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
}

    .page-btn:hover {
        background: var(--c-primary);
        border-color: var(--c-primary);
        color: white
    }

    .page-btn.active {
        background: var(--c-primary);
        border-color: var(--c-primary);
        color: white
    }

    .page-btn.disabled {
        opacity: .4;
        pointer-events: none
    }

    .page-btn svg {
        width: 14px;
        height: 14px;
        fill: currentColor
    }

/* ══════════════════════════════════════════════════════════════════
               RELATED POSTS
               ══════════════════════════════════════════════════════════════════ */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--c-border);
}

    .related-posts h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem
    }

/* ══════════════════════════════════════════════════════════════════
               PILLAR LINK BANNER
               ══════════════════════════════════════════════════════════════════ */
.pillar-banner {
    background: linear-gradient(135deg,#1e3a5f 0%,#1a56db 100%);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    color: white;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.pillar-banner-icon {
    font-size: 2rem;
    flex-shrink: 0
}

.pillar-banner h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: .3rem
}

.pillar-banner p {
    font-size: .85rem;
    opacity: .85;
    margin: 0
}

.pillar-banner a {
    color: var(--c-accent);
    font-weight: 700
}

/* ══════════════════════════════════════════════════════════════════
               FEATURED SECTION (homepage)
               ══════════════════════════════════════════════════════════════════ */
.featured-section {
    background: var(--c-white);
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--c-border);
}

.page-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--c-border)
}

    .page-section:last-child {
        border-bottom: none
    }

/* ══════════════════════════════════════════════════════════════════
               FOOTER
               ══════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--c-dark);
    color: rgba(255,255,255,.7);
    padding: 3.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand .site-logo {
    color: white;
    margin-bottom: .9rem
}

.footer-brand p {
    font-size: .88rem;
    line-height: 1.7;
    opacity: .75
}

.footer-col h4 {
    color: white;
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0
}

    .footer-links li {
        margin-bottom: .5rem
    }

    .footer-links a {
        color: rgba(255,255,255,.6);
        font-size: .87rem;
        transition: color var(--transition);
    }

        .footer-links a:hover {
            color: white
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-head);
    font-size: .78rem;
    color: rgba(255,255,255,.45);
    flex-wrap: wrap;
    gap: .75rem;
}

    .footer-bottom a {
        color: rgba(255,255,255,.5);
        transition: color var(--transition)
    }

        .footer-bottom a:hover {
            color: white
        }

.footer-legal {
    display: flex;
    gap: 1.25rem
}

/* ══════════════════════════════════════════════════════════════════
               RESPONSIVE
               ══════════════════════════════════════════════════════════════════ */
@media (max-width:900px) {
    .content-with-sidebar {
        grid-template-columns: 1fr
    }

    .sidebar {
        order: 2
    }

    .post-card-featured {
        grid-column: auto;
        flex-direction: column
    }

        .post-card-featured .card-img-wrap {
            width: 100%;
            aspect-ratio: 16/9
        }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:640px) {
    .main-nav {
        display: none
    }

        .main-nav.open {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--c-white);
            border-bottom: 1px solid var(--c-border);
            padding: 1rem 1.25rem;
            box-shadow: var(--shadow-md);
            z-index: 200;
        }

    .menu-toggle {
        display: flex
    }

    .header-search .search-form input {
        width: 110px
    }

    .hero {
        padding: 3rem 0 2.5rem
    }

    .stat-grid {
        grid-template-columns: 1fr
    }

    .pros-cons {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .posts-grid {
        grid-template-columns: 1fr
    }

    .cluster-post-item .arrow {
        opacity: 1
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start
    }
}

@media (max-width:440px) {
    .search-form {
        display: none
    }

    .pillar-banner {
        flex-direction: column;
        gap: .75rem
    }
}

/* ── Animations ───────────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.fade-up {
    animation: fadeUp .5s ease forwards
}

.fade-up-1 {
    animation-delay: .1s;
    opacity: 0
}

.fade-up-2 {
    animation-delay: .2s;
    opacity: 0
}

.fade-up-3 {
    animation-delay: .3s;
    opacity: 0
}

/* ── Reading progress bar ─────────────────────────────────────────── */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg,var(--c-primary),var(--c-accent));
    z-index: 9999;
    transition: width .15s linear;
}

