/* OFUQ — Professional design system */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-elevated: #FAFAFA;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #8B1E1E;
  --accent-hover: #6E1414;
  --accent-soft: rgba(139, 30, 30, 0.08);
  --border: #E8E8E8;
  --border-strong: #DDDDDD;
  --header-bg: #111111;
  --font-logo: 'Noto Kufi Arabic', sans-serif;
  --font-headline: 'Noto Kufi Arabic', sans-serif;
  --font-body: 'Cairo', sans-serif;
  --font-ui: 'Cairo', sans-serif;
  --container: 1200px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-elevated);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

body.dir-ltr { font-family: 'Cairo', system-ui, sans-serif; }
body.dir-ltr .logo-text,
body.dir-ltr .section-title,
body.dir-ltr .page-title,
body.dir-ltr .hero-title,
body.dir-ltr .article-title,
body.dir-ltr .card-title { font-family: 'Noto Kufi Arabic', 'Cairo', sans-serif; font-weight: 700; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(100% - clamp(1rem, 4vw, 2.5rem), var(--container));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding-top: var(--safe-top);
}

/* Breaking bar */
.breaking-bar {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  background: var(--accent);
  color: #fff;
  padding: .4rem clamp(0.75rem, 3vw, 1rem);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  min-height: 2.25rem;
}

.breaking-label {
  flex-shrink: 0;
  background: var(--accent-hover);
  padding: .2rem .55rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  letter-spacing: .04em;
  line-height: 1.2;
}

.breaking-ticker-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

