/* ==================== Reset & Base ==================== */

@font-face {
    font-family: 'Vazir';
    src: url('./assets/fonts/Vazir.woff') format('woff'),
         url('./assets/fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazir';
    src: url('./assets/fonts/Vazir-Bold.woff') format('woff'),
         url('./assets/fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: bold;
    font-display: swap;
}
/* اعمال فونت */
body, body * {
    font-family: 'Vazir', Tahoma, sans-serif;
}

body, .nav-menu a {
    font-family: 'Vazir', sans-serif;
}

body, h1, h2, h3, h4, h5, h6, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
}

:root {
    --primary-color: #2563eb;   /* آبی مدرن (اعتماد + تکنولوژی) */
    --primary-soft: #dbeafe;    /* پس‌زمینه‌ی لطیف */
    --accent-color: #f59e0b;    /* نارنجی گرم برای تاکید */
    --text-main: #1f2937;       /* متن اصلی */
    --text-muted: #6b7280;      /* متن ثانویه */
    --border-light: #e5e7eb;    /* خطوط ظریف */
	
}

hr {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	margin: 10px 0;
}

.clear {
	clear:both;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}



.main-grid {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 20px;
    margin-bottom: 30px;
}

.sidebar {
    /* استایل سایدبار */
}

.main-content {
    /* استایل محتوای اصلی */
}

/* ==================== استایل عنوان‌های اصلی ==================== */

.section-title {
    background-color: var(--primary-color);
    padding: 8px 0;
    margin: 0;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
	text-align: center;
    font-size: 22px; /* کوچکتر */
    font-weight: bold;
    color: #333;
	white-space: nowrap;
}

.section-wrapper {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
}

.section-line {
    flex-grow: 1;
    height: 100%;
    background-color: #f0f0f0;
}

h3.section-title {
    display: inline-block;
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.95);
    padding: 6px 15px 6px 20px;
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    position: relative;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

/* طرح گوشه کاغذ */
h3.section-title::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    width: 15px;
    height: 100%;
    background-color: #f0f0f0;
    transform: skewX(-15deg);
}

/* ==================== استایل ویجت‌ها (همانند section-title) ==================== */

/* کلاس‌های اصلی ویجت وردپرس */
.widget {
    margin-bottom: 20px;
}

.widget-title {
    background-color: #f0f0f0;
    padding: 8px 0;
    margin: 0 0 8px 0;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.widget-title h3,
.widget-title h2,
.widget-title h4 {
    display: inline-block;
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.95);
    padding: 6px 12px 6px 18px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    position: relative;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

/* طرح گوشه کاغذ برای ویجت‌ها */
.widget-title h3::before,
.widget-title h2::before,
.widget-title h4::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    width: 15px;
    height: 100%;
    background-color: #f0f0f0;
    transform: skewX(-15deg);
}

/* محتوای ویجت‌ها */
.widget-content,
.textwidget {
    background-color: white;
    padding: 10px;
    border-radius: 0 0 4px 4px;
    border: 1px solid #e0e0e0;
    border-top: none;
    font-size: 13px;
}

