/* =========================================================
   UrduKhaber URDU (lang-ur)
   BBC body + Dawn readability
   Nastaliq ONLY for quotes / poetry
   GeneratePress + Classic Editor safe
   ========================================================= */

/* ---------------- Local Fonts ----------------
   Files confirmed in /fonts/ :
   - noto-naskh-arabic-arabic-400-normal.woff2
   - noto-nastaliq-urdu-arabic-400-normal.woff2
------------------------------------------------ */

@font-face{
  font-family: "UK Noto Naskh";
  src: url("fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "UK Noto Nastaliq";
  src: url("fonts/noto-nastaliq-urdu-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   CORE URDU BODY (BBC / Dawn style)
   ========================================================= */

body.lang-ur.single .inside-article .entry-content,
body.lang-ur.single .inside-article .entry-content p,
body.lang-ur.single .inside-article .entry-content li,
body.lang-ur.single .inside-article .entry-content td,
body.lang-ur.single .inside-article .entry-content th{
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;

  font-family: "UK Noto Naskh","Noto Naskh Arabic","Segoe UI",Tahoma,Arial,sans-serif;

  font-size: 18px;
  line-height: 2.15;
  word-spacing: 0.02em;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}

/* Comfortable reading width */
body.lang-ur.single .inside-article .entry-content > *{
  max-width: 72ch;
}

/* Paragraph rhythm */
body.lang-ur.single .inside-article .entry-content p{
  margin: 0 0 1.25em;
}

/* =========================================================
   HEADINGS — FIXED RTL ALIGNMENT (IMPORTANT)
   ========================================================= */

body.lang-ur.single .inside-article h1,
body.lang-ur.single .inside-article h2,
body.lang-ur.single .inside-article h3,
body.lang-ur.single .inside-article h4,
body.lang-ur.single .entry-title{
  direction: rtl;
  text-align: right !important; /* overrides GeneratePress */
  font-family: "UK Noto Naskh","Noto Naskh Arabic","Segoe UI",Tahoma,Arial,sans-serif;
  color: #1f2937;
  font-weight: 700;
}

body.lang-ur.single .inside-article h1{
  font-size: 36px;
  line-height: 1.25;
  margin: 1.2em 0 0.6em;
}
body.lang-ur.single .inside-article h2{
  font-size: 26px;
  line-height: 1.35;
  margin: 1.4em 0 0.6em;
}
body.lang-ur.single .inside-article h3{
  font-size: 22px;
  line-height: 1.4;
  margin: 1.3em 0 0.55em;
}
body.lang-ur.single .inside-article h4{
  font-size: 19px;
  line-height: 1.45;
  margin: 1.2em 0 0.5em;
}

/* Headings links inherit color */
body.lang-ur.single .inside-article h1 a,
body.lang-ur.single .inside-article h2 a,
body.lang-ur.single .inside-article h3 a{
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   LINKS & LISTS (RTL FIXED)
   ========================================================= */

body.lang-ur.single .inside-article .entry-content a{
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

body.lang-ur.single .inside-article .entry-content ul,
body.lang-ur.single .inside-article .entry-content ol{
  padding-right: 1.5em;
  padding-left: 0;
  margin: 0 0 1.25em 0;
}

body.lang-ur.single .inside-article .entry-content li{
  margin: 0.45em 0;
  line-height: 2.15;
}

/* =========================================================
   TABLES
   ========================================================= */

body.lang-ur.single .inside-article .entry-content table{
  width: 100%;
  border-collapse: collapse;
  margin: 1.3em 0;
  font-size: 16px;
  line-height: 1.9;
}

body.lang-ur.single .inside-article .entry-content th,
body.lang-ur.single .inside-article .entry-content td{
  padding: 0.75em 0.9em;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  vertical-align: top;
}

body.lang-ur.single .inside-article .entry-content th{
  font-weight: 700;
  background: rgba(0,0,0,0.04);
}

/* =========================================================
   IMAGES & CAPTIONS
   ========================================================= */

body.lang-ur.single .inside-article .entry-content img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

body.lang-ur.single .inside-article .entry-content figcaption,
body.lang-ur.single .inside-article .entry-content small{
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Divider */
body.lang-ur.single .inside-article .entry-content hr{
  border: none;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin: 1.8em 0;
}

/* =========================================================
   BLOCKQUOTES — NASTALIQ ONLY
   ========================================================= */

body.lang-ur.single .inside-article .entry-content blockquote{
  margin: 1.8em 0;
  padding: 1.2em 1.4em;
  border-right: 4px solid rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.035);
  border-radius: 12px;
}

body.lang-ur.single .inside-article .entry-content blockquote,
body.lang-ur.single .inside-article .entry-content blockquote p{
  font-family: "UK Noto Nastaliq","Noto Nastaliq Urdu","Jameel Noori Nastaleeq","UK Noto Naskh",
               "Segoe UI",Tahoma,Arial,sans-serif;
  font-size: 18.5px;
  line-height: 2.3;
}

/* Poetry / Shayari blocks */
body.lang-ur.single .inside-article .entry-content .poetry,
body.lang-ur.single .inside-article .entry-content .shayari,
body.lang-ur.single .inside-article .entry-content pre{
  font-family: "UK Noto Nastaliq","Noto Nastaliq Urdu","Jameel Noori Nastaleeq","UK Noto Naskh",
               "Segoe UI",Tahoma,Arial,sans-serif;
  font-size: 19px;
  line-height: 2.35;
  white-space: pre-wrap;
}

/* =========================================================
   ARCHIVES / CARDS
   ========================================================= */

body.lang-ur.blog .site-main,
body.lang-ur.archive .site-main,
body.lang-ur.search .site-main{
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
}

body.lang-ur.blog .entry-title,
body.lang-ur.archive .entry-title,
body.lang-ur.search .entry-title{
  font-family: "UK Noto Naskh","Noto Naskh Arabic","Segoe UI",Tahoma,Arial,sans-serif;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

body.lang-ur.blog .entry-summary,
body.lang-ur.archive .entry-summary,
body.lang-ur.search .entry-summary{
  font-size: 16px;
  line-height: 1.9;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px){
  body.lang-ur.single .inside-article .entry-content,
  body.lang-ur.single .inside-article .entry-content p,
  body.lang-ur.single .inside-article .entry-content li{
    font-size: 17px;
    line-height: 2.05;
  }

  body.lang-ur.single .inside-article h1{ font-size: 30px; }
  body.lang-ur.single .inside-article h2{ font-size: 24px; }
  body.lang-ur.single .inside-article h3{ font-size: 20px; }
}
/* =========================================================
   URDU HARD OVERRIDES (Deep Fix)
   Fixes: H1 alignment + small body text (GeneratePress overrides)
   ========================================================= */

/* Force RTL + right alignment on the whole Urdu article area */
body.lang-ur.single .inside-article,
body.lang-ur.single .inside-article .entry-header,
body.lang-ur.single .inside-article .entry-content{
  direction: rtl !important;
  text-align: right !important;
}

/* Fix the ACTUAL post title element in GeneratePress */
body.lang-ur.single .inside-article .entry-header .entry-title,
body.lang-ur.single .inside-article .entry-title{
  direction: rtl !important;
  text-align: right !important;
  font-family: "UK Noto Naskh","Noto Naskh Arabic","Segoe UI",Tahoma,Arial,sans-serif !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  font-size: 36px !important;
  line-height: 1.25 !important;
  margin: 1.2em 0 0.6em !important;
}

/* Force readable body size everywhere (covers non-<p> text too) */
body.lang-ur.single .inside-article .entry-content{
  font-size: 18px !important;
  line-height: 2.15 !important;
}

/* Force p/li + common text nodes (GeneratePress often overrides these) */
body.lang-ur.single .inside-article .entry-content p,
body.lang-ur.single .inside-article .entry-content li,
body.lang-ur.single .inside-article .entry-content td,
body.lang-ur.single .inside-article .entry-content th,
body.lang-ur.single .inside-article .entry-content div,
body.lang-ur.single .inside-article .entry-content span{
  font-size: 18px !important;
  line-height: 2.15 !important;
}

/* Fix Urdu list bullets spacing RTL */
body.lang-ur.single .inside-article .entry-content ul,
body.lang-ur.single .inside-article .entry-content ol{
  padding-right: 1.5em !important;
  padding-left: 0 !important;
  margin: 0 0 1.25em 0 !important;
}

body.lang-ur.single .inside-article .entry-content li{
  margin: 0.45em 0 !important;
}

/* Mobile tuning */
@media (max-width: 768px){
  body.lang-ur.single .inside-article .entry-header .entry-title,
  body.lang-ur.single .inside-article .entry-title{
    font-size: 30px !important;
    line-height: 1.25 !important;
  }

  body.lang-ur.single .inside-article .entry-content,
  body.lang-ur.single .inside-article .entry-content p,
  body.lang-ur.single .inside-article .entry-content li{
    font-size: 17px !important;
    line-height: 2.05 !important;
  }
}