[dir="rtl"] .breaking-ticker-wrap {
  mask-image: linear-gradient(270deg, transparent, #000 8%, #000 92%, transparent);
}

.breaking-ticker {
  display: flex;
  gap: 2rem;
  width: max-content;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}

.breaking-ticker a,
.breaking-fallback { color: #fff; }
.breaking-ticker a:hover { color: #f0d0d0; }

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

[dir="rtl"] .breaking-ticker { animation-name: ticker-rtl; }
@keyframes ticker-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .breaking-ticker { animation: none; }
  .breaking-ticker-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.menu-open .site-main,
  body.menu-open .site-footer { filter: none; }
}

/* Header main */
.header-main { background: var(--header-bg); }

.header-inner {
  display: flex;
  flex-direction: column;
  padding-block: .75rem;
  gap: 0;
}

.header-top-row {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 0.75rem);
  width: 100%;
}

/* Logo on first side; lang + hamburger on second side */
.header-top-row .logo {
  margin-inline-end: auto;
}

.header-top-row .nav-toggle {
  order: 3;
}

.logo {
  flex-shrink: 1;
  min-width: 0;
}

.logo-img {
  display: block;
  height: clamp(44px, 10vw, 58px);
  width: auto;
  max-width: min(200px, 50vw);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logo-img-footer {
  height: 52px;
  max-width: 220px;
  margin-bottom: 0.5rem;
}

.drawer-logo .logo-img {
  height: 48px;
  max-width: 180px;
}

.drawer-logo .logo-text {
  color: #fff;
}

.logo-text {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  color: #fff !important;
  letter-spacing: -.02em;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Language dropdown — globe trigger */
.lang-dropdown {
  position: relative;
  flex-shrink: 0;
  z-index: 210;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.lang-dropdown-toggle:hover {
  background: transparent;
  color: #fff;
  opacity: 0.85;
}

.lang-dropdown.is-open .lang-dropdown-toggle {
  background: transparent;
  color: #fff;
  opacity: 1;
}

.lang-globe-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 400;
}

.lang-dropdown-menu[hidden] {
  display: none;
}

.lang-dropdown.is-open .lang-dropdown-menu {
  display: block;
}

.lang-dropdown-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.lang-dropdown-option:hover {
  background: var(--bg-secondary);
  color: var(--accent);
}

.lang-dropdown-option.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.lang-dropdown-label {
  flex: 1;
  min-width: 0;
}

.lang-dropdown-check {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile sidebar — slides from second side (end) */
.header-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(300px, 86vw);
  max-width: 100%;
  background: linear-gradient(165deg, #1c1c1c 0%, #111111 45%, #0d0d0d 100%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.38s;
}

.header-panel::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-hover), var(--accent), var(--accent-hover));
  z-index: 1;
}

body.dir-rtl .header-panel {
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(-100%);
}

.header-panel.is-open,
body.dir-rtl .header-panel.is-open {
  visibility: visible;
  transform: translateX(0);
  z-index: 320;
}

.header-actions-desktop { display: none; }

/* Drawer brand header */
.drawer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(1.35rem + var(--safe-top)) 1.35rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.drawer-logo {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.drawer-logo:hover { color: #fff; }

.drawer-tagline {
  margin-top: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #888;
  line-height: 1.45;
  max-width: 22ch;
}

body.dir-rtl .drawer-top,
body.dir-rtl .drawer-nav,
body.dir-rtl .drawer-footer {
  direction: rtl;
  text-align: right;
}

body.dir-rtl .drawer-nav .nav-item {
  flex-direction: row-reverse;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: #ccc;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.drawer-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Drawer navigation */
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0.85rem;
  border: none;
  gap: 0.35rem;
}

.drawer-nav .nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  color: #e8e8e8;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  transition: background 0.2s, color 0.2s, padding-inline-start 0.2s;
  position: relative;
}

.drawer-nav .nav-item::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transition: height 0.2s ease;
}

body.dir-rtl .drawer-nav .nav-item::before {
  border-radius: 2px 0 0 2px;
}

.drawer-nav .nav-item:hover,
.drawer-nav .nav-item:focus-visible {
  background: rgba(139, 30, 30, 0.12);
  color: #fff;
  padding-inline-start: 1.15rem;
}

.drawer-nav .nav-item:hover::before,
.drawer-nav .nav-item:focus-visible::before {
  height: 60%;
}

.drawer-nav .nav-item-home {
  background: rgba(139, 30, 30, 0.18);
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.drawer-nav .nav-item-home::before {
  height: 70%;
}

.drawer-nav .nav-item-home .nav-item-arrow { display: none; }

.nav-item-arrow {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
}

body.dir-rtl .nav-item-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

.drawer-nav .nav-item:hover .nav-item-arrow {
  opacity: 1;
  transform: translateX(3px);
}

body.dir-rtl .drawer-nav .nav-item:hover .nav-item-arrow {
  transform: scaleX(-1) translateX(-3px);
}

/* Drawer footer — languages */
.drawer-footer {
  padding: 1.15rem 1.25rem calc(1.25rem + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.drawer-footer-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 0.65rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  pointer-events: none;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Header bar stays sharp — overlay only covers page content behind it */
.site-header.menu-active {
  z-index: 300;
}

.site-header.menu-active .breaking-bar,
.site-header.menu-active .header-main {
  position: relative;
  z-index: 310;
}

.site-header.menu-active .header-top-row {
  position: relative;
  z-index: 311;
}

.site-header.menu-active .nav-overlay {
  z-index: 160;
}

.main-nav {
  display: flex;
  flex-direction: column;
}

.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.search-form {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  padding: .65rem .85rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  outline: none;
}

.search-form input::placeholder { color: #999; }

.search-form button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form button:hover { background: var(--accent-hover); }

/* ========== MAIN CONTENT ========== */
.site-main {
  min-height: 50vh;
  padding-block: clamp(1.5rem, 5vw, 2.5rem);
  padding-bottom: calc(clamp(1.5rem, 5vw, 2.5rem) + var(--safe-bottom));
}

.section-block {
  margin-bottom: clamp(2rem, 6vw, 3rem);
}

.section-alt {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-inline: 0;
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--border);
}

.section-header .section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.section-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-inline-start: 0.85rem;
}

.section-title::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header .section-title::before {
  display: block;
}

.page-header {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
}

.page-header-category {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent-hover);
}

.breadcrumb span[aria-hidden] {
  color: var(--border-strong);
}

.page-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-desc {
  color: var(--text-secondary);
  margin-top: 0.65rem;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  line-height: 1.6;
  max-width: 60ch;
}

/* Hero */
.hero-section {
  margin-bottom: clamp(2rem, 6vw, 3rem);
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

@media (hover: hover) {
  .hero-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: inherit;
  }
}

.hero-card:hover { color: inherit; }

.hero-image {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: var(--bg-secondary);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .hero-card:hover .hero-image img {
    transform: scale(1.04);
  }
}

.hero-image .badge {
  z-index: 2;
  top: 1rem;
  inset-inline-start: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
}

.hero-content {
  padding: clamp(1.25rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.hero-category {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-excerpt {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-content .btn-primary {
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(139, 30, 30, 0.3);
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
}

/* Always 2 per row (featured & latest) — all screen sizes */
.news-grid.news-grid-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 2.5vw, 1.5rem);
}

.news-grid.news-grid-pair .news-card {
  min-width: 0;
}

/* Taller, consistent thumbnails in the 2-column featured/latest grids */
.news-grid.news-grid-pair .card-image-link {
  aspect-ratio: 4 / 3;
  min-height: clamp(140px, 38vw, 240px);
}

.news-grid.news-grid-pair .card-title {
  font-size: clamp(0.8rem, 2.8vw, 1.05rem);
  line-height: 1.35;
}

.news-grid.news-grid-pair .card-excerpt {
  display: none;
}

@media (min-width: 600px) {
  .news-grid.news-grid-pair .card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-grid.news-grid-pair .card-title {
    font-size: 1.05rem;
  }
}

.featured-section .section-header {
  margin-bottom: 1.25rem;
}

.news-grid-sm {
  grid-template-columns: 1fr;
}

.news-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
  }
}

.card-image-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
  isolation: isolate;
}

.card-image-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transition: transform .3s;
}

