/* TestSeriesPoint — blog.css */
/* ============================================================
   DESIGN SYSTEM — TSP Bold Editorial (Saffron × Navy × Ivory)
   ============================================================ */
:root {
    --saffron:    #f4600c;
    --saffron-dk: #c44800;
    --saffron-lt: #fff0e8;
    --navy:       #0f2241;
    --navy-2:     #1e3a5f;
    --navy-3:     #3a5a80;
    --sky:        #e8f1fb;
    --ivory:      #faf8f3;
    --ivory-2:    #f2ede4;
    --rule:       #e3ddd5;
    --white:      #ffffff;
    --ink:        #1a1a14;
    --ink-2:      #3d3d33;
    --ink-3:      #7a7a6e;
    --ink-4:      #b0af a8;
    --green:      #1a7a4a;
    --green-lt:   #e5f5ec;
    --gold:       #d4a017;
    --gold-lt:    #fdf5dc;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 22px;

    --sh-sm: 0 2px 10px rgba(15,34,65,.07);
    --sh-md: 0 6px 24px rgba(15,34,65,.11);
    --sh-lg: 0 14px 48px rgba(15,34,65,.16);
    --sh-color: 0 8px 28px rgba(244,96,12,.22);

    --ff-body:    'Plus Jakarta Sans', sans-serif;
    --ff-display: 'Playfair Display', Georgia, serif;
    --ease:       cubic-bezier(.4,0,.2,1);
    --dur:        .26s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff-body);
    background: var(--ivory);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }

/* ── A11y ── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
:focus-visible { outline: 2.5px solid var(--saffron); outline-offset: 3px; border-radius: var(--r-sm); }

/* ============================================================
   TOP ACCENT BAR + BREADCRUMB
   ============================================================ */
.tsp-topbar {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: .5rem 1.5rem;
}
.tsp-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,.65);
    list-style: none;
    flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color var(--dur); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li.active { color: var(--saffron); font-weight: 500; }
.breadcrumb-sep { color: rgba(255,255,255,.3); font-size: 10px; }

.topbar-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--saffron);
    background: rgba(244,96,12,.18);
    border-radius: 20px;
    padding: 3px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.topbar-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--saffron);
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }

/* ============================================================
   HERO
   ============================================================ */
.blog-hero {
    background: linear-gradient(145deg, var(--navy) 0%, #162d52 60%, #1c3560 100%);
    position: relative;
    overflow: hidden;
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
}

/* Geometric accent shapes */
.blog-hero::before,
.blog-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.blog-hero::before {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(244,96,12,.18) 0%, transparent 70%);
    top: -80px; right: -80px;
}
.blog-hero::after {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
    bottom: -60px; left: -60px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244,96,12,.2);
    border: 1px solid rgba(244,96,12,.35);
    border-radius: 30px;
    padding: 5px 16px 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffb38a;
    margin-bottom: 1.2rem;
}
.hero-kicker-icon {
    width: 20px; height: 20px;
    background: var(--saffron);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hero-kicker-icon svg { width: 11px; height: 11px; color: var(--white); }

.hero-h1 {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -.02em;
    margin-bottom: .8rem;
}
.hero-h1 em {
    font-style: italic;
    color: var(--saffron);
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,.68);
    font-weight: 300;
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto 1.8rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
}
.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--saffron);
    font-family: var(--ff-display);
}
.hero-stat span {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 400;
}
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.blog-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 5rem;
}

/* ============================================================
   LAYOUT GRID
   ============================================================ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 288px;
    gap: 2.5rem;
    align-items: start;
}

/* ============================================================
   POSTS AREA
   ============================================================ */
.posts-area { min-width: 0; }

.posts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--rule);
}
.posts-count {
    font-size: 13px;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: 6px;
}
.posts-count strong { color: var(--navy); font-weight: 600; }
.posts-count-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--saffron);
}

.toolbar-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--ivory-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    padding: 4px 12px;
}

/* ============================================================
   POSTS GRID
   ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Featured first card */
