/* =========================================================
   BLOG — Redesigned to match Shopify/Helen template design
   ========================================================= */

/* ── Scroll reveal ──────────────────────────────────────── */
.sr-hidden {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.sr-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   LAYOUT — Two-column: left sidebar + main content area
   Colors reference Helen Shopify template (indigo/blue palette)
   ========================================================= */

.wb-archive-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Left sidebar ──────────────────────────────────────── */
.wb-archive-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    /* subtle scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #C7D2FE transparent;
}

.wb-archive-sidebar::-webkit-scrollbar {
    width: 4px;
}
.wb-archive-sidebar::-webkit-scrollbar-track { background: transparent; }
.wb-archive-sidebar::-webkit-scrollbar-thumb {
    background: #C7D2FE;
    border-radius: 4px;
}

.wb-sidebar {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

/* header row */
.wb-sidebar__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    color: #6B7280;
}

.wb-sidebar__title {
    font-family: var(--font-heading);
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6B7280;
    margin: 0;
    line-height: 1;
}

.wb-sidebar__header svg {
    opacity: .60;
}

/* list */
.wb-sidebar__list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wb-sidebar__item {
    margin: 0;
}

.wb-sidebar__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px !important;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    padding: 10px 20px;
    line-height: 1.45;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}

.wb-sidebar__link:hover {
    background: #F5F3FF;
    color: #4F46E5;
    border-left-color: #C7D2FE;
}

/* active state */
.wb-sidebar__link--active {
    background: #EEF2FF;
    color: #4F46E5;
    font-weight: 700;
    border-left-color: #4F46E5;
}

/* dot indicator */
.wb-sidebar__link-dot {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #D1D5DB;
    margin-top: 6px;
    transition: background .15s;
}

.wb-sidebar__link:hover .wb-sidebar__link-dot,
.wb-sidebar__link--active .wb-sidebar__link-dot {
    background: #4F46E5;
}

/* ── Responsive — collapse sidebar on tablet / mobile ─── */
@media (max-width: 1024px) {
    .wb-archive-layout {
        grid-template-columns: 220px 1fr;
        gap: 28px;
    }
}

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

    .wb-archive-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .wb-sidebar__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .wb-sidebar__list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SITE HEADER — Blog pages: transparent + indigo gradient border
   Same fade-to-centre pattern as the main site.
   Sticky: frosted glass. Dark nav links via light-bg class.
   ========================================================= */
body.blog .site-header,
body.blog .site-header.sticky,
body.blog .site-header.light-bg,
body.blog .site-header.light-bg.sticky,
body.archive .site-header {
    background: #0C1147 !important;
    background-color: #0C1147 !important;
    background-image: none !important;
    box-shadow: none !important;
    padding: 16px 0 !important;
}


/* ── Blog LIST page: purple radial glow hero ── */
body.blog .wb-single-hero {
    padding-top: 80px;
    min-height: 520px;
    background: radial-gradient(ellipse 75% 90% at 40% 55%, #4B2AA0 0%, #2D1B7A 35%, #1A0D5C 60%, #0C1147 100%) !important;
    overflow: hidden;
}

/* abstract dot-grid texture */
body.blog .wb-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* make inner content sit above texture */
body.blog .wb-single-hero .wb-single-hero__inner {
    position: relative;
    z-index: 1;
}

/* ── Single post: hero starts below fixed nav, no overlap ── */
body.single-post .wb-single-hero {
    margin-top: 0;
    padding-top: 60px;
    min-height: 500px;
}

/* push page body down by nav height so hero sits flush below nav */
body.single-post,
body.archive {
    padding-top: 72px;
}


/* single-post nav: locked lavender — same before and after scroll */
body.single-post .site-header,
body.single-post .site-header.sticky,
body.single-post .site-header.light-bg.sticky {
    padding: 16px 0 !important;
    background-color: #EDEDFB !important;
    background-image: none !important;
}

/* Centre-fade indigo border — matches main site pattern */
body.blog .site-header::after,
body.archive .site-header::after {
    background: linear-gradient(
        90deg,
        rgba(128,104,225,0)   0%,
        rgba(128,104,225,1)  52%,
        rgba(128,104,225,0)  99%
    ) !important;
    height: 1px !important;
}

/* Sticky: frosted glass — archive only */
body.archive .site-header.sticky {

    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 32px rgba(79,70,229,.08) !important;
}


/* ── Blog listing hero header ───────────────────────────── */
.wb-blog-section {
    padding: 0 0 100px;
    background: #fff;
}

.wb-blog-hero {
    position: relative;
    min-height: 420px;
    padding: 160px 0 100px;
    background-color: #E0E7FF;
    background-size: cover;
    background-position: center;
    margin-bottom: 72px;
    text-align: center;
}

/* gradient fallback when no category image — matches product-banner */
.wb-blog-hero:not(.wb-blog-hero--has-image) {
    background-image: linear-gradient(160deg,
        #E0E7FF 0%,
        #EDE9FE 28%,
        #F5F3FF 56%,
        #F8F8FF 78%,
        #ffffff 100%);
}

/* ── Category image hero ────────────────────────────────── */

.wb-blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(12, 17, 71, 0.45) 0%,
        rgba(12, 17, 71, 0.65) 60%,
        rgba(12, 17, 71, 0.80) 100%
    );
    z-index: 0;
}

