/*!
Theme Name: Chitraltimes 2025
Theme URI: https://chitraltimes.com/
Author: Waqar Ahmed
Author URI: https://chitraltimes.com/
Description: Custom WordPress theme for Chitraltimes — mobile-first, RTL-ready Urdu news theme.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: chitraltimes
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --ct-red:          #c11717;
  --ct-red-dark:     #991212;
  --ct-red-light:    #fef2f2;
  --ct-navy:         #0f1f3d;
  --ct-navy-mid:     #1d3461;
  --ct-blue:         #254669;
  --ct-blue-light:   #e8f0fa;
  --ct-text:         #1c1c2e;
  --ct-text-muted:   #5a6472;
  --ct-bg:           #f1f3f7;
  --ct-surface:      #ffffff;
  --ct-border:       #dde4ed;
  --ct-shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --ct-shadow-md:    0 4px 14px rgba(0,0,0,.09);
  --ct-shadow-lg:    0 8px 32px rgba(0,0,0,.13);
  --ct-radius:       8px;
  --ct-transition:   0.2s ease;
  --font-urdu:       'Noto Nastaliq Urdu', serif;
  --font-ui:         Arial, Helvetica, sans-serif;
}

/* ============================================================
   BASE RESET & GLOBALS
   ============================================================ */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-urdu);
  background: var(--ct-bg);
  color: var(--ct-text);
  direction: rtl;
  padding: 0;
  margin: 0;
}

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

*:focus-visible {
  outline: 2px solid var(--ct-red);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

a {
  color: var(--ct-text);
  text-decoration: none;
  transition: color var(--ct-transition);
}

a:hover { color: var(--ct-red); }

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img {
  max-width: 100%;
  width: auto;
  vertical-align: bottom;
  height: auto;
}

p:last-child { margin-bottom: 0; }

/* ============================================================
   CUSTOM FONTS
   ============================================================ */
@font-face {
  font-family: nafees-web-naskh-regular;
  src: url(fonts/nafees-web-naskh-regular.ttf);
  font-display: swap;
}

@font-face {
  font-family: nafees-nastaleeq-webfont;
  src: url(fonts/nafees-nastaleeq-webfont.woff);
  font-display: swap;
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.main-wrapper {
  position: relative;
  width: 100%;
  min-height: 100%;
  text-align: center;
  background: var(--ct-bg);
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--ct-surface);
  display: flex;
  flex-wrap: wrap;
  box-shadow: var(--ct-shadow-lg);
}

/* ============================================================
   READING PROGRESS BAR (single post)
   ============================================================ */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--ct-red) 0%, #ff8585 100%);
  z-index: 99999;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
  float: right;
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 120px;
}

.main-header img {
  width: 100%;
  display: block;
  height: 120px;
  object-fit: cover;
  object-position: right center;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: var(--ct-navy);
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0,0,0,.28);
  padding: 4px 8px;
}

.burger-menu {
  padding: 0 14px;
  display: flex;
  align-items: center;
  height: 46px;
  cursor: pointer;
}

.close-menu {
  width: 40px;
  height: 40px;
  line-height: 40px;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--ct-red);
  text-align: center;
  color: #fff;
  font-size: 18px;
  z-index: 99999;
  display: none;
  cursor: pointer;
  transition: background var(--ct-transition);
}

.close-menu:hover { background: var(--ct-red-dark); }

.menu-header-menu-container-active .close-menu { display: block; }

/* Mobile: slide-in drawer (base = mobile-first) */
.menu-header-menu-container {
  position: fixed;
  width: 260px;
  background: var(--ct-navy);
  z-index: 9999;
  right: -100%;
  top: 0;
  transform: translateX(100%);
  padding-top: 50px;
  height: 100%;
  overflow-y: auto;
  transition: 0.32s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,.35);
}

.menu-header-menu-container-active {
  right: 0;
  transform: translateX(0);
}

.menu-header-menu-container ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 8px;
  gap: 0;
}

.menu-header-menu-container ul li {
  display: block;
  list-style: none;
  padding: 0;
  border-right: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
  width: 100%;
  background: transparent;
}

.menu-header-menu-container ul li a {
  font-family: nafees-web-naskh-regular;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  display: block;
  padding: 13px 16px;
  border-radius: 5px;
  transition: background var(--ct-transition), color var(--ct-transition);
  white-space: nowrap;
}

.menu-header-menu-container ul li a:hover {
  color: #fff;
  background: var(--ct-red);
}

.main-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0;
  justify-content: center;
}

.main-nav ul li {
  display: inline-block;
  list-style-type: none;
  padding: 0;
  vertical-align: middle;
  border-right: 1px solid rgba(255,255,255,.1);
  position: relative;
}

.main-nav ul li:first-child { border-right: none; }

.main-nav ul li a {
  font-family: nafees-web-naskh-regular;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  display: block;
  padding: 11px 14px;
  transition: background var(--ct-transition), color var(--ct-transition);
  white-space: nowrap;
  line-height: 1.2;
}

.main-nav ul li a:hover {
  color: #fff;
  background: var(--ct-red);
}

/* Active / current menu item */
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-ancestor > a {
  background: var(--ct-red);
  color: #fff;
}

