/* =============================================
   Printigly Blog — Modern UI v2.0
   ============================================= */

/* Reading Progress Bar */
.blog-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #EA580C, #f97316);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ─── Blog Listing Hero ─── */
.blog-hero {
    background:
        /* Dot-grid texture */
        radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px),
        /* Orange glow top-right */
        radial-gradient(ellipse at 80% 20%, rgba(234,88,12,0.22) 0%, transparent 55%),
        /* Gold glow bottom-left */
        radial-gradient(ellipse at 15% 85%, rgba(251,191,36,0.12) 0%, transparent 50%),
        /* Base royal gradient */
        linear-gradient(145deg, #0a0f1e 0%, #111827 35%, #1a1442 65%, #0d1a3a 100%);
    background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
    padding: 72px 20px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Top shimmer line */
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #EA580C 30%, #f59e0b 55%, #EA580C 75%, transparent 100%);
    opacity: 0.85;
}
/* Large decorative orb — right */
.blog-hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(234,88,12,0.14) 0%, rgba(139,92,246,0.07) 45%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
/* Extra decorative orb — left (pseudo on eyebrow parent via a sibling trick in CSS: we'll use a box-shadow on ::before of the stats bar) */
.blog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(234,88,12,0.18) 0%, rgba(251,191,36,0.1) 100%);
    border: 1px solid rgba(234,88,12,0.45);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    box-shadow: 0 0 20px rgba(234,88,12,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
}
.blog-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 40%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}
.blog-hero__sub {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* Hero stats bar */
.blog-hero__stats {
    display: inline-flex; align-items: center; gap: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 100px; padding: 12px 32px;
    margin-top: 4px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative; z-index: 1;
}
.blog-hero__stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 24px;
}
.blog-hero__stat-num {
    font-size: 1.4rem; font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.blog-hero__stat-label {
    font-size: 10px; color: rgba(255,255,255,0.55);
    text-transform: uppercase; letter-spacing: 1px; margin-top: 3px;
    font-weight: 600;
}
.blog-hero__stat-divider {
    width: 1px; height: 36px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
    flex-shrink: 0;
}
@media(max-width:480px) {
    .blog-hero__stats { padding: 8px 16px; }
    .blog-hero__stat { padding: 0 12px; }
    .blog-hero__stat-num { font-size: 1.1rem; }
}

/* ─── Category Filter Pills ─── */
.blog-filter {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
/* Scrollable single-row filter */
.blog-filter__scroll-wrap {
    position: relative;
}
.blog-filter__inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.blog-filter__inner::-webkit-scrollbar { display: none; }
/* Right fade to hint scrollability */
.blog-filter__fade {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
}
.blog-filter__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-right: 4px;
    white-space: nowrap;
}
.blog-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.blog-pill:hover {
    background: #fff3e9;
    color: #EA580C;
    border-color: #fed7aa;
}
.blog-pill.active {
    background: #EA580C;
    color: #fff;
    border-color: #EA580C;
}
.blog-pill__count {
    font-size: 11px;
    background: rgba(0,0,0,0.1);
    border-radius: 100px;
    padding: 1px 7px;
    font-weight: 700;
}
.blog-pill.active .blog-pill__count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* ─── Posts Grid ─── */
.blog-grid-wrap {
    padding: 48px 0 72px;
    background: #f8fafc;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

/* Featured first post — hero card */
.blog-card--hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card--hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.blog-card--hero .blog-card__img {
    height: 360px;
    border-radius: 0;
}
.blog-card--hero .blog-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px;
}
.blog-card--hero .blog-card__title {
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 14px;
}
.blog-card--hero .blog-card__excerpt {
    -webkit-line-clamp: 4;
    font-size: 0.95rem;
}

/* Standard Card */
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    transition: transform 0.22s, box-shadow 0.22s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.blog-card__img {
    display: block;
    position: relative;
    height: 210px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}
.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__img img {
    transform: scale(1.05);
}
.blog-card__badge {
    position: absolute;
    top: 14px; left: 14px;
    background: #EA580C;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.blog-card__no-img {
    height: 210px;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    flex-shrink: 0;
    text-decoration: none;
}
.blog-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #94a3b8;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.blog-card__cat-link {
    color: #EA580C;
    font-weight: 700;
    text-decoration: none;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-card__cat-link:hover { text-decoration: underline; }
.blog-card__sep { color: #d1d5db; }
.blog-card__read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.blog-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px;
    color: #0f172a;
}
.blog-card__title a {
    color: inherit;
    text-decoration: none;
}
.blog-card__title a:hover { color: #EA580C; }
.blog-card__excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #EA580C;
    background: #fff4ee;
    border: 1.5px solid #fed7aa;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}
.blog-card__read-more:hover {
    background: #EA580C;
    color: #fff;
    border-color: #EA580C;
    gap: 10px;
}
.blog-card__author-avatar img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    display: block;
}

/* ─── Pagination ─── */
.blog-pagination {
    grid-column: 1 / -1;
    padding-top: 20px;
}
.blog-pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    padding: 0 14px;
    transition: all 0.2s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #EA580C;
    color: #fff;
    border-color: #EA580C;
}