/* When category has an image — flip text to white */
.wb-blog-hero--has-image .sub-title {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.30) !important;
}

.wb-blog-hero--has-image .h1 {
    color: #fff !important;
    text-shadow: none;
}

.wb-blog-hero--has-image .h1 span {
    color: var(--primary-700) !important;
}

.wb-blog-hero--has-image .wb-archive-intro {
    color: rgba(255,255,255,.75) !important;
}

.wb-blog-hero .sub-title {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 24px;
    background-color: var(--primary-300);
    color: var(--primary-400);
    border: none;
}

.wb-blog-hero .h1 {
    font-family: var(--font-heading);
    font-size: var(--h1);
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 24px;
    line-height: 1.05;
}

.wb-blog-hero .h1 span {
    color: var(--primary-100);
    font: inherit;
}

.wb-blog-hero p:not(.sub-title),
.wb-archive-intro {
    font-size: 18px;
    color: var(--text-dark-gray);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
    padding-bottom: 0;
}

/* ── Posts grid ─────────────────────────────────────────── */
.wb-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Archive/category page: 3 cards per row, no sidebar */
.arc-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Post card ──────────────────────────────────────────── */
.wb-post-card {
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .22s;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.wb-post-card:hover {
    border-color: rgba(79,70,229,.30);
    box-shadow: 0 8px 32px rgba(79,70,229,.18);
    transform: translateY(-4px);
}

.wb-post-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--primary-300);
    flex-shrink: 0;
}

.wb-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.wb-post-card:hover .wb-post-card__thumb img {
    transform: scale(1.05);
}

/* no thumbnail fallback */
.wb-post-card__thumb-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-300) 0%, #d4d8f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* no-image state — shown when post has no featured image */
.wb-post-card__thumb--no-image {
    background: linear-gradient(135deg, #E8EAFF 0%, #EDE9FE 50%, #F0EEFF 100%);
    position: relative;
    overflow: hidden;
}

.wb-post-card__no-image {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 1;
}

.wb-post-card__no-image-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4F46E5;
    opacity: .35;
}

.wb-post-card__no-image-icon svg {
    width: 64px;
    height: 64px;
}

.wb-post-card__body {
    padding: 28px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.wb-post-card__title {
    font-family: var(--font-heading);
    font-size: var(--h5);
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.25;
}

.wb-post-card__title a {
    color: inherit;
    text-decoration: none;
    font: inherit;
}

.wb-post-card__title a:hover {
    color: #4F46E5;
}

/* category pill — below title, matches Shopify .sub-title pill */
.wb-post-card__cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #4F46E5;
    background: #EEF2FF;
    border: 1px solid rgba(79,70,229,.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
    line-height: 1;
    width: fit-content;
}

.wb-post-card__excerpt {
    font-size: 15px;
    color: var(--text-100);
    line-height: 1.7;
    margin-bottom: 0;
    flex: 1;
    padding-bottom: 20px;
}

.wb-post-card__meta {
    font-size: 13px;
    color: var(--text-100);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 18px;
    border-top: 1px solid #F3F4F6;
    margin-bottom: 20px;
}

.wb-post-card__meta time,
.wb-post-card__meta span {
    font-size: 13px;
    color: var(--text-100);
}

.wb-post-card__meta-sep {
    opacity: .35;
}

.wb-post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #4F46E5;
    text-decoration: none;
    transition: gap .2s, color .2s;
}

