/*
Theme Name: Chitral News v2
Theme URI: https://chitralnews.com
Author: Chitral News
Author URI: https://chitralnews.com
Description: Custom news theme for Chitral News — converted 1:1 from the site's static HTML/CSS design. Every visible page (home, category archives, single posts, Urdu/RTL category, Contact, Weather, Newspapers, Meritocracy, search) is driven by real WordPress data: posts, categories, menus, comments and the Customizer. No design overrides — this stylesheet is the same design CSS as the static site, byte for byte, with only this header block added on top (required by WordPress).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Unlicensed (custom, private theme)
Text Domain: chitral-news-v2
*/

/* =========================================================
   Chitral News — header / footer stylesheet
   Site width: 1100px (centered, not full width)
   ========================================================= */

:root{
  --site-width: 1100px;
  --red: #c60800;
  --red-dark: #b30f13;
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --page-bg: #ededed;
  --white: #ffffff;

  --font-ui: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-nav: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-logo: "Anton", "Arial Black", Impact, sans-serif;
  --font-quote: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-urdu: "Noto Nastaliq Urdu", serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--font-ui);
  font-size:15px;
  line-height:1.6;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

:focus-visible{ outline:2px solid #ffcc00; outline-offset:2px; }

/* ---- the 1100px shell ---- */
.site{
  width:100%;
  max-width:var(--site-width);
  margin:0 auto;
  background:var(--white);
  box-shadow:0 0 24px rgba(0,0,0,.08);
}

/* =========================================================
   MASTHEAD (red band)
   left: sections + search + contact | center: logo | right: date + weather
   ========================================================= */
.masthead{
  position:relative;
  background: #C60800;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  height:76px;
  padding:8px 20px;
}

.masthead-center{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
.masthead-right{ text-align:right; }
.right-row{ display:flex; align-items:center; gap:4px; }
.right-info{ text-align:right; }

/* header tools: sections toggle + search + contact */
.header-tools{
  position:relative;
  display:flex;
  align-items:center;
  gap: 13px;
}

.cat-strip-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 5px 10px;
  border:1.5px solid #fff;
  border-radius:4px;
  background:none;
  color:#fff;
  font-family:var(--font-nav);
  font-weight:700;
  font-size:14.5px;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
  margin-right:22px;
}
.cat-strip-toggle:hover{ background:#fff; color:var(--red); }
.cat-strip-toggle svg{ flex:none; }

.header-icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:auto;
  height:auto;
  border:0;
  border-radius:0;
  margin:0;
  padding:0;
  background:none;
  color:#fff;
  opacity:.95;
  font:inherit;
  cursor:pointer;
  transition:opacity .15s ease;
}
.header-icon-btn:hover{ opacity:1; }

.header-urdu{
  color: #ffea87;
  font-family:var(--font-urdu);
  font-size:28px;
  font-weight:600;
  line-height:1;
  opacity:.95;
  transition:opacity .15s ease;
  margin-right: 25px;
}
.header-urdu:hover{ opacity:1; }

.cat-strip-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  z-index:60;
  min-width:200px;
  list-style:none;
  margin:0;
  padding:6px 0;
  background:var(--white);
  border-radius:6px;
  box-shadow:0 12px 28px rgba(0,0,0,.2);
}
.cat-strip-menu[hidden]{ display:none; }
.cat-strip-menu li{ width:100%; }
.cat-strip-menu a{
  display:block;
  padding:9px 18px;
  font-family:var(--font-nav);
  font-weight:600;
  font-size:13.5px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink-soft);
  text-align:left;
  transition:background .15s ease, color .15s ease;
}
.cat-strip-menu a:hover{ background:#faf3f2; color:var(--red); }
.cat-strip-urdu{
  font-family:var(--font-urdu);
  font-size:16px !important;
  font-weight:600;
  text-transform:none;
  letter-spacing:0;
}

/* logo */
.brand{ display:block; text-align:center; }
.brand-logo{
  display:block;
  height:50px;
  width:auto;
  margin:0 auto;
}

/* date + weather */
.today-date{
  color:#fff;
  font-family:var(--font-nav);
  font-weight:700;
  font-size: 14px;
  line-height:1;
  letter-spacing:.5px;
}
.today-weather{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  margin-top:3px;
  color:#fff;
  font-size: 16.5px;
}
.wx-icon{width: 24px;height: 24px;flex:none;}
.wx-text b{ font-weight:700; }

/* =========================================================
   MAIN NAV
   ========================================================= */
.mainnav{
  background:#000;
  position:relative;
}

.nav-toggle{
  display:none;
  align-items:center;
  gap:10px;
  width:100%;
  background:none;
  border:0;
  color:#fff;
  font-family:var(--font-nav);
  font-weight:600;
  font-size:17px;
  letter-spacing:1px;
  padding:12px 18px;
  cursor:pointer;
}
.nav-toggle-bars{ display:inline-block; width:20px; }
.nav-toggle-bars span{
  display:block; height:2px; background:#fff; margin:4px 0;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.nav-menu{
  list-style:none;
  margin:0;
  padding:0 8px;
  display:flex;
  align-items:stretch;
  justify-content:center;
  flex-wrap:wrap;
}

.nav-menu > li{ display:flex; align-items:center; }
.nav-menu > li:not(:last-child)::after{
  content:"|";
  color:rgba(255,255,255,.3);
  font-size:13px;
  font-weight:400;
}

.nav-menu > li > a{
  display:flex;
  align-items:center;
  gap:5px;
  padding: 0px 15px;
  color:#fff;
  font-family:var(--font-nav);
  font-weight:600;
  font-size: 12.5px;
  letter-spacing:.9px;
  transition:color .15s ease;
}
.nav-menu > li > a:hover,
.nav-menu > li.is-active > a{ color:var(--red); background:none; }

.nav-home a{ padding:0 14px; }

/* =========================================================
   MAIN — category grid
   ========================================================= */
.site-main{ padding:10px; background:var(--white); }

.home .site-main {padding: 10px 0;}

.cat-section{display:flex;flex-direction:column;gap: 15px;}

.cat-row{display:grid;gap: 15px;}
.cat-row--2{ grid-template-columns:repeat(2, 1fr); }
.cat-row--3{ grid-template-columns:repeat(3, 1fr); }

.cat-card{
  display:flex;
  flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  border-top:4px solid var(--red);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  transition:box-shadow .2s ease, transform .2s ease;
}
.cat-card:hover{ box-shadow:0 10px 24px rgba(0,0,0,.12); transform:translateY(-3px); }

.cat-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 6px 12px;
  border-bottom:1px solid var(--line);
  background:#faf7f7;
}
.cat-card__title{
  position:relative;
  margin:0;
  padding-left:14px;
  font-family:var(--font-nav);
  font-weight: 700;
  font-size: 17px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink);
}
.cat-card__title::before{
  content:"";
  position:absolute;
  left:0; top:2px; bottom:2px;
  width:4px;
  background:var(--red);
  border-radius:2px;
}
.cat-card__more{
  flex:none;
  font-family:var(--font-nav);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--red);
}
.cat-card__more:hover{ text-decoration:underline; }

