/* ================================================
   SCIENTIFIC RESEARCH BLOG THEME - MOLECULAR LABORATORY
   No Icons Edition
   ================================================ */

/* CSS Variables - Academic Scientific Palette */
:root {
    --bg-primary: #FAF9F6;
    --bg-secondary: #F5F3EE;
    --bg-tertiary: #ECEAE3;
    --bg-card: #FFFFFF;
    
    --accent-primary: #1E3A5F;
    --accent-secondary: #C9A227;
    --accent-tertiary: #4A90A4;
    --accent-glow: rgba(30, 58, 95, 0.15);
    --accent-gold-glow: rgba(201, 162, 39, 0.25);
    
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #95A5A6;
    
    --border-color: rgba(30, 58, 95, 0.12);
    --border-light: rgba(30, 58, 95, 0.06);
    --grid-line: rgba(30, 58, 95, 0.035);
    
    --shadow-card: 0 2px 12px rgba(30, 58, 95, 0.08);
    --shadow-hover: 0 8px 32px rgba(30, 58, 95, 0.12);
    --shadow-glow: 0 0 20px rgba(201, 162, 39, 0.2);
    
    --font-display: 'Merriweather', 'Georgia', serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    
    --content-font-size: 17px;
    --content-line-height: 1.8;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    
    --accent-primary: #58a6ff;
    --accent-secondary: #d29922;
    --accent-tertiary: #79c0ff;
    --accent-glow: rgba(88, 166, 255, 0.15);
    --accent-gold-glow: rgba(210, 153, 34, 0.25);
    
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    --border-color: rgba(88, 166, 255, 0.15);
    --border-light: rgba(88, 166, 255, 0.08);
    --grid-line: rgba(88, 166, 255, 0.03);
    
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(210, 153, 34, 0.3);
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

/* Graph Paper Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        linear-gradient(var(--grid-line) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
}

/* Molecular/Atomic Particles Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(74, 144, 164, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 75% 65%, rgba(30, 58, 95, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 45% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 15%),
        radial-gradient(circle at 85% 15%, rgba(74, 144, 164, 0.1) 0%, transparent 18%),
        radial-gradient(circle at 25% 70%, rgba(30, 58, 95, 0.06) 0%, transparent 22%),
        radial-gradient(circle at 60% 20%, rgba(201, 162, 39, 0.06) 0%, transparent 16%);
    z-index: -1;
    animation: molecularDrift 40s ease-in-out infinite;
}

@keyframes molecularDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -15px) scale(1.02); }
    50% { transform: translate(-5px, 10px) scale(0.98); }
    75% { transform: translate(-15px, -5px) scale(1.01); }
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-card);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: var(--accent-secondary);
}

.site-nav {
    float: right;
    margin-top: 5px;
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-secondary);
    transition: width 0.3s ease;
}

.site-nav a:hover {
    color: var(--accent-primary);
}

.site-nav a:hover::after {
    width: 100%;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.theme-toggle:hover svg {
    fill: white;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

.page-content {
    padding: 3rem 0;
    min-height: calc(100vh - 300px);
}

/* ================================================
   NEW TEXT-BASED COMPONENTS (No Icons)
   ================================================ */

/* Bracket Badge Style */
.badge-text {
    display: inline-block;
    background: rgba(30, 58, 95, 0.08);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-family: var(--font-mono);
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(30, 58, 95, 0.08);
    color: var(--accent-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
}

.section-badge.featured-badge {
    background: rgba(201, 162, 39, 0.12);
    color: #8B7518;
    border-color: rgba(201, 162, 39, 0.3);
}

/* Date Text Style */
.date-text {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-mono);
}

.date-text::before {
    content: '[';
    color: var(--text-muted);
}

.date-text::after {
    content: ']';
    color: var(--text-muted);
}

/* Reading Time Text */
.reading-time-text {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.reading-time-text::before {
    content: '(';
}

.reading-time-text::after {
    content: ')';
}

/* Category Hash Tag */
.category-hash {
    display: inline-flex;
    align-items: center;
    background: rgba(74, 144, 164, 0.1);
    color: var(--accent-tertiary);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid rgba(74, 144, 164, 0.2);
    transition: all 0.2s ease;
}

.category-hash:hover {
    background: var(--accent-tertiary);
    color: white;
    border-color: var(--accent-tertiary);
}

/* Plain Tag (no hash) */
.tag-text {
    display: inline-block;
    background: rgba(30, 58, 95, 0.05);
    color: var(--accent-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.tag-text:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* CTA Arrow Style */
.cta-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-arrow::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
}

.cta-arrow:hover {
    color: var(--accent-secondary);
    text-decoration: none;
}

.cta-arrow:hover::after {
    transform: translateX(4px);
}

/* Button CTA */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button::after {
    content: '→';
}

.cta-button:hover {
    background: var(--accent-secondary);
    text-decoration: none;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
}

.cta-button.secondary:hover {
    background: var(--accent-primary);
    color: white;
}

/* Stat Number (Large) */
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    display: block;
    font-weight: 600;
}

/* Section Title */
.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Posts Count */
.posts-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* ================================================
   BLOG HERO SECTION
   ================================================ */
.blog-hero {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    padding: 5rem 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(74, 144, 164, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(201, 162, 39, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 60% 20%, rgba(30, 58, 95, 0.05) 0%, transparent 20%);
    animation: moleculeFloat 12s ease-in-out infinite;
}

@keyframes moleculeFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 10px); }
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(74, 144, 164, 0.15);
    border-radius: 50%;
    transform: translateY(-50%) rotateX(75deg);
    animation: orbitalSpin 20s linear infinite;
}

