/* Single Article (Dossiers & Research) Styles */

/* Base Reset for this page */
.cn-single-article-main {
    background-color: #f9f9fb;
    padding-bottom: 60px;
}

/* Hero Section */
.cn-article-hero {
    background-size: cover;
    background-position: center;
    padding: 80px 0 60px;
    color: #fff;
    text-align: center;
    position: relative;
    margin-bottom: 30px;
}

.cn-hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.cn-article-badge {
    background-color: #D32F2F;
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cn-article-badge:hover {
    background-color: #b71c1c;
    color: #fff;
}

.cn-article-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    color: #fff;
}

.cn-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
    align-items: center;
}

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

.cn-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Layout Grid */
.cn-single-article-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Main Content Column */
.cn-article-content-col {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.cn-article-body {
    font-size: 18px;
    line-height: 2;
    color: #333;
    font-family: 'Vazirmatn', sans-serif;
}

.cn-article-body p {
    margin-bottom: 24px;
    text-align: justify;
}

.cn-article-body h2, .cn-article-body h3, .cn-article-body h4 {
    color: #0B192C;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cn-article-body img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cn-article-body blockquote {
    border-right: 4px solid #D32F2F;
    border-left: none;
    background: #fdf2f2;
    padding: 20px 25px;
    margin: 30px 0;
    font-size: 20px;
    font-style: italic;
    color: #555;
    border-radius: 8px 0 0 8px;
}

/* Tags */
.cn-article-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: #0B192C;
}

.cn-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cn-tags-list a {
    background: #f0f2f5;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.2s;
}

.cn-tags-list a:hover {
    background: #0B192C;
    color: #fff;
}

/* Author Box */
.cn-article-author-box {
    margin-top: 40px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.cn-author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.cn-author-box-info {
    flex: 1;
}

.cn-author-box-name {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #0B192C;
}

.cn-author-box-desc {
    font-size: 15px;
    color: #666;
    margin: 0 0 10px 0;
}

.cn-author-box-link {
    font-size: 14px;
    color: #D32F2F;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Sticky Sidebar */
.cn-sticky-sidebar {
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cn-sidebox {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.cn-sidebox-title {
    font-size: 18px;
    color: #0B192C;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.cn-sidebox-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: #D32F2F;
    border-radius: 3px;
}

/* Share Box */
.cn-share-icons {
    display: flex;
    gap: 10px;
}

.cn-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s;
}

.cn-share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.cn-tg { background: #0088cc; }
.cn-in { background: #0077b5; }
.cn-tw { background: #000000; }
.cn-cp { background: #7f8c8d; }

/* Related Articles Sidebar */
.cn-related-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cn-r-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    align-items: center;
    transition: opacity 0.2s;
}

.cn-r-item:hover {
    opacity: 0.8;
}

.cn-r-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cn-r-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cn-r-title {
    font-size: 14px;
    font-weight: 700;
    color: #0B192C;
    line-height: 1.5;
    margin: 0 0 5px 0;
}

.cn-r-date {
    font-size: 12px;
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {
    .cn-single-article-grid {
        grid-template-columns: 1fr;
    }
    
    .cn-article-title {
        font-size: 28px;
    }
    
    .cn-article-content-col {
        padding: 25px;
    }
    
    .cn-article-body {
        font-size: 16px;
    }
    
    .cn-sticky-sidebar {
        position: static;
    }
}
