/* ==========================================================================
   Dukemod — shared styles for Arabic (RTL) and English (LTR) pages.
   Uses logical properties (inline-start / inline-end) so one file serves both.
   Change colors and fonts in :root below.
   ========================================================================== */

:root {
  --ink: #0d141a;
  --ink-soft: #3b444d;
  --muted: #6b747d;
  --paper: #ffffff;
  --paper-alt: #f4f5f7;
  --line: #e3e6ea;
  --dark: #111315;
  --accent: #e8a33d;          /* warm gold taken from the Nabla artwork */
  --whatsapp: #25d366;

  --font-en: "Montserrat", system-ui, sans-serif;
  --font-ar: "Tajawal", "Montserrat", system-ui, sans-serif;

  --radius: 14px;
  --max: 1160px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--paper-alt); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-weight: 700; font-size: .95rem;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--dark { color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: #fff; }
.btn--whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1fb457; border-color: #1fb457; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav .lang {
  padding: .35em .9em; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink);
}
.nav .lang:hover { border-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset-inline: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .lang { margin-top: 12px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center;
  color: #fff; text-align: center;
  background: var(--dark) url("../img/hero.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,12,14,.55), rgba(10,12,14,.8));
}
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.5rem); font-weight: 800; max-width: 16ch; margin-inline: auto; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 58ch; margin: 0 auto 2rem; opacity: .88; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }
.split-media .float {
  position: absolute; width: 46%; aspect-ratio: 1; inset-block-end: -28px; inset-inline-end: -20px;
  border: 6px solid var(--paper); box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.section--alt .split-media .float { border-color: var(--paper-alt); }
.services { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: 10px; }
.services li { padding: .4em 1em; border-radius: 999px; background: var(--paper-alt); font-weight: 600; font-size: .9rem; }
.section--alt .services li { background: #fff; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media .float { inset-inline-end: 8px; }
}

/* ---------- Portfolio (Instagram reels) ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head .lead { margin: 0; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reel {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); aspect-ratio: 9 / 16;
}
.reel iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .reels { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* ---------- Series feature ---------- */
.feature {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 4vw, 48px);
}
.feature-logo { width: 100%; border-radius: var(--radius); }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature-logo { max-width: 160px; }
  .videos { grid-template-columns: 1fr; }
}

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.game {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.game:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(13,20,26,.1); }
.game-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-alt); }
.game-media img { width: 100%; height: 100%; object-fit: cover; }
.game-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 1.6rem; }
.game-body p { color: var(--ink-soft); flex: 1; }
.game-body .btn { align-self: flex-start; }
@media (max-width: 760px) { .games { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
.contact-info address { font-style: normal; font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1.75rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfd3d7; padding-block: 56px 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand img { height: 52px; width: auto; filter: invert(1); margin-bottom: 12px; }
.footer-brand p { margin: 0; max-width: 34ch; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: #fff;
  transition: background .2s, border-color .2s;
}
.socials a:hover { background: #fff; color: var(--dark); border-color: #fff; }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; opacity: .7; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Blog
   ========================================================================== */

/* ---------- Click-to-play YouTube (loads the player only when clicked) ---------- */
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #000;
}
.yt--short { aspect-ratio: 9 / 16; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 60px; height: 42px; translate: -50% -50%;
  border-radius: 12px; background: rgba(0,0,0,.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 24px no-repeat;
  transition: background-color .2s;
}
.yt:hover::after, .yt:focus-visible::after { background-color: #f00; }
.yt.is-playing::after { display: none; }
.yt--mini::after { width: 36px; height: 26px; background-size: 16px; border-radius: 8px; }

/* ---------- Post layout ---------- */
.post-narrow { max-width: 760px; }
.post-hero { padding-block: clamp(32px, 5vw, 56px) 0; }
.breadcrumb { display: flex; gap: .5em; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.post-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; margin-bottom: .35em; }
.post-meta { color: var(--muted); font-weight: 600; font-size: .95rem; }
.post-desc { font-size: 1.15rem; color: var(--ink-soft); }
.post-featured { margin: clamp(24px, 4vw, 40px) 0 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--dark); }
.post-featured img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.post-body { padding-block: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: clamp(56px, 8vw, 96px); }
.post-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.075rem; }
.prose h3 { font-size: 1.15rem; }
.post-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.post-section-head h2 { margin: 0; }
.count { font-weight: 700; color: var(--muted); font-size: .95rem; white-space: nowrap; }

.chips { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .35em .95em; border-radius: 999px; background: var(--paper-alt); font-weight: 600; font-size: .9rem; color: var(--ink); }

/* Tour */
.tour { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  background: var(--paper-alt); border-radius: calc(var(--radius) + 6px); padding: clamp(20px, 4vw, 40px); }
.tour-text p { color: var(--ink-soft); margin: 0; }

/* Table of contents */
.toc { margin-bottom: 32px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: inline-flex; gap: .45em; align-items: center; padding: .4em .9em; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-soft); transition: border-color .2s, color .2s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: .75rem; color: var(--accent); font-weight: 800; }
.toc a:hover { border-color: var(--ink); color: var(--ink); }
.toc-toggle { margin-bottom: 32px; }
.toc-toggle summary { cursor: pointer; font-weight: 700; display: inline-flex; padding: .5em 1.1em; border-radius: 999px; background: var(--paper-alt); list-style: none; }
.toc-toggle summary::-webkit-details-marker { display: none; }
.toc-toggle summary::after { content: "▾"; margin-inline-start: .5em; }
.toc-toggle[open] summary { margin-bottom: 16px; }
.toc-toggle[open] summary::after { content: "▴"; }
.toc-toggle .toc { margin-bottom: 0; }

/* Split-screen post layout: project details stay pinned on one side while the videos scroll on the other */
.sp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.sp-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.15; margin-bottom: .35em; }
.sp-hero .post-meta { margin-bottom: .5rem; }
.sp-hero-img { margin: 0; border-radius: 26px; overflow: hidden; background: var(--dark); }
.sp-hero-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sp-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 24px 0 0; }
.sp-stats div { display: flex; flex-direction: column; }
.sp-stats dt { font-family: "Montserrat", "Tajawal", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; }
.sp-stats dd { margin: 0; color: var(--muted); font-weight: 600; font-size: .9rem; }