.wb-post-card__link:hover {
    gap: 10px;
    color: #3B1FA8;
}

.wb-post-card__footer {
    padding: 14px 28px;
    border-top: 1px solid #F3F4F6;
    font-size: 13px;
    color: var(--text-100);
    background: #FAFAFA;
}

/* ── Pagination ─────────────────────────────────────────── */
.wb-posts-nav {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.wb-posts-nav .nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wb-posts-nav .nav-previous a,
.wb-posts-nav .nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #4F46E5;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #4F46E5;
    border-radius: 10px;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}

.wb-posts-nav .nav-previous a:hover,
.wb-posts-nav .nav-next a:hover {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-color: #4F46E5;
    color: #fff;
    box-shadow: 0 4px 18px rgba(79,70,229,.30);
}

/* ── Numbered pagination (archive/category pages) ────────── */
.wb-posts-pagination {
    margin-top: 56px;
}

.arc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.arc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px !important;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    color: #374151 !important;
    text-decoration: none;
    transition: all .18s;
    line-height: 1;
}

.arc-pagination .page-numbers:hover {
    border-color: #4F46E5;
    color: #4F46E5 !important;
    background: #EEF2FF;
}

.arc-pagination .page-numbers.current {
    background: #4F46E5;
    border-color: #4F46E5;
    color: #fff !important;
    font-weight: 700;
}

.arc-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #9CA3AF !important;
    min-width: 20px;
    padding: 0;
}

.arc-pagination .page-numbers.prev,
.arc-pagination .page-numbers.next {
    color: #4F46E5 !important;
    border-color: rgba(79,70,229,.30);
    background: #EEF2FF;
}

.arc-pagination .page-numbers.prev:hover,
.arc-pagination .page-numbers.next:hover {
    background: #4F46E5;
    border-color: #4F46E5;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(79,70,229,.25);
}

.arc-pagination .page-numbers.disabled {
    color: #D1D5DB !important;
    border-color: #E5E7EB;
    background: #F9FAFB;
    cursor: not-allowed;
    pointer-events: none;
    opacity: .55;
}

/* ── Single post ────────────────────────────────────────── */
.wb-single-section {
    padding: 0 0 100px;
    background: #fff;
}

/* single hero banner (title + meta area) */
.wb-single-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    margin-top: 0;
    padding: 80px 0 0;
    background: #0C1147;
    background-size: cover;
    background-position: center;
    margin-bottom: 56px;
}

/* featured image fills hero as full-bleed banner */
.wb-single-hero--has-image {
    background-size: cover;
    background-position: center;
}

/* dark gradient overlay when featured image is set */
.wb-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 8, 40, 0.55) 0%,
        rgba(15, 10, 50, 0.25) 55%,
        rgba(10, 8, 30, 0.08) 100%
    );
    z-index: 0;
}

/* inner content sits above overlay */
.wb-single-hero__inner {
    position: relative;
    z-index: 1;
    padding: 0 20px 40px;
    text-align: left;
}

.wb-single-hero__desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,.75);
    margin: -12px 0 0;
    max-width: 480px;
}

/* ── Eyebrow category pill — matches .title .sub-title ──── */
.wb-single-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    line-height: 1;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.30);
    backdrop-filter: blur(6px);
}

/* ── Title ──────────────────────────────────────────────── */
.wb-single-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 12px;
    color: #fff;
}

.wb-single-hero__title span {
    color: var(--primary-100);
    font: inherit;
}

/* ── Byline row: avatar + name / date ───────────────────── */
.wb-single-hero__byline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: none;
}

.wb-single-hero__avatar {
    flex-shrink: 0;
}

.wb-single-hero__avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255,255,255,.50);
}

.wb-single-hero__byline-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wb-single-hero__author {
    font-size: 14px !important;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.wb-single-hero__date,
.wb-single-hero__date time {
    font-size: 13px !important;
    color: rgba(255,255,255,.55) !important;
    line-height: 1;
}

.wb-single-hero .container {
    padding-left: 20px;
    padding-right: 20px;
}

.wb-single-wrap {
    margin: 0 auto;
}

/* featured image below hero */
.wb-single-featured-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 8px 40px rgba(79,70,229,.12);
    aspect-ratio: 16/9;
}

.wb-single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wb-single-wrap .wb-post-card__thumb {
    border-radius: 16px;
    margin-bottom: 48px;
    aspect-ratio: 16/9;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(79,70,229,.18);
}

