/* ============================================================
   PathwayCompass â€” Articles / Blog styles
   Shared by articles.html (hub) and articles/*.html (posts)
   Self-contained; complements Tailwind base + responsive.css.
   All article classes are namespaced (art-*, article-*, cat-*)
   so nothing leaks into the rest of the site.
   ============================================================ */

:root {
    /* legacy tokens â€” used by the shared nav/footer markup */
    --navy: #1e3a8a;
    --sage: #10b981;
    --cream: #fefce8;
    --coral: #f97316;
    --slate: #64748b;
    --light-blue: #e0f2fe;

    /* modern article tokens */
    --art-bg: #ffffff;
    --art-bg-soft: #f8fafc;
    --art-text: #0f172a;
    --art-text-soft: #475569;
    --art-text-faint: #94a3b8;
    --art-border: #e8edf3;
    --art-accent: #ff6b2b;
    --art-gradient-hero: linear-gradient(160deg, #fff7ed 0%, #f0f9ff 35%, #f5f3ff 65%, #ecfdf5 100%);
    --art-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --art-shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07);
    --art-shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.12);
    --art-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --art-ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --art-nav-height: 92px;
    --art-max: 1180px;

    /* category palette */
    --cat-study: #8b5cf6;
    --cat-study-bg: #f5f3ff;
    --cat-tech: #0891b2;
    --cat-tech-bg: #ecfeff;
    --cat-registration: #ea580c;
    --cat-registration-bg: #fff1eb;
    --cat-career: #2563eb;
    --cat-career-bg: #eff6ff;
    --cat-wellbeing: #059669;
    --cat-wellbeing-bg: #ecfdf5;
    --cat-faith: #d97706;
    --cat-faith-bg: #fffbeb;
    --cat-rm: #e11d48;
    --cat-rm-bg: #fff1f2;
}

/* ---- base ---- */
.articles-page {
    font-family: 'DM Sans', 'Inter', sans-serif;
    color: var(--art-text);
    background: var(--art-bg);
    -webkit-font-smoothing: antialiased;
}

.articles-page ::selection {
    background: rgba(255, 107, 43, 0.18);
}

.art-container {
    width: 100%;
    max-width: var(--art-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   HERO (hub)
   ===================================================== */
.art-hero {
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--art-nav-height) + 30px);
    padding-bottom: 48px;
    background: var(--art-gradient-hero);
    text-align: center;
}

.art-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    animation: art-blob 24s ease-in-out infinite alternate;
}

.art-hero-blob.b1 {
    width: 420px;
    height: 420px;
    top: -12%;
    left: -6%;
    background: radial-gradient(circle, rgba(255, 107, 43, 0.22), transparent 70%);
}

.art-hero-blob.b2 {
    width: 360px;
    height: 360px;
    top: 8%;
    right: -4%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 70%);
    animation-delay: -8s;
}

@keyframes art-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(24px, -18px) scale(1.06);
    }
}

.art-hero-inner {
    position: relative;
    z-index: 2;
}

.art-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--art-accent);
    margin-bottom: 14px;
}

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

@keyframes art-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.6);
    }
}

.art-hero h1 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--art-text);
    margin: 0 auto 16px;
    max-width: 20ch;
}

.art-hero h1 .grad {
    background: linear-gradient(135deg, #ff6b2b, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.art-hero p.art-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--art-text-soft);
    max-width: 650px;
    margin: 0 auto 24px;
}

.art-hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.art-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--art-text-soft);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--art-border);
    padding: 6px 14px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* =====================================================
   COMPACT FEATURED ARTICLE CARD
   ===================================================== */
.art-featured-wrapper {
    width: 100%;
}

.art-featured-compact {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid var(--art-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--art-shadow-md);
    transition: transform 0.35s var(--art-ease-expo), box-shadow 0.35s ease;
}

.art-featured-compact:hover {
    transform: translateY(-4px);
    box-shadow: var(--art-shadow-lg);
}

.art-featured-compact-media {
    position: relative;
    height: 100%;
    min-height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #f5f3ff);
}

