/* =============================================
   SmartDigitalTips — Classic Tech Blog Theme
   Clean • Fast • AdSense-Ready • Mobile-First
   ============================================= */

/* Font loaded via preload in HTML for better performance */

/* ── CSS Variables ── */
:root {
    --primary:       #0F172A;   /* deep navy */
    --accent:        #2563EB;   /* vivid blue */
    --accent-light:  #DBEAFE;   /* pale blue  */
    --accent-dark:   #1D4ED8;
    --bg:            #FFFFFF;
    --bg-soft:       #F8FAFC;
    --bg-muted:      #F1F5F9;
    --text:          #111827;
    --text-mid:      #374151;
    --text-light:    #6B7280;
    --text-xlight:   #9CA3AF;
    --border:        #E5E7EB;
    --border-dark:   #D1D5DB;
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --shadow-card:   0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
    --shadow-hover:  0 8px 24px rgba(37,99,235,.13);
    --transition:    .22s ease;
    --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w:         1200px;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary:       #F1F5F9;
    --accent:        #3B82F6;
    --accent-light:  #1E3A8A;
    --accent-dark:   #60A5FA;
    --bg:            #0F172A;
    --bg-soft:       #1E293B;
    --bg-muted:      #334155;
    --text:          #F1F5F9;
    --text-mid:      #CBD5E1;
    --text-light:    #94A3B8;
    --text-xlight:   #64748B;
    --border:        #334155;
    --border-dark:   #475569;
    --shadow-card:   0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
    --shadow-hover:  0 8px 24px rgba(59,130,246,.25);
}

[data-theme="dark"] .hero,
[data-theme="dark"] .tools-banner {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
}

[data-theme="dark"] .article-content code {
    background: #1E293B;
    border-color: #334155;
    color: #F472B6;
}

[data-theme="dark"] .article-content pre {
    background: #020617;
    border-color: #1E293B;
}

[data-theme="dark"] .quick-answer-box {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
    border-color: #3B82F6;
}

[data-theme="dark"] .key-takeaways {
    background: #064E3B;
    border-color: #059669;
}

[data-theme="dark"] .key-takeaways-title,
[data-theme="dark"] .key-takeaways ul li {
    color: #6EE7B7;
}

[data-theme="dark"] .key-takeaways ul li {
    border-color: #047857;
}

[data-theme="dark"] .callout.tip {
    background: #064E3B;
    border-color: #059669;
    color: #6EE7B7;
}

[data-theme="dark"] .callout.note {
    background: #1E3A8A;
    border-color: #3B82F6;
    color: #93C5FD;
}

[data-theme="dark"] .callout.warning {
    background: #78350F;
    border-color: #F59E0B;
    color: #FCD34D;
}

[data-theme="dark"] .callout.danger {
    background: #7F1D1D;
    border-color: #EF4444;
    color: #FCA5A5;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
}
a { text-decoration:none; color:inherit; transition: color var(--transition); }
img { max-width:100%; height:auto; display:block; }
ul, ol { list-style:none; }

.container { max-width: var(--max-w); margin:0 auto; padding:0 20px; }

/* ── Typography ── */
h1,h2,h3,h4,h5 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* =============================================
   HEADER
   ============================================= */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo-mark {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex; align-items:center; justify-content:center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.logo-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.02em;
}
.logo-name span { color: var(--accent); }

/* Main Nav */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    display: block;
    padding: 7px 14px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: var(--radius-sm);
}
.main-nav a:hover, .main-nav a.active {
    color: var(--accent);
    background: var(--accent-light);
}

