/* =========================================
   Thomas Reichert - reichert.law
   Shared Stylesheet
   ========================================= */

/* -----------------------------------------
   CSS Variables
   ----------------------------------------- */
:root {
    --primary: #152538;
    --primary-light: #1a2e4a;
    --primary-dark: #0d1a2a;
    --accent: #2a4a6d;
    --gold: #b8860b;
    --gold-light: #d4a847;
    --gold-muted: #c9a227;
    --gold-pale: #f5e6c8;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #888;
    --border: #d4d4d4;
    --border-light: #e8e8e8;
    --bg: #ffffff;
    --bg-subtle: #f8f7f5;
    --bg-warm: #faf9f7;
    --bg-cream: #fdfcfa;
    --white: #ffffff;
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(21, 37, 56, 0.08);
    --shadow-md: 0 4px 12px rgba(21, 37, 56, 0.1);
    --shadow-lg: 0 8px 30px rgba(21, 37, 56, 0.12);
    --shadow-gold: 0 4px 20px rgba(184, 134, 11, 0.15);
}

/* -----------------------------------------
   Reset & Base
   ----------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.25;
}

/* -----------------------------------------
   Header
   ----------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    border-bottom: 1px solid var(--primary-dark);
    box-shadow: var(--shadow-sm);
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; flex-direction: column; text-decoration: none; }
.logo-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}
.logo-credentials {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--gold-light);
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* -----------------------------------------
   Navigation
   ----------------------------------------- */
.main-nav ul { display: flex; list-style: none; gap: 2rem; }
.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-medium);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }

/* Contact CTA button in nav */
.main-nav a.nav-cta {
    background: var(--gold);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.main-nav a.nav-cta::after { display: none; }
.main-nav a.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}
.main-nav a.nav-cta.active {
    background: var(--gold-light);
}

.external-link-icon,
.external-icon {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    margin-left: 0.25em;
    vertical-align: middle;
    opacity: 0.7;
}
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-fast);
}

/* -----------------------------------------
   Buttons
   ----------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 3px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--gold);
}
.btn-secondary:hover {
    background: var(--gold);
    color: var(--white);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
}

/* -----------------------------------------
   Footer
   ----------------------------------------- */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 2rem 2rem;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--gold), var(--primary-dark));
}
.footer-container { max-width: 1100px; margin: 0 auto; }
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
    margin-bottom: 1.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.footer-title { font-size: 0.9rem; color: var(--gold-light); }
.footer-school { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* -----------------------------------------
   CV Entry (shared between pages)
   ----------------------------------------- */
.cv-entry { margin-bottom: 2rem; }
.cv-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.cv-institution { font-weight: 600; font-size: 1.05rem; }
.cv-dates { font-size: 0.9rem; color: var(--gold); font-weight: 500; }
.cv-location { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.25rem; }
.cv-role { font-weight: 500; color: var(--text); }
.cv-description { margin-top: 0.75rem; font-size: 0.95rem; color: var(--text-light); }
.cv-description ul { margin-left: 1.25rem; margin-top: 0.5rem; }
.cv-description li { margin-bottom: 0.35rem; }
.cv-description li::marker { color: var(--gold); }

/* =========================================
   PAGE: Homepage (index.html)
   ========================================= */

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 0.6rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
}
.announcement-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(184, 134, 11, 0.2);
    border: 1px solid var(--gold);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-light);
}
.announcement-badge svg {
    width: 14px;
    height: 14px;
    fill: var(--gold-light);
}
.announcement-text { color: rgba(255, 255, 255, 0.9); }
.announcement-text a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.announcement-text a:hover { color: var(--white); }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 50%, var(--bg) 100%);
    padding: 5rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8860b' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-image { position: relative; }
.hero-image::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    opacity: 0.4;
}
.image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.image-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-text {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-muted);
    background: var(--bg-subtle);
}
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; letter-spacing: 0.02em; }
.hero-titles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.hero-title-block {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
}
.hero-title-block:first-child { border-left-color: var(--gold); }
.hero-title-block:last-child { border-left-color: var(--primary); }
.hero-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
}
.hero-title-block:last-child .hero-title { color: var(--primary); }
.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}
.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 1.5rem 0;
    position: relative;
}
.hero-divider::before, .hero-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}
.hero-divider::before { left: -12px; }
.hero-divider::after { right: -12px; }
.hero-description {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text);
    max-width: 600px;
}
.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Dual Track Section */
.dual-track { padding: 5rem 2rem; background: var(--white); }
.track-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.track {
    padding: 2.5rem;
    background: var(--bg-subtle);
    border-radius: 4px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}
