/* Red Site Software - Newspaper Article Styling */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --primary-color: #dc2626;
    --text-dark: #1a202c;
    --text-light: #718096;
    --background: #f7fafc;
    --white: #ffffff;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #1a202c;
    background: #ffffff;
    font-size: 18px;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

.article-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-bottom: 4px solid #8b1538;
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" fill="none"><defs><pattern id="newspaper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="20" fill="url(%23newspaper)"/></svg>');
    opacity: 0.3;
}

.back-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    transition: all 0.3s ease;
}

.back-nav:hover {
    color: white;
    transform: translateX(-5px);
}

.article-header h1 {
    font-family: 'Georgia', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border-radius: 15px;
    margin: 30px auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.article-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
    background: white;
    position: relative;
}

/* Newspaper-style columns for larger screens */
@media (min-width: 768px) {
    .article-content {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 60px;
        align-items: start;
    }
    
    .main-content {
        grid-column: 1;
    }
    
    .sidebar {
        grid-column: 2;
        position: sticky;
        top: 20px;
    }
}

.main-content h2 {
    font-family: 'Georgia', serif;
    color: #1a202c;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 50px 0 25px 0;
    border-bottom: 3px solid #dc2626;
    padding-bottom: 15px;
    position: relative;
    font-weight: 700;
}

.main-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #8b1538;
}

.main-content h3 {
    font-family: 'Georgia', serif;
    color: #2d3748;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin: 35px 0 20px 0;
    font-weight: 600;
}

.main-content h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #4a5568;
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.main-content p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
}

.main-content p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d3748;
}

/* Drop cap for first paragraph */
.main-content p:first-of-type::first-letter {
    font-family: 'Georgia', serif;
    font-size: 4rem;
    line-height: 1;
    float: left;
    margin: 8px 8px 0 0;
    color: #dc2626;
    font-weight: bold;
}

.main-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.main-content li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.highlight-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 6px solid #0ea5e9;
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.highlight-box::before {
    content: '"';
    font-size: 4rem;
    color: #0ea5e9;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: 'Georgia', serif;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.metric-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.metric-card .number {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #dc2626;
    display: block;
    margin-bottom: 8px;
}

.metric-card .label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Legacy metric styling for backwards compatibility */
.metric-value {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #dc2626;
    display: block;
    margin-bottom: 8px;
}

.metric-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Sidebar styling */
.sidebar {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.sidebar h3 {
    font-family: 'Georgia', serif;
    color: #1a202c;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc2626;
}

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

.sidebar li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sidebar li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-size: 0.8rem;
}

.sidebar a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #dc2626;
}

.sidebar p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Technical details styling */
.tech-details {
    background: #1a202c;
    color: #f7fafc;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.tech-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #b91c1c, #8b1538);
}

.tech-details h4 {
    color: #f7fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 15px;
}

.tech-details p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    margin-bottom: 15px;
}

.tech-details ul {
    margin: 15px 0;
    padding-left: 20px;
}

.tech-details li {
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
}

/* Pull quotes */
.pull-quote {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #dc2626;
    text-align: center;
    margin: 50px 0;
    padding: 30px;
    position: relative;
    background: linear-gradient(135deg, #fef7f7, #fef2f2);
    border-radius: 12px;
}

.pull-quote::before,
.pull-quote::after {
    content: '"';
    font-size: 3rem;
    color: #dc2626;
    font-family: 'Georgia', serif;
    position: absolute;
}

.pull-quote::before {
    top: 10px;
    left: 20px;
}

.pull-quote::after {
    bottom: 10px;
    right: 20px;
    transform: rotate(180deg);
}

/* Statistics and numbers */
.stats-container {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.big-stat {
    font-family: 'Georgia', serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: #dc2626;
    display: block;
    margin-bottom: 10px;
}

.stat-description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 20px;
}

/* CTA sections */
.cta-section {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 40px;
    margin: 40px 0;
    border-radius: 12px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    transition: transform 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Author bio */
.author-bio {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    color: #1a202c;
    margin-bottom: 8px;
}

.author-info p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .article-content {
        padding: 40px 20px;
        display: block;
    }
    
    .sidebar {
        margin-top: 40px;
        padding: 20px;
    }
    
    .main-content p:first-of-type::first-letter {
        font-size: 3rem;
        margin: 5px 5px 0 0;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 60px 15px 40px;
    }
    
    .article-content {
        padding: 30px 15px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* Print styles */
@media print {
    .article-header {
        background: none !important;
        color: black !important;
    }
    
    .back-nav {
        display: none;
    }
    
    .sidebar {
        display: none;
    }
    
    .article-content {
        display: block;
        padding: 20px;
    }
    
    .hero-image {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
}