/**
 * پایگاه خبری کردستان - استایل‌های پرتال عمومی
 * رفع کامل عدم تراز و چیدمان استاندارد ۳ ستونه مطابق طرح
 */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

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

:root {
  --font-main: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
  
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-header: #0d1322;
  --bg-footer: #060911;
  --bg-footer-card: #0e1526;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --gold: #f59e0b;
  --gold-hover: #d97706;
  --ruby: #ef4444;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --purple: #8b5cf6;
  
  --border: #e2e8f0;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --border-radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --bg-page: #080d1a;
  --bg-card: #0f172a;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #1e293b;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.6);
}

[data-theme="dark"] .portal-breaking-bar {
  background: #0f172a;
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .categories-tabs-bar {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .category-tab-btn {
  background: #1e293b;
  color: #e2e8f0;
}

[data-theme="dark"] .category-tab-btn:hover {
  background: #334155;
  color: #ffffff;
}

[data-theme="dark"] .news-feed-card,
[data-theme="dark"] .archive-card,
[data-theme="dark"] .portal-widget-card,
[data-theme="dark"] .single-main-card {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .county-circle-item {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .county-circle-item span {
  color: #f1f5f9;
}

[data-theme="dark"] .lead-box-pure {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .body-box-blue {
  background: #0b1120 !important;
  color: #cbd5e1 !important;
  border-color: #2563eb !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button, input, select, textarea {
  font-family: var(--font-main), 'Vazirmatn', Tahoma, sans-serif !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.portal-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   ۱. هدر لوکس پرتال خبری کردستان با نوار زرد طلایی زیرین
   ========================================================================== */
.portal-header {
  background: var(--bg-header);
  color: var(--text-white);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3.5px solid #f59e0b; /* نوار زرد / طلایی درخشان */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.portal-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.portal-header-logo-img {
  height: 46px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
  display: block;
}

.portal-header-logo-img:hover {
  transform: scale(1.02);
}

.brand-mountain-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
  flex-shrink: 0;
}

.portal-brand-text h1 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.portal-brand-text span {
  font-size: 0.76rem;
  color: var(--gold);
  display: block;
  font-weight: 700;
  margin-top: 3px;
}

.portal-navbar {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-nav-links li {
  display: inline-flex;
  flex-shrink: 0;
}

.portal-nav-link {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #cbd5e1;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.3;
}

.portal-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.portal-nav-link.active {
  color: #f59e0b !important;
  font-weight: 900 !important;
}

.portal-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 10px;
  left: 10px;
  height: 3px;
  background: #f59e0b;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.9);
}

.portal-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.portal-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-full);
  padding: 4px 10px 4px 14px;
  width: 190px;
  transition: all 0.25s ease;
}

.portal-search-form:focus-within {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
  width: 230px;
}

.portal-search-input {
  border: none;
  background: transparent;
  padding: 4px 6px;
  color: #ffffff;
  font-size: 0.82rem;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.portal-search-input::placeholder {
  color: #94a3b8;
}

.search-submit-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: transform 0.2s ease;
}

.header-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-icon-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.search-submit-btn:hover {
  transform: scale(1.15);
  color: var(--cyan);
}

.header-icon-badge {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.05rem;
}

.header-icon-badge:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.header-icon-badge:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.header-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ruby);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: var(--border-radius-full);
}

/* ==========================================================================
   ۲. نوار خبر فوری
   ========================================================================== */
.portal-breaking-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.portal-breaking-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.portal-breaking-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.portal-breaking-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.portal-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 24px;
  animation: smoothTicker 40s linear infinite;
}

.portal-ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.ticker-item:hover {
  color: var(--primary);
}

.ticker-bullet {
  color: var(--ruby);
  font-size: 0.75rem;
}

@keyframes smoothTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

.portal-breaking-all {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
  margin-right: 8px;
}

/* ==========================================================================
   ۳. چیدمان ۳ ستونه استاندارد پرتال
   ========================================================================== */
.portal-main-grid {
  display: grid;
  grid-template-columns: 260px 1fr 310px;
  gap: 18px;
  margin-bottom: 36px;
}

