/*
Theme Name: Avishkar Theme
Theme URI: https://avishkarstudio.com/
Author: Avi
Author URI: https://avishkarstudio.com/
Description: Custom theme for Avishkar Studio blog — light color scheme.
Version: 1.5

Color Scheme:
  --as-blue:   #1E3A8A  (deep accent blue)
  --as-white:  #FFFFFF
  --as-bg:     #F8F9FA  (light gray page bg)
  --as-amber:  #F59E0B  (warm amber highlight)
  --as-text:   #1F2937  (dark slate body text)
*/

/* ═══════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════════════ */

.blog-listing-container,
.single-blog-post,
.pf-portfolio-grid,
.stripe-blog-layout {
    --as-blue:         #1E3A8A;
    --as-white:        #FFFFFF;
    --as-bg:           #F8F9FA;
    --as-amber:        #F59E0B;
    --as-amber-dark:   #92400E;
    --as-text:         #1F2937;
    --as-text2:        #4B5563;
    --as-text3:        #9CA3AF;
    --as-border:       #E5E7EB;
    --as-border-dark:  #D1D5DB;
    --as-amber-bg:     rgba(245, 158, 11, 0.08);
    --as-amber-border: rgba(245, 158, 11, 0.28);
    --as-blue-bg:      rgba(30, 58, 138, 0.06);
    --as-blue-border:  rgba(30, 58, 138, 0.18);
    --as-code-bg:      #EEF2FF;
    --as-code-border:  #C7D2FE;
}

/* ═══════════════════════════════════════════════════════
   READING PROGRESS BAR
═══════════════════════════════════════════════════════ */

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #1E3A8A, #F59E0B);
    z-index: 9999;
    transition: width 0.08s linear;
}

/* ═══════════════════════════════════════════════════════
   BLOG LISTING CONTAINER
═══════════════════════════════════════════════════════ */

.blog-listing-container {
    max-width: 1200px;
    margin: 60px auto 120px;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════
   SINGLE POST WRAPPER
═══════════════════════════════════════════════════════ */

.single-blog-post {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 80px;
    background: transparent;
}

/* ── Back link ────────────────────────────────────────── */

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--as-text3);
    text-decoration: none !important;
    border: none !important;
    margin-bottom: 32px;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.back-to-blog:hover {
    color: var(--as-amber);
    border: none !important;
}

.back-to-blog i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.back-to-blog:hover i {
    transform: translateX(-3px);
}

/* ── Post Title ───────────────────────────────────────── */

.wp-post-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--as-blue);
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

/* ── Meta Chips ───────────────────────────────────────── */

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--as-text2);
    padding: 5px 13px;
    background: var(--as-white);
    border: 1px solid var(--as-border);
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.meta-chip i {
    font-size: 11px;
    color: var(--as-text3);
}

.meta-chip-cat {
    background: var(--as-amber-bg);
    border-color: var(--as-amber-border);
    color: var(--as-amber-dark);
    font-weight: 600;
}

/* ── Post Divider ─────────────────────────────────────── */

.post-divider {
    height: 1px;
    background: var(--as-border);
    margin: 24px 0 32px;
}

/* ── Featured Image ───────────────────────────────────── */

.post-featured-image {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 44px;
    border: 1px solid var(--as-border);
    background: var(--as-white);
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.07);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════
   SINGLE POST — 2-COLUMN LAYOUT (TOC sidebar | article)
═══════════════════════════════════════════════════════ */

/* Back link sits above the grid, full width */
.single-blog-post .back-to-blog {
    display: inline-flex;
    margin-bottom: 28px;
}

/* Grid: [260px TOC] [1fr content, max 720px readable] */
.single-post-layout-grid {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 52px;
    align-items: start;
}

/* When TOC is hidden (< 2 headings) collapse to 1 column */
.single-post-layout-grid.no-toc {
    grid-template-columns: 1fr;
}

.single-post-layout-grid.no-toc .toc-sidebar {
    display: none;
}

