/**
 * Single Post Template Styles
 *
 * Elegant, conversion-optimized reading experience for blog posts, guides, and news items.
 * Optimized for engagement, readability, and lead generation.
 *
 * @package SICA_Theme
 */

/* ============================================
   CSS VARIABLES & TYPOGRAPHY SYSTEM
   ============================================ */

:root {
    /* Brand Colors */
    --sica-orange: #fbaf3f;
    --sica-dark-blue: #1a74bb;
    --sica-light-blue: #25a7e2;
    --sica-success: #10b981;
    --sica-error: #ef4444;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Bitter', Georgia, serif;
    --font-mono: 'Hack', 'Courier New', monospace;

    /* Reading Optimized Line Heights */
    --line-height-tight: 1.3;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;

    /* Optimal Reading Width */
    --reading-width: 700px;
    --sidebar-width: 300px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(26, 116, 187, 0.15);
    z-index: 9999;
}

.progress-fill {
    height: 100%;
    background: #fbaf3f;
    width: 0%;
    transition: none;
    will-change: width;
}

/* ============================================
   WELCOME MAT (First-Time Visitor)
   ============================================ */

.welcome-mat {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.welcome-mat.active {
    opacity: 1;
    visibility: visible;
}

.welcome-mat-content {
    background: white;
    border-radius: 12px;
    padding: var(--space-2xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.welcome-mat.active .welcome-mat-content {
    transform: scale(1);
}

.welcome-mat h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--sica-dark-blue);
    margin-bottom: var(--space-sm);
}

.welcome-mat p {
    color: #4b5563;
    font-size: 1rem;
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-lg);
}

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

.welcome-mat-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.welcome-mat-form input[type="email"]:focus {
    outline: none;
    border-color: var(--sica-light-blue);
}

.welcome-mat-form button {
    padding: 0.875rem 1.5rem;
    background: var(--sica-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.welcome-mat-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 175, 63, 0.3);
}

.welcome-mat-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.welcome-mat-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.welcome-mat-privacy {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ============================================
   HELLO BAR (Sticky Top Banner)
   ============================================ */

.hello-bar {
    position: fixed;
    top: 4px; /* Below progress bar */
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--sica-dark-blue) 0%, var(--sica-light-blue) 100%);
    color: white;
    padding: 12px 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.9375rem;
    transform: translateY(-100%);
    transition: transform var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hello-bar.active {
    transform: translateY(0);
}

.hello-bar-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hello-bar-icon {
    font-size: 1.25rem;
}

.hello-bar-text {
    font-weight: 500;
}

.hello-bar-cta {
    padding: 8px 20px;
    background: var(--sica-orange);
    color: white;
    text-decoration: none;
    border-radius: 50px; /* Fully rounded pill shape */
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    border: 2px solid var(--sica-orange);
    white-space: nowrap;
}

.hello-bar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 175, 63, 0.4);
    background: #e69a2e;
    border-color: #e69a2e;
}

.hello-bar-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    transition: all var(--transition-fast);
    margin-left: 8px;
}

.hello-bar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ============================================
   ARTICLE WRAPPER & LAYOUT
   ============================================ */

/* Global page background */
body.single-post {
    background: #f3f4f6;
    overflow-x: hidden;
}

