/* استایل اصلی قالب مقالات */
.cst-single-article {
    font-family: 'Tahoma', 'Arial', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

.cst-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ناوبری */
.cst-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #6c757d;
}

.cst-breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cst-breadcrumb a:hover {
    color: #2980b9;
}

.cst-separator {
    margin: 0 10px;
}

.cst-current {
    color: #2c3e50;
    font-weight: 600;
}

/* هدر مقاله */
.cst-article-header {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    text-align: center;
}

.cst-article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.3;
    font-weight: 700;
    text-align: right;
}

.cst-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.cst-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cst-author-avatar img {
    border-radius: 50%;
    border: 3px solid #ecf0f1;
}

.cst-author-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cst-author-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.cst-publish-date {
    font-size: 14px;
    color: #7f8c8d;
}

.cst-article-stats {
    display: flex;
    gap: 15px;
}

.cst-read-time, .cst-comments-count {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    color: #5a6c7d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cst-icon {
    font-size: 16px;
}

.cst-featured-image {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cst-featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cst-featured-img:hover {
    transform: scale(1.02);
}

/* محتوای اصلی */
.cst-article-main {
    margin-bottom: 50px;
}

.cst-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.cst-article-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cst-content-body {
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
}

.cst-content-body h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 50px 0 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    text-align: right;
}

.cst-content-body h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 40px 0 20px;
    text-align: right;
}

.cst-content-body h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 30px 0 15px;
    text-align: right;
}

.cst-content-body p {
    margin-bottom: 25px;
    text-align: justify;
}

.cst-content-body blockquote {
    border-right: 4px solid #3498db;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    margin: 35px 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.cst-content-body blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #3498db;
    position: absolute;
    right: 20px;
    top: 10px;
    opacity: 0.3;
}

.cst-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cst-content-body ul, .cst-content-body ol {
    margin: 25px 0;
    padding-right: 30px;
}

.cst-content-body li {
    margin-bottom: 10px;
}

.cst-content-body a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.cst-content-body a:hover {
    color: #2980b9;
    border-bottom-color: #3498db;
}

.cst-article-tags {
    margin: 50px 0 30px;
    padding: 30px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.cst-tags-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.cst-tags-list a {
    display: inline-block;
    background: #ecf0f1;
    color: #34495e;
    padding: 8px 18px;
    margin: 5px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cst-tags-list a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.cst-social-share {
    margin: 40px 0 20px;
    padding: 30px 0;
    border-top: 1px solid #ecf0f1;
}

.cst-share-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.cst-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cst-share-btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cst-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: white;
}

.cst-facebook { background: #3b5998; }
.cst-twitter { background: #1da1f2; }
.cst-telegram { background: #0088cc; }
.cst-linkedin { background: #0077b5; }

/* سایدبار */
.cst-article-sidebar {
    position: sticky;
    top: 20px;
}

.cst-author-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.cst-author-avatar-large img {
    border-radius: 50%;
    border: 4px solid #ecf0f1;
    margin-bottom: 20px;
}

.cst-author-box-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.cst-author-bio {
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 14px;
}

.cst-table-of-contents, .cst-related-articles {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.cst-toc-title, .cst-related-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.cst-toc-list {
    font-size: 14px;
}

.cst-toc-list a {
    display: block;
    padding: 12px 0;
    color: #5a6c7d;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 15px;
}

.cst-toc-list a:hover {
    color: #3498db;
    padding-right: 20px;
}

.cst-toc-list a::before {
    content: '›';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.cst-toc-list a:hover::before {
    transform: translateX(-3px);
}

.cst-related-article {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f8f9fa;
    align-items: flex-start;
}

.cst-related-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cst-related-thumbnail {
    flex-shrink: 0;
}

.cst-related-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cst-related-content {
    flex-grow: 1;
}

.cst-related-article-title {
    margin-bottom: 8px;
}

.cst-related-article-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cst-related-article-title a:hover {
    color: #3498db;
}

.cst-related-date {
    font-size: 12px;
    color: #95a5a6;
}

.cst-no-related {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
}

/* بخش نظرات */
.cst-comments-section {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cst-comments-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .cst-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cst-article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .cst-container {
        padding: 0 15px;
    }
    
    .cst-article-header {
        padding: 30px 25px;
    }
    
    .cst-article-title {
        font-size: 2rem;
    }
    
    .cst-article-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cst-author-details {
        align-items: center;
    }
    
    .cst-article-content {
        padding: 25px;
    }
    
    .cst-featured-img {
        height: 250px;
    }
    
    .cst-share-buttons {
        justify-content: center;
    }
    
    .cst-comments-section {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .cst-article-title {
        font-size: 1.6rem;
    }
    
    .cst-article-content {
        padding: 20px;
    }
    
    .cst-content-body {
        font-size: 16px;
    }
    
    .cst-share-buttons {
        flex-direction: column;
    }
    
    .cst-share-btn {
        justify-content: center;
    }
    
    .cst-related-article {
        flex-direction: column;
        text-align: center;
    }
    
    .cst-related-thumbnail {
        align-self: center;
    }
}