/* ----- Article meta row ----- */
.art-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: .5rem 0 1rem;
    font-size: .9rem;
    color: var(--text-light);
}
.art-meta svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: .25rem;
}

/* ----- CSS Variables ----- */
body {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-extra-light: #eff6ff;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --bg-warm: #f7f8fc;
    --bg-cool: #eef2f6;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,.04);
    --shadow-md: 0 6px 18px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 30px rgba(0,0,0,.08);
    --transition: all 0.3s ease;
}
:root { color: #1e293b; }

/* ---------- GLOBAL ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    background: linear-gradient(135deg, #f7f8fc 0%, #eef2f6 100%);
    font-family: 'Readex Pro', Arial, sans-serif;
    color: #02060eff;
    line-height: 1.6;
    min-height: 100vh;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    overflow: hidden;
}

/* ---------- TOP HEADER ---------- */
header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 28px 32px;
    font-size: 1.75em;
    font-weight: 500;
    font-family: 'Markazi','El Messiri','Times New Roman',serif;
    text-align: center;
    position: relative;
    overflow: hidden;
}
header:before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.1);
    animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer {
    0%,100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Enhanced circular home button */
.home-btn-circular {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    color: #2563eb;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.home-btn-circular:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #1d4ed8;
}

.home-btn-circular:active {
    transform: translateY(0);
}

/* ---------- TWO-COLUMN CORE ---------- */
/* ---------- TWO-COLUMN CORE ---------- */
.flexbox .two-col {
    display: flex;
    flex-direction: row-reverse;
}

/* Width distribution */
.flexbox .list-pane {
    flex: 0 0 36%;
}

.flexbox .detail-pane {
    flex: 1;
}
.two-col {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
/* ---------- RIGHT PANE – ARTICLE LIST ---------- */
.list-pane {
    display: table-cell;
    width: 36%;
    background: #fff;
    border-left: 1px solid #f1f5f9;
    overflow-y: auto;
    max-height: 82vh;
    transition: all 0.3s ease;
    vertical-align: top;
    position: relative;
}
.list-pane::after {
    content:"";
    position:absolute;
    top:0;
    bottom:56px; /* same pager offset */
    left:0;
    width:4px;
    background:linear-gradient(to bottom,
                               rgba(37,99,235,.25) 0%,
                               rgba(37,99,235,.05) 50%,
                               rgba(37,99,235,.25) 100%);
}
.pane-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.pane-header h2 {
    margin: 0;
    font-family: 'El Messiri','Times New Roman',serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}
.page-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* ---------- THEME FILTER ---------- */
.theme-filter {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.theme-header h3 {
    margin: 0 0 0.75rem 0;
    font-family: 'El Messiri', serif;
    font-size: 1.1rem;
    color: #1e293b;
    text-align: center;
}

.theme-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.theme-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Markazi Text', 'El Messiri', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.theme-btn:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
}

.theme-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
    font-weight: 600;
}

.search-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f0;
    gap: 0.75rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Markazi Text', 'El Messiri', 'Times New Roman', serif;
    font-weight: 400;
}
.search-box input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
/* custom scrollbar */
.list-pane::-webkit-scrollbar { width: 8px; }
.list-pane::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}
.list-pane::-webkit-scrollbar-thumb:hover { background: #2563eb; }

.titles { list-style: none; margin: 0; padding: 0; }
.titles li { border-bottom: 1px solid #f1f5f9; transition: all 0.25s ease; }
.titles li:last-child { border-bottom: none; }
.titles a {
    display: block;
    color: #01070fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.2;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.7rem 1rem 0.7rem 2.5rem; /* Add left padding for arrow */
}
/* Remove the article indicator arrow from left side */
.article-indicator {
    display: none !important;
}

/* Add arrow to the beginning of each title */
.titles li a {
    position: relative;
    padding: 0.7rem 2rem 0.7rem 1rem; /* Adjust padding for the arrow */
}

/* Using text arrow  */

.titles li a::before {
    content: "›"; 
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #fa6705;
    transition: all 0.3s ease;
}


/* Hover effect for the arrow */
.titles li a:hover::before {
    color: #2563eb; /* Change color on hover */
    right: 0.6rem; /* Slight movement on hover */
}

/* Active state arrow */
.titles .active a::before {
    color: #2563eb;
    font-weight: bold;
}

/* Adjust title spacing to accommodate the arrow */
.article-title {
    display: block;
    margin-left: 0;
    padding-right: 0.5rem; /* Add some space between text and arrow */
}

.titles a:hover {
    background: #eff6ff;
    padding-right: 1.25rem;
}
.titles .active {
    background: #eff6ff;
    border-right: 4px solid #2563eb;
}
.titles .active a {
    background: transparent;
    color: #1d4ed8;
    font-weight: 600;
}
.no-articles {
    padding: 2rem 1.5rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* ---------- LEFT PANE – ARTICLE DETAIL ---------- */
.detail-pane {
    display: table-cell;
    width: 64%;
    background: #fff;
    vertical-align: top;
}
.art-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 2.5rem 3rem 1.5rem;
    position: relative;
    min-height: 120px;
}
.art-header h1 {
    font-family: 'Lemonada','Almarai',Arial,sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.8;
    margin: 0 0 1rem;
    padding-right: 2.5rem;
    max-width: 85%;
}
.art-header time {
    display: block;
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Enhanced Responses Link Button */
.responses-link-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.responses-link-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.responses-link-btn:active {
    transform: translateY(0);
}

/* Responses badge/count */
.responses-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Make sure action buttons container has proper positioning */
.article-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
}

/* Ensure all action buttons have consistent styling */
.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.action-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15);
}