/* Header right actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-toggle,
.header-search-btn {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--text-light);
    cursor: pointer;
    display: flex; align-items:center; justify-content:center;
    font-size: .95rem;
    transition: all var(--transition);
}
.theme-toggle:hover,
.header-search-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    width: 22px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
    display: block;
}

/* Search overlay */
.search-overlay {
    position: fixed; inset:0;
    background: rgba(15,23,42,.75);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 120px;
    opacity: 0; visibility: hidden;
    transition: all var(--transition);
    z-index: 1000;
}
.search-overlay.open { opacity:1; visibility:visible; }
.search-box {
    width: 100%; max-width: 580px;
    background: var(--bg);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    overflow: hidden;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.search-input-wrap i { color: var(--text-light); font-size: 1rem; }
.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: var(--font);
    color: var(--text);
    background: transparent;
}
.search-input-wrap button {
    background: none; border: none; cursor: pointer;
    color: var(--text-light); font-size: 1rem;
}
.search-input-wrap button:hover { color: var(--text); }
#searchResults { padding: 8px 0; max-height: 320px; overflow-y: auto; }
.search-result-item {
    display: flex; align-items:center; gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background var(--transition);
}
.search-result-item:hover { background: var(--bg-soft); }
.search-result-item .cat-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.search-result-item .result-title { font-weight: 500; font-size: .95rem; color: var(--text); }
.search-result-item .result-cat { font-size: .8rem; color: var(--text-light); margin-top: 2px; }

/* =============================================
   CATEGORY RIBBON
   ============================================= */
.category-ribbon {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-ribbon::-webkit-scrollbar { display: none; }
.ribbon-inner {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}
.ribbon-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-mid);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.ribbon-pill i { font-size: .85rem; }
.ribbon-pill:hover, .ribbon-pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
    padding: 70px 0 80px;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.25) 0%, transparent 70%);
    right:-100px; top:-100px;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,99,235,.3);
    border: 1px solid rgba(37,99,235,.5);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #93C5FD;
    margin-bottom: 20px;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero h1 em {
    font-style: normal;
    color: #60A5FA;
}
.hero-desc {
    color: #CBD5E1;
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.stat-item { text-align: left; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: #fff; display: block; }
.stat-lbl { font-size: .78rem; color: #94A3B8; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* Hero Visual */
.hero-visual { position: relative; z-index: 1; }
.hero-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hero-card img {
    border-radius: var(--radius-md);
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.hero-card-meta {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-card-meta .hc-tag {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #60A5FA;
}
.hero-card-meta .hc-read {
    font-size: .8rem;
    color: #94A3B8;
    display: flex; align-items:center; gap: 5px;
}
.hero-card h3 {
    margin-top: 10px;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.4;
}

/* =============================================
   MAIN LAYOUT — Two-Column
   ============================================= */
.main-wrap {
    padding: 56px 0;
    background: var(--bg-soft);
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ── Section Headers ── */
.section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}
.section-hd h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}
.section-hd h2 i {
    width: 30px; height: 30px;
    background: var(--accent);
    border-radius: 6px;
    font-size: .85rem;
    display: flex; align-items:center; justify-content:center;
    color: #fff;
    flex-shrink: 0;
}
.view-all-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    display: flex; align-items:center; gap: 4px;
}
.view-all-link:hover { color: var(--accent-dark); }

/* ── Article Sections ── */
.content-col { display: flex; flex-direction: column; gap: 48px; }

/* ── Card Grid ── */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cards-grid.three { grid-template-columns: repeat(3,1fr); }

/* Article Card */
.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}
.article-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #93C5FD;
    transform: translateY(-4px);
}
.card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-muted);
}
.card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.article-card:hover .card-img img { transform: scale(1.04); }
.card-cat {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 4px;
}
.card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-body h3 {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 8px;
    color: var(--primary);
}
.card-body h3 a:hover { color: var(--accent); }
.card-body p {
    font-size: .88rem;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .78rem;
    color: var(--text-xlight);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}
.card-meta .author { font-weight: 600; color: var(--text-light); }