/* ─── Empty State ─── */
.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}
.blog-empty__icon { font-size: 3.5rem; margin-bottom: 20px; }
.blog-empty h2 { font-size: 1.4rem; color: #1e293b; margin-bottom: 10px; }
.blog-empty__btn {
    display: inline-block;
    margin-top: 20px;
    background: #EA580C;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* =============================================
   Single Post Page
   ============================================= */

.post-hero {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 20px 52px;
    position: relative;
    overflow: hidden;
}
.post-hero--has-img {
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 52px;
}
.post-hero__bg {
    position: absolute; inset: 0; z-index: 0;
}
.post-hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
}
.post-hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.2) 100%);
}
.post-hero__inner {
    position: relative; z-index: 2; max-width: 820px;
}
.post-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    font-size: 12px;
}
.post-hero__breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.post-hero__breadcrumb a:hover { color: #fb923c; }
.post-hero__breadcrumb span { color: rgba(255,255,255,0.25); }
.post-hero__cat {
    display: inline-block;
    background: #EA580C; color: #fff;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 4px 14px; border-radius: 20px;
    text-decoration: none; margin-bottom: 16px;
}
.post-hero__cat:hover { background: #c2410c; }
.post-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800; color: #fff;
    line-height: 1.25; margin: 0 0 18px;
}
.post-hero__meta {
    display: flex; align-items: center;
    gap: 8px; flex-wrap: wrap;
    font-size: 13px; color: rgba(255,255,255,0.65);
}
.post-hero__meta-avatar { display: inline-flex; align-items: center; gap: 6px; }
.post-hero__meta-avatar img {
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}
.post-hero__sep { opacity: 0.3; }
.post-hero__reading-time {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 3px 10px; border-radius: 100px;
    font-size: 12px; font-weight: 600;
}

/* Post Body Layout */
.post-body {
    padding: 52px 0 80px;
    background: #f8fafc;
}
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

/* Article column */
.post-article {
    background: #fff;
    border-radius: 16px;
    padding: 44px 50px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    min-width: 0;
}

/* Content typography */
.post-article .entry-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #334155;
}
.post-article .entry-content h2 {
    font-size: 1.5rem; font-weight: 800;
    color: #0f172a; margin: 44px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    scroll-margin-top: 90px;
}
.post-article .entry-content h3 {
    font-size: 1.2rem; font-weight: 700;
    color: #1e293b; margin: 32px 0 12px;
    scroll-margin-top: 90px;
}
.post-article .entry-content h4 {
    font-size: 1rem; font-weight: 700;
    color: #1e293b; margin: 24px 0 8px;
}
.post-article .entry-content p { margin: 0 0 22px; }
.post-article .entry-content ul,
.post-article .entry-content ol { margin: 0 0 22px 24px; }
.post-article .entry-content li { margin-bottom: 8px; }
.post-article .entry-content a { color: #EA580C; }
.post-article .entry-content a:hover { color: #c2410c; }
.post-article .entry-content img {
    max-width: 100%; height: auto;
    border-radius: 12px; margin: 8px 0 28px;
    display: block; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.post-article .entry-content blockquote {
    border-left: 4px solid #EA580C;
    margin: 32px 0; padding: 18px 22px;
    background: linear-gradient(135deg, #fff7ed, #fff3e0);
    border-radius: 0 10px 10px 0;
    font-style: italic; color: #7c3f11; font-size: 1.05rem;
}
.post-article .entry-content blockquote p { margin: 0; }
.post-article .entry-content table {
    width: 100%; border-collapse: collapse;
    margin: 24px 0; font-size: 14px;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.post-article .entry-content th {
    background: #0f172a; color: #fff;
    padding: 12px 16px; text-align: left; font-size: 13px;
}
.post-article .entry-content td {
    padding: 11px 16px; border-bottom: 1px solid #e2e8f0;
}
.post-article .entry-content tr:nth-child(even) td { background: #f8fafc; }
.post-article .entry-content code {
    background: #f1f5f9; padding: 2px 7px;
    border-radius: 5px; font-size: 0.87em;
    font-family: monospace; color: #0f172a;
}
.post-article .entry-content hr { border: none; border-top: 2px solid #f1f5f9; margin: 40px 0; }

/* Inline CTA box */
.post-inline-cta {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff; border-radius: 14px;
    padding: 28px 30px; margin: 36px 0;
    display: flex; align-items: center;
    gap: 20px; justify-content: space-between;
}
.post-inline-cta__text strong {
    display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 5px;
}
.post-inline-cta__text p {
    font-size: 0.88rem; color: #94a3b8; margin: 0 !important; line-height: 1.5;
}
.post-inline-cta__btn {
    background: #EA580C; color: #fff;
    padding: 11px 22px; border-radius: 8px;
    font-weight: 700; font-size: 0.9rem;
    text-decoration: none; white-space: nowrap;
    flex-shrink: 0; transition: background 0.2s;
}
.post-inline-cta__btn:hover { background: #c2410c; }

/* Tags */
.post-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 36px 0 0; padding-top: 26px;
    border-top: 1px solid #e2e8f0;
}
.post-tag {
    display: inline-block; padding: 5px 15px;
    background: #f1f5f9; border-radius: 100px;
    font-size: 12px; font-weight: 600;
    color: #475569; text-decoration: none;
    transition: all 0.2s; border: 1.5px solid transparent;
}
.post-tag:hover { background: #fff3e9; color: #EA580C; border-color: #fed7aa; }

/* Author Box */
.author-box {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 26px; background: #f8fafc;
    border-radius: 14px; margin: 32px 0;
    border: 1px solid #e2e8f0;
}
.author-box__avatar img { border-radius: 50%; width: 60px; height: 60px; flex-shrink: 0; }
.author-box__name { font-weight: 700; font-size: 0.98rem; color: #1e293b; margin-bottom: 4px; }
.author-box__role { font-size: 12px; color: #EA580C; font-weight: 600; margin-bottom: 6px; }
.author-box__bio { font-size: 0.88rem; color: #64748b; margin: 0; line-height: 1.6; }

/* Share Bar */
.post-share {
    display: flex; align-items: center; gap: 10px;
    margin: 32px 0; padding: 20px 24px;
    background: #fff7ed; border-radius: 12px;
    border: 1px solid #fed7aa; flex-wrap: wrap;
}
.post-share__label { font-size: 13px; font-weight: 700; color: #7c3f11; margin-right: 4px; }
.post-share__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    text-decoration: none; transition: opacity 0.2s;
}
.post-share__btn:hover { opacity: 0.85; }
.post-share__btn--wa  { background: #25D366; color: #fff; }
.post-share__btn--tw  { background: #1da1f2; color: #fff; }
.post-share__btn--li  { background: #0077b5; color: #fff; }
.post-share__btn--copy { background: #1e293b; color: #fff; cursor: pointer; border: none; font-family: inherit; font-size: 13px; }

/* Post Navigation */
.post-nav { border-top: 1px solid #e2e8f0; padding-top: 28px; margin-top: 8px; }
.post-nav__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav__item {
    display: flex; flex-direction: column; gap: 4px;
    text-decoration: none; padding: 16px; border-radius: 10px;
    border: 1.5px solid #e2e8f0; transition: border-color 0.2s, background 0.2s;
}
.post-nav__item:hover { border-color: #EA580C; background: #fff7ed; }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; }
.post-nav__title { font-size: 0.9rem; font-weight: 600; color: #1e293b; line-height: 1.4; }

/* ─── Sidebar ─── */
.post-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 90px; }
.sidebar-card {
    background: #fff; border-radius: 14px; padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07); border: 1px solid #f1f5f9;
}
.sidebar-card__title {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.2px; color: #fff; margin: 0 0 14px;
    padding: 8px 12px 8px 14px;
    background: linear-gradient(90deg, #EA580C, #f97316);
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.sidebar-card__title::before { content: '☰'; font-size: 14px; line-height:1; }
.toc-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 1px;
    counter-reset: toc-counter;
}

/* h2 numbered items */
.toc-list > li:not(.toc-h3) { counter-increment: toc-counter; }
.toc-list > li:not(.toc-h3) > a::before {
    content: counter(toc-counter, decimal-leading-zero);
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 20px; height: 20px; min-width: 20px;
    background: #f1f5f9; color: #94a3b8;
    font-size: 10px; font-weight: 800;
    border-radius: 5px; margin-right: 9px;
    flex-shrink: 0; transition: all 0.18s;
    line-height: 1; font-family: inherit;
}

/* Chevron arrow on right of h2 links */
.toc-list > li:not(.toc-h3) > a::after {
    content: "›";
    margin-left: auto; padding-left: 6px;
    font-size: 16px; font-weight: 700;
    color: #cbd5e1; transition: all 0.18s;
    flex-shrink: 0; line-height: 1;
}

/* All links base style */
.toc-list a {
    display: flex; align-items: center;
    font-size: 13px; color: #475569;
    text-decoration: none; padding: 7px 10px;
    border-radius: 8px; border-left: 2px solid transparent;
    transition: all 0.18s; line-height: 1.4;
    font-weight: 500;
}

/* Hover & active */
.toc-list a:hover,
.toc-list a.toc-active {
    background: #fff3e9; color: #EA580C;
    border-left-color: #EA580C;
}
.toc-list a:hover::before,
.toc-list a.toc-active::before {
    background: #EA580C; color: #fff;
}
.toc-list a:hover::after,
.toc-list a.toc-active::after {
    color: #EA580C; transform: translateX(3px);
}

/* h3 sub-items with angle arrow */
.toc-list .toc-h3 a {
    padding-left: 14px; font-size: 12px;
    color: #64748b; font-weight: 400;
}
.toc-list .toc-h3 a::before {
    content: "→";
    font-size: 13px; color: #cbd5e1;
    margin-right: 8px; font-family: inherit;
    width: auto; height: auto; background: none;
    border-radius: 0; transition: color 0.18s;
    flex-shrink: 0; min-width: auto;
}
.toc-list .toc-h3 a:hover::before,
.toc-list .toc-h3 a.toc-active::before {
    color: #EA580C; background: none;
}
.toc-list .toc-h3 a::after { display: none; }

/* Divider between h2 groups */
.toc-list > li:not(.toc-h3) + li:not(.toc-h3) {
    margin-top: 2px;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(160deg, #0f172a 0%, #1a2744 60%, #162035 100%);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    color: #fff;
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
/* decorative top strip */
.sidebar-cta::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #EA580C, #f97316, #fbbf24);
    border-radius: 16px 16px 0 0;
}
.sidebar-cta__badge {
    display: inline-block;
    background: rgba(234,88,12,0.18);
    border: 1px solid rgba(234,88,12,0.35);
    color: #fb923c;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
    padding: 4px 12px; border-radius: 100px;
    margin: 20px 0 10px 20px;
}
.sidebar-cta__stars {
    padding: 0 20px 2px;
    font-size: 13px; color: #fbbf24;
    display: flex; align-items: center; gap: 6px;
}
.sidebar-cta__stars span { color: #94a3b8; font-size: 12px; }
.sidebar-cta__heading {
    font-size: 1.25rem; font-weight: 800;
    margin: 8px 20px 18px; line-height: 1.3;
    color: #fff;
}
.sidebar-cta__perks {
    list-style: none; margin: 0 20px 20px; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.sidebar-cta__perks li {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: #cbd5e1; line-height: 1.4;
}
.sidebar-cta__perks li i { color: #4ade80; font-size: 13px; flex-shrink: 0; }
.sidebar-cta__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0 20px 10px;
    background: linear-gradient(90deg, #EA580C, #f97316);
    color: #fff; padding: 13px;
    border-radius: 10px; font-weight: 700;
    text-decoration: none; font-size: 0.9rem;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(234,88,12,0.35);
}
.sidebar-cta__btn:hover { opacity: 0.9; transform: translateY(-1px); }
.sidebar-cta__wa {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0 20px;
    background: rgba(37,211,102,0.12);
    border: 1.5px solid rgba(37,211,102,0.3);
    color: #4ade80; padding: 11px;
    border-radius: 10px; font-weight: 700;
    text-decoration: none; font-size: 0.88rem;
    transition: all 0.2s;
}
.sidebar-cta__wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.sidebar-cta__note {
    text-align: center; font-size: 11px; color: #475569;
    margin: 10px 20px 18px; padding: 0;
    line-height: 1.4;
}

/* ─── Related Posts ─── */
.related-posts { margin-top: 48px; padding-top: 40px; border-top: 2px solid #f1f5f9; }
.related-posts__title { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0 0 24px; }
.related-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-post-card {
    border-radius: 12px; overflow: hidden; background: #fff;
    border: 1px solid #e2e8f0; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
}
.related-post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.related-post-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.related-post-card__placeholder {
    height: 130px; background: linear-gradient(135deg,#0f172a,#1e3a5f);
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.related-post-card__body { padding: 14px 16px 16px; flex: 1; }
.related-post-card__cat {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: #EA580C; margin-bottom: 6px; display: block;
}
.related-post-card__title { font-size: 0.875rem; font-weight: 700; color: #1e293b; line-height: 1.45; margin: 0; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1100px) {
    .post-layout { grid-template-columns: 1fr 280px; }
}
@media (max-width: 1024px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
    .post-sidebar .sidebar-card { display: none; }
}
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-card--hero { grid-column: 1 / -1; grid-template-columns: 1fr; }
    .blog-card--hero .blog-card__img { height: 240px; border-radius: 14px 14px 0 0; }
    .blog-card--hero .blog-card__body { padding: 26px; }
    .blog-card--hero .blog-card__title { font-size: 1.25rem; }
    .related-posts__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .post-hero--has-img { min-height: 360px; }
    .post-body { padding: 0 0 48px; background: #fff; }
    .post-body .container { padding: 0; }
    .post-article { padding: 26px 20px 32px; border-radius: 0; box-shadow: none; }
    .post-inline-cta { flex-direction: column; text-align: center; gap: 16px; }
    .post-article .entry-content h2 { font-size: 1.25rem; }
    .post-nav__grid { grid-template-columns: 1fr; gap: 12px; }
    .post-nav__item--next { text-align: left; }
    .related-posts__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; gap: 18px; }
    .blog-filter__label { display: none; }
}
@media (max-width: 480px) {
    .blog-hero { padding: 44px 20px 36px; }
    .post-share { gap: 8px; }
    .post-share__btn { padding: 6px 12px; font-size: 12px; }
}


/* =============================================
   Blog Post FAQ Accordion — Modern v2
   ============================================= */
.post-faq-section { margin: 44px 0 0; }

.post-faq-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 22px !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    background: none !important;
}
.post-faq-title-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #EA580C, #f97316);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff; font-size: 16px;
}

.post-faq-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.post-faq-item.faq-open {
    border-color: #fed7aa;
    box-shadow: 0 4px 20px rgba(234,88,12,0.08);
}

.post-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.97rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    transition: background 0.15s;
}
.post-faq-btn:hover { background: #fafafa; }
.post-faq-item.faq-open .post-faq-btn {
    background: #fff8f4;
    color: #EA580C;
}

.post-faq-num {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 26px; height: 26px; min-width: 26px;
    background: #f1f5f9;
    border-radius: 7px;
    font-size: 11px; font-weight: 800;
    color: #94a3b8;
    transition: all 0.2s;
    flex-shrink: 0;
}
.post-faq-item.faq-open .post-faq-num {
    background: #EA580C; color: #fff;
}

.post-faq-question { flex: 1; }

.post-faq-chevron {
    width: 28px; height: 28px; min-width: 28px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}
.post-faq-chevron svg {
    width: 14px; height: 14px;
    transition: transform 0.3s ease;
    fill: none; stroke: #64748b;
    stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
}
.post-faq-item.faq-open .post-faq-chevron { background: #fff3e9; }
.post-faq-item.faq-open .post-faq-chevron svg { transform: rotate(180deg); stroke: #EA580C; }

.post-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
}
.post-faq-answer-inner {
    padding: 14px 20px 20px 60px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
    border-top: 1px solid #f8f0e8;
}
.post-faq-answer-inner p { margin: 0 0 10px; }
.post-faq-answer-inner p:last-child { margin: 0; }
.post-faq-answer-inner strong { color: #1e293b; }
.post-faq-answer-inner a { color: #EA580C; }


/* =============================================
   MOBILE RESPONSIVE — Full Blog + FAQ
   ============================================= */

/* ── FAQ Mobile ── */
@media (max-width: 768px) {
    .post-faq-section { margin: 32px 0 0; }
    .post-faq-title { font-size: 1.15rem !important; }
    .post-faq-title-icon { width: 28px; height: 28px; font-size: 13px; }
    .post-faq-btn { padding: 14px 16px; font-size: 0.92rem; gap: 10px; }
    .post-faq-num { width: 22px; height: 22px; min-width: 22px; font-size: 10px; }
    .post-faq-chevron { width: 24px; height: 24px; min-width: 24px; }
    .post-faq-answer-inner { padding: 12px 16px 16px 16px; font-size: 0.9rem; line-height: 1.7; }
}

@media (max-width: 480px) {
    .post-faq-btn { padding: 12px 14px; font-size: 0.88rem; }
    .post-faq-title { font-size: 1.05rem !important; gap: 8px !important; }
}

/* ── Blog Post Layout Mobile (single.php) ── */
@media (max-width: 1024px) {
    .post-layout { grid-template-columns: 1fr; gap: 28px; }
    .post-sidebar { width: 100%; position: static !important; top: auto !important; }
    .post-sidebar .sticky-sidebar { position: static !important; }
    /* Move sidebar BELOW article on mobile */
    .post-article { order: 1; }
    .post-sidebar { order: 2; }
}

@media (max-width: 768px) {
    .post-hero { padding: 48px 20px 36px; min-height: auto; }
    .post-hero__category { font-size: 0.72rem; }
    .post-hero__title { font-size: 1.6rem; line-height: 1.3; }
    .post-hero__meta { flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
    .post-layout { padding: 24px 16px; gap: 24px; }
    .post-article .entry-content { font-size: 0.97rem; line-height: 1.8; }
    .post-article .entry-content h2 { font-size: 1.3rem; }
    .post-article .entry-content h3 { font-size: 1.1rem; }

    /* Sidebar cards stack on mobile */
    .sidebar-card { margin-bottom: 16px; }
    .sidebar-card__title { font-size: 0.85rem; }
    .toc-list { padding-left: 0; }
    .toc-list > li > a { font-size: 0.85rem; padding: 7px 10px; }

    /* Sidebar CTA mobile */
    .sidebar-cta { padding: 24px 20px; }
    .sidebar-cta__heading { font-size: 1.3rem; }
    .sidebar-cta__btn, .sidebar-cta__wa { padding: 13px 16px; font-size: 0.9rem; }

    /* Share bar */
    .post-share { flex-wrap: wrap; gap: 8px; }
    .post-share a { font-size: 0.8rem; padding: 7px 12px; }

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

    /* Reading progress */
    #reading-progress { height: 3px; }

    /* Inline CTA */
    .post-inline-cta { flex-direction: column; padding: 20px; gap: 12px; text-align: center; }
    .post-inline-cta__btn { justify-content: center; }
}

@media (max-width: 480px) {
    .post-hero__title { font-size: 1.35rem; }
    .post-layout { padding: 16px 12px; }
    .post-article .entry-content h2 { font-size: 1.15rem; }
    .post-article .entry-content h3 { font-size: 1rem; }
    .related-grid { grid-template-columns: 1fr; }
    .sidebar-cta__heading { font-size: 1.1rem; }
}

/* ── Blog Archive Mobile (archive.php) ── */
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .blog-card--hero { grid-column: span 2; }
    .blog-card--hero .blog-card__inner { flex-direction: column; }
    .blog-card--hero .blog-card__img { width: 100%; height: 220px; }
}

@media (max-width: 640px) {
    .blog-hero { padding: 48px 20px 36px; }
    .blog-hero__title { font-size: 1.8rem; }
    .blog-hero__sub { font-size: 0.9rem; }
    .blog-pills { padding: 12px 16px; gap: 8px; }
    .blog-pill { font-size: 0.78rem; padding: 6px 14px; }
    .blog-grid { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; }
    .blog-card--hero { grid-column: span 1; }
    .blog-card--hero .blog-card__inner { flex-direction: column; }
    .blog-card--hero .blog-card__img { width: 100%; height: 200px; }
    .blog-card__body { padding: 16px; }
    .blog-card__title { font-size: 1rem; }
}

@media (max-width: 480px) {
    .blog-hero { padding: 36px 16px 28px; }
    .blog-hero__title { font-size: 1.5rem; }
    .blog-grid { padding: 16px 12px; }
}