.wb-single-wrap .wb-post-card__body {
    padding: 0;
}

/* enlarged first letter — stays inline, one line only */
.wb-post-card__content > p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 1.5em;
    font-weight: 800;
    color: var(--secondary-color);
}

/* content typography */
.wb-post-card__content {
    font-size: 17px;
    color: var(--secondary-color);
    line-height: 1.85;
}

.wb-post-card__content h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 52px 0 16px;
    line-height: 1.2;
}

.wb-post-card__content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 40px 0 12px;
}

.wb-post-card__content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 28px 0 10px;
}

.wb-post-card__content p {
    margin-bottom: 22px;
}

.wb-post-card__content ul,
.wb-post-card__content ol {
    padding-left: 22px;
    margin-bottom: 22px;
}

.wb-post-card__content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.wb-post-card__content a {
    color: #4F46E5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wb-post-card__content a:hover {
    color: #3B1FA8;
}

.wb-post-card__content blockquote {
    border-left: 4px solid #4F46E5;
    padding: 18px 24px;
    margin: 36px 0;
    background: #EEF2FF;
    border-radius: 0 10px 10px 0;
    color: var(--secondary-color);
    font-style: italic;
    font-size: 18px;
}

.wb-post-card__content strong {
    font-weight: 700;
    color: var(--secondary-color);
}

.wb-post-card__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 12px 0;
}

/* single footer / tags */
.wb-single-wrap .wb-post-card__footer {
    padding: 24px 0 0;
    border-top: 1px solid #E5E7EB;
    background: transparent;
    margin-top: 56px;
}

/* post navigation */
.wb-single-wrap .post-navigation {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid #E5E7EB;
}

.wb-single-wrap .post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wb-single-wrap .post-navigation .nav-previous a,
.wb-single-wrap .post-navigation .nav-next a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid rgba(79,70,229,.18);
    text-decoration: none;
    color: var(--secondary-color);
    transition: all .22s;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    box-shadow: 0 2px 12px rgba(79,70,229,.08);
}

.wb-single-wrap .post-navigation .nav-previous a:hover,
.wb-single-wrap .post-navigation .nav-next a:hover {
    border-color: #4F46E5;
    background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(79,70,229,.18);
}

.wb-single-wrap .post-navigation .nav-next {
    text-align: right;
}

.wb-single-wrap .post-navigation .nav-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #4F46E5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wb-single-wrap .post-navigation .nav-next .nav-subtitle {
    justify-content: flex-end;
}

/* comments */
.wb-single-wrap .comments-area {
    margin-top: 72px;
    padding-top: 64px;
    border-top: 1px solid #E5E7EB;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .wb-posts-grid { grid-template-columns: repeat(2, 1fr); }
    /* keep 3 cols in archive/category sidebar layout */
    .wb-archive-main .wb-posts-grid { grid-template-columns: repeat(3, 1fr); }
    .wb-blog-hero { padding: 120px 0 56px; }
    .wb-single-hero { min-height: 420px; }
    .wb-single-hero__inner { padding-bottom: 48px; }
}

@media (max-width: 640px) {
    .wb-posts-grid { grid-template-columns: 1fr; }
    .wb-archive-main .wb-posts-grid { grid-template-columns: 1fr; }
    .wb-blog-hero { padding: 100px 0 40px; }
    .wb-blog-hero .h1 { font-size: 36px; }
    .wb-single-hero { min-height: 320px; }
    .wb-single-hero__inner { padding-bottom: 32px; }
    .wb-single-hero .wb-post-card__title { font-size: 26px; }
    .wb-post-card__body { padding: 20px; }
    .wb-single-wrap .post-navigation .nav-links { grid-template-columns: 1fr; }
    .wb-single-section { padding: 0 0 60px; }
    .wb-blog-section { padding: 0 0 60px; }
}


/* =========================================================
   SINGLE — Posted In / Tags footer
   ========================================================= */

.wb-single-wrap .wb-post-card__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.wb-single-wrap .wb-post-card__footer .cat-links,
.wb-single-wrap .wb-post-card__footer .tags-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-100);
}

.wb-single-wrap .wb-post-card__footer .cat-links::before {
    content: 'Posted in';
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-100);
    margin-right: 4px;
}

.wb-single-wrap .wb-post-card__footer .tags-links::before {
    content: 'Tagged';
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-100);
    margin-right: 4px;
}

