/*
Theme Name: Nazrban Balochistan News
Theme URI: https://www.nazrbanbalochistan.com
Author: Nazrban Media
Author URI: https://www.nazrbanbalochistan.com
Description: Professional Urdu/English News Theme for Nazrban Balochistan News. Built for Elementor. RTL Ready. SEO Optimized. User Friendly.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: nazrban-news
Tags: news, magazine, rtl-language, urdu, elementor, responsive
*/

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* === THEME VARIABLES === */
:root {
  --nz-red: #C0392B;
  --nz-red-dark: #922B21;
  --nz-red-soft: #FDECEA;
  --nz-gold: #D4A017;
  --nz-ink: #1A1A1A;
  --nz-muted: #6B7280;
  --nz-line: #E5E7EB;
  --nz-bg: #F7F6F3;
  --nz-card: #FFFFFF;
  --nz-urdu: 'Noto Nastaliq Urdu', serif;
  --nz-eng: 'Inter', sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--nz-eng);
  background: var(--nz-bg);
  color: var(--nz-ink);
  margin: 0;
  padding: 0;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* === URDU TYPOGRAPHY === */
.urdu, .entry-title, .post-title,
h1.urdu, h2.urdu, h3.urdu {
  font-family: var(--nz-urdu) !important;
  direction: rtl !important;
  line-height: 2 !important;
}

/* === TOP BAR === */
.nz-topbar {
  background: var(--nz-ink);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  padding: 7px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nz-topbar a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.nz-topbar a:hover { color: var(--nz-gold); }

/* === BREAKING NEWS === */
.nz-breaking {
  background: var(--nz-red);
  color: #fff;
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
}
.nz-breaking .nz-label {
  background: var(--nz-red-dark);
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  gap: 8px;
  flex-shrink: 0;
}
.nz-breaking .nz-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--nz-gold);
  animation: nzPulse 1.2s ease-in-out infinite;
}
@keyframes nzPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(0.7); }
}
.nz-ticker-wrap { flex: 1; overflow: hidden; }
.nz-ticker {
  display: flex;
  white-space: nowrap;
  animation: nzTicker 35s linear infinite;
}
.nz-ticker span {
  font-family: var(--nz-urdu);
  font-size: 14px;
  padding: 0 40px;
  direction: rtl;
}
.nz-ticker span::before {
  content: "◆";
  margin-left: 10px;
  color: var(--nz-gold);
  font-size: 9px;
}
@keyframes nzTicker {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* === SITE HEADER === */
.nz-header {
  background: var(--nz-card);
  border-bottom: 3px solid var(--nz-red);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nz-logo { display: flex; align-items: center; gap: 14px; }
.nz-logo-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nz-red-dark), var(--nz-red));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  font-family: var(--nz-urdu);
  font-weight: 700;
  flex-shrink: 0;
}
.nz-logo-text .nz-sitename {
  font-family: var(--nz-urdu);
  font-size: 22px; font-weight: 700;
  color: var(--nz-ink); direction: rtl;
}
.nz-logo-text .nz-siteeng {
  font-size: 11px; color: var(--nz-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  direction: ltr;
}

/* === NAV === */
.nz-nav {
  background: var(--nz-ink);
  position: sticky; top: 89px; z-index: 99;
}
.nz-nav ul {
  display: flex; list-style: none;
  margin: 0; padding: 0 20px;
  overflow-x: auto;
}
.nz-nav ul li a {
  display: block; color: rgba(255,255,255,0.85);
  padding: 13px 18px; font-size: 13px; font-weight: 500;
  font-family: var(--nz-urdu); direction: rtl;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.nz-nav ul li a:hover,
.nz-nav ul li a.current-menu-item { color: #fff; border-bottom-color: var(--nz-gold); }

/* === LAYOUT === */
.nz-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nz-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 28px 0; }

/* === NEWS CARDS === */
.nz-card {
  background: var(--nz-card);
  border-radius: 10px;
  border: 1px solid var(--nz-line);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nz-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.nz-card-img { aspect-ratio: 16/10; overflow: hidden; }
.nz-card-img img { width: 100%; height: 100%; object-fit: cover; }
.nz-card-body { padding: 16px; }
.nz-card-body h3 {
  font-family: var(--nz-urdu); font-size: 15px;
  font-weight: 600; line-height: 1.8;
  color: var(--nz-ink); direction: rtl;
  margin-bottom: 8px;
}
.nz-cat-pill {
  display: inline-block; background: var(--nz-red);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 4px;
  margin-bottom: 8px; font-family: var(--nz-urdu);
}
.nz-meta { font-size: 11px; color: var(--nz-muted); direction: ltr; }

/* === SECTION TITLE === */
.nz-sec-title {
  font-family: var(--nz-urdu); font-size: 19px; font-weight: 700;
  color: var(--nz-ink); direction: rtl;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--nz-line);
}
.nz-sec-title::before {
  content: ''; width: 4px; height: 22px;
  background: var(--nz-red); border-radius: 2px; flex-shrink: 0;
}

/* === HERO === */
.nz-hero {
  position: relative; border-radius: 12px;
  overflow: hidden; aspect-ratio: 16/9; max-height: 420px;
  background: var(--nz-ink); margin-bottom: 28px;
}
.nz-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.nz-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
  padding: 30px 28px 24px;
}
.nz-hero-overlay h2 {
  font-family: var(--nz-urdu); font-size: 26px;
  font-weight: 700; color: #fff; direction: rtl;
  line-height: 1.6; margin-bottom: 10px;
}

/* === FOOTER === */
.nz-footer { background: #111; color: rgba(255,255,255,0.7); }
.nz-footer-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 20px 36px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.nz-footer h5 {
  font-family: var(--nz-urdu); font-size: 15px; font-weight: 700;
  color: #fff; direction: rtl; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nz-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nz-footer ul li a { font-family: var(--nz-urdu); font-size: 13px; color: rgba(255,255,255,0.6); direction: rtl; transition: color 0.2s; }
.nz-footer ul li a:hover { color: var(--nz-gold); }
.nz-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 20px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.4);
  font-family: var(--nz-urdu); direction: rtl;
}

/* === NEWS POST SINGLE === */
.nz-single { background: var(--nz-card); border-radius: 12px; padding: 32px; margin: 28px 0; }
.nz-single .entry-title {
  font-family: var(--nz-urdu) !important; font-size: 28px !important;
  font-weight: 700 !important; direction: rtl !important;
  line-height: 1.8 !important; margin-bottom: 16px !important;
}
.nz-single .entry-content {
  font-family: var(--nz-urdu); font-size: 17px;
  line-height: 2.2; direction: rtl; color: var(--nz-ink-2);
}
.nz-single .entry-content p { margin-bottom: 18px; }

/* === ADMIN / EDITOR HELPERS === */
.nz-admin-notice {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: 8px; padding: 14px 18px;
  font-family: var(--nz-urdu); direction: rtl;
  font-size: 14px; margin-bottom: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nz-grid { grid-template-columns: 1fr; }
  .nz-footer-grid { grid-template-columns: 1fr 1fr; }
  .nz-hero-overlay h2 { font-size: 18px; }
  .nz-header { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 480px) {
  .nz-footer-grid { grid-template-columns: 1fr; }
}
