/* ==============================================
   IS TECH ADVISORS - BLOG STYLES (MOBILE-FIRST OPTIMIZED)
   Base styles target mobile devices (320px+)
   Progressively enhance for larger screens
   ============================================== */

/* === CSS VARIABLES & THEME SETUP === */
:root {
    /* Brand Colors - Technology/Trust (Blue) & Success/Growth (Green) */
    --blog-primary: #2563eb;
    --blog-primary-dark: #1e40af;
    --blog-success: #10b981;
    --blog-success-dark: #059669;
    --blog-accent: #6366f1;
    --blog-warning: #f59e0b;
    
    /* Text Colors - Light Mode */
    --text-heading: #1e293b;
    --text-body: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Background Colors - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #eff6ff;
    --bg-success-light: #f0fdf4;
    
    /* Borders & Shadows */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --line-height-base: 1.7;
    --line-height-heading: 1.3;
    
    /* MOBILE-FIRST Spacing (smaller defaults) */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    
    /* Container Widths */
    --container-narrow: 740px;
    --container-wide: 1200px;
    
    /* MOBILE-FIRST Padding for Articles */
    --article-padding-mobile: 1.25rem;  /* 20px - comfortable mobile padding */
    --article-padding-desktop: 3rem;     /* 48px - spacious desktop padding */
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* === DARK MODE VARIABLES === */
body.dark-mode {
    --blog-primary: #60a5fa;
    --blog-primary-dark: #3b82f6;
    --blog-success: #34d399;
    --blog-success-dark: #10b981;
    --blog-accent: #a78bfa;
    
    --text-heading: #f1f5f9;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-accent: #1e293b;
    --bg-success-light: #064e3b;
    
    --border-light: #334155;
    --border-medium: #475569;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* === BASE MOBILE-FIRST STYLES === */
body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--bg-secondary);
    line-height: var(--line-height-base);
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
}

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

/* === DARK MODE TOGGLE (MOBILE-FIRST) === */
.theme-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--blog-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--blog-primary-dark);
}

/* === ARTICLE HEADER (MOBILE-FIRST) === */
.article-header {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-accent) 100%);
    color: white;
    /* Mobile-first padding */
    padding: var(--space-xl) var(--article-padding-mobile);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.article-header .container {
    position: relative;
    z-index: 2;
}

/* === BREADCRUMB NAVIGATION === */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;  /* Allow wrapping on mobile */
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    font-size: 0.8125rem;  /* Slightly smaller on mobile */
    opacity: 0.9;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    opacity: 0.5;
}

.breadcrumb .current {
    color: white;
    font-weight: 500;
}

/* === CATEGORY BADGES (MOBILE-FIRST) === */
.article-category {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;  /* Smaller padding on mobile */
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;  /* Smaller text on mobile */
    font-weight: 500;
    color: white;
    backdrop-filter: blur(10px);
}

.category-badge i {
    font-size: 0.625rem;
}