.wb-single-wrap .wb-post-card__footer .cat-links a,
.wb-single-wrap .wb-post-card__footer .tags-links a {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #1D4ED8;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .18s, color .18s;
}

.wb-single-wrap .wb-post-card__footer .cat-links a:hover,
.wb-single-wrap .wb-post-card__footer .tags-links a:hover {
    background: var(--primary-200);
    color: #fff;
    border-color: var(--primary-200);
}

.wb-single-wrap .wb-post-card__footer .edit-link {
    margin-left: auto;
}

.wb-single-wrap .wb-post-card__footer .edit-link a {
    font-size: 12px;
    color: var(--text-100);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    transition: border-color .18s, color .18s;
}

.wb-single-wrap .wb-post-card__footer .edit-link a:hover {
    border-color: var(--primary-200);
    color: var(--primary-200);
}

/* =========================================================
   SINGLE — Post navigation (Previous / Next)
   ========================================================= */

.wb-single-wrap .post-navigation .nav-previous a .nav-subtitle::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--primary-200);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 12H5M12 5l-7 7 7 7' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 10px 10px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.wb-single-wrap .post-navigation .nav-next a .nav-subtitle::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--primary-200);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 10px 10px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.wb-single-wrap .post-navigation .nav-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.4;
    display: block;
    margin-top: 2px;
}

.wb-single-wrap .post-navigation .nav-previous a:hover .nav-title,
.wb-single-wrap .post-navigation .nav-next a:hover .nav-title {
    color: var(--primary-200);
}

/* =========================================================
   SINGLE — Comments area
   ========================================================= */

.wb-single-wrap .comments-area .comments-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 32px;
}

/* comment list */
.wb-single-wrap .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wb-single-wrap .comment-list .comment {
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 24px 28px;
    background: #FAFAFA;
    transition: border-color .2s;
}

.wb-single-wrap .comment-list .comment:hover {
    border-color: #C7D2FE;
}

.wb-single-wrap .comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wb-single-wrap .comment-list .comment-author img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
}

.wb-single-wrap .comment-list .comment-author .fn {
    font-weight: 700;
    font-size: 15px;
    color: var(--secondary-color);
    font-style: normal;
}

.wb-single-wrap .comment-list .comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.wb-single-wrap .comment-list .comment-metadata a {
    font-size: 12px;
    color: var(--text-100);
    text-decoration: none;
}

.wb-single-wrap .comment-list .comment-content p {
    font-size: 16px;
    color: var(--secondary-color);
    line-height: 1.75;
    margin-bottom: 0;
}

.wb-single-wrap .comment-list .reply a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-200);
    text-decoration: none;
    margin-top: 12px;
    letter-spacing: .02em;
}

.wb-single-wrap .comment-list .reply a:hover {
    color: var(--primary-100);
}

/* =========================================================
   SINGLE — Comment form (Leave a Reply)
   ========================================================= */

/* Wrapper card */
#respond {
    background: #F5F7FF;
    border: 1px solid #E0E4F8;
    border-radius: 20px;
    padding: 44px 48px;
    margin-top: 0;
}

/* Title */
#reply-title {
    font-family: var(--font-heading) !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--secondary-color) !important;
    margin: 0 0 6px !important;
    line-height: 1.2;
}

#reply-title small {
    font-size: 13px;
    font-weight: 500;
    margin-left: 10px;
}

#reply-title small a {
    color: var(--text-100);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #D1D5DB;
    padding: 3px 10px;
    border-radius: 6px;
    transition: color .18s, border-color .18s;
}

#reply-title small a:hover {
    color: var(--primary-200);
    border-color: var(--primary-200);
}

/* "logged in as" and "Your email..." notes */
.comment-form .logged-in-as,
.comment-form .comment-notes {
    font-size: 14px !important;
    color: var(--text-100) !important;
    margin-bottom: 28px !important;
    line-height: 1.6;
}

.comment-form .logged-in-as a,
.comment-form .comment-notes a {
    color: var(--primary-200);
    text-decoration: none;
    font-weight: 600;
}

.comment-form .logged-in-as a:hover,
.comment-form .comment-notes a:hover {
    text-decoration: underline;
}

/* ── All <p> field wrappers: stack label above input ── */
#commentform p {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px !important;
}

/* Name / Email / Website: 3-column grid on desktop */
.comment-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

#commentform .comment-form-author,
#commentform .comment-form-email,
#commentform .comment-form-url {
    margin-bottom: 0 !important;
}

