:root {
  --navy: #1B2A6B;
  --navy-dark: #111d52;
  --navy-deeper: #0d1640;
  --navy-mid: #243380;
  --orange: #E8481A;
  --orange-light: #ff5a28;
  --white: #ffffff;
  --off-white: #f6f7fb;
  --light: #eef0f8;
  --light2: #dde1f0;
  --gray: #7a85a8;
  --dark-text: #0d1a3a;
  --font: 'Cairo', sans-serif;
  --serif: 'Amiri', serif;
  --r: 4px;
  --shadow: 0 4px 24px rgba(27,42,107,0.13);
  --tr: all 0.28s cubic-bezier(0.4,0,0.2,1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--off-white); color: var(--dark-text); overflow-x: hidden; font-size: 15px; line-height: 1.7; direction: rtl; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-deeper); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* CONTAINER */
.container { max-width: 1300px; margin: 0 auto; padding: 0 22px; }

/* TOPBAR */
.topbar { background: var(--navy-deeper); color: rgba(255,255,255,.6); font-size: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-inner { max-width: 1300px; margin: 0 auto; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; }
.tb-social { display: flex; gap: 14px; }
.tb-social a { color: rgba(255,255,255,.4); font-size: 13px; transition: var(--tr); }
.tb-social a:hover { color: var(--orange); }
.tb-weather .temp { color: var(--orange); font-weight: 800; }

/* HEADER */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 32px rgba(11,20,60,.5); }
.header-inner { max-width: 1300px; margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 74px; gap: 16px; }
.header-left { display: flex; align-items: center; }
.header-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

/* LOGO */
.site-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.site-logo img { width: 50px; height: 50px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 10px rgba(232,72,26,.4)); }
.logo-text-ar { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--white); line-height: 1.2; }
.logo-text-en { font-size: 9px; color: rgba(255,255,255,.38); letter-spacing: 3px; text-transform: uppercase; margin-top: 1px; }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 1px; }
.main-nav a { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: var(--r); transition: var(--tr); white-space: nowrap; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: 3px; right: 12px; left: 12px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .3s ease; transform-origin: right; }
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after, .main-nav a.current-menu-item::after { transform: scaleX(1); }
.main-nav a.current-menu-item { color: var(--white); }

.btn-search { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; padding: 8px; font-size: 16px; transition: var(--tr); border-radius: var(--r); }
.btn-search:hover { color: white; background: rgba(255,255,255,.08); }
.btn-subscribe { background: var(--orange); color: white; border: none; padding: 8px 18px; font-family: var(--font); font-size: 12px; font-weight: 700; border-radius: var(--r); cursor: pointer; transition: var(--tr); }
.btn-subscribe:hover { background: var(--orange-light); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; }

/* CATS BAR */
.catsbar { background: var(--white); border-bottom: 2px solid var(--light2); overflow-x: auto; scrollbar-width: none; }
.catsbar::-webkit-scrollbar { display: none; }
.cats-inner { max-width: 1300px; margin: 0 auto; padding: 0 22px; display: flex; }
.cat-link { display: flex; align-items: center; gap: 5px; padding: 13px 16px; font-size: 13px; font-weight: 700; color: var(--gray); white-space: nowrap; border-bottom: 3px solid transparent; transition: var(--tr); text-decoration: none; }
.cat-link:hover, .cat-link.active { color: var(--navy); border-bottom-color: var(--orange); }

/* BREAKING */
.breaking-bar { background: var(--orange); padding: 9px 0; overflow: hidden; }
.breaking-inner { max-width: 1300px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; }
.breaking-label { background: var(--navy-deeper); color: white; font-size: 11px; font-weight: 900; padding: 4px 14px; letter-spacing: 2px; white-space: nowrap; flex-shrink: 0; position: relative; z-index: 2; }
.breaking-label::after { content: ''; position: absolute; left: -8px; top: 0; bottom: 0; border-style: solid; border-width: 12px 0 12px 8px; border-color: transparent transparent transparent var(--navy-deeper); }
.ticker-wrap { flex: 1; overflow: hidden; padding-right: 18px; }
.ticker { display: flex; gap: 60px; animation: tick 38s linear infinite; white-space: nowrap; }
.ticker:hover { animation-play-state: paused; }
.ticker span { font-size: 13px; color: white; font-weight: 600; flex-shrink: 0; }
.ticker span::before { content: '◆'; margin-left: 10px; font-size: 8px; opacity: .7; }
@keyframes tick { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* HERO */
.hero-section { background: var(--navy-deeper); padding: 22px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 336px; gap: 3px; height: 520px; }
.hero-main { position: relative; overflow: hidden; cursor: pointer; }
.hero-main-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-main:hover .hero-main-img { transform: scale(1.03); }
.hero-main-bg { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy-deeper), var(--navy-mid)); display: flex; align-items: center; justify-content: center; font-size: 100px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,20,60,.95) 0%, rgba(11,20,60,.3) 55%, transparent 100%); }
.hero-content { position: absolute; bottom: 0; right: 0; left: 0; padding: 28px 30px; }
.hero-cat { display: inline-block; background: var(--orange); color: white; font-size: 10px; font-weight: 800; padding: 4px 12px; letter-spacing: 1px; margin-bottom: 10px; border-radius: 2px; }
.hero-title { font-family: var(--serif); font-size: 27px; font-weight: 700; color: white; line-height: 1.5; margin-bottom: 10px; }
.hero-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: rgba(255,255,255,.5); }
.hero-side { display: flex; flex-direction: column; gap: 3px; }
.hero-side-item { flex: 1; position: relative; overflow: hidden; cursor: pointer; }
.hero-side-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-side-item:hover .hero-side-img { transform: scale(1.05); }
.hero-side-bg { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); display: flex; align-items: center; justify-content: center; font-size: 46px; }
.hero-side-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,20,60,.9) 0%, rgba(0,0,0,.1) 100%); }
.hero-side-content { position: absolute; bottom: 0; right: 0; left: 0; padding: 13px 15px; }
.hero-side-cat { display: inline-block; background: var(--orange); color: white; font-size: 9px; font-weight: 800; padding: 2px 8px; margin-bottom: 5px; border-radius: 2px; }
.hero-side-title { font-size: 13px; font-weight: 700; color: white; line-height: 1.45; }
.hero-side-time { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 3px; }

