:root {
  --red: #0D5C63;
  --dark: #1a2332;
  --mid: #4a5f6f;
  --light: #f4f6f8;
  --border: #e2e6ea;
  --gold: #c45c3e;
  --accent: #0D5C63;
  --ticker-dark: #08454b;
  --bg: linear-gradient(160deg, #f0f4f6 0%, #e8eef2 35%, #dce4ea 100%);
  --text: #1a2332;
  --text-muted: #6b7280;
  --card-bg: #fff;
  --header-border: #0D5C63;
  --nav-bg: transparent;
  --footer-bg: #1a2332;
}

body.dark-mode {
  --bg: linear-gradient(160deg, #0f1419 0%, #1a2332 35%, #0d1117 100%);
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --light: #21262d;
  --card-bg: #161b22;
  --header-border: #0D5C63;
  --nav-bg: #161b22;
  --footer-bg: #0d1117;
}

body.dark-mode .text-dark,
body.dark-mode a.text-dark { color: var(--text) !important; }
body.dark-mode .text-muted { color: var(--text-muted) !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  transition: font-family 0.3s, background 0.3s, color 0.3s;
}

body.fr {
  font-family: 'Source Serif 4', Georgia, serif;
  direction: ltr;
}

/* ─── LANGUAGE BAR + THEME TOGGLE ─── */
.lang-bar {
  background: var(--dark);
  padding: 6px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  direction: ltr; /* fixed layout: sun | Français | العربية – no flip on lang change */
}

.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.2); }
.theme-icon-dark { display: none; }
body.dark-mode .theme-icon-light { display: none; }
body.dark-mode .theme-icon-dark { display: inline; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #243642;
  border-radius: 50px;
  padding: 3px;
  border: 1px solid var(--mid);
}

.lang-btn {
  padding: 5px 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s;
  background: transparent;
  color: #9ca3af;
  letter-spacing: 0.5px;
}

.lang-btn.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13,92,99,0.4);
}

/* ─── BREAKING TICKER ─── */
.ticker-wrap {
  background: var(--red);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 38px;
}