/* Labels */
#commentform label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--secondary-color) !important;
    letter-spacing: .03em;
    text-transform: none;
}

#commentform label .required {
    color: var(--primary-200);
    margin-left: 2px;
}

/* All inputs & textarea */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
    width: 100% !important;
    font-family: var(--font-base) !important;
    font-size: 15px !important;
    color: var(--secondary-color) !important;
    background: #fff !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
}

#commentform textarea#comment {
    width: 100% !important;
    font-family: var(--font-base) !important;
    font-size: 15px !important;
    color: var(--secondary-color) !important;
    background: #fff !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    box-sizing: border-box !important;
    min-height: 180px !important;
    resize: vertical !important;
    line-height: 1.65 !important;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea#comment:focus {
    border-color: var(--primary-200) !important;
    box-shadow: 0 0 0 3px rgba(56,68,209,.10) !important;
}

/* Cookies consent checkbox row */
#commentform .comment-form-cookies-consent {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
}

#commentform .comment-form-cookies-consent input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--primary-200);
    cursor: pointer;
}

#commentform .comment-form-cookies-consent label {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--text-100) !important;
    line-height: 1.55;
    letter-spacing: 0;
}

/* Submit button */
#commentform .form-submit {
    margin-bottom: 0 !important;
}

#commentform input#submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary-200) !important;
    color: #fff !important;
    font-family: var(--font-base) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 40px !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background .2s, transform .15s !important;
    letter-spacing: .03em;
    box-shadow: 0 4px 14px rgba(56,68,209,.25) !important;
    width: auto !important;
}

#commentform input#submit:hover {
    background: var(--primary-100) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(56,68,209,.30) !important;
}

#commentform input#submit:active {
    transform: translateY(0) !important;
}

/* ── Responsive — comment form ─────────────────────────── */
@media (max-width: 768px) {
    .comment-form-fields { grid-template-columns: 1fr; gap: 0; }
    #commentform .comment-form-author,
    #commentform .comment-form-email,
    #commentform .comment-form-url { margin-bottom: 20px !important; }
    #respond { padding: 28px 20px; }
}

@media (max-width: 640px) {
    .wb-single-wrap .comment-list .comment { padding: 18px 16px; }
}


/* =========================================================
   BLOG INDEX — Full Shopify-style hero redesign
   ========================================================= */

/* ── Hero section ───────────────────────────────────────── */
.blog-page-hero {
    padding: 160px 0 0;
    min-height: 100vh;
    background: linear-gradient(160deg,
        #E0E7FF 0%,
        #EDE9FE 28%,
        #F5F3FF 56%,
        #F8F8FF 78%,
        #ffffff 100%);
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.blog-page-hero__row {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 64px;
    align-items: center;
    padding-bottom: 0;
}

/* ── Left text column ───────────────────────────────────── */
.blog-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(79,70,229,.20);
    border-radius: 100px;
    padding: 8px 16px 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #4F46E5;
    letter-spacing: .04em;
    margin-bottom: 28px;
}

.blog-page-hero__eyebrow svg {
    flex-shrink: 0;
    color: #4F46E5;
}

.blog-page-hero__heading {
    font-family: var(--font-heading);
    font-size: var(--home-h1);
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.0;
    margin-bottom: 24px;
}

.blog-page-hero__heading span {
    color: #4F46E5;
    font: inherit;
}

.blog-page-hero__desc {
    font-size: 19px;
    color: var(--text-dark-gray);
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 36px;
}

.blog-page-hero__cta {
    margin-bottom: 48px;
}

.blog-page-hero__cta .btn.btn-secondary.cta-arrow {
    background: #5F38D0;
    color: #fff !important;
    border: 2px solid #5F38D0;
    border-radius: 12px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .15s;
    box-shadow: 0 4px 18px rgba(95,56,208,.30);
}

.blog-page-hero__cta .btn.btn-secondary.cta-arrow svg path {
    stroke: #fff !important;
}

.blog-page-hero__cta .btn.btn-secondary.cta-arrow:hover {
    background: #4a2bb0;
    border-color: #4a2bb0;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(95,56,208,.40);
}

/* stats row */
.blog-page-hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 36px;
    border-top: 1px solid rgba(79,70,229,.14);
}