/* ==================== استایل‌های محتوای اصلی ==================== */
/* ==================== HERO SLIDE ==================== */
/* استایل اصلی هیرو - رفع مشکل */
.compact-hero-section {
    background: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 12px 0;
    margin-bottom: 4px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.compact-hero-container {
    display: flex !important; /* مهم! */
    flex-direction: row !important; /* مهم! */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    gap: 20px;
    align-items: stretch;
    min-height: 280px;
}

/* ستون چپ - 30% */
.compact-hero-left {
    flex: 0 0 30% !important; /* 30% عرض */
    max-width: 30% !important;
    min-width: 30% !important;
    display: flex;
    flex-direction: column;
}

/* ستون راست - 70% */
.compact-hero-right {
    flex: 0 0 70% !important; /* 70% عرض */
    max-width: 70% !important;
    min-width: 70% !important;
    display: flex;
    flex-direction: column;
}

/* استایل ابزارک در ستون چپ */
.compact-hero-left .widget {
    height: 100% !important;
    margin: 0 !important;
    padding: 2px 6px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow-y: auto;
    max-height: 2850px;
}

/* استایل اسلایدر در ستون راست */
.compact-hero-right .news-slider {
    height: 100% !important;
    margin: 0 !important;
}

/* اطمینان از display block برای فرزندان */
.compact-hero-left > *,
.compact-hero-right > * {
    display: block !important;
    width: 100% !important;
}

/* ریسپانسیو - در موبایل عمودی */
@media (max-width: 768px) {
    .compact-hero-container {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .compact-hero-left,
    .compact-hero-right {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    .compact-hero-left .widget {
     /*   max-height: 280px;  */
    }
}

/* استایل‌های پیشرفته اسلایدر */
.news-slider {
	   direction: rtl;
    height: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-container {
    height: 332px;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(0.98);
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: relative;
}

/* کانتینر عکس شاخص */
.slide-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* عکس شاخص */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* این مهم است - عکس را می‌پوشاند */
    filter: brightness(0.8);
    transition: transform 0.8s ease;
}

.active .slide-image {
    transform: scale(1.05);
}

/* گرادیانت روی عکس */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%; /* ارتفاع معمولی */
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(0, 0, 0, 0.7) 40%, 
        transparent 100%);
    z-index: 2;
    transition: height 0.4s ease, background 0.4s ease;
}

.news-slider:hover .slide.active .slide-overlay {
    height: 85%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.7) 50%, 
        transparent 100%);
}



/* محتوای متن */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 3;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* افکت هاور برای عنوان - بدون حرکت */
.slide-title a {
    color: white;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 3px;
}

.slide-title a:hover {
    color: #ffd700; /* رنگ طلایی هنگام هاور */
}

/* زیرخط هنگام هاور (افکت نازک) */
.slide-title a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.slide-title a:hover::after {
    width: 100%;
}

.slide-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* دکمه‌های ناوبری */
.slider-nav {
    position: absolute;
    top: 15px; /* تغییر از bottom به top */
    left: 15px; /* تغییر از right به left */
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    flex-direction: row-reverse; /* برای RTL - دکمه‌ها راست‌چین می‌شوند */
}

.prev-slide, .next-slide {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-slide:hover, .next-slide:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* انیمیشن ورود اسلاید */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.active .slide-content {
    animation: slideIn 0.6s ease 0.3s both;
}






/* بخش خبرهای برگزیده */
.featured-news-section {
    padding: 20px 0; /* پدینگ کم */
    width: 100%;
}


/* گرید 5 ستونی */
.featured-news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px; /* فاصله خیلی کم بین کارت‌ها */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px; /* پدینگ کم */
}