.ticker-label {
  background: var(--ticker-dark);
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.ticker-track {
  display: flex;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
  padding-inline-start: 24px;
  flex: 1;
  min-width: 0;
}

.ticker-track span {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 0 40px;
}

.ticker-track span::before {
  content: '◆';
  margin-inline-end: 12px;
  opacity: 0.6;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

body.fr .ticker-track { animation-direction: reverse; }

/* ─── HEADER ─── */
header {
  border-bottom: 3px solid var(--red);
  padding: 16px 0 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  direction: ltr; /* keep name | logo | social left-to-right in both AR and FR */
}

.header-brand {
  text-decoration: none;
}

.logo-name {
  height: 120px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
}

.header-brand-logo .logo-img {
  height: 120px;
  max-width: 180px;
  display: block;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-main {
  font-family: 'Cairo', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.5px;
  text-decoration: none;
  display: block;
}

body.fr .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
}

.logo-main span { color: var(--red); }

.logo-img {
  display: block;
  height: 100px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.logo-sub {
  font-size: 11px;
  color: #6b7280;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

body.fr .header-meta { align-items: flex-start; }

.date-badge {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.social-row {
  display: flex;
  gap: 8px;
}

.social-icon {
  width: 30px;
  height: 30px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--mid);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-icon:hover { background: var(--red); color: #fff; }

/* ─── NAV ─── */
nav.nav-desktop {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
}

/* Hamburger button – hidden on desktop */
.nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  inset-inline-start: 16px;
  inset-inline-end: auto;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 998;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Side menu overlay – above hamburger so it covers it when open */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.is-open {
  opacity: 1;
}

/* Side menu panel – LTR (French): slides from left */
.nav-side-menu {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  z-index: 1001;
  visibility: hidden;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

/* RTL (Arabic): slides from right – AR content starts right-to-left */
body[dir="rtl"] .nav-side-menu {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
}

.nav-side-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

body[dir="rtl"] .nav-side-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* LTR: padding from left */
.nav-side-inner {
  padding: 80px 24px 24px 24px;
}

/* RTL: padding from right, text aligned right */
body[dir="rtl"] .nav-side-inner {
  padding: 80px 24px 24px 24px;
  text-align: right;
}

.nav-side-link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

/* RTL: active indicator on right */
body[dir="rtl"] .nav-side-link {
  border-left: none;
  border-right: 3px solid transparent;
}

.nav-side-link:hover,
.nav-side-link.active {
  color: var(--red);
  background: rgba(13, 92, 99, 0.06);
}

.nav-side-link.active,
.nav-side-link:hover {
  border-left-color: var(--red);
}

body[dir="rtl"] .nav-side-link.active,
body[dir="rtl"] .nav-side-link:hover {
  border-left-color: transparent;
  border-right-color: var(--red);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  display: block;
}

.nav-link:hover, .nav-link.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ─── MAIN LAYOUT ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ─── HERO GRID ─── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-bottom: 36px;
}

.hero-main {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.hero-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-main .placeholder-img,
.hero-video-wrap {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, #1a2332 0%, #0D5C63 100%);
  display: flex;
  align-items: flex-end;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.hero-embed {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
}
.hero-embed iframe,
.hero-embed video {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 32px 20px 20px;
  color: #fff;
}

.hero-overlay .cat-tag {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.hero-overlay h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

body.fr .hero-overlay h2 { font-family: 'Source Serif 4', serif; }

.hero-overlay .meta {
  font-size: 12px;
  opacity: 0.75;
}

/* hero side stack */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}

.side-card:last-child { border-bottom: none; padding-bottom: 0; }
.side-card:hover { opacity: 0.8; }

.side-card .thumb {
  width: 90px;
  height: 70px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: cover;
}

.side-card .thumb-placeholder {
  width: 90px;
  height: 70px;
  border-radius: 3px;
  flex-shrink: 0;
}

.side-card .info { flex: 1; }

.side-card .cat-mini {
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.side-card h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

body.fr .side-card h3 { font-family: 'Source Serif 4', serif; font-size: 13px; }

.side-card .date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  display: block;
}

/* ─── SECTION HEADERS ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
}

body.fr .section-title { font-family: 'Source Serif 4', serif; }

.section-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  border: 1px solid var(--red);
  padding: 4px 12px;
  border-radius: 2px;
  transition: all 0.2s;
}

.section-more:hover { background: var(--red); color: #fff; }

/* ─── NEWS GRID ─── */
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.news-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.news-card:hover { transform: translateY(-2px); }

.news-card .card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  margin-bottom: 12px;
}

.news-card .card-img-placeholder {
  width: 100%;
  height: 190px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.news-card .cat-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.news-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
}

body.fr .news-card h3 { font-family: 'Source Serif 4', serif; }

.news-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.news-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── VIDEO CARD GRID (2 per row) ─── */
.video-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.video-card {
  border-radius: 4px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.video-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.video-card .video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--dark);
  overflow: hidden;
}

.video-card .video-wrap iframe,
.video-card .video-wrap video {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card .video-body {
  padding: 16px;
}

.video-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
}

body.fr .video-card h3 { font-family: 'Source Serif 4', serif; }

.video-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .video-card-grid { grid-template-columns: 1fr; }
}

/* ─── POST CARD GRID (2 per row, news/economy) ─── */
.post-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.post-card {
  border-radius: 4px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--dark);
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.post-card-body {
  padding: 16px;
}

.post-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
}

body.fr .post-card-body h3 { font-family: 'Source Serif 4', serif; }

.post-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.post-card-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.post-card-meta {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .post-card-grid { grid-template-columns: 1fr; }
}

/* ─── DOUBLE COLUMN ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

/* ─── OPINION ROW ─── */
.opinion-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.opinion-card {
  text-align: center;
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.opinion-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(13,92,99,0.15);
}

.opinion-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 10px;
  object-fit: cover;
}

.opinion-avatar-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.opinion-author {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.opinion-title {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

body.fr .opinion-title { font-family: 'Source Serif 4', serif; }

/* ─── LIST ITEMS ─── */
.list-article {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.list-article:first-child { padding-top: 0; }
.list-article:last-child { border-bottom: none; }

.list-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--border);
  min-width: 36px;
  line-height: 1;
  font-family: 'Cairo', sans-serif;
}

.list-content h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 4px;
}

body.fr .list-content h4 { font-family: 'Source Serif 4', serif; }

.list-content .meta { font-size: 11px; color: var(--text-muted); }

/* ─── FOOTER ─── */
footer {
  background: var(--footer-bg);
  color: #d1d5db;
  padding: 40px 0 20px;
  margin-top: 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  font-family: 'Cairo', sans-serif;
}

.footer-logo a {
  display: inline-block;
  text-decoration: none;
}

.footer-logo-img {
  display: block;
  height: 120px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

body.fr .footer-logo { font-family: 'Playfair Display', serif; font-size: 22px; }
.footer-logo span { color: var(--red); }

.footer-desc { font-size: 13px; line-height: 1.7; color: #9ca3af; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #374151;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 16px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── HIDDEN BY LANG ─── */
.ar-text { display: block; }
.fr-text { display: none; }

body.fr .ar-text { display: none; }
body.fr .fr-text { display: block; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .side-card { width: calc(50% - 8px); border-bottom: none; padding-bottom: 0; border-right: 1px solid var(--border); padding-inline-end: 16px; }
  .news-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .opinion-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Header: smaller logos on tablet */
  .logo-name { height: 90px; max-width: 220px; }
  .header-brand-logo .logo-img { height: 90px; max-width: 130px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .logo-name { height: 80px; max-width: 180px; }
  .header-brand-logo .logo-img { height: 80px; max-width: 110px; }

  /* Switch to hamburger menu on mobile */
  nav.nav-desktop {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-inner {
    display: none !important;
  }
  .nav-overlay,
  .nav-side-menu {
    display: block;
  }
  .nav-overlay {
    pointer-events: none;
  }
  .nav-overlay.is-open {
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  .news-grid-3 { grid-template-columns: 1fr; }
  .opinion-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-main { font-size: 28px; }

  /* Side cards: full width on phones so the title isn't squeezed into a
     narrow column next to the thumbnail (was 50% from the ≤900px rule). */
  .hero-side { gap: 0; }
  .side-card {
    width: 100%;
    border-right: none;
    padding-inline-end: 0;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .side-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .side-card .thumb,
  .side-card .thumb-placeholder { width: 110px; height: 80px; }
  .side-card h3 { font-size: 15px; }
}

/* Phone view (≤480px) – fix header and nav layout */
@media (max-width: 480px) {
  .header-inner { padding: 0 12px; }
  .header-top {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
  }
  .header-brand-name {
    flex: 1 1 auto;
    min-width: 0;
  }
  .logo-name {
    height: 70px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
  }
  .header-brand-logo {
    flex-shrink: 0;
    order: 2;
  }
  .header-brand-logo .logo-img {
    height: 70px;
    max-width: 100px;
  }
  .header-meta {
    flex: 0 0 100%;
    order: 3;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  body.fr .header-meta { align-items: center; }
  .social-row {
    flex-shrink: 0;
    gap: 6px;
  }
  .social-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .date-badge { font-size: 11px; }
}

/* Placeholder color palettes */
.bg-1 { background: linear-gradient(135deg, #1e3a5f, #2980b9); }
.bg-2 { background: linear-gradient(135deg, #2d4a52, #0D5C63); }
.bg-3 { background: linear-gradient(135deg, #1a472a, #27ae60); }
.bg-4 { background: linear-gradient(135deg, #7d3c00, #c45c3e); }
.bg-5 { background: linear-gradient(135deg, #1a2332, #4a5f6f); }
.bg-6 { background: linear-gradient(135deg, #3d3d5c, #5c6b7a); }
.bg-7 { background: linear-gradient(135deg, #08454b, #0D5C63); }
.bg-8 { background: linear-gradient(135deg, #0e6655, #1abc9c); }

/* ─── FACEBOOK VIDEO EMBEDS (responsive SDK) ─── */
/* The Facebook SDK renders each video at its real aspect ratio. We drop the
   fixed 16:9 wrapper for FB videos so portrait reels / vertical lives show in
   full (tall) and landscape videos show wide — never cropped. */
.video-card .video-wrap:has(.fb-video) {
  padding-top: 0;
  height: auto;
  background: #000;
}
.fb-video {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #000;
}
.fb-video > span,
.fb-video iframe {
  max-width: 100% !important;
}
/* In the fixed-height hero, center the embed and clip any overflow gracefully. */
.hero-embed .fb-video {
  position: absolute;
  inset: 0;
  align-items: center;
}

/* ─── NEWS SCOPE TABS (National / Regional / International) ─── */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 2px;
}
.news-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.news-tab:hover { color: var(--text); }
.news-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.news-tab-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--light);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 1px 8px;
  min-width: 20px;
  text-align: center;
}
.news-tab.active .news-tab-count {
  background: var(--accent);
  color: #fff;
}
.news-panel { display: none; }
.news-panel.active { display: block; animation: news-fade 0.25s ease; }
@keyframes news-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }