:root {
  --red: #e1131d;
  --red-dark: #b50d16;
  --navy: #0c1a4b;
  --navy-2: #13246a;
  --text: #1b1b1b;
  --text-2: #444;
  --muted: #7a7f8c;
  --line: #e7e8ec;
  --bg: #ffffff;
  --card: #ffffff;
  --soft: #f4f5f8;
  --radius: 8px;
  --container: 1200px;
}
[data-theme="dark"] {
  --text: #eef0f6;
  --text-2: #c9cede;
  --muted: #9aa3bd;
  --line: #273055;
  --bg: #0a1230;
  --card: #111b42;
  --soft: #141f4a;
  --navy: #dfe5ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: "Cairo", Tahoma, sans-serif; color: var(--text); background: var(--bg);
  direction: rtl; line-height: 1.6; padding-bottom: 44px; transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.clamp2, .clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { -webkit-line-clamp: 2; } .clamp3 { -webkit-line-clamp: 3; }
.img-wrap { position: relative; overflow: hidden; background: var(--soft); border-radius: var(--radius); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .4s; }
a:hover .img-wrap img { transform: scale(1.06); }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* progress bar */
.progress { position: fixed; top: 0; right: 0; height: 3px; background: var(--red); z-index: 300; width: 0; transition: width .1s; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-2); color: #dfe4fb; font-size: 12.5px; }
[data-theme="dark"] .topbar { background: #070d26; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 10px; }
.topbar-info { display: flex; gap: 14px; align-items: center; }
.topbar-info .clock { font-weight: 800; color: #fff; direction: ltr; }
.socials { display: flex; gap: 6px; }
.socials a { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .2s; }
.socials a:hover { transform: translateY(-2px); }
.socials .icon { width: 13px; height: 13px; }
.s-facebook { background: #1877f2; } .s-x { background: #111; } .s-instagram { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.s-youtube { background: #ff0000; } .s-tiktok { background: #000; } .s-whatsapp { background: #25d366; } .s-telegram { background: #229ed9; }

/* ---------- Header ---------- */
.header { background: var(--bg); }
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 20px; }
.logo img { height: 92px; width: auto; }
.header-widgets { display: flex; gap: 10px; }
.hw { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 120px; background: var(--card); }
.hw .ic { font-size: 24px; line-height: 1; }
.hw small { display: block; font-size: 11px; color: var(--muted); }
.hw b { font-size: 15px; color: var(--navy); font-weight: 800; }
.hw-mobile-btn { display: none; }

/* ---------- Nav ---------- */
.nav { background: var(--red); position: sticky; top: 0; z-index: 50; color: #fff; }
.nav.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.nav .container { display: flex; align-items: center; gap: 6px; height: 48px; }
.nav-links { display: flex; align-items: center; flex: 1; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { white-space: nowrap; padding: 0 11px; line-height: 48px; font-weight: 700; font-size: 14.5px; position: relative; transition: background .2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(0,0,0,.18); }
.nav-btn { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.nav-btn:hover { background: rgba(0,0,0,.18); }
.nav-logo { display: none; }
.menu-toggle { display: none; }

/* search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(12,26,75,.95); z-index: 200; display: none; align-items: flex-start; justify-content: center; padding-top: 18vh; }
.search-overlay.open { display: flex; }
.search-overlay form { width: min(680px, 92%); display: flex; background: #fff; border-radius: 40px; overflow: hidden; }
.search-overlay input { flex: 1; border: 0; padding: 16px 24px; font: inherit; font-size: 17px; outline: none; min-width: 0; color: #111; }
.search-overlay button[type=submit] { background: var(--red); color: #fff; padding: 0 26px; font-weight: 700; }
.search-close { position: absolute; top: 20px; left: 20px; color: #fff; font-size: 36px; }

/* drawer */
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: 300px; max-width: 86vw; background: var(--bg); z-index: 150; transform: translateX(100%); transition: transform .3s; overflow-y: auto; }
.drawer.open { transform: none; }
.drawer-head { background: var(--red); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.drawer-head img { height: 52px; background: #fff; border-radius: 8px; padding: 2px 6px; }
.drawer-head button { color: #fff; font-size: 30px; }
.drawer nav a { display: flex; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
.drawer nav a::after { content: "‹"; color: var(--red); font-size: 20px; line-height: 1; }
.drawer .socials { padding: 18px 20px; flex-wrap: wrap; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 140; display: none; }
.backdrop.open { display: block; }

/* ---------- Ad ---------- */
.ad { margin: 16px auto; max-width: 728px; height: 90px; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(110deg, var(--navy-2), #1d3aa8 55%, var(--red)); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; }
.ad b { font-size: 24px; font-weight: 900; }
.ad span { background: #fff; color: var(--red); padding: 6px 18px; border-radius: 30px; font-weight: 800; font-size: 14px; }
.ad small { position: absolute; top: 4px; left: 8px; font-size: 10px; opacity: .8; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.overlay-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #111; height: 100%; }
.overlay-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.overlay-card:hover img { transform: scale(1.05); }
.overlay-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 45%, transparent 70%); }
.overlay-card .content { position: absolute; bottom: 0; right: 0; left: 0; padding: 18px; color: #fff; z-index: 2; }
.overlay-card h2, .overlay-card h3 { font-weight: 800; line-height: 1.5; }
.overlay-card h2 { font-size: 22px; } .overlay-card h3 { font-size: 15.5px; }
.badge { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 3px; margin-bottom: 6px; }

/* generic slider (fade/slide) */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #111; touch-action: pan-y; }
.slider-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4,.1,.2,1); }
.slider-track > * { flex: 0 0 100%; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(4px); z-index: 3; display: grid; place-items: center; font-size: 22px; opacity: 0; transition: .25s; }
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--red); }
.slider-arrow.prev { right: 12px; } .slider-arrow.next { left: 12px; }
.slider-dots { position: absolute; top: 14px; left: 14px; display: flex; gap: 5px; z-index: 3; }
.slider-dots button { width: 8px; height: 8px; border-radius: 5px; background: rgba(255,255,255,.55); transition: .3s; }
.slider-dots button.active { background: var(--red); width: 22px; }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 22px; margin-top: 18px; }
.row-item { display: flex; gap: 12px; align-items: flex-start; }
.row-item .img-wrap { width: 120px; aspect-ratio: 16/10; flex-shrink: 0; border-radius: 6px; }
.row-item h3 { font-size: 14.5px; font-weight: 700; line-height: 1.6; transition: color .2s; }
.row-item:hover h3 { color: var(--red); }

/* ---------- Widgets bar (weather/currency/prayer) ---------- */
.widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 18px; }
.widget-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--card); }
.widget-box h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.widget-box h4 span { font-size: 22px; }
.widget-box ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.widget-box li { background: var(--soft); border-radius: 8px; padding: 6px 4px; font-size: 12px; color: var(--muted); }
.widget-box li b { display: block; color: var(--text); font-size: 15px; font-weight: 800; }
.widget-box li.now { background: var(--red); color: #fff; } .widget-box li.now b { color: #fff; }
.prayer ul { grid-template-columns: repeat(5, 1fr); }

.latest { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.latest-title { background: var(--navy-2); color: #fff; padding: 12px 18px; font-weight: 900; font-size: 18px; display: flex; align-items: center; white-space: nowrap; gap: 4px; }
.latest-title span { color: #ff5a62; }
.latest-items { display: grid; grid-template-columns: repeat(4, 1fr); flex: 1; }
.latest-items a { padding: 10px 14px; font-size: 13px; font-weight: 600; border-inline-start: 1px solid var(--line); line-height: 1.6; }
.latest-items a:hover { color: var(--red); }
.latest-items time { display: block; color: var(--red); font-size: 11px; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.section.dark { background: #0c1a4b; color: #fff; border: 0; }
[data-theme="dark"] .section.dark { background: #060c24; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; color: var(--navy); }
.section.dark .section-title { color: #fff; }
.section-title::before { content: ""; width: 6px; height: 24px; background: var(--red); border-radius: 3px; box-shadow: -9px 0 0 rgba(225,19,29,.35); margin-left: 8px; }
.head-more { font-size: 13px; font-weight: 700; color: var(--red); }
.section.dark .head-more { color: #ff8a90; }
.more-btn { display: flex; width: fit-content; align-items: center; gap: 6px; border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 700; padding: 6px 18px; border-radius: 6px; margin-top: 20px; transition: .2s; }
.more-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.section.dark .more-btn { border-color: rgba(255,255,255,.3); color: #fff; }
.load-more { margin: 24px auto 0; background: var(--red); color: #fff; border: 0; padding: 10px 34px; font-size: 15px; }
.load-more:hover { background: var(--red-dark); }
.load-more[disabled] { opacity: .6; cursor: wait; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: block; }
.card .img-wrap { aspect-ratio: 16/10; }
.card h3 { font-size: 15px; font-weight: 800; line-height: 1.65; margin-top: 10px; transition: color .2s; }
.card:hover h3 { color: var(--red); }
.section.dark .card:hover h3 { color: #ffb3b6; }
.meta { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.section.dark .meta { color: #aab3d6; }
.meta .icon { width: 13px; height: 13px; }

/* carousel (scroll-snap) */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-btn { position: absolute; top: 28%; width: 38px; height: 38px; border-radius: 50%; background: var(--card); color: var(--navy); box-shadow: 0 4px 14px rgba(0,0,0,.15); display: grid; place-items: center; z-index: 3; font-size: 20px; transition: .2s; }
.carousel-btn:hover { background: var(--red); color: #fff; }
.carousel-btn.prev { right: -14px; } .carousel-btn.next { left: -14px; }
.section.dark .carousel-btn { background: #fff; color: #0c1a4b; }

/* featured + list */
.feat-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.feat-split .overlay-card { aspect-ratio: 16/11; height: auto; }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.side-list .row-item { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-list .row-item:last-child { border: 0; padding: 0; }
.side-list .row-item .img-wrap { width: 140px; }

/* numbered */
.numbered { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 30px; }
.num-item { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.num-item .n { font-size: 38px; font-weight: 900; color: var(--red); width: 34px; text-align: center; line-height: 1; flex-shrink: 0; }
.num-item .img-wrap { width: 90px; aspect-ratio: 16/11; flex-shrink: 0; border-radius: 6px; }
.num-item h3 { font-size: 14px; font-weight: 700; line-height: 1.6; }
.num-item:hover h3 { color: var(--red); }

/* coverflow */
.coverflow { position: relative; height: 420px; perspective: 1200px; overflow: hidden; touch-action: pan-y; }
.cf-item { position: absolute; top: 0; left: 50%; width: 300px; height: 400px; margin-left: -150px; border-radius: 12px; overflow: hidden; transition: transform .6s, opacity .6s, filter .6s; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.cf-item img { width: 100%; height: 100%; object-fit: cover; }
.cf-item .cf-cap { position: absolute; bottom: 0; right: 0; left: 0; padding: 14px; background: linear-gradient(to top, #0c1a4b 60%, transparent); color: #fff; font-weight: 800; font-size: 14.5px; line-height: 1.6; text-align: center; opacity: 0; transition: opacity .4s; padding-top: 40px; }
.cf-item.center .cf-cap { opacity: 1; }
.cf-nav { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.cf-nav button { font-size: 20px; color: var(--navy); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.cf-nav button:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* video */
.play { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 5px rgba(225,19,29,.35); z-index: 2; }
.play .icon { width: 18px; height: 18px; margin-right: -3px; }

/* opinion */
.op-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: .25s; background: var(--card); height: 100%; }
.op-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.07); }
.op-card h3 { font-size: 15.5px; font-weight: 800; line-height: 1.65; }
.op-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.op-author img { width: 50px; height: 56px; border-radius: 8px; object-fit: cover; border: 2px solid var(--red); background: var(--soft); }
.op-author b { font-size: 13.5px; color: var(--red); display: block; }

/* ---------- Footer ---------- */
.footer { background: #0c1a4b; color: #cfd5ee; margin-top: 30px; }
[data-theme="dark"] .footer { background: #060c24; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 18px; border-bottom: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; gap: 18px; }
.footer-top .logo img { height: 80px; background: #fff; border-radius: 10px; padding: 4px 10px; }
.footer-about { max-width: 420px; font-size: 13.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 16px 0; font-size: 14px; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 12.5px; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Breaking bar ---------- */
.breaking { position: fixed; bottom: 0; right: 0; left: 0; height: 44px; background: var(--card); border-top: 3px solid var(--red); z-index: 90; display: flex; align-items: center; box-shadow: 0 -4px 20px rgba(0,0,0,.1); }
.breaking-label { background: var(--red); color: #fff; height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 16px; font-weight: 900; white-space: nowrap; }
.breaking-label i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.breaking-track { flex: 1; overflow: hidden; position: relative; height: 100%; }
.breaking-move { position: absolute; top: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; animation: ticker 90s linear infinite; right: 0; }
.breaking-move:hover { animation-play-state: paused; }
.breaking-move a { padding: 0 26px; font-weight: 700; font-size: 14px; }
.breaking-move a::before { content: "■"; color: var(--red); font-size: 9px; margin-left: 10px; vertical-align: middle; }
@keyframes ticker { from { transform: translateX(-100vw); } to { transform: translateX(100%); } }
.breaking-close { width: 40px; color: var(--muted); font-size: 22px; }

.fab { position: fixed; left: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; z-index: 80; transition: .3s; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.to-top { bottom: 58px; background: var(--red); color: #fff; opacity: 0; pointer-events: none; }
.to-top.show { opacity: 1; pointer-events: auto; }

.toast { position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%) translateY(20px); background: #111; color: #fff; padding: 10px 22px; border-radius: 30px; font-size: 14px; font-weight: 700; z-index: 400; opacity: 0; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Inner pages ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0 6px; }
.breadcrumb a { color: var(--red); font-weight: 700; }
.page-title { font-size: 28px; font-weight: 900; color: var(--navy); display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 3px solid var(--red); margin-bottom: 24px; }
.subcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -10px 0 22px; }
.subcats a { white-space: nowrap; padding: 5px 14px; border-radius: 20px; background: var(--soft); font-size: 13px; font-weight: 700; }
.subcats a.active, .subcats a:hover { background: var(--red); color: #fff; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; padding-bottom: 30px; }
.cat-first { margin-bottom: 22px; }
.cat-first .overlay-card { aspect-ratio: 16/8; height: auto; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 20px; }
.sidebar .widget { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 22px; background: var(--card); }
.sidebar .sticky { position: sticky; top: 64px; }
.widget-title { font-weight: 900; font-size: 18px; color: var(--navy); border-bottom: 2px solid var(--red); padding-bottom: 8px; margin-bottom: 12px; }
.sidebar .num-item .img-wrap { width: 80px; }
.sidebar .num-item .n { font-size: 26px; width: 22px; }
.sidebar .num-item h3 { font-size: 13.5px; }
.sidebar .num-item:last-child { border: 0; }

.article h1 { font-size: 30px; font-weight: 900; line-height: 1.55; color: var(--navy); margin: 6px 0 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: 13px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.article-meta > span { display: flex; align-items: center; gap: 5px; }
.tools { margin-right: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tool-btn { height: 30px; min-width: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-weight: 800; color: var(--navy); display: inline-grid; place-items: center; font-size: 13px; }
.tool-btn:hover, .tool-btn.on { background: var(--red); color: #fff; border-color: var(--red); }
.tool-btn .icon { width: 15px; height: 15px; }
.article-img .img-wrap { aspect-ratio: 16/9; }
.caption { font-size: 12px; color: var(--muted); margin: 6px 0 20px; }
.lead { font-size: 19px; line-height: 2.05; font-weight: 600; color: var(--text); border-right: 4px solid var(--red); padding: 4px 16px 4px 0; margin-bottom: 22px; }
.source-box { background: var(--soft); border-radius: 12px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.source-box p { font-size: 14px; color: var(--text-2); }
.source-box a { background: var(--red); color: #fff; padding: 10px 22px; border-radius: 8px; font-weight: 800; white-space: nowrap; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 26px; }
.share-row a, .share-row button { display: inline-flex; align-items: center; gap: 6px; color: #fff; padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.share-row .icon { width: 15px; height: 15px; }
.share-native { background: var(--navy-2); }

.empty { padding: 60px 0; text-align: center; color: var(--muted); font-size: 17px; grid-column: 1/-1; }
.error-box { padding: 40px; text-align: center; color: var(--muted); grid-column: 1/-1; }
.error-box button { color: var(--red); font-weight: 800; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .carousel-track { grid-auto-columns: calc((100% - 40px) / 3); }
  .latest-items { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .numbered { grid-template-columns: repeat(2, 1fr); }
  .header-widgets .hw:nth-child(3) { display: none; }
}

/* ========== MOBILE ========== */
@media (max-width: 760px) {
  body { padding-bottom: 42px; }
  .container { padding: 0 12px; }
  .topbar .socials, .topbar-info .hijri { display: none; }
  .topbar .container { justify-content: center; height: 30px; font-size: 12px; }
  .header { display: none; }
  /* nav becomes main mobile bar: menu | logo | search */
  .nav { background: var(--bg); color: var(--text); border-bottom: 3px solid var(--red); }
  .nav .container { height: 64px; justify-content: space-between; }
  .nav-links { display: none; }
  .menu-toggle { display: grid; background: var(--red); color: #fff; }
  .nav-logo { display: block; }
  .nav-logo img { height: 54px; }
  .nav .nav-btn.search-btn { background: var(--navy-2); color: #fff; }
  .nav-btn:hover { background: var(--red-dark); }
  /* mobile category chips under bar */
  .chips { display: flex !important; }

  .ad { height: 64px; margin: 12px auto; padding: 0 16px; } .ad b { font-size: 16px; } .ad span { font-size: 12px; padding: 4px 12px; }
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 10px; }
  .hero-side .overlay-card { aspect-ratio: 1/1; height: auto; }
  .hero-side .overlay-card h3 { font-size: 13px; }
  .hero-side .overlay-card .content { padding: 10px; }
  .slider { aspect-ratio: 4/3.2; }
  .slider-arrow { opacity: 1; width: 34px; height: 34px; }
  .overlay-card h2 { font-size: 17.5px; }
  .mini-grid { grid-template-columns: 1fr; gap: 12px; }
  .mini-grid .row-item { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .row-item .img-wrap { width: 118px; }
  .row-item h3 { font-size: 14px; }

  .widgets { grid-template-columns: 1fr; gap: 10px; margin: 18px 0 14px; }
  .latest { flex-direction: column; }
  .latest-title { justify-content: center; padding: 8px; }
  .latest-items { grid-template-columns: 1fr; }
  .latest-items a { border-inline-start: 0; border-top: 1px solid var(--line); }

  .section { padding: 20px 0 18px; }
  .section-title { font-size: 19px; }
  /* section grids: first = big, rest = rows (like reference mobile) */
  .grid-4, .cat-grid { grid-template-columns: 1fr; gap: 0; }
  .grid-4 .card, .cat-grid .card { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .section.dark .grid-4 .card { border-color: rgba(255,255,255,.12); }
  .grid-4 .card .img-wrap, .cat-grid .card .img-wrap { width: 118px; flex-shrink: 0; border-radius: 6px; }
  .grid-4 .card h3, .cat-grid .card h3 { margin-top: 0; font-size: 14px; }
  .grid-4 .card:first-child, .cat-grid .card:first-child { display: block; padding-top: 0; }
  .grid-4 .card:first-child .img-wrap, .cat-grid .card:first-child .img-wrap { width: 100%; aspect-ratio: 16/9.5; border-radius: var(--radius); }
  .grid-4 .card:first-child h3, .cat-grid .card:first-child h3 { font-size: 17px; margin-top: 10px; }
  .grid-4 .card:last-child { border-bottom: 0; }
  .more-btn { width: 100%; justify-content: center; margin-top: 12px; background: var(--soft); border: 0; color: var(--navy); }
  .section.dark .more-btn { background: rgba(255,255,255,.1); color: #fff; }

  .carousel-track { grid-auto-columns: 74%; gap: 12px; }
  .carousel-btn { display: none; }
  .feat-split { grid-template-columns: 1fr; gap: 14px; }
  .feat-split .overlay-card { aspect-ratio: 16/10.5; }
  .feat-split .overlay-card h2 { font-size: 17px; }
  .side-list .row-item .img-wrap { width: 118px; }
  .numbered { grid-template-columns: 1fr; gap: 10px; }
  .coverflow { height: 360px; } .cf-item { width: 240px; height: 340px; margin-left: -120px; }

  .footer-top { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; gap: 6px 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .page-title { font-size: 22px; }
  .cat-first .overlay-card { aspect-ratio: 16/11; }
  .article h1 { font-size: 22px; }
  .lead { font-size: 16.5px; }
  .article-meta { font-size: 12px; gap: 10px; }
  .tools { margin-right: 0; width: 100%; }
  .breaking-label { padding: 0 10px; font-size: 14px; }
  .breaking-move a { font-size: 13px; }
}
.chips { display: none; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chips a { white-space: nowrap; padding: 4px 14px; border-radius: 20px; background: var(--soft); font-size: 13px; font-weight: 700; }
.chips a.active { background: var(--red); color: #fff; }

/* editor-in-chief beside logo */
.brand, .nav-brand { display: flex; align-items: center; gap: 14px; }
.chief { border-right: 3px solid var(--red); padding-right: 12px; line-height: 1.35; }
.chief small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.chief b { display: block; font-size: 18px; color: var(--navy); font-weight: 900; white-space: nowrap; }
.nav-brand { display: none; }
@media (max-width: 760px) {
  .nav-brand { display: flex; gap: 8px; }
  .nav-brand .chief { padding-right: 8px; border-right-width: 2px; }
  .nav-brand .chief small { font-size: 10px; }
  .nav-brand .chief b { font-size: 14px; }
}

.article-body p { font-size: inherit; line-height: 2.1; margin-bottom: 18px; }
.article-body { font-size: 19px; margin-bottom: 20px; }
@media (max-width: 760px) { .article-body { font-size: 17px; } }