/* Right column — keeps readable max-width */
.single-post-content-col {
    min-width: 0; /* prevent grid blowout */
    max-width: 720px;
}

/* ── TOC Sidebar ──────────────────────────────────────── */

.toc-sidebar {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    /* Hidden until JS populates and adds .toc-ready */
    visibility: hidden;
    pointer-events: none;
}

.toc-sidebar.toc-ready {
    visibility: visible;
    pointer-events: auto;
}

.toc-sidebar::-webkit-scrollbar {
    display: none;
}

.toc-box {
    background: var(--as-white);
    border: 1.5px solid var(--as-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.06);
}

/* ── CONTENTS label ───────────────────────────────────── */

.toc-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px 13px;
    border-bottom: 1px solid var(--as-border);
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--as-text3);
    background: var(--as-bg);
}

.toc-label i {
    font-size: 12px;
    color: var(--as-blue);
}

/* ── TOC Nav links ────────────────────────────────────── */

.toc-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.toc-link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 18px;
    text-decoration: none !important;
    border: none !important;
    border-left: 3px solid transparent;
    color: var(--as-text2);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    transition: all 0.2s ease;
    position: relative;
}

.toc-link:hover {
    background: var(--as-blue-bg);
    border-left-color: var(--as-blue-border);
    color: var(--as-blue);
    text-decoration: none !important;
}

.toc-link.active {
    background: var(--as-blue-bg);
    border-left-color: var(--as-blue);
    color: var(--as-blue);
    font-weight: 700;
}

/* ── Number badge ─────────────────────────────────────── */

.toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--as-blue-bg);
    border: 1px solid var(--as-blue-border);
    color: var(--as-blue);
    font-family: 'Space Mono', monospace;
    font-size: 9.5px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s ease;
    line-height: 1;
}

.toc-link.active .toc-num {
    background: var(--as-blue);
    border-color: var(--as-blue);
    color: var(--as-white);
}

.toc-text {
    flex: 1;
}

/* ── Responsive: hide TOC on tablet / mobile ──────────── */

@media (max-width: 1100px) {
    .single-post-layout-grid {
        grid-template-columns: 210px 1fr;
        gap: 36px;
    }
}

@media (max-width: 860px) {
    .single-post-layout-grid {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        display: none !important;
    }

    .single-post-content-col {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════
   POST BODY — TYPOGRAPHY SYSTEM
═══════════════════════════════════════════════════════ */

.wp-post-content {
    font-size: 17px;
    line-height: 1.82;
    color: var(--as-text2);
}

/* Paragraphs */

.wp-post-content p {
    margin-bottom: 24px;
    color: var(--as-text2);
    line-height: 1.82;
}

/* ── Headings ─────────────────────────────────────────── */

.wp-post-content h1,
.wp-post-content h2,
.wp-post-content h3,
.wp-post-content h4,
.wp-post-content h5,
.wp-post-content h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--as-blue);
    letter-spacing: -0.02em;
    line-height: 1.28;
}

.wp-post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 48px 0 16px;
    padding-bottom: 0;
    /* Amber underline accent instead of a full border */
    background-image: linear-gradient(#F59E0B, #F59E0B);
    background-repeat: no-repeat;
    background-size: 40px 3px;
    background-position: left bottom 0;
    padding-bottom: 10px;
}

.wp-post-content h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--as-text);
    margin: 38px 0 12px;
}

.wp-post-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--as-text);
    margin: 28px 0 8px;
}

/* ── Lists ────────────────────────────────────────────── */

.wp-post-content ul,
.wp-post-content ol {
    list-style: none;
    padding-left: 0;
    margin: 0 0 24px;
    color: var(--as-text2);
    line-height: 1.82;
}

.wp-post-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 17px;
}

.wp-post-content ul > li::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--as-amber);
}

.wp-post-content ol {
    counter-reset: item;
}

.wp-post-content ol > li {
    counter-increment: item;
}

.wp-post-content ol > li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: var(--as-amber);
    line-height: 1.82;
}

/* ── Links ────────────────────────────────────────────── */

