*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #e91e8c;
    --violet: #7c3aed;
    --blue: #2563eb;
    --teal: #06b6d4;
    --bg: #f7f6ff;
    --white: #ffffff;
    --surface: #f1f0fa;
    --border: rgba(100, 80, 200, .12);
    --border2: rgba(100, 80, 200, .2);
    --ink: #0d0a1e;
    --ink2: #2a2545;
    --muted: #6b6490;
    --muted2: #a09abc;
    --grad: linear-gradient(135deg, #e91e8c, #7c3aed 45%, #2563eb 75%, #06b6d4);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Plus Jakarta Sans', sans-serif;
    --shadow-sm: 0 2px 12px rgba(80, 40, 180, .08);
    --shadow: 0 6px 28px rgba(80, 40, 180, .12);
    --shadow-lg: 0 16px 48px rgba(80, 40, 180, .16);
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink2);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--grad);
    border-radius: 4px;
}

/* ══════════════════════════════════════
   NAV — matches akshar-plus-v2 style
══════════════════════════════════════ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 246, 255, .92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 clamp(16px, 5%, 64px);
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.nav-logo svg {
    flex-shrink: 0;
}

.nav-logo span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: .88rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-cta {
    background: var(--grad);
    color: #fff;
    padding: 9px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: 0 4px 14px rgba(124, 58, 237, .3);
    transition: opacity .2s;
}

.nav-cta:hover {
    opacity: .88;
}

/* ══════════════════════════════════════
   PAGE HERO
══════════════════════════════════════ */
.blog-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 56px clamp(16px, 5%, 64px) 48px;
    position: relative;
    overflow: hidden;
    top: 50px;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .1) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, .07) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--violet);
    background: rgba(124, 58, 237, .08);
    border: 1px solid rgba(124, 58, 237, .2);
    border-radius: 50px;
    padding: 5px 14px;
    margin-bottom: 18px;
}

.hero-eyebrow i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet);
    display: inline-block;
}

.blog-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.06;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}

.blog-hero h1 em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 460px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: 50px;
    padding: 5px 5px 5px 18px;
    max-width: 420px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s;
}

.search-form:focus-within {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .1);
}

.search-form input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--sans);
    font-size: .9rem;
    color: var(--ink);
    min-width: 0;
}

.search-form input::placeholder {
    color: var(--muted2);
}

.search-form button {
    flex-shrink: 0;
    background: var(--grad);
    border: none;
    border-radius: 50px;
    padding: 9px 20px;
    color: #fff;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    white-space: nowrap;
}

/* ══════════════════════════════════════
   LAYOUT WRAPPER
══════════════════════════════════════ */
.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px clamp(16px, 5%, 64px);
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* ══════════════════════════════════════
   FEATURED SECTION — 2-column grid
══════════════════════════════════════ */
.section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-label h2 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.section-label a {
    font-size: .82rem;
    font-weight: 600;
    color: var(--violet);
}

/* Featured: big card left, two smalls right */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 52px;
}

/* ── Big featured card ── */
.feat-big {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 380px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}

.feat-big:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feat-big .cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0d2e, #2d1b69);
}

.feat-big .cover img {
    opacity: .5;
    mix-blend-mode: luminosity;
}

.feat-big .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 2, 20, .9) 0%, rgba(5, 2, 20, .4) 55%, transparent 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feat-cat {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 8px;
}

.feat-big .overlay h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}

.feat-big .overlay p {
    font-size: .83rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feat-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    padding: 8px 18px;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    transition: background .2s;
    width: fit-content;
}

.feat-big:hover .feat-read {
    background: rgba(255, 255, 255, .28);
}

/* ── Small featured cards ── */
.feat-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feat-small {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    flex: 1;
    cursor: pointer;
    min-height: 178px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}

.feat-small:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feat-small .cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0e1f2f, #1a3f5c);
}

.feat-small:nth-child(2) .cover {
    background: linear-gradient(135deg, #1f0e2a, #3c1a5c);
}

.feat-small .cover img {
    opacity: .45;
    mix-blend-mode: luminosity;
}

.feat-small .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 2, 20, .88) 0%, rgba(5, 2, 20, .3) 60%, transparent 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feat-small .overlay h4 {
    font-family: var(--serif);
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-top: 4px;
}

/* ══════════════════════════════════════
   ACTIVE FILTERS BAR
══════════════════════════════════════ */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(124, 58, 237, .06);
    border: 1px solid rgba(124, 58, 237, .14);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 24px;
}

.filter-bar span {
    font-size: .82rem;
    /* color: var(--muted); */
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--violet);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}

.filter-clear {
    margin-left: auto;
    font-size: .78rem;
    color: #e91e8c;
    font-weight: 600;
}

/* ══════════════════════════════════════
   ALL ARTICLES HEADING
══════════════════════════════════════ */
.articles-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.articles-head h2 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}

.articles-head .count {
    font-size: .8rem;
    font-weight: 500;
    color: var(--muted2);
    font-family: var(--sans);
}