/* ── Featured Card (wide) ── */
.card-featured {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    overflow: hidden;
    transition: all var(--transition);
    margin-bottom: 28px;
}
.card-featured:hover {
    box-shadow: var(--shadow-hover);
    border-color: #93C5FD;
    transform: translateY(-3px);
}
.card-featured .card-img {
    aspect-ratio: auto;
    min-height: 260px;
}
.card-featured .card-body {
    padding: 28px 28px;
    justify-content: center;
}
.card-featured .card-body h3 {
    font-size: 1.3rem;
    line-height: 1.35;
    margin-bottom: 12px;
}
.card-featured .card-body p {
    font-size: .92rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-featured .read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 16px;
}
.card-featured .read-link:hover { color: var(--accent-dark); }

/* ── List-style cards (for latest posts) ── */
.list-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.list-card:last-child { border-bottom: none; }
.list-card .lc-img {
    width: 90px; height: 68px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-muted);
}
.list-card .lc-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.list-card:hover .lc-img img { transform: scale(1.06); }
.list-card .lc-body { flex: 1; }
.list-card .lc-cat {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: 5px;
}
.list-card .lc-body h4 {
    font-size: .9rem;
    line-height: 1.4;
    margin-bottom: 6px;
}
.list-card .lc-body h4 a { color: var(--primary); }
.list-card .lc-body h4 a:hover { color: var(--accent); }
.list-card .lc-meta {
    font-size: .76rem;
    color: var(--text-xlight);
    display: flex; gap: 10px;
}

/* ── AdSense Placeholders ── */
.ad-slot {
    background: var(--bg-muted);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-xlight);
    font-size: .78rem;
    font-weight: 500;
    text-align: center;
    overflow: hidden;
}
.ad-slot.banner { width:100%; min-height: 90px; margin: 24px 0; }
.ad-slot.rect   { width:100%; min-height: 250px; margin-bottom: 24px; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { display: flex; flex-direction:column; gap: 28px; }
.widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
}
.widget-title {
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: flex; align-items:center; gap: 8px;
}
.widget-title i { color: var(--accent); }

/* Popular posts in sidebar */
.pop-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.pop-post:last-child { border-bottom: none; }
.pop-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
    flex-shrink: 0;
    min-width: 28px;
}
.pop-post h4 { font-size: .88rem; line-height: 1.4; margin-bottom: 4px; }
.pop-post h4 a { color: var(--primary); }
.pop-post h4 a:hover { color: var(--accent); }
.pop-post .pop-cat {
    font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--accent);
}

/* Category list in sidebar */
.cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: var(--text-mid); font-weight: 500; }
.cat-list a:hover { color: var(--accent); }
.cat-count {
    background: var(--bg-muted);
    color: var(--text-light);
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Newsletter */
.newsletter-widget input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .9rem;
    color: var(--text);
    background: var(--bg-soft);
    outline: none;
    margin-bottom: 10px;
    transition: border-color var(--transition);
}
.newsletter-widget input:focus { border-color: var(--accent); }
.newsletter-widget .btn { width: 100%; justify-content: center; }
.newsletter-widget p { font-size: .85rem; color: var(--text-light); margin-bottom: 14px; }

/* Tags cloud */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: .78rem;
    color: var(--text-mid);
    transition: all var(--transition);
}
.tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =============================================
   TOOLS SECTION (Full width banner)
   ============================================= */