/* LIVE */
.live-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(232,72,26,.9); color: white; font-size: 10px; font-weight: 800; padding: 3px 10px; letter-spacing: 1.5px; border-radius: 2px; }
.live-dot { width: 6px; height: 6px; background: white; border-radius: 50%; animation: blink 1.4s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.65); } }

/* MAIN LAYOUT */
.main-layout { padding: 30px 0; display: grid; grid-template-columns: 1fr 296px; gap: 28px; }

/* SECTION HEADER */
.sec-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--light2); position: relative; }
.sec-hdr::before { content: ''; position: absolute; bottom: -2px; right: 0; width: 56px; height: 2px; background: var(--orange); }
.sec-title { font-size: 17px; font-weight: 900; color: var(--navy); display: flex; align-items: center; gap: 9px; }
.sec-dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.sec-more { font-size: 12px; color: var(--orange); font-weight: 700; display: flex; align-items: center; gap: 4px; transition: var(--tr); }
.sec-more:hover { gap: 8px; }

/* NEWS CARDS */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { background: white; border-radius: var(--r); overflow: hidden; transition: var(--tr); cursor: pointer; border: 1px solid var(--light2); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--light); display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .card-img img { transform: scale(1.06); }
.card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy-deeper), var(--navy-mid)); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.card-cat { position: absolute; top: 10px; right: 10px; background: var(--navy); color: white; font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 2px; }
.card-cat.orange { background: var(--orange); }
.card-body { padding: 14px; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.55; color: var(--dark-text); margin-bottom: 9px; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover .card-title { color: var(--navy); }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--gray); }

/* SECTION */
.news-section { margin-bottom: 36px; }

/* AD BANNER */
.ad-banner { background: var(--navy-deeper); border-radius: var(--r); height: 86px; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; border: 1px dashed rgba(255,255,255,.08); }
.ad-banner span { color: rgba(255,255,255,.18); font-size: 11px; letter-spacing: 2px; }

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

/* MOST READ */
.most-read { background: white; border-radius: var(--r); overflow: hidden; border: 1px solid var(--light2); }
.mr-head { background: var(--navy); padding: 13px 18px; display: flex; align-items: center; gap: 9px; }
.mr-head h3 { color: white; font-size: 14px; font-weight: 800; }
.mr-item { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-bottom: 1px solid var(--light); cursor: pointer; transition: background .2s; }
.mr-item:last-child { border-bottom: none; }
.mr-item:hover { background: var(--off-white); }
.mr-num { font-size: 22px; font-weight: 900; width: 28px; text-align: center; flex-shrink: 0; font-family: var(--serif); line-height: 1; color: var(--light2); }
.mr-item:nth-child(1) .mr-num { color: var(--orange); }
.mr-item:nth-child(2) .mr-num { color: var(--navy); }
.mr-item:nth-child(3) .mr-num { color: var(--gray); }
.mr-title { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--dark-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.mr-item:hover .mr-title { color: var(--orange); }
.mr-time { font-size: 11px; color: var(--gray); margin-top: 3px; }

/* AD BOX */
.ad-box { background: var(--navy-deeper); border-radius: var(--r); overflow: hidden; position: relative; }
.ad-label { position: absolute; top: 8px; left: 10px; font-size: 9px; color: rgba(255,255,255,.2); letter-spacing: 1.5px; }
.ad-placeholder { height: 265px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed rgba(255,255,255,.08); margin: 4px; border-radius: 2px; }
.ad-placeholder .ad-icon { font-size: 36px; opacity: .22; }
.ad-placeholder p { color: rgba(255,255,255,.18); font-size: 11px; letter-spacing: 2px; }

/* NEWSLETTER */
.newsletter-box { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; }
.newsletter-box::before { content: ''; position: absolute; top: -25px; left: -25px; width: 110px; height: 110px; background: var(--orange); border-radius: 50%; opacity: .07; }
.nl-icon { font-size: 28px; margin-bottom: 10px; }
.nl-title { font-size: 15px; font-weight: 800; color: white; margin-bottom: 5px; }
.nl-desc { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.65; margin-bottom: 14px; }
.nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-input { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 10px 13px; color: white; font-family: var(--font); font-size: 13px; outline: none; transition: var(--tr); direction: rtl; width: 100%; }
.nl-input:focus { border-color: var(--orange); }
.nl-input::placeholder { color: rgba(255,255,255,.2); }
.nl-btn { background: var(--orange); color: white; border: none; border-radius: var(--r); padding: 11px; font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--tr); width: 100%; }
.nl-btn:hover { background: var(--orange-light); }

