/* ============================================================
   DAWN PAKISTAN — public design system (original identity)
   Editorial palette: deep teal-green + ink navy + amber accent.
   Logical properties throughout → one stylesheet, both directions.
   ============================================================ */
:root {
  --ink: #131c26;
  --ink-2: #3c4a59;
  --muted: #75828f;
  --paper: #ffffff;
  --wash: #f5f7f8;
  --line: #e4e9ec;
  --brand: #0e5a48;
  --brand-2: #0e7a5f;
  --navy: #123a5c;
  --amber: #f5b82e;
  --breaking: #c2311d;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body.site { margin: 0; max-width: 100%; overflow-x: hidden; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-2); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1rem; }
.muted { color: var(--muted); }

/* ---- Urdu typography ---- */
body.rtl { font-family: var(--urdu); font-size: 15px; }
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl .brand-title { font-family: var(--urdu); font-weight: 700; }
body.rtl .art-body, body.rtl .hero-sum, body.rtl .cg-sum { line-height: 2.15; font-size: 1.12rem; }
body.ltr h1, body.ltr h2, body.ltr h3 { font-family: var(--serif); }

/* ---- top strip ---- */
.topstrip { background: var(--ink); color: #cfd8e0; font-size: .78rem; font-family: var(--sans); }
.topstrip-in { display: flex; justify-content: space-between; align-items: center; padding-block: .3rem; }
.topstrip a { color: #cfd8e0; margin-inline-start: 1rem; }
.topstrip a:hover { color: #fff; }
.lang-pill { border: 1px solid #46535f; border-radius: 99px; padding: .1rem .7rem; }

/* ---- masthead ---- */
.masthead { border-block-end: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; position: relative; gap: 1.2rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; text-align: center; white-space: nowrap; }
.brand-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: var(--ink); }
body.ltr .brand-title { font-family: var(--serif); }
.brand-tag { font-size: .72rem; color: var(--muted); font-family: var(--sans); }
.mast-search { margin-inline-start: auto; display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--wash); }
.mast-search input { border: 0; background: none; padding: .45rem .9rem; font: inherit; font-size: .85rem; width: 190px; outline: none; }
.mast-search button { border: 0; background: none; padding-inline: .8rem; font-size: 1.05rem; cursor: pointer; color: var(--muted); }
.nav-burger { display: none; border: 0; background: none; font-size: 1.4rem; cursor: pointer; }

/* ---- main nav ---- */
.mainnav { border-block-end: 3px solid var(--brand); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.mainnav > .wrap > ul > li > a { display: block; padding: .6rem .85rem; font-weight: 600; font-size: .88rem; font-family: var(--sans); border-block-end: 3px solid transparent; margin-block-end: -3px; }
.mainnav > .wrap > ul > li > a:hover { border-block-end-color: var(--cat, var(--brand-2)); color: var(--ink); }
.nav-latest { color: var(--breaking) !important; }
.has-sub { position: relative; }
.subnav { position: absolute; inset-block-start: 100%; inset-inline-start: 0; background: #fff; border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(10,20,30,.12); min-width: 180px; display: none !important; flex-direction: column; z-index: 60; }
.has-sub:hover .subnav, .has-sub:focus-within .subnav { display: flex !important; }
.subnav a { padding: .5rem .9rem; font-size: .84rem; }
.subnav a:hover { background: var(--wash); }

/* ---- ticker ---- */
.ticker { background: #006b3c; color: #fff; overflow: hidden; }
.ticker-in { display: flex; align-items: center; gap: .8rem; padding-block: .35rem; }
.ticker-label { background: #fff; color: #006b3c; font-weight: 800; font-size: .78rem; padding: .15rem .6rem; border-radius: 5px; letter-spacing: .06em; text-transform: uppercase; flex-shrink: 0; font-family: var(--sans); }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-items { display: flex; gap: 2.5rem; white-space: nowrap; animation: tick 30s linear infinite; }
.ticker-items:hover { animation-play-state: paused; }
.ticker-items a { color: #fff; font-size: .88rem; }
body.rtl .ticker-items { line-height: 2.25; padding-block: .15rem; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.rtl .ticker-items { animation-name: tick-rtl; }
@keyframes tick-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---- sections ---- */
.home { padding-block: 1.4rem; }
.sec { margin-block-end: 2.2rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; border-block-end: 2px solid var(--ink); margin-block-end: 1rem; padding-block-end: .35rem; }
.sec-title { font-size: 1.25rem; margin: 0; }
.cat-title { border-inline-start: 5px solid var(--cat, var(--brand)); padding-inline-start: .6rem; }
.sec-more { font-size: .82rem; font-weight: 600; color: var(--brand-2); font-family: var(--sans); }

/* ---- hero ---- */
.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.4rem; }
.hero-img-link { display: block; aspect-ratio: 16/7.425; background: var(--wash); border-radius: 12px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; border-radius: 12px; object-fit: contain; background: var(--wash); }
.hero-title { font-size: 1.9rem; line-height: 1.25; margin: .5rem 0; overflow-wrap: anywhere; }
body.rtl .hero-title { font-size: 1.6rem; line-height: 1.9; }
.hero-sum { color: var(--ink-2); font-size: 1.02rem; margin: .3rem 0; }
.hero-side { display: flex; flex-direction: column; gap: .9rem; }
.hero-side-item { display: flex; gap: .8rem; padding-block-end: .9rem; border-block-end: 1px solid var(--line); }
.hero-side-item:last-child { border-block-end: 0; }
.hero-side-item h3 { font-size: .95rem; margin: .15rem 0; line-height: 1.4; }
body.rtl .hero-side-item h3 { line-height: 1.9; }
.hs-img { display: block; width: 108px; height: 63px; background: var(--wash); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.hs-img img, .hs-img .ph-img { width: 100%; height: 100%; object-fit: contain; background: var(--wash); border-radius: 8px; }

/* ---- kickers, meta ---- */
.kicker { display: inline-block; color: var(--cat, var(--brand)); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; font-family: var(--sans); }
.kicker.sm { font-size: .68rem; }
body.rtl .kicker { letter-spacing: 0; font-size: .8rem; }
.meta { color: var(--muted); font-size: .78rem; font-family: var(--sans); }
.sponsored-tag { color: var(--amber); font-weight: 700; }

/* ---- cards ---- */
.grid-cards { display: grid; gap: 1.2rem; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-img-link { display: block; aspect-ratio: 16/10; background: var(--wash); border-radius: 10px; overflow: hidden; }
.card-img-link img, .card .ph-img { width: 100%; height: 100%; object-fit: contain; background: var(--wash); border-radius: 10px; margin-block-end: .5rem; }
.card-title { font-size: .98rem; line-height: 1.4; margin: .25rem 0; overflow-wrap: anywhere; }
body.rtl .card-title { line-height: 1.9; font-size: 1.02rem; }
.ph-img { background: linear-gradient(135deg, var(--ph, #0e5a48) 0%, color-mix(in srgb, var(--ph, #0e5a48) 55%, #0c1c2e) 100%); border-radius: 10px; aspect-ratio: 3/2; }

/* ---- list items ---- */
.list-flow { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 1rem; padding-block: .85rem; border-block-end: 1px solid var(--line); }
.list-item:last-child { border-block-end: 0; }
.li-img { display: block; width: 150px; height: 83px; background: var(--wash); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.li-img img, .li-img .ph-img { width: 100%; height: 100%; object-fit: contain; background: var(--wash); border-radius: 8px; }
.li-body h3 { margin: .15rem 0; font-size: 1.02rem; line-height: 1.4; overflow-wrap: anywhere; }
body.rtl .li-body h3 { line-height: 1.9; }

/* ---- category grid variant A ---- */
.catgrid-a { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.4rem; }
.cg-lead img, .cg-lead .ph-img { border-radius: 10px; aspect-ratio: 16/7.425; object-fit: contain; background: var(--wash); width: 100%; }
.cg-lead-title { font-size: 1.35rem; line-height: 1.3; margin: .55rem 0 .3rem; }
body.rtl .cg-lead-title { line-height: 1.85; font-size: 1.25rem; }
.cg-sum { color: var(--ink-2); font-size: .92rem; margin: .2rem 0; }
.cg-rest .list-item { padding-block: .6rem; }
.cg-rest .li-img { width: 110px; height: 81px; }
.cg-rest .li-img img, .cg-rest .li-img .ph-img { width: 100%; height: 100%; }

/* ---- videos ---- */
.video-thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: #0c1622; margin-block-end: .5rem; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; background: rgba(6,12,20,.25); }
.play::after { content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgba(14,122,95,.9); z-index: -1; }
.sec-videos { background: var(--ink); margin-inline: calc((100% - 100vw) / 2); padding-inline: calc((100vw - 100%) / 2); padding-block: 1.6rem; }
.sec-videos .sec-head { border-color: #33404d; }
.sec-videos .sec-title, .sec-videos .card-title a { color: #fff; }
.sec-videos .meta { color: #8b98a5; }

/* ---- newsletter ---- */
.nl-box { background: linear-gradient(120deg, var(--brand) 0%, var(--navy) 100%); color: #fff; border-radius: 16px; padding: 1.8rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.nl-box h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.nl-box .muted { color: #c6d6d1; }
.nl-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.nl-form input[type=email] { border: 0; border-radius: 9px; padding: .65rem .9rem; font: inherit; font-size: .9rem; min-width: 230px; }
.nl-form button { border: 0; border-radius: 9px; background: var(--amber); color: #38290a; font: inherit; font-weight: 700; padding: .65rem 1.2rem; cursor: pointer; }
.nl-msg { font-size: .85rem; padding: .45rem .7rem; border-radius: 8px; }
.nl-msg.ok { background: #d9f0e6; color: #0a5c42; }
.nl-msg.err { background: #fbe4e0; color: #99271a; }

/* ---- ads ---- */
.sec-ad, .block { text-align: center; }
.ad-tag { display: block; font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-block-start: .3rem; font-family: var(--sans); }
.wa-cta { display: inline-flex; align-items: center; gap: .6rem; background: #0f6848; color: #fff; padding: .7rem 1.4rem; border-radius: 99px; font-weight: 600; }

/* ---- article page ---- */
.article-wrap { padding-block: 1.6rem; }
.article { max-width: 780px; margin-inline: auto; }
.crumbs { font-size: .8rem; color: var(--muted); margin-block-end: .8rem; font-family: var(--sans); }
.art-title { font-size: 2.1rem; line-height: 1.22; margin: .3rem 0 .6rem; overflow-wrap: anywhere; }
body.rtl .art-title { font-size: 1.75rem; line-height: 1.9; }
.art-standfirst { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 1rem; }
.art-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-block: 1px solid var(--line); padding-block: .6rem; margin-block-end: 1.2rem; flex-wrap: wrap; }
.byline-name { font-weight: 700; font-size: .92rem; font-family: var(--sans); display: block; }
.share { display: flex; gap: .45rem; }
.sh { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .9rem; }
.sh:hover { border-color: var(--brand-2); }
.art-hero { margin: 0 0 1.4rem; }
.art-hero img { border-radius: 12px; width: 100%; max-height: 75vh; object-fit: contain; background: var(--wash); }
.art-hero figcaption { font-size: .8rem; color: var(--muted); margin-block-start: .45rem; font-family: var(--sans); }
.credit { font-style: italic; }
.art-video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; margin-block-end: 1.2rem; }
.art-audio audio { width: 100%; margin-block-end: 1.2rem; }
.art-body { font-size: 1.08rem; line-height: 1.8; overflow-wrap: anywhere; }
body.rtl .art-body { font-size: 1.14rem; }
.art-body p { margin-block: 0 1.1em; }
.art-body h2, .art-body h3 { margin-block: 1.4em .5em; }
.art-body img { border-radius: 10px; margin-block: 1rem; max-height: 75vh; object-fit: contain; background: var(--wash); }
.art-body blockquote { border-inline-start: 4px solid var(--brand-2); margin-inline: 0; padding-inline-start: 1.1rem; color: var(--ink-2); font-style: italic; }
.art-body iframe { max-width: 100%; border: 0; border-radius: 10px; }
.art-body a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.art-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.4rem; }
.art-gallery figure { margin: 0; }
.art-gallery img { border-radius: 10px; width: 100%; aspect-ratio: 2/1; object-fit: contain; background: var(--wash); }
.art-gallery figcaption { font-size: .78rem; color: var(--muted); margin-block-start: .3rem; }
.art-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1.4rem; }
.tag { background: var(--wash); border: 1px solid var(--line); border-radius: 99px; padding: .25rem .8rem; font-size: .78rem; font-family: var(--sans); }
.author-box { background: var(--wash); border-radius: 12px; padding: 1rem 1.2rem; margin-block: 1.5rem; }
.author-box p { margin: .3rem 0 0; font-size: .88rem; }

/* ---- comments ---- */
.comments { display: flex; flex-direction: column; gap: .8rem; margin-block-end: 1.2rem; }
.comment { background: var(--wash); border-radius: 10px; padding: .8rem 1rem; }
.comment.reply { margin-inline-start: 2rem; }
.comment p { margin: .3rem 0 0; font-size: .92rem; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: .6rem .8rem; font: inherit; font-size: .9rem; margin-block-end: .6rem; }
.comment-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.btn { display: inline-block; background: var(--brand-2); color: #fff; border: 0; border-radius: 9px; padding: .6rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--brand); color: #fff; }

/* ---- category page ---- */
.cat-head { padding-block: 1.4rem .9rem; border-block-end: 3px solid var(--cat, var(--brand)); margin-block-end: 1.2rem; }
.cat-head h1 { margin: 0 0 .25rem; font-size: 1.8rem; }
.subcat-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-block-start: .7rem; }
.subcat-pills a { border: 1px solid var(--line); border-radius: 99px; padding: .3rem .95rem; font-size: .82rem; font-family: var(--sans); font-weight: 600; }
.subcat-pills a:hover { border-color: var(--brand-2); }
.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
.sidebar .side-box { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-block-end: 1.2rem; }
.ranked { margin: 0; padding-inline-start: 1.2rem; }
.ranked li { padding-block: .45rem; border-block-end: 1px solid var(--line); font-size: .92rem; line-height: 1.45; }
.ranked li::marker { color: var(--brand-2); font-weight: 800; }
.ranked li:last-child { border-block-end: 0; }

/* ---- misc pages ---- */
.site-pg { justify-content: center; margin-block: 1.6rem; display: flex; gap: .35rem; }
.site-pg a { border: 1px solid var(--line); border-radius: 8px; padding: .4rem .85rem; font-size: .88rem; font-family: var(--sans); }
.site-pg a.active { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.load-more { margin-block: 1.4rem; width: 100%; }
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-block: .8rem; font-family: var(--sans); }
.search-form input, .search-form select { border: 1px solid var(--line); border-radius: 9px; padding: .55rem .8rem; font: inherit; font-size: .9rem; }
.writer-head { display: flex; gap: 1.4rem; align-items: flex-start; padding-block: 1.8rem; border-block-end: 1px solid var(--line); margin-block-end: 1.4rem; }
.writer-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.ph-avatar { display: flex; align-items: center; justify-content: center; background: var(--brand-2); color: #fff; font-size: 2rem; font-weight: 700; }
.writer-bio { max-width: 640px; }
.social { display: flex; gap: .5rem; margin-block-start: .5rem; }
.social a { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; }
.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 1rem; overflow-x: auto; padding-block-end: .6rem; }
.gallery-strip img { border-radius: 10px; aspect-ratio: 2/1; object-fit: contain; background: var(--wash); }
.gallery-strip figure { margin: 0; }
.gallery-strip figcaption { font-size: .78rem; color: var(--muted); margin-block-start: .3rem; }

/* ---- footer ---- */
.footer { background: var(--ink); color: #b9c4ce; margin-block-start: 3rem; font-family: var(--sans); }
body.rtl .footer { font-family: var(--urdu); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-block: 2.2rem 1.4rem; }
.footer h3 { color: #fff; font-size: .95rem; margin: 0 0 .7rem; }
.footer .brand-title { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: block; padding-block: .25rem; font-size: .86rem; color: #b9c4ce; }
.footer-links a:hover { color: #fff; }
.footer .social a { border-color: #3a4653; color: #cfd8e0; }
.footer-bottom { border-block-start: 1px solid #2a3642; padding-block: 1rem; font-size: .8rem; color: #8b98a5; }
.footer .nl-form input[type=email] { min-width: 0; width: 100%; }
.footer .nl-form { flex-direction: column; }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .hero-grid, .catgrid-a { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cat-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .mast-search { display: none; }
  .nav-burger { display: block; margin-inline-start: auto; }
  .mainnav { position: static; display: none; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; }
  .subnav { position: static; display: flex !important; border: 0; box-shadow: none; padding-inline-start: 1rem; }
  .cols-4 { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .hero-title { font-size: 1.45rem; }
  .art-title { font-size: 1.55rem; }
  .li-img { width: 110px; height: 61px; }
  .art-gallery { grid-template-columns: 1fr; }
  .comment-form .grid-2, .grid-2 { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .nl-box { padding: 1.3rem; }
}
