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

html {
    scroll-behavior: smooth;
}

/* CSS Custom Properties */
:root {
    --bg-primary: #fefefe;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #666666;
    --border-color: #f0f0f0;
    --border-hover: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    --accent-color: #667eea;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 300;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Layout */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Header */
.header {
    padding: 2rem 0;
    border-bottom: 1px solid #f0f0f0;
    background-color: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.tagline {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    font-weight: 300;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--text-primary);
}



/* Search Functionality */
.search-container {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.search-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-width: 90vw;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.search-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box {
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--text-primary);
    background: var(--bg-tertiary);
}

.search-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.search-close:hover {
    color: var(--text-primary);
}

.search-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-results-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.search-result-meta {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
}

.search-result-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reading-progress.visible {
    opacity: 1;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.1s ease;
}

/* Article-specific styles */
.article-content {
    position: relative;
}

.article-toc {
    position: sticky;
    top: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.article-toc h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.article-toc ul {
    list-style: none;
    padding: 0;
}

.article-toc li {
    margin-bottom: 0.5rem;
}

.article-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    display: block;
    padding: 0.25rem 0;
}

.article-toc a:hover,
.article-toc a.active {
    color: var(--text-primary);
}


/* Loading Skeletons */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }

/* Micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.btn:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

.skeleton-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-image {
    height: 160px;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.skeleton-button {
    height: 40px;
    width: 120px;
    border-radius: 6px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.hero-description {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background-color: #1a1a1a;
    color: white;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background-color: #f8f8f8;
    border-color: #d0d0d0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
}

/* Newsletter Archive */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.newsletter-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.card-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #666;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.tool-card:hover {
    border-color: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}