.search-icon {
  padding: 0 14px;
  display: flex;
  align-items: center;
  height: 46px;
  cursor: pointer;
}

.search-icon i,
.burger-menu i {
  font-size: 17px;
  color: rgba(255,255,255,.82);
  cursor: pointer;
  transition: color var(--ct-transition);
}

.search-icon i:hover,
.burger-menu i:hover { color: #fff; }

/* ============================================================
   GRAY BAR (search + ticker strip)
   ============================================================ */
.gray-bar {
  float: left;
  width: 100%;
  min-height: 30px;
  background: #f7f9fc;
  border-bottom: 2px solid var(--ct-navy);
  font-family: var(--font-ui);
  padding: 4px 8px;
}

#search-wrapper {
  direction: ltr;
  display: none;
  padding: 6px 4px;
}

.search-wrapper-active { display: block !important; }

#search-wrapper form {
  display: flex;
  margin: 0;
  font-family: var(--font-ui);
  border-radius: var(--ct-radius);
  overflow: hidden;
  box-shadow: var(--ct-shadow-sm);
}

#search-wrapper form input[type=search] {
  flex: 1;
  margin: 0;
  padding: 8px 14px;
  font-size: 14px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius) 0 0 var(--ct-radius);
  outline: none;
  border-right: none;
}

#search-wrapper form input[type=submit] {
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  background: var(--ct-red);
  border: none;
  border-radius: 0 var(--ct-radius) var(--ct-radius) 0;
  transition: background var(--ct-transition);
  white-space: nowrap;
}

#search-wrapper form input[type=submit]:hover { background: var(--ct-red-dark); }

/* News ticker area */
.news-ticker-wrapper {
  overflow: hidden;
  background: var(--ct-navy-mid);
  color: #fff;
  padding: 6px 10px;
  font-family: var(--font-ui);
  position: relative;
  border-radius: 5px;
  margin: 3px 0;
}

.news-ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.news-ticker-wrapper:hover .news-ticker { animation-play-state: paused; }

.ticker-track { display: inline-flex; }

.ticker-item {
  margin-left: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.ticker-item a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color var(--ct-transition);
}

.ticker-item a:hover { color: #ffd5d5; }

.dot { margin: 0 14px; color: var(--ct-red); font-size: 18px; }

@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   ADVERTISEMENTS
   ============================================================ */
.advertisement-widget {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.advertisement-widget li { margin-bottom: 7px; }

.advertisement-widget li a {
  padding: 7px 8px 26px;
  display: block;
  background: #fffde7;
  line-height: 1.6;
  transition: background var(--ct-transition), transform var(--ct-transition);
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ct-blue);
  font-weight: bold;
  border: 1px dashed var(--ct-red);
  position: relative;
  border-radius: 5px;
}

.advertisement-widget li a:hover {
  background: #fff8c5;
  transform: translateY(-1px);
}

.advertisement-widget li a:after {
  content: 'Advertisement';
  font-size: 9px;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 3px 6px;
  background: var(--ct-red);
  line-height: 1;
  color: #fff;
  font-family: var(--font-ui);
  animation: blinkingText 1.2s infinite;
  border-radius: 0 0 4px 0;
}

@keyframes blinkingText {
  0%, 49% { opacity: 1; }
  50%, 99% { opacity: 0; }
  100%     { opacity: 1; }
}

/* Advertisement widget title */
.advertisement-widget-title {
  font-family: nafees-web-naskh-regular;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--ct-red), var(--ct-red-dark));
  padding: 8px 14px;
  margin: 0 0 10px;
  text-align: center;
  border-radius: 4px;
}

/* ============================================================
   AD TICKER (in gray bar)
   ============================================================ */
.adticker-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 40px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--ct-shadow-sm);
  border: 1px solid var(--ct-border);
  font-family: var(--font-ui);
  margin: 4px 0;
}

.adticker-label {
  flex: 0 0 auto;
  background: var(--ct-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.adticker-label-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: adticker-blink 1.2s ease-in-out infinite;
}

@keyframes adticker-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

.adticker-label::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 0;
  width: 16px;
  height: 100%;
  background: linear-gradient(to right, var(--ct-red), transparent);
  z-index: 3;
}

.adticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.adticker-viewport::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 100%;
  background: linear-gradient(to right, #fff, transparent);
  z-index: 2;
  pointer-events: none;
}

.adticker-viewport::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 36px; height: 100%;
  background: linear-gradient(to left, #fff, transparent);
  z-index: 2;
  pointer-events: none;
}

.adticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  position: absolute;
  left: 0;
}

.adticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ct-text);
  font-size: 13px;
  font-weight: 600;
  padding: 0 28px 0 14px;
  white-space: nowrap;
  transition: color var(--ct-transition);
}

.adticker-item:hover,
.adticker-item:hover .adticker-bullet { color: var(--ct-red); }

.adticker-bullet { font-size: 9px; color: var(--ct-red); flex-shrink: 0; }

/* ============================================================
   MAIN CONTENT LAYOUT (old float-based)
   ============================================================ */
