/* ============================================================
   SOUTHERN GEOPOLITICS — Main Stylesheet
   Inspired by The Atlantic editorial design language
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --red:          #C41230;   /* Atlantic coral-red — logo, accents, categories */
  --navy:         #1A2744;   /* Deep navy — strategic sidebar */
  --dark:         #111111;   /* Near-black headlines */
  --text:         #1a1a1a;
  --text-mid:     #444444;
  --text-light:   #717171;
  --bg:           #FFFFFF;
  --bg-off:       #F5F3EF;   /* Alternating section background */
  --bg-dark:      #1A2744;
  --border:       #E5E2DB;
  --border-strong:#C8C4BB;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Lora', Georgia, 'Times New Roman', serif;
  --font-ui:      'Raleway', system-ui, sans-serif;
  --container:    1260px;
  --ease:         0.18s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color var(--ease); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
address { font-style: normal; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-strong);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0;
  height: 88px;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
  text-decoration: none;
  gap: 0;
}
.site-logo__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: #8B1A2B;
  margin-bottom: 0;
  line-height: 1;
}
.site-logo__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.1rem;
  color: #8B1A2B;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color var(--ease);
}
.site-logo:hover .site-logo__eyebrow,
.site-logo:hover .site-logo__name { color: #6a1220; }

/* Navigation */
.main-nav { display: flex; align-items: center; flex: 1; }
.main-nav__list { display: flex; align-items: center; }
.main-nav__item { position: relative; }
.main-nav__link {
  display: block;
  padding: 8px 13px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  white-space: nowrap;
  transition: color var(--ease);
}
.main-nav__link:hover,
.main-nav__item.current-menu-item .main-nav__link { color: var(--red); }

/* Dropdown */
.main-nav__item:hover .main-nav__dropdown { display: block; }
.main-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--bg);
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  z-index: 300;
}
.main-nav__dropdown li a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  transition: color var(--ease);
}
.main-nav__dropdown li:last-child a { border-bottom: none; }
.main-nav__dropdown li a:hover { color: var(--red); }

/* Header right cluster */
.site-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  transition: border-color var(--ease), color var(--ease);
  white-space: nowrap;
}
.lang-switcher__toggle:hover { border-color: var(--dark); color: var(--dark); }
.lang-switcher__globe { font-size: 0.9rem; }
.lang-switcher__arrow {
  font-size: 0.6rem;
  transition: transform var(--ease);
  opacity: 0.6;
}
.lang-switcher__toggle[aria-expanded="true"] .lang-switcher__arrow { transform: rotate(180deg); }

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg);
  border-top: 2px solid var(--red);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  min-width: 170px;
  z-index: 400;
  padding: 4px 0;
}
.lang-switcher__dropdown.is-open { display: block; }
.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color var(--ease);
}
.lang-switcher__option:hover { color: var(--red); }
.lang-switcher__option.is-active { color: var(--red); font-weight: 800; }
.lang-switcher__option.is-active::after { content: '✓'; margin-left: auto; font-size: 0.7rem; }
.lang-flag { font-size: 1.05rem; }
.lang-name { flex: 1; }

/* Header search */
.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
}
.header-search input {
  border: none;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  width: 180px;
  outline: none;
  background: var(--bg-off);
  color: var(--text);
}
.header-search button {
  background: var(--dark);
  border: none;
  color: #fff;
  padding: 7px 12px;
  font-size: 1rem;
  transition: background var(--ease);
}
.header-search button:hover { background: var(--red); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  padding: 8px 10px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); transition: var(--ease); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SITE LAYOUT — main content + full-height sticky sidebar
   ============================================================ */
.site-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: start;
}
.site-layout__main {
  min-width: 0; /* prevent grid blowout */
}

/* Hero panel */
.lead-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 600px;
}
.lead-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 8s ease;
}
.lead-hero:hover .lead-hero__bg { transform: scale(1.03); }
.lead-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 14, 26, 0.96) 0%,
    rgba(10, 14, 26, 0.65) 40%,
    rgba(10, 14, 26, 0.2)  100%
  );
}
.lead-hero__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 44px 48px;
  max-width: 820px;
}
.lead-hero__category {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 14px;
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border: 1px solid rgba(196,18,48,0.5);
}
.lead-hero__category:hover { color: #fff; }
.lead-hero__title {
  font-family: var(--font-display);
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 16px;
}
.lead-hero__title a { color: #fff; }
.lead-hero__title a:hover { color: rgba(255,255,255,0.8); }
.lead-hero__excerpt {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  max-width: 620px;
  font-style: italic;
}
.lead-hero__meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  display: flex;
  gap: 8px;
  align-items: center;
}
.lead-hero__sep { opacity: 0.3; }

/* Strategic sidebar — sticky, full viewport height, light theme */
.lead-sidebar {
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 88px;
  height: calc(100vh - 88px);
  overflow: hidden;
}
.lead-sidebar__header {
  padding: 20px 20px 14px;
  border-bottom: 2px solid var(--dark);
  flex-shrink: 0;
}
.lead-sidebar__label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--red);
}
.lead-sidebar__cards {
  flex: 1;
  min-height: 0;           /* allow flex shrink past content size */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Strategic card — equal thirds of sidebar height, no scroll */
.strategic-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background var(--ease);
}
.strategic-card:last-child { border-bottom: none; }
.strategic-card:hover { background: var(--bg-off); }

