/* ============================================================
   KasPress Public CSS — RTL Arabic News Portal
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #cc0000;
  --red-dark:   #aa0000;
  --dark:       #1a1a1a;
  --text:       #2c2c2c;
  --muted:      #666;
  --light:      #999;
  --bg:         #f4f4f4;
  --card-bg:    #ffffff;
  --border:     #e0e0e0;
  --topbar-bg:  #1a1a1a;
  --header-bg:  #ffffff;
  --nav-bg:     #cc0000;
  --max-width:  1280px;
  --gap:        16px;
  --radius:     6px;
  --shadow:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --font:       'Tajawal', 'Noto Kufi Arabic', Tahoma, Arial, sans-serif;
}

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  transition: top .15s;
}
.skip-link:focus { top: 0; }
*:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Print ── */
@media print {
  .site-header, .site-nav, .site-footer, .sidebar, .article-share,
  .article-nav, .related-articles, .comments-section,
  .back-to-top, .mobile-drawer, .search-overlay { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .article-title { font-size: 22pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ── Accessibility ── */
.skip-link {
  position: absolute; top: -60px; right: 0;
  background: var(--red); color: #fff;
  padding: 10px 20px; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.layout-main { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }

/* ── TOP BAR ── */
.topbar {
  background: var(--topbar-bg);
  color: #ccc;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #333;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-date { white-space: nowrap; }
.topbar-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-label {
  background: var(--red);
  color: #fff;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { padding: 0 24px; }
.ticker-item a:hover { color: #fff; }
@keyframes ticker-scroll {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.topbar-social { display: flex; gap: 10px; }
.topbar-social a { color: #ccc; font-size: 16px; transition: color .15s; }
.topbar-social a:hover { color: #fff; }

/* ── HEADER ── */
.site-header {
  background: var(--header-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.header-ad { flex: 1; max-width: 600px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-search, .btn-menu {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--dark);
  padding: 6px;
  border-radius: var(--radius);
  transition: background .15s;
}
.btn-search:hover, .btn-menu:hover { background: var(--bg); }
.btn-menu { display: none; }

/* ── NAVIGATION ── */
.main-nav {
  background: var(--nav-bg);
  position: relative;
  z-index: 400;
}
.nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-item {
  position: relative;
  flex-shrink: 0;
}
.nav-link {
  display: block;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}
.nav-link:hover, .nav-item:hover > .nav-link { background: rgba(0,0,0,.25); color: #fff; }
.nav-link.active { background: rgba(0,0,0,.3); }
.nav-item:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--red);
  z-index: 600;
}
.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.dropdown a:hover { background: var(--bg); color: var(--red); }

/* ── SEARCH OVERLAY ── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 800;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.search-overlay.open { display: flex; }
.search-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 620px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 14px 16px;
  font-size: 18px;
  font-family: var(--font);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  direction: rtl;
}
.search-box input:focus { outline: none; border-color: var(--red); }
.search-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
}

/* ── MOBILE DRAWER ── */
.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--dark);
  z-index: 900;
  overflow-y: auto;
  transition: right .3s ease;
  padding: 20px 0;
}
.mobile-drawer.open { right: 0; }
.mobile-drawer-logo {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--red);
  padding: 0 16px 16px;
  border-bottom: 1px solid #333;
  margin-bottom: 8px;
}
.mobile-drawer a {
  display: block;
  padding: 11px 16px;
  color: #ccc;
  font-size: 15px;
  border-bottom: 1px solid #2a2a2a;
}
.mobile-drawer a:hover { color: #fff; background: #2a2a2a; }
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 899;
}
.drawer-overlay.show { display: block; }

/* ── SECTION TITLES ── */
.section-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
  border-right: 4px solid var(--red);
  padding-right: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title a {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.section-title a:hover { color: var(--red); }
.section-wrap { margin-bottom: 32px; }

/* ── ARTICLE CARDS ── */
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img { position: relative; overflow: hidden; }
.card-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .3s;
}
.article-card:hover .card-img img { transform: scale(1.03); }
.card-cat {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.card-breaking {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff6600;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title:hover { color: var(--red); }
.card-excerpt {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light);
  margin-top: auto;
}
.card-meta-sep::before { content: '·'; }

/* ── HERO SECTION ── */
.hero { margin-bottom: 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
}
.hero-main { grid-row: 1 / 3; position: relative; overflow: hidden; border-radius: var(--radius) 0 0 var(--radius); }
.hero-main img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
}
.hero-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 24px;
  color: #fff;
}
.hero-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.hero-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 10px;
}
.hero-title a { color: #fff; }
.hero-title a:hover { color: #ffd0d0; }
.hero-meta { font-size: 12px; opacity: .8; display: flex; gap: 10px; }
.hero-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 4px; }
.hero-side-item { position: relative; overflow: hidden; }
.hero-side-item img { width: 100%; height: 200px; object-fit: cover; }
.hero-side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
}
.hero-side-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 14px;
  color: #fff;
}
.hero-side-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 5px;
}
.hero-side-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-side-title a { color: #fff; }
.hero-side-title a:hover { color: #ffd0d0; }

/* ── COMPACT LIST ── */
.compact-list { display: flex; flex-direction: column; gap: 0; }
.compact-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.compact-item:last-child { border-bottom: none; }
.compact-img { flex-shrink: 0; width: 90px; height: 65px; overflow: hidden; border-radius: 4px; }
.compact-img img { width: 100%; height: 100%; object-fit: cover; }
.compact-body { flex: 1; }
.compact-cat { font-size: 11px; color: var(--red); font-weight: 700; margin-bottom: 4px; }
.compact-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compact-title:hover { color: var(--red); }
.compact-date { font-size: 11px; color: var(--light); margin-top: 4px; }

/* ── VIDEO CARDS ── */
.video-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-thumb { position: relative; }
.video-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  transition: background .2s;
}
.play-btn:hover { background: rgba(204,0,0,.6); }
.play-btn::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent #fff;
  margin-right: -4px;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 3px;
}
.video-body { padding: 12px; }
.video-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-title:hover { color: var(--red); }
.video-meta { font-size: 12px; color: var(--light); margin-top: 6px; }

/* ── SINGLE ARTICLE ── */
.article-header { margin-bottom: 24px; }
.article-breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.article-breadcrumbs a { color: var(--muted); }
.article-breadcrumbs a:hover { color: var(--red); }
.article-breadcrumbs .sep::before { content: '/'; margin: 0 4px; }
.article-category-label {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.article-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 10px;
}
.article-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.article-meta strong { color: var(--text); }
.article-featured-image { margin: 20px 0; }
.article-featured-image img { width: 100%; border-radius: var(--radius); }
.article-featured-image figcaption { font-size: 12px; color: var(--muted); padding: 6px 0; }
.article-opening {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--dark);
  border-right: 4px solid var(--red);
  padding-right: 16px;
  margin-bottom: 24px;
}
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.article-body h2 { font-size: 21px; font-weight: 900; margin: 28px 0 12px; color: var(--dark); }
.article-body h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.article-body p  { margin-bottom: 18px; }
.article-body blockquote {
  border-right: 4px solid var(--red);
  padding: 14px 18px;
  background: #fafafa;
  margin: 20px 0;
  color: var(--muted);
  font-style: italic;
  font-size: 17px;
}
.article-body ul, .article-body ol { padding-right: 24px; margin-bottom: 18px; }
.article-body li { margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 18px; overflow-x: auto; display: block; }
.article-body th, .article-body td { padding: 10px 14px; border: 1px solid var(--border); text-align: right; }
.article-body th { background: #f4f4f4; font-weight: 700; }
.article-body img { border-radius: var(--radius); margin: 12px 0; }
.article-body iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: var(--radius); }
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0;
  flex-wrap: wrap;
}
.share-label { font-size: 14px; font-weight: 700; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: #fff;
  font-family: var(--font);
}
.share-fb     { background: #1877f2; }
.share-tw     { background: #1da1f2; }
.share-wa     { background: #25d366; }
.share-copy   { background: var(--muted); }
.share-print  { background: var(--dark); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag-link {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  transition: all .15s;
}
.tag-link:hover { background: var(--red); color: #fff; border-color: var(--red); }
.article-author-box {
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin: 24px 0;
  align-items: flex-start;
}
.author-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.author-bio  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── TOC ── */
.toc {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}
.toc-title { font-weight: 700; margin-bottom: 10px; }
.toc ol { padding-right: 20px; }
.toc li { margin-bottom: 6px; font-size: 14px; }
.toc a { color: var(--red); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.widget-title {
  background: var(--dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
}
.widget-body { padding: 0; }
.sidebar-article {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.sidebar-article:last-child { border-bottom: none; }
.sidebar-num {
  font-size: 20px;
  font-weight: 900;
  color: #ddd;
  width: 24px;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 3px;
}
.sidebar-article-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-article-title:hover { color: var(--red); }
.sidebar-article-meta { font-size: 11px; color: var(--light); margin-top: 4px; }

/* ── SEARCH PAGE ── */
.search-header { margin-bottom: 24px; }
.search-form-large {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.search-form-large input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  direction: rtl;
}
.search-form-large input:focus { outline: none; border-color: var(--red); }
.search-form-large button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font);
  cursor: pointer;
  font-weight: 700;
}
.search-count { font-size: 14px; color: var(--muted); }
.search-highlight { background: #fff3cd; padding: 0 2px; border-radius: 2px; }
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.no-results .icon { font-size: 60px; margin-bottom: 16px; }
.no-results h2 { font-size: 20px; margin-bottom: 8px; color: var(--dark); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 24px 0;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 14px;
  transition: all .15s;
}
.page-link:hover  { background: var(--red); color: #fff; border-color: var(--red); }
.page-link.active { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: #aaa;
  margin-top: 40px;
}
.footer-top {
  padding: 40px 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-about-logo { font-size: 28px; font-weight: 900; color: var(--red); margin-bottom: 12px; }
.footer-about p    { font-size: 13px; line-height: 1.7; }
.footer-social     { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a   { color: #aaa; font-size: 20px; transition: color .15s; }
.footer-social a:hover { color: #fff; }
.footer-col h4     { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; border-bottom: 2px solid var(--red); padding-bottom: 6px; }
.footer-col ul li  { margin-bottom: 8px; }
.footer-col ul a   { font-size: 13px; color: #aaa; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }

/* ── BADGES ── */
.badge-breaking { background: #ff6600; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 3px; font-weight: 700; }
.badge-featured { background: var(--red); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 3px; font-weight: 700; }

/* ── ADS ── */
.ad-slot { text-align: center; margin: 16px 0; }
.ad-slot img { max-width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .layout-main { grid-template-columns: 1fr; }
  .hero-grid   { grid-template-columns: 1fr; }
  .hero-side   { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-main   { border-radius: var(--radius) var(--radius) 0 0; }
  .grid-3      { grid-template-columns: 1fr 1fr; }
  .footer-top  { grid-template-columns: 1fr 1fr; }
  .btn-menu    { display: block; }
  .main-nav    { display: none; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-side   { grid-template-columns: 1fr; }
  .article-title { font-size: 22px; }
  .footer-top  { grid-template-columns: 1fr; }
  .topbar-ticker { display: none; }
  .article-share { gap: 6px; }
  .share-btn   { padding: 6px 10px; font-size: 12px; }
}

/* ── PAGE LAYOUT (content + sidebar) ── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
  padding-top: 20px;
  padding-bottom: 40px;
}
.content-area { min-width: 0; }
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

/* ── ARTICLE CARDS (new style) ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #eee;
}
.article-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.article-card:hover .article-card-img-wrap img { transform: scale(1.04); }
.article-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.article-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.article-cat { font-size: 11px; font-weight: 700; color: var(--red); }
.article-cat:hover { text-decoration: underline; }
.article-cat-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
}
.article-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-title a:hover { color: var(--red); }
.article-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.article-card-featured { grid-column: 1 / -1; }
.article-card-footer {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--light);
  margin-top: auto;
}
.article-time { font-size: 12px; color: var(--light); }

/* ── ARTICLE LIST (horizontal) ── */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item img { width: 90px; height: 65px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.article-list-info { flex: 1; min-width: 0; }
.article-list-info h3 { font-size: 14px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.article-list-info h3 a:hover { color: var(--red); }

/* ── VIDEOS GRID ── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .videos-grid { grid-template-columns: 1fr; } }

.video-thumb-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: var(--radius) var(--radius) 0 0;
}
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.25);
  transition: background .2s;
}
.video-thumb-wrap:hover .video-play-btn { background: rgba(204,0,0,.5); }
.video-info { padding: 10px 12px 14px; background: var(--card-bg); border-radius: 0 0 var(--radius) var(--radius); }
.video-info h4 { font-size: 14px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.video-info h3 { font-size: 15px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.video-info h4 a:hover, .video-info h3 a:hover { color: var(--red); }
.video-meta { font-size: 12px; color: var(--light); }
.video-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card-bg); }
.video-card-lg .video-info { padding: 14px 16px 18px; }
.video-card-lg .video-info p { font-size: 13px; color: var(--muted); margin: 6px 0; }
.featured-videos { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .featured-videos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .featured-videos { grid-template-columns: 1fr; } }

/* ── HERO (new styles) ── */
.hero-section { background: var(--dark); padding: 16px 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4px; }
.hero-main { position: relative; overflow: hidden; border-radius: var(--radius) 0 0 var(--radius); min-height: 420px; }
.hero-img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.hero-img-placeholder { background: #333; min-height: 420px; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}
.hero-cat { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 3px; margin-bottom: 10px; }
.hero-cat:hover { background: var(--red-dark); color: #fff; }
.hero-title { font-size: 22px; font-weight: 900; line-height: 1.4; margin-bottom: 8px; }
.hero-excerpt { font-size: 13px; opacity: .85; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; gap: 14px; font-size: 12px; opacity: .75; }
.hero-card { display: block; height: 100%; }
.hero-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 4px; }
.hero-side-card { display: flex; gap: 10px; background: #222; padding: 12px; align-items: flex-start; text-decoration: none; }
.hero-side-card:hover { background: #2a2a2a; }
.hero-side-card img { width: 90px; height: 70px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.hero-side-info { flex: 1; min-width: 0; }
.hero-side-info h3 { font-size: 13px; font-weight: 700; color: #eee; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-side-info h3:hover { color: #fff; }
.hero-side-info .article-cat { font-size: 10px; color: var(--red); }
.hero-side-info .article-time { font-size: 11px; color: #888; display: block; margin-top: 4px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { border-radius: var(--radius); min-height: 300px; }
  .hero-img { min-height: 300px; }
  .hero-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-side { grid-template-columns: 1fr; }
  .hero-title { font-size: 18px; }
}

/* ── HOME SECTIONS ── */
.home-section { margin-bottom: 36px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; border-right: 4px solid var(--red); padding-right: 12px; }
.section-header .section-title { margin-bottom: 0; border-right: none; padding-right: 0; }
.section-header .section-title a { font-size: inherit; font-weight: inherit; color: inherit; }
.section-more { font-size: 13px; color: var(--muted); white-space: nowrap; }
.section-more:hover { color: var(--red); }

/* ── ARCHIVE ── */
.archive-header { margin-bottom: 24px; }
.archive-title { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.archive-desc { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.archive-count { font-size: 13px; color: var(--light); }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.subcat-link { background: var(--bg); border: 1px solid var(--border); padding: 5px 14px; border-radius: 20px; font-size: 13px; color: var(--muted); transition: all .15s; }
.subcat-link:hover { background: var(--red); color: #fff; border-color: var(--red); }
.empty-message { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 16px; }
.article-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }

/* ── SINGLE ARTICLE ADDITIONS ── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span[aria-current] { color: var(--text); }
.article-meta-item { font-size: 13px; color: var(--muted); }
.article-meta-item a { color: var(--text); font-weight: 600; }
.article-toc { background: #fafafa; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.article-toc h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.article-toc ul { padding-right: 16px; }
.article-toc li { margin-bottom: 6px; font-size: 14px; list-style: disc; }
.toc-level-3 { padding-right: 16px; }
.article-toc a { color: var(--red); }
.article-toc a.active { font-weight: 700; }
.author-box { display: flex; gap: 16px; background: var(--card-bg); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); margin: 24px 0; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; flex-shrink: 0; }
.author-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.author-info p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.article-nav-btn { display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; transition: border-color .15s; }
.article-nav-btn:hover { border-color: var(--red); }
.article-nav-btn span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.article-nav-btn strong { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-nav-prev { text-align: left; }
.related-articles { margin-top: 32px; }

/* ── SIDEBAR WIDGETS ── */
.widget { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.widget-title { background: var(--dark); color: #fff; font-size: 14px; font-weight: 700; padding: 10px 16px; margin: 0; }
.most-read-list { padding: 0; }
.most-read-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.most-read-item:last-child { border-bottom: none; }
.most-read-num { font-size: 20px; font-weight: 900; color: #ddd; width: 26px; flex-shrink: 0; line-height: 1; }
.most-read-info { flex: 1; min-width: 0; }
.most-read-info img { width: 70px; height: 50px; object-fit: cover; border-radius: 3px; margin-bottom: 4px; }
.most-read-title { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.most-read-title:hover { color: var(--red); }

/* ── PAGINATION (new) ── */
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 14px;
  transition: all .15s;
}

/* ── ARTICLE TOOLS ── */
.article-tools { display: flex; align-items: center; gap: 6px; margin: 8px 0 16px; }
.font-btn {
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 10px; font-family: var(--font); cursor: pointer; color: var(--text);
  font-size: 14px; transition: background .15s;
}
.font-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.share-print { cursor: pointer; background: none; border: 1px solid var(--border); border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.share-print:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── COMMENTS ── */
.comments-section { margin-top: 40px; border-top: 2px solid var(--border); padding-top: 28px; }
.comments-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.comment-item { display: flex; gap: 14px; }
.comment-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.comment-body { flex: 1; background: var(--bg); border-radius: var(--radius); padding: 14px 16px; }
.comment-meta { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.comment-author { font-size: 15px; color: var(--dark); }
.comment-time { font-size: 12px; color: var(--muted); }
.comment-content { font-size: 15px; line-height: 1.7; color: var(--text); white-space: pre-line; }
.comment-form-wrap { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.comment-form-wrap h4 { font-size: 18px; margin-bottom: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.page-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }

/* ── SEARCH FORM BAR ── */
.search-form-bar { display: flex; gap: 8px; margin: 16px 0 24px; }
.search-form-bar input { flex: 1; padding: 12px 16px; font-size: 16px; font-family: var(--font); border: 2px solid var(--border); border-radius: var(--radius); direction: rtl; }
.search-form-bar input:focus { outline: none; border-color: var(--red); }
.search-form-bar button { background: var(--red); color: #fff; border: none; padding: 12px 24px; border-radius: var(--radius); font-size: 15px; font-family: var(--font); cursor: pointer; font-weight: 700; }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error   { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  direction: rtl;
  transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.1); }
textarea.form-control { resize: vertical; }
.btn { display: inline-block; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-family: var(--font); font-weight: 700; cursor: pointer; border: none; transition: all .15s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border: 1px solid var(--border); background: transparent; color: var(--text); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ── SHARE BTN FIX ── */
.share-tg { background: #0088cc; }
.share-btn button { font-family: var(--font); }

/* ── SEARCH OVERLAY ACTIVE CLASS ── */
.search-overlay.active { display: flex; }
.drawer-overlay.active { display: block; }

/* ── HEADER SCROLLED ── */
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.15); }