.content-wrap {
  float: right;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.main-content {
  float: right;
  width: 100%;
  flex-direction: column;
  padding-bottom: 20px;
}

.main-title {
  float: right;
  width: 100%;
  background: var(--ct-navy);
  text-align: center;
  padding: 10px 0;
  margin-bottom: 14px;
  position: relative;
}

.main-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 56px;
  height: 3px;
  background: var(--ct-red);
}

.main-title h2 {
  font-size: 15px;
  color: #fff;
  margin: 0;
  font-weight: 600;
  font-family: nafees-web-naskh-regular;
  line-height: 1.5;
}

.home .main-title h2 { font-family: var(--font-ui); }

.main-content > h5 {
  font-family: var(--font-ui);
  text-align: center;
  margin: 14px 0;
  color: var(--ct-text-muted);
  font-size: 12px;
  font-weight: normal;
  background: var(--ct-blue-light);
  padding: 5px 10px;
  border-radius: 4px;
}

.news-wrap {
  float: right;
  width: 100%;
}



@keyframes freshPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* ---- Thumbnail cards ---- */
.news-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--ct-border);
  direction: rtl;
  transition: background var(--ct-transition);
}

.news-card:hover { background: #fafbfd; }

.news-card-thumb {
  display: none; /* hidden at ≤414px; shown at 415px+ via min-width query */
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  overflow: hidden;
  border-radius: 6px;
  order: 0; /* RTL flex: order 0 = rightmost */
  font-size: 0; /* suppress alt text on broken images */
  line-height: 0;
  background: var(--ct-bg);
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s ease;
}

.news-card:hover .news-card-thumb img { transform: scale(1.06); }

.news-card-body {
  flex: 1;
  text-align: right;
  order: 1; /* RTL flex: order 1 = to the left of thumbnail */
}

.news-card-body h3 {
  margin: 0 0 5px;
  padding: 0;
  font-size: 1.06rem;
  line-height: 2.35rem;
  position: relative;
}

/* override bullet for cards */
.news-card .news-card-body h3::before { display: none !important; }
.news-card .news-card-body h3::after  { display: none !important; }

.news-card-body h3 a {
  color: var(--ct-text);
  font-weight: 600;
  transition: color var(--ct-transition);
}

.news-card-body h3 a:hover { color: var(--ct-red); }

.news-card-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ct-text-muted);
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-start; /* RTL flex-start = right side */
  margin-top: 3px;
}

.news-card-meta .meta-icon {
  font-size: 10px;
  color: var(--ct-red);
}

.news-card-meta .meta-sep {
  color: var(--ct-border);
}

.news-card-meta .meta-cat {
  color: var(--ct-red);
  font-weight: 600;
}

/* Fresh badge on first 5 cards */
.news-card:nth-of-type(-n+5) .news-card-body h3 .fresh-badge {
  display: inline-block;
  background: var(--ct-red);
  color: #fff;
  font-size: 10px;
  padding: 3px 10px;
  margin-right: 10px;
  border-radius: 20px;
  vertical-align: middle;
  animation: freshPulse 2s ease-in-out infinite;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.page-numbers {
  display: inline-flex;
  gap: 5px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.page-numbers a,
.page-numbers span {
  padding: 6px 12px;
  border: 1px solid var(--ct-border);
  border-radius: 6px;
  color: var(--ct-text);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ct-transition);
  font-size: 14px;
  font-family: var(--font-ui);
  line-height: 1.5;
}

.page-numbers a:hover {
  background: var(--ct-red);
  color: #fff;
  border-color: var(--ct-red);
}

.page-numbers .current {
  background: var(--ct-red);
  color: #fff;
  border-color: var(--ct-red);
  font-weight: bold;
  cursor: default;
  pointer-events: none;
}

.page-numbers .dots {
  padding: 6px 12px;
  color: var(--ct-text-muted);
  cursor: default;
  pointer-events: none;
  border: 1px solid transparent;
}

.page-numbers .next { font-weight: 600; }

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  display: inline-block;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--ct-text);
  text-decoration: none;
  border: 1px solid var(--ct-border);
  border-radius: 6px;
  transition: all var(--ct-transition);
  font-family: var(--font-ui);
}

.nav-links a:hover {
  background: var(--ct-red);
  color: #fff;
  border-color: var(--ct-red);
}

.nav-links .current {
  background: var(--ct-red);
  color: #fff;
  border-color: var(--ct-red);
  font-weight: bold;
}

.nav-links .dots { cursor: default; border-color: transparent; color: #999; }
.nav-links .next, .nav-links .prev { font-weight: bold; }

/* ============================================================
   WIDGETS / SIDEBAR
   ============================================================ */
.widget {
  float: left;
  direction: ltr;
  width: 100%;
  margin-bottom: 16px;
  background: var(--ct-surface);
  border-radius: var(--ct-radius);
  overflow: hidden;
  box-shadow: var(--ct-shadow-sm);
  border: 1px solid var(--ct-border);
}

.widget h3,
.widget-title {
  text-align: right;
  color: #fff;
  font-size: 16px;
  font-family: nafees-web-naskh-regular;
  font-weight: bold;
  padding: 9px 14px 9px 10px;
  background: var(--ct-navy);
  border-radius: 0;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
  border-right: 4px solid var(--ct-red);
  direction: rtl;
}

.sidebar-box-date {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  padding: 10px 14px;
  border-radius: var(--ct-radius) var(--ct-radius) 0 0;
}

.sidebar-box-date p {
  font-family: var(--font-ui);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}

.sidebar-box-date p i { margin-right: 8px; }

/* Widget ad list */
#listcategorypostswidget-2 ul {
  margin: 0;
  padding: 0 8px;
}