.wp-post-content a {
    color: var(--as-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(30, 58, 138, 0.3);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.wp-post-content a:hover {
    color: var(--as-amber);
    border-bottom-color: var(--as-amber-border);
}

/* ── Blockquote ───────────────────────────────────────── */

.wp-post-content blockquote {
    margin: 32px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--as-amber);
    border-radius: 0;
    background: var(--as-amber-bg);
    font-style: italic;
    font-size: 17.5px;
    color: var(--as-text);
    line-height: 1.72;
}

.wp-post-content blockquote p {
    margin: 0;
    color: inherit;
}

/* ── Code — inline ────────────────────────────────────── */

.wp-post-content code {
    font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    font-size: 13.5px;
    background: var(--as-code-bg);
    border: 1px solid var(--as-code-border);
    color: var(--as-blue);
    padding: 1px 7px;
    border-radius: 5px;
}

/* ── Code — block ─────────────────────────────────────── */

.wp-post-content pre {
    margin: 24px 0;
    padding: 22px 24px;
    background: var(--as-code-bg);
    border: 1px solid var(--as-code-border);
    border-radius: 12px;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--as-blue);
}

.wp-post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* ── Images in content ────────────────────────────────── */

.wp-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--as-border);
    margin: 32px 0;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.06);
}

/* ── Tables ───────────────────────────────────────────── */

.wp-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14.5px;
    border: 1px solid var(--as-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--as-white);
}

.wp-post-content th {
    background: var(--as-blue-bg);
    color: var(--as-blue);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--as-blue-border);
}

.wp-post-content td {
    padding: 11px 16px;
    color: var(--as-text2);
    border-bottom: 1px solid var(--as-border);
    font-size: 14.5px;
}

.wp-post-content tr:last-child td {
    border-bottom: none;
}

.wp-post-content tr:nth-child(even) td {
    background: rgba(248, 249, 250, 0.7);
}

/* ── Horizontal Rule ──────────────────────────────────── */

.wp-post-content hr {
    border: none;
    height: 1px;
    background: var(--as-border);
    margin: 44px 0;
}

/* ── Strong / Bold ────────────────────────────────────── */

.wp-post-content strong,
.wp-post-content b {
    color: var(--as-text);
    font-weight: 700;
}

/* ── Em / Italic ──────────────────────────────────────── */

.wp-post-content em,
.wp-post-content i:not(.bi) {
    color: var(--as-text);
}

/* ═══════════════════════════════════════════════════════
   SHARE ROW
═══════════════════════════════════════════════════════ */

.post-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--as-border);
}

.share-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--as-text3);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.post-share-btns {
    display: flex;
    gap: 8px;
}

.post-share-btns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--as-white);
    border: 1px solid var(--as-border) !important;
    color: var(--as-text3) !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.post-share-btns a:hover {
    background: var(--as-amber-bg);
    border-color: var(--as-amber-border) !important;
    color: var(--as-amber-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.18);
}

/* ═══════════════════════════════════════════════════════
   BLOG LISTING — FEATURED POST
═══════════════════════════════════════════════════════ */

.featured-blog-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    cursor: pointer;
}

.featured-post-image {
    border-radius: 16px;
    overflow: hidden;
    height: 440px;
    border: 1px solid var(--as-border);
    background: var(--as-white);
    box-shadow: 0 4px 24px rgba(30, 58, 138, 0.09);
    position: relative;
}

/* ── Featured Badge ────────────────────────────────────── */

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #F59E0B, #EF6C00);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55);
    backdrop-filter: blur(4px);
    animation: badgePulse 2.4s ease-in-out infinite;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55);
    }
    50% {
        box-shadow: 0 4px 22px rgba(245, 158, 11, 0.85), 0 0 0 5px rgba(245, 158, 11, 0.12);
    }
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.featured-blog-post:hover .featured-post-image img {
    transform: scale(1.04);
}

.featured-post-content {
    display: flex;
    flex-direction: column;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.category-pill {
    background: var(--as-amber-bg);
    border: 1px solid var(--as-amber-border);
    color: var(--as-amber-dark);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.date-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--as-text3);
}