/* Image fills the top portion of the card */
.strategic-card__image-link {
  flex: 1;
  min-height: 0;
  display: block;
  overflow: hidden;
}
.strategic-card__image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--navy);
}
.strategic-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.strategic-card:hover .strategic-card__image img { transform: scale(1.04); }

/* Body is fixed height at the bottom */
.strategic-card__body {
  flex-shrink: 0;
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid var(--border);
}
.strategic-card__category {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
}
.strategic-card__title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.strategic-card__title a { color: inherit; }
.strategic-card__title a:hover { color: var(--red); }
.strategic-card__desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.strategic-card__date {
  font-family: var(--font-ui);
  font-size: 0.54rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   VIDEO LIBRARY
   ============================================================ */
.content-section--dark {
  background: var(--dark);
  padding-top: 1px;
  padding-bottom: 60px;
}
.section-label--light .section-label__text { color: var(--red); }
.section-label--light .section-label__rule  { background: rgba(255,255,255,0.12); }
.section-label--light { border-top-color: rgba(255,255,255,0.15); }

.video-section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  overflow: hidden;
  transition: transform var(--ease);
}
.video-card:hover { transform: translateY(-2px); }

.video-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}
.video-card__image {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: var(--navy);
}
.video-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .video-card__image img { transform: scale(1.04); }

.video-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  transition: background var(--ease);
}
.video-card:hover .video-card__overlay { background: rgba(0,0,0,0.52); }

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--ease), transform var(--ease);
}
.video-card:hover .video-card__play {
  background: var(--red);
  transform: translate(-50%, -50%) scale(1.1);
}
.video-card__play-icon {
  font-size: 1.3rem;
  color: var(--dark);
  line-height: 1;
  margin-left: 3px; /* optical centre for ▶ */
  transition: color var(--ease);
}
.video-card:hover .video-card__play-icon { color: #fff; }

.video-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.video-card__category {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
}
.video-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}
.video-card__title a { color: inherit; }
.video-card__title a:hover { color: rgba(255,255,255,0.75); }
.video-card__desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.video-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}
.video-card__sep { opacity: 0.4; }

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION LABEL (Analytics / Opinion / Books headers)
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0 20px;
  border-top: 3px solid var(--dark);
  margin-bottom: 8px;
}
.section-label__text {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--red);
  white-space: nowrap;
}
.section-label__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   CONTENT SECTIONS (Analytics / Opinions / Books)
   ============================================================ */
.content-section {
  padding: 0 0 60px;
}
.content-section--alt {
  background: var(--bg-off);
  padding-bottom: 60px;
}
.content-section__inner {
  padding: 0 40px;   /* horizontal breathing room inside the left column */
  max-width: 880px;
}

/* ============================================================
   HORIZONTAL CARD (h-card)
   ============================================================ */
.h-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.h-card:last-child { border-bottom: none; }

/* Featured variant — larger image, more prominence */
.h-card--featured {
  grid-template-columns: 460px 1fr;
  gap: 36px;
  padding: 28px 0 32px;
  border-bottom: 2px solid var(--border-strong);
  margin-bottom: 4px;
}

/* Book variant — portrait image */
.h-card--book {
  grid-template-columns: 180px 1fr;
}
.h-card--book .h-card__image {
  padding-top: 0;
  height: 260px;
}
.h-card--book.h-card--featured {
  grid-template-columns: 280px 1fr;
}
.h-card--book.h-card--featured .h-card__image {
  height: 400px;
}