/* ══════════════════════════════════════
   BLOG CARD — HORIZONTAL (FIXED)
   The key fix: explicit flex layout with
   fixed thumb width, no overflow issues
══════════════════════════════════════ */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    /* ← flex row */
    flex-direction: row;
    /* ← explicit */
    align-items: stretch;
    /* ← full height */
    min-height: 180px;
    transition: box-shadow .3s, border-color .3s, transform .3s;
    cursor: pointer;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 58, 237, .15);
    transform: translateY(-2px);
}

/* Thumbnail — fixed width, never shrink */
.bc-img {
    width: 220px;
    min-width: 220px;
    /* ← prevents shrinking */
    flex-shrink: 0;
    /* ← never shrinks */
    position: relative;
    background: linear-gradient(135deg, #1a0d2e, #2d1b69);
    overflow: hidden;
}

.bc-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .8;
    transition: transform .4s;
}

.blog-card:hover .bc-img img {
    transform: scale(1.05);
}

.bc-img .no-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: .2;
}

.bc-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(124, 58, 237, .85);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Card body — takes remaining space */
.bc-body {
    flex: 1;
    /* ← takes remaining space */
    min-width: 0;
    /* ← prevents overflow */
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bc-top {
    flex: 1;
    min-width: 0;
}

.bc-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .75rem;
    color: var(--muted2);
    margin-bottom: 10px;
}

.bc-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted2);
}

.bc-feat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    font-weight: 700;
    color: #e91e8c;
}

.bc-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 8px;
    /* 2-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.blog-card:hover .bc-title {
    color: var(--violet);
}

.bc-excerpt {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.65;
    /* 2-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.bc-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.bc-tag {
    font-size: .7rem;
    background: var(--surface);
    color: var(--muted);
    padding: 3px 10px;
    border-radius: 20px;
    transition: all .2s;
}

.bc-tag:hover {
    background: rgba(124, 58, 237, .1);
    color: var(--violet);
}

.bc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.bc-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bc-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    font-weight: 700;
    color: #fff;
}

.bc-author-name {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink2);
}

.bc-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bc-views {
    font-size: .75rem;
    color: var(--muted2);
}

.bc-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--violet);
    border: 1.5px solid rgba(124, 58, 237, .22);
    border-radius: 50px;
    padding: 5px 14px;
    transition: all .22s;
    white-space: nowrap;
}

.blog-card:hover .bc-readmore {
    background: var(--violet);
    color: #fff;
    border-color: var(--violet);
}

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty {
    text-align: center;
    padding: 80px 20px;
}

.empty .icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.empty h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 8px;
}

.empty p {
    font-size: .9rem;
    color: var(--muted);
}

.empty a {
    display: inline-block;
    margin-top: 16px;
    color: var(--violet);
    font-weight: 600;
}

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.pagi {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

.pagi a,
.pagi span {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: .84rem;
    color: var(--muted);
    transition: all .2s;
}

.pagi .active span {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
}

.pagi a:hover {
    border-color: var(--violet);
    color: var(--violet);
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.scard-title {
    font-family: var(--serif);
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

/* Category pills */
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1.5px solid var(--border2);
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--white);
    transition: all .2s;
    cursor: pointer;
}

.cat-pill:hover,
.cat-pill.on {
    background: var(--violet);
    color: #fff;
    border-color: var(--violet);
}

/* Recent posts */
.recent-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.recent-item:last-child {
    border: none;
    padding-bottom: 0;
}

.recent-thumb {
    width: 58px;
    height: 52px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a0d2e, #2d1b69);
    overflow: hidden;
}

.recent-thumb img {
    opacity: .7;
}

.recent-info h4 {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color .2s;
}

.recent-item:hover h4 {
    color: var(--violet);
}

.recent-info span {
    font-size: .7rem;
    color: var(--muted2);
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-cloud a {
    font-size: .74rem;
    color: var(--muted);
    background: var(--surface);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all .2s;
}

.tag-cloud a:hover {
    background: rgba(124, 58, 237, .1);
    color: var(--violet);
}

/* Newsletter dark card */
.scard-dark {
    background: var(--ink);
    border-color: transparent;
    border-radius: var(--radius);
    padding: 22px;
}

.scard-dark .scard-title {
    color: #fff;
}

.scard-dark p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.6;
    margin-bottom: 14px;
}

.scard-dark input {
    width: 100%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #fff;
    font-size: .84rem;
    font-family: var(--sans);
    outline: none;
    margin-bottom: 10px;
}

.scard-dark button {
    width: 100%;
    background: var(--grad);
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px;
    color: #fff;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .84rem;
    cursor: pointer;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media(max-width:1060px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media(max-width:768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .feat-col {
        flex-direction: row;
    }

    .feat-small {
        min-height: 150px;
    }

    .bc-img {
        width: 160px;
        min-width: 160px;
    }
}

@media(max-width:560px) {
    .nav-links {
        display: none;
    }

    .bc-img {
        width: 120px;
        min-width: 120px;
    }

    .bc-body {
        padding: 14px 16px;
    }

    .bc-title {
        font-size: .92rem;
    }
}

@media(max-width:400px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .feat-col {
        flex-direction: column;
    }

    .blog-card {
        flex-direction: column;
    }

    .bc-img {
        width: 100%;
        min-width: unset;
        height: 180px;
    }
}