.track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.track:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.track-icon { width: 48px; height: 48px; margin-bottom: 1.25rem; color: var(--gold); }
.track-icon svg { width: 100%; height: 100%; }
.track h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.track p { color: var(--text-light); margin-bottom: 1.25rem; }
.track-highlights { list-style: none; margin-bottom: 1.5rem; }
.track-highlights li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
}
.track-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}
.track-link {
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.track-link:hover { color: var(--primary); }

/* Featured Work Section */
.featured-work {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-subtle), var(--bg-cream));
    position: relative;
}
.featured-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.featured-container { max-width: 900px; margin: 0 auto; }
.featured-work h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}
.featured-work h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}
.featured-paper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    position: relative;
}
.featured-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--gold-light));
    border-radius: 4px 0 0 4px;
}
.paper-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.paper-meta {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.paper-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.paper-coverage {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    background: var(--bg-subtle);
    border-radius: 3px;
    margin-bottom: 0.75rem;
}
.coverage-label {
    font-weight: 600;
    color: var(--primary);
    margin-right: 0.5rem;
}
.coverage-outlets { color: var(--text-light); }
.paper-citation {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1), rgba(184, 134, 11, 0.05));
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 3px;
    margin-bottom: 1.25rem;
}
.citation-label {
    font-weight: 600;
    color: var(--gold);
    margin-right: 0.5rem;
}
.citation-text { color: var(--text); }
.paper-actions { margin-top: 1.5rem; }

/* Testimonials Section */
.testimonials { padding: 4rem 2rem; background: var(--white); }
.testimonials-container { max-width: 900px; margin: 0 auto; }
.testimonials h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
}
.testimonials h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.testimonial-card {
    padding: 1.75rem;
    background: var(--bg-subtle);
    border-radius: 4px;
    border: 1px solid var(--border-light);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
}
.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-style: italic;
}
.testimonial-source { font-size: 0.85rem; color: var(--text-muted); }
.testimonial-source strong { color: var(--primary); font-weight: 600; }
.testimonial-source a { color: var(--gold); }

/* Credentials Bar */
.credentials-bar {
    background: var(--primary);
    padding: 3rem 2rem;
    position: relative;
}
.credentials-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}
.credentials-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}
.credential { text-align: center; }
.credential-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.25rem;
}
.credential-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =========================================
   PAGE: Consulting (consulting.html)
   ========================================= */

.consulting-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}
.consulting-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.consulting-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.consulting-hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.consulting-hero h1 { color: var(--white); font-size: 2.75rem; margin-bottom: 0.5rem; }
.consulting-hero .tagline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}
.consulting-hero p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Client Experience Section */
.client-experience { padding: 5rem 2rem; background: var(--white); }
.client-container { max-width: 1000px; margin: 0 auto; }
.client-experience h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.client-experience h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}
.client-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}
.client-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.client-card {
    padding: 1.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    text-align: center;
    transition: all var(--transition-medium);
}
.client-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}
.client-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.client-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Services Section */
.services-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-subtle), var(--bg-cream));
}
.services-container { max-width: 1000px; margin: 0 auto; }
.services-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}
.services-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.service-card {
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-medium);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), transparent);
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity var(--transition-medium);
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 1; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--primary); }
.service-card p { color: var(--text-light); line-height: 1.7; }

/* Expertise Section */
.expertise-section {
    padding: 5rem 2rem;
    background: var(--white);
    position: relative;
}
.expertise-container { max-width: 900px; margin: 0 auto; }
.expertise-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.expertise-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}
.expertise-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}
.expertise-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.expertise-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-subtle);
    border-radius: 4px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}
.expertise-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}
.expertise-item::before {
    content: '◆';
    color: var(--gold);
    font-size: 0.5rem;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-subtle), var(--bg-cream));
    text-align: center;
    border-top: 1px solid var(--border-light);
}
.cta-container { max-width: 600px; margin: 0 auto; }
.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; }

/* =========================================
   PAGE: Academic (academic.html)
   ========================================= */

.page-header {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* Content Section */
.content-section { padding: 4rem 2rem; max-width: 900px; margin: 0 auto; }
.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    position: relative;
}
.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}
.content-section + .content-section { border-top: 1px solid var(--border-light); }

/* Publication Entry */
.publication-entry {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 1rem;
}
.publication-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 3px;
    height: calc(100% - 1.5rem);
    background: linear-gradient(to bottom, var(--gold), transparent);
}
.publication-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.publication-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.publication-venue { font-style: italic; color: var(--text-light); margin-bottom: 0.5rem; }
.publication-note { font-size: 0.9rem; color: var(--gold); font-weight: 500; }
.publication-links { margin-top: 0.75rem; }
.publication-links a { font-size: 0.9rem; font-weight: 600; color: var(--gold); }
.publication-links a:hover { color: var(--gold-light); }

