/**
* Talin Web CMS - Main Stylesheet v5.0
* کامل، بهینه، ریسپانسیو و سازگار با رنگ‌های داینامیک
*/

/* ===================================
متغیرهای رنگ (پیش‌فرض - توسط هدر بازنویسی می‌شود)
=================================== */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #cfe2ff;
    --secondary-color: #6c757d;
    --secondary-dark: #5a6268;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --bg-body: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

/* ===================================
ریست و پایه
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-body);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
هدر و ناوبری
=================================== */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff !important;
}

.navbar-brand img {
    max-height: 45px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: rgba(255,255,255,0.95) !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 70%;
    right: 15%;
}

/* ===================================
هیرو سکشن
=================================== */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0dcaf0 100%);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.hero-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
}

.hero-image {
    max-width: 100%;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===================================
سکشن‌های عمومی
=================================== */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header .badge {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding: 0.5rem 1rem;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

/* ===================================
کارت‌ها
=================================== */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    background: var(--bg-white);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
}

/* Service Card */
.service-card {
    text-align: center;
}

.service-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 1.25rem;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.1);
}

/* Portfolio Card */
.portfolio-card {
    position: relative;
}

.portfolio-image img {
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.03);
}

/* Blog Card */
.blog-card {
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* ===================================
صفحه مقاله (Post) - چیدمان دو ستونه
=================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0dcaf0 100%);
    color: #fff;
    padding: 50px 0;
}

.page-header h1 {
    color: #fff;
}

.page-header .lead {
    color: rgba(255,255,255,0.9);
}

.article-header {
    padding: 60px 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
}

.article-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
}

.article-meta i {
    color: var(--primary-color);
}

.featured-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin: 2rem auto;
    max-width: 900px;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-image-wrapper:hover .featured-image {
    transform: scale(1.02);
}

.article-content {
    padding: 60px 0;
    background: #fff;
}

/* چیدمان دو ستونه - مهم! */
.article-content .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.article-content .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-right: 15px;
    padding-left: 15px;
}

.article-content .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--primary-dark);
}

.article-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-body pre {
    background: #f1f3f5;
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    color: var(--text-primary);
}

.article-body code {
    background: #f1f3f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--danger-color);
    font-size: 0.9em;
}

.article-body blockquote {
    border-right: 4px solid var(--primary-color);
    padding-right: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(13, 110, 253, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-right: 4px solid var(--primary-color);
}

.table-of-contents h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
    padding-right: 15px;
    border-right: 2px solid #e9ecef;
}

.table-of-contents li:hover {
    border-right-color: var(--primary-color);
}

.table-of-contents a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

/* Article Tags */
.article-tags .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
    background: var(--primary-color);
    color: #fff;
}

.article-tags .badge:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ===================================
سایدبار - چسبنده
=================================== */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
}

.widget-title i {
    margin-left: 6px;
}

/* ===================================
نظرات
=================================== */
.comments-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    margin-top: 50px;
}

