/* ==========================================================================
   ITAA Theme — Main Stylesheet
   Brand Kit: Deep Regal Navy / Terracotta Stone / Warm Oyster
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts loaded via wp_enqueue_style in functions.php (parallel to this
   file) plus preconnect hints — avoids the @import request waterfall.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --color-bg: #F4F1ED;                            /* Warm Oyster — page background */
    --color-text: #111827;                           /* Charcoal Indigo — body copy */
    --color-text-light: #FFFFFF;                     /* Pure White — text on dark */
    --color-accent: #C85A32;                         /* Terracotta Stone — CTAs, links */
    --color-accent-hover: #E07547;                   /* Lighter Terracotta — hover */
    --color-navy: #0A192F;                           /* Deep Regal Navy — headers, dark bg */
    --color-navy-light: #152742;                     /* Lighter Navy — gradient, secondary */
    --color-slate: #857F7A;                          /* Slate Stone — muted, borders */
    --color-surface: #FFFFFF;                        /* Pure White — cards, panels */
    --color-footer-bg: #0A192F;                      /* Deep Regal Navy */
    --color-overlay-dark: rgba(10, 25, 47, 0.6);    /* Navy-based overlay */

    /* Pillar Colors (ITAA brand shades) */
    --color-pillar-injury: #C85A32;                  /* Terracotta */
    --color-pillar-trial: #0A192F;                   /* Navy */
    --color-pillar-disability: #857F7A;              /* Slate */
    --color-pillar-personal: #152742;                /* Lighter Navy */
    --color-pillar-default: #C85A32;                 /* Terracotta fallback */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --container-max: 1440px;
    --container-padding: 20px;
    --content-width: 1000px;
    --sidebar-width: 340px;
    --layout-gap: 60px;

    /* Border Radius — architectural aesthetic: 0 everywhere */
    --radius-card: 0;
    --radius-card-hero: 0;
    --radius-button: 0;
    --radius-badge: 0;

    /* Shadows — architectural offset style */
    --shadow-card: 4px 4px 0px rgba(10, 25, 47, 0.08);
    --shadow-hero-card: 4px 4px 0px #C85A32;
    --shadow-header: 0 1px 0 rgba(10, 25, 47, 0.1);
    --shadow-dropdown: 4px 4px 0px rgba(10, 25, 47, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slider: 0.5s ease-in-out;

    /* Z-index layers */
    --z-header: 99;
    --z-dropdown: 100;
    --z-mobile-overlay: 998;
    --z-mobile-drawer: 999;
}

/* --------------------------------------------------------------------------
   CSS Reset / Normalize
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 29px;
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    /* Subtle architectural noise texture */
    background-image:
        radial-gradient(rgba(10, 25, 47, 0.035) 1px, transparent 1px),
        radial-gradient(rgba(10, 25, 47, 0.025) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   Accessibility: Focus, Skip Link, Reduced Motion
   -------------------------------------------------------------------------- */

/* Visible keyboard focus ring on every interactive element.
   Uses :focus-visible so it does not appear on mouse clicks. */
:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-accent, #C8A15A);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Screen-reader-only utility (WordPress convention). */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip-to-content link — appears when focused. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    background: var(--color-navy, #0A192F);
    color: #fff;
    padding: 12px 20px;
    z-index: 10000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-accent, #C8A15A);
    outline-offset: 2px;
}

/* Honor users who have asked for reduced motion. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   Typography Scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-navy);
}

h1 {
    font-family: var(--font-heading);
    font-size: 72px;
    line-height: 74px;
    letter-spacing: -0.015em;
}

h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 52px;
    letter-spacing: -0.01em;
}

h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 33px;
    font-weight: 700;
}

h4 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
}

p {
    margin-bottom: 1.6em;
    line-height: 29px;
}

/* --------------------------------------------------------------------------
   Eyebrow Utility
   -------------------------------------------------------------------------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-slate);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.site-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site-main {
    min-height: 60vh;
}

/* --------------------------------------------------------------------------
   Section Headings
   -------------------------------------------------------------------------- */
.section-heading {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 74px;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
}