.portal-col-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-col-center {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.portal-col-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.portal-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.portal-widget-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* شبکه ۱۰ شهرستان با عکس‌های دایره‌ای زیبا (Circular County Avatars) */
.counties-circular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.county-circle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--border-radius-full);
  background: #f8fafc;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.county-circle-item:hover {
  background: #ffffff;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.2);
}

.county-circle-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.county-circle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.county-circle-item span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.county-circle-item.active {
  background: #fffbeb;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.county-circle-item.active .county-circle-avatar {
  border-color: var(--gold);
}

.ai-assistant-widget {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: var(--border-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-bot-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.ai-assistant-widget h4 {
  font-size: 0.98rem;
  font-weight: 900;
  margin-bottom: 4px;
  color: #fff;
}

.ai-assistant-widget p {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.5;
}

.ai-chat-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.ai-chat-btn:hover {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
}

.newsletter-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  background: var(--bg-page);
  font-size: 0.82rem;
  margin-bottom: 8px;
  outline: none;
}

.newsletter-btn {
  width: 100%;
  background: var(--gold);
  color: #000;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
}

.newsletter-btn:hover {
  background: var(--gold-hover);
}

.social-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.portal-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.portal-social-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.portal-social-btn.tg { background: linear-gradient(135deg, #0088cc, #29b6f6); }
.portal-social-btn.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.portal-social-btn.et { background: linear-gradient(135deg, #e65100, #f57c00); }
.portal-social-btn.rb { background: linear-gradient(135deg, #6a1b9a, #9c27b0); }
.portal-social-btn.bl { background: linear-gradient(135deg, #00897b, #26a69a); }
.portal-social-btn.tw { background: linear-gradient(135deg, #111827, #1f2937); }

/* اسلایدر بزرگ و هوشمند خبر ویژه صفحه اصلی */
.portal-hero-slider {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  background: #0d1322;
  margin-bottom: 20px;
}

[data-theme="dark"] .portal-hero-slider {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border-color: #334155;
}

.portal-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}

.portal-hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.portal-hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-hero-overlay {
  position: relative;
  z-index: 3;
  background: linear-gradient(0deg, rgba(10, 15, 29, 0.96) 0%, rgba(10, 15, 29, 0.72) 55%, transparent 100%);
  padding: 24px 28px 20px;
  color: #fff;
}

.portal-hero-badge {
  background: #f59e0b;
  color: #000;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.portal-hero-title {
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1.45;
  color: #fbbf24;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: color 0.2s ease;
}

.portal-hero-slide:hover .portal-hero-title {
  color: #ffffff;
}

.portal-hero-lead {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* دکمه‌های ناوبری چپ و راست اسلایدر */
.hero-slider-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.hero-slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.hero-slider-arrow.prev {
  right: 16px;
}

.hero-slider-arrow.next {
  left: 16px;
}

/* نوار کنترل پایین اسلایدر (نقطه‌ها و توقف/پخش) */
.hero-slider-dots-bar {
  position: absolute;
  bottom: 8px;
  left: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slider-dot.active {
  width: 26px;
  border-radius: 10px;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.hero-slider-autoplay-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-slider-autoplay-btn:hover {
  background: var(--primary);
}

/* ==========================================================================
   طراحی هماهنگ و لوکس باکس دسته‌بندی‌ها زیر اسلایدر (Dark Slate & Gold Category Box)
   ========================================================================== */
.categories-accordion-wrapper {
  width: 100%;
}

.categories-mobile-accordion-toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0d1322 0%, #151f35 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--border-radius-md);
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.categories-mobile-accordion-toggle:hover {
  border-color: var(--gold);
}

.accordion-arrow-icon {
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform 0.2s ease;
  display: inline-block;
}

.accordion-arrow-icon.open {
  transform: rotate(180deg);
  color: var(--gold);
}

.categories-tabs-bar {
  background: linear-gradient(135deg, #0d1322 0%, #151f35 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 12px;
  box-shadow: 0 6px 20px rgba(13, 19, 34, 0.15);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.category-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.category-tab-btn .tab-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.category-tab-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.category-tab-btn:hover .tab-icon {
  background: var(--gold);
  color: #000000;
}

.category-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #f59e0b;
  color: #000000;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.category-tab-btn.active .tab-icon {
  background: #000000;
  color: #f59e0b;
}

.latest-numbered-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.latest-news-row {
  display: flex;
  gap: 18px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
  border-radius: var(--border-radius-sm);
}

.latest-news-row:hover {
  background: rgba(37, 99, 235, 0.02);
}

.latest-news-row:last-child {
  border-bottom: none;
  padding-bottom: 8px;
}

.latest-news-row img {
  width: 175px;
  height: 118px;
  border-radius: var(--border-radius-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease;
}

.latest-news-row:hover img {
  transform: scale(1.04);
}

.latest-news-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}

.latest-news-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--text-main);
  margin-bottom: 4px;
}

.latest-news-row:hover .latest-news-title {
  color: var(--primary);
}

/* ستون چپ */
.video-featured-box {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 160px;
  margin-bottom: 8px;
}

.video-featured-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.gallery-grid-compact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 150px;
  margin-bottom: 8px;
}

.gallery-grid-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-grid-compact img:first-child {
  grid-row: 1 / span 2;
}

.most-viewed-numbered-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.most-viewed-numbered-item:last-child {
  border-bottom: none;
}

.rank-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.most-viewed-numbered-item img {
  width: 52px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.columnist-author-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.columnist-author-row:hover {
  transform: translateX(-3px);
}

.columnist-author-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.columnist-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.columnist-author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.columnist-author-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.columnist-author-name {
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--primary);
}

.columnist-author-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.columnist-note-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.45;
  text-decoration: none;
  display: block;
  margin-top: 2px;
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   ۴. مگا فوتر فوق‌العاده زیبا، مدرن و لوکس پایگاه خبری (Luxury Mega Footer)
   ========================================================================== */
.portal-mega-footer {
  background: linear-gradient(180deg, #090e1a 0%, #04060c 100%);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 44px 0 24px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.portal-mega-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, #38bdf8, transparent);
}

/* نوار ویژگی‌های برتر بالای فوتر */
.footer-features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-feat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.footer-feat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.footer-feat-card strong {
  display: block;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.footer-feat-card span {
  display: block;
  color: #94a3b8;
  font-size: 0.74rem;
  line-height: 1.4;
}

.mega-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.1fr 1.1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.footer-cities-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--border-radius-full);
  transition: all 0.2s ease;
}

.city-chip:hover {
  background: var(--gold);
  color: #000000;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

.footer-social-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  transition: all 0.2s ease;
}

.footer-social-pill.tg { background: #0088cc; }
.footer-social-pill.et { background: #ea580c; }
.footer-social-pill.rb { background: #7c3aed; }
.footer-social-pill.ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }

.footer-social-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: #fff;
}

.footer-trust-badge-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--border-radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.trust-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mega-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

/* ==========================================================================
   ۵. استایل‌های اختصاصی و جذاب صفحه خواندن خبر (Single Article Reading Experience)
   ========================================================================== */
.single-article-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  margin: 16px 0 48px;
  align-items: start;
}

.single-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.article-title-hero {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.5;
  color: var(--text-main);
  margin: 14px 0 16px;
  letter-spacing: -0.3px;
}

.article-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.audio-tts-player {
  background: linear-gradient(135deg, #0d1322, #1e293b);
  color: #fff;
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.btn-tts-play {
  background: var(--gold);
  color: #000;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tts-play:hover {
  background: var(--gold-hover);
  transform: scale(1.03);
}

.article-lead-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-right: 5px solid var(--primary) !important;
  border-radius: var(--border-radius-md) !important;
  padding: 20px 24px !important;
  margin-bottom: 26px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

.article-image-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  background: #0d1322;
  position: relative;
}

.article-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-caption-strip {
  background: #f8fafc;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.article-body-blue-box {
  background: rgba(6, 182, 212, 0.04);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-right: 4px solid #0284c7;
  border-radius: var(--border-radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.05);
}

.article-body-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

.article-content-typography {
  font-size: 1.15rem;
  line-height: 2.4;
  color: #1e293b;
  letter-spacing: -0.2px;
  font-weight: 400;
}

.article-content-typography p {
  margin-bottom: 22px;
}

.article-content-typography h2, 
.article-content-typography h3 {
  font-weight: 800;
  font-size: 1.35rem;
  color: #0f172a;
  margin: 32px 0 16px;
}

.article-content-typography blockquote {
  border-right: 4px solid var(--gold);
  background: #fffbeb;
  padding: 18px 22px;
  border-radius: var(--border-radius-sm);
  color: #b45309;
  font-style: italic;
  margin: 26px 0;
  font-size: 1.05rem;
}

/* ==========================================================================
   نوار اشتراک‌گذاری در انتهای خبر (End of Article Share Bar)
   ========================================================================== */
.article-share-footer-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  padding: 16px 22px;
  margin: 32px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.share-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.share-btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #fff;
}

.share-btn-pill.tg { background: #0088cc; }
.share-btn-pill.et { background: #ea580c; }
.share-btn-pill.rb { background: #7c3aed; }
.share-btn-pill.wa { background: #25d366; }
.share-btn-pill.bl { background: #0284c7; }
.share-btn-pill.cp { background: #334155; }

/* ==========================================================================
   طراحی متمایز، جذاب و پررنگ بخش دیدگاه‌ها و نظرات کاربران (Comments Box)
   ========================================================================== */
.comments-container-wrapper {
  background: linear-gradient(135deg, #0e1626 0%, #15223a 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--border-radius-xl);
  padding: 32px 36px;
  margin-top: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  color: #fff;
}

.comments-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-header-badge h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-header-badge span.badge-count {
  background: var(--gold);
  color: #000000;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--border-radius-full);
}

.comment-form-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.comment-input-field {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  background: rgba(7, 11, 20, 0.8);
  color: #ffffff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-input-field:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.comment-bubble-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 4px solid var(--cyan);
  border-radius: var(--border-radius-md);
  padding: 18px 22px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.comment-bubble-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
}

.comment-author-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--gold);
}

.comment-body-text {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.8;
  margin-top: 6px;
}

/* ==========================================================================
   ۶. استایل‌های صفحات آرشیو، دسته‌بندی‌ها و شهرستان‌ها (Archive & Category Grid)
   ========================================================================== */
.archive-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0 48px;
}

.archive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.archive-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.archive-card:hover img {
  transform: scale(1.04);
}

.archive-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.archive-card-body h4 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.archive-card:hover .archive-card-body h4 {
  color: var(--primary);
}

/* ==========================================================================
   ۷. استایل‌های مدرن و چشم‌نواز باکس گزارش تصویری (Photo Reportage Widget & Gallery)
   ========================================================================== */
.photo-report-featured-widget {
  overflow: hidden;
  padding: 16px;
}

.photo-report-main-cover {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: block;
  height: 165px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.photo-report-main-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-report-main-cover:hover img {
  transform: scale(1.06);
}

.photo-report-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.photo-count-badge {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 6px;
}

.photo-report-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.photo-report-thumbs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.photo-report-thumbs-row a {
  display: block;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.photo-report-thumbs-row a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.photo-report-thumbs-row a:hover img {
  transform: scale(1.1);
}

.more-photos-thumb {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.photo-report-view-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  transition: all 0.2s ease;
}

.photo-report-view-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   ۷. استایل‌های اختصاصی گزارش تصویری مطابق خبرگزاری ایرنا (IRNA Photo Story Style)
   ========================================================================== */

/* گرید ۴ ستونه تصاویر ایرنا */
.irna-photo-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 24px 0 40px;
}

@media (max-width: 992px) {
  .irna-photo-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .irna-photo-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.irna-photo-grid-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #f1f5f9;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.irna-photo-grid-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.irna-photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* نوار ابزار و متادیتای گزارش تصویری */
.irna-toolbar-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  padding: 10px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

[data-theme="dark"] .irna-toolbar-card {
  background: #1e293b;
  border-color: #334155;
}

.irna-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
}

.irna-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.irna-shortlink-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.irna-tool-icon-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.irna-tool-icon-btn:hover {
  color: var(--primary);
}

/* مودال گالری و اسلایدشوی اختصاصی ایرنا (IRNA Gallery Viewer) */
.irna-gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #ffffff;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

[data-theme="dark"] .irna-gallery-modal {
  background: #090d16;
}

.irna-gallery-modal.active {
  display: flex;
}

.irna-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 24px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 900;
  border-radius: 4px;
  cursor: pointer;
  z-index: 100;
  transition: background 0.2s ease;
}

.irna-modal-close-btn:hover {
  background: #b91c1c;
}

.irna-modal-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 80px 10px;
}

.irna-modal-image-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 75vh;
  display: inline-block;
}

.irna-modal-image-wrapper img {
  max-width: 80vw;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* واترمارک رسمی گوشه پایین تصویر مطابق ایرنا */
.irna-modal-watermark {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 6px;
  pointer-events: none;
  direction: ltr;
}

.irna-modal-wm-logo {
  width: 32px;
  height: 32px;
  border: 3px solid #00b4d8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: #00b4d8;
}

.irna-modal-wm-text {
  display: flex;
  flex-direction: column;
}

.irna-modal-wm-text .brand-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.irna-modal-wm-text .brand-sub {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.irna-modal-wm-text .credit-name {
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* دکمه‌های ناوبری چپ و راست */
.irna-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #334155;
  cursor: pointer;
  padding: 20px;
  transition: color 0.2s ease;
  user-select: none;
  z-index: 50;
}

[data-theme="dark"] .irna-nav-arrow {
  color: #cbd5e1;
}

.irna-nav-arrow:hover {
  color: var(--primary);
}

.irna-nav-arrow.prev {
  left: 20px;
}

.irna-nav-arrow.next {
  right: 20px;
}

/* زیرنویس و کپشن متنی زیر عکس در مودال */
.irna-modal-caption {
  text-align: center;
  padding: 10px 40px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

[data-theme="dark"] .irna-modal-caption {
  color: #e2e8f0;
}

/* نوار ابزار پایین مودال */
.irna-modal-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 36px 18px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

[data-theme="dark"] .irna-modal-bottom-bar {
  background: #0f172a;
  border-color: #1e293b;
}

.irna-modal-counter {
  font-size: 0.95rem;
  font-weight: 800;
  color: #64748b;
  direction: ltr;
}

.irna-modal-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.irna-modal-tool-btn {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: #64748b;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.irna-modal-tool-btn:hover {
  color: var(--primary);
  background: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   ۸. استایل‌های اختصاصی صفحه ویدیوهای منتخب مطابق خبرگزاری ایرنا (IRNA Video Layout)
   ========================================================================== */
.irna-video-container-grid {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 24px;
  margin: 24px 0 48px;
  align-items: start;
}

@media (max-width: 1100px) {
  .irna-video-container-grid {
    grid-template-columns: 1fr 280px;
  }
  .irna-video-meta-col {
    order: 2;
  }
  .irna-video-main-col {
    order: 1;
  }
  .irna-video-sidebar-col {
    order: 3;
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .irna-video-container-grid {
    grid-template-columns: 1fr;
  }
}

/* ستون متادیتای سمت راست ایرنا */
.irna-video-meta-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.irna-meta-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.irna-meta-info-item strong {
  color: var(--text-main);
  font-size: 0.85rem;
}

.irna-fontsize-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.irna-fontsize-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 900;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

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

.irna-star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 1rem;
}

.irna-social-share-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.irna-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .irna-social-btn {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

.irna-social-btn.print:hover { background: #0284c7; color: #fff; }
.irna-social-btn.telegram:hover { background: #0088cc; color: #fff; }
.irna-social-btn.twitter:hover { background: #1da1f2; color: #fff; }
.irna-social-btn.facebook:hover { background: #1877f2; color: #fff; }

.irna-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.irna-tag-pill {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

[data-theme="dark"] .irna-tag-pill {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}

.irna-tag-pill:hover {
  background: var(--primary);
  color: #fff;
}

/* ستون پخش ویدیو و متن خبر در وسط */
.irna-video-main-col {
  display: flex;
  flex-direction: column;
}

.irna-video-player-box {
  position: relative;
  width: 100%;
  background: #000000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
}

.irna-video-element {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
  object-fit: cover;
}

/* واترمارک رسمی لوگوی ویدیو در گوشه بالا */
.irna-video-watermark-stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  direction: ltr;
}

.irna-video-wm-badge {
  background: #eab308;
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
}

.irna-video-wm-name {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

/* کنترل‌های سفارشی ویدیو */
.irna-video-custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 20px 14px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.85rem;
}

.irna-video-play-toggle {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.irna-video-play-toggle:hover {
  background: var(--primary);
}

.irna-video-timeline-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.irna-video-timeline-progress {
  width: 35%;
  height: 100%;
  background: #eab308;
  border-radius: 3px;
  position: relative;
}

.irna-video-timeline-progress::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}

/* نوار دانلود حجم فایل زیر ویدیو */
.irna-video-download-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 4px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.irna-video-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.irna-video-download-btn:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ستون چپ تبلیغات و پربازدیدها */
.irna-video-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.irna-banner-card {
  border-radius: 6px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

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

.irna-banner-green {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.irna-banner-cyan {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.irna-banner-blue {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.irna-most-visited-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}

[data-theme="dark"] .irna-most-visited-box {
  background: #1e293b;
  border-color: #334155;
}

.irna-most-visited-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.irna-most-visited-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.irna-most-visited-item {
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 700;
}

.irna-most-visited-item a {
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  gap: 6px;
  transition: color 0.2s ease;
}

/* ==========================================================================
   ۹. استایل‌های باکس مطالبات مردم و باکس تبلیغات ستون راست
   ========================================================================== */
.citizen-demands-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.citizen-demand-item {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.citizen-demand-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.citizen-demand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.75rem;
}

.citizen-city-tag {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
}

[data-theme="dark"] .citizen-city-tag {
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
}

.citizen-status-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.citizen-status-badge.done {
  background: #ecfdf5;
  color: #059669;
}

.citizen-status-badge.pending {
  background: #fffbeb;
  color: #d97706;
}

.citizen-status-badge.investigating {
  background: #eff6ff;
  color: #2563eb;
}

.citizen-demand-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.5;
}

.citizen-demand-add-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(245, 158, 11, 0.08));
  border: 1px dashed var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.citizen-demand-add-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-style: solid;
}

/* استایل باکس تبلیغات ستون راست */
.sidebar-ad-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-ad-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.sidebar-ad-inner {
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-ad-badge {
  background: #f59e0b;
  color: #000;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
  align-self: flex-start;
}

.sidebar-ad-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.4;
}

.sidebar-ad-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ==========================================================================
   ۱۰. استایل‌های نوار شماره‌گذاری صفحات (Luxury Pagination Bar)
   ========================================================================== */
.portal-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

[data-theme="dark"] .portal-pagination-bar {
  background: #151f35;
  border-color: #334155;
}

.pagination-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-nav-btn:hover:not(.disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.pagination-nav-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-pages-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-page-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-page-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-page-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.pagination-ellipsis {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-muted);
  padding: 0 4px;
  user-select: none;
}
@media (max-width: 1200px) {
  .portal-main-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portal-col-sidebar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .categories-tabs-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .mega-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   ۱۱. منوی کشویی واکنش‌گرای موبایل (Mobile Navigation Drawer)
   ========================================================================== */
.mobile-toggle-btn {
  display: none;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  width: 38px;
  height: 38px;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #0b1120;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 9999;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-drawer-panel.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #070a14;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: #ef4444;
}

.mobile-drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

/* ==========================================================================
   ۱۲. رسپانسیو و بهینه‌سازی کامل تمام صفحات برای موبایل و تبلت
   ========================================================================== */

/* پیشگیری کامل از اسکرول افقی در تمام رزولوشن‌ها */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

.portal-container {
  width: 100% !important;
  max-width: 1400px;
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 1200px) {
  .portal-main-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .portal-col-center {
    order: 1 !important;
    width: 100% !important;
  }
  .portal-col-sidebar {
    order: 2 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .portal-col-left {
    order: 3 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .mega-footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

.mobile-toggle-btn {
  display: none;
}

@media (max-width: 1024px) {
  .portal-navbar,
  .portal-header-nav-wrap {
    display: none !important;
  }
  .header-datetime-badge {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: flex !important;
  }
  .portal-search-form {
    width: 160px;
  }
  .categories-tabs-bar {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .single-article-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }
  .irna-video-container-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .portal-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .portal-header-main {
    padding: 8px 0 !important;
    gap: 8px !important;
    justify-content: space-between !important;
  }

  .portal-navbar {
    display: none !important;
  }

  .portal-brand {
    gap: 8px !important;
  }

  .portal-header-logo-img {
    height: 40px !important;
    max-width: 195px !important;
  }

  .brand-mountain-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
  }

  .portal-brand-text h1 {
    font-size: 0.96rem !important;
  }

  .portal-brand-text span {
    font-size: 0.64rem !important;
  }

  .portal-search-form {
    display: none !important;
  }

  /* نوار خبر فوری */
  .portal-breaking-bar {
    padding: 6px 0 !important;
  }

  .portal-breaking-badge {
    padding: 2px 6px !important;
    font-size: 0.72rem !important;
  }

  .portal-breaking-all {
    display: none !important;
  }

  /* چیدمان اصلی ستون‌ها در موبایل: اسلایدر و اخبار در بالاترین نقطه */
  .portal-main-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
  }

  .portal-col-center {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .portal-col-sidebar {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .portal-col-left {
    order: 3 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* اسلایدر صفحه اصلی */
  .portal-hero-slider {
    height: 240px !important;
    border-radius: var(--border-radius-md) !important;
    width: 100% !important;
  }

  .portal-hero-overlay {
    padding: 12px 10px !important;
  }

  .portal-hero-title {
    font-size: 1rem !important;
    line-height: 1.45 !important;
  }

  .portal-hero-lead {
    display: none !important;
  }

  .hero-slider-arrow {
    width: 30px !important;
    height: 30px !important;
    font-size: 1rem !important;
  }

  /* کشوی باز و بسته شونده دسته‌بندی‌های موضوعی در موبایل (تم اختصاصی لوکس تیره و باز شدن فوری) */
  .categories-mobile-accordion-toggle {
    display: flex !important;
  }

  .categories-tabs-bar {
    display: none !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
    background: linear-gradient(135deg, #0d1322 0%, #151f35 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    margin-bottom: 14px !important;
  }

  .categories-tabs-bar.mobile-open {
    display: grid !important;
  }

  .category-tab-btn {
    padding: 9px 10px !important;
    font-size: 0.82rem !important;
    text-align: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
  }

  .category-tab-btn:hover {
    background: rgba(245, 158, 11, 0.2) !important;
    color: var(--gold) !important;
    border-color: var(--gold) !important;
  }

  .category-tab-btn.active {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    border: 1px solid #f59e0b !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45) !important;
  }

  /* دایره‌های شهرستان‌ها - ۲ ستونه منظم بدون اسکرول افقی ناخواسته */
  .counties-circular-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .county-circle-item {
    padding: 6px 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .county-circle-avatar {
    width: 34px !important;
    height: 34px !important;
  }

  .county-circle-item span {
    font-size: 0.76rem !important;
  }

  /* کارت‌های ویجت */
  .portal-widget-card {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 14px 12px !important;
  }

  /* لیست اخبار */
  .latest-news-row {
    padding: 12px 8px !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .latest-news-row img {
    width: 110px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
  }

  .latest-news-title {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
  }

  /* صفحه اختصاصی خبر (Single News Page) */
  .single-article-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .single-main-card {
    padding: 18px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-title-hero {
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    margin: 10px 0 14px !important;
  }

  .single-article-grid > aside {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* چیدمان ویدیویی و گزارش تصویری در موبایل */
  .irna-video-container-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
  }

  .irna-video-meta-col {
    width: 100% !important;
    order: 2 !important;
  }

  .irna-video-player-col {
    width: 100% !important;
    order: 1 !important;
  }

  .irna-video-sidebar-col {
    width: 100% !important;
    order: 3 !important;
  }

  .irna-toolbar-card {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }

  .single-main-card img,
  .single-main-card iframe,
  .single-main-card audio,
  .single-main-card video {
    max-width: 100% !important;
    height: auto !important;
  }

  /* فرم ارسال نظر در موبایل */
  .comment-form-card div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* صفحه تعرفه تبلیغات */
  .ads-pricing-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .ads-bank-card {
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* صفحه تماس با ما */
  .contact-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  /* صفحات دسته‌بندی و شهرستان‌ها */
  .archive-news-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  /* فوتر در موبایل */
  .mega-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .mega-footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }

  .footer-bottom-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 520px) {
  .latest-news-row {
    flex-direction: column !important;
  }

  .latest-news-row img {
    width: 100% !important;
    height: 180px !important;
  }

  .portal-hero-slider {
    height: 220px !important;
  }

  .counties-circular-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .portal-pagination-bar {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }
}

@keyframes fadeInSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