.tool-category {
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.tool-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tool-rating {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tool-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.tool-link:hover {
    color: #666;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.insight-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border-left: 3px solid #1a1a1a;
}

.insight-category {
    background: #1a1a1a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

.insight-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.insight-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.insight-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

/* Tweet Threads */
.threads-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thread-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.thread-count {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.thread-date {
    font-size: 0.85rem;
    color: #888;
}

.thread-content {
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.thread-actions {
    display: flex;
    gap: 1rem;
}

.thread-action {
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.thread-action:hover {
    color: #1a1a1a;
}

/* About Section */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Modern Footer Design */
.footer {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e0e0e0 50%, transparent 100%);
}

/* Newsletter CTA Section */
.footer-newsletter-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.footer-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-cta-title {
    color: white;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.footer-cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.footer-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-subscribe-btn {
    background: white;
    color: #1a1a1a;
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-subscribe-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.footer-cta-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
}

/* Main Footer Content */
.footer-main {
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Brand Section */
.footer-brand-section {
    position: relative;
}

.footer-brand-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.footer-tagline {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
    font-style: italic;
}

.footer-mission {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Navigation Section */
.footer-nav-section {
    position: relative;
}

.footer-section-title {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.footer-nav-link:hover {
    color: #1a1a1a;
    padding-left: 0.5rem;
    background: rgba(26, 26, 26, 0.03);
}

.footer-nav-icon {
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-nav-link:hover .footer-nav-icon {
    opacity: 1;
}

/* Social & Connect Section */
.footer-social-section {
    position: relative;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    position: relative;
}

.footer-social-link:hover {
    color: #1a1a1a;
    padding-left: 0.5rem;
}

.footer-social-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-social-link:hover .footer-social-icon {
    opacity: 1;
}

/* Tooltip for RSS */
.tooltip-container {
    position: relative;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1a1a1a;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Utility Links */
.footer-utility {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
}

.footer-utility-title {
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.footer-utility-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-utility-link {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-utility-link:hover {
    color: #1a1a1a;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-year {
    font-weight: 500;
}

.footer-brand-name {
    font-weight: 600;
    color: #666;
}

.footer-separator {
    color: #ccc;
}

.footer-mission-text {
    font-style: italic;
}

/* Status Indicator */
.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-status-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.footer-status-text {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .footer {
        background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    }
    
    .footer-main {
        background: #1a1a1a;
    }
    
    .footer-logo-text,
    .footer-section-title {
        color: white;
    }
    
    .footer-mission,
    .footer-nav-link,
    .footer-social-link,
    .footer-tagline {
        color: #ccc;
    }
    
    .footer-nav-link:hover,
    .footer-social-link:hover {
        color: white;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .footer-bottom {
        background: rgba(0, 0, 0, 0.3);
        border-top-color: #333;
    }
    
    .footer-utility {
        border-top-color: #333;
    }
    
    .footer-utility-title {
        color: white;
    }
}

/* Multi-page Styles */
.page-hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.page-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.page-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Content Previews */
.content-preview {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.preview-section {
    background: #fafafa;
    border-radius: 12px;
    padding: 2rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.preview-header h4 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0;
}

.preview-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.preview-link:hover {
    color: #666;
}

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

/* Modern Newsletter Archive */

/* Filter Section */
.newsletter-filter-section {
    background: #fafafa;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0;
}

.results-count {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-tag {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    position: relative;
}

.filter-tag:hover,
.filter-tag.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.filter-close {
    display: none;
}

/* Filter tag X for active states */
.filter-tag.active:not([data-category="all"]) .filter-close {
    display: inline;
    margin-left: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.8;
}

.filter-tag.active:not([data-category="all"]):hover .filter-close {
    opacity: 1;
}

/* Filter tag tooltips */
.filter-tag {
    position: relative;
}

.filter-tag .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    margin-bottom: 0.5rem;
    pointer-events: none;
}

.filter-tag .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1a1a1a;
}

.filter-tag:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Newsletter Grid Layout */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Newsletter Card */
.newsletter-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.newsletter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.newsletter-card:active {
    transform: translateY(-4px);
    transition: all 0.15s ease;
}

/* Card Thumbnail */
.card-thumbnail {
    height: 160px;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.thumbnail-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.thumbnail-placeholder.policy {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.thumbnail-placeholder.tools {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.thumbnail-placeholder.research {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.thumbnail-placeholder.startup {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.thumbnail-placeholder.safety {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.thumbnail-placeholder.tools {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.thumbnail-placeholder.research {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.thumbnail-placeholder.startup {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.thumbnail-placeholder.safety {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.thumbnail-icon {
    font-size: 2.5rem;
    opacity: 0.95;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.newsletter-card:hover .thumbnail-icon {
    transform: scale(1.05);
}

.thumbnail-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.card-issue-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
}

.card-issue-number:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-issue-number:active {
    transform: scale(0.98);
}

/* Card Content */
.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.card-date {
    font-weight: 500;
}

.card-read-time {
    color: #666;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.card-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Card Tags */
.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Card Actions */
.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #666;
}

.card-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.newsletter-card:hover .card-arrow {
    transform: translateX(4px);
}

/* Card Engagement */
.card-engagement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    color: #888;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-btn svg {
    width: 16px;
    height: 16px;
}

.bookmark-btn:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.bookmark-btn.bookmarked {
    color: #1a1a1a;
    background: #f0f0f0;
}

.bookmark-btn.bookmarked svg {
    fill: currentColor;
}

.engagement-stats {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.75rem;
    color: #888;
}

.stat-item {
    font-weight: 500;
}

/* Newsletter Pagination */
.newsletter-pagination {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    text-align: center;
}

.pagination-info {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.load-more-btn {
    margin-bottom: 2rem;
    padding: 0.875rem 2rem;
}

.pagination-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-width: 40px;
}

.page-btn:hover,
.page-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.page-dots {
    color: #ccc;
    padding: 0 0.5rem;
}

.next-btn {
    font-weight: 500;
}

/* Legacy styles for share buttons */
.share-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Tool Filters */
.tool-filters,
.insight-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.filter-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Enhanced Tool Cards */
.tool-card.featured,
.insight-card.featured {
    position: relative;
    border: 2px solid #1a1a1a;
}

.tool-badge,
.insight-badge {
    position: absolute;
    top: -1px;
    right: 1rem;
    background: #1a1a1a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0 6px 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tool-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.feature-tag {
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #666;
}

.tool-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price {
    font-weight: 600;
    color: #1a1a1a;
}

.price-note {
    font-size: 0.85rem;
    color: #666;
}

.tool-actions {
    display: flex;
    gap: 0.5rem;
}

/* Enhanced Insight Cards */
.insight-content-preview {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-style: italic;
    color: #666;
}

.insight-actions {
    display: flex;
    gap: 0.5rem;
}

.author {
    color: #888;
    font-size: 0.85rem;
}

/* Thread Styles */
.threads-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.thread-post {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.thread-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.profile-handle {
    color: #666;
    font-size: 0.85rem;
}

.thread-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.thread-count {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.thread-time {
    font-size: 0.8rem;
    color: #888;
}

.thread-content p {
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.thread-actions {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.thread-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.thread-action:hover {
    color: #1a1a1a;
}

.action-icon {
    font-size: 1rem;
}

.action-count {
    font-weight: 500;
}

.thread-continuation {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.thread-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.expand-thread {
    background: none;
    border: none;
    color: #1a1a1a;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.expand-thread:hover {
    color: #666;
}

/* About Page */
.about-story,
.about-approach,
.about-content-types,
.about-team,
.about-community,
.about-contact {
    margin-bottom: 3rem;
}

.approach-grid,
.content-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.approach-card,
.content-type {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #1a1a1a;
}

.approach-card h3,
.content-type h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-values ul {
    list-style: none;
    padding: 0;
}

.team-values li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.team-values li:last-child {
    border-bottom: none;
}

.community-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.community-action {
    background: #fafafa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.community-action h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.social-buttons,
.explore-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    text-align: center;
}

.contact-method h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

/* Social and CTA styles */
.social-links,
.social-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.social-btn:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Newsletter CTA */
.newsletter-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.newsletter-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-content .btn-primary {
    background: white;
    color: #1a1a1a;
}

.cta-content .btn-primary:hover {
    background: #f0f0f0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    align-items: center;
}

.pagination-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.pagination-dots {
    color: #888;
    padding: 0 0.5rem;
}

.pagination-next {
    font-weight: 500;
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Newsletter Post Styles */
.newsletter-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.newsletter-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #1a1a1a;
}

.breadcrumb-separator {
    color: #ccc;
}

.breadcrumb-current {
    color: #1a1a1a;
    font-weight: 500;
}

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

.newsletter-issue {
    background: #1a1a1a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.newsletter-date {
    color: #666;
    font-size: 0.9rem;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.newsletter-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.newsletter-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-newsletter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Newsletter Content */
.newsletter-content {
    line-height: 1.7;
    color: #333;
}

.newsletter-intro {
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.2rem;
    color: #1a1a1a;
    font-weight: 400;
    line-height: 1.6;
}

.newsletter-section {
    margin-bottom: 3rem;
}

.newsletter-section h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.newsletter-section h4 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 500;
}

.newsletter-section ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.newsletter-section li {
    margin-bottom: 0.75rem;
    color: #333;
}

/* Feature Highlights */
.feature-highlight {
    background: #fafafa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #1a1a1a;
}

.feature-item strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Quote Styling */
.newsletter-quote {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-left: 4px solid #1a1a1a;
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    border-radius: 0 8px 8px 0;
}

.newsletter-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

/* Comparison Table */
.comparison-table {
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
    background: #1a1a1a;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.comparison-table td {
    color: #333;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Application Showcase */
.application-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.app-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.app-category h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.app-category ul {
    margin: 0;
    padding-left: 1.5rem;
}

.app-category li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Challenge List */
.challenge-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.challenge-item {
    background: #fff5f5;
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.challenge-item h4 {
    color: #dc2626;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.challenge-item p {
    color: #333;
    margin: 0;
}

/* Future Trends */
.future-trends {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.trend {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.trend strong {
    color: #0369a1;
}

/* Tool Recommendations */
.tool-recommendations {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-rec {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.tool-rec:hover {
    border-color: #1a1a1a;
}

.tool-rec h4 {
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.tool-rec p {
    color: #666;
    margin: 0;
}

/* Newsletter Closing */
.newsletter-closing {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    border-left: 4px solid #1a1a1a;
}

.newsletter-closing p {
    margin-bottom: 1rem;
    color: #333;
}

.newsletter-closing p:last-child {
    margin-bottom: 0;
}

.signature {
    font-style: italic;
    color: #666;
    font-weight: 500;
}

/* Newsletter Footer */
.newsletter-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
    margin-top: 3rem;
}

.newsletter-actions-bottom {
    text-align: center;
    margin-bottom: 2rem;
}

.newsletter-social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.newsletter-social-share span {
    color: #666;
    font-size: 0.9rem;
}

.share-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.share-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.newsletter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-btn {
    color: #666;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-btn:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
    background: #fafafa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-grid,
    .tools-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Mobile Footer Styles */
    .footer-cta-title {
        font-size: 1.75rem;
    }
    
    .footer-cta-subtitle {
        font-size: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-nav {
        align-items: center;
    }
    
    .footer-social-links {
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-copyright {
        justify-content: center;
    }
    
    /* Newsletter Post Mobile Styles */
    .newsletter-post {
        padding: 0 1rem;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .newsletter-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .application-showcase {
        grid-template-columns: 1fr;
    }
    
    .newsletter-actions,
    .newsletter-social-share {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-navigation {
        flex-direction: column;
        text-align: center;
    }
    
    /* Newsletter Archive Mobile Styles */
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .newsletter-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .card-thumbnail {
        height: 140px;
    }
    
    .pagination-pages {
        justify-content: center;
        gap: 0.25rem;
    }
    
    .page-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        min-width: 36px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

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

    /* Featured Briefing Section */
    .featured-briefing-section {
        padding: 3rem 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-bottom: 1px solid #e9ecef;
    }

    .featured-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .featured-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
    }

    .featured-title {
        font-size: 1.75rem;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0;
    }

    .featured-badge {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .featured-card {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        background: white;
        border-radius: 16px;
        padding: 2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        border: 1px solid #f0f0f0;
        transition: all 0.3s ease;
    }

    .featured-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    }

    .featured-thumbnail {
        position: relative;
        height: 200px;
        border-radius: 12px;
        overflow: hidden;
    }

    .featured-thumbnail .thumbnail-placeholder {
        height: 100%;
        width: 100%;
    }

    .featured-thumbnail .thumbnail-icon {
        font-size: 3rem;
    }

    .featured-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .featured-meta {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        color: #666;
    }

    .featured-card-title {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1rem;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .featured-card-description {
        color: #555;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    .featured-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

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

    .featured-engagement {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .featured-bookmark {
        color: #1a1a1a;
    }

    /* Responsive design for featured section */
    @media (max-width: 768px) {
        .featured-card {
            grid-template-columns: 1fr;
            gap: 1.5rem;
            padding: 1.5rem;
        }

        .featured-thumbnail {
            height: 150px;
        }

        .featured-card-title {
            font-size: 1.5rem;
        }

        .featured-actions {
            flex-direction: column;
            align-items: stretch;
        }
    }

    /* Focus management and accessibility improvements */
    .filter-tag:focus,
    .bookmark-btn:focus,
    .card-link:focus,
    .btn:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
        border-radius: 6px;
    }

    .card-issue-number:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
        border-radius: 8px;
    }

    /* Skip link for accessibility */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: #1a1a1a;
        color: white;
        padding: 8px 16px;
        text-decoration: none;
        border-radius: 4px;
        z-index: 1000;
        transition: top 0.3s;
    }

    .skip-link:focus {
        top: 6px;
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .newsletter-card {
            border: 2px solid #1a1a1a;
        }
        
        .filter-tag {
            border: 2px solid #1a1a1a;
        }
        
        .card-title {
            color: #000;
        }
        
        .card-description {
            color: #333;
        }
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .newsletter-card,
        .featured-card,
        .filter-tag,
        .bookmark-btn,
        .card-issue-number,
        .thumbnail-icon {
            transition: none;
        }
        
        .newsletter-card:hover,
        .featured-card:hover {
            transform: none;
        }
    }

    /* 404 Error Page Styles */
    .error-404 {
        min-height: 60vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4rem 2rem;
        text-align: center;
    }

    .error-content {
        max-width: 600px;
        width: 100%;
    }

    .error-illustration {
        margin-bottom: 3rem;
        transition: transform 0.3s ease;
    }

    .error-icon {
        width: 200px;
        height: 200px;
        margin: 0 auto;
        display: block;
    }

    .error-title {
        font-size: 6rem;
        font-weight: 700;
        color: var(--accent-color);
        margin: 0 0 1rem 0;
        line-height: 1;
        letter-spacing: -0.02em;
    }

    .error-subtitle {
        font-size: 1.75rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 1.5rem 0;
        line-height: 1.2;
    }

    .error-message {
        font-size: 1.1rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin: 0 0 3rem 0;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .error-actions {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .error-suggestions {
        padding: 4rem 2rem;
        background: var(--bg-secondary);
    }

    .suggestions-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .suggestions-title {
        text-align: center;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 3rem;
    }

    .suggestions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .suggestion-card {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        text-decoration: none;
        transition: all 0.3s ease;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .suggestion-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: left 0.5s ease;
    }

    .suggestion-card:hover::before {
        left: 100%;
    }

    .suggestion-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        border-color: var(--accent-color);
    }

    .suggestion-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        display: block;
    }

    .suggestion-card h4 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 0.75rem 0;
    }

    .suggestion-card p {
        color: var(--text-secondary);
        margin: 0;
        line-height: 1.5;
    }


    /* Mobile optimizations for 404 */
    @media (max-width: 768px) {
        .error-404 {
            padding: 2rem 1rem;
            min-height: 50vh;
        }

        .error-title {
            font-size: 4rem;
        }

        .error-subtitle {
            font-size: 1.5rem;
        }

        .error-message {
            font-size: 1rem;
            margin-bottom: 2rem;
        }

        .error-actions {
            flex-direction: column;
            align-items: center;
        }

        .error-actions .btn {
            min-width: 200px;
        }

        .error-illustration {
            margin-bottom: 2rem;
        }

        .error-icon {
            width: 150px;
            height: 150px;
        }

        .suggestions-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .suggestion-card {
            padding: 1.5rem;
        }
    }

    /* Animation classes for 404 page */
    .fade-in {
        opacity: 0;
        animation: fadeIn 0.8s ease forwards;
    }

    .slide-in-left {
        opacity: 0;
        transform: translateX(-30px);
        animation: slideInLeft 0.8s ease forwards;
    }

    .slide-in-right {
        opacity: 0;
        transform: translateX(30px);
        animation: slideInRight 0.8s ease forwards;
    }

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

    @keyframes slideInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Legal Pages Styling */
    .legal-hero {
        background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
        padding: 6rem 2rem 4rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .legal-hero-content {
        max-width: 800px;
        margin: 0 auto;
    }

    .legal-title {
        font-size: 3rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 1rem 0;
        line-height: 1.1;
    }

    .legal-subtitle {
        font-size: 1.25rem;
        color: var(--text-secondary);
        margin: 0 0 2rem 0;
        line-height: 1.4;
    }

    .legal-meta {
        display: flex;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .legal-date {
        color: var(--text-tertiary);
        font-size: 0.9rem;
        background: var(--bg-primary);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        border: 1px solid var(--border-color);
    }

    .legal-content {
        padding: 4rem 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    .legal-container {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 4rem;
        align-items: start;
    }

    /* Legal Sidebar Navigation */
    .legal-sidebar {
        position: sticky;
        top: 2rem;
    }

    .legal-nav {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1.5rem;
    }

    .legal-nav h3 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 1rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .legal-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .legal-nav li {
        margin-bottom: 0.5rem;
    }

    .legal-nav a {
        display: block;
        padding: 0.5rem 0.75rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.9rem;
        border-radius: 6px;
        transition: all 0.2s ease;
        line-height: 1.3;
    }

    .legal-nav a:hover {
        background: var(--bg-primary);
        color: var(--text-primary);
        transform: translateX(4px);
    }

    /* Legal Content Body */
    .legal-body {
        max-width: 800px;
    }

    .legal-section {
        margin-bottom: 3rem;
        scroll-margin-top: 2rem;
    }

    .legal-section h2 {
        font-size: 1.75rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 1.5rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--accent-color);
        line-height: 1.2;
    }

    .legal-section h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 2rem 0 1rem 0;
        line-height: 1.3;
    }

    .legal-section h4 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 1.5rem 0 0.75rem 0;
        line-height: 1.3;
    }

    .legal-section p {
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .legal-section ul {
        color: var(--text-secondary);
        line-height: 1.6;
        margin: 1rem 0 1.5rem 1.5rem;
        padding: 0;
    }

    .legal-section li {
        margin-bottom: 0.5rem;
    }

    .legal-section a {
        color: var(--accent-color);
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: border-color 0.2s ease;
    }

    .legal-section a:hover {
        border-bottom-color: var(--accent-color);
    }

    /* Legal Highlights and Callouts */
    .legal-highlight {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-left: 4px solid var(--accent-color);
        border-radius: 8px;
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .legal-highlight h4 {
        color: var(--text-primary);
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .legal-highlight ul {
        margin-left: 1rem;
        margin-bottom: 0;
    }

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

    /* Legal Columns for Side-by-Side Content */
    .legal-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin: 1.5rem 0;
    }

    .legal-column h4 {
        margin-top: 0;
    }

    /* Contact Details Styling */
    .contact-details {
        background: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .contact-details p {
        margin-bottom: 0.75rem;
    }

    .contact-details p:last-child {
        margin-bottom: 0;
    }

    /* Mobile Responsiveness for Legal Pages */
    @media (max-width: 1024px) {
        .legal-container {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .legal-sidebar {
            position: static;
            order: -1;
        }

        .legal-nav {
            padding: 1rem;
        }

        .legal-nav h3 {
            font-size: 0.9rem;
        }

        .legal-nav ul {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0.5rem;
        }

        .legal-nav a {
            font-size: 0.85rem;
            padding: 0.4rem 0.6rem;
        }
    }

    @media (max-width: 768px) {
        .legal-hero {
            padding: 4rem 1rem 3rem;
        }

        .legal-title {
            font-size: 2.25rem;
        }

        .legal-subtitle {
            font-size: 1.1rem;
        }

        .legal-content {
            padding: 2rem 1rem;
        }

        .legal-section h2 {
            font-size: 1.5rem;
        }

        .legal-columns {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .legal-nav ul {
            grid-template-columns: 1fr;
        }

        .legal-highlight {
            padding: 1rem;
        }

        .contact-details {
            padding: 1rem;
        }
    }

    @media (max-width: 480px) {
        .legal-hero {
            padding: 3rem 1rem 2rem;
        }

        .legal-title {
            font-size: 2rem;
        }

        .legal-content {
            padding: 1.5rem 1rem;
        }

        .legal-section {
            margin-bottom: 2rem;
        }

        .legal-section ul {
            margin-left: 1rem;
        }
    }

    /* Newsletter Filter Section */