.single-post-wrapper {
    background: #f3f4f6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Compensate for hello bar when active */
body.has-hello-bar .single-post-wrapper {
    padding-top: 56px;
}

/* Standardized container class */
.container {
    max-width: var(--container-content, 1360px);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */

.breadcrumb-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: var(--space-sm) 0;
}

.breadcrumb-nav .container {
    max-width: var(--container-content, 1360px);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.breadcrumb-list a {
    color: var(--sica-dark-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
    color: var(--sica-light-blue);
}

.breadcrumb-list .current {
    color: #6b7280;
}

.breadcrumb-separator {
    color: #d1d5db;
}

/* ============================================
   ARTICLE HEADER
   ============================================ */

.article-header {
    background: white;
    padding: var(--space-xl) 40px;
    border-bottom: 1px solid #e5e7eb;
}

.article-header .article-container {
    max-width: var(--container-content, 1360px);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .article-header {
        padding: var(--space-xl) 20px;
    }
}

/* Category Badges */
.article-categories {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Post-type specific badge colors */
.category-badge.type-blog {
    background: #dbeafe;
    color: #1e40af;
}

.category-badge.type-guide {
    background: #d1fae5;
    color: #065f46;
}

.category-badge.type-news {
    background: #fee2e2;
    color: #991b1b;
}

.category-badge svg {
    width: 14px;
    height: 14px;
}

/* Article Title */
.article-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: var(--line-height-tight);
    color: var(--sica-dark-blue);
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

/* Article Excerpt/Subtitle */
.article-excerpt {
    font-size: 1.25rem;
    line-height: var(--line-height-normal);
    color: #4b5563;
    margin-bottom: var(--space-lg);
}

/* Article Meta Info */
.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.article-meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar-link {
    flex-shrink: 0;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--sica-dark-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.author-name:hover {
    color: var(--sica-light-blue);
}

.badge-expert {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

.author-title {
    font-size: 0.875rem;
    color: #6b7280;
}

.article-meta-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.meta-separator {
    color: #d1d5db;
}

.publish-date,
.updated-date,
.reading-time,
.view-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: #6b7280;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.stat-item svg {
    width: 16px;
    height: 16px;
}

/* Social Share Buttons (Inline in Header) */
.article-share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Circular buttons */
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn.share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.share-btn.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-btn.share-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.share-btn.share-email:hover {
    background: var(--sica-orange);
    border-color: var(--sica-orange);
    color: white;
}

.share-btn.share-copy:hover {
    background: var(--sica-success);
    border-color: var(--sica-success);
    color: white;
}

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

/* ============================================
   GUIDE-SPECIFIC REQUIREMENTS BOX
   ============================================ */

.guide-requirements {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid var(--sica-success);
    padding: var(--space-lg);
    border-radius: 8px;
    margin-bottom: var(--space-xl);
}

.guide-requirements h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--sica-dark-blue);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.guide-requirements h3 svg {
    color: var(--sica-success);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.requirement-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.requirement-list li {
    padding: 0.375rem 0;
    color: #047857;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirement-list li::before {
    content: '✓';
    color: var(--sica-success);
    font-weight: bold;
}

/* Difficulty Badge */
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.difficulty-badge.beginner {
    background: #d1fae5;
    color: #065f46;
}

.difficulty-badge.intermediate {
    background: #fed7aa;
    color: #92400e;
}

.difficulty-badge.advanced {
    background: #fecaca;
    color: #991b1b;
}

/* ============================================
   HERO IMAGE SECTION
   ============================================ */

.article-hero {
    margin-bottom: var(--space-xl);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: var(--container-content, 1360px);
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-caption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin-top: var(--space-md);
    padding: 0 var(--space-md);
}

/* ============================================
   ARTICLE BODY LAYOUT (Content + Right Sidebar)
   ============================================ */

.article-body {
    background: #f3f4f6;
    padding: 2rem 40px;
}

.article-body .container {
    max-width: var(--container-content, 1360px);
    margin: 0 auto;
    padding: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .article-body {
        padding: 2rem 20px;
    }
}

/* ============================================
   SIDEBAR (Right Side, Sticky)
   ============================================ */

.article-sidebar {
    position: relative;
}

@media (min-width: 1024px) {
    .article-sidebar {
        position: sticky;
        top: 80px;
        align-self: flex-start;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}

.article-sidebar > * {
    margin-bottom: var(--space-lg);
}

.article-sidebar > *:last-child {
    margin-bottom: 0;
}

/* Table of Contents Widget */
.toc-widget {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toc-widget h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--sica-dark-blue);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toc-widget h3 svg {
    width: 20px;
    height: 20px;
}

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

.toc-list li {
    margin-bottom: 0;
}

.toc-list a {
    display: block;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all var(--transition-fast);
}

.toc-list a:hover {
    color: var(--sica-light-blue);
    border-left-color: var(--sica-light-blue);
    padding-left: var(--space-md);
}

.toc-list a.active {
    color: var(--sica-dark-blue);
    font-weight: 600;
    border-left-color: var(--sica-orange);
    background: #fef3e2;
    padding-left: var(--space-md);
}

/* H2 TOC items with toggle */
.toc-h2-item {
    margin-bottom: 0;
}

.toc-h2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.toc-h2-header a {
    flex: 1;
}

.toc-toggle {
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    user-select: none;
}

.toc-toggle:hover {
    background: #f3f4f6;
    color: var(--sica-dark-blue);
}

/* Nested TOC items (H3s) - collapsible */
.toc-sublist {
    list-style: none;
    padding: 0;
    margin: 0 0 0 var(--space-md);
}

.toc-sublist .toc-subitem {
    margin-bottom: 0;
}

.toc-sublist .toc-subitem a {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Sidebar Newsletter Widget */
.sidebar-newsletter {
    background: linear-gradient(135deg, var(--sica-dark-blue) 0%, var(--sica-light-blue) 100%);
    border-radius: 12px;
    padding: var(--space-lg);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 116, 187, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.sidebar-newsletter.visible {
    opacity: 1;
    transform: translateY(0);
}

.sidebar-newsletter h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.sidebar-newsletter p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
    opacity: 0.95;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.sidebar-newsletter-form input[type="email"] {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.sidebar-newsletter-form button {
    padding: 0.75rem;
    background: var(--sica-orange);
    color: white;
    border: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 175, 63, 0.3);
}

.sidebar-trust {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    margin-top: var(--space-sm);
    opacity: 0.9;
}

.sidebar-trust svg {
    width: 16px;
    height: 16px;
}

/* Related Posts Widget */
.sidebar-related {
    background: white;
    border-radius: 12px;
    padding: var(--space-lg);
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-related h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--sica-dark-blue);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.related-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.related-post-item:first-of-type {
    padding-top: 0;
}

.related-post-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-item:hover {
    background: #f9fafb;
}

.related-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content h4 {
    font-size: 0.9375rem;
    line-height: 1.4;
    margin: 0 0 4px 0;
    color: var(--sica-dark-blue);
    transition: color var(--transition-fast);
}

.related-post-item:hover .related-post-content h4 {
    color: var(--sica-light-blue);
}

.related-post-meta {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* ============================================
   MAIN CONTENT AREA (Article Text)
   ============================================ */

.article-content {
    background: white;
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 800px;
}

/* Key Takeaways (News Posts) */
.key-takeaways {
    background: linear-gradient(135deg, #fef3e2 0%, #fed7aa 100%);
    border-left: 4px solid var(--sica-orange);
    padding: var(--space-lg);
    border-radius: 8px;
    margin-bottom: var(--space-xl);
}

.key-takeaways h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--sica-dark-blue);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.key-takeaways h3 svg {
    color: var(--sica-orange);
}

.key-takeaways ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.key-takeaways li {
    color: #92400e;
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-normal);
}

/* Article Typography */
.article-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: var(--line-height-relaxed);
    color: #1f2937;
}

.article-text > * + * {
    margin-top: var(--space-lg);
}

.article-text h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    line-height: var(--line-height-tight);
    color: var(--sica-dark-blue);
    font-weight: 700;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.article-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: var(--line-height-tight);
    color: var(--sica-dark-blue);
    font-weight: 700;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article-text h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--sica-dark-blue);
    font-weight: 600;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.article-text p {
    margin-bottom: var(--space-lg);
}

.article-text a {
    color: var(--sica-light-blue);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.article-text a:hover {
    color: var(--sica-dark-blue);
}

.article-text strong {
    font-weight: 600;
    color: var(--sica-dark-blue);
}

.article-text em {
    font-style: italic;
}

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

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

.article-text ul li {
    list-style-type: disc;
}

/* Blockquotes */
.article-text blockquote {
    border-left: 4px solid var(--sica-orange);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-size: 1.25rem;
    font-style: italic;
    color: #4b5563;
    background: #f9fafb;
    padding: var(--space-lg);
    border-radius: 8px;
}

.article-text blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.article-text code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #e11d48;
}

.article-text pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: var(--space-lg);
    border-radius: 8px;
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.article-text pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Images */
.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: var(--space-xl) 0;
}

.article-text figure {
    margin: var(--space-xl) 0;
}

.article-text figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: var(--space-sm);
    font-style: italic;
}

/* Tables */
.article-text table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
}

.article-text th,
.article-text td {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid #e5e7eb;
    text-align: left;
}

.article-text th {
    background: #f9fafb;
    font-weight: 600;
    color: var(--sica-dark-blue);
}

.article-text tr:hover {
    background: #fafafa;
}

/* Horizontal Rule */
.article-text hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: var(--space-2xl) 0;
}

/* ============================================
   ARTICLE TAGS
   ============================================ */

.article-tags {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px solid #e5e7eb;
}

.article-tags h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

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

.tag-link {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.tag-link:hover {
    background: var(--sica-light-blue);
    color: white;
}

/* ============================================
   REACTION BUTTONS (Helpful/Not Helpful)
   ============================================ */

.article-reactions {
    margin-top: var(--space-xl);
    padding: var(--space-xl);
    background: #f9fafb;
    border-radius: 12px;
    text-align: center;
}

.article-reactions h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--sica-dark-blue);
    margin-bottom: var(--space-md);
}

.reaction-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reaction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reaction-btn svg {
    width: 24px;
    height: 24px;
}

.reaction-btn.reaction-yes svg,
.reaction-btn.helpful svg {
    color: #10b981;
}

.reaction-btn.reaction-no svg,
.reaction-btn.not-helpful svg {
    color: #ef4444;
}

.reaction-btn.reaction-yes:hover,
.reaction-btn.helpful:hover {
    border-color: var(--sica-success);
    background: #10b981;
    color: white;
}

.reaction-btn.reaction-yes:hover svg,
.reaction-btn.helpful:hover svg {
    color: white;
}

.reaction-btn.reaction-no:hover,
.reaction-btn.not-helpful:hover {
    border-color: var(--sica-error);
    background: #ef4444;
    color: white;
}

.reaction-btn.reaction-no:hover svg,
.reaction-btn.not-helpful:hover svg {
    color: white;
}

.reaction-btn.selected {
    pointer-events: none;
}

.reaction-btn.selected.helpful {
    border-color: var(--sica-success);
    background: var(--sica-success);
    color: white;
}

.reaction-btn.selected.not-helpful {
    border-color: var(--sica-error);
    background: var(--sica-error);
    color: white;
}

.reaction-feedback {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: white;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #4b5563;
    display: none;
}

.reaction-feedback.visible {
    display: block;
}

/* ============================================
   ARTICLE NEWSLETTER CTA (Large, End of Content)
   ============================================ */

.article-newsletter-cta {
    margin-top: var(--space-2xl);
    background: linear-gradient(135deg, var(--sica-dark-blue) 0%, var(--sica-light-blue) 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.newsletter-cta-icon {
    margin-bottom: 1rem;
}

.newsletter-cta-icon svg {
    width: 48px;
    height: 48px;
    color: white;
}

.article-newsletter-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    margin-bottom: var(--space-sm);
    color: white;
}

.article-newsletter-cta p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.article-newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-sm);
}