/* Research Interest Tags */
.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.research-tag {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, var(--bg-subtle), var(--bg-cream));
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
    transition: all var(--transition-fast);
}
.research-tag:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1), rgba(184, 134, 11, 0.05));
    color: var(--primary);
}
.research-tag.primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: var(--gold);
    color: var(--white);
    font-weight: 500;
}
.research-tag.primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

/* CV Download */
.cv-download {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--bg-subtle), var(--bg-cream));
    margin-top: 3rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    position: relative;
}
.cv-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* =========================================
   PAGE: Contact (contact.html)
   ========================================= */

.contact-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    min-height: calc(100vh - 200px);
}
.contact-container { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-section h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-section h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}
.contact-intro {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    margin-top: 1.5rem;
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 2.5rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5a5a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.submit-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.submit-btn:hover {
    background: var(--gold);
    transform: translateY(-1px);
}
.form-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}
.connect-section {
    margin-top: 2rem;
    text-align: center;
}
.connect-section p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.connect-links a {
    color: var(--gold);
    font-weight: 500;
}
.connect-links a:hover {
    color: var(--gold-light);
}

/* =========================================
   PAGE: 404 (404.html)
   ========================================= */

.error-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-container {
    max-width: 500px;
    text-align: center;
}
.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
}
.error-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.error-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* =========================================
   Responsive Styles
   ========================================= */

@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-image { max-width: 250px; margin: 0 auto; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-titles { align-items: center; }
    .hero-title-block {
        border-left: none;
        border-bottom: 2px solid var(--gold);
        padding-left: 0;
        padding-bottom: 0.5rem;
        text-align: center;
    }
    .hero-title-block:last-child { border-bottom-color: var(--primary); }
    .hero-divider { margin: 1.5rem auto; }
    .hero-cta { justify-content: center; }
    .track-container { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .credentials-container { gap: 1.5rem; }
    .credential { flex: 1 1 45%; }
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .expertise-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .announcement-content { flex-direction: column; gap: 0.5rem; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 1rem 2rem;
        box-shadow: var(--shadow-md);
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .main-nav li:last-child { border-bottom: none; }
    .main-nav a { display: block; padding: 0.75rem 0; }
    .main-nav a.nav-cta {
        display: inline-block;
        margin-top: 0.5rem;
        padding: 0.5rem 1.25rem;
    }
    .mobile-menu-toggle { display: flex; }
    .hero { padding: 3rem 1.5rem 4rem; }
    .hero-content h1 { font-size: 2rem; }
    .footer-main { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 700px) {
    .header-container { padding: 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .client-grid { grid-template-columns: 1fr; }
    .expertise-list { grid-template-columns: 1fr; }
    .cv-entry-header { flex-direction: column; align-items: flex-start; }
}

/* -----------------------------------------
   Credentials Grid (Consulting Page)
   ----------------------------------------- */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.credential-item {
    padding: 0.5rem 0;
}

.credential-number {
    color: var(--gold);
}

/* -----------------------------------------
   Blog Styles
   ----------------------------------------- */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    position: relative;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.blog-hero-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.5rem;
}

.blog-hero-tagline {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gold-light);
    margin: 0 0 1rem;
}

.blog-hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 1rem;
    max-width: 600px;
}

/* Blog Section */
.blog-section {
    padding: 3rem 2rem 5rem;
    max-width: 900px;
    margin: 0 auto;
}

.blog-container {
    width: 100%;
}

.blog-controls {
    margin-bottom: 2rem;
}

.blog-search {
    margin-bottom: 1rem;
}

.blog-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-filter {
    padding: 0.4rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tag-filter:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.tag-filter.active {
    color: var(--white);
    background: var(--gold);
    border-color: var(--gold);
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.post-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin: 0;
}

.post-card:hover .post-title {
    color: var(--gold);
}

.post-excerpt {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0.25rem 0 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.post-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    background: var(--gold-pale);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.blog-empty,
.blog-no-posts {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.blog-no-posts a {
    color: var(--gold);
}

/* Blog Two-Column Layout */
.blog-section {
    padding: 3rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

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

.sidebar-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar Profile */
.sidebar-profile-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-subtle);
    justify-items: center;
    text-align: center;
}

.sidebar-headshot-frame {
    width: 112px;
    height: 112px;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(238, 238, 238, 0.9));
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    display: grid;
    place-items: center;
}

.sidebar-headshot {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.sidebar-profile-text {
    display: grid;
    gap: 0.35rem;
}

.sidebar-profile-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.sidebar-profile-title {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0;
}

.sidebar-profile-links {
    width: 100%;
    display: grid;
    gap: 0.5rem;
}

.sidebar-profile-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    transition: all var(--transition-fast);
}

.sidebar-profile-link:hover {
    color: var(--white);
    background: var(--gold);
    border-color: var(--gold);
}

/* Sidebar Search */
.blog-search {
    position: relative;
}

.blog-search input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.blog-search .search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* RSS Subscribe */
.rss-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    background: var(--gold-pale);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.rss-subscribe svg {
    width: 16px;
    height: 16px;
}

.rss-subscribe:hover {
    background: var(--gold);
    color: var(--white);
}

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

.sidebar-timeline li {
    margin-bottom: 0.75rem;
}

.sidebar-timeline li:last-child {
    margin-bottom: 0;
}

.sidebar-timeline a {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sidebar-timeline a:hover {
    color: var(--gold);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 45px;
}

.timeline-title {
    font-size: 0.95rem;
    line-height: 1.4;
}

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

.sidebar-categories li {
    margin-bottom: 0.5rem;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
    transition: color var(--transition-fast);
}

.sidebar-categories a:hover {
    color: var(--gold);
}

.sidebar-categories .count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

/* Sidebar Tags */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    transition: all var(--transition-fast);
}

.sidebar-tag:hover {
    color: var(--white);
    background: var(--gold);
    border-color: var(--gold);
}

/* Sidebar About */
.sidebar-about {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.sidebar-about a {
    color: var(--gold);
}

/* Read More Link */
.read-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gold);
    transition: color var(--transition-fast);
}

.read-more:hover {
    color: var(--gold-light);
}

/* Post Card Title Link */
.post-card .post-title a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-card .post-title a:hover {
    color: var(--gold);
}

/* Responsive Sidebar */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border-light);
    }

    .sidebar-section {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
}

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