.section-heading em {
    color: var(--color-accent);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Pillar Color Classes
   -------------------------------------------------------------------------- */
.pillar-injury {
    --pillar-color: var(--color-pillar-injury);
}

.pillar-trial {
    --pillar-color: var(--color-pillar-trial);
}

.pillar-disability {
    --pillar-color: var(--color-pillar-disability);
}

.pillar-personal {
    --pillar-color: var(--color-pillar-personal);
}

.pillar-default {
    --pillar-color: var(--color-pillar-default);
}

/* Badge with pillar color */
.post-card__badge {
    display: inline-block;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-badge);
    background-color: var(--pillar-color, var(--color-accent));
    color: #fff;
}

/* --------------------------------------------------------------------------
   Button Styles
   -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-button);
    transition: background-color var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
}

/* Secondary button — transparent with navy border */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: transparent;
    color: var(--color-navy);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--color-navy);
    border-radius: var(--radius-button);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: #fff;
}

/* ITAA CTA button — terracotta text block + navy arrow */
.btn-brief {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.btn-brief:hover {
    opacity: 0.85;
}

.btn-brief__text {
    padding: 8px 16px;
    background-color: var(--color-accent);
    color: #fff;
}

.btn-brief__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 100%;
    min-height: 36px;
    background-color: var(--color-navy);
}

.btn-brief__arrow svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* Circle arrow button (used for "View Posts", "Read More") */
.btn-circle-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-navy);
    text-decoration: none;
}

.btn-circle-arrow__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-navy);
    border-radius: 0;
    background-color: var(--color-accent);
}

.btn-circle-arrow__icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* --------------------------------------------------------------------------
   Diamond separator (nav items)
   -------------------------------------------------------------------------- */
.diamond-sep::before {
    content: "\25C7";
    margin-right: 8px;
    color: var(--color-text-light);
    font-size: 10px;
}

/* --------------------------------------------------------------------------
   Thin Rule Divider — utility
   -------------------------------------------------------------------------- */
.rule {
    border: none;
    border-top: 1px solid var(--color-slate);
    margin: 24px 0;
}

/* --------------------------------------------------------------------------
   Content Typography (for post body via Gutenberg)
   -------------------------------------------------------------------------- */
.single-post__content h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
    color: var(--color-navy);
}

.single-post__content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
}

.single-post__content p {
    font-size: 18px;
    line-height: 29px;
    margin-bottom: 25.6px;
}

.single-post__content ul,
.single-post__content ol {
    margin: 0 0 25.6px 24px;
    list-style: disc;
}

.single-post__content ol {
    list-style: decimal;
}

.single-post__content li {
    margin-bottom: 8px;
    line-height: 29px;
}

.single-post__content blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    border-left: 4px solid var(--color-accent);
    background-color: var(--color-surface);
    font-style: italic;
}

.single-post__content img {
    border-radius: var(--radius-card);
    margin: 1.5em 0;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .site-container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 48px;
        line-height: 50px;
    }

    h2 {
        font-size: 36px;
        line-height: 40px;
    }

    .section-heading {
        font-size: 48px;
        line-height: 50px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 36px;
        line-height: 38px;
    }

    .section-heading {
        font-size: 36px;
        line-height: 38px;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */

/* --------------------------------------------------------------------------
   Site Header — fixed, transparent at top, solid on scroll
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.is-scrolled {
    background-color: var(--color-navy);
    box-shadow: var(--shadow-header);
}

/* --------------------------------------------------------------------------
   Header Inner — centered flex container
   -------------------------------------------------------------------------- */
.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px var(--container-padding);
}

/* --------------------------------------------------------------------------
   Site Logo
   -------------------------------------------------------------------------- */
.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo__img {
    display: block;
    width: 313px;
    height: auto;
}

/* --------------------------------------------------------------------------
   Primary Navigation — desktop
   -------------------------------------------------------------------------- */
.primary-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav .nav-list > li {
    position: relative;
}

.primary-nav .nav-list > li > a {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    transition: opacity var(--transition-fast);
}

.primary-nav .nav-list > li > a:hover {
    opacity: 0.8;
}

/* Diamond separator before each nav item */
.primary-nav .nav-list > li > a::before {
    content: "\25C7";
    margin-right: 8px;
    font-size: 10px;
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Dropdown (sub-menu) — desktop
   -------------------------------------------------------------------------- */
.primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--color-navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    padding: 8px 0;
    box-shadow: var(--shadow-dropdown);
    z-index: var(--z-dropdown);
    list-style: none;
    margin: 0;
}