.tools-banner {
    background: linear-gradient(90deg, #0F172A 0%, #1e3a5f 100%);
    padding: 52px 0;
}
.tools-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.tools-inner .tl-left h2 { color: #fff; margin-bottom: 10px; }
.tools-inner .tl-left p { color: #94A3B8; font-size: 1rem; max-width: 480px; }
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    min-width: 500px;
}
.tool-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md);
    color: #e2e8f0;
    font-size: .8rem;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
}
.tool-chip i { font-size: 1.4rem; color: #60A5FA; }
.tool-chip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}
.tool-chip:hover i { color: #fff; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--primary);
    color: #94A3B8;
    padding: 60px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-name span { color: #60A5FA; }
.footer-brand p {
    margin-top: 14px;
    font-size: .88rem;
    line-height: 1.7;
    max-width: 280px;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.footer-social a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,.08);
    border-radius: var(--radius-sm);
    display: flex; align-items:center; justify-content:center;
    font-size: .85rem;
    color: #94A3B8;
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }

.footer-col h5 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: .88rem; color: #64748B; }
.footer-col a:hover { color: #fff; }

.footer-bar {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .82rem;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bar a { color: #64748B; }
.footer-bar a:hover { color: #fff; }

/* ── Back to Top ── */
.back-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 40px; height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: flex; align-items:center; justify-content:center;
    font-size: .9rem;
    box-shadow: 0 4px 14px rgba(37,99,235,.4);
    opacity: 0; visibility: hidden;
    transition: all var(--transition);
    z-index: 800;
}
.back-top.visible { opacity:1; visibility:visible; }
.back-top:hover { background: var(--accent-dark); }

/* ── Reading Progress Bar ── */
#reading-bar {
    position: fixed;
    top: 64px; left: 0;
    height: 3px;
    background: var(--accent);
    width: 0%;
    z-index: 900;
    transition: width .1s linear;
}

/* =============================================
   ARTICLE PAGE STYLES
   ============================================= */
.article-header { margin-bottom: 32px; }
.article-header .ac-cat {
    display: inline-block;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: 12px;
}
.article-header h1 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 16px;
    line-height: 1.2;
}
.article-header .ac-meta {
    display: flex; flex-wrap:wrap; gap: 16px;
    font-size: .85rem; color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.ac-meta .author-chip {
    display: flex; align-items:center; gap: 6px;
    font-weight: 600; color: var(--text-mid);
}

/* Article body */
.article-body { background: var(--bg); border-radius: var(--radius-md); padding: 36px; border: 1px solid var(--border); }
.article-body h2 {
    font-size: 1.55rem; margin: 36px 0 16px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.article-body h3 { font-size: 1.15rem; margin: 26px 0 12px; color: var(--text-mid); }
.article-body p { margin-bottom: 20px; font-size: 1rem; line-height: 1.85; color: var(--text-mid); }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; font-size: 1rem; color: var(--text-mid); line-height: 1.7; }
.article-body strong { color: var(--primary); }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body a:hover { color: var(--accent-dark); }

/* TOC */
.toc {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 22px 26px;
    margin: 28px 0;
}
.toc-title {
    font-size: .85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--accent);
    margin-bottom: 14px;
    display: flex; align-items:center; gap: 8px;
}
.toc ol { margin: 0; padding: 0 0 0 18px; }
.toc li { margin-bottom: 8px; font-size: .92rem; }
.toc a { color: var(--primary); font-weight: 500; }
.toc a:hover { color: var(--accent); }

/* Snippet box (featured answer) */
.snippet {
    background: var(--accent-light);
    border: 1px solid #93C5FD;
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    font-size: .95rem;
    color: var(--primary);
    line-height: 1.7;
    margin-bottom: 24px;
}
.snippet-label {
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

/* Related box */
.related-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin: 24px 0;
    font-size: .9rem;
}
.related-box strong { color: var(--primary); }
.related-box a { color: var(--accent); font-weight: 600; text-decoration: none; }
.related-box a:hover { text-decoration: underline; }

/* FAQ */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-q {
    font-weight: 700; font-size: .98rem;
    padding: 15px 18px;
    background: var(--bg-soft);
    color: var(--primary);
}
.faq-a { padding: 14px 18px; font-size: .93rem; color: var(--text-mid); line-height: 1.7; }

/* Author bio */
.author-box {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 48px;
}
.author-avatar {
    width: 68px; height: 68px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--accent-light);
}
.author-info h4 { font-size: 1rem; margin-bottom: 6px; }
.author-info p { font-size: .88rem; color: var(--text-light); line-height: 1.6; margin: 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width:1024px){
    .two-col { grid-template-columns: 1fr 280px; gap:32px; }
    .tools-grid { min-width: 0; grid-template-columns: repeat(2,1fr); }
    .tools-inner { flex-direction: column; text-align: center; }
}

@media (max-width:768px){
    .main-nav { display:none; position:fixed; inset:0; top:64px; background:var(--bg); padding: 24px 20px; z-index:850; flex-direction:column; }
    .main-nav.open { display:flex; }
    .main-nav ul { flex-direction:column; gap:4px; }
    .hamburger { display:flex; }
    .hero-grid { grid-template-columns:1fr; }
    .hero-visual { display:none; }
    .two-col { grid-template-columns:1fr; }
    .sidebar { order:2; }
    .cards-grid { grid-template-columns:1fr; }
    .cards-grid.three { grid-template-columns:1fr 1fr; }
    .card-featured { grid-template-columns:1fr; }
    .card-featured .card-img { min-height:200px; }
    .footer-grid { grid-template-columns:1fr 1fr; }
    .tools-grid { grid-template-columns: repeat(2,1fr); }
    .article-body { padding: 24px 18px; }
}

@media (max-width:480px){
    .cards-grid.three { grid-template-columns:1fr; }
    .footer-grid { grid-template-columns:1fr; }
    .hero-stats { flex-wrap:wrap; gap: 16px; }
    .footer-bar { flex-direction:column; text-align:center; }
}

/* ═══════════════════════════════════════════════════════════════
   CLASSIC ARTICLE READING LAYOUT  (art-* classes)
   Clean · Spacious · User-Friendly · Classic Editorial Style
   ═══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb bar ── */
.art-breadcrumb-bar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.art-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--text-light);
}
.art-breadcrumb a {
    color: var(--accent);
    font-weight: 500;
    transition: color var(--transition);
}
.art-breadcrumb a:hover { color: var(--accent-dark); }
.art-bc-sep {
    color: var(--text-xlight);
    font-size: .65rem;
}

