:root {
  --af-red: #d61f26;
  --af-red-dark: #b4181e;
  --af-red-soft: rgba(214, 31, 38, 0.08);
  --af-black: #0a0a0b;
  --af-ink: #15171a;
  --af-muted: #5c6570;
  --af-line: #e4e6ea;
  --af-soft: #f3f4f6;
  --af-paper: #f8f8f9;
  --af-white: #ffffff;
  --af-max: 1200px;
  --af-radius: 8px;
  --af-radius-sm: 4px;
  --af-shadow: 0 12px 40px rgba(10, 10, 11, 0.08);
  --af-shadow-sm: 0 4px 16px rgba(10, 10, 11, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-ui: "Cairo", "Segoe UI", sans-serif;
  --font-display: "Amiri", "Cairo", serif;
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--af-paper);
  color: var(--af-ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { max-width: 100%; display: block; }

/* Lazy-loaded article photos */
img.af-lazy {
  opacity: 0;
  transition: opacity 0.35s ease;
  background: #ececec;
}

img.af-lazy.is-loaded {
  opacity: 1;
}

:focus-visible {
  outline: 2px solid var(--af-red);
  outline-offset: 3px;
}

.af-container {
  width: min(var(--af-max), calc(100% - 2rem));
  margin-inline: auto;
}

/* ═══════════════ HEADER ═══════════════ */
.af-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--af-line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.af-header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  gap: 1rem;
  overflow: hidden;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition: transform 0.2s ease, opacity 0.15s ease, min-height 0.2s ease;
}

.af-header.is-compact .af-header-top {
  min-height: 0;
  height: 0;
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  pointer-events: none;
  border: 0;
  gap: 0;
}

.af-header-start,
.af-header-end {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.af-header-start { justify-self: start; }
.af-header-end { justify-self: end; flex-wrap: nowrap; gap: 0.45rem 0.75rem; }

/* Shared header control size: menu, search, social */
.af-header-end,
.af-header-start,
.af-header-tools,
.af-header-social {
  align-items: center;
}

.af-header-search-solo.af-icon-btn {
  display: none !important;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

.af-header-tools .af-icon-btn,
.af-header-social-bar .af-header-social-link {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

.af-header-search-solo.af-icon-btn i,
.af-header-tools .af-icon-btn i,
.af-header-social-bar .af-header-social-link i {
  font-size: 1rem;
  line-height: 1;
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.af-side-social {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--af-line);
}

.af-side-social-title {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--af-ink);
}

.af-side-social .af-header-social {
  gap: 0.35rem;
}

.af-side-social .af-header-social-link {
  width: 30px;
  height: 30px;
  font-size: 1rem;
  color: var(--af-ink);
  border: 1px solid var(--af-line);
}

.af-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.af-header-tools-sep {
  width: 1px;
  height: 14px;
  background: var(--af-line);
  margin-inline: 0.12rem;
  flex-shrink: 0;
}

.af-header-social {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.af-header-social-link {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--af-muted);
  font-size: 1rem;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.af-header-social-link:hover {
  color: var(--af-red);
  background: var(--af-red-soft);
  transform: translateY(-1px);
}

.af-icon-btn {
  background: none;
  border: 0;
  color: var(--af-black);
  padding: 0.4rem;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: var(--af-radius-sm);
  transition: color 0.2s, background 0.2s;
}

.af-icon-btn:hover {
  color: var(--af-red);
  background: var(--af-red-soft);
}

.af-util-btn {
  background: none;
  border: 0;
  color: var(--af-ink);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.af-util-btn:hover { color: var(--af-red); }

.af-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--af-red);
  display: inline-block;
  animation: af-pulse 1.8s ease infinite;
}

@keyframes af-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 31, 38, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(214, 31, 38, 0); }
}

.af-lang {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: var(--af-muted);
  border: 1px solid var(--af-line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  background: var(--af-white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.af-lang:hover {
  border-color: var(--af-red);
  color: var(--af-red);
  background: var(--af-red-soft);
}

.af-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.af-logo-img {
  display: block;
  height: 46px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
}

.af-logo-name {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
}

.af-logo-name .arab { color: #fff; }
.af-logo-name .files { color: var(--af-red); }

.af-logo-tag {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--af-muted);
  font-weight: 500;
}

/* Nav */
.af-nav {
  border-top: 1px solid var(--af-line);
  background: var(--af-white);
}

.af-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.05rem;
  overflow: hidden;
}

.af-nav-list > .af-nav-more[hidden] {
  display: none !important;
}

.af-nav-list > li > a {
  display: block;
  padding: 0.8rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--af-ink);
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

.af-nav-list > li > a:hover { color: var(--af-red); }

.af-nav-list > li > a.is-active {
  color: var(--af-red);
}

.af-nav-list > li > a.is-active::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  left: 0.75rem;
  bottom: 0;
  height: 3px;
  background: var(--af-red);
  border-radius: 3px 3px 0 0;
}

.af-nav-list .dropdown-menu {
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius-sm);
  box-shadow: var(--af-shadow);
  padding: 0.4rem 0;
  min-width: 11rem;
}

.af-nav-list .dropdown-item {
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
}

.af-nav-list .dropdown-item:hover,
.af-nav-list .dropdown-item.is-active {
  background: var(--af-red-soft);
  color: var(--af-red);
}

/* Breaking ticker — signature element */
.af-ticker {
  background: var(--af-black);
  color: #fff;
  border-bottom: 3px solid var(--af-red);
}

.af-ticker-inner {
  display: flex;
  align-items: stretch;
  min-height: 42px;
  gap: 0;
}

.af-ticker-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--af-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0 1rem;
  text-transform: uppercase;
}

