/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #f97316;
    --background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-lighter: #a4b4cb;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --gradient: linear-gradient(135deg, #082f49 0%, #0c4a6e 100%);
    --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.1);
    
    /* Typography */
    --font-primary: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Dark mode support */
[data-theme="dark"] {
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --border: #334155;
    --border-light: #1e293b;
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

[data-theme="dark"] .hero {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('/images/paolo-bg.jpg') center/cover no-repeat;
}

[data-theme="dark"] .hero-content {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Light mode colors (default) */
html:not([data-theme="dark"]) .nav-brand,
html[data-theme="light"] .nav-brand {
    color: #1f2937 !important;
}

html:not([data-theme="dark"]) .nav-brand-subtitle,
html[data-theme="light"] .nav-brand-subtitle {
    color: #1f2937 !important;
}

html:not([data-theme="dark"]) .nav-link,
html[data-theme="light"] .nav-link {
    color: #1f2937 !important;
}

html:not([data-theme="dark"]) .nav-link:hover,
html[data-theme="light"] .nav-link:hover,
html:not([data-theme="dark"]) .nav-link.active,
html[data-theme="light"] .nav-link.active {
    color: var(--accent) !important;
    transform: scale(1.05);
}

html:not([data-theme="dark"]) .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:hover {
    color: var(--accent) !important;
    transform: scale(1.1);
}

html:not([data-theme="dark"]) .theme-toggle,
html[data-theme="light"] .theme-toggle {
    color: #1f2937 !important;
}

html:not([data-theme="dark"]) .hero-title,
html[data-theme="light"] .hero-title {
    color: #1f2937 !important;
}

html:not([data-theme="dark"]) .hero-bio p,
html[data-theme="light"] .hero-bio p {
    color: #1f2937 !important;
}

/* Dark mode colors */
[data-theme="dark"] .nav-brand,
[data-theme="dark"] .nav-link,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .hero-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .hero-subtitle {
    color: #d1d5db;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--accent) !important;
    transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle:hover {
    color: var(--accent) !important;
    transform: scale(1.1);
}

[data-theme="dark"] .nav-brand-subtitle,
[data-theme="dark"] .hero-bio p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .recent-posts {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Base */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: transparent;
    transition: opacity 0.3s ease;
}

.nav {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    margin: 0 auto;
    max-width: 1000px;
    padding: var(--space-md) var(--space-xl);
}

[data-theme="dark"] .nav {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-brand {
    text-decoration: none;
    color: #0f172a;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 36px;
    width: auto;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 1.125rem;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-weight: 500;
    line-height: 1;
    height: 100%;
    min-height: 2.25rem;
}

.theme-toggle:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    margin: 0 -50vw;
    left: 50%;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('/images/paolo-bg.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(8, 145, 178, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(37, 99, 235, 0.01) 0%, transparent 30%),
        linear-gradient(120deg, transparent 0%, rgba(37, 99, 235, 0.005) 50%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    max-width: 900px;
    width: 90%;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: #0f172a;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #374151;
    font-style: italic;
    margin-bottom: var(--space-2xl);
    margin-top: var(--space-sm);
}

.gradient-text {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-bio {
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-bio p {
    font-size: 1.125rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    text-align: left;
}

.hero-bio p:last-child {
    margin-bottom: 0;
}

.hero-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.hero-social-link {
    display: inline-block;
    color: var(--text-secondary);
    padding: var(--space-md) var(--space-lg);
    transition: color 0.3s ease;
}

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

.hero-social-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.scroll-link {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Image Gallery */
.image-gallery {
    text-align: center;
    margin: var(--space-2xl) 0;
}

.gallery-image {
    max-width: 400px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.image-gallery figcaption {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: var(--space-md);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
}

.modal-image {
    display: block;
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .gallery-image {
        max-width: 300px;
    }
    
    .modal-content {
        width: 95%;
        padding: 10px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-arrow {
    margin-left: var(--space-sm);
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.btn:hover .btn-arrow {
    opacity: 1;
    transform: translateY(2px);
}


/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.section-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

.section-link:hover::after {
    width: 100%;
}

/* Newsletter */
.newsletter {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

[data-theme="dark"] .newsletter {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.newsletter-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.subscription-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.email-input {
    flex: 1;
    padding: var(--space-md) var(--space-xl);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--surface);
    color: var(--text-primary);
    transition: var(--transition);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.subscribe-btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-slow);
    white-space: nowrap;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.subscription-form .form-note {
    font-size: 0.875rem !important;
    color: var(--text-light) !important;
    text-align: center;
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }
    
    .email-input {
        margin-bottom: var(--space-sm);
    }
}

/* Page Styles (About, Contact, Now, etc.) */
.page-container {
    padding-top: calc(var(--space-3xl) + 80px);
    padding-bottom: var(--space-3xl);
}

.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.page-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.page-body > p {
    margin-bottom: var(--space-xl);
}

.page-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary);
}

.page-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-xl);
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary);
}

.page-body .intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-3xl);
    font-style: italic;
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.9) 0%, rgba(254, 240, 138, 0.1) 50%, rgba(253, 186, 116, 0.1) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(251, 146, 60, 0.2);
    box-shadow: 0 4px 20px rgba(251, 146, 60, 0.1);
    position: relative;
    overflow: hidden;
}

.page-body .intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

[data-theme="dark"] .page-body .intro {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(251, 146, 60, 0.05) 50%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(251, 146, 60, 0.3);
    box-shadow: 0 4px 20px rgba(251, 146, 60, 0.15);
}

.page-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
    position: relative;
    clear: both;
}

.page-body h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.page-body .expertise {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.page-body .expertise-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(254, 252, 232, 0.8) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.page-body .expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
}

.page-body .expertise-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
}

[data-theme="dark"] .page-body .expertise-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .page-body .expertise-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-body .expertise strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.page-body .expertise p {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-body .expertise p:last-child {
    margin-bottom: 0;
}

.page-body p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
}

.page-body ul {
    margin: var(--space-xl) 0;
}

.page-body ul li {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.page-body ul li strong {
    color: var(--text-primary);
}

.page-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: var(--transition-fast);
}

.page-body a:hover {
    color: var(--text-primary);
    text-decoration-thickness: 3px;
}

.page-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--text-secondary), transparent);
    margin: var(--space-3xl) 0;
}