#listcategorypostswidget-2 ul li {
  display: block;
  list-style-type: none;
  padding: 7px 8px 24px;
  background: #fffde7;
  margin-bottom: 6px;
  line-height: 1.4;
  width: 100%;
  border: 1px dashed var(--ct-red);
  position: relative;
  border-radius: 5px;
}

#listcategorypostswidget-2 ul li:after {
  content: 'Advertisement';
  font-size: 8px;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 5px;
  background: var(--ct-red);
  color: #fff;
  font-family: var(--font-ui);
  animation: blinkingText 1.2s infinite;
}

#listcategorypostswidget-2 ul li a {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ct-blue);
  font-weight: bold;
  transition: color var(--ct-transition);
}

#listcategorypostswidget-2 ul li a:hover,
#custom_html-6 ul li a:hover,
#custom_html-3 ul li a:hover {
  color: var(--ct-red);
  text-decoration: underline;
}

.widget_media_image { text-align: center; }

.widget_media_image a {
  float: left;
  width: 100%;
  transition: opacity var(--ct-transition), transform var(--ct-transition);
  display: block;
}

.widget_media_image a:hover { opacity: .9; transform: scale(1.01); }

.sidebar-box-images img { margin-bottom: 12px; border-radius: 4px; }

#custom_html-6 ul {
  line-height: 1;
  margin: 0;
  padding: 0 8px;
}

#custom_html-6 ul li {
  display: block;
  list-style-type: none;
  text-align: center;
  width: 100%;
  padding-bottom: 10px;
}

#custom_html-6 ul li a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ct-blue);
  display: block;
  font-weight: bold;
  transition: color var(--ct-transition);
}

#custom_html-2 a,
#custom_html-5 a {
  font-family: nafees-web-naskh-regular;
  font-weight: bold;
  padding: 9px 14px;
  text-align: center;
  float: left;
  width: 100%;
  background: var(--ct-surface);
  color: var(--ct-red);
  border: 2px solid var(--ct-red);
  border-radius: 6px;
  font-size: 14px;
  transition: all var(--ct-transition);
}

#custom_html-2 a:hover,
#custom_html-5 a:hover {
  background: var(--ct-red);
  color: #fff;
}

#custom_html-5 > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

#custom_html-5 a {
  font-size: 13px;
  font-family: var(--font-ui);
}

#custom_html-2 a i { vertical-align: middle; margin-right: 8px; }

#custom_html-3 ul { padding: 0 8px; margin: 0; }

#custom_html-3 ul li {
  margin-bottom: 4px;
  display: block;
  width: 100%;
}

#custom_html-3 ul li a {
  display: block;
  padding: 8px 12px;
  color: var(--ct-navy-mid);
  background: linear-gradient(135deg, #e8f4fd, #d6eaf8);
  border: 1px solid #c5dff5;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 13px;
  border-radius: 4px;
  transition: all var(--ct-transition);
}

#custom_html-3 ul li a:hover {
  background: var(--ct-navy);
  color: #fff;
  border-color: var(--ct-navy);
}

/* Social icons */
#custom_html-4 { text-align: center; padding: 8px; }

#custom_html-4 ul {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

#custom_html-4 ul li { display: inline-block; padding: 0; }

#custom_html-4 ul li a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  transition: transform var(--ct-transition), opacity var(--ct-transition);
}

#custom_html-4 ul li a:hover { transform: translateY(-3px); opacity: .88; }

#custom_html-4 ul li a.fa-facebook  { background: #1877f2; }
#custom_html-4 ul li a.fa-twitter   { background: #1da1f2; }
#custom_html-4 ul li a.fa-linkedin  { background: #0a66c2; }
#custom_html-4 ul li a.fa-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
#custom_html-4 ul li a.fa-youtube   { background: #ff0000; }

/* Old ad banner strips — visible on mobile, hidden at desktop via min-width query */
.advertisement-head {
  float: left;
  margin: 0;
  padding: 2px 10px;
  background: var(--ct-red);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 1;
  visibility: visible;
  width: 132px;
  text-align: center;
  border-radius: 4px;
}

#advertise-banner {
  float: left;
  direction: ltr;
  padding: 0;
  margin: 0 0 0 20px;
  opacity: 1;
  visibility: visible;
  width: calc(100% - 152px);
}

#advertise-banner li {
  display: inline-block;
  list-style-type: none;
  line-height: 1.2;
  padding-top: 2px;
}

ul#advertise-banner > li { display: none; }

#advertise-banner li a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ct-blue);
  font-weight: bold;
}

/* ============================================================
   SINGLE POST / DETAIL
   ============================================================ */