.primary-nav .nav-list > li:hover > .sub-menu,
.primary-nav .nav-list > li:focus-within > .sub-menu {
    display: block;
}

.primary-nav .sub-menu li {
    margin: 0;
}

.primary-nav .sub-menu a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-light);
    transition: background-color var(--transition-fast);
}

.primary-nav .sub-menu a:hover {
    background-color: rgba(200, 90, 50, 0.15);
}

/* --------------------------------------------------------------------------
   Mobile Navigation Toggle (hamburger)
   -------------------------------------------------------------------------- */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: var(--z-header);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-light);
    border-radius: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Mobile Overlay
   -------------------------------------------------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--color-overlay-dark);
    z-index: var(--z-mobile-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   Mobile Drawer
   -------------------------------------------------------------------------- */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 400px;
    height: 100%;
    background-color: var(--color-navy);
    z-index: var(--z-mobile-drawer);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
    padding: 24px;
}

.mobile-nav-drawer.is-open {
    transform: translateX(0);
}

/* Close button inside drawer */
.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    margin-bottom: 24px;
    font-size: 28px;
    color: var(--color-text-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.mobile-nav-close:hover {
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Mobile Nav List
   -------------------------------------------------------------------------- */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-list a {
    display: block;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    transition: opacity var(--transition-fast);
}

.mobile-nav-list a:hover {
    opacity: 0.8;
}

/* Mobile sub-menu */
.mobile-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
}

.mobile-nav-list .sub-menu a {
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    padding: 10px 0;
}

/* --------------------------------------------------------------------------
   Responsive: below 1024px — hide desktop nav, show hamburger
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .primary-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .site-logo__est {
        display: none;
    }

    .site-logo__name {
        font-size: 18px;
    }

    .site-logo__img {
        width: 250px;
    }
}

@media (min-width: 1025px) {
    .mobile-nav-overlay,
    .mobile-nav-drawer {
        display: none !important;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Footer — Base
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-footer-bg);
    color: #fff;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 20px 24px;
}

/* --------------------------------------------------------------------------
   Footer — Column Layout
   -------------------------------------------------------------------------- */
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* About column */
.footer-about {
    width: 300px;
    flex-shrink: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.footer-brand__img {
    display: block;
    width: 300px;
    height: auto;
}

/* Pillar columns fill remaining space equally */
.footer-column:not(.footer-about) {
    flex: 1;
    min-width: 140px;
}

/* --------------------------------------------------------------------------
   Footer — Headings
   -------------------------------------------------------------------------- */
.footer-heading {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
    line-height: 1.4;
}

.footer-about .footer-heading {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: normal;
    color: #fff;
}

.footer-heading a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.footer-heading a:hover {
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Footer — Description (About column)
   -------------------------------------------------------------------------- */
.footer-description {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 280px;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Footer — Social Icons
   -------------------------------------------------------------------------- */
.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: var(--color-accent);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   Footer — Pillar Link Lists
   -------------------------------------------------------------------------- */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Footer — Bottom Bar
   -------------------------------------------------------------------------- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Footer — Responsive (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        gap: 32px;
    }

    .footer-about {
        width: 100%;
    }

    .footer-column:not(.footer-about) {
        min-width: 100%;
    }

    .footer-inner {
        padding: 40px 20px 20px;
    }

    .footer-bottom {
        margin-top: 32px;
    }

    .footer-brand__img {
        width: 250px;
    }
}

/* ==========================================================================
   Post Card Component
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Card Styles (shared across all variants)
   -------------------------------------------------------------------------- */
.post-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.post-card:hover {
    box-shadow: var(--shadow-hero-card);
}

.post-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.post-card__image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay-dark);
    pointer-events: none;
}

/* Badge — already defined in Pillar Color Classes section above */

.post-card__title {
    margin: 8px 0;
}

.post-card__excerpt {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__read-more {
    margin-top: auto;
    padding-top: 20px;
}

/* --------------------------------------------------------------------------
   Default Variant
   -------------------------------------------------------------------------- */
.post-card--default .post-card__image {
    height: 220px;
    border: 1px solid var(--color-slate);
    border-bottom: none;
}

.post-card--default .post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 30px 30px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-slate);
    border-top: none;
}