.article-newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
}

.article-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.article-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
}

.article-newsletter-form button {
    padding: 1rem 2rem;
    background: var(--sica-orange);
    color: white;
    border: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.article-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 175, 63, 0.3);
}

.article-newsletter-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    font-size: 0.875rem;
}

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

.newsletter-stat svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   AUTHOR BIO SECTION
   ============================================ */

.article-author-bio {
    background: #f3f4f6;
    padding: 2rem 0;
}

.article-author-bio .container {
    max-width: var(--container-content, 1360px);
    margin: 0 auto;
    padding: 0 40px;
}

.author-bio-card {
    background: white;
    border-radius: 12px;
    padding: var(--space-xl);
    display: flex;
    gap: var(--space-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-items: flex-start;
}

.author-bio-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio-content {
    flex: 1;
}

.author-bio-header {
    margin-bottom: var(--space-md);
}

.author-bio-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--sica-dark-blue);
    margin-bottom: 0.25rem;
}

.author-bio-header .author-title {
    font-size: 1rem;
    color: #6b7280;
}

.author-bio-text {
    font-size: 1rem;
    line-height: var(--line-height-normal);
    color: #4b5563;
    margin-bottom: var(--space-md);
}

.author-social-links {
    display: flex;
    gap: var(--space-sm);
}