.card-image-link .badge {
  z-index: 2;
}

@media (hover: hover) {
  .news-card:hover .card-image-link img { transform: scale(1.03); }
}

.card-body {
  padding: clamp(1rem, 3vw, 1.25rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
}

.card-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.02rem, 3vw, 1.12rem);
  line-height: 1.4;
  margin: 0 0 0.5rem;
  flex: 1;
}

.card-title a {
  color: var(--text-primary);
  transition: color var(--transition);
}

.card-title a:hover { color: var(--accent); }

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-meta time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-meta time::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* Badges & buttons */
.badge {
  position: absolute;
  top: .65rem;
  inset-inline-start: .65rem;
  padding: .2rem .55rem;
  font-size: .65rem;
  font-weight: 600;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.badge-breaking, .badge-featured { background: var(--accent); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.35rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139, 30, 30, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 30, 30, 0.35);
  transform: translateY(-1px);
}

/* Article */
.article-page {
  width: min(100%, 720px);
  margin-inline: auto;
  padding-inline: 0;
}

.article-page.container {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  margin-top: 0;
  margin-bottom: 2rem;
}

.article-header {
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.article-category {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-soft);
  border-radius: 4px;
}

.article-category:hover {
  background: var(--accent);
  color: #fff;
}

.article-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--text-primary);
  word-wrap: break-word;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-ui);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.article-meta span + span::before {
  content: '·';
  margin-inline: 0.5rem;
  color: var(--border-strong);
}

.article-figure {
  margin: 0 0 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-figure img {
  width: 100%;
}

.article-body {
  font-size: clamp(1.05rem, 2.5vw, 1.125rem);
  line-height: 1.9;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.article-body p {
  margin-bottom: 1.25em;
}

.article-lang-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-family: var(--font-ui);
  font-size: .875rem;
}

/* Category pills (legacy) */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pill {
  padding: 0.55rem 1.15rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(0.8rem, 2.5vw, 0.875rem);
  transition: all var(--transition);
}

.pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 30, 30, 0.25);
}

/* ========== CATEGORIES (simple nav) ========== */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-nav a {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.category-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.section-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  align-self: center;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(139, 30, 30, 0.2);
  transition: background var(--transition), border-color var(--transition),
    box-shadow var(--transition), transform var(--transition);
}

.section-more-btn::after {
  content: '';
  width: 0.45em;
  height: 0.45em;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: -0.1em;
  transition: transform var(--transition);
}

body.dir-rtl .section-more-btn::after {
  transform: rotate(135deg);
}