/* کارت خبر */
.news-card {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-thumb {
    order: 1; /* تصویر اول - سمت چپ */
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

/* قسمت عکس */
.news-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}



/* محتوای متن */
.news-content {
    padding: 8px 5px; /* پدینگ خیلی کم */
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

/* تیتر خبر */
.news-title {
    margin: 0;
    font-size: 13px; /* فونت کوچک */
    line-height: 1.4;
    font-weight: 500;
}

.news-title a {
    color: #333;
    text-decoration: none;
    display: block;
}

.news-title a:hover {
    color: #0066cc;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .featured-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .featured-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 8px;
    }
    
    .featured-news-section {
        padding: 15px 0;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .featured-news-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        max-width: 400px;
    }
    
    .news-card {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .news-image-wrapper {
        width: 100px;
        height: 75px;
        aspect-ratio: unset;
        flex-shrink: 0;
    }
    
    .news-content {
        padding: 5px 8px;
        flex-grow: 1;
    }
    
    .category-badge {
        top: 4px;
        left: 4px;
        font-size: 10px;
        padding: 2px 4px;
    }
}










/* Featured Section */
.featured-article {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	overflow:hidden;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.featured-thumbnail,
.featured-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.featured-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.featured-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.featured-heading {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-heading a {
    color: #333;
    text-decoration: none;
}

.featured-heading a:hover {
    color: var(--primary-color);
}

.featured-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.featured-meta {
    font-size: 12px;
    color: #888;
}

.meta-separator {
    margin: 0 5px;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.report-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.report-image img,
.report-placeholder {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.report-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.report-category {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.report-content {
    padding: 8px;
}

.report-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}








/* فقط این 10 خط کافی است */
.special-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.special-news-card {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    text-decoration: none;
}
.special-news-txt { flex: 1; }
.special-news-title {
    font-size: 13px;
    margin-bottom: 5px;
}
.special-news-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}
@media (max-width: 768px) {
    .special-news-grid { grid-template-columns: 1fr; }
}



/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.news-card {
    background: white;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.news-card img {
	    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card img:hover {
   /* transform: translateY(-2px); */
   scale: 1.1;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
		    transition: scale 0.2s, box-shadow 0.2s;

}

.news-thumbnail,
.news-placeholder {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.news-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 11px;
}

.news-text {
    flex-grow: 1;
}

.news-category {
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
}

.news-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.news-time {
    font-size: 11px;
    color: #888;
}

/* Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.analysis-list {
    background: white;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.analysis-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.analysis-item:hover {
    background: #f9f9f9;
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-thumbnail,
.analysis-placeholder {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.analysis-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 11px;
}

.analysis-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px 0;
    line-height: 1.4;
}

.analysis-excerpt {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}


/* ==================== JV All News ==================== */
.jv-all-news {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    font-family: inherit;
}

.jv-section-header {
    text-align: center;
    margin-bottom: 20px;
}

.jv-section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.jv-section-line {
    height: 2px;
    width: 60px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* لیست اخبار */
.jv-news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.jv-news-post {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
padding: 4px 4px 0px 4px;
    min-height: 90px;
}

.jv-news-post:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* محتوای سمت چپ */
.jv-post-content {
    flex: 1;
    padding-right: 10px;
    min-width: 0;
}

.jv-post-title {
    font-size: 14px;
    margin: 0 0 6px 0;
    line-height: 1.4;
    font-weight: 600;
}

.jv-post-title a {
    color: #333;
    text-decoration: none;
    display: block;
}

.jv-post-title a:hover {
    color: var(--primary-color);
}

.jv-post-excerpt {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jv-post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
	border-top: 1px dashed #ededed;
}

.jv-post-date {
    white-space: nowrap;
}

.jv-post-cat {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
}

/* عکس سمت راست */
.jv-post-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.jv-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.jv-news-post:hover .jv-post-image img {
    transform: scale(1.05);
}

.jv-no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
}

/* صفحه‌بندی */
.jv-pagination {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.jv-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
}

.jv-pagination .page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.jv-pagination .page-numbers:hover:not(.current) {
    background: #f5f5f5;
}

.jv-no-posts {
    text-align: center;
    color: #666;
    padding: 20px;
    grid-column: 1 / -1;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .jv-news-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .jv-news-post {
        padding: 6px;
        min-height: 80px;
    }
    
    .jv-post-image {
        width: 60px;
        height: 60px;
    }
    
    .jv-post-title {
        font-size: 13px;
    }
    
    .jv-post-excerpt {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 480px) {
    .jv-all-news {
        padding: 8px;
    }
    
    .jv-section-title {
        font-size: 18px;
    }
    
    .jv-post-meta {
        flex-direction: column;
        gap: 3px;
    }
}


/* Custom Section */
.custom-content {
    background: white;
    padding: 12px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.custom-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 10px;
}

.custom-heading {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.custom-heading a {
    color: inherit;
    text-decoration: none;
}

.custom-heading a:hover {
    color: var(--primary-color);
}

.custom-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.video-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.video-image img,
.video-placeholder {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.video-placeholder {
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.video-content {
    padding: 8px;
}

.video-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.video-placeholder-card {
    background: #f5f5f5;
    height: 150px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.photo-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.photo-card img,
.photo-placeholder {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.photo-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.photo-content {
    padding: 8px;
}

.photo-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.photo-placeholder-card {
    background: #f5f5f5;
    height: 160px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

/* ==================== Responsive ==================== */

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 30% 70%;
    }
    
    .reports-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-grid,
    .two-column-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid,
    .news-grid,
    .video-grid,
    .photos-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        margin: 10px 0 8px 0;
    }
}


/* Reset و Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Iran Sans', Tahoma, sans-serif;
    background-color: #f9fafb;
    color: #333;
    direction: rtl;
    text-align: right;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

       .current-date { background: var(--primary-color) }
		
        .top-bar {
            background: #222;
            color: #ccc;
            font-size: 14px;
            padding: 0;
        }
        .top-bar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .social-icons a {
            color: #ccc;
            margin-left: 8px;
            text-decoration: none;
        }
        .social-icons a:hover { color: #fff; }

        /* ==================== Header ==================== */
		
		.site-header {
  background: var(--primary-soft);
    background-image: url('./assets/images/header-overlay.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
	
/*  max-height: 108px; */
  overflow: hidden;
}
		
        .site-header .container {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding-top: 10px;
        }
.logo-section img,
.logo-section svg {
    width: 120px;      
    height: auto;    
    max-height: 100px;  
}

        /* ==================== Menu + Search ==================== */
.menu-search-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    background: var(--primary-color);	
}
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 802px;
}
.search-form {
    display: flex;
    align-items: center;
    flex: 1;
    order: 2;
    max-width: 200px;
}

.search-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.search-button {
    padding: 6px 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.search-button:hover { background: var(--hover-color); }

.nav-menu {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 5px; 
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li {
    margin: 0;
    position: relative;
}

.nav-menu .menu-item-has-children > a {
    position: relative;
    padding: 8px 4px;
    color: var(--primary-soft);
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    /* حذف افکت‌های  برای آیتم‌های دارای زیرمنو */
    border-top: 2px solid transparent !important;
}

/* فقط آیتم‌های بدون زیرمنو افکت hover بگیرند */
.nav-menu li:not(.menu-item-has-children) > a {
    position: relative;
    padding: 8px 4px;
    color: var(--primary-soft);
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.25s ease;
    border-radius: 2px;
}

.nav-menu li:not(.menu-item-has-children) > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary-soft);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}



.nav-menu li:not(.menu-item-has-children) > a:hover::before {
    transform: scaleX(1);
    transition: 0.6s ease;
}

.nav-menu li:not(.menu-item-has-children) > a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.25s ease;
}

.nav-menu li:not(.menu-item-has-children) > a:hover::after {
    width: calc(100% - 8px);
}

/* حل مشکل دوم: زیرمنو فعلی همیشه نمایان بودن */
/* اگر زیرمنو باز است، آیتم والد باید استایل متفاوتی داشته باشد */
.nav-menu li.current-menu-ancestor > a,
.nav-menu li.current-menu-parent > a {
    /* استایل دلخواه برای آیتم‌های فعال که زیرمنو دارند */
    color: var(--accent-color);
    font-weight: 600;
}

/* حل مشکل ارتفاع: اطمینان از بسته بودن زیرمنوها به صورت پیش‌فرض */
.nav-menu ul.sub-menu {
    display: none; /* به صورت پیش‌فرض مخفی */
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* فقط وقتی hover شود نمایش داده شود */
.nav-menu li.menu-item-has-children:hover > ul.sub-menu {
    display: block;
}

/* جداکننده بین آیتم‌های منو */
.nav-menu li:not(:last-child)::after {
    content: "|";
    color: #999;
    margin-inline-start: 0;
}

        /* ==================== Responsive ==================== */
        @media (max-width: 768px) {
            .menu-search-wrapper {
                flex-direction: column;
                align-items: flex-start;
            }
            .nav-menu {
                justify-content: flex-start;
          
            }
            .nav-menu li + li::before { display: none; }
            .search-form { max-width: 100%;  }
        }











/* Grid System */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.col-3 {
    grid-column: span 3;
}

.col-9 {
    grid-column: span 9;
}

/* Cards */
.card {
    background-color: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 2px;
	backdrop-filter: blur(4px); /* افکت بلور برای شفافیت بهتر */
    line-height: 1;

}



/* Video Section */
.video-item {
    position: relative;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.video-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.play-btn {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.play-icon {
    width: 24px;
    height: 24px;
    color: #8b1714;
    margin-right: 4px;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: white;
    margin-top: 48px;
    padding: 32px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: #d1d5db;
}

.footer-secondary {
    font-size: 12px;
    color: #9ca3af;
}

.footer-secondary a:hover {
    color: #d1d5db;
}

/* Utility Classes */
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }

.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }

.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-2xl { font-size: 24px; }
.text-5xl { font-size: 48px; }

.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }

.text-white { color: white; }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }

.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }

.border-b { border-bottom: 1px solid #e5e7eb; }

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-12 {
        grid-template-columns: 1fr;
    }
    
    .col-3, .col-9 {
        grid-column: span 1;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .site-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input, .search-btn {
        width: 100%;
    }
}





/* تب‌ها */
.gx-tabs {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* دکمه‌های تب */
.gx-tab-buttons {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
}

.gx-tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    text-align: center;
}

.gx-tab-btn.active {
    color: #8b1714;
    font-weight: bold;
    border-bottom: 2px solid #8b1714;
    margin-bottom: -2px;
}

/* محتوای تب */
.gx-tab-content {
    overflow-y: auto;
}

.gx-tab-pane {
    display: none;
}

.gx-tab-pane.active {
    display: block;
}

/* آیتم‌های خبر */
.gx-news-item {
    display: flex;
    align-items: center;
	text-align:justify;
    padding: 0;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    font-size: 11px;
    transition: background 0.2s;
}

.gx-news-item:hover {
    background: #f9f9f9;
}

.gx-number {
	padding-right: 4px;
    color: #8b1714;
	text-align: center;
}

.gx-title {
    flex: 1;
    text-align: right;
    padding: 0 10px;
}


.gx-views {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    min-width: 70px;
}

.gx-empty {
    padding: 30px;
    text-align: center;
    color: #999;
}

/* اسکرول بار */
.gx-tab-content::-webkit-scrollbar {
    width: 5px;
}

.gx-tab-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}











/* بخش گزارش و یادداشت */
.reports-section {
    width: 100%;
    padding: 20px 0;
    background: #fff;
    margin: 20px 0;
}

.reports-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 15px;
}

/* هدر بخش */
.section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: bold;
    text-align: right;
}

.section-line {
    width: 60px;
    height: 2px;
    background: #c00;
    margin-top: 8px;
    margin-right: 0;
}

/* === سمت راست: گزارش تصویری === */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.photo-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
}

.photo-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-link:hover img {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-title {
    font-size: 14px;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.photo-date {
    font-size: 12px;
    opacity: 0.8;
}

/* === سمت چپ: گزارش و یادداشت === */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.note-item:last-child {
    border-bottom: none;
}

.note-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.note-link:hover .note-title {
    color: #c00;
}

.note-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}

.note-number {
    background: #c00;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.note-category {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 3px;
    color: #666;
}

.note-date {
    color: #888;
    margin-right: auto;
}

.note-title {
    font-size: 15px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: #333;
    font-weight: 600;
}

.note-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* پیام‌های خالی */
.no-photos,
.no-notes {
    text-align: center;
    color: #999;
    padding: 30px;
    font-size: 14px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .reports-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .photo-grid {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .note-meta {
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 16px;
    }
}

/* ساختار 3 ستونه */
.single-container.three-columns {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.single-main {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-left,
.sidebar-right {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* استایل تب‌های سایدبار */
.sidebar-tabs {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.tab-btn.active {
    color: #8b1714;
    background: #fff;
    border-bottom: 2px solid #8b1714;
    margin-bottom: -2px;
}

.tab-btn:hover:not(.active) {
    background: #f9f9f9;
}

.tab-content {
    padding: 15px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* محتوای داخل تب‌ها */
.sidebar-post {
	flex: 1;
    display: block;
    padding-left: 4px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    transition: all 0.2s;
}

.sidebar-post:hover {
    color: #8b1714;
    padding-right: 3px;
	    padding-left: 0;

}

.sidebar-post .post-title {
    display: block;
    line-height: 1.4;
}

/* استایل پربازدیدترین‌ها */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.popular-item:hover {
    background: #f9f9f9;
    transform: translateX(3px);
}

.popular-rank {
    background: #8b1714;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.popular-title {
    flex: 1;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}

.popular-title:hover {
    color: #8b1714;
}

.popular-views {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}


/* استایل‌های اصلی پست (همان قبلی) */
.post-header {
    margin-bottom: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    align-items: center;
    flex-wrap: wrap;
}

.post-category {
    background: #8b1714;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.post-date, .post-author {
    font-size: 13px;
}

.post-title {
    font-size: 24px;
    line-height: 1.4;
    color: #222;
    margin-bottom: 20px;
    padding-right: 15px;
    border-right: 3px solid #8b1714;
}

.featured-image {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    background: #f5f5f5;
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
    border-top: 1px solid #eee;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .single-container.three-columns {
        grid-template-columns: 1fr 3fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .single-container.three-columns {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left,
    .sidebar-right {
        position: static;
        order: -1;
    }
    
    .single-main {
        order: 1;
    }
    
    .sidebar-tabs {
        max-width: 500px;
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 768px) {
    .single-main {
        padding: 15px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .tab-buttons button {
        font-size: 12px;
        padding: 10px;
    }
}
.tag {
  display: block;
  float: right;
  padding: 2px 4px;
  font-size: 12px;
  background: #ededed;
  border-left: 2px solid white;
  border-radius: 4px;
  color: gray;
}

/* بخش کامنت‌ها */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-header {
    margin-bottom: 25px;
}

.comments-title {
    font-size: 15px;
    color: #222;
    margin-bottom: 10px;
    border-right: 3px solid #8b1714;
    padding-right: 15px;
}

/* لیست کامنت‌ها */
.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-author {
    flex-shrink: 0;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.comment-author-name {
    font-weight: bold;
    color: #222;
    font-size: 16px;
}

.comment-date {
    color: #888;
    font-size: 13px;
    margin-right: 10px;
}

.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.reply {
    margin-top: 10px;
}

.reply a {
    font-size: 13px;
    color: #8b1714;
    text-decoration: none;
    background: #f9f9f9;
    padding: 5px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.reply a:hover {
    background: #8b1714;
    color: white;
}

.children {
    list-style: none;
    padding-right: 30px;
    margin-top: 20px;
    border-right: 2px solid #f0f0f0;
}

/* صفحه‌بندی کامنت‌ها */
.comments-pagination {
    margin: 20px 0;
    text-align: center;
}

.comments-pagination a,
.comments-pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.comments-pagination .current {
    background: #8b1714;
    color: white;
}

/* پیام کامنت بسته */
.comments-closed {
    background: #fff9e6;
    border-right: 3px solid #ffcc00;
    padding: 15px;
    border-radius: 6px;
    color: #856404;
    margin: 20px 0;
}

/* فرم کامنت */
.comment-form-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.comment-form-title {
    font-size: 18px;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.comment-form-field {
    margin-bottom: 20px;
}

.comment-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.comment-form-field label span {
    color: #ff0000;
}

.comment-form-field input[type="text"],
.comment-form-field input[type="email"],
.comment-form-field input[type="url"],
.comment-form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border 0.2s;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
    outline: none;
    border-color: #8b1714;
    box-shadow: 0 0 0 2px rgba(139, 23, 20, 0.1);
}

.comment-form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: #8b1714;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #a81e1a;
}

/* نکات فرم */
.comment-notes {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    border-right: 3px solid #8b1714;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .comment-body {
        flex-direction: column;
    }
    
    .comment-author {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .children {
        padding-right: 15px;
    }
    
    .comment-form-wrapper {
        padding: 15px;
    }
}




/* نمایش تعداد بازدید */
.view-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    border: 1px solid #e9ecef;
}

.view-count .icon {
    color: #8b1714;
}

.view-count .number {
    font-weight: bold;
    color: #222;
}

/* پربازدیدترین‌های هفته */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap:4px;
    padding: 6px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.popular-item:hover {
    background: #f9f9f9;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
	}

.popular-rank {
    background: #8b1714;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.popular-title {
    flex: 1;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}

.popular-title:hover {
    color: #8b1714;
}

.popular-views {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}