@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&family=Tajawal:wght@300;400;500;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white:      #ffffff;
  --bg:         #f4f4f4;
  --bg-card:    #ffffff;
  --nav-bg:     #1a1a2e;
  --nav-hover:  #16213e;
  --gold:       #c9a84c;
  --gold-dark:  #a0832e;
  --red:        #d32f2f;
  --red-dark:   #b71c1c;
  --green:      #2e7d32;
  --border:     #e0e0e0;
  --text:       #1a1a1a;
  --text-mid:   #444444;
  --text-light: #777777;
  --text-muted: #999999;
  --shadow:     0 2px 12px rgba(0,0,0,0.1);
  --shadow-lg:  0 6px 30px rgba(0,0,0,0.15);
}
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', 'Tajawal', sans-serif; background: var(--bg); color: var(--text); direction: rtl; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* ─── TOP BAR ─── */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-text-wrap .site-name {
  font-size: 28px;
  font-weight: 900;
  color: var(--nav-bg);
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-text-wrap .site-name span { color: var(--gold); }
.logo-text-wrap .site-en {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-date { font-size: 12px; color: var(--text-light); white-space: nowrap; }
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
}
.search-box input {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  width: 180px;
  direction: rtl;
}
.search-box button {
  background: var(--nav-bg);
  border: none;
  color: white;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--nav-bg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s;
}
.social-icons a:hover { background: var(--gold); }

/* ─── TICKER ─── */
.ticker-bar {
  background: var(--red);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-label {
  background: var(--nav-bg);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 8px;
}
.ticker-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; height: 100%; }
.ticker-scroll { display: flex; gap: 50px; animation: tickerMove 40s linear infinite; white-space: nowrap; }
.ticker-scroll span { font-size: 13px; color: rgba(255,255,255,0.95); font-weight: 500; }
.ticker-scroll span::before { content: '◆ '; font-size: 8px; opacity: 0.7; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── NAV ─── */
nav.main-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
nav.main-nav button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  position: relative;
}
nav.main-nav button:hover { color: var(--white); background: rgba(255,255,255,0.05); }
nav.main-nav button.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ─── PAGE WRAP ─── */
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 20px; }

/* ─── HERO ─── */
.hero-section { margin-bottom: 28px; }
.hero-main {
  width: 100%;
  height: 480px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
}
.hero-main:hover .hero-img { transform: scale(1.03); }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.hero-gradient-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 60%, #533483 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.hero-gradient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(201,168,76,0.03) 0, rgba(201,168,76,0.03) 1px, transparent 1px, transparent 60px),
              repeating-linear-gradient(-45deg, rgba(201,168,76,0.03) 0, rgba(201,168,76,0.03) 1px, transparent 1px, transparent 60px);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}
.hero-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 28px 28px 24px;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.hero-cat-badge {
  display: inline-flex;
  background: var(--gold);
  color: var(--nav-bg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.hero-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1.5;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ─── SECTION TITLE ─── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--nav-bg);
}
.section-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--nav-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h3::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--gold);
  border-radius: 2px;
}
.section-head .more-link {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 600;
  cursor: pointer;
}
.section-head .more-link:hover { color: var(--red); }

/* ─── CARDS GRID ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.news-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img-wrap img,
.card-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.news-card:hover .card-img-placeholder,
.news-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.card-cat-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--nav-bg);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 2;
}
.card-breaking-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}
.card-footer-meta .read-more { color: var(--gold-dark); font-weight: 600; }

/* ─── LIST CARDS ─── */
.list-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.list-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  cursor: pointer;
  display: flex;
  gap: 0;
  transition: box-shadow 0.2s;
}
.list-card:hover { box-shadow: var(--shadow); }
.list-card-img {
  width: 140px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.list-card-img .card-img-placeholder { font-size: 24px; height: 100%; }
.list-card-body { padding: 12px 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.list-card-body h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card-meta { font-size: 11px; color: var(--text-light); display: flex; gap: 10px; margin-top: 6px; }
.list-card-meta .cat { color: var(--gold-dark); font-weight: 600; }

/* ─── ARTICLE PAGE ─── */
.article-page-wrap { max-width: 900px; margin: 0 auto; padding: 28px 20px 60px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { cursor: pointer; color: var(--gold-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }
.art-cat-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--nav-bg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.art-breaking-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  margin-right: 8px;
}
.art-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 14px;
}
.art-summary {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  border-right: 4px solid var(--gold);
  padding-right: 16px;
  margin-bottom: 20px;
  background: rgba(201,168,76,0.05);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
}
.art-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-light);
}
.art-meta-bar .author { font-weight: 700; color: var(--text-mid); }
.art-meta-bar .date { color: var(--gold-dark); }
.art-meta-bar .read-time { background: var(--bg); border: 1px solid var(--border); padding: 2px 10px; border-radius: 20px; font-size: 11px; }
.video-wrap {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-wrap video { width: 100%; display: block; max-height: 500px; }
.art-body { font-size: 17px; line-height: 1.95; color: var(--text-mid); }
.art-body p { margin-bottom: 20px; }
.art-body p:first-child { font-size: 18px; color: var(--text); font-weight: 500; }
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.share-bar span { font-size: 13px; font-weight: 700; color: var(--text-mid); }
.share-btn {
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.share-btn.copy { background: var(--nav-bg); color: white; }
.share-btn.whatsapp { background: #25D366; color: white; }
.share-btn.twitter { background: #1DA1F2; color: white; }

/* ─── FOOTER ─── */
footer {
  background: var(--nav-bg);
  color: rgba(255,255,255,0.7);
  padding: 44px 20px 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name { font-size: 26px; font-weight: 900; color: white; margin-bottom: 4px; }
.footer-brand .brand-name span { color: var(--gold); }
.footer-brand .brand-en { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { font-size: 13px; padding: 5px 0; color: rgba(255,255,255,0.5); cursor: pointer; transition: color 0.2s; }
.footer-col li:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1280px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom .gold { color: var(--gold); }
.uae-flag { display: flex; align-items: center; gap: 8px; }
.flag-strip-mini { display: flex; flex-direction: column; width: 24px; height: 16px; border-radius: 2px; overflow: hidden; position: relative; }
.flag-strip-mini .fr { background: #FF0000; flex: 1; }
.flag-strip-mini .fw { background: #fff; flex: 1; }
.flag-strip-mini .fb { background: #000; flex: 1; }
.flag-strip-mini::after { content: ''; position: absolute; top:0; left:0; bottom:0; width: 30%; background: #00732F; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .social-icons, .search-box { display: none; }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-main { height: 300px; }
  .hero-content h2 { font-size: 18px; }
  .top-bar-right .top-date { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .art-title { font-size: 22px; }
  nav.main-nav button { padding: 12px 12px; font-size: 12px; }
  .list-card-img { width: 100px; height: 80px; }
}