.section-more-btn:hover {
  color: #fff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(139, 30, 30, 0.35);
  transform: translateY(-1px);
}

body.dir-rtl .section-more-btn:hover::after {
  transform: rotate(135deg) translate(-2px, 2px);
}

body.dir-ltr .section-more-btn:hover::after {
  transform: rotate(-45deg) translate(2px, -2px);
}

.blog-section .section-header {
  align-items: center;
}

@media (max-width: 480px) {
  .blog-section .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .section-more-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
  }
}

/* ========== BLOG ========== */
.blog-section {
  padding-bottom: 0.5rem;
}

.page-header-blog {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.page-header-blog .breadcrumb {
  justify-content: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.blog-grid .blog-card--featured {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
  }

  .blog-grid .blog-card--featured {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .blog-grid--page,
  .blog-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-grid--page .blog-card--featured,
  .blog-grid--compact .blog-card--featured {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (min-width: 992px) {
  .blog-grid--page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}

@media (hover: hover) {
  .blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
  }
}

.blog-card--featured {
  flex-direction: column;
}

@media (min-width: 600px) {
  .blog-card--featured {
    flex-direction: row;
  }

  .blog-card--featured .blog-card__media {
    flex: 1.1;
    min-height: 220px;
    aspect-ratio: auto;
  }

  .blog-card--featured .blog-card__body {
    flex: 1;
    justify-content: center;
    padding: 1.5rem 1.75rem;
  }
}

.blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: background var(--transition);
}

.blog-card__play svg {
  width: 52px;
  height: 52px;
  color: #fff;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.blog-card:hover .blog-card__play {
  background: rgba(139, 30, 30, 0.45);
}

.blog-card__video-badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  z-index: 2;
}

.blog-card__body {
  padding: clamp(1rem, 3vw, 1.25rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.blog-card__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.12rem);
  line-height: 1.35;
  margin: 0;
}

.blog-card__title a {
  color: var(--text-primary);
}

.blog-card__title a:hover {
  color: var(--accent);
}

.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.blog-card__link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.25rem;
}

.blog-card__link:hover {
  color: var(--accent-hover);
}

/* Blog article video */
.blog-video-wrap {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.blog-video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}

.blog-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-video-player {
  width: 100%;
  display: block;
  max-height: 70vh;
  background: #000;
}

.blog-article .breadcrumb {
  justify-content: center;
  margin-bottom: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Search page */
.search-form-lg {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.search-form-lg input {
  width: 100%;
  border: none;
  background: var(--bg-primary);
  padding: .75rem 1rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  outline: none;
  color: var(--text-primary);
  border-radius: var(--radius);
}

.search-form-lg .btn { width: 100%; }

.results-count {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-top: 2rem;
}

.pagination a {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: .9rem;
}

.pagination a.active,
.pagination a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: clamp(3rem, 10vw, 4rem) 1.5rem;
  font-family: var(--font-ui);
  background: var(--bg-primary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--header-bg);
  color: #ccc;
  padding: clamp(2.5rem, 8vw, 4rem) 0 calc(1.25rem + var(--safe-bottom));
  margin-top: clamp(2rem, 6vw, 4rem);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-hover), var(--accent), var(--accent-hover));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 36rem;
}

.footer-brand .logo-img-footer {
  margin-inline: auto;
}

.footer-brand .logo-text {
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 800;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
  max-width: 36ch;
  margin-inline: auto;
}

.footer-col {
  width: 100%;
  max-width: 14rem;
}

.footer-col-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.footer-links a {
  color: #aaa;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: #aaa;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666;
  font-family: var(--font-ui);
}