/* Image */
.h-card__image-link { display: block; overflow: hidden; }
.h-card__image {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 66%;
  background: var(--navy);
}
.h-card--featured .h-card__image { padding-top: 62%; }
.h-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.h-card--book .h-card__image img {
  position: static;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.h-card__image-link:hover .h-card__image img { transform: scale(1.04); }

/* Gradient fallback by category */
.h-card__image[data-cat="opinion"]       { background: linear-gradient(145deg, #5a1020, #8b2635); }
.h-card__image[data-cat="international"] { background: linear-gradient(145deg, #1a3d2b, #2c6e49); }
.h-card__image[data-cat="culture"]       { background: linear-gradient(145deg, #2d1938, #5c3566); }
.h-card__image[data-cat="research"]      { background: linear-gradient(145deg, #0f2c36, #1a5f6a); }
.h-card__image[data-cat="books"]         { background: linear-gradient(145deg, #2a1a0e, #6b3a1f); }

/* Body */
.h-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4px;
}
.h-card__category {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 10px;
  display: inline-block;
  transition: opacity var(--ease);
}
.h-card__category:hover { opacity: 0.75; }
.h-card__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 12px;
}
.h-card--featured .h-card__title {
  font-size: 1.85rem;
  line-height: 1.22;
  margin-bottom: 16px;
}
.h-card__title a { color: inherit; }
.h-card__title a:hover { color: var(--red); }
.h-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 16px;
  flex: 1;
}
.h-card--featured .h-card__excerpt {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-mid);
}
.h-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-top: auto;
}
.h-card__author { color: var(--dark); font-weight: 700; }
.h-card__sep { opacity: 0.3; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  padding: 48px 0 72px;
  align-items: start;
}
.article__breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.article__breadcrumb a { color: var(--red); }
.article__breadcrumb span { opacity: 0.4; }
.article__category {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 18px;
}
.article__title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 18px;
}
.article__subtitle {
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}
.article__meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.article__meta .author { color: var(--dark); font-weight: 700; }
.article__meta .separator { opacity: 0.25; }
.article__featured-image { margin: 0 0 30px; overflow: hidden; }
.article__featured-image img { width: 100%; max-height: 480px; object-fit: cover; }
.article__caption {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-style: italic;
}
.article__content {
  font-size: 1.06rem;
  line-height: 1.95;
  color: var(--text);
}
.article__content p { margin-bottom: 1.5em; }
.article__content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2.2em 0 0.8em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.article__content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
}
.article__content blockquote {
  border-left: 3px solid var(--red);
  padding: 18px 28px;
  margin: 2em 0;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--text-mid);
  background: var(--bg-off);
}
.article__content blockquote p { margin-bottom: 0; }
.article__content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article__content a:hover { opacity: 0.75; }
.article__content strong { font-weight: 700; }
.article__content ul, .article__content ol { margin: 1em 0 1.5em 1.5em; }
.article__content ul li { list-style: disc; margin-bottom: 0.5em; }
.article__content ol li { list-style: decimal; margin-bottom: 0.5em; }
.article__content img { max-width: 100%; margin: 2em 0; }
.article__content figure { margin: 2em 0; }
.article__content figcaption {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-light);
  padding-top: 8px;
  font-style: italic;
}
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article__tags a {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  border: 1px solid var(--border-strong);
  padding: 5px 13px;
  transition: border-color var(--ease), color var(--ease);
}
.article__tags a:hover { border-color: var(--red); color: var(--red); }
.related-posts { margin-top: 52px; padding-top: 32px; border-top: 2px solid var(--dark); }
.related-posts__title {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 24px;
}

/* Single sidebar */
.sidebar { position: sticky; top: 104px; }
.sidebar-widget {
  margin-bottom: 32px;
  border-top: 2px solid var(--dark);
  padding-top: 16px;
}
.sidebar-widget--newsletter {
  background: var(--navy);
  border-top-color: var(--red);
  padding: 22px 20px;
}
.sidebar-widget__title {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 18px;
}
.sidebar-widget--newsletter .sidebar-widget__title { color: rgba(255,255,255,0.5); }
.sidebar-widget__body { }
.sidebar-post {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post__thumb {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-off);
}
.sidebar-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post__title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 5px;
}
.sidebar-post__title a { color: inherit; }
.sidebar-post__title a:hover { color: var(--red); }
.sidebar-post__date {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sidebar-cats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.8rem;
}
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats li a { color: var(--dark); font-weight: 600; transition: color var(--ease); }
.sidebar-cats li a:hover { color: var(--red); }
.sidebar-cats .count {
  font-size: 0.6rem;
  color: var(--text-light);
  font-weight: 700;
}
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form p { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 8px; }
.newsletter-form input[type="email"] {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 11px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background var(--ease);
}
.newsletter-form button:hover { background: #a01025; }

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.archive-banner {
  background: var(--bg-off);
  border-bottom: 3px solid var(--dark);
  padding: 44px 0;
  margin-bottom: 48px;
}
.archive-banner__label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 10px;
}
.archive-banner__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.archive-banner__count {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-light);
}
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  padding-bottom: 72px;
  align-items: start;
}
.archive-grid { display: flex; flex-direction: column; gap: 32px; }

/* ============================================================
   ARCHIVE CARD (.card)
   ============================================================ */
.card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  align-items: start;
}
.card:last-child { border-bottom: none; padding-bottom: 0; }
.card__image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding-top: 0;
}
.card__image-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card__image-wrap img { transform: scale(1.04); }
.card__gradient { display: none; }
.card__badge {
  display: inline-block;
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  background: var(--red);
  padding: 3px 8px;
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--red); }
.card__excerpt {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-mid);
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-top: auto;
}
.card__meta .author { color: var(--dark); font-weight: 700; }