.af-ticker-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.af-ticker-list {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: af-ticker 38s linear infinite;
  padding-inline: 1rem;
  margin: 0;
  list-style: none;
}

.af-ticker:hover .af-ticker-list { animation-play-state: paused; }

@keyframes af-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.af-ticker-list a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.2s;
}

.af-ticker-list a:hover { color: #fff; }

.af-ticker-list a::before {
  content: "◆";
  color: var(--af-red);
  font-size: 0.55rem;
  margin-inline-end: 0.55rem;
  vertical-align: middle;
}

/* Search overlay */
.af-search {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 8, 10, 0.9);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6.5rem 1.25rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.af-search.is-open { opacity: 1; visibility: visible; }

.af-search-box {
  width: min(640px, 100%);
  position: relative;
}

.af-search-box input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 700;
  padding: 0.5rem 5.5rem 0.75rem 0;
  outline: none;
}

.af-search-box input::placeholder { color: rgba(255, 255, 255, 0.4); }

.af-search-submit,
.af-search-close {
  position: absolute;
  top: 0.35rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}

.af-search-close {
  inset-inline-end: 0;
}

.af-search-submit {
  inset-inline-end: 2.4rem;
  opacity: 0.9;
}

.af-search-submit:hover,
.af-search-close:hover {
  color: var(--af-red);
}

/* Offcanvas */
.offcanvas.af-offcanvas { width: min(340px, 88vw); }
.af-offcanvas .offcanvas-title { font-weight: 800; }
.af-offcanvas .offcanvas-title .files { color: var(--af-red); }

.af-side-nav {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}

.af-side-nav a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--af-line);
  transition: color 0.2s, padding-inline-start 0.2s;
}

.af-side-nav a:hover,
.af-side-nav a.is-active {
  color: var(--af-red);
  padding-inline-start: 0.4rem;
}

/* ═══════════════ MAIN LAYOUT ═══════════════ */
.af-main { padding: 1.35rem 0 3.25rem; }

.af-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.75rem;
  align-items: start;
}

.af-layout-solo {
  grid-template-columns: minmax(0, 1fr);
}

.af-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.af-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* ═══════════════ CINEMATIC HERO ═══════════════ */
.af-hero-block {
  position: relative;
  width: 100%;
}

.af-hero {
  position: relative;
  width: 100%;
  height: 480px;
  min-height: 480px;
  max-height: 480px;
  border-radius: var(--af-radius);
  overflow: hidden;
  background: #0b1220;
  box-shadow: var(--af-shadow);
}

.af-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  overflow: hidden;
}

.af-hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s var(--ease), transform 6s ease;
}

.af-hero-media img.is-active {
  opacity: 1;
  transform: scale(1);
}

.af-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(8, 8, 10, 0.12) 0%, rgba(8, 8, 10, 0.78) 58%, rgba(8, 8, 10, 0.92) 100%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.55) 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}

.af-hero-body {
  position: relative;
  z-index: 2;
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 2.4rem 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  overflow: hidden;
}

.af-hero-kicker,
.af-hero .af-tag,
.af-hero-title,
.af-hero-excerpt,
.af-hero-cta {
  max-width: 560px;
}

.af-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.af-hero-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--af-red);
}

.af-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: var(--af-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.01em;
}