.art-featured-compact-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--art-ease-expo);
}

.art-featured-compact:hover .art-featured-compact-media img {
    transform: scale(1.05);
}

.art-featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff6b2b, #ea580c);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.35);
}

.art-featured-compact-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.art-featured-compact-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.28;
    color: var(--art-text);
    margin: 0 0 10px;
}

.art-featured-compact-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.art-featured-compact-title a:hover {
    color: var(--art-accent);
}

.art-featured-compact-desc {
    color: var(--art-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.art-featured-compact-foot {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Primary Button */
.art-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 9999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b2b, #ea580c);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 107, 43, 0.28);
    transition: all 0.25s var(--art-ease-expo);
}

.art-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 43, 0.38);
    color: #ffffff;
}

/* Secondary Button */
.art-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--art-text);
    background: var(--art-bg-soft);
    border: 1.5px solid var(--art-border);
    cursor: pointer;
    transition: all 0.22s ease;
}

.art-btn-secondary:hover {
    border-color: var(--art-text);
    background: #ffffff;
}

/* Bookmark Button */
.art-bookmark-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--art-border);
    background: #ffffff;
    color: var(--art-text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s var(--art-ease-expo);
}

.art-bookmark-btn:hover {
    border-color: var(--art-accent);
    color: var(--art-accent);
    transform: scale(1.08);
}

.art-bookmark-btn.is-saved {
    background: #fff7ed;
    border-color: var(--art-accent);
    color: var(--art-accent);
}

.art-bookmark-btn.is-saved i {
    font-weight: 900;
}

/* =====================================================
   MAIN HUB LAYOUT (SIDEBAR + CONTENT GRID)
   ===================================================== */
.art-hub-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.art-main-content {
    min-width: 0;
}

/* SIDEBAR — stays anchored while the article cards scroll beneath it */
.art-sidebar {
    align-self: start;
    position: sticky;
    top: 88px;
    z-index: 4;
}

/* STICKY FIX — responsive.css sets `overflow-x: hidden` on every <main>/<section>,
   which forces `overflow-y` to compute to `auto`, turning those elements into
   scroll containers that silently break `position: sticky` for the filters.
   `overflow-x: clip` still prevents horizontal scroll but does NOT create a
   scroll container, so the sticky filters work as intended. */
body.articles-page,
.articles-page main,
.articles-page section {
    overflow-x: clip;
    overflow-y: visible;
}

/* SIDEBAR STYLES */
.art-sidebar-inner {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    border: 1px solid var(--art-border);
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--art-shadow-sm);
    overflow: hidden;
}

.art-filter-card {
    padding: 0;
    background: transparent;
    border: none;
}

.art-filter-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--art-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.art-filter-group {
    margin-bottom: 12px;
}

.art-filter-group:last-child {
    margin-bottom: 0;
}

.art-filter-label {
    font-size: 0.72rem;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.art-search-input-wrapper {
    position: relative;
    width: 100%;
}

.art-search-input-wrapper input {
    width: 100%;
    padding: 9px 36px 9px 38px;
    border-radius: 12px;
    border: 1.5px solid var(--art-border);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.84rem;
    color: var(--art-text);
    background: var(--art-bg-soft);
    transition: all 0.22s ease;
    outline: none;
}

.art-search-input-wrapper input:focus {
    border-color: var(--art-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.15);
}

.art-search-input-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--art-text-faint);
    font-size: 0.85rem;
    pointer-events: none;
}

.art-search-input-wrapper .search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--art-text-faint);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;

}

.art-search-input-wrapper .search-clear-btn:hover {
    color: var(--art-text);
}

/* Category Filter List */
.art-filter-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--art-text-faint);
    margin-bottom: 6px;
    display: block;
}

.art-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.art-cat-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--art-text-soft);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.art-cat-item span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.art-cat-item .count-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    background: var(--art-bg-soft);
    color: var(--art-text-faint);
    transition: all 0.2s ease;
}

.art-cat-item:hover {
    background: var(--art-bg-soft);
    color: var(--art-text);
}