/* ── Page Breadcrumb Navigation (for main pages) ── */
.breadcrumb-nav {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    font-size: .85rem;
}
.breadcrumb-list li {
    margin: 0;
    padding: 0;
}
.breadcrumb-list a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumb-list a:hover {
    color: var(--accent-dark);
}
.breadcrumb-list a i {
    font-size: .75rem;
}
.breadcrumb-separator {
    color: var(--text-xlight);
    font-size: .65rem;
    display: flex;
    align-items: center;
}
.breadcrumb-separator i {
    font-size: .65rem;
}
.breadcrumb-current {
    color: var(--text-mid);
    font-weight: 600;
}

/* ── Article header section ── */
.art-header-section {
    background: var(--bg);
    padding: 36px 0 32px;
    border-bottom: 1px solid var(--border);
}
.art-header-inner { max-width: 820px; }
.art-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.art-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 22px;
    letter-spacing: -.02em;
}
.art-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.art-author-block {
    display: flex;
    align-items: center;
    gap: 10px;
}
.art-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.art-author-info { display: flex; flex-direction: column; }
.art-author-name { font-size: .9rem; font-weight: 700; color: var(--primary); }
.art-author-role { font-size: .77rem; color: var(--text-light); }
.art-meta-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.art-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-light);
    font-size: .78rem;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 50px;
}
.art-pill i { color: var(--accent); font-size: .72rem; }
.art-pill-green { background: #F0FDF4; border-color: #86EFAC; color: #15803D; }
.art-pill-green i { color: #16A34A; }

/* ── Hero image full-width ── */
.art-hero-wrap {
    background: var(--primary);
    padding: 0;
    margin-bottom: 0;
}
.art-hero-full {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* ── Main layout ── */
.art-main {
    background: var(--bg-soft);
    padding: 40px 0 64px;
}
.art-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 44px;
    align-items: start;
}

/* ── Article content column ── */
.art-content-col { min-width: 0; }

.art-body {
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 40px 48px;
}

/* ── Ad slots ── */
.art-ad-slot {
    background: var(--bg-muted);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-sm);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-xlight);
    font-size: .75rem;
    margin: 20px 0;
    text-align: center;
}
.art-ad-slot-rect {
    background: var(--bg-muted);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-sm);
    min-height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-xlight);
    font-size: .75rem;
    margin-bottom: 24px;
    text-align: center;
}