.blog-page-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-page-hero__stat-num {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.blog-page-hero__stat-label {
    font-size: 12px;
    color: var(--text-100);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.blog-page-hero__stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(79,70,229,.20);
    flex-shrink: 0;
}

/* ── Right: featured post card ──────────────────────────── */
.blog-page-hero__featured {
    position: relative;
}

.blog-page-hero__featured-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #4F46E5;
    margin-bottom: 14px;
}

.blog-page-hero__featured-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(79,70,229,.18), 0 4px 16px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
}

.blog-page-hero__featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 72px rgba(79,70,229,.24), 0 6px 20px rgba(0,0,0,.08);
}

.blog-page-hero__featured-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--primary-300);
}

.blog-page-hero__featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.blog-page-hero__featured-card:hover .blog-page-hero__featured-thumb img {
    transform: scale(1.04);
}

.blog-page-hero__featured-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #EEF2FF, #C7D2FE);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4F46E5;
}

.blog-page-hero__featured-body {
    padding: 24px 28px 28px;
}

.blog-page-hero__featured-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1D4ED8;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.blog-page-hero__featured-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-page-hero__featured-excerpt {
    font-size: 14px;
    color: var(--text-100);
    line-height: 1.65;
    margin-bottom: 18px;
}

.blog-page-hero__featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-100);
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}

.blog-page-hero__featured-read {
    font-size: 13px;
    font-weight: 700;
    color: #4F46E5;
}

/* ── Category filter pills ──────────────────────────────── */
.blog-page-cats {
    background: #fff;
    border-bottom: 1px solid #F3F4F6;
    padding: 0;
    position: sticky;
    top: 72px;
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.blog-page-cats__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-page-cats__row::-webkit-scrollbar { display: none; }

.blog-page-cats__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-100);
    background: #F3F4F6;
    border: 1px solid transparent;
    padding: 7px 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: all .18s;
    flex-shrink: 0;
}

.blog-page-cats__pill span {
    font-size: 11px;
    background: rgba(0,0,0,.08);
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
    color: inherit;
}

.blog-page-cats__pill:hover,
.blog-page-cats__pill--active {
    background: #EEF2FF;
    color: #4F46E5;
    border-color: rgba(79,70,229,.30);
}

.blog-page-cats__pill--active span {
    background: rgba(79,70,229,.12);
}

/* bump blog grid top spacing */
#blog-posts { padding-top: 64px !important; }

/* ═══════════════════════════════════════════════════════════
   CATEGORY ARCHIVE HEADER — About-page dark style
   ═══════════════════════════════════════════════════════════ */

.arc-hdr {
    position: relative;
    padding: 64px 0 72px;
    background: #0C1147;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-align: center;
}

/* When category_image is set */
.arc-hdr--has-image {
    min-height: 340px;
    display: flex;
    align-items: center;
}

.arc-hdr--has-image .arc-hdr__inner {
    width: 100%;
}

.arc-hdr__overlay {
    display: none;
}

.arc-hdr__bg-dots,
.arc-hdr__glow {
    display: none;
}

.arc-hdr__inner {
    position: relative;
    z-index: 1;
}

.arc-hdr__pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.90);
    border: 1px solid rgba(255,255,255,.25);
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.arc-hdr__title {
    font-family: var(--font-heading);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.arc-hdr__desc {
    font-size: 17px;
    color: rgba(255,255,255,.72);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Cards section ────────────────────────────────────────── */
.arc-body {
    padding: 56px 0 100px;
    background: #fff;
}

@media (max-width: 768px) {
    .arc-hdr { padding: 120px 0 56px; }
    .arc-hdr__title { font-size: 36px; }
    .arc-body { padding: 40px 0 64px; }
    .arc-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .arc-posts-grid { grid-template-columns: 1fr; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .blog-page-hero__row {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 56px;
    }
    .blog-page-hero { padding-top: 130px; min-height: auto; }
    .blog-page-hero__heading { font-size: clamp(36px, 6vw, 56px); }
    .blog-page-hero__desc { max-width: 100%; }
}

@media (max-width: 640px) {
    .blog-page-hero { padding-top: 110px; }
    .blog-page-hero__heading { font-size: 36px; line-height: 1.1; }
    .blog-page-hero__desc { font-size: 16px; }
    .blog-page-hero__stats { gap: 16px; }
    .blog-page-hero__stat-num { font-size: 18px; }
    .blog-page-cats { top: 60px; }
    #blog-posts { padding-top: 40px !important; }
}