/* === ARTICLE TITLE (MOBILE-FIRST) === */
.article-title {
    /* Mobile minimum: 1.625rem (26px), scales up to 2.5rem on desktop */
    font-size: clamp(1.625rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: var(--line-height-heading);
    margin-bottom: var(--space-md);
    color: white;
    letter-spacing: -0.02em;
}

/* === ARTICLE SUMMARY (MOBILE-FIRST) === */
.article-summary {
    /* Mobile minimum: 1rem (16px) for optimal readability */
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    opacity: 0.95;
    color: white;
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

.article-summary strong {
    font-weight: 600;
    color: white;
}

/* === ARTICLE META (MOBILE-FIRST) === */
.article-meta {
    display: flex;
    flex-direction: column;  /* Stack vertically on mobile */
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* === ARTICLE CONTENT CONTAINER (MOBILE-FIRST) === */
.article-content {
    background: var(--bg-primary);
    /* Mobile-first padding - comfortable reading on phones */
    padding: var(--space-lg) 0;
    min-height: 50vh;
}

.article-content .container {
    max-width: var(--container-narrow);
    /* Critical mobile padding to prevent overflow */
    padding: 0 var(--article-padding-mobile);
}

/* === TABLE OF CONTENTS (MOBILE-FIRST) === */
.table-of-contents {
    background: var(--bg-accent);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0;  /* Remove padding on mobile for cleaner look */
    margin-bottom: var(--space-xl);
}

.toc-toggle {
    width: 100%;
    padding: var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toc-toggle i {
    color: var(--blog-primary);
}

.toc-arrow {
    transition: transform 0.3s ease;
}

.toc-list {
    list-style: none;
    padding: var(--space-md);
    margin: 0;
    display: none;  /* Hidden by default on mobile */
}

.toc-list li {
    padding: 0.375rem 0;
}

.toc-list a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    padding-left: var(--space-md);
    border-left: 2px solid transparent;
    font-size: 0.875rem;
}

.toc-list a:hover {
    color: var(--blog-primary);
    border-left-color: var(--blog-primary);
}

/* === CONTENT TYPOGRAPHY (MOBILE-FIRST) === */
.article-content h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    /* Mobile minimum: 1.375rem (22px) */
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-light);
}

.section-icon {
    color: var(--blog-primary);
    font-size: 1.125rem;
}

.article-content h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-heading);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.article-content p {
    margin-bottom: var(--space-md);
    color: var(--text-body);
    /* Mobile minimum: 1rem (16px) for optimal readability */
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.article-content strong {
    font-weight: 600;
    color: var(--text-heading);
}

.article-content em {
    font-style: italic;
    color: var(--text-muted);
}

/* === INSIGHT BOX (MOBILE-FIRST) === */
.insight-box {
    display: flex;
    flex-direction: column;  /* Stack on mobile */
    gap: var(--space-sm);
    background: var(--bg-accent);
    border-left: 4px solid var(--blog-primary);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
}

.insight-box i {
    color: var(--blog-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.insight-box p {
    margin: 0;
    font-weight: 500;
}

/* === KEY TAKEAWAY (MOBILE-FIRST) === */
.key-takeaway {
    background: linear-gradient(135deg, var(--bg-success-light) 0%, var(--bg-accent) 100%);
    border: 1px solid var(--blog-success);
    border-radius: var(--radius-lg);
    padding: var(--space-md);  /* Smaller padding on mobile */
    margin: var(--space-lg) 0;
    position: relative;
}

.key-takeaway i {
    color: var(--blog-success);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    display: block;
}

.key-takeaway p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-heading);
}

/* === STYLED LISTS (MOBILE-FIRST) === */
.styled-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
}

.styled-list li {
    display: flex;
    flex-direction: column;  /* Stack on mobile */
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.list-icon {
    color: var(--blog-warning);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.list-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-heading);
}

/* === COMPARISON CARD (MOBILE-FIRST) === */
.comparison-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);  /* Smaller padding on mobile */
    margin: var(--space-lg) 0;
    box-shadow: var(--shadow-md);
}