.post-card--default .post-card__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
}

.post-card--default .post-card__excerpt {
    -webkit-line-clamp: 3;
}

.post-card--default .post-card__read-more .btn-brief__arrow svg {
    stroke: #fff;
    fill: none;
}

/* --------------------------------------------------------------------------
   Featured Variant
   -------------------------------------------------------------------------- */
.post-card--featured {
    height: 400px;
    border-radius: var(--radius-card);
}

.post-card--featured .post-card__link {
    position: relative;
    height: 100%;
}

.post-card--featured .post-card__image {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: var(--radius-card);
}

.post-card--featured .post-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 30px 85px;
    z-index: 1;
}

.post-card--featured .post-card__badge {
    margin-bottom: 8px;
}

.post-card--featured .post-card__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 38px;
    letter-spacing: -0.01em;
    margin: 8px 0;
}

.post-card--featured .post-card__excerpt {
    color: #fff;
    -webkit-line-clamp: 2;
    margin-bottom: 0;
}

.post-card--featured .post-card__read-more {
    position: absolute;
    bottom: 30px;
    right: 30px;
    margin-top: 0;
    padding-top: 0;
}

.post-card--featured .post-card__read-more .btn-brief__arrow {
    background-color: transparent;
    width: auto;
    min-height: 0;
    padding: 0;
    margin-left: 6px;
}

.post-card--featured .post-card__read-more .btn-brief__arrow svg {
    stroke: #fff;
    fill: none;
    width: 14px;
    height: 14px;
}

.post-card--featured:hover {
    transform: none;
    box-shadow: var(--shadow-hero-card);
}

/* --------------------------------------------------------------------------
   Related Variant
   -------------------------------------------------------------------------- */
.post-card--related {
    border-radius: var(--radius-card);
}

.post-card--related .post-card__link {
    position: relative;
    height: 100%;
}

.post-card--related .post-card__image {
    height: 180px;
    border-radius: var(--radius-card);
}

.post-card--related .post-card__overlay {
    border-radius: var(--radius-card);
}

.post-card--related .post-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
}

.post-card--related .post-card__badge {
    margin-bottom: 4px;
}

.post-card--related .post-card__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 33px;
    margin: 4px 0 0;
}

.post-card--related:hover {
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Post Card Grid — layout helper for parent containers
   -------------------------------------------------------------------------- */
.post-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --------------------------------------------------------------------------
   Post Card Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .post-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .post-card--featured {
        height: 350px;
    }

    .post-card--featured .post-card__title {
        font-size: 28px;
        line-height: 34px;
    }
}

