/* =====================================================================
   article.css — shared styles for the Articles section (מאמרים)
   Powers both the hub (/articles/) and individual article pages.
   Built on the tokens defined in styles.css :root (navy/teal, glass,
   grid, shadows). Light theme, RTL. No new fonts — Heebo throughout.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Reading progress bar (article pages)
   --------------------------------------------------------------------- */
.reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    z-index: 1000;
    background: transparent;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-color), #14b8a6);
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.5);
    transition: width 0.1s linear;
}

/* ---------------------------------------------------------------------
   Shared hero shell — used by both the article hero and the hub hero
   (site-signature: light gradient + masked grid + teal glow + particles)
   --------------------------------------------------------------------- */
.article-hero,
.hub-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 40%, #F0F4F8 70%, #F5F3FF 100%);
}

.article-hero { padding: 150px 0 80px; }
.hub-hero { padding: 140px 0 64px; }

.article-hero::after,
.hub-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    z-index: 5;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 31, 63, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 31, 63, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75vw;
    height: 75vw;
    max-width: 820px;
    max-height: 820px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.13) 0%, rgba(13, 148, 136, 0.05) 42%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.article-hero .container,
.hub-hero .container {
    position: relative;
    z-index: 10;
}

/* Breadcrumb (scoped so it renders correctly even if base differs) */
.article-hero .breadcrumb,
.hub-hero .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.article-hero .breadcrumb a,
.hub-hero .breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; }
.article-hero .breadcrumb a:hover,
.hub-hero .breadcrumb a:hover { color: var(--text-primary); }
.article-hero .breadcrumb-separator,
.hub-hero .breadcrumb-separator { color: var(--text-secondary); opacity: 0.5; }
.article-hero .breadcrumb-current,
.hub-hero .breadcrumb-current { color: var(--text-primary); font-weight: 500; }

/* Hero content */
.article-hero-inner,
.hub-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 100px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.article-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: article-badge-pulse 2s ease-in-out infinite;
}

@keyframes article-badge-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
    50% { opacity: 0.5; box-shadow: 0 0 0 5px rgba(13, 148, 136, 0); }
}

.article-hero h1,
.hub-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    color: #001F3F;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.22;
    margin-bottom: 1.4rem;
}