.author-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.author-social-link:hover {
    background: var(--sica-light-blue);
    color: white;
    transform: translateY(-2px);
}

.author-social-link svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   RELATED POSTS GRID
   ============================================ */

.article-related-posts {
    background: #f3f4f6;
    padding: 2rem 0;
}

.article-related-posts .container {
    max-width: var(--container-content, 1360px);
    margin: 0 auto;
    padding: 0 40px;
}

.section-title,
.related-posts-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--sica-dark-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.related-post-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.related-post-card:hover .related-post-thumb img {
    transform: scale(1.05);
}

.related-post-body {
    padding: var(--space-lg);
}

/* Card content padding for better spacing */
.related-card-content {
    padding: var(--space-xl);
}

.related-post-category {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sica-light-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.related-post-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-sm);
}

.related-post-body h3 a {
    color: var(--sica-dark-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.related-post-body h3 a:hover {
    color: var(--sica-light-blue);
}

.related-post-excerpt {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-md);
}

.related-post-meta {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

.article-comments {
    background: #f3f4f6;
    padding: 2rem 0;
}

.article-comments .container {
    max-width: var(--container-content, 1360px);
    margin: 0 auto;
    padding: 0 40px;
}

.comments-section h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    color: var(--sica-dark-blue);
    margin-bottom: 1.5rem;
}

/* Override WordPress default comment styles as needed */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-form {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.comment-form input[type="submit"] {
    background: var(--sica-orange);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 175, 63, 0.3);
}

/* ============================================
   FLOATING ELEMENTS (Share Buttons, Back to Top)
   ============================================ */

/* Floating Share Buttons - HIDDEN */
.floating-share,
.floating-share-buttons {
    display: none !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--sica-orange);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   EXIT INTENT MODAL
   ============================================ */

.exit-intent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.exit-intent-modal.active {
    opacity: 1;
    visibility: visible;
}

.exit-modal-content {
    background: white;
    border-radius: 16px;
    padding: var(--space-2xl);
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.exit-intent-modal.active .exit-modal-content {
    transform: scale(1);
}

.exit-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--sica-orange);
}