.sp-intro { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(28px, 5vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px); background: var(--paper-alt); border-radius: 26px; }
.sp-intro h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.sp-intro p { color: var(--ink-soft); }
.sp-tour p { margin: 10px 0 0; font-weight: 700; font-size: .9rem; text-align: center; color: var(--ink); }

.sp-scroller { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); margin-top: 24px; }
.sp-sticky {
  position: sticky; top: calc(var(--header-h) + 24px); align-self: start;
  height: calc(100svh - var(--header-h) - 48px); display: grid; grid-template-rows: 1fr auto; align-items: center;
}
.sp-info {
  grid-area: 1 / 1; max-height: 100%; overflow-y: auto; padding-inline-end: 6px;
  opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .45s; pointer-events: none;
}
.sp-info.is-active { opacity: 1; transform: none; pointer-events: auto; }
.sp-logo { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 2px; margin-bottom: 14px; }
.sp-num { display: inline-block; direction: ltr; unicode-bidi: isolate; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: .85rem; color: var(--accent); letter-spacing: .06em; }
.sp-info h3, .sp-mobile h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: 6px 0 4px; line-height: 1.2; }
.sp-sub { color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.sp-text p { color: var(--ink-soft); }
.sp-text p:last-child { margin-bottom: 0; }
.sp-dots { grid-area: 2 / 1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 20px; }
.sp-dots i { width: 18px; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s, width .3s; }
.sp-dots i.is-active { background: var(--accent); width: 36px; }
.sp-bar { grid-area: 2 / 1; height: 4px; border-radius: 4px; background: var(--line); margin-top: 20px; overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: var(--accent); transform-origin: right center; transform: scaleX(0); transition: transform .3s; }

.sp-steps { display: flex; flex-direction: column; gap: 22vh; padding-block: 10vh 26vh; }
.sp-step { scroll-margin-top: 25vh; }
.sp-media .yt { border-radius: 22px; box-shadow: 0 30px 60px rgba(13, 20, 26, .16); transition: transform .5s, opacity .5s; }
.sp-step--short .sp-media > .yt { width: min(340px, 75%); margin-inline: auto; }
.sp-step:not(.is-active) .sp-media > .yt { transform: scale(.94); opacity: .5; }
.sp-extra { list-style: none; padding: 0; margin: 16px 0 0; display: flex; justify-content: center; gap: 12px; }
.sp-extra li { width: 160px; }
.sp-extra li:has(.yt--short) { width: 90px; }
.sp-extra .yt { box-shadow: none; border-radius: 12px; }
.sp-mobile { display: none; }

@media (max-width: 900px) {
  .sp-hero, .sp-intro { grid-template-columns: 1fr; }
  .sp-hero-img { order: -1; }
  .sp-tour { max-width: 240px; }
  .sp-scroller { grid-template-columns: 1fr; }
  .sp-sticky { display: none; }
  .sp-steps { gap: 56px; padding: 0; }
  .sp-step:not(.is-active) .sp-media > .yt { transform: none; opacity: 1; }
  .sp-mobile { display: block; margin-top: 18px; }
  .sp-mobile .sp-logo { float: inline-end; margin: 0 12px 8px 0; }
  .sp-mobile h3 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .sp-info, .sp-media .yt { transition: none; } }

/* breathing room between the logo grid and the dark banner below it */
.initiative { padding-bottom: clamp(24px, 4vw, 48px); }

/* Video grids */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-grid .yt:not(.yt--short) { grid-column: span 2; }
.video-grid--3 { grid-template-columns: repeat(3, 1fr); }
.video-feature { max-width: 340px; margin-inline: auto; }

/* Free logo initiative: horizontal reel (pins and slides sideways on desktop, swipe on phones) */
.initiative-intro { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 40px; }
.initiative-intro:not(:has(.initiative-video)) { grid-template-columns: 1fr; }
.logo-thumbs { display: grid; grid-template-columns: repeat(auto-fill, 96px); justify-content: start; gap: 12px; }
.logo-thumb {
  width: 96px; height: 96px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  cursor: zoom-in; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.logo-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-thumb:hover, .logo-thumb:focus-visible { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 10px 24px rgba(13, 20, 26, .1); }

/* Logo lightbox */
.logo-box { width: min(640px, 100% - 32px); padding: 0; border: 0; border-radius: 24px; background: #fff; overflow: visible; }
.logo-box::backdrop { background: rgba(10, 12, 14, .85); backdrop-filter: blur(4px); }
.logo-box figure { margin: 0; padding: clamp(28px, 6vw, 56px); }
.logo-box img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.logo-box figcaption { text-align: center; margin-top: 12px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.logo-box-close { position: absolute; top: 12px; inset-inline-start: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-alt); font-size: 1rem; cursor: pointer; }
.logo-box-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); cursor: pointer; font-size: 1.3rem;
}
.logo-box-prev { inset-inline-start: -24px; }
.logo-box-next { inset-inline-end: -24px; }
.logo-box-prev::before { content: "→"; }
.logo-box-next::before { content: "←"; }
html[dir="ltr"] .logo-box-prev::before { content: "←"; }
html[dir="ltr"] .logo-box-next::before { content: "→"; }
@media (max-width: 700px) { .logo-box-prev { inset-inline-start: 8px; } .logo-box-next { inset-inline-end: 8px; } .logo-box-nav { top: auto; bottom: 8px; translate: none; } }

/* End of post */
.post-cta { text-align: center; padding: clamp(28px, 5vw, 48px); background: var(--dark); color: #fff; border-radius: calc(var(--radius) + 6px); }
.post-cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.post-cta p { opacity: .8; max-width: 52ch; margin: 0 auto 1.5rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav-link { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; transition: border-color .2s; }
.post-nav-link span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.post-nav-link--older { text-align: end; }
.post-nav-link:hover { border-color: var(--ink); }

@media (max-width: 860px) {
  .tour, .initiative-intro { grid-template-columns: 1fr; }
  .tour-video, .initiative-video { max-width: 260px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 520px) { .post-nav { grid-template-columns: 1fr; } .post-nav-link--older { text-align: start; } }

/* ---------- Blog index + home teaser ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin-top: 40px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; background: #fff;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(13,20,26,.1); }
.post-card-img { aspect-ratio: 16 / 9; background: var(--dark); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 20px 22px 24px; }
.post-card-body time { font-size: .85rem; font-weight: 700; color: var(--accent); }
.post-card-body h2, .post-card-body h3 { font-size: 1.25rem; margin: .3em 0 .45em; }
.post-card-body p { color: var(--ink-soft); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ==========================================================================
   Free Logo Initiative page (/free-logo/)
   ========================================================================== */
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.fl-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(32px, 5vw, 72px); }
.fl-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; margin-bottom: .3em; }
.fl-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; }
.fl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fl-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 32px 0 0; }
.fl-stats div { display: flex; flex-direction: column; }
.fl-stats dt { font-family: "Montserrat", "Tajawal", sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.1; }
.fl-stats dd { margin: 0; color: var(--muted); font-weight: 600; font-size: .9rem; }
.fl-hero-media { position: relative; display: flex; justify-content: center; }
.fl-hero-media .yt { width: min(300px, 70%); box-shadow: 0 30px 60px rgba(13, 20, 26, .2); z-index: 1; }
.fl-hero-logos { position: absolute; inset: 0; pointer-events: none; }
.fl-hero-logos img { position: absolute; width: 76px; height: 76px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px rgba(13, 20, 26, .1); }
.fl-hero-logos img:nth-child(1) { top: 4%; inset-inline-start: 2%; rotate: -8deg; }
.fl-hero-logos img:nth-child(2) { top: 34%; inset-inline-start: -2%; rotate: 6deg; }
.fl-hero-logos img:nth-child(3) { bottom: 8%; inset-inline-start: 6%; rotate: -4deg; }
.fl-hero-logos img:nth-child(4) { top: 8%; inset-inline-end: 0; rotate: 7deg; }
.fl-hero-logos img:nth-child(5) { top: 42%; inset-inline-end: -3%; rotate: -6deg; }
.fl-hero-logos img:nth-child(6) { bottom: 4%; inset-inline-end: 5%; rotate: 5deg; }

