/*
Theme Name: fine v2
Theme URI:
Author: مالک عباسی 
Author URI: #
Description: قالب خبری وردپرس، نسخه 2
Version: 2.0
License: GPL v2 
Text Domain: fine
*/

/* ==================== RESET & BASE ==================== */
@font-face {
    font-family: 'Vazir';
    src: url('./assets/fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazir';
    src: url('./assets/fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background: #f1f2f6;
    color: #2d3436;
    direction: rtl;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

:root {
    --primary: #0984e3;
    --primary-dark: #0767b3;
    --accent: #e17055;
    --bg-light: #f8f9fc;
    --border: #dfe4ea;
    --text: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==================== HEADER ==================== */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 0;
    border-bottom: 3px solid var(--accent);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-section img {
    height: 80px;
}










/* منو Menu */

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 2px;
    position: relative;
    gap: 2px;
}

.main-navigation .nav-menu li {
    position: relative;
    z-index: 1;
background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.main-navigation .nav-menu li a {
    display: block;
    padding: 4px 12px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    border-radius: 4px;
}

.main-navigation .moving-bg {
    position: absolute;
    top: 2px;
    left: 0;
    height: calc(100% - 4px);
    background: #e2e8f0;
    border-radius: 4px;
    transition: all 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.main-navigation:hover .moving-bg {
    opacity: 1;
}

.main-navigation .nav-menu li a:hover {
    color: #1a202c;
}









.search-form {
    display: flex;
  justify-content: flex-end; 
}

.search-input {
    padding: 4px 12px;
    border: none;
    border-radius: 0 6px 6px 0;
    outline: none;
    font-family: inherit;
    width: 160px;
background: rgba(255,255,255,0.7);
transition:1s;
}
.search-input:hover {
background: rgba(255,255,255,1);
transition:1s;
}
.search-button {
    padding: 4px 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #ff8787;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* ==================== HERO ==================== */
.hero-area {
    margin: 16px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    align-items: stretch;
}

.hero-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    max-height: 340px;
    overflow-y: auto;
}

.hero-slider {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-slider {
    height: 340px;
    position: relative;
}

.slides-wrapper {
    height: 100%;
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide-item.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    height: 100%;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.slide-title {
    font-size: 18px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.slide-title a {
    color: #fff;
}

.slide-title a:hover {
    color: #ffeaa7;
}

.slide-desc {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.5;
}

.slider-controls {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.5);
    padding: 6px 10px;
    border-radius: 20px;
    z-index: 2;
}

.slider-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.4);
}

.slider-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}










/* ==================== TICKER ==================== */
.news-ticker {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 16px;
    overflow: hidden;
}

.ticker-label {
    background: #dc2626;
    color: #fff;
    padding: 8px 18px;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.ticker-track {
    white-space: nowrap;
    display: inline-block;
}

.ticker-item {
    display: inline-block;
    margin: 0 20px;
}

.ticker-item a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.ticker-item a:hover {
    color: #dc2626;
}

.ticker-content:hover .ticker-track {
    animation-play-state: paused;
}
/* ==================== CONTENT LAYOUT ==================== */
.content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 24px;
}


/* ==================== SIDEBAR ==================== */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-head {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 12px 16px;
}

.widget-title {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.widget-body {
    padding: 10px;
}

/* تب‌ها */
.widget-tabs {
    overflow: visible;
}

.tab-headers {
    display: flex;
    background: #eef1f7;
    border-radius: var(--radius) var(--radius) 0 0;
}

.tab-btn {
    flex: 1;
    padding: 11px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-body {
    display: none;
    padding: 10px;
 /*   max-height: 380px; */
    overflow-y: auto;
}

.tab-body.active {
    display: block;
}

.tab-post-item {
    display: flex;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    gap: 6px;
    transition: padding 0.2s;
}

.tab-post-item:hover {
    padding-right: 4px;
}

.tab-post-item:last-child {
    border-bottom: none;
}

.item-num {
    color: var(--accent);
    font-weight: bold;
    font-size: 11px;
    min-width: 24px;
}

.item-title {
    flex: 1;
    line-height: 1.5;
}

.tab-post-item:hover .item-title {
    color: var(--primary);
}

/* پربازدید */
.popular-row {
    display: flex;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 6px;
    font-size: 12px;
}

.popular-row:last-child {
    border-bottom: none;
}

.pop-rank {
    background: var(--primary);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.pop-title {
    flex: 1;
    line-height: 1.5;
}

.popular-row:hover .pop-title {
    color: var(--primary);
}

.pop-views {
    font-size: 10px;
    color: var(--text-light);
    white-space: nowrap;
}

/* ورزشی */
.sport-link {
    display: block;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    line-height: 1.5;
}

.sport-link:last-child {
    border-bottom: none;
}

.sport-link:hover {
    color: var(--primary);
}


/* ==================== ADS STRIP LAYOUT ==================== */
.ads-strip-wrapper {
    margin: 16px 0;
}

.ads-strip-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ستون محتوا + سایدبار */
.content-with-sidebar {
    flex: 1;
    min-width: 0;
}

/* ستون تبلیغاتی باریک */
.ads-column {
    width: 140px;
    flex-shrink: 0;
    position: sticky;
    top: 16px;
    align-self: flex-start;
}

.ads-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ad-banner {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.ad-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-banner a {
    display: block;
    line-height: 0;
}

/* بنر چسبنده پایین */
.sticky-ad {
    position: sticky;
    top: 16px;
}

/* بنر خالی - نمایش placeholder */
.ad-placeholder {
    background: linear-gradient(135deg, #f5f6fa, #e8eaf0);
    padding: 20px;
    text-align: center;
    border-radius: var(--radius);
    border: 2px dashed #d0d5e0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder span {
    font-size: 12px;
    color: #a0a8b8;
    text-align: center;
    line-height: 1.6;
}

/* ==================== RESPONSIVE ADS ==================== */

/* مخفی شدن ستون تبلیغات در تبلت */
@media (max-width: 1100px) {
    .ads-column {
        width: 120px;
    }
}

/* در تبلت کوچک - ستون تبلیغات مخفی می‌شه */
@media (max-width: 900px) {
    .ads-strip-container {
        flex-direction: column;
    }
    
    .ads-column {
        width: 100%;
        position: static;
        order: 3;
    }
    
    .ads-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ad-banner {
        max-height: 120px;
    }
    
    .ad-banner img {
        height: 100%;
        object-fit: cover;
    }
}
/* محتوای مکمل پایین ستون تبلیغات */
.ads-extra-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    margin-top: 4px;
}

.extra-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    text-align: center;
}

.extra-post-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.extra-post-item:last-child {
    border-bottom: none;
}

.extra-post-item:hover {
    background: #fafbfc;
    margin: 0 -8px;
    padding: 8px;
    border-radius: 6px;
}

.extra-thumb {
    width: 50px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.extra-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.extra-thumb-empty {
    width: 100%;
    height: 100%;
    background: #e8ecf1;
    border-radius: 6px;
}

.extra-title {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text);
    flex: 1;
}

.extra-post-item:hover .extra-title {
    color: var(--primary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .ads-extra-content {
        display: none; /* تو تبلت و موبایل مخفی بشه بهتره */
    }
}
@media (max-width: 640px) {
    .ads-inner {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .ad-banner {
        max-height: 100px;
    }
}


/* ==================== MAIN AREA ==================== */
.main-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-block {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.block-heading {
    background: #f8f9fc;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.heading-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text);
    position: relative;
    padding-right: 12px;
}

.heading-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ==================== FEATURED GRID ==================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.grid-card {
    padding: 12px 10px;
    border-left: 1px solid var(--border);
    transition: transform 0.2s;
}

.grid-card:last-child {
    border-left: none;
}

.grid-card:hover {
    transform: translateY(-2px);
}

.card-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 8px;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.grid-card:hover .card-thumb img {
    transform: scale(1.05);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #dfe6e9;
}

.card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
}

.card-title {
    font-size: 12px;
    line-height: 1.5;
}

.card-title a:hover {
    color: var(--primary);
}

/* ==================== DAILY HIGHLIGHT (دو ستونه) ==================== */
.daily-highlight {
    padding: 16px;
}

.daily-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.daily-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

.daily-img-placeholder {
    width: 100%;
    height: 100%;
    background: #dfe6e9;
    min-height: 200px;
}

.daily-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daily-cat {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
}

.daily-title {
    font-size: 18px;
    line-height: 1.4;
}

.daily-title a:hover {
    color: var(--primary);
}

.daily-excerpt {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
}

.daily-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.daily-readmore {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    width: fit-content;
    transition: background 0.2s;
}

.daily-readmore:hover {
    background: var(--primary-dark);
}

/* ==================== REPORTS ==================== */
.reports-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}

.report-box {
    background: var(--white);
    padding: 10px;
    display: block;
    transition: transform 0.2s;
}

.report-box:hover {
    transform: translateY(-3px);
    z-index: 1;
}

.report-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 8px;
}

.report-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.report-box:hover .report-img img {
    transform: scale(1.05);
}

.img-empty {
    width: 100%;
    height: 100%;
    background: #dfe6e9;
}

.report-title {
    font-size: 12px;
    font-weight: 600;
    display: block;
    line-height: 1.5;
}

/* ==================== ANALYSIS ==================== */
.analysis-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
}

.analysis-row {
    background: var(--white);
    padding: 12px;
    display: flex;
    gap: 10px;
    transition: background 0.2s;
}

.analysis-row:hover {
    background: #fafbfc;
}

.analysis-thumb {
    width: 70px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.analysis-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.analysis-text h4 {
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.analysis-text p {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.5;
}

.analysis-row:hover .analysis-text h4 {
    color: var(--primary);
}

/* ==================== ALL NEWS ==================== */
.all-news-grid {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-entry {
    display: flex;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s;
}

.news-entry:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.entry-details {
    flex: 1;
    min-width: 0;
}

.entry-title {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.entry-title a:hover {
    color: var(--primary);
}

.entry-excerpt {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.5;
}

.entry-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 6px;
}

.entry-thumb {
    width: 80px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pagination-area {
    text-align: center;
    padding-top: 6px;
}

.pagination-area a,
.pagination-area span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
}

.pagination-area .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==================== BOTTOM SECTIONS ==================== */
.bottom-sections {
    margin: 24px 0 40px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bottom-col {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.photo-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    padding: 0;
}

.photo-block {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.photo-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-block:hover img {
    transform: scale(1.05);
}

.photo-info {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.notes-blocks {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-row {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.note-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.note-num {
    background: var(--primary);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.note-content {
    flex: 1;
}

.note-cat {
    display: inline-block;
    background: #f0f0f0;
    color: var(--text-light);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.note-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.4;
}

.note-title:hover {
    color: var(--primary);
}

.note-desc {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet Large */
@media (max-width: 1100px) {
    .content-layout {
        grid-template-columns: 250px 1fr;
        gap: 14px;
    }
    
    .hero-grid {
        grid-template-columns: 250px 1fr;
    }
    
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-card:nth-child(3n) {
        border-left: none;
    }
    
    .grid-card:nth-child(n+4) {
        display: none;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-right {
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-sidebar {
        max-height: none;
        order: 2;
    }
    
    .hero-slider {
        order: 1;
    }
    
    .main-slider {
        height: 280px;
    }
    
    .daily-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .reports-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analysis-list {
        grid-template-columns: 1fr;
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Large */
@media (max-width: 640px) {
    .container {
        padding: 0 10px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
        width: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .main-slider {
        height: 220px;
    }
    
    .slide-title {
        font-size: 15px;
    }
    
    .slide-desc {
        font-size: 12px;
    }
    
    .ticker-label {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .ticker-content {
        padding: 8px 10px;
    }
    
    .ticker-track {
        gap: 30px;
        font-size: 12px;
    }
    
    .sidebar-right {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-card:nth-child(2n) {
        border-left: none;
    }
    
    .grid-card:nth-child(n+5) {
        display: none;
    }
    
    .daily-grid {
        grid-template-columns: 1fr;
    }
    
    .daily-title {
        font-size: 16px;
    }
    
    .reports-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analysis-list {
        grid-template-columns: 1fr;
    }
    
    .news-entry {
        flex-direction: column;
    }
    
    .entry-thumb {
        width: 100%;
        height: 160px;
        order: -1;
    }
    
    .photo-blocks {
        grid-template-columns: 1fr;
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .note-row {
        flex-direction: column;
        gap: 6px;
    }
}

/* Mobile Small */
@media (max-width: 400px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-card {
        border-left: none;
        border-bottom: 1px solid var(--border);
    }
    
    .grid-card:last-child {
        border-bottom: none;
    }
    
    .grid-card:nth-child(n+4) {
        display: block;
    }
    
    .reports-row {
        grid-template-columns: 1fr;
    }
    
    .daily-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .pagination-area a,
    .pagination-area span {
        padding: 5px 8px;
        font-size: 12px;
        margin: 1px;
    }
}


/* ==================== WIDGET: تقویم و سخن بزرگان ==================== */
.widget-calendar-quote .widget-body {
    padding: 0;
}

.date-block {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #fafbfd 0%, #f1f4f8 100%);
}

.date-jalali {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.date-day-name {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    background: rgba(225, 112, 85, 0.1);
    padding: 2px 12px;
    border-radius: 20px;
}

.date-main {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}

.date-other {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.seperator-dot {
    color: #ccc;
}

/* سخن بزرگان */
.quote-block {
    padding: 14px;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.quote-text {
    font-size: 12px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 10px 0;
    font-style: italic;
    position: relative;
    padding: 0 8px;
}

.quote-author {
    display: block;
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 6px;
}

<!-- ========== SIDEBAR: نرخ ارز و طلا ========== -->


.widget-currency {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    font-family: system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

.widget-head {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.widget-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    color: #1f2937;
}

.widget-body {
    padding: 8px 0;
}

/* لیست ارزها */
.currency-list {
    display: flex;
    flex-direction: column;
}

/* هر ردیف */
.currency-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.currency-row:last-child {
    border-bottom: none;
}

/* اسم ارز */
.currency-name {
    font-size: 14px;
    font-weight: 450;
    color: #374151;
}

/* بخش قیمت و تغییرات - در راستای عمودی */
.currency-value {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

/* قیمت - فونت کوچک‌تر */
.currency-price {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    direction: ltr;
    display: inline-block;
    letter-spacing: 0.3px;
}

/* درصد تغییرات */
.currency-change {
    font-size: 11px;
    font-weight: 450;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.currency-change.up {
    color: #10b981;
}

.currency-change.down {
    color: #ef4444;
}

.currency-change.neutral {
    color: #9ca3af;
}

/* بخش آپدیت */
.currency-update {
    font-size: 11px;
    color: #9ca3af;
    padding: 10px 16px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

/* حالت خالی */
.currency-empty {
    padding: 24px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

/* موبایل */
@media (max-width: 640px) {
    .currency-row {
        padding: 7px 12px;
    }
    .currency-name {
        font-size: 13px;
    }
    .currency-price {
        font-size: 12px;
    }
}