.featured-post-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--as-blue);
    margin-bottom: 18px;
    letter-spacing: -0.025em;
}

.featured-post-excerpt {
    font-size: 15.5px;
    line-height: 1.72;
    color: var(--as-text2);
    margin-bottom: 28px;
}

.read-article-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--as-blue);
    transition: color 0.2s ease;
}

.read-article-link i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.featured-blog-post:hover .read-article-link {
    color: var(--as-amber);
}

.featured-blog-post:hover .read-article-link i {
    transform: translateX(5px);
}

/* Section divider between featured & grid */

.listing-section-divider {
    height: 1px;
    background: var(--as-border);
    margin-bottom: 56px;
}

/* ═══════════════════════════════════════════════════════
   SEARCH BAR + CATEGORY FILTERS
═══════════════════════════════════════════════════════ */

.blog-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

/* Search bar */
.blog-search-form {
    display: flex;
    align-items: center;
    position: relative;
    background: var(--as-white);
    border: 1.5px solid var(--as-border);
    border-radius: 100px;
    padding: 0 20px;
    height: 52px;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    max-width: 580px;
}

.blog-search-form:focus-within {
    border-color: var(--as-blue);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.10);
}

.blog-search-icon {
    font-size: 16px;
    color: var(--as-text3);
    flex-shrink: 0;
    pointer-events: none;
}

.blog-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--as-text);
}

.blog-search-input::placeholder {
    color: var(--as-text3);
}

.blog-search-clear {
    color: var(--as-text3);
    font-size: 16px;
    text-decoration: none !important;
    border: none !important;
    flex-shrink: 0;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.blog-search-clear:hover {
    color: var(--as-amber-dark);
    border: none !important;
}

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

.blog-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--as-text2);
    background: var(--as-white);
    border: 1.5px solid var(--as-border);
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.blog-cat-tab:hover {
    border-color: var(--as-blue);
    color: var(--as-blue);
    background: var(--as-blue-bg);
    border-color: var(--as-blue-border);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.blog-cat-tab.active {
    background: var(--as-blue);
    border-color: var(--as-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.blog-cat-tab.active:hover {
    background: var(--as-blue);
    color: #fff;
    transform: translateY(-1px);
}

.blog-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0,0,0,0.10);
    line-height: 1;
}

.blog-cat-tab.active .blog-cat-count {
    background: rgba(255,255,255,0.25);
}

/* ── Post Grid ────────────────────────────────────────── */

.stripe-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Upgraded card ─────────────────────────────────────── */

.stripe-grid-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    background: var(--as-white);
    border: 1px solid var(--as-border);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Left-accent bar on hover */
.stripe-grid-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--as-amber) 0%, var(--as-blue) 100%);
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.stripe-grid-card:hover::before {
    opacity: 1;
}

.stripe-grid-card:hover {
    box-shadow: 0 12px 36px rgba(30, 58, 138, 0.14);
    transform: translateY(-4px);
    border-color: var(--as-blue-border);
}

/* Card image */
.card-image-wrap {
    height: 240px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--as-blue-bg);
    position: relative;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.stripe-grid-card:hover .card-image-wrap img {
    transform: scale(1.07);
}

/* Category badge floating over image */
.card-cat-overlay {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 10px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Card content */
.card-content-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 20px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.card-meta .date-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--as-text3);
}

.card-meta .date-text i {
    font-size: 10px;
    color: var(--as-amber);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--as-blue);
    margin-bottom: 10px;
    transition: color 0.2s ease;
    letter-spacing: -0.014em;
}

.stripe-grid-card:hover .card-title {
    color: var(--as-amber-dark);
}

.card-excerpt {
    font-size: 13.5px;
    line-height: 1.68;
    color: var(--as-text3);
    flex: 1;
    margin-bottom: 16px;
}

/* Read More CTA */
.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--as-blue);
    transition: color 0.2s ease, gap 0.2s ease;
    margin-top: auto;
    border-top: 1px solid var(--as-border);
    padding-top: 14px;
}