.cat-list{ list-style:none; margin:0; padding:4px 18px 12px; flex:1; }
.cat-item{ padding:7px 0; border-bottom:1px dashed var(--line); }
.cat-item:last-child{ border-bottom:0; }

.cat-list:not(.cat-list--thumbs) .cat-item{
  position:relative;
  padding-left:15px;
}
.cat-list:not(.cat-list--thumbs) .cat-item::before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  width:6px;
  height:6px;
  background:var(--red);
}

.cat-item__title{
  display:block;
  font-size:15px;
  font-weight:600;
  line-height:1.4;
  color:var(--ink-soft);
  transition:color .15s ease;
}
.cat-item:hover .cat-item__title{ color:var(--red); }

.cat-item__meta{
  display:block;
  margin-top: 0px;
  font-family:var(--font-nav);
  font-size:11.5px;
  letter-spacing:.3px;
  color:var(--muted);
}

/* featured (row 1) cards get a bolder lead story */
.cat-card--featured .cat-item:first-child{ padding-top:2px; }
.cat-card--featured .cat-item:first-child .cat-item__title{ font-size:18px; }

/* featured lists with a left-side thumbnail */
.cat-list--thumbs .cat-item{
  display:flex;
  align-items:center;
  gap:12px;
}
.cat-item__thumb{
  flex:none;
  width:72px;
  height:54px;
  border-radius:6px;
  object-fit:cover;
  background:linear-gradient(135deg,#e9e9e9,#d6d6d6);
}
.cat-list--thumbs .cat-item__body{
  display:flex;
  flex-direction:column;
  gap: 0px;
  flex:1;
  min-width:0;
}
.cat-list--thumbs .cat-item__meta{ margin-top:0; }

@media (max-width:900px){
  .cat-row--3{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:600px){
  .cat-row--2, .cat-row--3{ grid-template-columns:1fr; gap: 4px; }
  .cat-list {padding-bottom: 0;}
  .cat-section {
    gap: 0;
  }
}

/* =========================================================
   NEWS DETAIL PAGE
   ========================================================= */
.post-page{ max-width:100%; margin:0; }

.post-category-tag{
  display:inline-block;
  background:var(--red);
  color:#fff;
  font-family:var(--font-nav);
  font-size:13px;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
  padding:5px 13px;
  border-radius:4px;
  margin-bottom:5px;
}

.post-title{
  margin:0 0 5px;
  font-size:32px;
  font-weight:700;
  line-height:1.3;
  color:var(--ink);
}

.post-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  align-items:center;
  padding-bottom:5px;
  margin-bottom:6px;
  border-bottom:1px solid var(--line);
  font-family:var(--font-nav);
  font-size:12px;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:var(--muted);
}
.post-meta b{ color:var(--ink-soft); }

.post-image{
  float:left;
  width:320px;
  max-width:45%;
  aspect-ratio:4/3;
  margin:0 12px 5px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:linear-gradient(135deg,#e9e9e9,#d6d6d6);
  color:var(--muted);
  font-family:var(--font-nav);
  font-size:14px;
  letter-spacing:.5px;
  text-transform:uppercase;
  overflow:hidden;
}
.post-image img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Per-post alignment + size control (Featured Image Display meta box) */
.post-image--align-right{ float:right; margin:0 0 5px 12px; }

.post-image--small{ width:200px; max-width:40%; }
.post-image--large{ width:480px; max-width:55%; }
.post-image--full{ float:none; width:100%; max-width:100%; aspect-ratio:16/9; margin:0 0 16px; }

.post-desc{ font-size:18px; line-height:1.85; color:var(--ink-soft); }
.post-desc::after{ content:""; display:block; clear:both; }
.post-desc p{ margin:0 0 5px; }

.post-share{
  clear:both;
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0;
  padding:6px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.post-share > span{
  font-family:var(--font-nav);
  font-weight:700;
  font-size:13px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink);
}
.share-btn{
  width:48px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:5px;
  background:var(--page-bg);
  color:var(--ink-soft);
  transition:background .15s ease, color .15s ease;
}
.share-btn svg{ width:20px; height:20px; }
.share-btn:hover{ background:var(--red); color:#fff; }

.post-subhead{
  margin:10px 0 5px;
  font-size:21px;
  font-weight:700;
  color:var(--ink);
}

.adv-list{ list-style:none; margin:0 0 8px; padding:0; counter-reset:none; }
.adv-item{
  display:flex;
  gap:16px;
  padding:5px 0;
  border-bottom:1px dashed var(--line);
  font-size: 18px;
  line-height: 1.85;
}
.adv-item:last-child{ border-bottom:0; }
.adv-num{
  flex:none;
  width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:none;
  color:var(--ink);
  font-family:var(--font-nav);
  font-weight:700;
  font-size:15px;
}
.adv-body h3{ margin:0 0 4px; font-size:16px; color:var(--ink); }
.adv-body p{ margin:0; font-family:inherit; font-size:18px; line-height:1.6; color:var(--ink-soft); }
.adv-body p + p{ margin-top:3px; }

.callout-box{
  margin:0 0 8px;
  padding:10px 12px;
  border-radius:8px;
  border-left:4px solid var(--red);
  background:#faf7f7;
}
.callout-box--event{ border-left-color:var(--ink); background:#f6f6f6; }
.callout-box__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:3px;
}
.callout-box__label{
  font-family:var(--font-nav);
  font-weight:700;
  font-size:12px;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:var(--red);
}
.callout-box--event .callout-box__label{ color:var(--ink-soft); }
.callout-box__date{
  font-family:var(--font-nav);
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
}
.callout-box h3{ margin:0 0 3px; font-family:var(--font-quote); font-style:italic; font-size:19px; color:var(--ink); }
.callout-box p{ margin:0 0 4px; font-family:inherit; font-size:18px; line-height:1.7; color:var(--ink-soft); }
.callout-box p:last-child{ margin-bottom:0; }

.comments__head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}
.comments__head h2{ margin-bottom:0; }

.sort-toggle{ display:flex; gap:6px; }
.sort-btn{
  padding:7px 16px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--white);
  font-family:var(--font-nav);
  font-size:13px;
  font-weight:600;
  letter-spacing:.3px;
  color:var(--ink-soft);
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.sort-btn:hover{ border-color:var(--red); color:var(--red); }
.sort-btn.is-active{ background:var(--red); border-color:var(--red); color:#fff; }

.comments h2{
  display:inline-block;
  margin:0 0 6px;
  padding-bottom:8px;
  border-bottom:3px solid var(--red);
  font-family:var(--font-nav);
  font-size:22px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink);
}

.comment-list{ list-style:none; margin:0 0 0px; padding:0; }
.comment-item{
  display:flex;
  gap:14px;
  padding:6px 0;
  border-bottom:1px dashed var(--line);
}
.comment-item:last-child{ border-bottom:0; }

.comment-body{ flex:1; min-width:0; }
.comment-head{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:baseline;
  margin-bottom:2px;
}
.comment-name{ font-weight:700; font-size:14.5px; color:var(--ink); }
.comment-date{
  font-family:var(--font-nav);
  font-size:12px;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:var(--muted);
}
.comment-body p{ margin:0; font-size:17.5px; line-height:1.55; color:var(--ink-soft); }
.comment-body p + p{ margin-top:3px; }
.comment-poem{ font-family:inherit; font-style:italic; }

/* Meritocracy page only: match comment text to the same size/family as
   the article body (.post-desc/.adv-body/.callout-box) above it — the
   sitewide comment size on every other post's comments stays as-is. */
.meritocracy-page .comment-body p{ font-family:inherit; font-size:18px; line-height:1.85; }

.video-section{ clear:both; margin:0 0 6px; }
.video-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:20px;
}
.video-embed{
  position:relative;
  aspect-ratio:16/9;
  border-radius:8px;
  overflow:hidden;
  background:#000;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
}
.video-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.video-embed__label{
  position:absolute;
  top:10px; left:10px;
  padding:4px 10px;
  border-radius:4px;
  background:var(--red);
  color:#fff;
  font-family:var(--font-nav);
  font-weight:700;
  font-size:11px;
  letter-spacing:.4px;
  text-transform:uppercase;
  pointer-events:none;
}

@media (max-width:700px){
  .video-grid{ grid-template-columns:1fr; }
}

.comment-form{
  background:#faf7f7;
  border:1px solid var(--line);
  border-top:4px solid var(--red);
  border-radius:8px;
  padding:12px;
}
.comment-form h3{
  margin:0 0 6px;
  font-family:var(--font-nav);
  font-size:18px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink);
}
.comment-form .form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-bottom:6px;
}
.comment-form input,
.comment-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:5px;
  padding:10px 12px;
  font-family:var(--font-ui);
  font-size:14px;
  color:var(--ink);
  background:#fff;
}
.comment-form textarea{ min-height:110px; resize:vertical; margin-bottom:6px; }
.comment-form input:focus,
.comment-form textarea:focus{ outline:none; border-color:var(--red); }
.comment-form button{
  background:var(--red);
  color:#fff;
  border:0;
  border-radius:5px;
  padding:11px 28px;
  font-family:var(--font-nav);
  font-weight:700;
  font-size:14px;
  letter-spacing:.5px;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .15s ease;
}
.comment-form button:hover{ background:var(--red-dark); }