/* Removed - was making inline italics look weird */

/* Page animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-body > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.page-body > *:nth-child(1) { animation-delay: 0.1s; }
.page-body > *:nth-child(2) { animation-delay: 0.2s; }
.page-body > *:nth-child(3) { animation-delay: 0.3s; }
.page-body > *:nth-child(4) { animation-delay: 0.4s; }
.page-body > *:nth-child(5) { animation-delay: 0.5s; }

/* Two-column sections */
.page-body .two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin: var(--space-2xl) 0;
}

@media (max-width: 768px) {
    .page-body .two-columns {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* Page images */
.page-body img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: var(--space-xl) 0;
}

.page-body .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

.page-body .image-grid img {
    margin: 0;
    aspect-ratio: 1;
    object-fit: cover;
}

.page-body .float-right {
    width: 250px;
    height: 250px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    float: right;
    margin: 0 0 var(--space-md) var(--space-lg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.8);
    clear: right;
}

.page-body .float-left {
    width: 250px;
    height: 250px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    float: left;
    margin: 0 var(--space-lg) var(--space-md) 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.8);
    clear: left;
}

/* Make the first profile picture larger */
.page-body p:first-of-type img.float-right {
    width: 320px;
    height: 320px;
}

/* Text alignment based on section content */
.page-body .text-left {
    text-align: left;
}

.page-body .text-right {
    text-align: right;
}

@media (max-width: 768px) {
    .page-body .float-right,
    .page-body .float-left {
        float: none;
        margin: var(--space-lg) auto;
        display: block;
        clear: both;
    }
}