.af-tag.is-yellow { background: #c49214; }
.af-tag.is-orange { background: #d66a18; }
.af-tag.is-blue { background: #1f6fa5; }
.af-tag.is-green { background: #187a42; }
.af-tag.is-gray {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}

.af-hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  display: block;
  max-width: min(640px, 100%);
  /* Keep Arabic letters joined — avoid line-clamp / text-wrap:balance here */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: normal;
}

.af-hero-excerpt {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 46ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
}

.af-hero-cta {
  margin-bottom: 1.15rem;
}

@media (min-width: 992px) {
  .af-hero-cta {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
  }

  .af-hero-cta:hover {
    background: #fff;
    color: var(--af-black) !important;
    box-shadow: none;
  }
}

.af-hero-meta {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  gap: 0.85rem;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

.af-hero-meta-info {
  margin-bottom: 0;
  color: inherit;
  gap: 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.af-hero-meta-sep {
  width: 1px;
  height: 0.85rem;
  background: rgba(255, 255, 255, 0.28);
  display: inline-block !important;
  padding: 0 !important;
}

.af-hero-controls {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  direction: ltr; /* only for arrow glyph order */
  flex: 0 0 auto;
  flex-shrink: 0;
  position: static !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important; /* do not use inline-start:auto — conflicts with direction:ltr */
  z-index: 3;
}

.af-hero-arrow {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: auto;
  box-shadow: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.af-hero-arrow-next { order: 1; }
.af-hero-arrow-prev { order: 2; }

.af-hero-arrow i {
  font-size: 1rem;
  line-height: 1;
}

.af-hero-arrow:hover {
  background: var(--af-red);
  border-color: var(--af-red);
  color: #fff;
  transform: none !important;
}

.af-hero-arrow:active {
  background: var(--af-red-dark);
  border-color: var(--af-red-dark);
}

.af-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  color: var(--af-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.af-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.af-time {
  direction: ltr;
  unicode-bidi: isolate;
}

.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--af-red);
  color: #fff !important;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  border: 0;
  border-radius: 3px;
  padding: 0.72rem 1.35rem;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.af-btn:hover {
  background: var(--af-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(214, 31, 38, 0.28);
}

.af-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.af-btn-ghost:hover {
  background: #fff;
  color: var(--af-black) !important;
  box-shadow: none;
}

.af-btn-block { width: 100%; }

/* Category rail */
.af-cat-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.af-cat-rail::-webkit-scrollbar { display: none; }

.af-cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--af-line);
  border-radius: 999px;
  background: var(--af-white);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--af-ink);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.af-cat-chip:hover {
  border-color: var(--af-red);
  color: var(--af-red);
  background: var(--af-red-soft);
  transform: translateY(-1px);
}

/* Section heads — editorial spine */
.af-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--af-line);
  position: relative;
}

.af-section-head::before {
  content: "";
  position: absolute;
  bottom: -1px;
  inset-inline-start: 0;
  width: 72px;
  height: 3px;
  background: var(--af-red);
}

.af-section-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--af-black);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.af-section-title .accent { color: var(--af-red); }

.af-view-all {
  color: var(--af-red);
  font-weight: 800;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}

.af-view-all:hover { gap: 0.45rem; }

/* Latest — asymmetric hierarchy */
.af-latest-board {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.af-lead-card {
  position: relative;
  border-radius: var(--af-radius);
  overflow: hidden;
  min-height: 360px;
  background: #111;
  display: block;
  box-shadow: var(--af-shadow-sm);
}

.af-lead-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}

.af-lead-card:hover img { transform: scale(1.04); }

.af-lead-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(8, 8, 10, 0.88) 100%);
}

.af-lead-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.35rem;
  color: #fff;
}

.af-lead-copy h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.af-lead-copy .af-meta {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.af-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.af-stack-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.85rem;
  background: var(--af-white);
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s, transform 0.25s var(--ease);
}

.af-stack-item:hover {
  box-shadow: var(--af-shadow-sm);
  border-color: rgba(214, 31, 38, 0.28);
  transform: translateY(-1px);
}

.af-stack-media {
  background: #ddd;
  min-height: 92px;
  overflow: hidden;
}

.af-stack-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.af-stack-item:hover .af-stack-media img { transform: scale(1.06); }

.af-stack-body {
  padding: 0.75rem 0.85rem 0.75rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.af-stack-body .af-tag {
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
}

.af-lead-copy .af-tag {
  margin-bottom: 0.65rem;
}

.af-stack-body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.af-stack-body h3 a:hover { color: var(--af-red); }

.af-stack-body .af-meta {
  margin-bottom: 0;
  font-size: 0.74rem;
}

/* Classic news cards still used on related */
.af-latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.af-news-card {
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius);
  overflow: hidden;
  background: var(--af-white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}

.af-news-card:hover {
  box-shadow: var(--af-shadow);
  transform: translateY(-3px);
  border-color: rgba(214, 31, 38, 0.2);
}

.af-news-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd;
}