.art-cat-item.active {
    background: #fff7ed;
    border-color: rgba(255, 107, 43, 0.25);
    color: var(--art-accent);
}

.art-cat-item.active .count-badge {
    background: var(--art-accent);
    color: #ffffff;
}

/* Radio & Checkbox Groups */
.art-radio-group,
.art-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Reading Time — kept compact (single row of 4) so the sidebar stays short
   enough to show Status & Saved without an inner scrollbar. */
.art-radio-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.art-radio-row .art-radio-item {
    flex-direction: column;
    gap: 3px;
    padding: 6px 3px;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.15;
}

.art-radio-row .art-radio-item input {
    width: 14px;
    height: 14px;
}

.art-radio-item,
.art-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--art-text-soft);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    padding: 7px 8px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: #fcfdff;
}

.art-radio-item:hover,
.art-checkbox-item:hover {
    color: var(--art-text);
}

.art-radio-item input,
.art-checkbox-item input {
    accent-color: var(--art-accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* TOOLBAR BAR */
.art-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 88px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--art-border);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: var(--art-shadow-sm);
}

/* On small screens the mobile language bar + nav are taller, so pin the
   toolbar lower to keep it clear of the fixed navigation. */
@media (max-width: 767px) {
    .art-toolbar {
        top: 112px;
    }
}

.art-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--art-text);
    background: var(--art-bg-soft);
    border: 1px solid var(--art-border);
    cursor: pointer;
}

.art-sort-select {
    appearance: none;
    padding: 8px 34px 8px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--art-border);
    background: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--art-text-soft);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.art-sort-select:focus,
.art-sort-select:hover {
    border-color: var(--art-accent);
    color: var(--art-text);
}

.sort-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: var(--art-text-faint);
    pointer-events: none;
}

.art-view-toggle {
    display: flex;
    align-items: center;
    background: var(--art-bg-soft);
    border: 1px solid var(--art-border);
    border-radius: 10px;
    padding: 3px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--art-text-faint);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: #ffffff;
    color: var(--art-accent);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* ACTIVE FILTER TAGS */
.art-active-filters-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 12px;
}

.art-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fff7ed;
    color: var(--art-accent);
    border: 1px solid rgba(255, 107, 43, 0.3);
    padding: 4px 10px;
    border-radius: 9999px;
}

.art-active-tag button {
    background: none;
    border: none;
    color: var(--art-accent);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
}

/* GRID LIST MODE STYLING */
.art-grid.is-list-view {
    grid-template-columns: 1fr !important;
}

.art-grid.is-list-view .art-card {
    flex-direction: row;
    align-items: center;
}

.art-grid.is-list-view .art-card-media {
    width: 240px;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .art-grid.is-list-view .art-card {
        flex-direction: column;
    }

    .art-grid.is-list-view .art-card-media {
        width: 100%;
    }
}

/* EMPTY STATE */
.art-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed var(--art-border);
    border-radius: 20px;
    margin-top: 10px;
}

.art-empty-state .empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff7ed;
    color: var(--art-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px;
}

.art-empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--art-text);
    margin: 0 0 8px;
}

.art-empty-state p {
    color: var(--art-text-soft);
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* MOBILE FILTER DRAWER */
.art-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.08);
    z-index: 99;
    display: flex;
    justify-content: flex-end;
}

/* Keep the mobile filter drawer reliably hidden regardless of the Tailwind
   CDN load timing. Tailwind injects its `.hidden` utility at runtime at the
   end of <head>; before that runs (or if it fails to load) the drawer would
   otherwise flash in from the right and stay stuck until a refresh. This rule
   is higher-specificity and lives in a real stylesheet, so it always wins. */
.art-drawer-overlay.hidden {
    display: none !important;
}

/* The drawer is a mobile-only affordance (its trigger is lg:hidden); never
   allow it to appear on desktop. */
@media (min-width: 1024px) {
    .art-drawer-overlay {
        display: none !important;
    }
}