@media (max-width:600px){
  .post-title{ font-size:24px; }
  .post-image{ float:none; width:100%; max-width:100%; }
  .comment-form .form-row{ grid-template-columns:1fr; }
}

/* =========================================================
   CATEGORY LISTING PAGE
   ========================================================= */
.cat-page{ max-width:100%; margin:0; }

.cat-page__head{ margin-bottom:4px; }
.cat-page__title{
  position:relative;
  margin:0;
  padding-left:12px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
  font-family:var(--font-nav);
  font-weight:700;
  font-size:28px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink);
}
.cat-page__title::before{
  content:"";
  position:absolute;
  left:0; top:2px;
  width:5px; height:26px;
  background:var(--red);
  border-radius:2px;
}

.cat-page-list{ list-style:none; margin:0 0 16px; padding:0; }

.cat-page-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:6px 0;
  border-bottom:1px dashed var(--line);
}
.cat-page-item:last-child{ border-bottom:0; }

.cat-page-dot{
  flex:none;
  width:8px; height:8px;
  margin-top:7px;
  border-radius:0;
  background:var(--red);
}

.cat-page-item__body{ display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; }

.cat-page-item__title{
  font-size:17px;
  font-weight:600;
  line-height:1.4;
  color:var(--ink-soft);
  transition:color .15s ease;
}
.cat-page-item:hover .cat-page-item__title{ color:var(--red); }