article.category-advertisement .entry-header { text-align: center; }
article.category-advertisement .entry-header > div { justify-content: center; }
article.category-advertisement .entry-header > div span:nth-child(5) { display: block; }

.news-detail-wrap {
  float: right;
  width: 100%;
  text-align: center;
  direction: rtl;
}

.main-top-wrap {
  float: right;
  width: 100%;
  display: table;
  margin-bottom: 20px;
}

.main-top-wrap .date-right {
  display: table-cell;
  vertical-align: middle;
  width: 22%;
}

.main-top-wrap .date-right p {
  background: #f8f9fa;
  color: #444;
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 12px;
  font-style: italic;
  border-bottom: 3px solid var(--ct-red);
  direction: ltr;
  margin: 0;
}

.main-top-wrap .date-right p i { margin-right: 8px; color: var(--ct-red); }

.main-top-wrap .title-middle {
  display: table-cell;
  vertical-align: middle;
  width: 56%;
  background: var(--ct-navy);
  text-align: center;
}

.main-top-wrap .title-middle h2 {
  font-size: 23px;
  color: #fff;
  padding: 12px;
  font-family: nafees-web-naskh-regular;
  margin: 0;
  line-height: 1.6;
}

.main-top-wrap .back-left {
  display: table-cell;
  vertical-align: middle;
  width: 22%;
}

.main-top-wrap .back-left a {
  display: block;
  background: #f8f9fa;
  padding: 16px;
  border-bottom: 3px solid var(--ct-navy);
  transition: background var(--ct-transition);
  line-height: 1;
}

.main-top-wrap .back-left a:hover { background: var(--ct-blue-light); }

.news-detail-wrap .post {
  float: right;
  width: 100%;
  padding: 0 24px;
}

.advertisement .news-detail-wrap .post { position: relative; }

.advertisement .news-detail-wrap .post:before {
  content: 'Advertisement';
  width: 100%;
  background: #fff8e1;
  float: left;
  color: #856404;
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 4px 10px;
  border-left: 4px solid #ffc107;
  animation: blinkingText 1.2s infinite;
}

.news-detail-wrap .news-detail-featured-img {
  float: right;
  width: 100%;
  overflow: hidden;
  border-radius: var(--ct-radius);
  margin-bottom: 16px;
}

.news-detail-wrap .news-detail-featured-img img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.news-detail-wrap .news-detail-featured-img:hover img { transform: scale(1.02); }

.news-detail-wrap .news-detail-content {
  width: 100%;
  margin: 0 auto;
  display: inline-block;
  text-align: right;
  position: relative;
  padding: 14px 20px;
}

.news-detail-wrap .entry-header h1 {
  font-size: 27px;
  font-weight: bold;
  line-height: 1.85;
  margin-bottom: 14px;
  font-family: nafees-web-naskh-regular;
  color: var(--ct-text);
  margin-top: 0;
  text-align: right;
}

.advertisement .news-detail-wrap .entry-header h1 {
  font-family: var(--font-ui);
  text-align: center;
  direction: ltr;
  margin-bottom: 10px;
  font-size: 23px;
}

.news-detail-wrap .news-detail-content .news-date,
.news-detail-wrap .news-detail-content .news-time {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ct-red);
  margin-bottom: 14px;
}

.advertisement .news-detail-wrap .news-detail-content .news-date {
  float: none;
  text-align: center;
  margin-top: 10px;
}

.news-detail-wrap .news-detail-content .news-date i { margin-left: 8px; }

.news-detail-wrap .news-detail-content .news-date a {
  color: var(--ct-red);
  font-size: 13px;
  font-style: italic;
  margin-left: 5px;
  position: relative;
  padding-left: 13px;
}

.news-detail-wrap .news-detail-content .news-date a:before {
  content: '-';
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 16px;
  top: -2px;
  line-height: 1;
}

.news-detail-wrap .news-detail-content .news-time {
  margin-right: 10px;
  border-right: 2px solid var(--ct-red);
  padding-right: 10px;
  direction: ltr;
  font-style: italic;
  font-weight: 500;
}

.news-detail-wrap .news-detail-content .news-time i { margin-right: 6px; vertical-align: bottom; font-size: 15px; }

.news-detail-wrap .news-detail-content p {
  font-family: nafees-nastaleeq-webfont;
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--ct-text);
  clear: both;
  line-height: 2.8;
  margin-top: 0;
}

.news-detail-wrap .news-detail-content p img {
  margin: 16px auto;
  display: block;
  width: 100%;
  border-radius: var(--ct-radius);
}

.news-detail-wrap .entry-footer {
  float: left;
  width: 100%;
  margin-bottom: 28px;
  margin-top: 10px;
  direction: ltr;
}

.cat-links,
.tags-links { display: inline-block; padding: 0 16px; }

.post-navigation {
  float: left;
  width: 100%;
  margin-bottom: 28px;
  margin-top: 20px;
  padding: 0 24px;
}

/* Social share & tags boxes */
.news-detail-wrap .news-detail-content .social-share-wrap {
  width: 47%;
  margin-left: 3%;
}

.news-detail-wrap .news-detail-content .tags-wrap { width: 50%; }