.art-drawer-content {
    width: 100%;
    max-width: 360px;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
    animation: drawer-slide 0.3s var(--art-ease-expo);
}

@keyframes drawer-slide {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.art-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--art-border);
}

.art-drawer-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;

}

.art-drawer-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--art-text-faint);
    cursor: pointer;
}

.art-drawer-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.art-drawer-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--art-border);
    display: flex;
    gap: 12px;
    background: var(--art-bg-soft);
}

/* Search Term Highlight Mark */
mark.art-highlight {
    background: rgba(255, 107, 43, 0.22);
    color: var(--art-text);
    padding: 0 2px;
    border-radius: 3px;
}

/* Responsive adjust for compact featured card */
@media (max-width: 900px) {
    .art-hub-layout {
        grid-template-columns: 1fr;
    }

    .art-featured-compact {
        grid-template-columns: 1fr;
    }

    .art-featured-compact-media {
        min-height: 200px;
    }

    .art-featured-compact-body {
        padding: 24px;
    }
}

/* =====================================================
   CTA BAND & SECTION SPACING
   ===================================================== */
.art-cta-section {
    padding: 80px 0 96px;
    background: #ffffff;
    border-top: 1px solid var(--art-border);
}

.art-cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 56px 40px;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    box-shadow: var(--art-shadow-md);
}

.art-cta-band h2 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.01em;
    margin: 0 0 12px;
    color: #ffffff;
}

.art-cta-band p {
    color: #cbd5e1;
    max-width: 520px;
    margin: 0 auto 26px;
    line-height: 1.65;
}

.art-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 9999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b2b, #ea580c);
    box-shadow: 0 8px 24px rgba(255, 107, 43, 0.35);
    transition: transform 0.25s var(--art-ease-back);
}

.art-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    color: #ffffff;
}


/* =====================================================
   CARD GRID
   ===================================================== */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

/* Give the card list breathing room below the toolbar so cards don't touch
   the top filter bar. Higher specificity than the inline Tailwind `mt-4`. */
.art-main-content .art-grid {
    margin-top: 32px;
}

/* View More button */
.art-viewmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.art-viewmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: var(--art-text);
    background: #ffffff;
    border: 1.5px solid var(--art-border);
    border-radius: 9999px;
    padding: 13px 30px;
    cursor: pointer;
    box-shadow: var(--art-shadow-sm);
    transition: all 0.22s var(--art-ease-expo);
}

.art-viewmore-btn:hover {
    border-color: var(--art-accent);
    color: var(--art-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 107, 43, 0.18);
}

.art-viewmore-btn i {
    font-size: 0.85rem;
    transition: transform 0.22s ease;
}

.art-viewmore-btn:hover i {
    transform: translateY(2px);
}

.art-viewmore-count {
    font-weight: 500;
    color: var(--art-text-faint);
    font-size: 0.85rem;
}

.art-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--art-bg);
    border: 1px solid var(--art-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--art-shadow-sm);
    transition: transform 0.35s var(--art-ease-expo), box-shadow 0.35s ease, border-color 0.35s ease;
}

.art-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--art-shadow-lg);
    border-color: transparent;
}

.art-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.art-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--art-ease-expo);
}

.art-card:hover .art-card-media img {
    transform: scale(1.06);
}

.art-card-media .art-card-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: rgba(15, 23, 42, 0.16);
}

.art-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.art-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.art-card-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.22rem;
    line-height: 1.28;
    color: var(--art-text);
    margin: 0 0 10px;
    transition: color 0.25s ease;
}

.art-card:hover .art-card-body h3 {
    color: var(--art-accent);
}

.art-card-body p {
    color: var(--art-text-soft);
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

/* meta / indicators row */
.art-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--art-text-faint);
}

.art-meta .m {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.art-meta .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--art-text-faint);
    opacity: 0.6;
}

/* category badge */
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 9999px;
    line-height: 1;
}

.cat-badge i {
    font-size: 0.72rem;
}

.cat-study {
    background: var(--cat-study-bg);
    color: var(--cat-study);
}