.af-news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.af-news-card:hover .af-news-card-media img { transform: scale(1.05); }

.af-news-card-body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.af-news-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
}

.af-news-card-title a:hover { color: var(--af-red); }

.af-news-card-excerpt {
  margin: 0 0 0.85rem;
  color: var(--af-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.af-news-card-body .af-meta { margin-bottom: 0; }

/* Homepage category blocks */
.af-category-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.af-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.af-category-more {
  display: flex;
  justify-content: center;
  padding-top: 0.25rem;
}

.af-category-more .af-btn {
  min-width: 180px;
}

/* Reports (legacy cards still used elsewhere if needed) */
.af-reports-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.af-report-card {
  position: relative;
  border-radius: var(--af-radius);
  overflow: hidden;
  aspect-ratio: 3 / 4.05;
  display: block;
  background: #222;
}

.af-report-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.af-report-card:hover img { transform: scale(1.06); }

.af-report-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 25%, rgba(0, 0, 0, 0.88) 100%);
}

.af-report-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.af-report-content .af-tag { margin-bottom: 0; }

.af-report-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.af-report-content .af-meta {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

/* Sidebar */
.af-widget {
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius);
  background: var(--af-white);
  padding: 1.15rem 1rem 1.05rem;
  box-shadow: var(--af-shadow-sm);
}

.af-widget-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--af-line);
}

.af-widget-title .accent { color: var(--af-red); }