.comments-section .card {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.comments-section .card-body {
    padding: 1.25rem;
}

.comments-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.comment-item {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-avatar .rounded-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.comment-meta strong {
    color: var(--text-primary);
}

.comment-content {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Reply Styles */
.reply-item {
    margin: 10px 0 10px 50px;
    padding: 12px 15px;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 10px;
    border-right: 3px solid var(--success-color);
}

.reply-avatar .rounded-circle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reply-item .comment-content {
    font-size: 0.9rem;
    color: #333;
}

/* Comment Form */
.comment-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.comment-form h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comment-form .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
}

.comment-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.comment-form .btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
}

.comment-form .alert {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ===================================
Badge - رفع کامل تداخل رنگ
=================================== */
.badge {
    font-weight: 600;
    padding: 0.45em 0.7em;
    letter-spacing: 0.3px;
    border-radius: 8px;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.badge.bg-primary.bg-opacity-10 {
    background: rgba(13, 110, 253, 0.15) !important;
    color: #0a58ca !important;
}

.badge.bg-success {
    background: var(--success-color) !important;
    color: #fff !important;
}

.badge.bg-success.bg-opacity-10 {
    background: rgba(25, 135, 84, 0.15) !important;
    color: #146c43 !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
    color: #212529 !important;
}

.badge.bg-warning.bg-opacity-10 {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #997404 !important;
}

.badge.bg-danger {
    background: var(--danger-color) !important;
    color: #fff !important;
}

.badge.bg-danger.bg-opacity-10 {
    background: rgba(220, 53, 69, 0.15) !important;
    color: #b02a37 !important;
}

.badge.bg-info {
    background: var(--info-color) !important;
    color: #212529 !important;
}

.badge.bg-info.bg-opacity-10 {
    background: rgba(13, 202, 240, 0.15) !important;
    color: #055160 !important;
}

.badge.bg-secondary {
    background: var(--secondary-color) !important;
    color: #fff !important;
}

.badge.bg-secondary.bg-opacity-10 {
    background: rgba(108, 117, 125, 0.15) !important;
    color: #495057 !important;
}

.card .badge {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.badge:hover {
    opacity: 0.9;
    text-decoration: none;
}

a.badge {
    transition: all 0.2s ease;
}

a.badge:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

/* ===================================
صفحه‌بندی
=================================== */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ===================================
فوتر
=================================== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    margin-top: 4rem;
    padding: 40px 0 25px;
}

.site-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.site-footer p,
.site-footer a {
    color: rgba(255,255,255,0.85);
}

.site-footer a:hover {
    color: #fff;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-list i {
    color: var(--primary-color);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: #fff;
}

/* ===================================
دکمه‌ها
=================================== */
.btn {
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: #f8f9fa;
    color: var(--primary-dark);
}

/* ===================================
فرم‌ها
=================================== */
.form-control {
    border-radius: 10px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background: var(--bg-white);
}

.form-select {
    border-radius: 10px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
}

/* ===================================
دکمه اسکرول به بالا
=================================== */
#scrollTop {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 999;
}

#scrollTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#scrollTop.show {
    display: flex;
}

/* ===================================
صفحه تماس
=================================== */
.contact-info-box {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* ===================================
CTA Section
=================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-box {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.cta-box .btn-light {
    background: #fff;
    color: var(--primary-color);
}

.cta-box .btn-outline-light {
    color: #fff;
    border-color: #fff;
}

.cta-box .btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
}

/* ===================================
Related Posts
=================================== */
.related-posts {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.related-posts .card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-8px);
}

/* ===================================
Breadcrumb
=================================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ===================================
Share Buttons
=================================== */
.article-share .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
}

/* ===================================
Post Navigation
=================================== */
.post-navigation .btn {
    padding: 12px 25px;
    font-weight: 500;
    border-radius: 10px;
}

/* ===================================
ریسپانسیو
=================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .navbar-collapse {
        background: var(--primary-color);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }

    /* چیدمان تک ستونه در موبایل */
    .article-content .col-lg-8,
    .article-content .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .article-title {
        font-size: 1.6rem;
    }

    .featured-image {
        max-height: 300px;
    }

    .article-meta span {
        font-size: 0.85rem;
        padding: 4px 10px;
    }

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

    .comments-section {
        padding: 25px 20px;
    }

    .comment-avatar .rounded-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .reply-item {
        margin-right: 35px;
        margin-left: 0;
    }

    #scrollTop {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===================================
انیمیشن‌ها
=================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ===================================
کلاس‌های کاربردی
=================================== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-light { background-color: var(--bg-body) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.rounded-3 { border-radius: var(--radius) !important; }

/* ===================================
Line Clamp
=================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
Hover Primary
=================================== */
.hover-primary:hover {
    color: var(--primary-color) !important;
}
/* ===================================
Collapsible Comments Section
=================================== */
#commentsCollapse {
    transition: all 0.4s ease;
}

#toggleCommentsBtn {
    position: relative;
    overflow: hidden;
}

#toggleCommentsBtn .transition-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

#toggleCommentsBtn[aria-expanded="true"] .transition-icon {
    transform: rotate(180deg);
}

/* Comments List Animation */
.comments-list {
    animation: fadeInUp 0.3s ease;
}

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

/* Comment Form Styling */
.comment-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-color);
}

.comment-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.comment-form .btn-primary {
    min-width: 120px;
}

/* Comment Items */
.comment-item {
    background: #fff;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-item:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.comment-avatar .rounded-circle {
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.reply-item {
    border-right: 3px solid var(--success-color);
    background: rgba(25, 135, 84, 0.05);
}

/* Empty State */
.comments-list .text-muted i {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .reply-item {
        margin-right: 30px !important;
    }
    
    #toggleCommentsBtn {
        width: 100%;
    }
}