@keyframes orbitalSpin {
    from { transform: translateY(-50%) rotateX(75deg) rotate(0deg); }
    to { transform: translateY(-50%) rotateX(75deg) rotate(360deg); }
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge-wrapper {
    margin-bottom: 1.5rem;
}

.blog-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--accent-primary);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.blog-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: rgba(30, 58, 95, 0.03);
    border: 1px solid var(--border-light);
    padding: 1.5rem 3rem;
    border-radius: 12px;
    position: relative;
}

.blog-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--border-color), transparent);
}

.hero-scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    animation: scrollGentle 2s ease-in-out infinite;
}

.hero-scroll-indicator:hover {
    color: var(--accent-secondary);
}

@keyframes scrollGentle {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* ================================================
   SECTION STYLES
   ================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ================================================
   RESEARCH AREAS (Cards without icons)
   ================================================ */
.research-areas {
    margin-bottom: 4rem;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.area-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-tertiary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.area-card:nth-child(1)::before {
    background: linear-gradient(180deg, var(--accent-primary), #2E5A8F);
}

.area-card:nth-child(2)::before {
    background: linear-gradient(180deg, var(--accent-tertiary), #5AA0B4);
}

.area-card:nth-child(3)::before {
    background: linear-gradient(180deg, var(--accent-secondary), #D9B227);
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
    text-decoration: none;
}

.area-card:hover::before {
    transform: scaleY(1);
}

.area-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease;
}

.area-card:hover .area-card-title {
    color: var(--accent-primary);
}

.area-card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* ================================================
   FEATURED POST CARD
   ================================================ */
.featured-section {
    margin-bottom: 4rem;
}

.featured-post-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.featured-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
}

.featured-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

.featured-post-card-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.decoration-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.featured-card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.35;
    margin: 0 0 0.75rem 0;
    font-weight: 700;
}

.featured-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.featured-card-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-secondary);
    transition: width 0.3s ease;
}

.featured-card-title a:hover {
    color: var(--accent-primary);
}

.featured-card-title a:hover::after {
    width: 100%;
}

.featured-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 1.25rem 0;
}

.featured-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.featured-card-categories {
    display: flex;
    gap: 0.4rem;
}

/* ================================================
   CATEGORY FILTER
   ================================================ */
.category-filter-section {
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.category-filter-header {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.category-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 58, 95, 0.04);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-filter-chip:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    text-decoration: none;
}

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

.category-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-left: 0.25rem;
}