/* TAGS */
.tags-box { background: white; border-radius: var(--r); padding: 18px; border: 1px solid var(--light2); }
.tags-box h3 { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 13px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-item { background: var(--light); color: var(--gray); font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: var(--tr); text-decoration: none; display: inline-block; }
.tag-item:hover { background: var(--orange); color: white; }

/* SINGLE POST */
.single-article { background: white; border-radius: var(--r); padding: 32px; border: 1px solid var(--light2); margin-bottom: 28px; }
.single-article h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.5; color: var(--navy); margin-bottom: 16px; }
.post-meta-bar { display: flex; gap: 16px; font-size: 12px; color: var(--gray); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--light2); flex-wrap: wrap; }
.post-featured-img { border-radius: var(--r); overflow: hidden; margin-bottom: 24px; }
.post-featured-img img { width: 100%; height: auto; }
.post-body { font-size: 15px; line-height: 1.9; color: var(--dark-text); }
.post-body p { margin-bottom: 16px; }
.post-body img { border-radius: var(--r); margin: 20px 0; width: 100%; }
.post-body h2, .post-body h3 { color: var(--navy); font-family: var(--serif); margin: 24px 0 12px; }

/* FOOTER */
.site-footer { background: var(--navy-deeper); color: rgba(255,255,255,.5); }
.footer-top { padding: 46px 0 26px; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.footer-brand-logo img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand-name { font-family: var(--serif); font-size: 20px; color: white; font-weight: 700; }
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 17px; }
.footer-social { display: flex; gap: 8px; }
.social-btn { width: 34px; height: 34px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 13px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.35); transition: var(--tr); cursor: pointer; }
.social-btn:hover { background: var(--orange); color: white; }
.footer-col h4 { color: white; font-size: 13px; font-weight: 800; margin-bottom: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 12px; transition: color .2s; }
.footer-links a:hover { color: white; }
.footer-bottom { padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.footer-copy .orange { color: var(--orange); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a:hover { color: white; }

/* SEARCH OVERLAY */
.search-overlay { position: fixed; inset: 0; background: rgba(11,20,60,.96); z-index: 9999; display: flex; align-items: flex-start; justify-content: center; padding-top: 110px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-inner { width: 100%; max-width: 580px; padding: 0 20px; }
.search-wrap { position: relative; }
.search-field { width: 100%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: var(--r); padding: 16px 48px 16px 20px; color: white; font-family: var(--font); font-size: 17px; outline: none; direction: rtl; }
.search-field:focus { border-color: var(--orange); }
.search-field::placeholder { color: rgba(255,255,255,.22); }
.search-close-btn { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.35); font-size: 20px; cursor: pointer; }
.search-hints { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.search-hint { background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); font-size: 12px; padding: 6px 14px; border-radius: 20px; cursor: pointer; transition: var(--tr); }
.search-hint:hover { background: var(--orange); color: white; }

/* MOBILE MENU */
.mob-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 8999; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mob-overlay.open { opacity: 1; pointer-events: all; }
.mob-menu { position: fixed; top: 0; right: -100%; bottom: 0; width: 270px; background: var(--navy); z-index: 9000; transition: right .3s ease; overflow-y: auto; padding: 75px 22px 22px; }
.mob-menu.open { right: 0; }
.mob-nav { display: flex; flex-direction: column; gap: 2px; }
.mob-nav a { color: rgba(255,255,255,.68); font-size: 15px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 9px; transition: color .2s; }
.mob-nav a:hover { color: white; }

/* PROGRESS BAR */
.reading-progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; background: rgba(0,0,0,.1); z-index: 9998; }
.reading-progress-bar { height: 100%; background: linear-gradient(to left, var(--orange), var(--navy-mid)); width: 0%; transition: width .1s linear; }

/* FADE ANIMATION */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; height: 62px; }
  .main-nav { display: none; }
  .btn-subscribe { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; height: auto; }
  .hero-main { height: 300px; }
  .hero-side { flex-direction: row; }
  .hero-side-item { min-height: 150px; }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