.af-ranked {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.af-ranked-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.af-ranked-thumb {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: var(--af-radius-sm);
  overflow: hidden;
  background: #ddd;
}

.af-ranked-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.af-ranked-item:hover .af-ranked-thumb img { transform: scale(1.06); }

.af-rank {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  min-width: 22px;
  height: 22px;
  padding: 0 0.25rem;
  border-radius: 3px;
  background: var(--af-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(214, 31, 38, 0.35);
}

.af-ranked-title {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.af-ranked-title a:hover { color: var(--af-red); }

.af-ranked-item .af-meta {
  margin-bottom: 0;
  gap: 0.55rem;
  font-size: 0.74rem;
}

.af-follow-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
}

.af-social-row { display: flex; gap: 0.55rem; }

.af-social-row a {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  transition: transform 0.2s, filter 0.2s;
}

.af-social-row a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.af-social-row a.fb { background: #1877f2; }
.af-social-row a.x { background: #111111; }
.af-social-row a.ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.af-social-row a.yt { background: #ff0000; }

/* Footer */
.af-footer {
  background: #0a0a0b;
  color: rgba(255, 255, 255, 0.7);
  padding: 2.75rem 0 1.5rem;
  margin-top: 1rem;
  border-top: 3px solid var(--af-red);
}

.af-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.af-footer-brand .af-footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.af-footer-brand .af-footer-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.af-footer-brand .af-logo-name {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.af-footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 300px;
}

.af-footer h4 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.af-footer ul { list-style: none; margin: 0; padding: 0; }
.af-footer li { margin-bottom: 0.45rem; }

.af-footer li a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.af-footer li a:hover { color: #fff; }

.af-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Reveal */
.af-reveal {
  animation: af-rise 0.55s var(--ease) both;
}

@keyframes af-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1100px) {
  .af-category-grid { grid-template-columns: repeat(2, 1fr); }
  .af-reports-grid { grid-template-columns: repeat(2, 1fr); }
  .af-footer-grid { grid-template-columns: 1fr 1fr; }
  .af-nav-list > li > a { padding: 0.75rem 0.55rem; font-size: 0.84rem; }
}

@media (max-width: 991.98px) {
  .af-container { width: min(var(--af-max), calc(100% - 1.5rem)); }
  .af-layout { grid-template-columns: 1fr; }
  .af-sidebar { order: 2; }
  .af-nav { display: none; }
  .af-header-top { min-height: 66px; gap: 0.35rem; }
  .af-header-end { gap: 0.25rem; }
  .af-header-social-bar { display: none; }
  .af-side-social { display: block; }
  .af-header-search-solo.af-icon-btn { display: inline-flex !important; }
  .af-header-tools .af-header-search-cluster,
  .af-header-tools-sep { display: none !important; }
  .af-logo-img { height: 40px; max-width: min(160px, 44vw); }
  .af-main { padding: 1rem 0 2.5rem; }
  .af-content { gap: 1.5rem; }

  /* Mobile hero — match mockup card */
  .af-hero-block {
    display: block;
  }

  .af-hero {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    border-radius: 14px;
    border: 1px solid rgba(120, 160, 210, 0.28);
    background: #0a1628;
    box-shadow: 0 16px 40px rgba(8, 16, 32, 0.35);
  }

  .af-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .af-hero-media::after {
    background:
      linear-gradient(90deg, rgba(8, 18, 36, 0.15) 0%, rgba(8, 18, 36, 0.72) 48%, rgba(8, 18, 36, 0.96) 100%),
      linear-gradient(180deg, rgba(8, 18, 36, 0.2) 0%, rgba(8, 18, 36, 0.55) 100%);
  }

  .af-hero-body {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    max-width: none;
    padding: 1.35rem 1.2rem 1.2rem;
    justify-content: flex-end;
    overflow: hidden;
  }

  .af-hero-meta {
    padding-top: 0.95rem;
    color: rgba(190, 205, 225, 0.78);
    justify-content: space-between;
    width: 100%;
  }

  .af-hero-controls {
    gap: 0.4rem;
    position: static !important;
    margin: 0 !important;
  }

  .af-hero-arrow {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    transform: none !important;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .af-hero-arrow:hover {
    background: var(--af-red);
    border-color: var(--af-red);
    color: #fff;
  }

  .af-hero-arrow i { font-size: 0.95rem; }

  .af-hero-kicker {
    color: var(--af-red);
    margin-bottom: 0.7rem;
    font-size: 0.78rem;
  }

  .af-hero .af-tag,
  .af-hero .af-tag.is-yellow,
  .af-hero .af-tag.is-orange,
  .af-hero .af-tag.is-blue,
  .af-hero .af-tag.is-green,
  .af-hero .af-tag.is-gray {
    background: var(--af-red);
    margin-bottom: 0.75rem;
    border-radius: 6px;
    padding: 0.32rem 0.75rem;
  }

  .af-hero-title {
    font-family: var(--font-ui);
    font-size: clamp(1.2rem, 5vw, 1.45rem);
    font-weight: 800;
    margin-bottom: 0.65rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .af-hero-excerpt {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
    max-width: none;
    color: rgba(210, 220, 235, 0.82);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .af-hero-cta {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 1.15rem;
    border-radius: 8px;
    padding: 0.78rem 1.25rem;
    background: var(--af-red);
    border: 0;
    box-shadow: 0 8px 22px rgba(214, 31, 38, 0.28);
  }

  .af-hero-cta:hover {
    background: var(--af-red-dark);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(214, 31, 38, 0.34);
  }

  .af-hero-meta-sep {
    background: rgba(190, 205, 225, 0.45);
    height: 0.9rem;
  }

  .af-latest-board { grid-template-columns: 1fr; }
  .af-lead-card { min-height: 280px; }
  .af-latest-grid { grid-template-columns: 1fr; }
  .af-category-grid { grid-template-columns: 1fr; }
  .af-ticker-label { font-size: 0.7rem; padding: 0 0.75rem; }
}

@media (max-width: 575.98px) {
  .af-container { width: min(var(--af-max), calc(100% - 1.1rem)); }
  .af-header-top {
    min-height: 58px;
    grid-template-columns: auto 1fr auto;
  }
  .af-logo-img { height: 34px; max-width: min(140px, 48vw); }

  .af-hero {
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    border-radius: 12px;
  }

  .af-hero-body {
    padding: 1.2rem 1.05rem 1.1rem;
  }

  .af-hero-title { font-size: 1.18rem; }

  .af-hero-excerpt {
    font-size: 0.84rem;
    -webkit-line-clamp: 2;
  }

  .af-hero-arrow {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }

  .af-hero-cta {
    width: auto;
    justify-content: center;
  }

  .af-btn { width: 100%; justify-content: center; }
  .af-hero-cta.af-btn { width: fit-content; }
  .af-category-more .af-btn { width: 100%; }
  .af-reports-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .af-report-title { font-size: 0.9rem; }
  .af-stack-item { grid-template-columns: 96px 1fr; }
  .af-footer { padding: 2rem 0 1.25rem; }
  .af-footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .af-footer-brand p { max-width: none; }
  .af-footer-bottom { flex-direction: column; align-items: flex-start; }
  .af-ranked-item { grid-template-columns: 64px 1fr; }
  .af-ranked-thumb { width: 64px; height: 64px; }
  .af-search { padding: 5rem 1rem 1.5rem; }
  .af-ticker-list { gap: 1.75rem; animation-duration: 28s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .af-ticker-list { transform: none !important; }
  .af-header-top { transition: none !important; }
}