.category-filter-chip:hover .category-filter-count,
.category-filter-chip.active .category-filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ================================================
   POSTS GRID
   ================================================ */
.posts-section {
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-tertiary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

.post-card:hover::before {
    transform: scaleY(1);
}

.post-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.post-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.post-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.post-card-title a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-secondary);
    transition: width 0.3s ease;
}

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

.post-card-title a:hover::after {
    width: 100%;
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0 0 1rem 0;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.post-card-categories {
    margin-bottom: 1rem;
}

/* ================================================
   POSTS LIST (for index page)
   ================================================ */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.post-list-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.post-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-tertiary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.post-list-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

.post-list-item:hover::before {
    transform: scaleY(1);
}

.post-list-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.post-list-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.post-list-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-list-title a:hover {
    color: var(--accent-primary);
}

.post-list-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.post-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

/* ================================================
   NEWSLETTER SECTION
   ================================================ */
.newsletter-section {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 14px;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.newsletter-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.newsletter-circle {
    position: absolute;
    border-radius: 50%;
}

.newsletter-circle-1 {
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74, 144, 164, 0.08) 0%, transparent 70%);
}

.newsletter-circle-2 {
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
}

.newsletter-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 95, 0.02) 1px, transparent 1px);
    background-size: 25px 25px;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--accent-primary);
    margin: 0 0 0.75rem 0;
    font-weight: 700;
}

.newsletter-text {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    font-size: 1rem;
}

.newsletter-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.newsletter-feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.newsletter-feature::before {
    content: '✓';
    color: var(--accent-tertiary);
    font-weight: bold;
}

.newsletter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-secondary);
    padding: 2.5rem 0 1.25rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
}

.footer-col-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-media-list {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-media-list li {
    display: inline-block;
}

.social-media-list a {
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(30, 58, 95, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
}

.social-media-list a:hover {
    color: var(--accent-primary);
    background: rgba(30, 58, 95, 0.08);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    text-decoration: none;
}

.footer-text {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ================================================
   CONTENT PAGES TYPOGRAPHY
   ================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.35;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
    font-weight: 700;
}

h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.5rem; border-bottom: 2px solid var(--border-light); padding-bottom: 0.4rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-secondary);
}

code {
    background: rgba(30, 58, 95, 0.06);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent-primary);
    border: 1px solid var(--border-light);
}

pre {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 3px solid var(--accent-primary);
    box-shadow: var(--shadow-card);
}

pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: var(--text-primary);
}

blockquote {
    border-left: 3px solid var(--accent-secondary);
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(201, 162, 39, 0.05);
    border-radius: 0 6px 6px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: rgba(30, 58, 95, 0.06);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(30, 58, 95, 0.02);
}

.post-content a {
    color: var(--accent-primary);
    border-bottom: 1px solid var(--accent-secondary);
    transition: all 0.2s ease;
}

.post-content a:hover {
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

/* ================================================
   POST PAGE SPECIFIC
   ================================================ */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
}

.post-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-meta time {
    font-family: var(--font-mono);
}

.post-author {
    color: var(--text-secondary);
}

.post-categories {
    display: flex;
    gap: 0.5rem;
}

.post-categories .category {
    color: var(--accent-tertiary);
    font-weight: 600;
}

.post-categories .category::before {
    content: '#';
}

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

.post-tags .tag {
    background: rgba(30, 58, 95, 0.05);
    color: var(--accent-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid var(--border-light);
}

/* Table of Contents */
#toc-card {
    padding: 0;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

#toc-card > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

#toc-card h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

#toc-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

#toc-toggle:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

#toc-content {
    padding: 1rem 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

#toc-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
    overflow: hidden;
}

#toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#toc-list li {
    margin-bottom: 0.5rem;
}

#toc-list a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    border-left: 2px solid transparent;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#toc-list a:hover {
    color: var(--accent-primary);
    background: rgba(30, 58, 95, 0.05);
    border-left-color: var(--accent-primary);
}

/* Post Content */
.post-content {
    font-size: var(--content-font-size, 17px);
    line-height: var(--content-line-height, 1.8);
    transition: font-size 0.2s ease;
}

