@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-dark: #0A1128;
  --brand-navy: #121E3D;
  --brand-emerald: #059669;
  --brand-gold: #D97706;
  --bg-body: #F1F5F9;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Vazirmatn', Tahoma, Arial, sans-serif; background-color: var(--bg-body); color: var(--text-main); direction: rtl; line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.top-breaking-bar { background: var(--brand-dark); color: #E2E8F0; font-size: 12px; border-bottom: 1px solid #1E293B; height: 38px; display: flex; align-items: center; }
.top-breaking-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; }
.badge-breaking { background: #F59E0B; color: #020617; font-weight: 900; padding: 2px 10px; border-radius: 6px; font-size: 11px; white-space: nowrap; }

.site-header { background: #FFFFFF; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border-color); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-box { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-dark), var(--brand-emerald)); color: #FBBF24; display: flex; align-items: center; justify-content: center; }
.brand-title { font-size: 24px; font-weight: 900; color: var(--brand-dark); display: block; line-height: 1.1; }
.brand-tagline { font-size: 11px; color: var(--text-muted); font-weight: 700; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #334155; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: #ECFDF5; color: var(--brand-emerald); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search-form { display: flex; align-items: center; background: #F1F5F9; border: 1px solid var(--border-color); border-radius: 12px; padding: 6px 12px; }
.header-search-form input { border: none; background: transparent; font-family: inherit; font-size: 12px; width: 170px; outline: none; color: var(--text-main); }
.header-search-form button { background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; }
.mobile-menu-btn { display: none; background: var(--brand-dark); color: #FFFFFF; border: none; padding: 10px; border-radius: 12px; cursor: pointer; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.65); z-index: 90; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.drawer-backdrop.active { opacity: 1; visibility: visible; }
.mobile-drawer { position: fixed; top: 0; right: 0; width: 300px; max-width: 85vw; height: 100vh; background: var(--brand-dark); color: #FFFFFF; z-index: 100; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.mobile-drawer.open { transform: translateX(0); }
.drawer-header { padding: 20px; border-bottom: 1px solid #1E293B; display: flex; align-items: center; justify-content: space-between; }
.drawer-close-btn { background: #1E293B; color: #CBD5E1; border: none; padding: 8px; border-radius: 10px; cursor: pointer; }
.drawer-nav ul { list-style: none; padding: 16px; }
.drawer-nav li a { display: block; padding: 12px 16px; border-radius: 12px; color: #E2E8F0; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.drawer-nav li a:hover { background: rgba(5, 150, 105, 0.2); color: #6EE7B7; }

.market-ticker-bar { background: #FFFFFF; border-bottom: 1px solid var(--border-color); padding: 10px 0; }
.ticker-flex { display: flex; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.ticker-flex::-webkit-scrollbar { display: none; }
.ticker-label { background: #064E3B; color: #6EE7B7; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 10px; white-space: nowrap; }
.ticker-item { background: #F8FAFC; border: 1px solid var(--border-color); padding: 6px 14px; border-radius: 10px; display: flex; align-items: center; gap: 10px; font-size: 12px; white-space: nowrap; }
.badge-up { background: #D1FAE5; color: #065F46; padding: 2px 6px; border-radius: 5px; font-weight: 800; font-size: 11px; }
.badge-down { background: #FFE4E6; color: #9F1239; padding: 2px 6px; border-radius: 5px; font-weight: 800; font-size: 11px; }

.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin: 28px 0 40px; }
.hero-main-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; height: 440px; box-shadow: 0 10px 25px rgba(10,17,40,0.12); }
.hero-main-card img, .hero-sub-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-main-card:hover img, .hero-sub-card:hover img { transform: scale(1.04); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,17,40,0.96) 0%, rgba(10,17,40,0.65) 55%, rgba(10,17,40,0.1) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #FFFFFF; }
.hero-tag { background: var(--brand-emerald); color: #FFFFFF; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 8px; width: fit-content; margin-bottom: 12px; }
.hero-main-title { font-size: 26px; font-weight: 900; line-height: 1.35; margin-bottom: 10px; }
.hero-sub-col { display: flex; flex-direction: column; gap: 24px; }
.hero-sub-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 208px; }
.hero-sub-title { font-size: 16px; font-weight: 800; line-height: 1.45; }

.main-layout-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 32px; margin-top: 24px; }
.section-heading { font-size: 20px; font-weight: 900; color: var(--text-main); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.section-heading::before { content: ''; width: 6px; height: 24px; background: var(--brand-emerald); border-radius: 4px; }

.editor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 36px; }
.editor-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 14px; display: flex; gap: 14px; align-items: center; }
.editor-card:hover { border-color: var(--brand-emerald); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.editor-card img { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.editor-card h3 { font-size: 14px; font-weight: 800; line-height: 1.5; }

.news-list-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 18px; margin-bottom: 16px; }
.news-list-item:hover { border-color: var(--brand-emerald); box-shadow: 0 6px 16px rgba(0,0,0,0.05); }
.news-list-thumb { width: 200px; height: 135px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.news-list-body { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.news-list-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; line-height: 1.45; }
.news-list-excerpt { font-size: 13px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #94A3B8; padding-top: 10px; border-top: 1px solid #F1F5F9; margin-top: 10px; }

.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 28px; }
.market-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.market-table th { text-align: right; color: var(--text-muted); padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.market-table td { padding: 12px 0; border-bottom: 1px solid #F8FAFC; font-weight: 700; }
.ad-slot-wrapper { margin: 20px 0; text-align: center; border-radius: var(--radius-lg); overflow: hidden; }

.single-article-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 32px; }
.single-title { font-size: 28px; font-weight: 900; line-height: 1.4; margin: 16px 0; }
.single-lead { background: #F8FAFC; border-right: 4px solid var(--brand-gold); padding: 16px; border-radius: 12px; font-size: 15px; color: #334155; margin-bottom: 24px; }
.single-content { font-size: 16px; line-height: 2; color: #1E293B; }
.single-content p { margin-bottom: 18px; }

.site-footer { background: var(--brand-dark); color: #CBD5E1; margin-top: 64px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid #1E293B; }
.footer-heading { color: #FFFFFF; font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.footer-menu { list-style: none; }
.footer-menu li { margin-bottom: 10px; font-size: 14px; }
.footer-menu a:hover { color: #10B981; }
.footer-bottom { text-align: center; padding-top: 24px; font-size: 12px; color: #64748B; }

@media (max-width: 1024px) {
  .main-nav, .header-search-form { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-grid, .main-layout-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .editor-grid { grid-template-columns: 1fr; }
  .news-list-item { flex-direction: column; }
  .news-list-thumb { width: 100%; height: 190px; }
  .hero-main-card { height: 340px; }
  .hero-main-title { font-size: 20px; }
  .single-article-box { padding: 20px; }
}