.art-content {
    font-family: 'Markazi','Readex Pro',Arial,sans-serif;
    direction: rtl;
    text-align: right;
    font-size: 1rem;
    line-height: 1.9;
    color: #01070fff;
    padding: 0 3rem 3rem;
    background: #fff;
}
.art-content p { margin-bottom: 1.5rem; color: #1e293b; }
.art-content p:first-child {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1e293b;
    background: linear-gradient(135deg, rgba(37,99,235,0.03) 0%, rgba(59,130,246,0.05) 100%);
    padding: 1.5rem;
    border-right: 3px solid #2563eb;
    border-radius: 12px;
    margin-bottom: 2.5rem;
}
.art-content h2,
.art-content h3,
.art-content h4 {
    font-family: 'El Messiri','Times New Roman',serif;
    font-weight: 500;
    margin: 2.5rem 0 1.25rem;
    color: #1e293b;
}
.art-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.75rem;
}
.art-content h3 {
    font-size: 1.5rem;
    color: #2563eb;
    border-right: 4px solid #2563eb;
    padding-right: 1rem;
}
.art-content h4 { font-size: 1.3rem; color: #64748b; }
.art-content blockquote {
    background: #f8fafc;
    border-right: 4px solid #2563eb;
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    border-radius: 12px;
    font-style: italic;
    color: #64748b;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    position: relative;
}
.art-content ul, .art-content ol {
    margin: 1.75rem 0;
    padding-right: 2.5rem;
}
.art-content li { margin-bottom: 0.85rem; position: relative; }
.art-content ul li:before {
    content: "";
    position: absolute;
    right: -1.25rem;
    top: 0.75rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #2563eb;
}
.art-content a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 0 2px;
}
.art-content a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
    background: rgba(37,99,235,0.05);
    border-radius: 3px;
}

/* Back to top button */
.back-to-top-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.back-to-top-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Markazi Text', 'El Messiri', serif;
}

.back-to-top-btn:hover {
    background: #e2e8f0;
    color: #374151;
}