.comparison-card h3 {
    text-align: center;
    color: var(--text-heading);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.comparison-item {
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
}

.comparison-item.complex {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-item.simple {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.comparison-header i {
    font-size: 1.125rem;
}

.complex .comparison-header i {
    color: #ef4444;
}

.simple .comparison-header i {
    color: var(--blog-success);
}

.comparison-metrics {
    list-style: none;
    padding: 0;
    margin-top: var(--space-sm);
}

.comparison-metrics li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.metric-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.risk-high {
    color: #ef4444;
    font-weight: 600;
}

.risk-low {
    color: var(--blog-success);
    font-weight: 600;
}

/* === BENEFITS GRID (MOBILE-FIRST) === */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;  /* Single column on mobile */
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.benefit-card {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

.benefit-card i {
    font-size: 1.75rem;
    color: var(--blog-primary);
    margin-bottom: var(--space-sm);
}

.benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.benefit-card p {
    margin: 0;
    font-size: 0.875rem;
}

/* === ROLE COMPARISON (MOBILE-FIRST) === */
.role-comparison {
    display: grid;
    grid-template-columns: 1fr;  /* Single column on mobile */
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.role-card {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 2px solid;
}

.system-role {
    background: var(--bg-accent);
    border-color: var(--blog-primary);
}

.human-role {
    background: var(--bg-success-light);
    border-color: var(--blog-success);
}

.role-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.system-role h3 i {
    color: var(--blog-primary);
}

.human-role h3 i {
    color: var(--blog-success);
}

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

.role-card li {
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.875rem;
}

.role-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.system-role li::before {
    color: var(--blog-primary);
}

.human-role li::before {
    color: var(--blog-success);
}

/* === ARTICLE CTA SECTION (MOBILE-FIRST) === */
.article-cta {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-accent) 100%);
    padding: var(--space-xl) var(--article-padding-mobile);
    margin-top: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.cta-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cta-container h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: var(--space-sm);
    color: white;
}

.cta-container > p {
    font-size: 1.0625rem;
    margin-bottom: var(--space-lg);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-direction: column;  /* Stack on mobile */
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;  /* Full width on mobile */
    max-width: 280px;  /* But not too wide */
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--blog-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.cta-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
    margin-top: var(--space-md);
}

.cta-guarantee i {
    color: #fbbf24;
    font-size: 1.125rem;
}

/* === RELATED ARTICLES (MOBILE-FIRST) === */
.related-articles {
    background: var(--bg-secondary);
    padding: var(--space-xl) var(--article-padding-mobile);
}

.related-articles h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--text-heading);
    margin-bottom: var(--space-lg);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;  /* Single column on mobile */
    gap: var(--space-lg);
}

.related-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blog-primary);
}

.related-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-icon i {
    font-size: 1.25rem;
    color: var(--blog-primary);
}

.related-content h3 {
    font-size: 1.125rem;
    color: var(--text-heading);
    margin-bottom: 0.375rem;
}

