@import url("https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap");

/*
Theme Name: Naya Ujala Broadcast RTL Better Fonts
Theme URI: https://www.nayaujala.com/
Author: OpenAI
Description: Modern RTL news WordPress theme with improved Urdu fonts, moving ticker, social buttons, widgets, and responsive layout.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: nayaujala-broadcast
*/

:root {
  --accent: #c5161d;
  --dark: #111111;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f5f5f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: #111827;
  direction: rtl;
  text-align: right;
  font-family: "Noto Sans Arabic", Arial, sans-serif;
  line-height: 2;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1220px, 94%); margin: 0 auto; }

body,
body .container,
body .main-content,
body .sidebar,
body .entry-content-wrap,
body .entry-content,
body .single-post,
body article,
body section,
body p,
body li,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .site-title,
body .site-tagline,
body .entry-title,
body .widget-title,
body .search-form input,
body input,
body textarea {
  text-align: right !important;
}

body .site-title,
body .entry-title,
body .section-title h2,
body .widget-title,
body .ticker-label,
body .live-badge,
body .primary-menu > li > a {
  font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", serif;
}

body .site-title {
  font-size: 32px;
  line-height: 1.5;
}
body .entry-title {
  line-height: 1.65;
}
body .hero-main .entry-title {
  line-height: 1.55;
}
body .single-post .entry-title {
  line-height: 1.45;
}
body p,
body li,
body .entry-content,
body .entry-meta,
body .site-tagline,
body .search-form input,
body .search-form input::placeholder,
body .footer-bottom,
body .widget,
body .footer-widget-block {
  font-family: "Noto Sans Arabic", Arial, sans-serif;
}

.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 14px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  direction: rtl;
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.live-badge {
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
  transition: all .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.social-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.branding {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  direction: rtl;
}
.logo-wrap img { max-height: 70px; width: auto; }
.site-title {
  margin: 0;
  font-weight: 800;
}
.site-title a { color: inherit; }
.site-tagline {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.header-search { min-width: 260px; }
.search-form {
  display: flex;
  gap: 8px;
  flex-direction: row-reverse;
}
.search-form input[type="search"] {
  width: 100%;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.search-form button {
  padding: 11px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-family: "Noto Sans Arabic", Arial, sans-serif;
}

.navbar {
  background: var(--accent);
  color: #fff;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  direction: rtl;
}
.primary-menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  direction: rtl;
}
.primary-menu > li > a {
  display: block;
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
}
.primary-menu > li > a:hover { background: rgba(255,255,255,.12); }

.ticker {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.ticker-inner {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  direction: rtl;
}
.ticker-label {
  background: var(--accent);
  color: #fff;
  text-align: center !important;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
}
.ticker-items {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  direction: rtl;
}
.ticker-track {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  min-width: max-content;
  animation: nayaujalaTickerRTL 30s linear infinite;
  will-change: transform;
}
.ticker-items:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-track a {
  color: #111827;
  font-weight: 700;
  display: inline-block;
  font-family: "Noto Sans Arabic", Arial, sans-serif;
}
@keyframes nayaujalaTickerRTL {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.content-wrap { padding: 28px 0 0; }
.main-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) 340px;
  gap: 28px;
  direction: rtl;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 20px;
  direction: rtl;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.entry-content-wrap { padding: 16px; }
.entry-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.hero-main .entry-title {
  font-size: 36px;
  margin: 0 0 10px;
}
.entry-title {
  margin: 0 0 8px;
}
.hero-side-list,
.widget-list,
.footer-list {
  list-style: none;
  direction: rtl;
}
.hero-side-list li,
.widget-list li,
.footer-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.hero-side-list li:last-child,
.widget-list li:last-child,
.footer-list li:last-child { border-bottom: none; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
  border-bottom: 3px solid var(--accent);
  direction: rtl;
}
.section-title h2 {
  margin: 0;
  padding-bottom: 10px;
  font-size: 24px;
}
.section-title a {
  color: var(--accent);
  font-weight: 700;
  padding-bottom: 10px;
  font-family: "Noto Sans Arabic", Arial, sans-serif;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  direction: rtl;
}
.news-card .entry-title { font-size: 21px; }

.sidebar .widget,
.footer-widget-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}
.widget-title {
  margin: 0 0 12px;
  font-size: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
  direction: rtl;
}
.single-post {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}
.single-post .entry-title {
  font-size: 40px;
  margin: 0 0 12px;
}
.entry-content img { margin: 18px auto; }
.entry-content p { margin: 0 0 14px; }
.pagination-wrap { margin-top: 22px; }

.site-footer {
  margin-top: 36px;
  background: var(--dark);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
  padding: 34px 0;
  direction: rtl;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 0;
  font-size: 14px;
  color: rgba(255,255,255,.86);
  text-align: center !important;
}
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 991px) {
  .branding { grid-template-columns: 1fr; }
  .topbar-inner, .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ticker-inner, .main-grid, .hero-grid, .news-grid, .archive-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-search { width: 100%; min-width: 0; }
  .hero-main .entry-title, .single-post .entry-title { font-size: 30px; }
}
@media (max-width: 640px) {
  .primary-menu > li > a { padding: 12px 12px; }
  .site-title { font-size: 28px; }
  .ticker-track { animation-duration: 22s; }
}