/* Connect section styling */
.page-body .connect-section {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.8) 0%, rgba(254, 240, 138, 0.2) 50%, rgba(167, 243, 208, 0.2) 100%);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
    margin: var(--space-3xl) 0;
    text-align: center;
}

[data-theme="dark"] .page-body .connect-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(51, 65, 85, 0.8) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Dark mode adjustments for about page */
[data-theme="dark"] .page-content {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .page-title,
[data-theme="dark"] .page-body h1,
[data-theme="dark"] .page-body h2 {
    color: #f8fafc;
}

[data-theme="dark"] .page-body .intro {
    color: #cbd5e1;
}

[data-theme="dark"] .page-body p,
[data-theme="dark"] .page-body li {
    color: #cbd5e1;
}

[data-theme="dark"] .page-body ul li strong {
    color: #f8fafc;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-filters .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

[data-theme="dark"] .category-filters {
    border-color: rgba(255, 255, 255, 0.1);
}

.category-filter {
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

[data-theme="dark"] .category-filter {
    border-color: rgba(255, 255, 255, 0.1);
}

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

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

/* Category-specific colors for filter buttons */
.category-filter[data-category="life"] {
    border-color: rgba(34, 197, 94, 0.3);
}

.category-filter[data-category="life"]:hover,
.category-filter[data-category="life"].active {
    background: rgb(34, 197, 94);
    border-color: rgb(34, 197, 94);
    color: white;
}

.category-filter[data-category="tech & science"] {
    border-color: rgba(59, 130, 246, 0.3);
}

.category-filter[data-category="tech & science"]:hover,
.category-filter[data-category="tech & science"].active {
    background: rgb(59, 130, 246);
    border-color: rgb(59, 130, 246);
    color: white;
}

.category-filter[data-category="people"] {
    border-color: rgba(6, 182, 212, 0.3);
}

.category-filter[data-category="people"]:hover,
.category-filter[data-category="people"].active {
    background: rgb(6, 182, 212);
    border-color: rgb(6, 182, 212);
    color: white;
}

.category-filter[data-category="tradecraft"] {
    border-color: rgba(245, 158, 11, 0.3);
}

.category-filter[data-category="tradecraft"]:hover,
.category-filter[data-category="tradecraft"].active {
    background: rgb(245, 158, 11);
    border-color: rgb(245, 158, 11);
    color: white;
}

.category-filter[data-category="uncategorized"] {
    border-color: rgba(139, 92, 246, 0.3);
}

.category-filter[data-category="uncategorized"]:hover,
.category-filter[data-category="uncategorized"].active {
    background: rgb(139, 92, 246);
    border-color: rgb(139, 92, 246);
    color: white;
}

.post-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card.hiding {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.post-card.hidden {
    display: none;
}

/* Pagination */
.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: var(--space-3xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .pagination {
    border-color: rgba(255, 255, 255, 0.1);
}

.pagination-numbers {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    justify-self: center;
    grid-column: 2;
}

.pagination-prev {
    justify-self: start;
    grid-column: 1;
}

.pagination-next {
    justify-self: end;
    grid-column: 3;
}

.pagination-btn,
.pagination-number {
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    min-width: 44px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .pagination-btn,
[data-theme="dark"] .pagination-number {
    border-color: rgba(255, 255, 255, 0.1);
}

.pagination-btn:hover,
.pagination-number:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.pagination-number.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pagination-prev,
.pagination-next {
    /* Remove custom styling - inherit from .pagination-btn */
}

@media (max-width: 768px) {
    .pagination {
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .pagination-numbers {
        order: 2;
        justify-self: unset;
        grid-column: unset;
    }
    
    .pagination-prev {
        order: 1;
        justify-self: unset;
        grid-column: unset;
    }
    
    .pagination-next {
        order: 3;
        justify-self: unset;
        grid-column: unset;
    }
}

/* Recent Posts */
.recent-posts {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}


.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    grid-auto-rows: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    overflow: hidden;
    min-height: 320px;
    position: relative;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

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

.post-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

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

.post-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    height: 160px;
    position: relative;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
}

.post-header[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-blend-mode: overlay;
}

.post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(0, 0, 0, 0.7) 0%, 
                rgba(0, 0, 0, 0.4) 50%,
                rgba(0, 0, 0, 0.2) 100%);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.post-header[style*="background-image"] .post-header-overlay .post-title {
    color: white;
}

.post-header:not([style*="background-image"]) .post-header-overlay {
    background: none;
}

.post-header:not([style*="background-image"]) .post-header-overlay .post-title {
    color: white;
}

.post-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

.post-footer {
    margin-top: var(--space-md);
}

.read-more {
    color: var(--accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
}

.read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.post-card-link:hover .read-more {
    color: var(--accent);
}

.post-card-link:hover .read-more::after {
    width: 100%;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-light);
}

.post-tags {
    display: flex;
    gap: var(--space-sm);
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    color: rgba(59, 130, 246, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.post-card:hover .tag {
    background: rgba(59, 130, 246, 0.15);
    color: rgba(59, 130, 246, 1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.post-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

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

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

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.post-item .read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    position: relative;
    display: inline-block;
}

.post-item .read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.post-item .read-more:hover {
    color: var(--accent);
}

.post-item .read-more:hover::after {
    width: 100%;
}

/* Highlights */
.highlights {
    padding: var(--space-3xl) 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%),
        url('/images/topography.svg');
    background-size: cover, 400px 400px;
    background-repeat: no-repeat, repeat;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

[data-theme="dark"] .highlights {
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(51, 65, 85, 0.85) 100%);
    background-size: cover;
    background-repeat: no-repeat;
}

[data-theme="dark"] .highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/topography.svg');
    background-size: 400px 400px;
    background-repeat: repeat;
    filter: invert(1);
    opacity: 0.3;
    pointer-events: none;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.highlight-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    padding: var(--space-2xl);
    transition: var(--transition-slow);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
}

[data-theme="dark"] .highlight-card {
    background: none;
    backdrop-filter: blur(5px) brightness(1.6) saturate(0.8);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .highlight-card:hover {
    box-shadow: none;
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.highlight-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: #1e293b;
}

.highlight-card p {
    color: #374151;
    line-height: 1.7;
    font-weight: 400;
    font-size: 1.0625rem;
}

[data-theme="dark"] .highlight-card h3 {
    color: #0f172a;
}

[data-theme="dark"] .highlight-card p {
    color: #1e293b;
    font-weight: 500;
}

/* Article Styles */
.article {
    max-width: 1000px;
    margin: 0 auto;
    padding: calc(var(--space-3xl) + 80px) var(--space-lg) var(--space-3xl) var(--space-lg);
}

.article-featured-image {
    width: 100%;
    max-width: 800px;
    margin: 20px auto var(--space-3xl) auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .page-container {
        padding-top: calc(var(--space-lg) + 80px);
    }
    
    .page-content {
        padding: var(--space-lg) var(--space-md);
    }
    
    /* Article mobile adjustments */
    .article {
        padding: calc(var(--space-2xl) + 80px) var(--space-md) var(--space-2xl) var(--space-md);
    }
    
    .article-featured-image {
        margin: 10px auto var(--space-2xl) auto;
        border-radius: var(--radius-md);
    }
    
    .article-header {
        margin-bottom: var(--space-3xl);
    }
    
    .article-title {
        font-size: clamp(1.875rem, 6vw, 2.5rem);
        margin-bottom: var(--space-lg);
    }
    
    .article-meta {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
    
    .article-content::before {
        display: none;
    }
    
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-content p:first-of-type {
        font-size: 1.125rem;
    }
    
    .article-content p:first-of-type::first-letter {
        font-size: 3rem;
        line-height: 0.9;
        margin-right: 0.4rem;
        margin-top: 0.15rem;
    }
    
    .article-content p {
        text-align: left;
        margin-bottom: var(--space-lg);
    }
    
    .article-footer {
        margin-top: var(--space-3xl);
        padding-top: var(--space-2xl);
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    .article-share {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .share-link {
        padding: 0.875rem 2rem;
        width: 100%;
        max-width: 200px;
    }
    
    .article-nav {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .nav-prev,
    .nav-next {
        padding: var(--space-lg);
        text-align: center;
    }
    
    .nav-next {
        text-align: center;
    }
}

.article-header {
    margin-bottom: var(--space-4xl);
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 var(--space-xl);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.article-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, var(--surface) 100%);
    z-index: 2;
}

.article-header > * {
    position: relative;
    z-index: 3;
}

.article-header .article-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.article-header .article-meta {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    justify-content: center !important;
    font-size: 1.1rem !important;
}

.article-header .article-meta * {
    font-size: 1.1rem !important;
}

.article-header .article-tags {
    justify-content: center !important;
}

.article-header .reading-time {
    background: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.category-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-right: 0.125rem;
}

.article-category {
    color: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.025em;
    margin-right: 0.75rem;
}

/* Category colors */
.article-category[data-category="life" i] {
    background: rgba(34, 197, 94, 0.2); /* Green */
}

.article-category[data-category="tech & science" i] {
    background: rgba(59, 130, 246, 0.2); /* Blue */
}

.article-category[data-category="people" i] {
    background: rgba(6, 182, 212, 0.2); /* Cyan */
}

.article-category[data-category="tradecraft" i] {
    background: rgba(245, 158, 11, 0.2); /* Amber */
}

/* Default color for any other category */
.article-category:not([data-category]) {
    background: rgba(139, 92, 246, 0.2); /* Purple */
}

.article-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.article-tags .tag {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.article-engagement {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: var(--space-3xl);
    margin: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.email-comments {
    text-align: center;
    margin-top: var(--space-xl);
}

.email-comments h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.email-comments p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.email-comments a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.email-comments a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.newsletter-signup {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.newsletter-signup h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.newsletter-signup p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: var(--space-sm);
    align-items: stretch;
}

.email-input {
    flex: 1;
    padding: var(--space-lg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--surface);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.subscribe-btn {
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.comment-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.article-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary);
    position: relative;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.article-meta time {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

.reading-time {
    background: rgba(139, 92, 246, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.meta-separator {
    color: var(--border);
    font-weight: 300;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    position: relative;
    background: var(--surface);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    font-weight: 700;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.875rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: var(--space-xl);
    text-align: justify;
    hyphens: auto;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.article-content p:first-of-type {
    position: relative;
}

.article-content > p:first-of-type:not(.callout p)::first-letter {
    font-size: 4.6rem;
    font-weight: 800;
    float: left;
    line-height: 0.85;
    margin-right: 0.5rem;
    margin-top: 0.15rem;
    color: #0ea5e9;
    position: relative;
}

.callout p::first-letter {
    font-size: inherit !important;
    font-weight: inherit !important;
    float: none !important;
    line-height: inherit !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    color: inherit !important;
}

/* Webkit browsers with gradient support */
@supports (-webkit-background-clip: text) {
    .article-content p:first-of-type::first-letter {
        background: linear-gradient(135deg, #082f49 0%, #0c4a6e 100%) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        color: transparent;
    }
}

/* Firefox-specific alignment adjustment */
@-moz-document url-prefix() {
    .article-content p:first-of-type::first-letter {
        margin-top: 0.65rem !important;
        background: none !important;
        color: #082f49 !important;
        -webkit-text-fill-color: #082f49 !important;
    }
}

[data-theme="dark"] .article-content p:first-of-type::first-letter {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent;
}

[data-theme="dark"] @-moz-document url-prefix() {
    .article-content p:first-of-type::first-letter {
        background: none !important;
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }
}

/* Article content images */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: var(--space-lg) auto var(--space-sm) auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Image captions */
.article-content p img + em,
.article-content img[title]:after {
    display: block;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin: var(--space-sm) auto var(--space-xl) auto;
    max-width: 90%;
    line-height: 1.4;
}

/* Style for images followed by italicized text (manual captions) */
.article-content img + em {
    display: block !important;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin: var(--space-sm) auto var(--space-xl) auto;
    max-width: 90%;
    line-height: 1.4;
}

[data-theme="dark"] .article-content img {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .article-content img:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .article-content img + em {
    color: var(--text-muted);
}

[data-theme="dark"] .article-engagement {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: #6b7280;
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.article-content a:hover {
    border-bottom-color: var(--accent);
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: var(--space-lg);
    margin: var(--space-2xl) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content blockquote footer,
.article-content blockquote cite {
    display: block;
    margin-top: var(--space-md);
    font-style: normal;
    font-size: 0.9em;
    color: var(--text-light);
    text-align: right;
}

.article-content blockquote footer::before,
.article-content blockquote cite::before {
    content: "";
}

.article-content blockquote p:last-of-type {
    margin-bottom: 0;
}

/* Inline code */
code {
    font-family: var(--font-mono);
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    border: 1px solid #e5e7eb;
    font-weight: 500;
}

/* Code blocks */
pre {
    background: #f8f9fa !important;
    color: #1f2937 !important;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-2xl) 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

pre code {
    background: none !important;
    padding: 0;
    border: none;
    font-weight: 400;
    color: inherit !important;
}

/* Hugo syntax highlighting */
.highlight {
    margin: var(--space-2xl) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.highlight pre {
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: var(--space-lg);
}

/* Let chroma handle the background and colors */
.chroma {
    background-color: #f8f9fa !important;
}

/* Dark mode for chroma */
[data-theme="dark"] .chroma {
    background-color: #1f2937 !important;
}

/* Dark mode adjustments */
[data-theme="dark"] code {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

[data-theme="dark"] pre {
    background: #1f2937 !important;
    color: #f9fafb !important;
    border-color: #4b5563;
}

[data-theme="dark"] .highlight {
    border-color: #4b5563;
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.article-content li {
    margin-bottom: var(--space-sm);
}

/* Article Footer */
.article-footer {
    margin: 0;
    padding: 0;
}


.article-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    padding: var(--space-xl) 0;
}

.share-text {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: var(--space-md);
    font-size: 0.95rem;
}

.share-link {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.share-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.share-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.share-link:hover::before {
    left: 100%;
}

/* Article Navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.nav-prev,
.nav-next {
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-prev::before,
.nav-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.nav-prev:hover::before,
.nav-next:hover::before {
    opacity: 1;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: var(--space-sm);
    display: block;
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    display: block;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.nav-title {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-title:hover {
    color: var(--primary);
}

/* Lists */
.page-header {
    text-align: center;
    margin-bottom: 0;
    padding: var(--space-3xl) 0;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.post-item {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-slow);
    display: flex;
    gap: var(--space-xl);
    overflow: hidden;
}

.post-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.post-item-image {
    flex-shrink: 0;
    width: 200px;
}

.post-item-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.post-item-content {
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
}

.post-item-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.post-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

.post-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
}

.reading-time {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Old pagination styles removed - using new pagination system above */

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--space-2xl);
    align-items: center;
}

.footer-left {
    color: rgba(255, 255, 255, 0.8);
}

.footer-copyright {
    margin: 0;
    font-size: 0.875rem;
}

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    margin: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: white;
}


.footer-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.footer-action-btn {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
}

.footer-action-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-action-btn svg {
    width: 18px;
    height: 18px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    font-size: 0.875rem;
    padding: var(--space-sm);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.footer-link:hover {
    color: white;
}

.footer-link:hover::after {
    width: 80%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-lg);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation - full width, non-overlapping */
    .header {
        padding: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    [data-theme="dark"] .header {
        background: rgba(30, 41, 59, 0.95);
        border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    }
    
    .nav {
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
        max-width: none;
        padding: var(--space-md) var(--space-md);
        margin: 0;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding: var(--space-lg);
        gap: var(--space-md);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    [data-theme="dark"] .nav-menu {
        background: rgba(30, 41, 59, 0.95);
        border-top: 1px solid rgba(71, 85, 105, 0.3);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        text-align: center;
        padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-2xl);
        min-height: calc(100vh - 80px);
        background-position: 75% center;
        background-attachment: scroll;
        margin-top: 0;
    }
    
    .hero-content {
        max-width: none;
        width: calc(100% - 8px);
        margin: 0 4px;
        padding: var(--space-xl);
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    
    .hero-social {
        flex-direction: row;
        gap: var(--space-sm);
        justify-content: center;
    }
    
    .hero-social-icon {
        width: 20px;
        height: 20px;
    }
    
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .category-filters {
        justify-content: center;
        gap: var(--space-xs);
    }
    
    .category-filter {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .article-nav {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
        align-items: center;
    }
    
    .footer-center {
        order: 2;
    }
    
    /* Better touch targets for mobile */
    .nav-link, .theme-toggle, .social-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve readability on mobile */
    .article-content {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    /* Better button sizing */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-right {
        order: 3;
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .article-share {
        flex-wrap: wrap;
    }
    
    .pagination {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Search Styles */
.category-filters .search-container {
    position: relative;
    width: auto;
}

.search-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-primary);
    color: var(--text-secondary);
    transition: var(--transition);
    height: auto;
    /* Match the button height by using same padding as buttons */
    padding: var(--space-sm) var(--space-md);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

[data-theme="dark"] .search-input {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

[data-theme="dark"] .search-input:focus {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--text-primary);
}

.search-results {
    position: absolute;
    top: calc(100% + var(--space-sm));
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

[data-theme="dark"] .search-results {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-color: var(--border);
}

.search-result-item {
    display: block;
    padding: var(--space-md);
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(2px);
}

[data-theme="dark"] .search-result-item:hover,
[data-theme="dark"] .search-result-item.selected {
    background: rgba(59, 130, 246, 0.1);
}

.search-result-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.4;
}

.search-result-date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.search-result-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-no-results {
    padding: var(--space-md);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Mobile search adjustments */
@media (max-width: 768px) {
    .category-filters .search-container {
        max-width: 100%;
    }

    .search-input {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }

    .category-filters {
        gap: var(--space-sm);
    }
}


  .callout {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border-left: 4px solid;
  }

  .callout-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
  }

  .callout-author {
    font-weight: 600;
    font-style: normal;
    text-align: right;
    margin-top: 0.75rem;
    font-size: 1em;
    opacity: 0.8;
  }

  .callout-author::before {
    content: "— ";
  }

  .callout-note, .callout-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
  }

  .callout-tip, .callout-success {
    background: #e8f5e9;
    border-left-color: #4caf50;
  }

  .callout-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
  }

  .callout-danger, .callout-failure, .callout-bug {
    background: #ffebee;
    border-left-color: #f44336;
  }

  .callout-example {
    background: #f5f5f5;
    border-left-color: #9e9e9e;
  }

  .callout-quote {
    background: #f8fafc;
    border: none;
    border-radius: 0;
    font-style: italic;
    font-size: 1.125rem;
    color: #475569;
    position: relative;
    padding-left: 3rem;
    padding-top: 2rem;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }

  .callout-quote::before {
    content: '\201C';
    position: absolute;
    left: -1.25rem;
    top: -1.5rem;
    font-size: 6rem;
    line-height: 1;
    color: #cbd5e1;
    font-family: Georgia, serif;
    font-style: normal;
    font-weight: bold;
  }

/* Share Buttons */
.share-buttons {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.share-button-group {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.share-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.share-button:active {
    transform: translateY(0);
}

.share-copy .copy-feedback {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--text-primary);
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.share-copy.copied .copy-feedback {
    opacity: 1;
}

@media (max-width: 768px) {
    .share-button-group {
        gap: var(--space-xs);
    }
    
    .share-button {
        width: 40px;
        height: 40px;
    }
}