.news-detail-wrap .news-detail-content .social-share-wrap,
.news-detail-wrap .news-detail-content .tags-wrap,
.comments-main-wrap {
  margin-top: 14px;
  float: right;
  background: var(--ct-surface);
  padding: 12px 16px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  box-shadow: var(--ct-shadow-sm);
}

.news-detail-wrap .news-detail-content .tags-wrap ul li {
  display: inline-block;
  list-style-type: none;
  padding-left: 8px;
  line-height: 1;
  vertical-align: top;
  padding-bottom: 8px;
  float: right;
}

.news-detail-wrap .news-detail-content .tags-wrap ul li a {
  color: #fff;
  padding: 5px 12px;
  float: right;
  background: var(--ct-blue);
  font-family: var(--font-ui);
  font-size: 12px;
  border-radius: 4px;
  transition: background var(--ct-transition);
}

.news-detail-wrap .news-detail-content .tags-wrap ul li a:hover { background: var(--ct-red); }

.news-detail-wrap .news-detail-content .tags-wrap h4,
.news-detail-wrap .news-detail-content .social-share-wrap h4 {
  font-family: nafees-web-naskh-regular;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--ct-blue);
  font-weight: bold;
  text-align: right;
  direction: rtl;
}

.comments-main-wrap {
  min-height: 200px;
  margin-top: 20px;
  width: 100%;
  direction: ltr;
  text-align: left;
  border-top: 3px solid var(--ct-red);
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content { width: 100%; }

.page-template-template-other-page .page-content {
  direction: ltr;
  padding: 0 32px;
  font-family: var(--font-ui);
}

.inner-page-title { text-align: center; display: block; width: 100%; }

/* ============================================================
   YARPP RELATED POSTS
   ============================================================ */
#yarpp_widget-2 { direction: rtl; text-align: right; margin-top: 16px; }

.yarpp-related {
  width: 100%;
  float: right;
  margin-top: 0 !important;
}

.yarpp-related h3,
.heateor_sss_sharing_title {
  color: var(--ct-red);
  font-family: nafees-web-naskh-regular;
  font-size: 20px;
  border-bottom: 2px solid var(--ct-red);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.yarpp-related ol {
  padding: 0;
  margin: 0;
  float: right;
  width: 100%;
}

.yarpp-related ol li {
  float: right;
  width: 100%;
  background: var(--ct-surface);
  border-bottom: 1px solid var(--ct-border);
  line-height: 2.5;
  margin-bottom: 8px;
  padding: 4px 0;
  transition: background var(--ct-transition);
}

.yarpp-related ol li:hover { background: #fafbfd; }
.yarpp-related ol li a:hover { color: var(--ct-red); text-decoration: underline; }
.yarpp-related-none { direction: ltr; text-align: center; }

.news-detail-wrap .news-detail-content .yarpp-related-none p { font-family: var(--font-ui); }

.news-detail-content ul.heateor_sss_sharing_ul {
  margin: 0 !important;
  padding: 0;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  float: right;
}

/* ============================================================
   MISC
   ============================================================ */
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post { clear: initial; }

.wp-block-table { direction: ltr; }

#custom_html-8,
#custom_html-9,
#custom_html-10 { text-align: center; }

.page-content .contact-form-submission {
  margin: 0;
  color: #525456;
  border: 1px solid var(--ct-border);
  background: #fffde7;
  padding: 10px;
  border-radius: 4px;
}

.comments-area { float: left; width: 100%; direction: ltr; }

.form-wrapper form {
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--ct-radius);
  border: 1px solid var(--ct-border);
}

/* ============================================================
   TABLES
   ============================================================ */
td, th { border: 1px solid var(--ct-border); padding: 8px 12px; }
tr:nth-child(even) { background-color: #f8fafc; }
tr:hover { background-color: #eef2f7; }

th {
  padding: 10px 12px;
  text-align: right;
  background: var(--ct-navy);
  color: #fff;
}

/* ============================================================
   SEARCH RESULTS & 404
   ============================================================ */
.error404 #primary {
  float: left;
  width: 100%;
  text-align: left;
  padding: 0 24px;
  direction: ltr;
}

.error404 .not-found,
.error404 .widget_archive,
.error404 .widget.widget_tag_cloud,
.video-wrap { font-family: var(--font-ui); }

.error404 .widget_recent_entries { font-family: nafees-nastaleeq-webfont; }
.error404 .widget_recent_entries li { padding-bottom: 12px; }

.search-results #primary { float: right; width: 100%; padding: 0 28px; }
.search-results #primary article { float: right; width: 100%; }
.search-results #primary article .post-thumbnail {
  float: left;
  width: 200px;
  border-radius: 6px;
  overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
  float: right;
  width: 100%;
  background: var(--ct-navy);
  direction: ltr;
  position: relative;
}

.footer-nav {
  float: right;
  width: 100%;
  background: var(--ct-navy);
  text-align: center;
  padding: 16px 0 8px;
  border-bottom: 2px solid var(--ct-red);
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.footer-nav ul li { display: inline-block; list-style-type: none; }

.footer-nav ul li a {
  color: rgba(255,255,255,.78);
  font-family: var(--font-urdu);
  font-weight: 600;
  font-size: 15px;
  padding: 7px 14px;
  display: block;
  transition: color var(--ct-transition), background var(--ct-transition);
  border-radius: 4px;
}

.footer-nav ul li a:hover {
  color: #fff;
  background: var(--ct-red);
}

.copyright-wrap {
  float: left;
  width: 100%;
  direction: ltr;
  text-align: center;
  padding: 14px;
  background: rgba(0,0,0,.22);
}

.copyright-wrap p {
  color: rgba(255,255,255,.6);
  font-family: var(--font-ui);
  font-size: 13px;
  margin: 0;
}

.copyright-wrap p a {
  margin: 0 4px;
  color: #ff8585;
  font-weight: 600;
  font-size: 13px;
  transition: color var(--ct-transition);
}

.copyright-wrap p a:hover { color: var(--ct-red); }

/* Back to top button — mobile-first size */
.back-to-top {
  position: fixed;
  bottom: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  background: var(--ct-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(193,23,23,.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background var(--ct-transition);
  z-index: 8888;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ct-red-dark);
  color: #fff;
}

/* Print banner (hidden on screen, visible in html2canvas capture) */
.ct-banner { display: none; }

/* ============================================================
   RESPONSIVE — SMALL MOBILE+ (≥415px)
   Thumb becomes visible; ad box unlocked
   ============================================================ */
@media (min-width: 415px) {
  .news-card-thumb {
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
  }
  .ad-box-rect { display: block !important; }
}

/* ============================================================
   RESPONSIVE — TABLET+ (≥769px)
   Larger thumb, full back-to-top, sidebar-friendly layouts
   ============================================================ */
@media (min-width: 769px) {
  .mob-iqra { display: none !important; }
  .fixed-ad { display: block; }
  .home .main-title h2 { font-size: 22px; }
  .main-content > h5 { font-size: 13px; }
  .main-top-wrap .date-right { width: 22%; }
  .main-top-wrap .date-right p { font-size: 14px; }
  .main-top-wrap .date-right p i { display: inline; }
  .main-top-wrap .title-middle { width: 56%; }
  .news-detail-wrap .post { padding: 0 16px; }
  #custom_html-14 { display: block !important; }
  .news-card-thumb { flex: 0 0 88px; width: 88px; height: 64px; }
  .back-to-top { width: 42px; height: 42px; font-size: 18px; bottom: 24px; left: 24px; }
}

/* ============================================================
   RESPONSIVE — DESKTOP (≥1025px)
   Switch from mobile drawer to inline horizontal nav
   ============================================================ */
@media (min-width: 1025px) {
  /* Inline horizontal nav — reset drawer positioning */
  .burger-menu { display: none; }

  .menu-header-menu-container {
    position: static;
    width: auto;
    height: auto;
    top: auto;
    right: auto;
    transform: none;
    background: transparent;
    padding-top: 0;
    overflow-y: visible;
    box-shadow: none;
    transition: none;
    z-index: auto;
    flex: 1;
  }

  .menu-header-menu-container-active {
    right: auto;
    transform: none;
  }

  .menu-header-menu-container ul {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    text-align: center;
    padding: 0;
    gap: 0;
  }

  .menu-header-menu-container ul li {
    display: inline-block;
    width: auto;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,.1);
    background: transparent;
    vertical-align: middle;
    position: relative;
  }

  .menu-header-menu-container ul li:first-child { border-right: none; }

  .menu-header-menu-container ul li a {
    padding: 11px 14px;
    border-radius: 0;
    line-height: 1.2;
  }

  .main-nav { padding: 0; }

  /* Full banner header at desktop */
  .main-header { height: auto; }
  .main-header img { height: auto; object-fit: fill; object-position: center; }

  /* Desktop content layout */
  .main-content { width: 60%; }

  /* Hide old mobile ad strips at desktop */
  .advertisement-head { opacity: 0; visibility: hidden; }
  #advertise-banner   { opacity: 0; visibility: hidden; }
}

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.top-bar {
  width: 100%;
  background: #060e1e;
  padding: 5px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 11px;
  direction: ltr;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.top-bar-tagline {
  font-style: italic;
  color: rgba(255,255,255,.70);
  letter-spacing: 0.3px;
}

.top-bar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
}

.top-bar-date i { color: var(--ct-red); font-size: 10px; }

/* Utility: switch to UI (Latin) font for English text elements */
.ct-ui-hint { font-family: var(--font-ui); }

/* Section divider with top spacing */
.section-divider--mt { margin-top: 14px; }

/* Red top accent border (single post, sidebar) */
.ct-accent-border-top { border-top: 3px solid var(--ct-red) !important; }

/* Post thumbnail max-width constraint */
.ct-post-thumb-img { max-width: 768px; }

/* ============================================================
   NEWS HERO (homepage — first post)
   ============================================================ */
.news-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--ct-shadow-md);
  background: var(--ct-navy);
}

.news-hero-img-wrap {
  height: 285px;
  overflow: hidden;
}

.news-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.news-hero:hover .news-hero-img-wrap img { transform: scale(1.04); }

.news-hero-no-img {
  height: 200px;
  background: linear-gradient(135deg, var(--ct-navy) 0%, var(--ct-navy-mid) 60%, #2a4a7f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: rgba(255,255,255,.15);
}



.news-hero-title {
  margin: 0;
  font-family: var(--font-urdu);
  font-size: 1.35rem;
  line-height: 2.3rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.news-hero-title a {
  color: #fff;
  transition: color var(--ct-transition);
}

.news-hero-title a:hover { color: rgba(255,255,255,.85); }

.news-hero-meta {
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-family: var(--font-ui);
  margin-top: 7px;
  direction: ltr;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-hero-meta i { color: rgba(255,255,255,.55); font-size: 10px; }

/* ============================================================
   NEWS GRID (homepage — posts 2–5, 2×2 layout)
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.news-grid-card {
  background: var(--ct-surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ct-border);
  box-shadow: var(--ct-shadow-sm);
  transition: transform var(--ct-transition), box-shadow var(--ct-transition);
  display: flex;
  flex-direction: column;
}

.news-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.11);
}

.news-grid-thumb {
  height: 118px;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 0; /* suppress alt text on broken images */
  line-height: 0;
  background: var(--ct-bg);
}

.news-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-grid-card:hover .news-grid-thumb img { transform: scale(1.06); }

.news-grid-no-thumb {
  height: 82px;
  background: linear-gradient(135deg, var(--ct-navy-mid), #2a4a7f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: 26px;
  flex-shrink: 0;
}

.news-grid-body {
  padding: 10px 12px;
  text-align: right;
  direction: rtl;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-grid-cat {
  display: inline-block;
  background: var(--ct-red-light);
  color: var(--ct-red);
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  margin-bottom: 5px;
  text-decoration: none;
  transition: background var(--ct-transition), color var(--ct-transition);
  width: fit-content;
}

.news-grid-cat:hover { background: var(--ct-red); color: #fff; }

.news-grid-title {
  font-size: 0.94rem;
  line-height: 2.1rem;
  font-weight: 600;
  color: var(--ct-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-grid-title a {
  color: inherit;
  transition: color var(--ct-transition);
}

.news-grid-title a:hover { color: var(--ct-red); }

.news-grid-date {
  font-size: 10px;
  color: var(--ct-text-muted);
  font-family: var(--font-ui);
  margin-top: 6px;
  direction: ltr;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-grid-date i { color: var(--ct-red); font-size: 9px; }

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  direction: rtl;
}

.section-divider-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--ct-navy);
  padding: 6px 14px;
  white-space: nowrap;
  border-radius: 4px;
  border-right: 3px solid var(--ct-red);
}

.section-dot {
  width: 7px;
  height: 7px;
  background: var(--ct-red);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: freshPulse 2s ease-in-out infinite;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--ct-border));
}

/* ============================================================
   NEWS LIST SECTION (posts 6+)
   ============================================================ */
.news-list-section {
  border: 1px solid var(--ct-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ct-surface);
}

.news-list-section .news-card,
.news-list-section .news-main-row {
  border-radius: 0;
}

.news-list-section .news-card:last-child,
.news-list-section .news-main-row:last-child {
  border-bottom: none;
}

/* ============================================================
   CATEGORY HEADER (category.php)
   ============================================================ */
.cat-page-header {
  padding: 14px 16px 10px;
  border-bottom: 3px solid var(--ct-red);
  margin-bottom: 14px;
  background: var(--ct-navy);
  border-radius: 6px 6px 0 0;
}

.cat-page-header h1 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  font-family: nafees-web-naskh-regular;
  text-align: right;
}

/* Category post items */
.cat-post-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ct-border);
  transition: background var(--ct-transition);
  direction: rtl;
}

.cat-post-item:hover { background: #fafbfd; }
.cat-post-item:last-child { border-bottom: none; }

.cat-post-bullet {
  color: var(--ct-red);
  font-size: 8px;
  margin-top: 22px;
  flex-shrink: 0;
}

.cat-post-title {
  font-family: var(--font-urdu);
  font-size: 1.06rem;
  line-height: 2.55rem;
  font-weight: 600;
  color: var(--ct-text);
  transition: color var(--ct-transition);
  background-image: linear-gradient(var(--ct-red), var(--ct-red));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: right bottom;
  padding-bottom: 1px;
  transition: background-size 0.3s ease, color var(--ct-transition);
}

.cat-post-item:hover .cat-post-title {
  color: var(--ct-red);
  background-size: 100% 1.5px;
}

/* ============================================================
   SINGLE POST — print-area thumbnail
   ============================================================ */
.print-area .post-thumbnail {
  overflow: hidden;
  border-radius: 8px;
  margin: 0 0 16px;
}

.print-area .post-thumbnail img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ============================================================
   RESPONSIVE — new components
   ============================================================ */
@media only screen and (max-width: 1024px) {
  .news-hero-img-wrap { height: 240px; }
}

@media only screen and (max-width: 768px) {
  .news-hero-img-wrap { height: 200px; }
  .news-hero-title { font-size: 1.15rem; line-height: 2.1rem; }
  .news-grid { gap: 8px; }
  .news-grid-thumb { height: 95px; }
  .top-bar-tagline { display: none; }
}

@media only screen and (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-hero-img-wrap { height: 180px; }
}