/* ── Author bio ── */
.art-author-bio {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-top: 24px;
}
.art-bio-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.art-bio-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}
.art-bio-role {
    font-size: .8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}
.art-bio-body p {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}
.art-bio-links { display: flex; gap: 10px; flex-wrap: wrap; }
.art-bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    transition: background var(--transition);
}
.art-bio-btn:hover { background: var(--accent-dark); }
.art-bio-btn-ghost {
    background: var(--bg-soft);
    color: var(--text-mid);
    border: 1px solid var(--border);
}
.art-bio-btn-ghost:hover { background: var(--border); }

/* ── Sidebar ── */
.art-sidebar { position: sticky; top: 90px; }

.art-widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-bottom: 24px;
}
.art-widget-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.art-widget-title i { color: var(--accent); }

/* Popular posts */
.art-pop-post {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.art-pop-post:last-child { border-bottom: none; padding-bottom: 0; }
.art-pop-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-light);
    min-width: 28px;
    line-height: 1;
    padding-top: 3px;
}
.art-pop-post h4 { font-size: .85rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.art-pop-post h4 a { color: var(--primary); }
.art-pop-post h4 a:hover { color: var(--accent); }
.art-pop-cat { font-size: .75rem; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.art-pop-cat i { color: var(--accent); font-size: .7rem; }

/* Category list */
.art-cat-list { list-style: none; padding: 0; margin: 0; }
.art-cat-list li { border-bottom: 1px solid var(--border); }
.art-cat-list li:last-child { border-bottom: none; }
.art-cat-list a {
    display: flex;
    align-items: center;
    padding: 9px 0;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: color var(--transition);
    gap: 0;
}
.art-cat-list a:hover { color: var(--accent); }
.art-cat-icon { color: var(--accent); margin-right: 8px; font-size: .82rem; width: 16px; }
.art-cat-count {
    margin-left: auto;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-light);
    padding: 2px 9px;
}

/* Newsletter widget */
.art-newsletter p { font-size: .88rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.6; }
.art-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.art-newsletter-form input {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    outline: none;
    transition: border-color var(--transition);
    font-family: var(--font);
    color: var(--text);
}
.art-newsletter-form input:focus { border-color: var(--accent); }
.art-newsletter-form .btn { width: 100%; justify-content: center; }

/* Tags */
.art-tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* ── Article content typography (used inside .article-content) ── */
.article-intro {
    font-size: 1.1rem !important;
    font-weight: 500;
    color: var(--text-mid) !important;
    line-height: 1.8 !important;
    border-left: 3px solid var(--accent);
    padding-left: 18px;
    margin-bottom: 28px !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .art-layout { grid-template-columns: 1fr; }
    .art-sidebar { position: static; }
    .art-body  { padding: 28px 24px; }
    .art-author-bio { padding: 22px 20px; }
    .art-title { font-size: 1.7rem; }
}
@media (max-width: 600px) {
    .art-body  { padding: 22px 16px; }
    .art-meta-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .art-author-bio { flex-direction: column; }
    .art-bio-avatar { width: 52px; height: 52px; font-size: 1.2rem; }
    .art-header-section { padding: 24px 0 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE READING EXPERIENCE — Enhanced Typography & UX
   Applied to all pages with data-page="articles"
   ═══════════════════════════════════════════════════════════════ */

/* ── Article hero image ── */
.article-content > img:first-child,
.article-hero-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

/* ── Article body typography (premium reading) ── */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.88;
    color: var(--text-mid);
    max-width: 100%;
}
.article-content > * + * { margin-top: 0; }

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 40px 0 16px;
    color: var(--primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    line-height: 1.3;
    scroll-margin-top: 80px;
}
.article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 30px 0 12px;
    color: var(--primary);
    scroll-margin-top: 80px;
}
.article-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 22px 0 10px;
    color: var(--text-mid);
}
.article-content p {
    margin-bottom: 22px;
    font-size: 1.0625rem;
    line-height: 1.88;
    color: var(--text-mid);
}
.article-content p:last-child { margin-bottom: 0; }