@media (max-width: 640px) {
  .card { grid-template-columns: 1fr; }
  .card__image-wrap img { height: 220px; }
}
.pagination {
  display: flex;
  gap: 4px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  border: 1px solid var(--border-strong);
  transition: all var(--ease);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--dark); border-color: var(--dark); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  margin-top: 0;
}
.footer-top { padding: 56px 0 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-brand__logo {
  display: block;
  margin-bottom: 18px;
  text-decoration: none;
}
.footer-brand__eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1px;
}
.footer-brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  transition: color var(--ease);
}
.footer-brand__logo:hover .footer-brand__name { color: var(--red); }
.footer-brand__about {
  font-size: 0.82rem;
  line-height: 1.75;
  opacity: 0.55;
  margin-bottom: 22px;
}
.footer-brand__social { display: flex; gap: 8px; }
.footer-brand__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: background var(--ease), color var(--ease);
}
.footer-brand__social a:hover { background: var(--red); color: #fff; }
.footer-col__title {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.84rem;
  opacity: 0.6;
  transition: opacity var(--ease), color var(--ease);
}
.footer-col ul li a:hover { opacity: 1; color: #fff; }

/* Footer contact */
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.footer-contact__icon { opacity: 0.4; font-size: 0.9rem; }
.footer-contact__item a { opacity: 0.6; transition: opacity var(--ease); }
.footer-contact__item a:hover { opacity: 1; color: #fff; }
.footer-contact__newsletter { margin-top: 16px; }
.footer-contact__newsletter p {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer-newsletter {
  display: flex;
  gap: 0;
}
.footer-newsletter input[type="email"] {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  min-width: 0;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.3); }
.footer-newsletter button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 9px 14px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: background var(--ease);
  cursor: pointer;
}
.footer-newsletter button:hover { background: #a01025; }

.footer-bottom { padding: 18px 0; }
.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  opacity: 0.3;
}
.footer-bottom__links {
  display: flex;
  gap: 20px;
}
.footer-bottom__links a {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  opacity: 0.3;
  transition: opacity var(--ease);
}
.footer-bottom__links a:hover { opacity: 0.7; }

/* ============================================================
   UTILITIES
   ============================================================ */
.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;
}
.error-404 { text-align: center; padding: 80px 24px; }
.error-404 h1 {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
}
.error-404 p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 24px; }
.error-404 a {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 28px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .site-layout { grid-template-columns: 1fr 290px; }
  .h-card--featured { grid-template-columns: 340px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .site-layout { grid-template-columns: 1fr; }
  .lead-sidebar {
    position: static;
    height: auto;
    max-height: none;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .lead-hero { min-height: 440px; }
  .content-section__inner { padding: 0 24px; }
  .h-card, .h-card--featured { grid-template-columns: 220px 1fr; }
  .h-card--book { grid-template-columns: 140px 1fr; }
  .single-layout { grid-template-columns: 1fr; gap: 0; }
  .archive-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-top: 48px; }
  .article__title { font-size: 1.8rem; }
}

@media (max-width: 640px) {
  .lead-hero { min-height: 360px; }
  .lead-hero__content { padding: 28px 24px; }
  .lead-hero__title { font-size: 1.75rem; }
  .lead-hero__excerpt { display: none; }
  .content-section__inner { padding: 0 16px; }
  .h-card, .h-card--featured, .h-card--book { grid-template-columns: 1fr; }
  .h-card__image { padding-top: 55%; }
  .h-card--featured .h-card__image { padding-top: 55%; }
  .h-card--book .h-card__image { height: 220px; padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 300;
    border-top: 2px solid var(--red);
  }
  .main-nav.is-open .main-nav__list { flex-direction: column; }
  .main-nav.is-open .main-nav__link { border-bottom: 1px solid var(--border); padding: 14px 20px; }
  .menu-toggle { display: flex; }
  .header-search { display: none; }
  .lang-switcher__current { display: none; }
}

/* ============================================================
   RTL SUPPORT (Arabic)
   ============================================================ */
[dir="rtl"] body { font-family: 'Cairo', 'Noto Sans Arabic', var(--font-body); }
[dir="rtl"] .site-logo__eyebrow { letter-spacing: 0; }
[dir="rtl"] .lead-hero__content { left: auto; right: 0; }
[dir="rtl"] .article__content blockquote { border-left: none; border-right: 3px solid var(--red); }
[dir="rtl"] .main-nav__dropdown { left: auto; right: 0; }
[dir="rtl"] .h-card { direction: rtl; }
[dir="rtl"] .strategic-card { direction: rtl; }