/* ========== TABLET (600px+) ========== */
@media (min-width: 600px) {
  .news-grid:not(.news-grid-pair) {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid-sm {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-form-lg {
    flex-direction: row;
    align-items: stretch;
    max-width: 520px;
    padding: .35rem;
  }

  .search-form-lg input { flex: 1; }
  .search-form-lg .btn { width: auto; min-width: 100px; }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
  }

  .footer-brand {
    flex: 1 1 100%;
    max-width: 40rem;
  }

  .footer-col {
    flex: 0 1 auto;
    min-width: 10rem;
  }

  .footer-bottom {
    flex: 1 1 100%;
  }
}

/* ========== DESKTOP HEADER (992px+) ========== */
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .nav-overlay { display: none !important; }
  .drawer-top,
  .drawer-footer { display: none; }

  .header-actions-desktop { display: flex; }

  .drawer-nav .nav-item::before,
  .drawer-nav .nav-item-arrow { display: none; }

  .header-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding-block: .85rem;
    gap: 1rem 1.5rem;
  }

  .header-top-row {
    flex: 0 0 auto;
    width: auto;
  }

  .header-top-row .logo {
    margin-inline-end: 0;
  }

  .header-panel {
    position: static;
    inset: auto;
    width: auto;
    flex: 1;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 0;
    box-shadow: none;
    visibility: visible !important;
    transform: none !important;
    overflow: visible;
    max-height: none;
    background: transparent;
  }

  .header-panel::before { display: none; }

  .main-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    border: none;
    flex: 1;
    justify-content: center;
  }

  .main-nav a {
    font-size: 0.875rem;
    padding: 0.4rem 0;
    border: none;
    white-space: nowrap;
    background: none;
    border-radius: 0;
    color: #ccc;
    position: relative;
  }

  .main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
  }

  .main-nav a:hover {
    color: #fff;
    background: none;
  }

  .main-nav a:hover::after {
    transform: scaleX(1);
  }

  .drawer-nav .nav-item {
    font-size: 0.875rem;
    padding: 0.35rem 0;
    border: none;
    white-space: nowrap;
    background: none;
    border-radius: 0;
  }

  .drawer-nav .nav-item:hover {
    padding-inline: 0;
    margin-inline: 0;
    background: none;
    color: #fff;
  }

  .drawer-nav .nav-item-home {
    background: none;
    font-weight: 500;
    margin-bottom: 0;
  }

  .header-actions {
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin: 0;
    border: none;
    gap: .75rem;
    flex-shrink: 0;
  }

  .search-form {
    width: auto;
    min-width: 160px;
    max-width: 200px;
  }

  .search-form input {
    font-size: .85rem;
    padding: .45rem .65rem;
  }

  .search-form button {
    background: transparent;
    color: #ccc;
    padding: .45rem .55rem;
  }

  .search-form button:hover { color: #fff; background: transparent; }

}

/* ========== LARGE DESKTOP (1100px+) ========== */
@media (min-width: 1100px) {
  .hero-card {
    grid-template-columns: 1.15fr 1fr;
  }

  .hero-image {
    aspect-ratio: auto;
    min-height: 380px;
  }

  .hero-image::after {
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
  }

  .hero-content {
    padding: 2.5rem;
  }

  .news-grid:not(.news-grid-pair) {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid-sm {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-form { max-width: 220px; }

  .main-nav { gap: 1.25rem; }
  .main-nav a { font-size: .9rem; }
}

/* ========== SMALL PHONES ========== */
@media (max-width: 380px) {
  .breaking-label {
    font-size: 0;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
  }

  .lang-dropdown-toggle {
    width: 40px;
    height: 40px;
  }

  .lang-globe-svg {
    width: 20px;
    height: 20px;
  }

  .header-panel { width: min(100%, 100vw); }
}

/* ========== MID TABLET (768px) ========== */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-card {
    grid-template-columns: 1fr 1fr;
  }

  .hero-image { min-height: 240px; }

  .news-grid:not(.news-grid-pair) {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== GLOBAL RESPONSIVE POLISH ========== */
.hero-card,
.news-card,
.article-page,
.admin-card,
.pill,
.btn {
  max-width: 100%;
}

.article-figure img,
.card-image-link img,
.hero-image img {
  width: 100%;
}

.card-image-link img,
.hero-image img {
  height: 100%;
  max-width: none;
}

.page-header .btn,
.empty-state .btn {
  width: 100%;
  max-width: 280px;
}

@media (min-width: 600px) {
  .page-header .btn,
  .empty-state .btn {
    width: auto;
  }
}

.pagination a {
  min-width: 44px;
  min-height: 44px;
}

input,
select,
textarea,
button {
  font-size: max(16px, 1rem);
}

@media (min-width: 992px) {
  input,
  select,
  textarea,
  button {
    font-size: inherit;
  }

  .search-form input {
    font-size: 0.85rem;
  }
}

.section-alt {
  padding-inline: max(1rem, calc(50vw - var(--container) / 2 + 1rem));
}

table { max-width: 100%; }

.word-break {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ========== LIVE TIMELINE FEED (Latest News) ========== */
.live-feed-section {
  background: #0a0a0a;
  color: #fff;
  margin-inline: calc(-50vw + 50%);
  margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
  padding: clamp(1.75rem, 5vw, 2.5rem) max(1rem, calc(50vw - var(--container) / 2 + 1rem));
  border-bottom: 3px solid var(--accent);
}

.live-feed-container {
  max-width: 560px;
  margin-inline: auto;
}

.live-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.live-feed-header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.live-feed-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

.live-feed-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.live-feed-clock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(139, 30, 30, 0.6);
  animation: live-clock-pulse 1.8s ease-out infinite;
}

@keyframes live-clock-pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 30, 30, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(139, 30, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 30, 30, 0); }
}

.live-feed-clock-time {
  font-family: 'Cairo', ui-monospace, monospace;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: #fff;
  direction: ltr;
  unicode-bidi: isolate;
}

body.dir-rtl .live-feed-clock-time {
  font-family: 'Noto Kufi Arabic', 'Cairo', ui-monospace, monospace;
}

@media (prefers-reduced-motion: reduce) {
  .live-feed-clock-dot {
    animation: none;
  }
}

.live-feed-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.live-feed-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  color: #fff;
  margin: 0;
  letter-spacing: 0.01em;
}