/* Blog Post Page Styles */
.blog-post {
    padding: 3rem 2rem 5rem;
    max-width: 750px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-post-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-post-tags {
    display: flex;
    gap: 0.4rem;
}

.blog-post-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.blog-post-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
}

.blog-post-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    margin: 2rem 0 0.75rem;
}

.blog-post-content p {
    margin: 0 0 1.5rem;
}

.blog-post-content a {
    color: var(--gold);
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: var(--gold-light);
}

.blog-post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--gold);
    background: var(--bg-subtle);
    font-style: italic;
    color: var(--text-light);
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 1.5rem 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    background: var(--bg-subtle);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.blog-post-content pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    overflow-x: auto;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.blog-feedback {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-subtle);
    display: grid;
    gap: 0.6rem;
}

.blog-feedback-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.blog-feedback-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.blog-feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-feedback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border-radius: 999px;
    transition: all var(--transition-fast);
}

.blog-feedback-link:hover {
    color: var(--white);
    background: var(--gold);
}

.blog-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 500;
}

.blog-back-link:hover {
    color: var(--gold-light);
}

/* RSS Link */
.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    background: rgba(184, 134, 11, 0.1);
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.rss-link:hover {
    background: var(--gold);
    color: var(--white);
}

.rss-link svg {
    width: 1em;
    height: 1em;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-categories,
.blog-tags,
.blog-series {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.category-filter,
.series-filter {
    padding: 0.4rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-filter:hover,
.series-filter:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.category-filter.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.series-filter.active {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

/* Post Card Enhancements */
.post-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.post-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--bg-subtle);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.post-series-info {
    font-size: 0.9rem;
    color: var(--accent);
    font-style: italic;
}

.post-series-info em {
    font-style: normal;
    font-weight: 500;
}

/* Blog Post Series Navigation */
.series-nav {
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.series-nav-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.series-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.series-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition-fast);
    flex: 1;
    max-width: 45%;
}

.series-nav-link:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.series-nav-link.next {
    text-align: right;
    margin-left: auto;
}

.series-nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.series-nav-text {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
}

.series-nav-link:hover .series-nav-text {
    color: var(--gold);
}

@media (max-width: 768px) {
    .blog-section { padding: 2rem 1.5rem 3rem; }
    .blog-post { padding: 2rem 1.5rem 3rem; }
    .blog-post-title { font-size: 2rem; }
    .post-title { font-size: 1.25rem; }
    .blog-filters { gap: 1rem; }
    .series-nav-links { flex-direction: column; }
    .series-nav-link { max-width: 100%; }
    .series-nav-link.next { text-align: left; }
}