.article-content ul,
.article-content ol {
    margin: 0 0 24px 0;
    padding-left: 0;
    list-style: none;
}
.article-content ul li,
.article-content ol li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.75;
    border-bottom: 1px solid #F3F4F6;
}
.article-content ul li:last-child,
.article-content ol li:last-child { border-bottom: none; }

/* Custom bullet — vivid blue dot */
.article-content ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 16px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
/* Numbered list counter */
.article-content ol { counter-reset: ol-counter; }
.article-content ol li::before {
    counter-increment: ol-counter;
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 6px;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-content strong { color: var(--primary); font-weight: 700; }
.article-content em     { font-style: italic; color: var(--text-mid); }
.article-content a      { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover{ color: var(--accent-dark); }

/* ── Blockquote ── */
.article-content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--accent-light);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--primary);
    font-size: 1.05rem;
}

/* ── Inline code ── */
.article-content code {
    background: #F1F5F9;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: .88em;
    font-family: 'Courier New', monospace;
    color: #be185d;
}
/* ── Code block ── */
.article-content pre {
    background: #0F172A;
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid #1E293B;
}
.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #E2E8F0;
    font-size: .92rem;
    line-height: 1.7;
}

/* ── Table ── */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: .95rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.article-content th {
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: .88rem;
}
.article-content td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
}
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: var(--bg-soft); }

/* ── Auto-injected Table of Contents ── */
.article-toc {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin: 0 0 32px;
}
.article-toc-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-toc ol {
    counter-reset: toc-counter;
    margin: 0;
    padding: 0;
    list-style: none;
}
.article-toc ol li {
    counter-increment: toc-counter;
    padding: 5px 0 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.article-toc ol li:last-child { border-bottom: none; }
.article-toc ol li::before { display: none; }
.article-toc ol li a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color var(--transition);
}
.article-toc ol li a::before {
    content: counter(toc-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.article-toc ol li a:hover { color: var(--accent); }

/* ── Quick Answer / Featured Snippet box ── */
.quick-answer-box {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #93C5FD;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 28px 0;
}
.qa-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.quick-answer-box p {
    font-size: .98rem;
    color: var(--primary);
    line-height: 1.75;
    margin: 0 !important;
    font-weight: 500;
}

/* ── Key Takeaways box ── */
.key-takeaways {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 32px 0;
}
.key-takeaways-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #15803D;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.key-takeaways ul { margin: 0; padding: 0; list-style: none; }
.key-takeaways ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: .95rem;
    color: #166534;
    border-bottom: 1px solid #BBF7D0;
    line-height: 1.65;
}
.key-takeaways ul li:last-child { border-bottom: none; }
.key-takeaways ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16A34A;
    font-weight: 700;
}

