/* ==========================================================
   Lodhran Today - Stylesheet
   Colors yahan se change karein
   ========================================================== */
/* Nafees Regular font (fonts/ folder se) */
@font-face {
  font-family: "Nafees";
  src: url("../fonts/Nafees_Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Nafees", "Noto Nastaliq Urdu", Tahoma, Arial, sans-serif;
  --primary: #1f3fc8;
  --primary-dark: #14298a;
  --navy: #0e1b5c;
  --live: #e11d2e;
  --up: #0a8a3a;
  --text: #1c1f2a;
  --muted: #666d80;
  --line: #e3e6ee;
  --bg: #f4f5f9;
  --white: #fff;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cfd6f5; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.topbar-social { display: flex; gap: 16px; direction: ltr; }
.topbar-social a:hover { color: #fff; }

/* ---------- Header (logo + weather + stocks) ---------- */
.header { background: var(--white); }
.header-in { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.logo { flex: 0 0 auto; }
.logo img { height: 64px; width: auto; border-radius: 6px; }

.hw { flex: 0 1 580px; min-width: 0; margin-inline-start: auto; } /* RTL mein auto margin weather ko left le jata hai, beech khali rehta hai */
.wbox { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.wbox-title {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center; margin: 0;
  background: var(--navy); color: #fff; padding: 0 14px;
  font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1.6;
}
.wlist { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wlist::-webkit-scrollbar { display: none; }
.wi { flex: 1 0 auto; min-width: 76px; padding: 6px 10px; text-align: center; line-height: 1.5; }
.wi + .wi { border-right: 1px solid var(--line); }
.wi-name { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.wi-val { display: block; font-size: 15px; font-weight: 700; color: var(--text); font-family: Arial, sans-serif; direction: ltr; white-space: nowrap; }
.wi-ico { font-size: 14px; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; display: inline-block; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Primary nav (white bg, blue text) ---------- */
.nav { background: var(--white); position: sticky; top: 0; z-index: 50; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.nav .container { padding: 0; }
.nav-list { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { flex: 0 0 auto; }
.nav-list a {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  color: var(--primary); padding: 8px 16px; font-size: 17px; font-weight: 600; line-height: 1.8;
  font-family: var(--font);
  border-bottom: 3px solid transparent;
}
.nav-list a:hover { color: var(--navy); background: #f2f5ff; }
.nav-list a.active { border-bottom-color: var(--primary); }
.nav-list a.nav-live {
  background: var(--live); color: #fff; border-radius: 3px; border-bottom: 0;
  margin: 0 8px; padding: 2px 14px; font-family: Arial, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .5px; line-height: 1.8;
}
.nav-list a.nav-live:hover { background: #bf1523; color: #fff; }

/* ---------- Ticker ---------- */
.ticker { background: var(--white); border-bottom: 1px solid var(--line); }
.ticker-in { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.ticker-label { background: var(--live); color: #fff; padding: 0 14px; font-size: 14px; font-weight: 700; line-height: 28px; border-radius: 2px; flex: 0 0 auto; }
.ticker-track { overflow: hidden; flex: 1; direction: ltr; }
.ticker-move { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker-move span { direction: rtl; white-space: nowrap; font-size: 15px; padding: 0 22px; position: relative; }
.ticker-move span::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--live); border-radius: 50%; margin-left: 10px; vertical-align: middle; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }

.slider { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }
.slides { display: flex; height: 100%; direction: ltr; transition: transform .6s ease; }
.slide { flex: 0 0 100%; position: relative; height: 100%; direction: rtl; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,14,50,.92) 0%, rgba(8,14,50,.35) 45%, transparent 75%); }
.slide-cap { position: absolute; right: 0; left: 0; bottom: 0; z-index: 2; padding: 20px 24px 40px; color: #fff; }
.slide-cat { display: inline-block; background: var(--primary); font-size: 13px; padding: 0 12px; border-radius: 2px; line-height: 26px; margin-bottom: 8px; }
.slide-title { font-family: var(--font); font-size: 28px; line-height: 1.8; font-weight: 700; }
.slide-time { font-size: 13px; opacity: .8; }

.s-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 54px; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; }
.s-arrow:hover { background: var(--primary); }
.s-prev { right: 0; }
.s-next { left: 0; }
.s-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 7px; }
.s-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; }
.s-dots button.on { background: #fff; width: 26px; border-radius: 6px; }

.hero-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.side-title { font-family: var(--font); background: var(--navy); color: #fff; padding: 4px 16px; font-size: 18px; line-height: 1.9; }
.side-list { flex: 1; overflow: hidden; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; padding: 9px 16px; font-family: var(--font); font-size: 15px; line-height: 1.8; }
.side-list a:hover { color: var(--primary); background: #f7f8fd; }
.side-list small { display: block; color: var(--muted); font-size: 12px; font-family: var(--font); line-height: 1.4; }

/* ---------- Business: posts + stocks widget ---------- */
.biz { display: grid; grid-template-columns: 1fr 290px; gap: 16px; align-items: start; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stock-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stock-title { font-family: var(--font); background: var(--navy); color: #fff; font-size: 17px; padding: 2px 16px; line-height: 1.9; }
.sr { display: grid; grid-template-columns: 1fr auto 62px; gap: 8px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.sr:last-child { border-bottom: 0; }
.sr-name { font-size: 14.5px; }
.sr-val { font-family: Arial, sans-serif; font-weight: 700; font-size: 15px; direction: ltr; }
.sr-chg { font-family: Arial, sans-serif; font-size: 12px; direction: ltr; text-align: left; }
.sr-chg.up { color: var(--up); }
.sr-chg.down { color: var(--live); }
.stock-note { font-size: 11.5px; color: var(--muted); padding: 6px 14px 8px; border-top: 1px solid var(--line); line-height: 1.7; background: #fafbfd; }

/* ---------- Ads ---------- */
.ad { margin: 0 0 28px; text-align: center; }
.ad-top { margin-top: 20px; margin-bottom: 0; }
.ad-label { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; margin-bottom: 2px; }
.ad-wide .ad-box { max-width: 970px; margin: 0 auto; }
.ad-side { margin-bottom: 18px; }
.ad-side .ad-box { max-width: 300px; margin: 0 auto; }
.ad-box img { margin: 0 auto; max-width: 100%; height: auto; }
.ad-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 90px; background: #eceff7; border: 1px dashed #b9c1dc; color: #7a85a8; font-size: 15px; line-height: 1.6; }
.ad-ph small { font-family: Arial, sans-serif; font-size: 12px; direction: ltr; unicode-bidi: isolate; }
.ad-side .ad-ph { min-height: 250px; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin: 20px 0 30px; align-items: start; }
.layout-main, .layout-side { min-width: 0; }

.block { margin-bottom: 28px; }
.block-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--primary); margin-bottom: 14px; }
.block-head h2 { font-family: var(--font); background: var(--primary); color: #fff; font-size: 19px; padding: 2px 20px; line-height: 1.8; }
.block-head .more { font-size: 14px; color: var(--primary); }
.block-head .more:hover { text-decoration: underline; }

.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 3px 12px rgba(20,41,138,.14); }
.card > a { display: block; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #dfe4f2; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 8px 12px 10px; }
.card-title { font-family: var(--font); font-size: 15px; line-height: 1.8; font-weight: 600; }
.card:hover .card-title { color: var(--primary); }
.card-time { font-size: 12px; color: var(--muted); }

.video-card .card-img::after { content: "▶"; position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; line-height: 44px; text-align: center; background: rgba(225,29,46,.92); color: #fff; border-radius: 50%; font-size: 16px; }
.video-card .dur { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; padding: 0 8px; border-radius: 2px; line-height: 20px; z-index: 2; font-family: Arial, sans-serif; }

/* ---------- Sidebar ---------- */
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.widget-title { font-family: var(--font); background: var(--navy); color: #fff; font-size: 17px; padding: 2px 16px; line-height: 1.9; }
.popular { counter-reset: pop; }
.popular li { display: flex; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); counter-increment: pop; align-items: flex-start; }
.popular li:last-child { border-bottom: 0; }
.popular li::before { content: counter(pop); flex: 0 0 28px; height: 28px; line-height: 28px; text-align: center; background: var(--primary); color: #fff; border-radius: 50%; font-size: 14px; font-family: Arial, sans-serif; margin-top: 6px; }
.popular a { font-family: var(--font); font-size: 15px; line-height: 1.8; }
.popular a:hover { color: var(--primary); }

.mini-list li { padding: 6px 14px; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-title { font-family: var(--font); font-size: 15px; line-height: 1.8; display: block; }
.mini-title:hover { color: var(--primary); }
.mini-time { font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c5cdf0; margin-top: 10px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; padding-top: 34px; padding-bottom: 28px; }
.f-logo { height: 64px; width: auto; border-radius: 6px; margin-bottom: 10px; }
.f-col h4 { color: #fff; font-size: 17px; margin-bottom: 8px; font-family: var(--font); line-height: 1.8; }
.f-col li { font-size: 14px; line-height: 1.8; }
.f-col a:hover { color: #fff; }
.f-about p { font-size: 14px; line-height: 1.8; max-width: 340px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 12px 0; font-size: 13px; text-align: center; }

/* ---------- Live modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(5,10,35,.85); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 960px; background: #000; border-radius: var(--radius); overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; background: var(--live); color: #fff; padding: 6px 16px; font-weight: 700; }
.modal-head .dot { margin-left: 6px; }
.modal-close { background: transparent; border: 0; color: #fff; font-size: 30px; line-height: 1; padding: 0 6px; }
.player { aspect-ratio: 16 / 9; background: #000; }
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; }
.player .no-link { color: #fff; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }

.empty { color: var(--muted); padding: 10px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* header: logo upar, neeche weather aur stocks */
  .header-in { flex-direction: column; gap: 10px; }
  .hw { width: 100%; flex: 0 0 auto; margin-inline-start: 0; }
}

@media (max-width: 820px) {
  .biz { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .slide-title { font-size: 22px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar-social { display: none; }
  .topbar-in { justify-content: center; }
  .logo img { height: 52px; }
  .nav-list a { padding: 6px 13px; font-size: 15.5px; }
  .nav-list a.nav-live { font-size: 14px; padding: 0 12px; }
  .wi { min-width: 72px; padding: 5px 8px; }

  .container { padding: 0 12px; }
  .hero { margin-top: 12px; gap: 12px; }
  .slider { aspect-ratio: 4 / 3; border-radius: 0; margin: 0 -12px; }
  .slide-cap { padding: 14px 14px 32px; }
  .slide-title { font-size: 17px; line-height: 1.8; }
  .s-arrow { display: none; }

  .ad { margin-bottom: 20px; }
  .ad-ph { min-height: 100px; }
  .grid { gap: 10px; }
  .card-title { font-size: 13.5px; line-height: 1.8; }
  .card-body { padding: 6px 8px 8px; }
  .block-head h2 { font-size: 17px; padding: 0 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 18px; }
  .modal { padding: 0; }
  .modal-box { border-radius: 0; }
}
.stock-note:empty { display: none; }


/* ---------- Inner pages: post / category / team ---------- */
.page-main { padding-top: 18px; padding-bottom: 30px; min-height: 60vh; }
.article { background: #fff; border: 1px solid var(--line); padding: 22px; margin-bottom: 20px; }
.article h1 { font-size: 30px; line-height: 2; margin: 8px 0; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.article .slide-cat { display: inline-block; background: var(--primary); color: #fff; padding: 0 12px; font-size: 14px; }
.a-img img { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 16px; }
.a-body { font-size: 20px; line-height: 2.3; }
.a-body p { margin-bottom: 14px; } .a-body img { margin: 12px auto; height: auto; }
.a-body h2, .a-body h3 { margin: 16px 0 8px; } .a-body blockquote { border-inline-start: 4px solid var(--primary); padding: 4px 14px; color: var(--muted); margin: 12px 0; }
.a-body ul, .a-body ol { margin: 0 24px 14px; list-style: revert; } .a-body a { color: var(--primary); text-decoration: underline; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager .pg { border: 1px solid var(--line); background: #fff; padding: 0 12px; } .pager .pg.on { background: var(--primary); color: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.t-card { background: #fff; border: 1px solid var(--line); padding: 16px; text-align: center; }
.t-photo { width: 130px; height: 130px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; background: #dfe4f2; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-role { color: var(--primary); font-size: 15px; } .t-card p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.9; }
.t-ph { color: var(--muted); font-size: 13px; } .t-fb { color: var(--primary); font-size: 13px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } .article h1 { font-size: 23px; } .a-body { font-size: 18px; } }


/* ==========================================================
   PART 1 - shared header, home category sections, single post
   ========================================================== */

/* ---------- Header (har page par) ---------- */
.hw { display: none; }                        /* موسم box: mobile par band */
@media (min-width: 641px) { .hw { display: block; } }   /* desktop/tablet par har page ke header mein */
@media (max-width: 640px) { .ad-header { display: none !important; } }   /* phone par category menu ke neeche wala banner band */
input, select, textarea, button { font-family: inherit; }   /* form/button bhi Nafees font mein */
.nav-list a[data-key].active { color: var(--navy); background: #f2f5ff; }

@media (max-width: 900px) {
  .header-in { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
}
@media (max-width: 640px) {
  .topbar { display: none; }                  /* mobile par jagah bachane ke liye */
  .logo img { height: 46px; }
  /* primary menu: hamburger nahi, seedha top par horizontal scroll bar (RTL mein ہوم sab se pehle, right par) */
  .nav { box-shadow: 0 1px 4px rgba(0,0,0,.08); }
  .nav-list { padding: 0 4px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
  .nav-list a { padding: 7px 14px; min-height: 44px; }
  .nav-list a.nav-live { min-height: 0; margin: 0 6px; }
}

/* ---------- Home category sections ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sec-grid .card.lead { grid-column: span 2; grid-row: span 2; }
.sec-grid .card.lead > a { display: flex; flex-direction: column; height: 100%; }
.sec-grid .card.lead .card-img { flex: 1 1 auto; aspect-ratio: auto; min-height: 190px; }
.sec-grid .card.lead .card-body { padding: 10px 14px 12px; }
.sec-grid .card.lead .card-title { font-size: 21px; line-height: 1.9; }
.block-head .more { font-weight: 600; }
.biz .sec-grid { grid-template-columns: repeat(2, 1fr); }
.biz .sec-grid .card.lead { grid-row: auto; }
.biz .sec-grid .card.lead .card-img { flex: none; aspect-ratio: 16 / 9; }

@media (max-width: 820px) {
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid .card.lead { grid-row: auto; }
  .sec-grid .card.lead .card-img { flex: none; aspect-ratio: 16 / 9; }
  .sec-grid .card.lead .card-title { font-size: 18px; }
}
@media (max-width: 640px) {
  .sec-grid { gap: 10px; }
  .block { margin-bottom: 22px; }
}

/* ---------- Single post (Geo style: title, author/date, image, content, share, related, sidebar) ---------- */
.post-layout { margin: 0 0 10px; }
.article { padding: 22px 28px; }
.article .a-cat { display: inline-block; background: var(--primary); color: #fff; padding: 0 14px; font-size: 14px; line-height: 26px; border-radius: 2px; }
.article h1 { font-size: 32px; line-height: 2; margin: 6px 0 2px; font-weight: 700; }
.a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; color: var(--muted); font-size: 14px; padding: 6px 0; margin-bottom: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.a-author { color: var(--primary); font-weight: 600; }
.a-author + .a-date::before { content: "|"; margin-inline-end: 14px; color: #c9cedc; }
.a-img { margin: 0 0 16px; }
.a-img img { width: 100%; height: auto; max-height: none; margin: 0; }
.a-video { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: 16px; }
.a-video iframe, .a-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.post-banner:empty { display: none; }
.post-banner { margin: 0 0 16px; text-align: center; }
.article .a-body { margin-bottom: 6px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.share-label { font-weight: 700; color: var(--navy); margin-inline-end: 4px; }
.sh { display: inline-block; border: 0; color: #fff; font-family: var(--font); font-size: 14px; line-height: 1.6; padding: 5px 16px; border-radius: 3px; cursor: pointer; }
.sh:hover { opacity: .88; }
.sh-wa { background: #1fa855; } .sh-fb { background: #1877f2; } .sh-x { background: #111; } .sh-tg { background: #229ed9; } .sh-copy { background: #6b7285; }

@media (max-width: 900px) {
  .article { padding: 14px 14px 18px; }
  .article h1 { font-size: 23px; line-height: 1.95; }
  .a-img, .a-video { margin-inline: -14px; }
  .a-img img { border-radius: 0; }
  .sh { flex: 1 1 calc(50% - 8px); text-align: center; }
  .share-label { flex: 1 0 100%; }
}


/* ==========================================================
   PART 2 - sidebar widgets, header banner, post ads, mobile polish
   ========================================================== */
body { overflow-x: clip; }

/* ---------- Header banner ---------- */
.ad-header { margin: 12px 0 0; }
.ad-header:empty { display: none; }

/* ---------- Home: left sidebar fills the full height ---------- */
.home-layout .layout-side { align-self: stretch; }
.side-sticky { position: sticky; top: 64px; }
.widget { overflow: hidden; }
.widget-more { display: block; text-align: center; padding: 8px; font-size: 14px; color: var(--primary); border-top: 1px solid var(--line); background: #fafbfd; }
.widget-more:hover { text-decoration: underline; }

/* ---------- Social followers widget ---------- */
.so-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; padding: 10px; }
.so-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; line-height: 1.5; transition: box-shadow .2s, transform .2s; }
a.so-tile:hover { box-shadow: 0 3px 10px rgba(20,41,138,.16); transform: translateY(-1px); }
.so-ico { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; background: var(--primary); }
.so-ico svg { width: 21px; height: 21px; }
.so-facebook .so-ico { background: #1877f2; } .so-whatsapp .so-ico { background: #1fa855; } .so-youtube .so-ico { background: #e11d2e; } .so-twitter .so-ico { background: #111; }
.so-instagram .so-ico { background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #7b3fc4); }
.so-n { font-family: Arial, sans-serif; font-size: 18px; line-height: 1.3; color: var(--text); direction: ltr; }
.so-tile small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.so-lbl { font-size: 12.5px; color: var(--primary); line-height: 1.5; margin-top: 2px; }

/* ---------- Namaz timings widget ---------- */
.nz-city { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #f7f8fd; }
.nz-city label { font-size: 14px; color: var(--muted); flex: 0 0 auto; }
.nz-city select { flex: 1; min-width: 0; height: 36px; border: 1px solid #c9cedc; border-radius: 3px; background: #fff; font-family: var(--font); font-size: 15px; padding: 0 8px; color: var(--text); }
.nz-list li { display: flex; justify-content: space-between; align-items: center; padding: 5px 14px; border-bottom: 1px solid var(--line); line-height: 1.8; }
.nz-time { font-family: Arial, sans-serif; font-weight: 700; font-size: 15px; direction: ltr; }
.nz-row.sun { color: var(--muted); background: #fafbfd; } .nz-row.sun .nz-time { font-weight: 400; }
.nz-row.next { background: #eaf0ff; color: var(--primary-dark); box-shadow: inset -4px 0 0 var(--primary); }
.nz-msg { display: block !important; text-align: center; color: var(--muted); font-size: 14px; padding: 18px 14px !important; }
.nz-msg a { color: var(--primary); text-decoration: underline; }
.nz-next { font-size: 13.5px; padding: 6px 14px 8px; color: var(--primary-dark); background: #f7f8fd; line-height: 1.8; }
.nz-next:empty { display: none; }

/* ---------- Stocks widget (sidebar) ---------- */
.w-stocks .sr:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Most read (with thumbnails) ---------- */
.popular li { position: relative; align-items: center; gap: 10px; padding: 9px 12px; }
.popular li::before { position: absolute; top: 9px; right: 12px; z-index: 2; width: 22px; height: 22px; flex: none; line-height: 22px; font-size: 12px; margin: 0; border-radius: 0 0 0 6px; }
.pop-img { flex: 0 0 84px; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe4f2; border-radius: 3px; }
.pop-img img { width: 100%; height: 100%; object-fit: cover; }
.pop-t { font-size: 14.5px; line-height: 1.75; }

/* ---------- Latest videos ---------- */
.vid-list li { border-bottom: 1px solid var(--line); }
.vid-list li:last-child { border-bottom: 0; }
.vid-list a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; }
.vid-list a:hover .vid-t { color: var(--primary); }
.vid-img { position: relative; flex: 0 0 96px; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe4f2; border-radius: 3px; }
.vid-img img { width: 100%; height: 100%; object-fit: cover; }
.vid-img::after { content: "▶"; position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; line-height: 28px; text-align: center; background: rgba(225,29,46,.92); color: #fff; border-radius: 50%; font-size: 11px; }
.vid-t { font-size: 14.5px; line-height: 1.75; }

/* ---------- Category list ---------- */
.cat-list { display: grid; grid-template-columns: 1fr 1fr; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list li:nth-child(odd) { border-left: 1px solid var(--line); }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px; font-size: 15px; min-height: 40px; }
.cat-list a:hover { color: var(--primary); background: #f7f8fd; }
.cat-list small { font-family: Arial, sans-serif; font-size: 11px; background: #eef1fa; color: var(--primary-dark); border-radius: 10px; padding: 0 7px; line-height: 18px; }

/* ---------- Single post: in-article banner ---------- */
.a-body .ad { margin: 20px 0; clear: both; }
.ad-post .ad-box, .ad-post-bottom .ad-box { max-width: 728px; }
.ad-post-bottom { margin-top: 0; }
.ad-header .ad-ph, .ad-post .ad-ph, .ad-post-bottom .ad-ph { min-height: 90px; }

/* ---------- Tablet: sidebar widgets 2 columns ---------- */
@media (max-width: 1024px) {
  .layout-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
  .layout-side > .w-social, .layout-side > .side-sticky { grid-column: 1 / -1; }
  .side-sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
  .home-layout .layout-side { align-self: start; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .layout { margin: 14px 0 20px; gap: 14px; }
  .layout-side, .side-sticky { display: block; }
  .ad-header { margin-top: 8px; margin-bottom: 0; }
  .so-grid { grid-template-columns: repeat(3, 1fr); }
  .so-n { font-size: 17px; }
  .nz-list li { padding: 7px 14px; }
  .nz-city select { height: 42px; font-size: 16px; }
  .pop-img { flex-basis: 76px; }
  .vid-img { flex-basis: 88px; }
  .cat-list a { min-height: 44px; }
  .widget { margin-bottom: 14px; }
  .a-body .ad { margin: 16px -4px; }
  .sec-grid .card.lead .card-title { font-size: 17px; }
  .hero-side { order: 2; }
}