@media (max-width: 768px) {
    .post-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-card--default .post-card__image {
        height: 200px;
    }

    .post-card--default .post-card__body {
        min-height: auto;
        padding: 16px 20px 24px;
    }

    .post-card--default .post-card__title {
        font-size: 20px;
    }

    .post-card--featured {
        height: 300px;
    }

    .post-card--featured .post-card__title {
        font-size: 24px;
        line-height: 30px;
    }

    .post-card--featured .post-card__body {
        padding: 20px;
    }

    .post-card--related .post-card__image {
        height: 160px;
    }

    .post-card--related .post-card__title {
        font-size: 24px;
        line-height: 28px;
    }
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Slider — Container
   -------------------------------------------------------------------------- */
.hero-slider {
    position: relative;
    height: 686px;
    overflow: hidden;
    background-color: var(--color-navy);
}

/* --------------------------------------------------------------------------
   Hero Slider — Background Images
   -------------------------------------------------------------------------- */
.hero-slider__backgrounds {
    position: absolute;
    inset: 0;
}

.hero-slider__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-slider__bg.is-active {
    opacity: 0.35;
}

/* --------------------------------------------------------------------------
   Hero Slider — Overlay Gradient (architectural gradient)
   -------------------------------------------------------------------------- */
.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0A192F 0%, #152742 55%, #C85A32 140%);
    opacity: 0.85;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Hero Slider — Content Layout (Caption + Thumbs)
   -------------------------------------------------------------------------- */
.hero-slider__content {
    position: relative;
    z-index: 10;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: row;
    height: 100%;
    align-items: stretch;
    padding-bottom: 80px;
}

/* --------------------------------------------------------------------------
   Hero Slider — Captions (Left Side)
   -------------------------------------------------------------------------- */
.hero-slider__captions {
    width: 50%;
    flex-shrink: 0;
    display: grid;
    align-content: center;
    padding-right: 48px;
}

.hero-slider__caption {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    align-self: center;
}

.hero-slider__caption.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Staggered slide-up entrance for caption children */
.hero-slider__caption.is-active > * {
    animation: captionSlideUp 0.4s ease both;
}

.hero-slider__caption.is-active > :nth-child(1) { animation-delay: 0.1s; }
.hero-slider__caption.is-active > :nth-child(2) { animation-delay: 0.25s; }
.hero-slider__caption.is-active > :nth-child(3) { animation-delay: 0.4s; }
.hero-slider__caption.is-active > :nth-child(4) { animation-delay: 0.55s; }

@keyframes captionSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider__badge {
    display: inline-block;
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.hero-slider__title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 52px;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}

.hero-slider__excerpt {
    font-family: var(--font-body);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin-bottom: 20px;
    line-height: 26px;
}

.hero-slider__cta {
    color: var(--color-text-light);
}

.hero-slider__cta .btn-circle-arrow__icon svg {
    stroke: #fff;
}

/* --------------------------------------------------------------------------
   Hero Slider — Card Thumbnails (Right Side)
   -------------------------------------------------------------------------- */
.hero-slider__thumbs-wrapper {
    flex: 0 0 50%;
    margin-left: auto;
    overflow: visible;
    clip-path: inset(0 -500px 0 0);
    display: flex;
    align-items: flex-end;
}

.hero-slider__thumbs {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-end;
    position: relative;
    left: 0;
    transition: left 0.5s ease-in-out;
}

.hero-slider__thumb {
    width: 227px;
    height: 301px;
    border-radius: var(--radius-card-hero);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    background: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.hero-slider__thumb:hover {
    box-shadow: var(--shadow-hero-card);
}

.hero-slider__thumb.is-active {
    box-shadow: var(--shadow-hero-card);
    border-color: var(--color-accent);
}

.hero-slider__thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider__thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.3), rgba(10, 25, 47, 0.1));
}

.hero-slider__thumb-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.hero-slider__thumb-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.hero-slider__thumb-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 22px;
    text-align: left;
}

/* --------------------------------------------------------------------------
   Hero Slider — Controls (Bottom)
   -------------------------------------------------------------------------- */
.hero-slider__controls {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.hero-slider__arrows {
    display: flex;
    gap: 12px;
}

.hero-slider__prev,
.hero-slider__next {
    width: 50px;
    height: 50px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.hero-slider__prev:hover,
.hero-slider__next:hover {
    border-color: var(--color-accent);
    background-color: rgba(200, 90, 50, 0.15);
}

.hero-slider__prev svg,
.hero-slider__next svg {
    stroke: #fff;
}

.hero-slider__progress {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-slider__progress-bar {
    width: 400px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
}

.hero-slider__progress-fill {
    width: 0;
    height: 100%;
    background-color: var(--color-accent);
    transition: width 0.5s ease;
}

.hero-slider__counter {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* ==========================================================================
   Pillar Grid
   ========================================================================== */

/* --------------------------------------------------------------------------
   Pillar Grid — Section
   -------------------------------------------------------------------------- */
.pillar-grid {
    padding: 60px 0 18px;
}

.pillar-grid__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --------------------------------------------------------------------------
   Pillar Card
   -------------------------------------------------------------------------- */
.pillar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--color-slate);
    border-radius: var(--radius-card);
    padding: 16px 16px 24px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
    color: inherit;
    background-color: var(--color-surface);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hero-card);
}

.pillar-card__image {
    width: 100%;
    overflow: hidden;
}

.pillar-card__image img {
    width: 100%;
    object-fit: cover;
}

.pillar-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-card__subtitle {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-slate);
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.pillar-card__title {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-navy);
    line-height: 52px;
    letter-spacing: -0.01em;
    margin: 4px 0;
    font-weight: 700;
}