/* ── Callout / Warning / Tip / Note boxes ── */
.callout {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
    border: 1px solid;
}
.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.callout-body { font-size: .95rem; line-height: 1.7; }
.callout-body strong { display: block; margin-bottom: 4px; }
.callout.tip     { background: #F0FDF4; border-color: #86EFAC; color: #166534; }
.callout.note    { background: #EFF6FF; border-color: #93C5FD; color: #1E40AF; }
.callout.warning { background: #FFFBEB; border-color: #FCD34D; color: #92400E; }
.callout.danger  { background: #FFF1F2; border-color: #FDA4AF; color: #9F1239; }

/* ── Related article inline box ── */
.related-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin: 28px 0;
    font-size: .92rem;
}
.related-box i   { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.related-box a   { color: var(--accent); font-weight: 600; text-decoration: none; }
.related-box a:hover { text-decoration: underline; }

/* ── Social Share Bar ── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
    margin: 36px 0 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.share-label {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-light);
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}
.share-btn.twitter  { background: #E7F5FF; color: #1D9BF0; }
.share-btn.linkedin { background: #E8F4F8; color: #0A66C2; }
.share-btn.copy     { background: var(--bg-soft); color: var(--text-mid); border: 1px solid var(--border); }
.share-btn:hover    { opacity: .85; transform: translateY(-1px); }
.share-btn.copied   { background: #ECFDF5; color: #059669; border-color: #6EE7B7; }

/* ── Sticky TOC in sidebar ── */
.toc-sidebar-widget {
    position: sticky;
    top: 90px;
}
.toc-sidebar-widget .toc-list { padding: 0; margin: 0; list-style: none; }
.toc-sidebar-widget .toc-list li { padding: 0; border: none; }
.toc-sidebar-widget .toc-list li::before { display: none; }
.toc-sidebar-widget .toc-list a {
    display: block;
    padding: 7px 12px;
    border-left: 3px solid transparent;
    font-size: .84rem;
    color: var(--text-light);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1.4;
}
.toc-sidebar-widget .toc-list a:hover,
.toc-sidebar-widget .toc-list a.active {
    border-left-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
    padding-left: 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Reading time pill ── */
.reading-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: .76rem;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Article sections — numbered H2 counter ── */
.article-content.numbered h2 {
    counter-increment: h2-counter;
}
.article-content.numbered h2::before {
    content: counter(h2-counter, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    border-radius: 6px;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Article section divider ── */
.article-divider {
    border: none;
    border-top: 1px dashed var(--border-dark);
    margin: 36px 0;
}

/* ── Media responsiveness for articles ── */
@media (max-width: 768px) {
    .article-layout  { grid-template-columns: 1fr; }
    .article-card-wrap { padding: 22px 16px; }
    .article-content h2 { font-size: 1.3rem; }
    .article-content h3 { font-size: 1.05rem; }
    .article-content p  { font-size: 1rem; }
    .share-bar { gap: 8px; }
    .article-toc { padding: 16px 18px; }
}
@media (max-width: 480px) {
    .share-btn span { display: none; }
    .share-btn { padding: 8px 12px; }
    .article-content h2 { font-size: 1.2rem; margin-top: 28px; }
}

/* =============================================
   UNIVERSAL SITE BREADCRUMB
   ============================================= */
.site-breadcrumb {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.bc-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    font-size: .82rem;
}
.bc-list li { margin: 0; padding: 0; display: flex; align-items: center; }
.bc-list a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}
.bc-list a:hover { background: var(--accent-light); color: var(--accent-dark); }
.bc-list a i { font-size: .72rem; }
.bc-sep { color: var(--text-xlight); font-size: .65rem; display: flex; align-items: center; margin: 0 2px; }
.bc-current { color: var(--text-mid); font-weight: 600; padding: 3px 6px; }

/* =============================================
   MORE ARTICLES NAVIGATION (end of article)
   ============================================= */
.more-articles-nav {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-top: 28px;
}
.more-articles-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.more-articles-title i { color: var(--accent); }
.more-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.more-article-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
}
.more-article-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
}
.mac-cat {
    display: inline-flex;
    align-items: center;
    background: var(--accent-light);
    color: var(--accent);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.mac-title {
    flex: 1;
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}
.mac-arrow {
    color: var(--accent);
    font-size: .82rem;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--transition);
}
.more-article-card:hover .mac-arrow { opacity: 1; transform: translateX(0); }
.more-articles-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* =============================================
   PAGE HERO (tools, about, contact, etc.)
   ============================================= */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
    padding: 52px 0 58px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.2) 0%, transparent 70%);
    right: -60px; top: -60px;
    pointer-events: none;
}
.ph-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,99,235,.25);
    border: 1px solid rgba(37,99,235,.45);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #93C5FD;
    margin-bottom: 18px;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p  { color: #CBD5E1; max-width: 600px; font-size: 1.05rem; line-height: 1.7; }

@media (max-width: 600px) {
    .more-articles-nav { padding: 20px 16px; }
    .more-article-card { flex-wrap: wrap; }
    .mac-arr { display: none; }
    .more-articles-cta { flex-direction: column; }
}