/* Teal marker highlight on a key phrase in the H1 */
.mark-accent {
    color: var(--accent-color);
    background: linear-gradient(rgba(13, 148, 136, 0.16), rgba(13, 148, 136, 0.16)) no-repeat;
    background-position: 0 88%;
    background-size: 100% 0.32em;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.article-hero .article-lead,
.hub-hero .hub-intro {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: #334155;
    max-width: 680px;
    margin: 0 auto 2.25rem;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
}

/* Glass meta pill (date · read time · category) */
.article-meta {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
}

.article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.article-meta .meta-item svg {
    width: 17px;
    height: 17px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.article-meta .meta-divider {
    width: 1px;
    height: 18px;
    background: var(--border-color);
}

/* ---------------------------------------------------------------------
   Article body — single prose-first reading column
   --------------------------------------------------------------------- */
.article-body-section {
    position: relative;
    padding: 50px 0 90px;
    background: var(--bg-primary);
    overflow: hidden;
}

.article-body-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.article-body-section .container {
    position: relative;
    z-index: 1;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
}

/* Base prose typography — authors just write semantic HTML */
.article-content > p,
.article-content > ul,
.article-content > ol {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.article-content > p { margin: 0 0 1.35rem; }

.article-content .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.6rem;
}

.article-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 2.75rem 0 1rem;
}

.article-content h2::before {
    content: '';
    display: block;
    width: 38px;
    height: 3px;
    margin-bottom: 0.9rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-color), rgba(13, 148, 136, 0.35));
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.article-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}
.article-content a:hover { color: #0F766E; }

.article-content strong { color: var(--text-primary); font-weight: 700; }

.article-content ul,
.article-content ol {
    margin: 0 0 1.35rem;
    padding-inline-start: 1.5rem;
}
.article-content li { margin-bottom: 0.55rem; }
.article-content li::marker { color: var(--accent-color); }

.article-content blockquote {
    margin: 2rem 0;
    padding: 0.4rem 1.4rem;
    border-inline-start: 4px solid var(--accent-color);
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 500;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* Highlight span for inline emphasis (teal) */
.article-content .highlight { color: var(--accent-color); font-weight: 600; }

/* ---------------------------------------------------------------------
   Rich-block toolkit
   --------------------------------------------------------------------- */

/* Pull quote */
.pull-quote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    backdrop-filter: blur(6px);
}
.pull-quote::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color), rgba(13, 148, 136, 0.3));
}
.pull-quote::after {
    content: '\201D';
    position: absolute;
    top: -0.3em;
    inset-inline-start: 0.35em;
    font-size: 7rem;
    line-height: 1;
    color: rgba(13, 148, 136, 0.08);
    font-family: Georgia, 'Times New Roman', serif;
    pointer-events: none;
}
.pull-quote p {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}
.pull-quote cite {
    display: block;
    margin-top: 0.85rem;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 600;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

/* Callout boxes — tip (default) / warning / info */
.callout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 1.4rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-inline-start: 4px solid var(--accent-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.callout-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent-color);
}
.callout-icon svg { width: 22px; height: 22px; }
.callout-body { flex: 1; min-width: 0; }
.callout-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin: 0 0 0.35rem;
}
.callout-body p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.callout-warning { border-inline-start-color: #d97706; }
.callout-warning .callout-icon { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.callout-warning .callout-title { color: #b45309; }
.callout-info { border-inline-start-color: #2563eb; }
.callout-info .callout-icon { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.callout-info .callout-title { color: #1d4ed8; }

/* Key takeaways */
.takeaways {
    margin: 2.5rem 0;
    padding: 1.75rem;
    background: linear-gradient(150deg, rgba(13, 148, 136, 0.06), rgba(13, 148, 136, 0.02));
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--radius-lg);
}
.takeaways-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}
.takeaways-title svg { width: 22px; height: 22px; color: var(--accent-color); flex-shrink: 0; }
.takeaways ul { list-style: none; margin: 0; padding: 0; }
.takeaways li {
    position: relative;
    padding-inline-start: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::before {
    content: '\2713';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.05rem;
}

/* Q&A card (ported from the why-it pattern) */
.qa-card {
    position: relative;
    margin: 2.5rem 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.75rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.qa-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color), rgba(13, 148, 136, 0.3));
}
.qa-card::after {
    content: '\201D';
    position: absolute;
    top: -0.35em;
    inset-inline-start: 0.35em;
    font-size: 7rem;
    line-height: 1;
    color: rgba(13, 148, 136, 0.07);
    font-family: Georgia, 'Times New Roman', serif;
    pointer-events: none;
}
.qa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.35);
}
.qa-card .qa-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}
.qa-card .qa-tag svg { width: 15px; height: 15px; }
.qa-card .qa-question {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
}
.qa-card .qa-answer {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Figure + caption */
.article-figure { margin: 2.5rem 0; }
.article-figure img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: block;
}
.article-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Inline CTA — compact teal/navy banner mid-article */
.inline-cta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 2.75rem 0;
    padding: 1.6rem 1.85rem;
    background: linear-gradient(135deg, #001F3F 0%, #013157 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    isolation: isolate;
}
.inline-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(13, 148, 136, 0.35) 0%, transparent 50%);
    z-index: 0;
}
.inline-cta-text { position: relative; z-index: 1; }
.inline-cta-text strong {
    display: block;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.inline-cta-text span { color: rgba(255, 255, 255, 0.75); font-size: 0.98rem; }
.inline-cta .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   Closing CTA — full-bleed dark (matches the site CTA style)
   --------------------------------------------------------------------- */
.article-cta {
    position: relative;
    padding: 90px 0;
    background: #0a1628;
    overflow: hidden;
    isolation: isolate;
}
.article-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}
.article-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}
.article-cta .container { position: relative; z-index: 1; }
.article-cta-content { max-width: 760px; margin: 0 auto; text-align: center; }
.article-cta h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
.article-cta h2 .accent { color: #2dd4bf; }
.article-cta p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2.25rem;
}
.article-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.article-cta-buttons .btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.article-cta-buttons .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

/* Back-to-hub link below the article body */
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}
.article-back svg { width: 18px; height: 18px; }
.article-back:hover { gap: 0.85rem; color: #0F766E; }

/* Author byline (end of article) */
.article-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 0.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}
.article-byline-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow-sm);
}
.article-byline-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.article-byline-label { font-size: 0.8rem; color: var(--text-light); }
.article-byline-name { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.article-byline-role { font-size: 0.9rem; color: var(--text-secondary); }

/* =====================================================================
   HUB (/articles/) — listing
   ===================================================================== */
.posts-section {
    position: relative;
    padding: 36px 0 90px;
    background: var(--bg-primary);
    overflow: hidden;
}
.posts-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}
.posts-section .container { position: relative; z-index: 1; }