.exit-modal-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--sica-dark-blue);
    margin-bottom: var(--space-sm);
}

.exit-modal-content p {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-xl);
}

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

.exit-modal-form input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.exit-modal-form input[type="email"]:focus {
    outline: none;
    border-color: var(--sica-light-blue);
}

.exit-modal-form button {
    padding: 1rem 2rem;
    background: var(--sica-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.exit-modal-form button:hover {
    transform: translateY(-2px);
}

.exit-modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.exit-modal-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.exit-modal-benefits {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.exit-modal-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #4b5563;
    font-size: 0.9375rem;
}

.exit-modal-benefits li svg {
    width: 20px;
    height: 20px;
    color: var(--sica-success);
    flex-shrink: 0;
}

.exit-modal-privacy {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */

.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--sica-dark-blue);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    max-width: 400px;
}

.notification-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-toast.success {
    background: var(--sica-success);
}

.notification-toast.error {
    background: var(--sica-error);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    /* Single column layout on tablet/mobile */
    .article-layout {
        grid-template-columns: 1fr;
    }

    /* Hide floating share on tablet */
    .floating-share {
        display: none;
    }

    /* Sidebar becomes bottom sections */
    .article-sidebar {
        position: static !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* Author bio stacks vertically */
    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }

    .author-bio-avatar {
        margin: 0 auto;
    }

    .author-social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Reduce font sizes on mobile */
    :root {
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
    }

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

    .article-excerpt {
        font-size: 1.125rem;
    }

    .article-text {
        font-size: 1rem;
    }

    .article-text h2 {
        font-size: 1.5rem;
    }

    .article-text h3 {
        font-size: 1.25rem;
    }

    /* Stack article meta */
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    /* Stack social share */
    .social-share-inline {
        width: 100%;
    }

    /* Stack newsletter form */
    .article-newsletter-form,
    .exit-modal-form,
    .welcome-mat-form {
        flex-direction: column;
    }

    .article-newsletter-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    /* Reduce padding */
    .article-content {
        padding: var(--space-lg);
    }

    .welcome-mat-content,
    .exit-modal-content {
        padding: var(--space-xl);
    }

    /* Related posts single column */
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    /* Back to top smaller */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }

    /* Responsive padding for sections */
    .article-author-bio .container,
    .article-related-posts .container,
    .article-comments .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    /* Further reduce spacing on small mobile */
    .article-header {
        padding: var(--space-lg) 0;
    }

    .breadcrumb-list {
        font-size: 0.8125rem;
    }

    .hello-bar {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-sm);
        font-size: 0.8125rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .reading-progress-bar,
    .hello-bar,
    .welcome-mat,
    .breadcrumb-nav,
    .social-share-inline,
    .floating-share,
    .back-to-top,
    .exit-intent-modal,
    .sidebar-newsletter,
    .article-newsletter-cta,
    .article-reactions,
    .comments-section {
        display: none !important;
    }

    .article-body {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .article-content {
        box-shadow: none;
    }

    .article-text {
        font-size: 12pt;
        line-height: 1.5;
    }
}
