/**
 * Article Enhancements - Modern Styles
 * Futuristic, engaging design for single article pages
 */

/* ==========================================
   FLOATING ACTION MENU
   ========================================== */

.article-floating-menu {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.article-floating-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.floating-menu-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0052cc 0%, #00c453 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    font-size: 20px;
}

.floating-menu-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.floating-menu-trigger.active {
    transform: rotate(90deg);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.floating-menu-content {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-menu-content.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 18px;
    color: #0052cc;
    position: relative;
}

.menu-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #0052cc 0%, #00c453 100%);
    color: white;
}

.menu-item span {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.menu-item i {
    font-size: 18px;
}

/* Animation delays for staggered effect */
.floating-menu-content.active .menu-item:nth-child(1) { transition-delay: 0.05s; }
.floating-menu-content.active .menu-item:nth-child(2) { transition-delay: 0.1s; }
.floating-menu-content.active .menu-item:nth-child(3) { transition-delay: 0.15s; }
.floating-menu-content.active .menu-item:nth-child(4) { transition-delay: 0.2s; }

/* ==========================================
   TABLE OF CONTENTS (Sliding Panel)
   ========================================== */

.article-toc {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-toc.active {
    right: 0;
}

.toc-header {
    padding: 30px;
    background: linear-gradient(135deg, #0052cc 0%, #00c453 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.toc-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.toc-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.toc-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.toc-nav {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

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

.toc-item {
    margin-bottom: 10px;
}

.toc-item a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.toc-item a:hover {
    background: #f8f9fa;
    border-left-color: #0052cc;
    transform: translateX(5px);
    color: #0052cc;
}

.toc-item.active a {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left-color: #0052cc;
    color: #0052cc;
    font-weight: 600;
}

/* Heading levels */
.toc-level-2 {
    margin-left: 0;
}

.toc-level-3 {
    margin-left: 20px;
}

.toc-level-3 a {
    font-size: 14px;
    padding: 10px 15px;
}

/* Overlay when TOC is open */
.article-toc.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 400px;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
    animation: fadeIn 0.3s ease;
}

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

/* ==========================================
   READING TIME INDICATOR
   ========================================== */

.article-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    color: #0052cc;
    font-weight: 600;
    font-size: 14px;
    margin: 15px 0;
}

.article-reading-time i {
    font-size: 16px;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

.article-toast {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.article-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RELATED ARTICLES (Enhanced)
   ========================================== */

.article-related {
    margin-top: 60px;
    padding: 50px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
}

.widget.article-related {
    background: transparent;
    border: none;
    box-shadow: none;
}

.widget.article-related .block-header {
    text-align: center;
    margin-bottom: 50px;
    border: none;
    padding: 0;
}

.widget.article-related .block-header .block-title {
    position: relative;
    display: inline-block;
    padding: 0 30px;
}

.widget.article-related .block-header .block-title span {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #0052cc 0%, #00c453 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.widget.article-related .block-header .block-title span::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0052cc 0%, #00c453 100%);
    border-radius: 2px;
}

.widget.article-related .block-header .block-title span::after {
    content: '✨';
    position: absolute;
    right: -35px;
    top: -5px;
    font-size: 24px;
}

.widget.article-related .block-content {
    padding: 0;
}

.widget.article-related .row {
    gap: 0;
}

.widget.article-related .block-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.widget.article-related .block-item-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 16 / 9;
}

.widget.article-related .block-item-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widget.article-related .block-item:hover .block-item-img::before {
    opacity: 1;
}

.widget.article-related .block-item:hover .block-item-img {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}

.widget.article-related .block-item-img a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.widget.article-related .block-item:hover .block-item-img a {
    transform: scale(1.08);
}

.widget.article-related .block-item-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 3;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.widget.article-related .block-item:hover .block-item-category {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.widget.article-related .block-item-category a {
    color: white;
    text-decoration: none;
}

.widget.article-related .block-item-title {
    margin-top: 20px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.widget.article-related .block-item-title a {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.widget.article-related .block-item-title a:hover {
    color: #0052cc;
    transform: translateX(5px);
}

.widget.article-related .block-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #718096;
}

.widget.article-related .block-item-meta small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.widget.article-related .block-item-meta i {
    color: #a0aec0;
    font-size: 14px;
}

/* Engagement indicators */
.article-engagement-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #0052cc;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.article-engagement-badge i {
    font-size: 14px;
}

/* Related Articles Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget.article-related .block-item {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
}

.widget.article-related .block-item:nth-child(1) { animation-delay: 0.1s; }
.widget.article-related .block-item:nth-child(2) { animation-delay: 0.2s; }
.widget.article-related .block-item:nth-child(3) { animation-delay: 0.3s; }
.widget.article-related .block-item:nth-child(4) { animation-delay: 0.4s; }
.widget.article-related .block-item:nth-child(5) { animation-delay: 0.5s; }
.widget.article-related .block-item:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .article-floating-menu {
        right: 15px;
        bottom: 15px;
    }

    .floating-menu-trigger,
    .menu-item {
        width: 48px;
        height: 48px;
    }

    .article-toc {
        width: 100%;
        right: -100%;
    }

    .article-toc.active {
        right: 0;
    }

    .article-toc.active::before {
        right: 0;
    }

    .toc-header {
        padding: 20px;
    }

    .toc-header h3 {
        font-size: 20px;
    }

    .toc-nav {
        padding: 20px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .article-toast {
        left: 20px;
        right: 20px;
    }
}

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

@media print {
    .article-floating-menu,
    .article-toc,
    .article-toast {
        display: none !important;
    }
}

/* ==========================================
   SMOOTH ANIMATIONS
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/**
 * Modern Article Enhancements for Article.Pk
 * Phase 1: Core Enhancements
 *
 * Features:
 * - Sticky Sidebar
 * - Enhanced Author Card
 * - Font Size Controls
 * - Dynamic Reading Time
 *
 * Brand Colors: #0052cc (blue), #00c453 (green), #2a323a (dark)
 */

/* ==========================================
   1. SMART STICKY SIDEBAR (Only Ads)
   ========================================== */

/* Remove sticky from entire sidebar */
.sticky-element {
    position: relative;
}

/* Make only ad widgets sticky */
.sticky-element .widget.ad,
.sticky-element .widget:has([class*="ad"]),
.sticky-element .widget:has([id*="ad"]) {
    position: -webkit-sticky;
    position: sticky;
    top: 100px; /* Below fixed header */
    z-index: 100;
    transition: all 0.3s ease;
}

/* Prevent sidebar from overlapping footer */
.article-main-content {
    position: relative;
}

@media (max-width: 991px) {
    .sticky-element .widget.ad,
    .sticky-element .widget:has([class*="ad"]),
    .sticky-element .widget:has([id*="ad"]) {
        position: relative;
        top: 0;
    }
}

/* ==========================================
   2. ENHANCED AUTHOR CARD
   ========================================== */

.author-card {
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.05) 0%, rgba(0, 196, 83, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 82, 204, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 82, 204, 0.08);
    transition: all 0.3s ease;
}

.author-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 82, 204, 0.12);
}

.author-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.author-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0052cc, #00c453) border-box;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

.author-avatar-fallback {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0052cc, #00c453);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #1c1c1c);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-verified {
    color: #0052cc;
    font-size: 16px;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary, #6c757d);
    flex-wrap: wrap;
}

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

.author-meta-item i {
    font-size: 12px;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #0052cc, #00c453);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.author-bio {
    color: var(--text-secondary, #6c757d);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.author-bio-more {
    color: var(--primary, #007bff);
    font-weight: 500;
    margin-left: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.author-bio-more:hover {
    text-decoration: underline;
}

.author-social {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 82, 204, 0.1);
    color: #0052cc;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.author-social-link:hover {
    background: linear-gradient(135deg, #0052cc, #00c453);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.author-follow-btn {
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0052cc, #00c453);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.author-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.3);
}

.author-follow-btn i {
    font-size: 14px;
}

.author-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.author-actions .author-follow-btn,
.author-actions .author-profile-btn {
    flex: 1;
    width: auto;
    text-decoration: none;
}

.author-profile-btn {
    padding: 10px 20px;
    background: var(--bg-secondary, #f0f2f5);
    color: var(--text-primary, #1a1a2e);
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.author-profile-btn:hover {
    background: var(--bg-tertiary, #e4e6eb);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text-primary, #1a1a2e);
}

.author-follow-btn.author-following {
    background: var(--bg-secondary, #f0f2f5);
    color: var(--primary-color, #0052cc);
}

.author-follow-btn.author-following:hover {
    background: #ffe0e0;
    color: #dc3545;
}

[data-theme="dark"] .author-profile-btn {
    background: var(--bg-tertiary, #3a3a3a);
    color: var(--text-primary, #e4e6eb);
}

[data-theme="dark"] .author-profile-btn:hover {
    background: var(--bg-secondary, #4a4a4a);
}

[data-theme="dark"] .author-follow-btn.author-following {
    background: var(--bg-tertiary, #3a3a3a);
    color: #4da3ff;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .author-card {
        padding: 20px;
    }

    .author-card-header {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar,
    .author-avatar-fallback {
        width: 70px;
        height: 70px;
    }

    .author-avatar-fallback {
        font-size: 28px;
    }

    .author-meta {
        justify-content: center;
    }

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

/* ==========================================
   3. FONT SIZE CONTROLS
   ========================================== */

.font-size-controls {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 999;
    background: white;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.font-size-controls.visible {
    opacity: 1;
    transform: translateX(0);
}

.font-size-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #6c757d);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.font-size-btn:hover {
    background: rgba(0, 82, 204, 0.1);
    color: #0052cc;
}

.font-size-btn.active {
    background: linear-gradient(135deg, #0052cc, #00c453);
    color: white;
}

.font-size-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Font size labels */
.font-size-btn[data-size="small"] {
    font-size: 12px;
}

.font-size-btn[data-size="medium"] {
    font-size: 16px;
}

.font-size-btn[data-size="large"] {
    font-size: 20px;
}

/* Tooltip */
.font-size-btn::before {
    content: attr(title);
    position: absolute;
    right: 100%;
    margin-right: 10px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.font-size-btn:hover::before {
    opacity: 1;
}

/* Font size transitions on content */
.article-content {
    transition: font-size 0.3s ease;
}

.article-content.font-small {
    font-size: 16px;
}

.article-content.font-medium {
    font-size: 18px;
}

.article-content.font-large {
    font-size: 20px;
}

/* Mobile: Show as horizontal bar at bottom */
@media (max-width: 768px) {
    .font-size-controls {
        top: auto;
        bottom: 80px;
        right: 50%;
        transform: translateX(50%) translateY(100px);
        flex-direction: row;
        padding: 6px;
    }

    .font-size-controls.visible {
        transform: translateX(50%) translateY(0);
    }

    .font-size-btn::before {
        right: auto;
        bottom: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ==========================================
   4. DYNAMIC READING TIME
   ========================================== */

.reading-time-dynamic {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(0, 196, 83, 0.1));
    border: 1px solid rgba(0, 82, 204, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1c1c1c);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.reading-time-dynamic i {
    color: #0052cc;
    font-size: 14px;
}

.reading-time-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reading-time-remaining {
    color: #00c453;
    font-weight: 700;
}

.reading-time-progress {
    display: inline-block;
    min-width: 40px;
    color: #0052cc;
}

/* Completion state */
.reading-time-dynamic.completed {
    background: linear-gradient(135deg, rgba(0, 196, 83, 0.15), rgba(0, 196, 83, 0.05));
    border-color: rgba(0, 196, 83, 0.3);
}

.reading-time-dynamic.completed i {
    color: #00c453;
}

/* Sticky Reading Time Widget */
.reading-time-sticky {
    position: fixed;
    top: 268px; /* Below font size controls (120px + 140px height + 8px gap) */
    right: 20px;
    z-index: 998;
    display: none; /* Hidden by default */
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 2px solid rgba(0, 82, 204, 0.2);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1c1c1c);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.reading-time-sticky.visible {
    display: inline-flex;
    animation: slideInRight 0.3s ease;
}

.reading-time-sticky i {
    color: #0052cc;
    font-size: 14px;
}

.reading-time-sticky .reading-time-remaining {
    color: #00c453;
    font-weight: 700;
}

.reading-time-sticky .reading-time-progress {
    display: inline-block;
    min-width: 35px;
    color: #0052cc;
    font-size: 12px;
}

.reading-time-sticky.completed {
    border-color: rgba(0, 196, 83, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(0, 196, 83, 0.05));
}

.reading-time-sticky.completed i {
    color: #00c453;
}

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

/* Enhanced reading progress bar */
.reading-progress__fill {
    position: relative;
}

.reading-progress__percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reading-progress:hover .reading-progress__percentage {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .reading-time-sticky {
        top: auto;
        bottom: 80px; /* Above FAB menu */
        right: 15px;
        left: auto;
        font-size: 12px;
        padding: 8px 12px;
    }

    .reading-time-sticky i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .reading-time-dynamic {
        font-size: 13px;
        padding: 6px 12px;
    }

    .reading-time-sticky {
        bottom: 90px;
        right: 10px;
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* ==========================================
   5. ARTICLE METADATA IMPROVEMENTS
   ========================================== */

.article-meta-data {
    margin-bottom: 24px;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    font-size: 14px;
    color: var(--text-secondary, #6c757d);
}

.article-meta-item i {
    color: #0052cc;
    font-size: 14px;
}

.article-meta-separator {
    margin: 0 8px;
    color: var(--border-color, #e5e5e5);
}

/* ==========================================
   6. ENHANCED INTERACTION BUTTONS
   ========================================== */

.article-actions {
    margin-bottom: 20px;
}

.article-actions form,
.article-actions button {
    display: inline-block;
}

.article-actions .btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color, #e5e5e5);
}

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

.article-actions .btn.active {
    background: linear-gradient(135deg, #0052cc, #00c453);
    color: white;
    border-color: transparent;
}

.article-actions .btn i {
    margin-right: 4px;
}

/* ==========================================
   7. UTILITY CLASSES
   ========================================== */

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================
   8. RELATED ARTICLES - COMPLETE REDESIGN
   ========================================== */

.article-related .block-item {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-related .block-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.15);
    border-color: rgba(0, 82, 204, 0.2);
}

/* Thumbnail Container - Cleaner Design */
.article-related .block-item-img {
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* 5:3 ratio - more compact */
    overflow: hidden;
    background: #f5f5f5;
}

.article-related .block-item-img > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.article-related .block-item:hover .block-item-img > a {
    transform: scale(1.06);
}

/* Subtle gradient overlay */
.article-related .block-item-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Lazy loading */
.article-related .block-item-img a.b-lazy {
    background-color: #f0f0f0;
}

.article-related .block-item-img a.b-loaded {
    background-color: transparent;
}

/* Modern Category Badge - Bottom Position with Better Contrast */
.article-related .block-item-category {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    right: auto !important;
    top: auto !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    max-width: calc(100% - 24px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.article-related .block-item:hover .block-item-category {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.article-related .block-item-category a {
    color: white !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    display: block !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

/* Card Content Area with Proper Spacing */
.article-related .block-item-title {
    padding: 14px 16px 0;
    margin-bottom: 0;
    min-height: 50px; /* Ensures consistent height */
}

.article-related .block-item-title a {
    color: #1c1c1c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: color 0.2s ease;
}

.article-related .block-item-title a:hover {
    color: #0052cc;
}

/* Meta Information - Better Alignment */
.article-related .block-item-meta {
    padding: 10px 16px 14px;
    margin-top: auto;
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #f0f0f0;
}

.article-related .block-item-meta small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.article-related .block-item-meta i {
    font-size: 10px;
    color: #0052cc;
    flex-shrink: 0;
}

/* Remove the hyphen between date and author */
.article-related .block-item-meta small + small {
    margin-left: 0;
}

/* Bottom accent line on hover */
.article-related .block-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0052cc, #00c453);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.article-related .block-item:hover::after {
    transform: scaleX(1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .article-related .block-item {
        margin-bottom: 20px;
    }

    .article-related .block-item-title {
        min-height: 45px;
    }

    .article-related .block-item-title a {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .article-related .block-item-img {
        padding-bottom: 56.25%; /* 16:9 on mobile */
    }

    .article-related .block-item-title {
        padding: 12px 14px 0;
        min-height: 60px;
    }

    .article-related .block-item-title a {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }

    .article-related .block-item-meta {
        padding: 8px 14px 12px;
        font-size: 10px;
    }

    .article-related .block-item-category {
        font-size: 9px !important;
        padding: 4px 10px !important;
    }
}

@media (max-width: 575px) {
    .article-related .row {
        margin: 0 -8px;
    }

    .article-related [class*="col-"] {
        padding: 0 8px;
    }

    .article-related .block-item {
        margin-bottom: 16px;
    }
}

/* ==========================================
   9. PRINT STYLES
   ========================================== */

@media print {
    .font-size-controls,
    .author-follow-btn,
    .author-social,
    .article-actions {
        display: none !important;
    }

    .author-card {
        border: 1px solid #ccc;
        background: white;
        box-shadow: none;
    }

    .sticky-element {
        position: static;
    }

    .sticky-element .widget.ad,
    .sticky-element .widget:has([class*="ad"]),
    .sticky-element .widget:has([id*="ad"]) {
        position: static;
    }
}
/**
 * Article Content Enhancements
 * Beautiful styling for H3, links, images, and zoom functionality
 * Last Updated: January 12, 2026
 */

/* ==========================================================================
   H3 HEADINGS - Left Accent Bar Style
   Complements the H2 gradient underline with a vertical gradient bar
   ========================================================================== */

.article-content h3,
.page-content h3 {
    position: relative;
    padding-left: 16px;
    margin-top: 1.75em;
    margin-bottom: 0.75em;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.article-content h3::before,
.page-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: linear-gradient(180deg, #0052cc 0%, #00c453 100%);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Subtle hover effect on H3 */
.article-content h3:hover::before,
.page-content h3:hover::before {
    width: 5px;
    box-shadow: 0 0 8px rgba(0, 82, 204, 0.3);
}

/* ==========================================================================
   H4 HEADINGS - Dot Indicator Style
   Subtle styling for sub-sub-sections
   ========================================================================== */

.article-content h4,
.page-content h4 {
    position: relative;
    padding-left: 20px;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #34495e;
    font-size: 1.1em;
}

.article-content h4::before,
.page-content h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #0052cc 0%, #00c453 100%);
    border-radius: 50%;
}

/* ==========================================================================
   LINKS - Animated Underline Effect
   Elegant hover animation with gradient underline
   ========================================================================== */

.article-content a:not(.btn):not(.share-btn):not(.badge):not([class*="article-"]),
.page-content a:not(.btn):not(.share-btn):not(.badge) {
    color: #0052cc;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.2s ease;
    background-image: linear-gradient(90deg, #0052cc 0%, #00c453 100%);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: left bottom;
    padding-bottom: 2px;
}

.article-content a:not(.btn):not(.share-btn):not(.badge):not([class*="article-"]):hover,
.page-content a:not(.btn):not(.share-btn):not(.badge):hover {
    color: #00c453;
    background-size: 100% 2px;
}

/* External link indicator */
.article-content a[target="_blank"]:not(.btn):not(.share-btn)::after,
.page-content a[target="_blank"]:not(.btn):not(.share-btn)::after {
    content: "\f35d"; /* Font Awesome external link icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.7em;
    margin-left: 4px;
    opacity: 0.6;
    vertical-align: super;
}

/* Visited link style */
.article-content a:visited:not(.btn):not(.share-btn):not(.badge):not([class*="article-"]),
.page-content a:visited:not(.btn):not(.share-btn):not(.badge) {
    color: #6c5ce7;
}

/* ==========================================================================
   IMAGES - Beautiful Frames and Shadows
   Professional appearance with subtle depth
   ========================================================================== */

.article-content img:not(.emoji):not(.avatar),
.page-content img:not(.emoji):not(.avatar) {
    border-radius: 8px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: zoom-in;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.article-content img:not(.emoji):not(.avatar):hover,
.page-content img:not(.emoji):not(.avatar):hover {
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Image figures (for captioned images) */
.article-content figure,
.page-content figure {
    margin: 2em 0;
    text-align: center;
}

.article-content figure img,
.page-content figure img {
    margin-bottom: 0.75em;
}

.article-content figcaption,
.page-content figcaption {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
    padding: 0 1em;
}

/* Article inner images specific styling */
.article-inner-image {
    margin: 2em auto;
    max-width: 100%;
}

.article-inner-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Section images that appear after H2 */
.article-image {
    margin: 1.5em 0 2em 0;
}

.article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   IMAGE LIGHTBOX - Click to Zoom
   Full-screen overlay for image viewing
   ========================================================================== */

.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
    backdrop-filter: blur(5px);
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-lightbox.active img {
    transform: scale(1);
}

/* Close button for lightbox */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close::before,
.lightbox-close::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

/* Image caption in lightbox */
.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
    text-align: center;
    max-width: 80%;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Navigation arrows for multiple images */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #fff;
    font-size: 24px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Image counter */
.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

/* ==========================================================================
   READ ALSO BLOCK - Enhanced Styling
   Better visual separation for related articles
   ========================================================================== */

.related-articles-block,
.read-also-block {
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.03) 0%, rgba(0, 196, 83, 0.03) 100%);
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #0052cc 0%, #00c453 100%) 1;
    padding: 20px 24px;
    margin: 2em 0;
    border-radius: 0 8px 8px 0;
}

.related-articles-block h5,
.read-also-block h5 {
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1em;
}

.related-articles-block ul,
.read-also-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-articles-block li,
.read-also-block li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.related-articles-block li:last-child,
.read-also-block li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-articles-block a,
.read-also-block a {
    color: #0052cc !important;
    font-weight: 500;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.related-articles-block a::before,
.read-also-block a::before {
    content: "\f105"; /* Font Awesome chevron */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.8em;
    color: #00c453;
    transition: transform 0.2s ease;
}

.related-articles-block a:hover,
.read-also-block a:hover {
    color: #00c453 !important;
}

.related-articles-block a:hover::before,
.read-also-block a:hover::before {
    transform: translateX(4px);
}

/* ==========================================================================
   LISTS - Better Visual Hierarchy
   Improved bullet points and spacing
   ========================================================================== */

.article-content ul:not([class]),
.page-content ul:not([class]) {
    list-style: none;
    padding-left: 0;
}

.article-content ul:not([class]) li,
.page-content ul:not([class]) li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.article-content ul:not([class]) li::before,
.page-content ul:not([class]) li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #0052cc 0%, #00c453 100%);
    border-radius: 50%;
}

/* Nested lists - different style */
.article-content ul:not([class]) ul li::before,
.page-content ul:not([class]) ul li::before {
    background: transparent;
    border: 2px solid #0052cc;
    width: 6px;
    height: 6px;
}

.article-content ul:not([class]) ul ul li::before,
.page-content ul:not([class]) ul ul li::before {
    border-radius: 0;
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
}

/* Ordered lists - gradient numbers */
.article-content ol:not([class]),
.page-content ol:not([class]) {
    list-style: none;
    padding-left: 0;
    counter-reset: custom-counter;
}

.article-content ol:not([class]) > li,
.page-content ol:not([class]) > li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    counter-increment: custom-counter;
}

.article-content ol:not([class]) > li::before,
.page-content ol:not([class]) > li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0052cc 0%, #00c453 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   TABLES - Clean Modern Style
   ========================================================================== */

.article-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-content th,
.page-content th {
    background: linear-gradient(135deg, #0052cc 0%, #00c453 100%);
    color: #fff;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
}

.article-content td,
.page-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.article-content tr:last-child td,
.page-content tr:last-child td {
    border-bottom: none;
}

.article-content tr:hover td,
.page-content tr:hover td {
    background: rgba(0, 82, 204, 0.03);
}

/* ==========================================================================
   DARK MODE ADJUSTMENTS
   ========================================================================== */

[data-theme="dark"] .article-content h3,
[data-theme="dark"] .page-content h3 {
    color: #e9ecef;
}

[data-theme="dark"] .article-content h4,
[data-theme="dark"] .page-content h4 {
    color: #ced4da;
}

[data-theme="dark"] .article-content a:not(.btn):not(.share-btn):not(.badge):not([class*="article-"]),
[data-theme="dark"] .page-content a:not(.btn):not(.share-btn):not(.badge) {
    color: #6ea8fe;
}

[data-theme="dark"] .article-content a:not(.btn):not(.share-btn):not(.badge):not([class*="article-"]):hover,
[data-theme="dark"] .page-content a:not(.btn):not(.share-btn):not(.badge):hover {
    color: #00c453;
}

[data-theme="dark"] .article-content img:not(.emoji):not(.avatar),
[data-theme="dark"] .page-content img:not(.emoji):not(.avatar) {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .related-articles-block,
[data-theme="dark"] .read-also-block {
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 196, 83, 0.1) 100%);
}

[data-theme="dark"] .related-articles-block h5,
[data-theme="dark"] .read-also-block h5 {
    color: #e9ecef;
}

[data-theme="dark"] .related-articles-block li,
[data-theme="dark"] .read-also-block li {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .article-content table,
[data-theme="dark"] .page-content table {
    background: #2d2d2d;
}

[data-theme="dark"] .article-content td,
[data-theme="dark"] .page-content td {
    border-color: #404040;
}

[data-theme="dark"] .article-content tr:hover td,
[data-theme="dark"] .page-content tr:hover td {
    background: rgba(0, 82, 204, 0.1);
}

[data-theme="dark"] .article-content ul:not([class]) li::before,
[data-theme="dark"] .page-content ul:not([class]) li::before {
    box-shadow: 0 0 4px rgba(0, 196, 83, 0.3);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 767px) {
    .article-content h3,
    .page-content h3 {
        padding-left: 14px;
        font-size: 1.25em;
    }

    .article-content h3::before,
    .page-content h3::before {
        width: 3px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .related-articles-block,
    .read-also-block {
        padding: 16px 18px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .article-content a,
    .article-content img,
    .article-content h3::before,
    .image-lightbox,
    .image-lightbox img {
        transition: none;
    }
}

/* ==========================================================================
   SECTION TEMPLATES - Branded styling for standard sections
   FAQ, Conclusion, Summary, Key Takeaways, Final Thoughts, References
   No images needed - pure CSS with icons
   ========================================================================== */

/* Base template section styling */
.section-template {
    position: relative;
    margin: 2em 0;
    padding: 24px 24px 24px 70px;
    border-radius: 12px;
    border-left: 4px solid;
}

.section-template::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 24px; /* Align with the H2 heading at top */
    font-size: 28px;
    opacity: 0.9;
}

.section-template h2 {
    margin: 0 0 0.5em 0 !important;
    padding: 0 !important;
    font-size: 1.4em;
}

.section-template h2::after {
    display: none !important; /* Hide the default H2 gradient line */
}

/* FAQ Section - Question mark, Teal/Blue theme */
.section-faq {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(0, 150, 199, 0.08) 100%);
    border-color: #00bcd4;
}

.section-faq::before {
    content: "\f059"; /* question-circle */
    color: #00bcd4;
}

.section-faq h2 {
    color: #00838f;
}

/* Conclusion Section - Checkmark, Green theme */
.section-conclusion {
    background: linear-gradient(135deg, rgba(0, 196, 83, 0.08) 0%, rgba(0, 150, 65, 0.08) 100%);
    border-color: #00c453;
}

.section-conclusion::before {
    content: "\f058"; /* check-circle */
    color: #00c453;
}

.section-conclusion h2 {
    color: #00873d;
}

/* Summary Section - List, Purple theme */
.section-summary {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.08) 0%, rgba(123, 31, 162, 0.08) 100%);
    border-color: #9c27b0;
}

.section-summary::before {
    content: "\f03a"; /* list-alt */
    color: #9c27b0;
}

.section-summary h2 {
    color: #7b1fa2;
}

/* Key Takeaways Section - Lightbulb, Gold theme */
.section-takeaways {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 160, 0, 0.12) 100%);
    border-color: #ffc107;
}

.section-takeaways::before {
    content: "\f0eb"; /* lightbulb */
    color: #f9a825;
}

.section-takeaways h2 {
    color: #f57c00;
}

/* Final Thoughts Section - Comment/Thought, Orange theme */
.section-thoughts {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.08) 0%, rgba(230, 74, 25, 0.08) 100%);
    border-color: #ff5722;
}

.section-thoughts::before {
    content: "\f4ad"; /* comment-dots */
    color: #ff5722;
}

.section-thoughts h2 {
    color: #e64a19;
}

/* References/Sources Section - Book, Gray theme */
.section-references {
    background: linear-gradient(135deg, rgba(96, 125, 139, 0.08) 0%, rgba(69, 90, 100, 0.08) 100%);
    border-color: #607d8b;
}

.section-references::before {
    content: "\f02d"; /* book */
    color: #607d8b;
}

.section-references h2 {
    color: #455a64;
}

/* Wrap Up Section - Same as Conclusion */
.section-wrapup {
    background: linear-gradient(135deg, rgba(0, 196, 83, 0.08) 0%, rgba(0, 150, 65, 0.08) 100%);
    border-color: #00c453;
}

.section-wrapup::before {
    content: "\f058"; /* check-circle */
    color: #00c453;
}

.section-wrapup h2 {
    color: #00873d;
}

/* Dark mode for section templates */
[data-theme="dark"] .section-template {
    border-width: 4px;
}

[data-theme="dark"] .section-faq {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.15) 0%, rgba(0, 150, 199, 0.15) 100%);
}

[data-theme="dark"] .section-faq h2 {
    color: #4dd0e1;
}

[data-theme="dark"] .section-conclusion,
[data-theme="dark"] .section-wrapup {
    background: linear-gradient(135deg, rgba(0, 196, 83, 0.15) 0%, rgba(0, 150, 65, 0.15) 100%);
}

[data-theme="dark"] .section-conclusion h2,
[data-theme="dark"] .section-wrapup h2 {
    color: #69f0ae;
}

[data-theme="dark"] .section-summary {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15) 0%, rgba(123, 31, 162, 0.15) 100%);
}

[data-theme="dark"] .section-summary h2 {
    color: #ce93d8;
}

[data-theme="dark"] .section-takeaways {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 160, 0, 0.2) 100%);
}

[data-theme="dark"] .section-takeaways h2 {
    color: #ffca28;
}

[data-theme="dark"] .section-thoughts {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.15) 0%, rgba(230, 74, 25, 0.15) 100%);
}

[data-theme="dark"] .section-thoughts h2 {
    color: #ff8a65;
}

[data-theme="dark"] .section-references {
    background: linear-gradient(135deg, rgba(96, 125, 139, 0.15) 0%, rgba(69, 90, 100, 0.15) 100%);
}

[data-theme="dark"] .section-references h2 {
    color: #90a4ae;
}

/* Mobile responsiveness for section templates */
@media (max-width: 767px) {
    .section-template {
        padding: 20px 16px 20px 56px;
    }

    .section-template::before {
        left: 14px;
        font-size: 24px;
    }

    .section-template h2 {
        font-size: 1.2em;
    }
}

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

@media print {
    .article-content img {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .article-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .image-lightbox {
        display: none !important;
    }
}