/* ---------- PAGINATION ---------- */
.pager {
    margin: 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
.pager a,
.pager span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    line-height: 38px;
    margin: 0 0.125rem;
    vertical-align: middle;
    transition: all 0.3s ease;
}
.pager a:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.pager .cur {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    border-color: #1d4ed8;
}
.pager .dots {
    background: transparent;
    border: none;
    color: #94a3b8;
    min-width: auto;
}
/* Extra state for search */
.pager.hidden { display: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:1080px) {
    .two-col { display:block; }
    .list-pane {
        width: 100%;
        max-height: 40vh;
        border-bottom: 1px solid #f1f5f9;
    }
    .detail-pane { width: 100%; }
    .art-header { padding: 2rem 1.5rem 1rem; }
    .art-header h1 { font-size: 1.8rem; max-width: 100%; }
    .article-actions { position: static; margin-bottom: 1rem; }
    .art-content { padding: 0 1.5rem 2rem; }
    
    /* Theme filter responsive */
    .theme-buttons {
        gap: 0.4rem;
    }
    
    .theme-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
@media (max-width:640px) {
    header { padding:1.5rem 1rem; font-size:1.4rem; }
    .list-pane { max-height:35vh; }
    .pane-header { padding:1rem; }
    .pane-header h2 { font-size:1.3rem; }
    .search-box { padding:0.75rem 1rem; }
    .titles a { font-size:1rem; padding:0.75rem 1rem; }
    .art-header h1 { font-size:1.5rem; }
    .art-content { font-size:1.05rem; padding:0 1rem 1.5rem; }
    .pager { padding:1rem; }
    .pager a,.pager span {
        min-width:36px; height:36px; font-size:0.9rem; line-height:34px;
    }
    .pager-first,.pager-last { display:none; }
    
    /* Theme filter mobile */
    .theme-filter {
        padding: 0.75rem 1rem;
    }
    
    .theme-header h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .theme-buttons {
        gap: 0.3rem;
    }
    
    .theme-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
}

/* ---------- PRINT ---------- */
@media print {
    .list-pane,.pager,.article-actions,.search-box { display:none!important; }
    .detail-pane { width:100%!important; box-shadow:none; border:none; padding:0; }
    .art-header { border:none; padding:0 0 1rem; }
    .art-content { padding:0; }
    header { background:none!important; color:black!important; padding:0 0 1rem; text-align:left; }
    .container { margin:0; box-shadow:none; max-width:100%; }
}

/* ---------- ACCESSIBILITY ---------- */
a:focus,button:focus,input:focus {
    outline:2px solid #2563eb;
    outline-offset:2px;
}

/* SIMPLEST SOLUTION - Keep default radio buttons */
.search-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #64748b;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.radio-option span {
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Markazi Text', 'El Messiri', 'Times New Roman', serif;
}

/* Remove the blue focus outline */
.radio-option input[type="radio"] {
    outline: none;
}

.radio-option:focus-within {
    outline: none;
}

.radio-option input[type="radio"]:checked ~ span {
    color: #2563eb;
    font-weight: 600;
}