.fl-section { padding-block: clamp(48px, 7vw, 88px); }
.fl-section h2, .fl-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: .6em; }
.fl-about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.fl-about p { color: var(--ink-soft); font-size: 1.075rem; }
.fl-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fl-points li { padding: 18px 22px; background: var(--paper-alt); border-radius: 16px; }
.fl-points b { display: block; font-size: 1.05rem; }
.fl-points span { color: var(--ink-soft); }
.fl-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fl-steps li { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.fl-steps span { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--accent); font-size: .9rem; }
.fl-steps h3 { font-size: 1.15rem; margin: 8px 0 6px; }
.fl-steps p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.fl-uses { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fl-uses li { padding: .55em 1.1em; border-radius: 999px; background: var(--paper-alt); font-weight: 700; }
.fl-band { background: var(--paper-alt); padding-block: clamp(48px, 7vw, 88px); }
.muted-p { color: var(--muted); margin-bottom: 28px; }
.fl-season + .fl-season { margin-top: 40px; }
.fl-season-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.fl-season-head h3 { font-family: "Montserrat", sans-serif; font-size: 1.2rem; margin: 0; }
.fl-season-head span { color: var(--muted); font-weight: 600; }
.fl-season-head a { margin-inline-start: auto; font-weight: 700; text-decoration: none; }
.fl-apply-head { max-width: 680px; margin-bottom: 24px; }
.fl-apply-head p { color: var(--ink-soft); }
.fl-form { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; max-width: 820px; }
.fl-form iframe { display: block; width: 100%; height: 1400px; border: 0; }
.fl-form-alt { margin-top: 14px; color: var(--muted); }
.fl-faq details { max-width: 760px; border-bottom: 1px solid var(--line); padding-block: 16px; }
.fl-faq summary { cursor: pointer; font-weight: 700; font-size: 1.075rem; }
.fl-faq details p { color: var(--ink-soft); margin: 10px 0 0; }
.initiative-cta { margin-top: 24px; }
@media (max-width: 900px) {
  .fl-hero, .fl-about { grid-template-columns: 1fr; }
  .fl-hero-media { order: -1; padding-block: 12px; }
  .fl-hero-logos img { width: 56px; height: 56px; border-radius: 12px; }
  .fl-steps { grid-template-columns: 1fr 1fr; }
  .fl-form iframe { height: 1600px; }
}
@media (max-width: 520px) { .fl-steps { grid-template-columns: 1fr; } }