.cat-page-item__date{
  position:relative;
  padding-left:12px;
  font-family:var(--font-nav);
  font-size:12.5px;
  font-weight:500;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
}
.cat-page-item__date::before{
  content:"";
  position:absolute;
  left:0; top:50%;
  width:4px; height:4px;
  border-radius:50%;
  background:var(--muted);
  transform:translateY(-50%);
}

/* pagination */
.pagination{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding-top:4px;
}
.page-num,
.page-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:6px;
  font-family:var(--font-nav);
  font-size:14px;
  font-weight:600;
  color:var(--ink-soft);
  background:var(--white);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.page-num:hover,
.page-btn:hover{ border-color:var(--red); color:var(--red); }
.page-num.is-active{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
}
.page-btn.is-disabled{
  opacity:.45;
  pointer-events:none;
}
.page-ellipsis{
  color:var(--muted);
  font-family:var(--font-nav);
  font-size:14px;
  padding:0 2px;
}

@media (max-width:600px){
  .cat-page__title{ font-size:22px; }
  .cat-page-item__title{ font-size:15.5px; }
}

/* ---- Urdu (RTL) listing page ---- */
.urdu-page{ font-family:var(--font-urdu); margin:0 0 0 auto; }
.urdu-page .cat-page__title{
  padding-left:0;
  padding-right:12px;
  font-family:var(--font-urdu);
}
.urdu-page .cat-page__title::before{ left:auto; right:0; }
.urdu-page .cat-page-item__title{font-family:var(--font-urdu);font-size: 15.5px;}
.urdu-page .cat-page-item__date{
  padding-left:0;
  padding-right:12px;
}
.urdu-page .cat-page-item__date::before{ left:auto; right:0; }
.urdu-page .cat-page-list{ margin-bottom:22px; }
.urdu-page .cat-page-item{gap: 14px;padding: 8px 0;}
.urdu-page .cat-page-item__body{ gap:14px; }

/* =========================================================
   NEWSPAPERS DIRECTORY PAGE
   ========================================================= */
.np-page__head{
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom:1px solid var(--line);
}
.np-page__title{
  position:relative;
  margin: 0;
  padding-left:16px;
  font-family:var(--font-nav);
  font-weight:700;
  font-size:30px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink);
}
.np-page__title::before{
  content:"";
  position:absolute;
  left:0; top:2px;
  width:5px; height:28px;
  background:var(--red);
  border-radius:2px;
}
.np-page__sub{ margin:0 0 0 16px; color:var(--muted); font-size:14.5px; }

.newspapers-page-main,
.home-page-main{ background:#f4f4f4; }

.np-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
  align-items:start;
}

.np-group{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px 10px 6px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  transition:box-shadow .2s ease, transform .2s ease;
}
.np-group:hover{ box-shadow:0 10px 24px rgba(0,0,0,.09); transform:translateY(-2px); }

.np-tag{ margin-left:8px; }