.related-content p {
    color: var(--text-body);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.read-more {
    color: var(--blog-primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ========================================
   TABLET & DESKTOP ENHANCEMENTS
   Progressive enhancement for larger screens
   ======================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    /* Spacing increases */
    :root {
        --space-xs: 0.5rem;
        --space-sm: 1rem;
        --space-md: 1.5rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }
    
    /* Dark mode toggle */
    .theme-toggle {
        bottom: 2rem;
        right: 2rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Header improvements */
    .article-header {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .breadcrumb {
        font-size: 0.875rem;
    }
    
    .category-badge {
        padding: 0.375rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .category-badge i {
        font-size: 0.75rem;
    }
    
    /* Article meta horizontal layout */
    .article-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
        font-size: 0.9375rem;
    }
    
    .meta-item i {
        font-size: 0.875rem;
    }
    
    /* Content container */
    .article-content {
        padding: var(--space-xl) 0;
    }
    
    .article-content .container {
        padding: 0 var(--space-lg);
    }
    
    /* Table of contents desktop view */
    .table-of-contents {
        padding: var(--space-md);
    }
    
    .toc-toggle {
        display: none;  /* Hide toggle on desktop */
    }
    
    .toc-list {
        display: block;  /* Always show on desktop */
        padding: 0;
    }
    
    .toc-list a {
        font-size: 0.9375rem;
    }
    
    /* Typography scaling */
    .article-content h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
    
    .section-icon {
        font-size: 1.25rem;
    }
    
    /* Insight box horizontal layout */
    .insight-box {
        flex-direction: row;
        gap: var(--space-md);
        align-items: start;
    }
    
    .insight-box i {
        font-size: 1.5rem;
    }
    
    /* Key takeaway */
    .key-takeaway {
        padding: var(--space-lg);
    }
    
    .key-takeaway i {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }
    
    .key-takeaway p {
        font-size: 1.125rem;
    }
    
    /* Styled list items */
    .styled-list li {
        flex-direction: row;
        gap: var(--space-sm);
        align-items: start;
    }
    
    .list-icon {
        font-size: 1.25rem;
        margin-top: 0.125rem;
    }
    
    /* Comparison card */
    .comparison-card {
        padding: var(--space-lg);
    }
    
    .comparison-card h3 {
        font-size: 1.5rem;
        margin-bottom: var(--space-lg);
    }
    
    .comparison-item {
        padding: var(--space-md);
    }
    
    .comparison-header {
        font-size: 1.125rem;
    }
    
    .comparison-header i {
        font-size: 1.25rem;
    }
    
    .comparison-metrics li {
        font-size: 0.9375rem;
    }
    
    /* Benefits grid - 3 columns */
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefit-card {
        padding: var(--space-lg);
    }
    
    .benefit-card i {
        font-size: 2rem;
    }
    
    .benefit-card h3 {
        font-size: 1.25rem;
    }
    
    .benefit-card p {
        font-size: 0.9375rem;
    }
    
    /* Role comparison - 2 columns */
    .role-comparison {
        grid-template-columns: 1fr 1fr;
    }
    
    .role-card {
        padding: var(--space-lg);
    }
    
    .role-card h3 {
        font-size: 1.25rem;
    }
    
    .role-card li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        font-size: 0.9375rem;
    }
    
    /* Article CTA */
    .article-cta {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .cta-container h2 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .cta-container > p {
        font-size: 1.25rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        width: auto;
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    .btn-large {
        padding: 1.125rem 2.5rem;
        font-size: 1.125rem;
    }
    
    .cta-guarantee {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .cta-guarantee i {
        font-size: 1.25rem;
    }
    
    /* Related articles */
    .related-articles {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .related-articles h2 {
        font-size: 2rem;
        margin-bottom: var(--space-xl);
    }
    
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .related-card {
        padding: var(--space-lg);
    }
    
    .related-icon {
        width: 60px;
        height: 60px;
    }
    
    .related-icon i {
        font-size: 1.5rem;
    }
    
    .related-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .related-content p {
        margin-bottom: 0.5rem;
        font-size: 0.9375rem;
    }
    
    .read-more {
        font-size: 0.9375rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    /* Enhanced article padding for desktop */
    .article-content .container {
        padding: 0 var(--article-padding-desktop);
    }
    
    /* Larger typography for desktop reading */
    .article-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .article-summary {
        font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    }
}

/* === PRINT STYLES === */
@media print {
    .theme-toggle,
    .reading-progress,
    #navbar-placeholder,
    #footer-placeholder,
    .related-articles,
    .article-cta,
    .toc-toggle {
        display: none !important;
    }
    
    .article-header {
        background: none;
        color: black;
    }
    
    .article-content {
        background: white;
        padding: 0;
    }
    
    .article-content .container {
        max-width: 100%;
        padding: 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    .toc-list {
        display: block !important;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

:focus-visible {
    outline: 2px solid var(--blog-primary);
    outline-offset: 2px;
}

/* === UTILITY CLASSES === */
.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--article-padding-mobile);
}

@media (min-width: 768px) {
    .container-narrow {
        padding: 0 var(--space-lg);
    }
}

/* === FIXES FOR SPECIFIC MOBILE ISSUES === */

/* Prevent horizontal scroll on mobile */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
        position: relative;
    }
    
    /* Ensure all full-width sections respect mobile padding */
    .article-header,
    .article-cta,
    .related-articles {
        margin-left: calc(-1 * var(--article-padding-mobile));
        margin-right: calc(-1 * var(--article-padding-mobile));
        padding-left: var(--article-padding-mobile);
        padding-right: var(--article-padding-mobile);
    }
    
    /* Prevent code blocks from breaking layout */
    pre, code {
        max-width: 100%;
        overflow-x: auto;
        word-wrap: break-word;
    }
    
    /* Ensure images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix table overflow */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}