.pillar-card__desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* ==========================================================================
   Featured Posts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Featured & Recent Posts — Sections
   -------------------------------------------------------------------------- */
.featured-posts {
    padding: 40px 0;
}

.featured-posts__grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ==========================================================================
   Recent Posts
   ========================================================================== */
.recent-posts {
    padding: 40px 0;
}

/* ==========================================================================
   Content Carousel — Editor's Picks
   ========================================================================== */

/* --------------------------------------------------------------------------
   Content Carousel — Section
   -------------------------------------------------------------------------- */
.content-carousel {
    padding: 40px 0;
}

.content-carousel__wrapper {
    position: relative;
}

.content-carousel__track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.content-carousel__track::-webkit-scrollbar {
    display: none;
}

.content-carousel__item {
    min-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.content-carousel__controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.content-carousel__prev,
.content-carousel__next {
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: 1px solid var(--color-navy);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-navy);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.content-carousel__prev:hover,
.content-carousel__next:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.content-carousel__prev svg,
.content-carousel__next svg {
    stroke: currentColor;
}

/* ==========================================================================
   Homepage Sections — Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1024px breakpoint
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    /* Hero slider: stack caption + thumbs vertically */
    .hero-slider {
        height: auto;
        min-height: 550px;
    }

    .hero-slider__content {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 100px;
        padding-top: 120px;
    }

    .hero-slider__captions {
        width: 100%;
        margin-bottom: 30px;
        padding-right: 0;
    }

    .hero-slider__thumbs-wrapper {
        width: 100%;
        height: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hero-slider__thumbs {
        padding-bottom: 16px;
    }

    .hero-slider__thumb {
        width: 180px;
        height: 240px;
    }

    .hero-slider__progress-bar {
        width: 200px;
    }

    /* Pillar grid: 2 columns */
    .pillar-grid__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Featured grid: 2 columns */
    .featured-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   768px breakpoint
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Hero slider */
    .hero-slider {
        min-height: 480px;
    }

    .hero-slider__content {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .hero-slider__title {
        font-size: 36px;
        line-height: 40px;
    }

    .hero-slider__thumbs-wrapper {
        display: none;
    }

    .hero-slider__progress-bar {
        width: 120px;
    }

    .hero-slider__counter {
        font-size: 36px;
    }

    /* Pillar grid: 1 column */
    .pillar-grid__inner {
        grid-template-columns: 1fr;
    }

    .pillar-card__title {
        font-size: 36px;
        line-height: 40px;
    }

    /* Featured grid: 1 column */
    .featured-posts__grid {
        grid-template-columns: 1fr;
    }

    /* Carousel items smaller */
    .content-carousel__item {
        min-width: 280px;
    }
}

/* ==========================================================================
   Archive / Search Pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Archive Header — full-width dark banner
   -------------------------------------------------------------------------- */
.archive-header {
    background-color: var(--color-navy);
    background-image: linear-gradient(180deg, #0A192F 0%, #152742 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.archive-header__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.archive-header__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pillar-color, var(--color-accent));
    margin-bottom: 16px;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 56px;
    letter-spacing: -0.015em;
}

.archive-title em {
    color: var(--color-accent);
    font-style: italic;
}

.archive-header__divider {
    width: 60px;
    height: 3px;
    background-color: var(--pillar-color, var(--color-accent));
    margin: 20px auto;
}

.archive-description {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto;
}

.archive-description p {
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

.archive-description p:empty {
    display: none;
}

/* --------------------------------------------------------------------------
   Subcategory Pills (inside archive header)
   -------------------------------------------------------------------------- */
.archive-subcats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.archive-subcat-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.archive-subcat-pill:hover {
    background-color: var(--pillar-color, var(--color-accent));
    border-color: var(--pillar-color, var(--color-accent));
    color: #fff;
}

/* --------------------------------------------------------------------------
   Archive Layout — editorial feed + sidebar
   -------------------------------------------------------------------------- */
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    padding: 48px 0 60px;
    align-items: start;
}

/* ── Lead Article (first post, larger treatment) ─────────────────────────── */
.archive-lead {
    margin-bottom: 0;
}

.archive-lead__link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    text-decoration: none;
    color: inherit;
    align-items: start;
}

.archive-lead__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-navy);
}