.np-tag{
  display:inline-block;
  margin-bottom:6px;
  padding:4px 11px;
  border-radius:4px;
  background:var(--tag-color, var(--red));
  font-family:var(--font-nav);
  font-weight:700;
  font-size:12px;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:#fff;
}
.np-group--pk{ --tag-color:#1f8f4e; }
.np-group--in{ --tag-color:#e0752a; }
.np-group--us{ --tag-color:#2f6fb0; }
.np-group--misc{ --tag-color:#7a7a7a; }

.np-list{ list-style:none; margin:0; padding:0; }
.np-list a{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:3px 10px 3px 14px;
  border-radius:5px;
  font-size:14.5px;
  font-weight:500;
  color:var(--ink-soft);
  transition:background .15s ease, color .15s ease;
}
.np-list a::before{
  content:"";
  position:absolute;
  left:4px; top:50%;
  width:4px; height:4px;
  border-radius:50%;
  background:var(--tag-color, var(--red));
  opacity:.55;
  transform:translateY(-50%) scale(1);
  transition:opacity .15s ease, transform .15s ease;
}
.np-list a::after{
  content:"\2197";
  font-size:12px;
  color:var(--red);
  opacity:0;
  transform:translate(-3px,3px);
  transition:opacity .15s ease, transform .15s ease;
}
.np-list a:hover{ color:var(--red); background:#faf3f2; }
.np-list a:hover::before{ opacity:1; transform:translateY(-50%) scale(1.3); }
.np-list a:hover::after{ opacity:1; transform:translate(0,0); }

@media (max-width:1024px){
  .np-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:600px){
  .np-grid{ grid-template-columns:1fr; }
  .np-page__title{ font-size:24px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background:#fff;
  border-top:1px solid var(--line);
}

.footer-quote{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:12px;
  padding:16px 20px 14px;
  border-bottom:1px solid #f0dcdc;
}
.footer-quote p{
  margin:0;
  font-family:var(--font-quote);
  font-style:italic;
  font-size:16px;
  color: var(--ink);
  text-align:center;
  max-width:560px;
}
.q-author{color: #767676;font-style:italic;white-space:nowrap;font-size: 13px;}
.q-mark{
  color: #767676;
  font-size: 16px;
  line-height:1;
  flex:none;
}
.q-close{ align-self:flex-end; }

.footer-main{
  display:grid;
  grid-template-columns:1.35fr 1fr 1fr 1.15fr 1.35fr;
  gap:26px;
  padding:26px 20px 28px;
}

.foot-col h3{
  margin:0 0 12px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.6px;
  color:var(--ink);
}
.foot-col ul{ list-style:none; margin:0; padding:0; }
.foot-col li + li{ margin-top:3px; }
.foot-col a{ font-size:14px; color:var(--ink-soft); }
.foot-col a:hover{ color:var(--red); }

.foot-col + .foot-col{
  border-left:1px solid var(--line);
  padding-left:26px;
}

.foot-logo{
  font-family:var(--font-logo);
  font-size:26px;
  color:#3c3c3c;
  letter-spacing:.4px;
  line-height:1;
}
.foot-logo-sub{
  font-family:var(--font-nav);
  font-weight:600;
  font-size:12px;
  letter-spacing:1.1px;
  color:#6b6b6b;
  margin-top:5px;
}
.foot-brand p{
  margin:12px 0 14px;
  font-size:14px;
  color:var(--ink-soft);
  max-width:34ch;
}
.foot-social{ display:flex; gap:15px; }
.foot-social a{ color:var(--ink); display:inline-flex; }
.foot-social a:hover{ color:var(--red); }

.foot-search p{
  margin:0 0 12px;
  font-size:14px;
  color:var(--ink-soft);
}
.footer-search-form{ display:flex; }
.footer-search-form input{
  flex:1 1 auto;
  min-width:0;
  border:1px solid #d6d6d6;
  border-right:0;
  padding:9px 11px;
  font:inherit;
  font-size:13.5px;
  color:var(--ink);
}
.footer-search-form input:focus{ outline:none; border-color:var(--red); }
.footer-search-form button{
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  background:var(--red);
  color:#fff;
  border:0;
  cursor:pointer;
  transition:background .15s ease;
}
.footer-search-form button:hover{ background:var(--red-dark); }

.footer-bottom{
  border-top:1px solid var(--line);
  padding:12px 20px;
  text-align:center;
}
.footer-bottom p{
  margin:0;
  font-size:13.5px;
  color:var(--ink-soft);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* below the 1100px shell */
@media (max-width:1140px){
  .site{ box-shadow:none; }
}

@media (max-width:1024px){
  .brand-logo{ height:36px; }
  .nav-menu > li > a{ padding:0 11px; font-size:16px; }
  .footer-main{ grid-template-columns:1.3fr 1fr 1fr 1.1fr; }
  .foot-search{
    grid-column:1 / -1;
    border-left:0;
    padding-left:0;
    border-top:1px solid var(--line);
    padding-top:20px;
  }
  .footer-search-form{ max-width:420px; }
}

@media (max-width:900px){
  .brand-logo{ height:34px; }

  /* nav collapses */
  .nav-toggle{ display:flex; }
  .nav-menu{
    display:none;
    flex-direction:column;
    padding:0;
    border-top:1px solid rgba(255,255,255,.15);
  }
  .nav-menu.is-open{ display:flex; }
  .nav-menu > li{ width:100%; }
  .nav-menu > li::after{ display:none; }
  .nav-menu > li > a{
    height:auto;
    padding:11px 18px;
    border-bottom:1px solid rgba(255,255,255,.1);
  }
}

@media (max-width:760px){
  .footer-main{
    grid-template-columns:1fr 1fr;
    gap:22px;
    padding:24px 16px;
  }
  .foot-col + .foot-col{ border-left:0; padding-left:0; }
  .foot-brand{ grid-column:1 / -1; }
  .foot-search{ border-top:0; padding-top:0; }

  .footer-quote{ padding:14px 16px; }
  .footer-quote p{ font-size:15px; }
}

.mobile-search-btn{ display:none; }

.mobile-nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  flex:none;
  width:auto;
  height:auto;
  border:0;
  margin:0;
  padding:0;
  background:none;
  color:#fff;
  cursor:pointer;
}

.nav-menu > li.nav-menu-extra{ display:none; }
.nav-menu.is-open > li.nav-menu-extra{ display:flex; }
.nav-menu-extra__urdu{
  font-family:var(--font-urdu);
  font-size:18px !important;
  font-weight:600;
  text-transform:none;
  letter-spacing:0;
}

@media (max-width:560px){
  .masthead{
    height:auto;
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:8px;
    padding:10px 12px;
  }
  .masthead-left{ flex:none; }
  .masthead-right{ margin-left:auto; }
  .right-info{ display:none; }
  .header-urdu{ margin-right:0; font-size:19px; }

  .brand-logo{ height:30px; }

  .header-tools{ gap:8px; }
  .mobile-nav-toggle{ display:inline-flex; }
  .mobile-nav-toggle svg{ width:20px; height:20px; }
  .header-tools button.header-icon-btn{ display:none; }
  .header-tools a.header-icon-btn svg{ width:21px; height:21px; }
  .mobile-search-btn{ display:inline-flex; }
  .right-row{ gap:8px; }
  .cat-strip-toggle,
  .cat-strip-menu{ display:none !important; }

  .nav-toggle{ display:none; }

  .footer-main{ grid-template-columns:1fr; }
  .foot-brand p{ max-width:none; }
  .site-main{ padding:5px 10px; }
}

/* =========================================================
   ABOUT CHITRAL PAGE
   ========================================================= */
.about-hero{
  float:none;
  width:100%;
  max-width:100%;
  aspect-ratio:21/9;
  margin:0 0 10px;
}

.about-toc{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.about-toc a{
  padding:7px 16px;
  border:1px solid var(--line);
  border-radius:20px;
  font-family:var(--font-nav);
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.3px;
  color:var(--ink-soft);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.about-toc a:hover{ background:var(--red); border-color:var(--red); color:#fff; }

.about-h3{
  margin:14px 0 6px;
  font-size:18px;
  font-weight:700;
  color:var(--ink);
}

.about-figure{
  clear:both;
  margin:0 0 10px;
}
.about-figure img{
  width:100%;
  border-radius:8px;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
}
.about-figure figcaption{
  margin-top:4px;
  font-size:13px;
  font-style:italic;
  color:var(--muted);
  text-align:center;
}

.epoch-list{ margin:0 0 6px; }
.epoch{
  border:1px solid var(--line);
  border-radius:8px;
  margin-bottom:6px;
  overflow:hidden;
}
.epoch summary{
  padding:10px 14px;
  background:#faf7f7;
  font-family:var(--font-nav);
  font-weight:700;
  font-size:16px;
  letter-spacing:.3px;
  color:var(--ink);
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.epoch summary::-webkit-details-marker{ display:none; }
.epoch summary::after{
  content:"+";
  font-size:20px;
  font-weight:400;
  color:var(--red);
  transition:transform .2s ease;
}
.epoch[open] summary::after{ content:"\2212"; }
.epoch-body{
  padding:10px 14px 12px;
  border-top:1px solid var(--line);
}
.epoch-body p{ margin:0 0 6px; font-size:14.5px; line-height:1.7; color:var(--ink-soft); }
.epoch-body p:last-child{ margin-bottom:0; }
.epoch-body em{ color:var(--muted); font-style:italic; }

.stat-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:10px;
  margin:0 0 6px;
}
.stat-tile{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-top:3px solid var(--red);
  border-radius:8px;
  background:#faf7f7;
  text-align:center;
}
.stat-num{ font-family:var(--font-nav); font-weight:700; font-size:22px; color:var(--ink); }
.stat-label{ font-size:12px; letter-spacing:.3px; text-transform:uppercase; color:var(--muted); }

.table-scroll{
  overflow-x:auto;
  margin:0 0 10px;
  border:1px solid var(--line);
  border-radius:8px;
}
.about-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  white-space:nowrap;
}
.about-table th{
  padding:7px 12px;
  background:var(--red);
  color:#fff;
  font-family:var(--font-nav);
  font-weight:700;
  font-size:12.5px;
  letter-spacing:.4px;
  text-transform:uppercase;
  text-align:left;
}
.about-table td{
  padding:6px 12px;
  border-top:1px solid var(--line);
  color:var(--ink-soft);
}
.about-table tr:nth-child(even) td{ background:#faf7f7; }

.tips-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.tips-col{
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:8px;
}
.tips-col--do{ border-top:4px solid #1f8f4e; }
.tips-col--dont{ border-top:4px solid var(--red); }
.tips-col h3{ margin:0 0 6px; font-size:17px; color:var(--ink); }
.tips-col ul{ list-style:none; margin:0; padding:0; }
.tips-col li{
  position:relative;
  padding:5px 0 5px 26px;
  font-size:14.5px;
  line-height:1.6;
  color:var(--ink-soft);
  border-bottom:1px dashed var(--line);
}
.tips-col li:last-child{ border-bottom:0; }
.tips-col li::before{
  position:absolute;
  left:0; top:5px;
  font-weight:700;
}
.tips-col--do li::before{ content:"\2713"; color:#1f8f4e; }
.tips-col--dont li::before{ content:"\2715"; color:var(--red); }

@media (max-width:900px){
  .stat-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:600px){
  .tips-grid{ grid-template-columns:1fr; }
  .table-scroll{ font-size:13px; }
}

/* =========================================================
   CONTACT US PAGE
   ========================================================= */
.contact-page{ max-width:1000px; margin:0 auto; }

.contact-page__head{ margin-bottom:14px; }
.contact-page__title{
  position:relative;
  margin:0 0 4px;
  padding-left:12px;
  font-family:var(--font-nav);
  font-weight:700;
  font-size:30px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink);
}
.contact-page__title::before{
  content:"";
  position:absolute;
  left:0; top:2px;
  width:5px; height:28px;
  background:var(--red);
  border-radius:2px;
}
.contact-page__sub{ margin:0 0 0 12px; color:var(--muted); font-size:14.5px; }

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:14px;
  margin-bottom:14px;
}

.contact-info{ display:flex; flex-direction:column; gap:10px; }

.info-card{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--white);
}
.info-icon{
  flex:none;
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:#faf3f2;
  color:var(--red);
}
.info-card h3{ margin:0 0 4px; font-size:15px; color:var(--ink); }
.info-card p{ margin:0; font-size:14px; color:var(--ink-soft); }
.info-card a{ color:var(--ink-soft); }
.info-card a:hover{ color:var(--red); }

.contact-social{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:2px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:8px;
}
.contact-social span{
  font-family:var(--font-nav);
  font-weight:700;
  font-size:13px;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:var(--ink);
}
.contact-social a{ color:var(--ink-soft); transition:color .15s ease; }
.contact-social a:hover{ color:var(--red); }

.contact-form{
  padding:16px;
  border:1px solid var(--line);
  border-top:4px solid var(--red);
  border-radius:8px;
  background:#faf7f7;
}
.contact-form h2{
  margin:0 0 10px;
  font-family:var(--font-nav);
  font-size:20px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink);
}
.contact-form .form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:10px;
}
.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:5px;
  padding:8px 10px;
  font-family:var(--font-ui);
  font-size:14px;
  color:var(--ink);
  background:#fff;
}
.contact-form select{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12' fill='none' stroke='%236b6b6b' stroke-width='3'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
.contact-form textarea{ min-height:130px; resize:vertical; margin-bottom:10px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{ outline:none; border-color:var(--red); }
.contact-form button,
.contact-form input[type="submit"]{
  background:var(--red);
  color:#fff;
  border:0;
  border-radius:5px;
  padding:9px 24px;
  font-family:var(--font-nav);
  font-weight:700;
  font-size:14px;
  letter-spacing:.5px;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .15s ease;
}
.contact-form button:hover,
.contact-form input[type="submit"]:hover{ background:var(--red-dark); }

/* ---- Contact Form 7 markup support ---- */
.contact-form .wpcf7-form-control-wrap{ display:block; width:100%; }

/*
 * CF7 runs its form template through wpautop, so any line of the
 * template not already inside one of our own .form-row divs (the
 * [textarea] and [submit] lines) gets auto-wrapped in a <p> — and a
 * plain <p> carries the browser's default margin, adding unwanted
 * gaps above/below the textarea and the submit button. Spacing here
 * is already handled by .contact-form textarea's own margin-bottom,
 * so the wrapping <p> itself doesn't need any.
 */
.contact-form p{ margin:0; }

/*
 * CF7 6.1+ wraps its own internal system fields (_wpcf7, _wpcf7_version,
 * etc — nothing to do with the visible form) in a <fieldset
 * class="hidden-fields-container">. CF7's own stylesheet hides this,
 * but we dequeue that stylesheet on purpose (see functions.php) so
 * nothing overrides this design — so without this rule, the
 * <fieldset>'s plain browser-default border shows up as an empty box
 * above the real fields.
 */
.contact-form .hidden-fields-container,
.contact-form .hidden-fields-container fieldset{
  display:none !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
}

/*
 * CF7's "screen-reader-response" block repeats the error summary +
 * a bullet list of every invalid field, purely for screen readers —
 * it's meant to be invisible to sighted users (same idea as this
 * theme's own .sr-only), but again that hiding normally comes from
 * CF7's own dequeued stylesheet.
 */
.contact-form .screen-reader-response{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/*
 * Anti-spam plugins (WP Armour, etc.) inject an extra "honeypot"
 * field into the form via JavaScript, meant to stay invisible to real
 * visitors (only bots fill it in). Its field name is deliberately
 * randomised per install so it can't be targeted by name — but it
 * never carries a placeholder, unlike every real field in this form,
 * so that's what this rule keys off instead. Safe: none of this
 * form's actual fields (name/email/phone all have placeholders; the
 * subject field is a <select>, not an <input>) are affected.
 *
 * This uses display:none rather than the usual visually-hidden
 * clip-rect trick on purpose: a clipped-but-present field can still
 * get auto-filled by the browser's own autofill (it doesn't respect
 * clip-rect the way it respects display:none), which silently puts a
 * value into the honeypot and makes the plugin wrongly treat a real
 * visitor's submission as spam — exactly the "fields have an error"
 * failure this was causing. display:none is reliably skipped by
 * autofill, so the trap only ever catches actual bots.
 */
.contact-form input:not([placeholder]):not([type="submit"]):not([type="hidden"]){
  display:none !important;
}
.contact-form .wpcf7-spinner{ margin:0 0 0 8px; vertical-align:middle; }
.contact-form .wpcf7-not-valid-tip{
  display:block;
  margin-top:4px;
  font-size:12.5px;
  color:var(--red);
}
.contact-form .wpcf7-response-output{
  margin:10px 0 0;
  padding:10px 12px;
  border-radius:5px;
  border:1px solid var(--line);
  font-size:13.5px;
  color:var(--ink-soft);
}
.contact-form .wpcf7-response-output:empty{
  display:none; /* CF7 always renders this div, even before a submit attempt — only show it once there's an actual message inside */
}
.contact-form form.sent .wpcf7-response-output{
  border-color:#1f8f4e;
  color:#1f8f4e;
  background:#f2faf5;
}
.contact-form form.failed .wpcf7-response-output,
.contact-form form.invalid .wpcf7-response-output,
.contact-form form.aborted .wpcf7-response-output,
.contact-form form.spam .wpcf7-response-output{
  border-color:var(--red);
  color:var(--red);
  background:#fdf2f2;
}

.contact-map{ margin-top:2px; }
.contact-map__placeholder{
  aspect-ratio:21/6;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:8px;
  background:linear-gradient(135deg,#e9e9e9,#d6d6d6);
  color:var(--muted);
  font-family:var(--font-nav);
  font-size:14px;
  letter-spacing:.4px;
  text-transform:uppercase;
}

@media (max-width:800px){
  .contact-grid{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .contact-form .form-row{ grid-template-columns:1fr; }
  .contact-page__title{ font-size:24px; }
}

/* =========================================================
   WEATHER PAGE
   ========================================================= */
.wx-page__head{
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.wx-page__title{
  position:relative;
  margin:0 0 4px;
  padding-left:16px;
  font-family:var(--font-nav);
  font-weight:700;
  font-size:30px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink);
}
.wx-page__title::before{
  content:"";
  position:absolute;
  left:0; top:2px;
  width:5px; height:28px;
  background:var(--red);
  border-radius:2px;
}
.wx-page__sub{ margin:0 0 0 16px; max-width:760px; color:var(--muted); font-size:14.5px; line-height:1.7; }

.wx-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
.wx-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:16px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--white);
  text-align:center;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.wx-card:hover{
  box-shadow:0 10px 24px rgba(0,0,0,.1);
  transform:translateY(-3px);
  border-color:var(--red);
}
.wx-card__icon{
  width:60px; height:60px;
  display:flex; align-items:center; justify-content:center;
  border-radius:8px;
  background:#faf3f2;
  color:var(--red);
  overflow:hidden;
}
.wx-card__icon img{ width:100%; height:100%; object-fit:contain; }
.wx-card h3{ margin:0; font-size:15.5px; color:var(--ink); }
.wx-card p{ margin:0; font-size:12.5px; color:var(--muted); }
.wx-card__live{
  display:inline-block;
  margin-top:2px;
  font-family:var(--font-nav);
  font-weight:700;
  font-size:13px;
  color:var(--red);
}
.wx-card__live--unavailable{ font-weight:400; color:var(--muted); }

@media (max-width:900px){
  .wx-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:560px){
  .wx-grid{ grid-template-columns:1fr; }
  .wx-page__title{ font-size:24px; }
}

/* =========================================================
   PER-POST URDU BADGE/TOGGLE (inc/urdu-translation.php)
   ========================================================= */
.title-urdu-badge{
display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    padding-bottom: 9px;
    border-radius: 8px;
    background: #faf3f2;
    color: var(--red);
    font-family: var(--font-urdu);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    vertical-align: middle;
    transition: background .15s ease, color .15s ease;
}
.title-urdu-badge:hover{ background:var(--red); color:#fff; }

.title-urdu-badge--toggle{
  display:none;
  margin:0 0 8px;
  padding:5px 16px;
  font-size:14px;
  line-height:1.6;
  vertical-align:baseline;
}

.post-title--urdu{
  font-family:var(--font-urdu);
  font-size:30px;
  line-height:1.7;
}

.post-desc--urdu{
  font-family:var(--font-urdu);
  font-size:19px;
  line-height:2.7;
}
.post-desc--urdu p{ margin:0 0 16px; }

@media (max-width:600px){
  .post-title--urdu{ font-size:24px; }
  .post-desc--urdu{ font-size:17px; line-height:2.5; }
}

/* =========================================================
   RTL SINGLE POST (any post filed under an RTL/Urdu category)
   ========================================================= */
.post-page.urdu-post,
.post-page.urdu-post .post-desc,
.post-page.urdu-post .comments,
.post-page.urdu-post .comment-form{
  font-family:var(--font-urdu);
}

.post-page.urdu-post .post-title{
  font-family:var(--font-urdu);
  font-size:30px;
  line-height:1.7;
}

.post-page.urdu-post .post-desc{
  font-size:19px;
  line-height:2.7;
}
.post-page.urdu-post .post-desc p{ margin:0 0 16px; }

.post-page.urdu-post .post-image{
  float:right;
  margin:0 0 5px 12px;
}

.post-page.urdu-post .comments h2{ font-size:24px; }
.post-page.urdu-post .comment-name{ font-size:16px; }
.post-page.urdu-post .comment-body p{ font-size:17px; line-height:1.9; }
.post-page.urdu-post .comment-body p + p{ margin-top:8px; }
.post-page.urdu-post .comment-form h3{ font-family:var(--font-urdu); font-size:20px; }
.post-page.urdu-post .comment-form textarea{ font-family:var(--font-urdu); font-size:16px; }

@media (max-width:600px){
  .post-page.urdu-post .post-image{ float:none; }
  .post-page.urdu-post .post-title{ font-size:24px; }
  .post-page.urdu-post .post-desc{ font-size:17px; line-height:2.5; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
}