.post-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border-left: 4px solid var(--saffron);
}
.post-card:first-child .card-img        { height: 100%; min-height: 270px; }
.post-card:first-child .card-body       { padding: 2rem; }
.post-card:first-child .card-title      { font-size: 1.5rem; }
.post-card:first-child .card-excerpt    { -webkit-line-clamp: 4; }
.post-card:first-child .featured-badge  { display: flex; }

/* Card shell */
.post-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
    position: relative;
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: transparent;
}

/* Card image */
.card-img {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: var(--ivory-2);
    flex-shrink: 0;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s var(--ease);
}
.post-card:hover .card-img img { transform: scale(1.07); }

.card-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,34,65,.6) 0%, rgba(15,34,65,.1) 40%, transparent 70%);
    pointer-events: none;
}

/* Featured badge */
.featured-badge {
    display: none;
    position: absolute;
    top: 14px;
    left: 14px;
    align-items: center;
    gap: 5px;
    background: var(--saffron);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    padding: 5px 12px;
    z-index: 3;
    box-shadow: var(--sh-color);
}
.featured-badge svg { width: 10px; height: 10px; }

/* Date chip */
.date-chip {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: var(--white);
    border-radius: var(--r-sm);
    padding: 5px 10px;
    text-align: center;
    line-height: 1.15;
    box-shadow: var(--sh-sm);
    z-index: 2;
}
.date-chip strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.date-chip span   { font-size: .55rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* Reactions */
.reactions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 5px;
    z-index: 3;
}
.reaction-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    transition: background var(--dur), transform var(--dur);
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.reaction-pill:hover { background: var(--white); transform: scale(1.1); }
.reaction-pill svg { width: 12px; height: 12px; flex-shrink: 0; }
.reaction-pill.heart svg { color: #e53e3e; }
.reaction-pill.like  svg { color: var(--navy-2); }

/* Card body */
.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    flex: 1;
}

/* Category tag */
.card-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--saffron-dk);
    background: var(--saffron-lt);
    border-radius: 20px;
    padding: 3px 10px;
    align-self: flex-start;
}
.card-category svg { width: 9px; height: 9px; }

/* Card title */
.card-title {
    font-family: var(--ff-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
    transition: color var(--dur);
}
.card-title:hover { color: var(--saffron); }

/* Excerpt */
.card-excerpt {
    font-size: .845rem;
    color: var(--ink-2);
    line-height: 1.72;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card meta strip */
.card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: var(--ink-3);
    padding-top: .6rem;
    border-top: 1px solid var(--rule);
    margin-top: auto;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); flex-shrink: 0; }

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .25rem;
    border-top: 1px solid var(--rule);
    padding-top: .85rem;
}

.author-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--ink-3);
    min-width: 0;
}
.author-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--sky);
    border: 2px solid var(--rule);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
    color: var(--navy-2);
    text-transform: uppercase;
    flex-shrink: 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--saffron);
    letter-spacing: .04em;
    white-space: nowrap;
    background: var(--saffron-lt);
    border-radius: 20px;
    padding: 5px 12px;
    transition: background var(--dur), gap var(--dur), box-shadow var(--dur);
    flex-shrink: 0;
}
.read-more:hover {
    background: var(--saffron);
    color: var(--white);
    gap: 8px;
    box-shadow: var(--sh-color);
}
.read-more svg { width: 12px; height: 12px; }

/* Admin badge */
.admin-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    background: var(--sky);
    color: var(--navy-2);
    border-radius: var(--r-sm);
    padding: 4px 10px;
    margin-top: .5rem;
    transition: background var(--dur);
}
.admin-edit-btn:hover { background: #d0e4f7; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--ink-3);
    grid-column: 1 / -1;
}
.empty-state p { font-family: var(--ff-display); font-style: italic; font-size: 1.15rem; }
/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    overflow: hidden;
}