.post-content h2 {
    margin-top: 2.5rem;
}

.post-content h3 {
    margin-top: 2rem;
}

/* References */
.post-references {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.post-references h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.post-references ol {
    padding-left: 1.5rem;
}

.post-references li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reference citations in content - ensure multiple refs on separate lines */

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.prev-post, .next-post {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    max-width: 45%;
    transition: color 0.2s ease;
}

.prev-post:hover, .next-post:hover {
    color: var(--accent-secondary);
    text-decoration: none;
}

.prev-post::before {
    content: '←';
}

.next-post::after {
    content: '→';
}

/* ================================================
   READING PROGRESS BAR
   ================================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* ================================================
   SCROLL TO TOP BUTTON
   ================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ================================================
   FONT SIZE CONTROLS
   ================================================ */
.font-size-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-light);
}

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

.font-size-buttons {
    display: flex;
    gap: 0.25rem;
}

.font-size-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.font-size-btn[data-size="13"] { font-size: 0.6rem; }
.font-size-btn[data-size="15"] { font-size: 0.7rem; }
.font-size-btn[data-size="17"] { font-size: 0.8rem; }
.font-size-btn[data-size="19"] { font-size: 0.9rem; }
.font-size-btn[data-size="21"] { font-size: 1rem; }
.font-size-btn[data-size="23"] { font-size: 1.1rem; }

.font-size-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.font-size-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* ================================================
   CODE COPY BUTTON
   ================================================ */
pre {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

pre:hover .copy-btn {
    opacity: 1;
}

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

.copy-btn.copied {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

.copy-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ================================================
   TOC SIDEBAR
   ================================================ */
.post-layout {
    display: flex;
    gap: 2rem;
    position: relative;
}

.post-main {
    flex: 1;
    min-width: 0;
}

.toc-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc-sidebar-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.toc-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.toc-sidebar-header h3 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

.toc-sidebar-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.toc-sidebar-toggle:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.toc-sidebar-content {
    padding: 0.75rem 1rem;
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.toc-sidebar-content.collapsed {
    max-height: 0;
    padding: 0 1rem;
    overflow: hidden;
}

.toc-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-sidebar-list li {
    margin-bottom: 0.25rem;
}

.toc-sidebar-list a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    border-left: 2px solid transparent;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.toc-sidebar-list a:hover,
.toc-sidebar-list a.active {
    color: var(--accent-primary);
    background: rgba(30, 58, 95, 0.05);
    border-left-color: var(--accent-primary);
}

.toc-sidebar-list .toc-h3 {
    padding-left: 1.25rem;
}

.toc-sidebar-list .toc-h4 {
    padding-left: 2rem;
}

@media (max-width: 1200px) {
    .toc-sidebar {
        display: none;
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 1.5rem;
        border-radius: 12px;
    }
    
    .blog-hero-title {
        font-size: 1.75rem;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
    }
    
    .stat-divider {
        width: 50px;
        height: 1px;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .post-card {
        padding: 1.25rem;
    }
    
    .featured-post-card {
        padding: 1.5rem;
    }
    
    .featured-card-title {
        font-size: 1.2rem;
    }
    
    .category-filter-section {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .newsletter-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-section {
        padding: 2rem 1.25rem;
    }
    
    .newsletter-title {
        font-size: 1.35rem;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .area-card {
        padding: 1.25rem;
    }
    
    .post-list-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .prev-post, .next-post {
        max-width: 100%;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .font-size-controls {
        margin-left: 0;
        padding-left: 0;
        padding-top: 0.75rem;
        border-left: none;
        border-top: 1px solid var(--border-light);
        margin-top: 0.75rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 2rem 1.25rem;
    }
    
    .blog-hero-title {
        font-size: 1.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .featured-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-header {
        padding: 0.75rem 0;
    }
    
    .site-title {
        font-size: 1.15rem;
    }
    
    .site-nav {
        float: none;
        margin-top: 0.75rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .site-nav a {
        margin-left: 0;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
