/* News channel theme — inspired by Urdu news portals like Qaumi Awaz */

:root {
  --color-primary: #8b0000;
  --color-primary-dark: #5c0000;
  --color-accent: #c41e3a;
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-border: #e5e5e5;
  --color-bg: #f7f5f2;
  --color-white: #fff;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Source Sans 3", serif;
  --container: 1200px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[dir="rtl"] body {
  font-family: var(--font-urdu);
}

[dir="ltr"] body {
  font-family: var(--font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.breaking-bar {
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  overflow: hidden;
}

.breaking-label {
  background: var(--color-accent);
  padding: 0.15rem 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.breaking-ticker {
  display: flex;
  gap: 2rem;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}

.breaking-ticker a {
  color: var(--color-white);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.header-main {
  border-bottom: 3px solid var(--color-primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.site-logo:hover {
  color: inherit;
}

.logo-img {
  border-radius: 4px;
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.site-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle:hover {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

.lang-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

[dir="rtl"] .lang-toggle__label {
  font-family: var(--font-urdu);
}

.header-search {
  display: flex;
  gap: 0;
}

.header-search input {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  min-width: 200px;
  font: inherit;
}

.header-search button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.header-search button:hover {
  background: var(--color-primary-dark);
}

.main-nav {
  background: var(--color-primary-dark);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nav-link {
  color: var(--color-white);
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.nav-disabled {
  opacity: 0.5;
  padding: 0.75rem 1.1rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Main */
.site-main {
  padding: 2rem 0 3rem;
  min-height: 60vh;
}

.section-heading {
  font-size: 1.35rem;
  color: var(--color-primary);
  border-inline-start: 4px solid var(--color-accent);
  padding-inline-start: 0.75rem;
  margin: 0 0 1.25rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.section-header .section-heading {
  margin: 0;
}

.view-all {
  font-weight: 600;
  font-size: 0.9rem;
}

.category-section {
  margin-top: 2.5rem;
}

.section-intro {
  color: var(--color-muted);
  margin: 0 0 1rem;
}

/* Hero */
.hero-section {
  margin-bottom: 2rem;
}

.hero-card {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  color: var(--color-white);
  box-shadow: var(--shadow);
}

.hero-card:hover {
  color: var(--color-white);
}

.hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.hero-category {
  background: var(--color-accent);
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-title {
  margin: 0.5rem 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.25;
}

.hero-excerpt {
  margin: 0.5rem 0;
  opacity: 0.9;
  max-width: 700px;
}

.hero-meta {
  font-size: 0.9rem;
  opacity: 0.85;
  display: flex;
  gap: 1rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.article-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card-link {
  display: block;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
}

.card-title {
  margin: 0.35rem 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-excerpt {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.card-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Layout */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
}

@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  background: var(--color-white);
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.sidebar-heading {
  margin: 0 0 1rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
}

.sidebar-list a {
  color: var(--color-text);
  font-size: 0.95rem;
}

.featured-strip,
.latest-section {
  margin-top: 2rem;
}

/* Article detail */
.article-detail {
  max-width: 800px;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-category {
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 2.25;
  margin: 0.5rem 0;
  color: var(--color-primary-dark);
}

.article-meta {
  color: var(--color-muted);
  display: flex;
  gap: 1rem;
}

.article-featured-image {
  margin: 0 0 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.article-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-muted);
  border-inline-start: 4px solid var(--color-primary);
  padding-inline-start: 1rem;
}

.article-body {
  background: var(--color-white);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 1.05rem;
}

.article-body p {
  margin: 0 0 1rem;
}

.bilingual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.bilingual-urdu,
.bilingual-en {
  min-width: 0;
}

.bilingual-urdu {
  font-family: var(--font-urdu);
  line-height: 1.75;
  text-align: right;
  padding: 1rem;
}

.bilingual-en {
  font-family: var(--font-sans);
  color: var(--color-muted);
  font-size: 0.95rem;
  font-style: italic;
  direction: ltr;
  text-align: left;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
}

.bilingual-en * {
  direction: ltr;
}

@media (max-width: 900px) {
  .bilingual {
    grid-template-columns: 1fr;
  }
}

.share-bar {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.category-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.category-header h1 {
  margin: 0;
  color: var(--color-primary);
  font-size: 2rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--color-muted);
}

/* Footer — Qaumi Awaz style */
.qa-footer {
  background: #111111;
  color: #b8b8b8;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

.qa-footer__inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding: 2rem 0 1.5rem;
}

.qa-footer a {
  color: #e8e8e8;
  text-decoration: none;
}

.qa-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.qa-footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 2rem 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2a2a2a;
}

@media (max-width: 900px) {
  .qa-footer__top {
    grid-template-columns: 1fr;
  }
}

.qa-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.qa-footer__logo {
  display: inline-flex;
  align-items: center;
}

.qa-footer__logo-img {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
}

.qa-footer__logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.qa-footer__follow-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
  margin-bottom: 0.6rem;
}

.qa-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.qa-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #111 !important;
  text-decoration: none !important;
}

.qa-footer__social-link:hover {
  background: #e0e0e0;
  color: #111 !important;
}

.qa-footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.qa-footer__cta-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid #fff;
  border-radius: 2px;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.qa-footer__cta-btn:hover {
  background: #fff;
  color: #111 !important;
}

.qa-footer__sections {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-content: flex-start;
}

[dir="rtl"] .qa-footer__sections {
  justify-content: flex-end;
}

.qa-footer__sections li {
  margin: 0;
}

.qa-footer__sections a {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.qa-footer__bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.qa-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  margin-bottom: 1rem;
}

.qa-footer__legal a {
  font-size: 0.8rem;
  color: #aaa;
  padding: 0 0.65rem;
  border-right: 1px solid #444;
}

.qa-footer__legal a:last-child {
  border-right: none;
}

.qa-footer__legal a:hover {
  color: #fff;
}

.qa-footer__copyright {
  margin: 0;
  font-size: 0.8rem;
  color: #888;
}

.standard-page {
  padding: 2rem 0 3rem;
}

.standard-page__body {
  background: var(--color-white);
  padding: 1.5rem 2rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
  line-height: 1.75;
}

.standard-page__body ul {
  padding-inline-start: 1.5rem;
}

/* Search */
.search-page {
  padding: 2rem 0;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results-list li {
  background: var(--color-white);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.pagination {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
}