.card-read-more i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.stripe-grid-card:hover .card-read-more {
    color: var(--as-amber-dark);
    gap: 10px;
}

.stripe-grid-card:hover .card-read-more i {
    transform: translateX(4px);
}

/* Fallback placeholder */

.fallback-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--as-blue-bg);
    font-size: 2.5rem;
    color: var(--as-blue);
    opacity: 0.2;
}

/* Fix featured post — now an <a> tag */
.featured-blog-post {
    text-decoration: none !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.featured-post-image {
    border-radius: 16px;
    overflow: hidden;
    height: 440px;
    border: 1px solid var(--as-border);
    background: var(--as-white);
    box-shadow: 0 4px 24px rgba(30, 58, 138, 0.09);
    position: relative;
}

.featured-post-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(30,58,138,0.18) 100%);
    pointer-events: none;
    transition: opacity 0.35s ease;
    opacity: 0;
}

.featured-blog-post:hover .featured-post-img-overlay {
    opacity: 1;
}

.featured-post-meta .date-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.featured-post-meta .date-text i {
    font-size: 11px;
    color: var(--as-amber);
}

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */

.blog-pagination {
    margin-top: 72px;
    display: flex;
    justify-content: center;
}

.blog-pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── All page number items ────────────────────────────── */

.blog-pagination a.page-numbers,
.blog-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--as-text2);
    background: var(--as-white);
    border: 1.5px solid var(--as-border);
    text-decoration: none;
    transition: all 0.22s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.01em;
}

/* ── Hover state ─────────────────────────────────────── */

.blog-pagination a.page-numbers:hover {
    background: var(--as-blue-bg);
    border-color: var(--as-blue-border);
    color: var(--as-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.12);
}

/* ── Current / active page ───────────────────────────── */

.blog-pagination span.current {
    background: var(--as-blue);
    border-color: var(--as-blue);
    color: var(--as-white);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.35);
    transform: translateY(-1px);
}

/* ── Ellipsis dots ───────────────────────────────────── */

.blog-pagination span.dots {
    background: transparent;
    border-color: transparent;
    color: var(--as-text3);
    min-width: 32px;
    padding: 0;
    box-shadow: none;
    letter-spacing: 0.08em;
    pointer-events: none;
}

/* ── Prev / Next buttons ─────────────────────────────── */

.blog-pagination a.prev.page-numbers,
.blog-pagination a.next.page-numbers {
    gap: 7px;
    padding: 0 18px;
    border-radius: 12px;
    color: var(--as-blue);
    border-color: var(--as-blue-border);
    background: var(--as-blue-bg);
    font-size: 13px;
}

.blog-pagination a.prev.page-numbers i,
.blog-pagination a.next.page-numbers i {
    font-size: 12px;
    line-height: 1;
}

.blog-pagination a.prev.page-numbers:hover,
.blog-pagination a.next.page-numbers:hover {
    background: var(--as-blue);
    border-color: var(--as-blue);
    color: var(--as-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.28);
}

/* ── Prev arrow slides left on hover ─────────────────── */

.blog-pagination a.prev.page-numbers:hover i {
    transform: translateX(-3px);
    transition: transform 0.2s ease;
}

/* ── Next arrow slides right on hover ───────────────── */

.blog-pagination a.next.page-numbers:hover i {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* ── Separator between prev/next and numbers ─────────── */

.blog-pagination .nav-links::before,
.blog-pagination .nav-links::after {
    display: none;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 480px) {
    .blog-pagination .nav-links {
        gap: 4px;
    }

    .blog-pagination a.page-numbers,
    .blog-pagination span.page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        border-radius: 10px;
    }

    .blog-pagination a.prev.page-numbers span,
    .blog-pagination a.next.page-numbers span {
        display: none; /* hide "Prev"/"Next" text on mobile, keep arrows */
    }

    .blog-pagination a.prev.page-numbers,
    .blog-pagination a.next.page-numbers {
        padding: 0 12px;
    }
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE — PREMIUM DESIGN
═══════════════════════════════════════════════════════ */

.blog-empty {
    text-align: center;
    padding: 100px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Animated icon ring */
.blog-empty i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(245, 158, 11, 0.08));
    border: 2px solid rgba(30, 58, 138, 0.15);
    font-size: 2.4rem;
    color: var(--as-blue);
    margin-bottom: 32px;
    position: relative;
    animation: emptyPulse 3s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.15);
}