/* Exam alert widget */
.exam-alert-widget {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    border: none;
    padding: 1.4rem;
    border-radius: var(--r-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.exam-alert-widget::after {
    content: '';
    position: absolute;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(244,96,12,.2);
    bottom: -30px; right: -30px;
    pointer-events: none;
}
.exam-alert-title {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .35rem;
    position: relative; z-index: 1;
}
.exam-alert-sub {
    font-size: 12.5px;
    color: rgba(255,255,255,.65);
    line-height: 1.5;
    margin-bottom: 1rem;
    position: relative; z-index: 1;
}
.exam-alert-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--saffron);
    color: var(--white);
    border-radius: var(--r-sm);
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    transition: background var(--dur), box-shadow var(--dur);
    position: relative; z-index: 1;
}
.exam-alert-btn:hover { background: var(--saffron-dk); box-shadow: var(--sh-color); }
.exam-alert-btn svg { width: 13px; height: 13px; }

/* Widget header */
.widget-header {
    padding: .85rem 1.2rem;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ivory);
}
.widget-header h2 {
    font-family: var(--ff-body);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0;
}
.widget-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); flex-shrink: 0; }

/* Categories */
.category-list { list-style: none; }
.category-list li { border-bottom: 1px solid var(--rule); }
.category-list li:last-child { border-bottom: none; }
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .72rem 1.2rem;
    font-size: 13px;
    color: var(--ink-2);
    transition: background var(--dur), color var(--dur), padding-left var(--dur);
}
.category-item:hover { background: var(--ivory); color: var(--saffron); padding-left: 1.5rem; }
.category-item-name { display: flex; align-items: center; gap: 8px; }
.category-item-name svg { width: 12px; height: 12px; color: var(--ink-4); transition: color var(--dur); }
.category-item:hover .category-item-name svg { color: var(--saffron); }
.category-count {
    font-size: 10.5px;
    font-weight: 700;
    background: var(--ivory-2);
    color: var(--ink-3);
    border-radius: 20px;
    padding: 2px 9px;
    transition: background var(--dur), color var(--dur);
}
.category-item:hover .category-count { background: var(--saffron-lt); color: var(--saffron-dk); }

/* Recent posts */
.recent-list { }
.recent-post-item {
    display: flex;
    gap: 11px;
    padding: .9rem 1.2rem;
    border-bottom: 1px solid var(--rule);
    transition: background var(--dur);
    align-items: flex-start;
}
.recent-post-item:last-child { border-bottom: none; }
.recent-post-item:hover { background: var(--ivory); }
.recent-thumb {
    width: 58px; height: 58px;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ivory-2);
    border: 1px solid var(--rule);
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur); }
.recent-post-item:hover .recent-thumb img { transform: scale(1.08); }
.recent-post-meta { flex: 1; min-width: 0; }
.recent-title {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.42;
    color: var(--navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    transition: color var(--dur);
}
.recent-post-item:hover .recent-title { color: var(--saffron); }
.recent-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: var(--ink-4);
}
.recent-meta-row span { color: var(--ink-3); }

/* ============================================================
   EXAM CATEGORIES STRIP
   ============================================================ */
.exam-strip {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    margin-top: -.5rem;
}
.exam-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--navy-2);
    background: var(--sky);
    border: 1px solid #c9ddf0;
    border-radius: 20px;
    padding: 4px 12px;
    transition: all var(--dur);
    cursor: pointer;
}
.exam-tag:hover,
.exam-tag.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10,18,36,.93);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
    max-width: 90vw;
    max-height: 86vh;
    border-radius: var(--r-md);
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
    animation: lbIn .25s var(--ease);
}
@keyframes lbIn { from { opacity:0; transform: scale(.93) } to { opacity:1; transform: scale(1) } }
.lightbox-close {
    position: fixed;
    top: 18px; right: 22px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--white);
    font-size: 20px;
    transition: background var(--dur);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}
@media (max-width: 700px) {
    .posts-grid { grid-template-columns: 1fr; }
    .post-card:first-child { grid-template-columns: 1fr; border-left: none; border-top: 4px solid var(--saffron); }
    .post-card:first-child .card-img { height: 220px; }
    .hero-h1 { font-size: 1.9rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-divider { display: none; }
}
@media (max-width: 420px) {
    .blog-hero { padding: 2.5rem 1rem 2rem; }
    .posts-toolbar { flex-direction: column; align-items: flex-start; }
}