.live-feed-title-clock svg {
  width: 20px;
  height: 20px;
}

body.dir-rtl .live-feed-title,
body.dir-rtl .live-feed-text,
body.dir-rtl .live-feed-tag {
  font-family: 'Noto Kufi Arabic', 'Cairo', sans-serif;
}

/* LTR (EN/FR): timeline rail on the right */
.live-feed-body {
  display: grid;
  grid-template-columns: 1fr 14px;
  column-gap: 1rem;
  align-items: stretch;
  margin-top: 1.75rem;
}

.live-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-column: 1;
  grid-row: 1;
  text-align: start;
}

.live-feed-rail {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14px;
  min-height: 100%;
}

/* Arabic RTL: timeline switched to the left */
body.dir-rtl .live-feed-body {
  grid-template-columns: 14px 1fr;
}

body.dir-rtl .live-feed-list {
  grid-column: 2;
  text-align: end;
}

body.dir-rtl .live-feed-rail {
  grid-column: 1;
}

body.dir-rtl .live-feed-link {
  text-align: end;
}

.live-feed-rail-cap {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.live-feed-rail-line {
  flex: 1;
  width: 2px;
  min-height: 2rem;
  background: var(--accent);
  margin-block: 4px;
}

.live-feed-item {
  position: relative;
  padding-bottom: 1.25rem;
  text-align: start;
}

.live-feed-item:last-child {
  padding-bottom: 0;
}

.live-feed-item-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

/* Item meta row sits next to the rail */
body.dir-ltr .live-feed-item-head {
  justify-content: flex-end;
}

body.dir-rtl .live-feed-item-head {
  justify-content: flex-end;
}

.live-feed-time {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.live-feed-item-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  line-height: 0;
}

.live-feed-item-clock svg {
  width: 18px;
  height: 18px;
  display: block;
}

.live-feed-link {
  display: block;
  text-decoration: none;
  color: #fff;
  line-height: 1.7;
  text-align: start;
  transition: opacity 0.2s;
}

.live-feed-link:hover {
  color: #fff;
  opacity: 0.85;
}

.live-feed-item.is-breaking .live-feed-link,
.live-feed-item.is-breaking .live-feed-text {
  color: var(--accent);
}

.live-feed-tag::after {
  content: ':';
  margin-inline-start: 0.1em;
}

.live-feed-tag {
  font-weight: 700;
}

.live-feed-text {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 500;
}