/* for mobile */
/* ========== ENHANCED MOBILE RESPONSIVE LAYOUT ========== */
@media (max-width: 1080px) {
    .container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .two-col {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
    /* List pane becomes a header-like section */
    .list-pane {
        max-height: none;
        border-left: none;
        order: 1; /* Show first on mobile */
    }
    
    .list-pane::after {
        display: none; /* Remove the gradient line */
    }
    
    /* Detail pane takes main content area */
    .detail-pane {
        order: 2; /* Show second on mobile */
        flex: 1;
        overflow-y: auto;
    }
    
    /* Collapsible list for mobile */
    .pane-header {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .pane-header::after {
        content: "▼";
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }
    
    .list-pane.collapsed .titles {
        display: none;
    }
    
    .list-pane.collapsed .pane-header::after {
        transform: rotate(-90deg);
    }
    
    .titles {
        max-height: 300px;
        overflow-y: auto;
        transition: max-height 0.3s ease;
    }
    
    /* Article actions center on mobile */
    .article-actions {
        justify-content: center;
    }
}

/* ========== SMALL MOBILE ENHANCEMENTS ========== */
@media (max-width: 640px) {
    /* Keep existing 640px styles and add enhancements */
    
    .search-options {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .radio-option {
        flex: none;
        min-width: 120px;
    }
    
    /* Arrow positioning for mobile */
    .titles a::after {
        right: 0.5rem;
        font-size: 1.1rem;
    }
    
    .titles a:hover::after {
        right: 0.4rem;
    }
}

/* ========== VERY SMALL SCREENS ========== */
@media (max-width: 400px) {
    .search-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .radio-option {
        width: 100%;
        justify-content: center;
    }
    
    .pager-prev, .pager-next {
        display: none;
    }
    
    /* Better touch targets for mobile */
    .titles a {
        padding: 0.8rem 2rem 0.8rem 1rem;
    }
    
    .action-btn {
        width: 44px;
        height: 44px;
    }
}

/* Floating button to show article list */
.show-list-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-family: 'Markazi Text', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.show-list-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Mobile-specific button positioning */
@media (max-width: 640px) {
    .show-list-btn {
        bottom: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Responsive adjustments */
@media (max-width: 1080px) {
    .article-actions {
        top: 2rem;
        left: 1.5rem;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
    }
    
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 640px) {
    .article-actions {
        position: static;
        justify-content: center;
        margin: 1rem 0;
        gap: 0.75rem;
    }
    
    .action-btn {
        width: 44px;
        height: 44px;
    }
    
    .action-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Print styles - hide buttons when printing */
@media print {
    .article-actions {
        display: none !important;
    }
}

/* ---------- ARTICLE LINK STYLES ---------- */
.art-content a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 0 2px;
}

.art-content a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 3px;
}

/* Optional: Style for external link indicator */
.art-content a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.8em;
    display: inline-block;
}

/* ---- footer same style as header ---- */
footer{
    background: #2563eb;
    background: -webkit-linear-gradient(-45deg, #2563eb 0%, #1d4ed8 100%);
    background: -moz-linear-gradient(-45deg, #2563eb 0%, #1d4ed8 100%);
    background: -o-linear-gradient(-45deg, #2563eb 0%, #1d4ed8 100%);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 28px 32px;
    font-size: 1em;
    font-family: 'Markazi','El Messiri', 'Times New Roman', serif;
    text-align: center;
    position: relative;
    overflow: hidden;
}
footer:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,.1);
    -webkit-animation: shimmer 5s ease-in-out infinite;
    -moz-animation: shimmer 5s ease-in-out infinite;
    -o-animation: shimmer 5s ease-in-out infinite;
    animation: shimmer 5s ease-in-out infinite;
}
/* ----------  FOOTER LINKS  ---------- */
footer a {
    color: #fff;
    text-decoration: underline;      /* visible underline */
    font-weight: 500;
}
footer a:hover {
    color: #e2e8f0;                  /* slightly lighter on hover */
    text-decoration: underline;
}
.footer-content {
    position: relative;
    z-index: 1;        /* stay underneath the <a> tags */
}

/* ---------- PRINT STYLES (Enhanced for PDF) ---------- */
@media print {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    header, .header-nav-icons, .article-actions, .search-box, 
    .theme-filter, .pager, footer {
        display: none !important;
    }
    
    .two-col {
        display: block !important;
    }
    
    .list-pane {
        display: none !important;
    }
    
    .detail-pane {
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .art-header {
        border: none !important;
        padding: 0 0 20px 0 !important;
        /* padding-left: 200px;*/
        margin-bottom: 20px !important;
        border-bottom: 2px solid #2563eb !important;
    }
    
    .art-header h1 {
        color: #000 !important;
        font-size: 24pt !important;
        margin-bottom: 10px !important;
    }
    
    .art-content {
        font-size: 12pt !important;
        line-height: 1.6 !important;
        padding: 0 !important;
    }
    
    .art-content p {
        margin-bottom: 12pt !important;
    }
    
    .art-content a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    /* Add URL after links for print */
    .art-content a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    p, ul, ol {
        page-break-inside: avoid;
    }
    
    /* Footer for printed pages */
    @page {
        margin: 2cm;
        @bottom-right {
            content: "الصفحة " counter(page) " من " counter(pages);
            font-size: 10pt;
            color: #666;
        }
        @bottom-left {
            content: "© 2025 موقع بوابتي - myportail.com";
            font-size: 10pt;
            color: #666;
        }
    }
}



/*  Responses Section Styling */
/* RESPONSES*/
/* Enhanced Responses Section Styling */
.responses-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    transition: all 0.5s ease;
}

.responses-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.responses-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

.responses-count {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Enhanced Response Item with Better Spacing and Rounded Corners */
.response-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px; /* More rounded corners */
    padding: 1.5rem;
    margin: 0 1rem 1.5rem 1rem; /* Added horizontal margin for spacing from global frame */
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.response-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px); /* Subtle lift effect */
}

.response-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.825rem; /* Slightly smaller */
    color: #64748b;
}

.response-author {
    font-weight: 600;
    color: #1e293b;
}

.response-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.response-title {
    font-size: 1rem; /* Smaller title */
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Smaller Response Content */
.response-content {
    color: #374151;
    line-height: 1.5; /* Tighter line height */
    font-size: 0.875rem; /* Smaller font size */
}

.response-content p {
    margin-bottom: 0.6rem; /* Less spacing between paragraphs */
}

.response-content p:last-child {
    margin-bottom: 0;
}

.no-responses {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
    margin: 0 1rem; /* Add margin to match response items */
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.no-responses svg {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .response-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .response-item {
        padding: 1rem;
        margin: 0 0.5rem 1rem 0.5rem; /* Smaller margins on mobile */
    }
    
    .no-responses {
        margin: 0 0.5rem;
    }
}



/********** ADD RESPONSES ***********/
/* .add-response-box          { margin:2rem 3rem 3rem; padding:1.5rem; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; } */



.add-response-box h4       { margin:0 0 1rem; font-family:'El Messiri',serif; color:#1e293b; }
.add-response-box label    { display:block; margin-bottom:1rem; font-size:.95rem; color:#374151; }
.add-response-box input,
.add-response-box textarea { width:100%; padding:.55rem .75rem; margin-top:.25rem; border:1px solid #cbd5e1; border-radius:8px; font-family:inherit; font-size:.95rem; }
.add-response-box button   { background:#2563eb; color:#fff; border:none; padding:.6rem 1.4rem; border-radius:8px; cursor:pointer; font-weight:600; transition:background .25s; }
.add-response-box button:hover { background:#1d4ed8; }
.required                  { color:#ef4444; }
.error                     { color:#b91c1c; margin-bottom:1rem; font-size:.9rem; }

@media(max-width:640px){
  .add-response-box { margin:1.5rem 1rem 2rem; }
}


    /* Floating Notification Styles */
    .floating-notification {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
        color: white;
        padding: 15px 20px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        z-index: 10000;
        min-width: 300px;
        max-width: 90%;
        animation: slideInDown 0.5s ease;
    }
    
    .notification-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .notification-close {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        margin-left: 15px;
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    @keyframes slideInDown {
        from {
            transform: translate(-50%, -100%);
            opacity: 0;
        }
        to {
            transform: translate(-50%, 0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutUp {
        from {
            transform: translate(-50%, 0);
            opacity: 1;
        }
        to {
            transform: translate(-50%, -100%);
            opacity: 0;
        }
    }

    /* Authors list styles */
/* Enhanced Authors list styles - FIXED LOADING SPINNER */
.authors-container {
    padding: 5px !important;
    margin: 0 !important;
}

.authors-list h3 {
    font-family: 'Cairo Play','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    color: #1e293b;
    margin: 0 0 10px 0 !important;
    text-align: center;
    font-size: 1.3em;
    padding: 6px 8px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0 !important;
    margin: 10px 0 !important;
}

.author-item {
    padding: 8px 10px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 3px solid;
    margin: 0 !important;
}

.author-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* CRITICAL: Override the inherited white background from .titles a */
.authors-grid .author-link,
.authors-grid a,
.author-item .author-link,
.author-item a {
    background: transparent !important;
    background-color: transparent !important;
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    /* Override any inherited styles from .titles a */
    position: static !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0 !important;
    display: block;
    color: #1e293b;
    font-family: 'El Messiri', 'Markazi Text', serif;
    line-height: 1.3;
    padding: 0 !important;
    background: transparent !important;
}

.article-count {
    font-size: 11px;
    color: #475569;
    padding: 2px 6px !important;
    border-radius: 10px;
    display: inline-block;
    margin: 0 !important;
    font-weight: 500;
    background: transparent !important;
    opacity: 0.85;
}

/* Style variations with higher specificity */
.authors-grid .author-item.style-1 { 
    border-left-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.12) !important;
}
.authors-grid .author-item.style-2 { 
    border-left-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.12) !important;
}
.authors-grid .author-item.style-3 { 
    border-left-color: #10b981;
    background-color: rgba(16, 185, 129, 0.12) !important;
}
.authors-grid .author-item.style-4 { 
    border-left-color: #6366f1;
    background-color: rgba(99, 102, 241, 0.12) !important;
}
.authors-grid .author-item.style-5 { 
    border-left-color: #ec4899;
    background-color: rgba(236, 72, 153, 0.12) !important;
}
.authors-grid .author-item.style-6 { 
    border-left-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.12) !important;
}
.authors-grid .author-item.style-7 { 
    border-left-color: #06b6d4;
    background-color: rgba(6, 182, 212, 0.12) !important;
}
.authors-grid .author-item.style-8 { 
    border-left-color: #f97316;
    background-color: rgba(249, 115, 22, 0.12) !important;
}
.authors-grid .author-item.style-9 { 
    border-left-color: #84cc16;
    background-color: rgba(132, 204, 22, 0.12) !important;
}
.authors-grid .author-item.style-10 { 
    border-left-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.12) !important;
}

/* Enhanced hover effects */
.authors-grid .author-item:hover .article-count {
    opacity: 1;
    color: #374151;
}

.authors-grid .author-item:hover .author-name {
    color: #0f172a;
}

/* CRITICAL: Loading animation styles - EXCLUDE FROM BACKGROUND REMOVAL */
.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px !important;
    text-align: center;
    background: #f8fafc !important; /* Keep this background */
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    margin: 10px 0 !important;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3 !important; /* Keep spinner backgrounds */
    border-top: 2px solid #3498db !important; /* Keep blue spinner color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 0 8px 0 !important;
    /* Ensure spinner is visible */
    background: transparent !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-animation p {
    color: #666 !important;
    font-size: 13px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.error-message {
    text-align: center;
    padding: 20px 10px !important;
    color: #e53e3e;
    background: #fef2f2 !important; /* Keep error message background */
    border-radius: 5px;
    border: 1px solid #fecaca;
    font-size: 0.85em;
    margin: 10px 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 6px;
    }
    
    .author-item {
        padding: 6px 8px !important;
    }
    
    .author-name {
        font-size: 13px;
    }
    
    .article-count {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* MODIFIED NUCLEAR OPTION - Exclude loading animation and error message */
.authors-container .authors-list .authors-grid .author-item .author-link,
.authors-container .authors-list .authors-grid .author-item .author-link *,
.authors-container .authors-list .authors-grid .author-item a,
.authors-container .authors-list .authors-grid .author-item a * {
    background: transparent !important;
    background-color: transparent !important;
}

/* DO NOT affect loading animation or error message backgrounds */
.authors-container .loading-animation,
.authors-container .loading-animation *,
.authors-container .error-message,
.authors-container .error-message *,
.authors-container .spinner {
    /* Keep their original backgrounds - DO NOT override */
}

/* Voice button specific styles */
.voice-btn {
    background: transparent !important;
   /* border: 1px solid #FF6B35 !important;*/
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    color: #FF6B35 !important;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15);
}

.voice-btn:hover {
    background: #FF6B35 !important;
    color: white !important;
    transform: translateY(-2px);
}

.voice-btn.speaking {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
    color: white !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Ensure all action buttons have consistent styling */
.article-actions .action-btn {
    transition: all 0.3s ease;
}

/* THEME */

        .theme-link {
        color: #7c3aed;
        text-decoration: none;
        padding: 1px 4px;
        border-radius: 3px;
        background-color: #f5f3ff;
        transition: all 0.2s ease;
        margin-right: 6px;
        margin-left: 2px;
        position: relative;
        z-index: 10;
        display: inline-block;
        font-size: 1em;
    }

    .theme-link:hover {
        background-color: #ede9fe;
        color: #6d28d9;
        text-decoration: underline;
        transform: translateY(-1px);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    /* Reduce spacing in the metadata container */
    .art-header > div {
        position: relative;
        z-index: 5;
        line-height: 1.4; /* Tighter line height */
    }
    
    /* Reduce icon spacing */
    .art-header > div svg {
        margin-right: 6px;
        margin-left: 2px;
    }

    /******************************************/
    /******************************************/
    /**STYLES MOVED FROM INTERNE TO HERE ***********/
          .show-list-btn {
    background-color: #dc2626 !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 25px !important; /* Round corners */
    font-weight: bold !important;
    cursor: pointer !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.show-list-btn:hover {
    background-color: #b91c1c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3) !important;
}
/************************** */
        .message-box {
            padding: 15px;
            margin: 20px 0;
            border-radius: 8px;
            font-weight: bold;
            text-align: center;
        }
        .message-success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .message-error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        .message-box svg {
            vertical-align: middle;
            margin-left: 8px;
        }
        
        /* Floating Notification Styles */
        .floating-notification {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
            color: white;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            z-index: 10000;
            min-width: 300px;
            max-width: 90%;
            display: none;
        }
        
        .notification-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .notification-close {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            margin-left: 15px;
            padding: 0;
            display: flex;
            align-items: center;
        }
        
        /* Hide pagination for authors view */
        .authors-view .pager {
            display: none !important;
        }

       /* Ultra-compact version */
.vote-like-btn, .vote-dislike-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    background: white;
    min-width: auto;
    gap: 2px; /* Very tight spacing */
}

.vote-like-btn {
    color: #28a745;
}

.vote-dislike-btn {
    color: #dc3545;
}

.vote-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0,0,0,0.05);
    padding: 1px 4px;
    border-radius: 6px;
    min-width: 16px;
    text-align: center;
    color: #666;
}

.vote-like-btn svg, 
.vote-dislike-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ===== PROFESSIONAL COMMENTS SLIDE WINDOW - OPTIMIZED ===== */
.comments-slide-window {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid #e2e8f0;
    z-index: 10000;
    transform: translateX(-420px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Readex Pro', 'Noto Sans Arabic', Arial, sans-serif;
    overflow: hidden;
}

.comments-slide-window.slide-in {
    transform: translateX(0);
}

.comments-slide-window.minimized {
    transform: translateX(-420px);
}

.slide-window-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slide-window-header h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.slide-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.slide-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.slide-window-content {
    padding: 20px;
    max-height: 220px;
    overflow-y: auto;
}

.latest-comment {
    animation: fadeInUp 0.5s ease;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85em;
    gap: 10px;
}

.comment-author {
    font-weight: 600;
    color: #2d3748;
    background: #f7fafc;
    padding: 5px 10px;
    border-radius: 6px;
    flex-shrink: 0;
}

.comment-date {
    color: #718096;
    font-size: 0.8em;
    flex-shrink: 0;
}

.comment-preview {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 18px;
    font-size: 0.9em;
    background: #f8fafc;
    padding: 14px;
    border-radius: 8px;
    border-right: 4px solid #3498db;
    max-height: 85px;
    overflow: hidden;
    position: relative;
}

.comment-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(transparent, #f8fafc 80%);
}

/* ===== OPTIMIZED BUTTON LAYOUT ===== */
.comment-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: nowrap;
    margin-top: 5px;
}

.read-article-btn {
    display: inline-flex;
    align-items: center;
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 6px;
    flex: 2.5;
    justify-content: center;
    min-width: 180px;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.read-article-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.35);
}

.new-comment-btn {
    display: inline-flex;
    align-items: center;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 5px;
    flex: 1;
    justify-content: center;
    min-width: 95px;
    white-space: nowrap;
    line-height: 1.2;
}

.new-comment-btn:hover {
    background: #edf2f7;
    border-color: #a0aec0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slide-window-footer {
    padding: 14px 20px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.slide-minimize-btn,
.slide-dismiss-btn {
    padding: 8px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
}

.slide-minimize-btn:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

.slide-dismiss-btn {
    background: #fed7d7;
    color: #c53030;
    border-color: #feb2b2;
    font-weight: 600;
}

.slide-dismiss-btn:hover {
    background: #feb2b2;
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .comments-slide-window {
        width: 340px;
        left: 10px;
        bottom: 10px;
    }
    
    .slide-window-content {
        padding: 18px;
        max-height: 200px;
    }
    
    .comment-actions {
        gap: 6px;
    }
    
    .read-article-btn {
        min-width: 160px;
        padding: 9px 14px;
        font-size: 0.82em;
    }
    
    .new-comment-btn {
        min-width: 85px;
        padding: 9px 10px;
        font-size: 0.78em;
    }
}

@media (max-width: 480px) {
    .comments-slide-window {
        width: 320px;
        left: 5px;
        bottom: 5px;
    }
    
    .slide-window-header {
        padding: 14px 18px;
    }
    
    .slide-window-header h4 {
        font-size: 1em;
    }
    
    .slide-window-content {
        padding: 16px;
    }
    
    .comment-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .read-article-btn,
    .new-comment-btn {
        width: 100%;
        min-width: auto;
        flex: none;
        padding: 12px 16px;
        font-size: 0.85em;
    }
    
    .slide-window-footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .slide-minimize-btn,
    .slide-dismiss-btn {
        width: 100%;
        padding: 10px 16px;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.slide-window-content::-webkit-scrollbar {
    width: 4px;
}

.slide-window-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.slide-window-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.slide-window-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/************************** */
/* ===== MOBILE SPACING FIX FOR ARTICLE CONTENT ===== */
@media (max-width: 768px) {
    .detail-pane {
        padding-top: 20px !important;
    }
    
    .art-content {
        margin-top: 15px !important;
        padding-top: 10px !important;
    }
    
    /* Additional spacing for better mobile readability */
    .art-header {
        margin-bottom: 10px !important;
    }
    
    /* Ensure the article content has proper breathing room from top actions */
    .detail-pane > *:first-child {
        margin-top: 15px !important;
    }
}

/* For very small mobile devices */
@media (max-width: 480px) {
    .detail-pane {
        padding-top: 25px !important;
    }
    
    .art-content {
        margin-top: 20px !important;
        padding-top: 15px !important;
    }
}
.add-response-box {
    background-color: #fffdf0;
    border: 1px solid #fff3cd;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