@keyframes emptyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.15); }
    50%       { box-shadow: 0 0 0 14px rgba(30, 58, 138, 0); }
}

/* Eyebrow badge */
.blog-empty::before {
    content: '✦ Coming Soon';
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--as-amber-dark);
    background: var(--as-amber-bg);
    border: 1px solid var(--as-amber-border);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    order: -1;
}

.blog-empty h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.22;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--as-blue) 0%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-empty p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--as-text2);
    max-width: 420px;
    margin-bottom: 36px;
}

/* CTA Button */
.blog-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--as-blue);
    color: #fff !important;
    text-decoration: none !important;
    border: 2px solid var(--as-blue) !important;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.22);
}

.blog-empty-cta:hover {
    background: #2563EB !important;
    border-color: #2563EB !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(30, 58, 138, 0.32);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .stripe-post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .featured-blog-post {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
    }

    .featured-post-image {
        height: 340px;
    }

    .blog-search-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-listing-container {
        margin: 40px auto 80px;
        padding: 0 16px;
    }

    .stripe-post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-controls {
        gap: 12px;
        margin-bottom: 36px;
    }

    .blog-search-form {
        height: 46px;
    }

    .blog-cat-tabs {
        gap: 6px;
    }

    .card-image-wrap {
        height: 200px;
    }

    .single-blog-post {
        padding: 0 0 60px;
    }

    .wp-post-content {
        font-size: 16px;
    }

    .wp-post-content h2 {
        font-size: 1.35rem;
        margin: 38px 0 13px;
    }

    .wp-post-content h3 {
        font-size: 1.15rem;
    }

    .wp-post-content blockquote {
        padding: 14px 18px;
        font-size: 16px;
    }

    .wp-post-content pre {
        padding: 16px 18px;
        font-size: 13px;
    }

    .post-share-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .wp-post-title {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .post-meta-bar {
        gap: 6px;
    }

    .wp-post-content {
        font-size: 15.5px;
    }

    .wp-post-content table {
        font-size: 13px;
    }

    .wp-post-content th,
    .wp-post-content td {
        padding: 9px 11px;
    }

    .card-content-wrap {
        padding: 16px;
    }
}

/* ═══════════════════════════════════════════════════════
   NEWSLETTER SECTION
═══════════════════════════════════════════════════════ */

.blog-newsletter-section {
    margin: 72px 0 0;
    padding: 56px 48px;
    background: linear-gradient(135deg, #0f244d 0%, #1E3A8A 55%, #1e52b8 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid overlay */
.blog-newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

/* Glowing orb accent */
.blog-newsletter-section::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(245,158,11,.12);
    filter: blur(60px);
    top: -80px;
    right: -60px;
    pointer-events: none;
}

.blog-newsletter-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ── Left copy ──────────────────────────────────────── */

.blog-nl-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(245,158,11,.18);
    border: 1px solid rgba(245,158,11,.35);
    color: #F59E0B;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.blog-nl-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.18 !important;
    letter-spacing: -.025em !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

.blog-nl-sub {
    font-size: 15px;
    color: rgba(255,255,255,.70);
    line-height: 1.7;
    margin-bottom: 24px;
}

.blog-nl-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-nl-perks li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.80);
}

.blog-nl-perks li::before {
    display: none; /* override any global li::before */
}

.blog-nl-perks li i {
    color: #4ade80;
    font-size: 15px;
    flex-shrink: 0;
}

/* ── Right form ─────────────────────────────────────── */

.blog-nl-form-wrap {
    position: relative;
    z-index: 2;
}

/* ── Mailchimp embed overrides ──────────────────────── */