.cat-tech {
    background: var(--cat-tech-bg);
    color: var(--cat-tech);
}

.cat-registration {
    background: var(--cat-registration-bg);
    color: var(--cat-registration);
}

.cat-career {
    background: var(--cat-career-bg);
    color: var(--cat-career);
}

.cat-wellbeing {
    background: var(--cat-wellbeing-bg);
    color: var(--cat-wellbeing);
}

.cat-faith {
    background: var(--cat-faith-bg);
    color: var(--cat-faith);
}

.cat-rm {
    background: var(--cat-rm-bg);
    color: var(--cat-rm);
}

/* coming soon state */
.art-card.is-soon {
    cursor: default;
}

.art-card.is-soon .art-card-media {
    filter: grayscale(0.25);
}

.art-soon-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.art-card.is-soon:hover {
    transform: none;
    box-shadow: var(--art-shadow-sm);
    border-color: var(--art-border);
}

.art-card.is-soon:hover .art-card-media img {
    transform: none;
}

.art-card.is-soon:hover .art-card-body h3 {
    color: var(--art-text);
}

/* read-more link */
.art-readmore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--art-accent);
    text-decoration: none;
}

.art-readmore i {
    transition: transform 0.25s ease;
}

.art-featured:hover .art-readmore i,
.art-card:hover .art-readmore i {
    transform: translateX(5px);
}

/* =====================================================
   NEWSLETTER / CTA BAND
   ===================================================== */
.art-cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 52px 40px;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
}

.art-cta-band h2 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.01em;
    margin: 0 0 12px;
}

.art-cta-band p {
    color: #cbd5e1;
    max-width: 520px;
    margin: 0 auto 26px;
    line-height: 1.65;
}

.art-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 9999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #ff6b2b, #ea580c);
    box-shadow: 0 8px 24px rgba(255, 107, 43, 0.35);
    transition: transform 0.25s var(--art-ease-back);
}

.art-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

/* reveal on scroll */
.art-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--art-ease-expo), transform 0.7s var(--art-ease-expo);
}

.art-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   ARTICLE (post) PAGE
   ===================================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 60;
    background: linear-gradient(90deg, #ff6b2b, #f59e0b);
    transition: width 0.1s linear;
}

.article-hero {
    position: relative;
    padding-top: calc(var(--art-nav-height) + 32px);
    padding-bottom: 30px;
    background: var(--art-gradient-hero);
    overflow: hidden;
}

.article-shell {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    color: var(--art-text-faint);
    margin-bottom: 22px;
}

.article-breadcrumb a {
    color: var(--art-text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: var(--art-accent);
}

.article-breadcrumb i {
    font-size: 0.6rem;
    opacity: 0.6;
}

.article-title {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(2.1rem, 6vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: 0.01em;
    color: var(--art-text);
    margin: 16px 0 20px;
}

.article-standfirst {
    font-size: 1.18rem;
    line-height: 1.65;
    color: var(--art-text-soft);
    margin: 0 0 26px;
}

.article-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 30px;
}

.article-byline .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b2b, #f59e0b);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    flex-shrink: 0;
}

.article-byline .who {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--art-text);
    font-size: 0.95rem;
    line-height: 1.3;
}

.article-byline .who span {
    display: block;
    font-weight: 500;
    color: var(--art-text-faint);
    font-size: 0.82rem;
}

.article-figure {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    transform: translateY(30px);
}

.article-figure img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: var(--art-shadow-lg);
    display: block;
}

.article-figure figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--art-text-faint);
    margin-top: 12px;
}

/* Inline mid-article figure — kept modest so it doesn't dominate the read */
.article-figure.is-inline {
    max-width: 620px;
    padding: 0;
    transform: none;
    margin: 2.4rem auto;
}

.article-figure.is-inline img {
    border-radius: 16px;
    box-shadow: var(--art-shadow-md);
    max-height: 380px;
    object-fit: cover;
}

/* body */
.article-body {
    padding: 64px 0 20px;
}

.article-body .article-shell>* {
    margin-bottom: 1.5rem;
}