.archive-lead__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.archive-lead__link:hover .archive-lead__img {
    transform: scale(1.03);
}

.archive-lead__body {
    padding-top: 4px;
}

.archive-lead__badge {
    display: inline-block;
    padding: 3px 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: var(--pillar-color, var(--color-accent));
    color: #fff;
    margin-bottom: 14px;
}

.archive-lead__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-navy);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.archive-lead__link:hover .archive-lead__title {
    color: var(--color-accent);
}

.archive-lead__excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-slate);
    margin: 0 0 16px;
}

.archive-lead__meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-slate);
}

/* ── Feed divider ──────────────────────────────────────────────────────── */
.archive-feed__divider {
    height: 1px;
    background: linear-gradient(90deg, var(--color-navy) 0%, transparent 100%);
    margin: 32px 0;
    opacity: 0.15;
}

/* ── Standard article row ──────────────────────────────────────────────── */
.archive-row {
    padding: 24px 0;
    border-bottom: 1px solid rgba(10, 25, 47, 0.08);
}

.archive-row:last-of-type {
    border-bottom: none;
}

.archive-row__link {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    align-items: start;
}

.archive-row__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: var(--color-navy);
}

.archive-row__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.archive-row__link:hover .archive-row__img {
    transform: scale(1.05);
}

.archive-row__body {
    padding-top: 0;
}

.archive-row__badge {
    display: inline-block;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: var(--pillar-color, var(--color-accent));
    color: #fff;
    margin-bottom: 8px;
}

.archive-row__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy);
    margin: 0 0 6px;
}

.archive-row__link:hover .archive-row__title {
    color: var(--color-accent);
}

.archive-row__excerpt {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-slate);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-row__meta {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-slate);
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.archive-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-block {
    border: 1px solid rgba(10, 25, 47, 0.1);
    padding: 28px 24px;
    background-color: var(--color-surface);
}

.sidebar-block__heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--pillar-color, var(--color-accent));
}

/* Sidebar nav list */
.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav__item {
    margin: 0;
}

.sidebar-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 25, 47, 0.06);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.sidebar-nav__link:hover {
    color: var(--color-accent);
    padding-left: 6px;
}

.sidebar-nav__link.is-active {
    color: var(--color-accent);
    font-weight: 700;
}

.sidebar-nav__link--parent {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    gap: 6px;
    justify-content: flex-start;
}

.sidebar-nav__link--parent svg {
    flex-shrink: 0;
}

.sidebar-nav__count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-slate);
    min-width: 20px;
    text-align: right;
}

/* Other practice areas list */
.sidebar-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-pillar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 25, 47, 0.06);
    transition: color var(--transition-fast);
}

.sidebar-pillar-link:hover {
    color: var(--color-accent);
}

.sidebar-pillar-link svg {
    opacity: 0.3;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.sidebar-pillar-link:hover svg {
    opacity: 1;
    transform: translateX(3px);
    stroke: var(--color-accent);
}

/* ── Archive Pagination ────────────────────────────────────────────────── */
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0 20px;
}

.archive-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0;
    border: 1px solid var(--color-navy);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-navy);
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.archive-pagination .page-numbers.current {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.archive-pagination .page-numbers:hover:not(.current) {
    background-color: rgba(200, 90, 50, 0.1);
    border-color: var(--color-accent);
}

/* ── Archive Empty State ───────────────────────────────────────────────── */
.archive-empty {
    text-align: center;
    padding: 60px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-slate);
    margin-bottom: 0;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    min-height: 60vh;
}

.error-404__title {
    font-family: var(--font-heading);
    font-size: 200px;
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 16px;
}

.error-404__message {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-slate);
    margin-bottom: 32px;
}

.error-404__link {
    /* Uses .btn-primary styles */
}