#mc_embed_signup {
    --primary:       #1E3A8A;
    --primary-mid:   #2a52c9;
    --primary-light: #3B82F6;
    --accent:        #F59E0B;
    --accent-dark:   #D97706;
    --white:         #FFFFFF;
    --bg:            #F8F9FA;
    --bg-alt:        #EFF6FF;
    --text:          #1F2937;
    --text-muted:    #6B7280;
    --border:        #E5E7EB;

    background: transparent !important;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
    width: 100% !important;
    max-width: 100% !important;
}

#mc_embed_signup form {
    background: #fff !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,.18) !important;
    margin: 0 !important;
}

#mc_embed_signup form::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #F59E0B 0%, #f97316 100%);
}

#mc_embed_signup_scroll {
    padding: 1.75rem 1.75rem 1.25rem !important;
}

#mc_embed_signup h2 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    letter-spacing: -.01em;
    margin: 0 0 .2rem !important;
    padding: 0 !important;
}

#mc_embed_signup p.mc-subtext {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 1.2rem;
    line-height: 1.5;
}

#mc_embed_signup .indicates-required {
    font-size: 11px !important;
    color: var(--text-muted) !important;
    text-align: right;
    margin: 0 0 .85rem !important;
}

#mc_embed_signup .asterisk {
    color: #D97706 !important;
    font-size: 13px !important;
}

#mc_embed_signup .mc-field-group {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: .9rem !important;
}

#mc_embed_signup .mc-field-group label {
    display: block;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 6px !important;
}

#mc_embed_signup .mc-field-group input {
    width: 100% !important;
    height: 46px !important;
    background: var(--bg-alt) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 0 1rem !important;
    font-size: 14px !important;
    color: var(--text) !important;
    font-family: inherit !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    box-sizing: border-box !important;
}

#mc_embed_signup .mc-field-group input:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15) !important;
    background: var(--white) !important;
}

#mc_embed_signup .mc-field-group input::placeholder {
    color: #b0bac9 !important;
}

#mc_embed_signup .optionalParent,
#mc_embed_signup div.clear.foot {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#mc_embed_signup div.clear.foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .75rem !important;
    margin-top: .4rem !important;
}

#mc_embed_signup #mc-embedded-subscribe {
    width: auto !important;
    height: 46px !important;
    padding: 0 1.5rem !important;
    background: #F59E0B !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: .02em;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: background .2s, transform .1s !important;
    flex-shrink: 0;
    margin: 0 !important;
}

#mc_embed_signup #mc-embedded-subscribe:hover {
    background: #D97706 !important;
    transform: translateY(-1px) !important;
}

#mc_embed_signup #mc-embedded-subscribe:active {
    transform: scale(.97) !important;
}

#mc_embed_signup .optionalParent p {
    margin: 0 !important;
}

#mc_embed_signup .refferal_badge {
    opacity: .4;
    height: 26px !important;
    width: auto !important;
}

#mc_embed_signup #mce-responses {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: both;
}

#mc_embed_signup .response {
    margin: .6rem 0 0 !important;
    padding: .7rem 1rem !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
}

#mc_embed_signup #mce-success-response {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #6ee7b7 !important;
}

#mc_embed_signup #mce-error-response {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
}

#mc_embed_signup div[aria-hidden="true"] {
    position: absolute !important;
    left: -5000px !important;
}

#mc_embed_signup_scroll::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--border);
    margin: 1.2rem 0 .9rem;
}

#mc_embed_signup .mc-privacy {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: .9rem;
    line-height: 1.5;
}

#mc_embed_signup .mc-privacy a {
    color: var(--primary-light);
    text-decoration: none;
}

#mc_embed_signup .mc-privacy a:hover {
    text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 900px) {
    .blog-newsletter-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .blog-newsletter-section {
        padding: 44px 32px;
    }
}

@media (max-width: 600px) {
    .blog-newsletter-section {
        padding: 36px 20px;
        border-radius: 16px;
        margin: 52px 0 0;
    }
    .blog-nl-title {
        font-size: 1.7rem !important;
    }
}