.article-body p {
    font-size: 1.09rem;
    line-height: 1.85;
    color: #334155;
}

.article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.25;
    color: var(--art-text);
    margin-top: 2.6rem;
    scroll-margin-top: 110px;
}

.article-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.28rem;
    color: var(--art-text);
    margin-top: 1.8rem;
}

.article-body a {
    color: var(--art-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.article-body ul,
.article-body ol {
    padding-left: 1.4rem;
    color: #334155;
    font-size: 1.06rem;
    line-height: 1.8;
}

.article-body li {
    margin-bottom: 0.6rem;
}

.article-body li::marker {
    color: var(--art-accent);
    font-weight: 700;
}

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

.article-body blockquote {
    margin: 2rem 0;
    padding: 6px 0 6px 26px;
    border-left: 4px solid var(--art-accent);
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--art-text);
}

/* callout boxes */
.callout {
    border-radius: 18px;
    padding: 24px 26px;
    margin: 2.2rem 0;
    border: 1px solid var(--art-border);
    background: var(--art-bg-soft);
}

.callout .callout-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.callout p:last-child,
.callout ul:last-child {
    margin-bottom: 0;
}

.callout.tip {
    background: var(--cat-wellbeing-bg);
    border-color: rgba(5, 150, 105, 0.2);
}

.callout.tip .callout-head {
    color: var(--cat-wellbeing);
}

.callout.byu {
    background: var(--cat-career-bg);
    border-color: rgba(37, 99, 235, 0.18);
}

.callout.byu .callout-head {
    color: var(--cat-career);
}

.callout.key {
    background: var(--cat-registration-bg);
    border-color: rgba(234, 88, 12, 0.18);
}

.callout.key .callout-head {
    color: var(--cat-registration);
}

.callout ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #334155;
}

/* table of contents */
.article-toc {
    background: var(--art-bg-soft);
    border: 1px solid var(--art-border);
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 2.4rem;
}

.article-toc .toc-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--art-text-faint);
    margin-bottom: 12px;
}

.article-toc ol {
    margin: 0;
    padding-left: 1.1rem;
    counter-reset: toc;
}

.article-toc li {
    margin-bottom: 8px;
    font-size: 0.98rem;
}

.article-toc a {
    color: var(--art-text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-toc a:hover {
    color: var(--art-accent);
}

/* share + author + related */
.article-foot {
    padding: 20px 0 70px;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 26px 0;
    border-top: 1px solid var(--art-border);
    border-bottom: 1px solid var(--art-border);
    margin-bottom: 40px;
}

.article-share span.lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
    margin-right: 4px;
}

.article-share a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--art-border);
    color: var(--art-text-soft);
    text-decoration: none;
    transition: all 0.22s var(--art-ease-expo);
}

.article-share a:hover {
    transform: translateY(-3px);
    color: #fff;
    background: var(--art-accent);
    border-color: var(--art-accent);
}

.article-author {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--art-bg-soft);
    border: 1px solid var(--art-border);
    border-radius: 20px;
    padding: 26px;
    margin-bottom: 46px;
}

.article-author .avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #10b981);
    color: #fff;
    font-size: 1.4rem;
}

.article-author h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--art-text);
    margin: 0 0 4px;
}

.article-author p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--art-text-soft);
    margin: 0;
}

.article-related h2 {
    font-family: 'Bebas Neue', 'Anton', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 24px;
}

.article-back {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: var(--art-accent);
    text-decoration: none;
    margin: 44px auto 0;
    padding: 13px 28px;
    border-radius: 999px;
    box-shadow: var(--art-shadow-sm);
    transition: all 0.22s var(--art-ease-expo);
}

.article-back:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--art-shadow-md);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .art-featured {
        grid-template-columns: 1fr;
    }

    .art-featured-media {
        min-height: 220px;
    }

    .art-featured-body {
        padding: 30px 26px;
    }

    .art-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .art-section {
        padding: 46px 0;
    }

    .art-cta-band {
        padding: 40px 24px;
    }

    .article-author {
        flex-direction: column;
    }
}