/* ==========================================================================
   Archive / Search / 404 — Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .archive-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .archive-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .archive-header {
        padding: 80px 0 40px;
    }

    .archive-title {
        font-size: 36px;
        line-height: 42px;
    }

    .archive-description {
        font-size: 15px;
    }

    .archive-lead__link {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .archive-lead__title {
        font-size: 24px;
    }

    .archive-row__link {
        grid-template-columns: 120px 1fr;
        gap: 16px;
    }

    .archive-row__title {
        font-size: 17px;
    }

    .archive-row__excerpt {
        display: none;
    }

    .archive-sidebar {
        grid-template-columns: 1fr;
    }

    .error-404 {
        padding: 80px 20px;
    }

    .error-404__title {
        font-size: 120px;
    }

    .error-404__message {
        font-size: 16px;
    }
}

/* ==========================================================================
   Single Post Template
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section — full-width background image with dark overlay
   -------------------------------------------------------------------------- */
.single-post__hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-navy);
    display: flex;
    align-items: flex-end;
    padding: 120px 0 40px;
}

.single-post__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.7) 0%, rgba(21, 39, 66, 0.6) 100%);
    pointer-events: none;
}

.single-post__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.single-post__hero-content .post-card__badge {
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Hero Title & Meta
   -------------------------------------------------------------------------- */
.single-post__title {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 74px;
    letter-spacing: -0.015em;
    margin: 16px 0 20px;
}

.single-post__meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    letter-spacing: 0.04em;
}

.single-post__meta a {
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-fast);
}

.single-post__meta a:hover {
    color: var(--color-accent);
}

.single-post__meta-sep {
    margin: 0 8px;
}

/* --------------------------------------------------------------------------
   Two-Column Layout — content + sidebar
   -------------------------------------------------------------------------- */
.single-post__layout {
    display: flex;
    gap: var(--layout-gap);
    padding-top: 60px;
    padding-bottom: 60px;
}

.single-post__content {
    flex: 1;
    max-width: var(--content-width);
    min-width: 0;
}

.single-post__sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Social Share Bar
   -------------------------------------------------------------------------- */
.social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid var(--color-slate);
    border-bottom: 1px solid var(--color-slate);
    padding: 24px 0;
    margin: 40px 0;
}

.social-share__label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-slate);
}

.social-share__buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    transition: color var(--transition-fast);
}

.social-share__btn:hover {
    color: var(--color-accent);
}

.social-share__btn svg {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   Author Bio
   -------------------------------------------------------------------------- */
.author-bio {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid var(--color-slate);
}

.author-bio__avatar {
    width: 96px;
    height: 96px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--color-slate);
}

.author-bio__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-bio__name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
    line-height: 1.3;
}

.author-bio__description {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-slate);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Related Posts
   -------------------------------------------------------------------------- */
.related-posts {
    background-color: var(--color-bg);
    padding: 60px 0;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* --------------------------------------------------------------------------
   Sidebar Widgets
   -------------------------------------------------------------------------- */
.sidebar-widget {
    background-color: var(--color-surface);
    border: 1px solid var(--color-slate);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-widget-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Sidebar — Pillar Navigation (subcategories)
   -------------------------------------------------------------------------- */
.sidebar-subcats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-subcat {
    margin-bottom: 6px;
}

.sidebar-subcat a {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-navy);
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.sidebar-subcat a:hover {
    color: var(--color-accent);
}

.sidebar-subcat.is-current a {
    font-weight: 700;
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Sidebar — Trending Posts
   -------------------------------------------------------------------------- */
.sidebar-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-trending-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-slate);
}

.sidebar-trending-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-trending-item a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: opacity var(--transition-fast);
}

.sidebar-trending-item a:hover {
    opacity: 0.7;
}

.sidebar-trending-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.sidebar-trending-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-slate);
}

/* --------------------------------------------------------------------------
   Sidebar — Tags
   -------------------------------------------------------------------------- */
.sidebar-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--color-navy);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-navy);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.sidebar-tag:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Single Post Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .single-post__layout {
        flex-direction: column;
    }

    .single-post__content {
        max-width: 100%;
    }

    .single-post__sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .single-post__hero {
        min-height: 300px;
        padding: 100px 0 30px;
    }

    .single-post__title {
        font-size: 48px;
        line-height: 50px;
    }

    .single-post__meta {
        font-size: 12px;
    }

    .single-post__layout {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .related-posts {
        padding: 40px 0;
    }

    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .social-share {
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .single-post__title {
        font-size: 36px;
        line-height: 38px;
    }

    .single-post__hero {
        min-height: 250px;
        padding: 80px 0 24px;
    }
}