/* Category filter chips (optional) */
.cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.cat-chip {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}
.cat-chip:hover { border-color: rgba(13, 148, 136, 0.4); color: var(--accent-color); }
.cat-chip:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.cat-chip.is-active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: stretch;
}

/* Card */
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.25);
}
.post-card.is-hidden { display: none; }

/* Card cover — navy gradient mini-panel (echoes the why-it visual panel) */
.post-cover {
    position: relative;
    height: 168px;
    background: linear-gradient(150deg, #001F3F 0%, #02294a 55%, #013157 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.post-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 15% 90%, rgba(13, 148, 136, 0.15) 0%, transparent 45%);
}
.post-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}
.post-cover-icon {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    color: #fff;
}
.post-cover-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35)); }
.post-cover-icon svg [data-accent] { color: #2dd4bf; }
.post-cover .orbit-dot {
    position: absolute;
    z-index: 2;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.8);
}
.post-cover .orbit-dot.d1 { top: 20%; inset-inline-end: 18%; animation: floaty 4s ease-in-out infinite; }
.post-cover .orbit-dot.d2 { bottom: 22%; inset-inline-start: 16%; width: 6px; height: 6px; animation: floaty 5s ease-in-out 0.6s infinite; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-8px); opacity: 0.7; }
}

/* Optional cover image override */
.post-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Card body */
.post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem 1.5rem 1.4rem;
}
.post-cat {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: var(--accent-soft);
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 0.9rem;
}
.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
}
.post-title a { color: inherit; text-decoration: none; }
/* Stretched link: whole card is clickable, link stays focusable */
.post-title a::after { content: ''; position: absolute; inset: 0; z-index: 4; }
.post-card:hover .post-title { color: var(--accent-color); }
.post-excerpt {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
    flex: 1;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-light);
}
.post-meta .meta-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.post-meta svg { width: 14px; height: 14px; color: var(--accent-color); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-light); }

/* Featured card — wide, spans the full row */
.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-cover { width: 42%; height: auto; min-height: 280px; flex-shrink: 0; }
.post-card--featured .post-cover-icon { width: 88px; height: 88px; }
.post-card--featured .post-body { padding: 2.25rem; justify-content: center; }
.post-card--featured .post-title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.post-card--featured .post-excerpt { font-size: 1.05rem; }
.post-featured-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent-color);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 0.9rem;
}

/* Empty-state (no posts yet) */
.posts-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

/* ---------------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------------------
   Motion / accessibility guards
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .article-badge-dot,
    .post-cover .orbit-dot { animation: none; }
}

/* Respect the accessibility widget's "stop animations" toggle */
.a11y-no-animations .reveal { opacity: 1 !important; transform: none !important; }
.a11y-no-animations .hero-particles { display: none !important; }
.a11y-no-animations .article-badge-dot,
.a11y-no-animations .post-cover .orbit-dot { animation: none !important; }
.a11y-no-animations .post-card,
.a11y-no-animations .qa-card { transition: none !important; }
.a11y-no-animations .post-card:hover,
.a11y-no-animations .qa-card:hover { transform: none !important; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .post-card--featured { flex-direction: column; }
    .post-card--featured .post-cover { width: 100%; min-height: 0; height: 180px; }
}

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

@media (max-width: 480px) {
    .article-hero { padding: 130px 0 64px; }
    .hub-hero { padding: 124px 0 56px; }
    .article-meta { gap: 0.85rem; padding: 0.75rem 1.1rem; }
    .article-meta .meta-divider { display: none; }
    .pull-quote { padding: 1.4rem 1.4rem; }
    .pull-quote::after { font-size: 5.5rem; }
    .qa-card { padding: 1.3rem 1.3rem; }
    .qa-card::after { font-size: 5.5rem; }
    .inline-cta { flex-direction: column; align-items: flex-start; }
    .inline-cta .btn { width: 100%; justify-content: center; }
    .article-cta-buttons { flex-direction: column; }
    .article-cta-buttons .btn { width: 100%; justify-content: center; }
}
