/* ============================================================
   Dr. Mahmoud Desoky – personal academic site
   Colours: deep navy / warm gold / off-white
   Fonts: Playfair Display (headings), Inter (body)
   ============================================================ */

:root {
  --navy: #0B1F3A;
  --navy-2: #13305A;
  --navy-3: #1B3D6E;
  --gold: #C9A45C;
  --gold-soft: #E3CC9C;
  --gold-tint: #F3ECDD;
  --ivory: #FAF8F4;
  --paper: #FFFFFF;
  --text: #2B2F36;
  --muted: #646A73;
  --line: #E7E1D5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.04), 0 10px 30px -12px rgba(11, 31, 58, 0.14);
  --shadow-hover: 0 2px 4px rgba(11, 31, 58, 0.05), 0 22px 44px -16px rgba(11, 31, 58, 0.24);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--navy-3); text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.2s; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); letter-spacing: -0.01em; }
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 0.55em;
  background: var(--gold);
}
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.gold-rule { display: block; width: 72px; height: 1px; background: var(--gold); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  background: var(--navy);
  border-bottom-color: rgba(201, 164, 92, 0.25);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.4);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-brand:hover { color: var(--gold-soft); }
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; background: #fff; margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(201, 164, 92, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 80% at 10% 100%, rgba(27, 61, 110, 0.9), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, #0E2747 55%, var(--navy-2) 100%);
  color: #fff;
  padding: calc(var(--header-h) + 88px) 0 104px;
}
/* Fine gold line details */
.hero-lines,
.hero-lines::before,
.hero-lines::after { position: absolute; pointer-events: none; }
.hero-lines { inset: 0; }
.hero-lines::before {
  content: "";
  top: calc(var(--header-h) + 28px);
  left: 24px; right: 24px; bottom: 28px;
  border: 1px solid rgba(201, 164, 92, 0.18);
  max-width: calc(var(--max) + 40px);
  margin: 0 auto;
}
.hero-lines::after {
  content: "";
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.7;
}

.hero-inner { position: relative; display: flex; align-items: center; gap: 72px; }

.hero-photo-wrap {
  flex: 0 0 auto;
  padding: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 10px rgba(201, 164, 92, 0.06);
}
.hero-photo {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-3);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 4.2rem;
  color: var(--gold-soft);
}
.hero-photo.no-photo .photo-fallback { display: flex; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1em;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin-bottom: 0.45em;
}
.hero .gold-rule { margin-bottom: 1.6em; }
.hero-tagline { font-size: 1.12rem; font-weight: 300; color: rgba(255, 255, 255, 0.78); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2em; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Highlights bar ---------- */
.highlights { background: var(--paper); border-bottom: 1px solid var(--line); }
.highlights-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
}
.highlights-list li {
  padding: 28px 24px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.highlights-list li:first-child { border-left: 0; }
.hl-label { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--navy); line-height: 1.35; }
.hl-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin-bottom: 1.2em; }
.lead { font-weight: 600; color: var(--navy); margin-bottom: 0.7em; }
.subhead { margin-top: 2.2em; }

/* Timeline (Current Roles) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(201, 164, 92, 0.2));
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px; top: 7px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(201, 164, 92, 0.45);
}
.timeline-item h3 { margin-bottom: 0.2em; }
.timeline-past::before { background: var(--paper); border: 1px solid var(--gold); }
.card-org { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6em; }
.previous { color: var(--muted); margin: 0; }
.previous strong { color: var(--navy); font-weight: 600; }

/* Cards (Programs) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 36px; right: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: rgba(201, 164, 92, 0.5); }
.card h3 { font-size: 1.45rem; margin-bottom: 0.25em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, 0.5);
  background: var(--gold-tint);
  color: var(--navy);
  margin-bottom: 24px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-role {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5em;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1.8em; }
.tags li {
  border: 1px solid rgba(201, 164, 92, 0.6);
  background: var(--gold-tint);
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 18px;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Publications */
.pubs { list-style: none; counter-reset: pub; padding: 0; margin: 0; }
.pubs li {
  counter-increment: pub;
  position: relative;
  padding: 20px 0 20px 56px;
  border-top: 1px solid var(--line);
}
.pubs li:last-child { border-bottom: 1px solid var(--line); }
.pubs li::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute;
  left: 0; top: 18px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
}
.pub-title { font-weight: 600; color: var(--navy); }
.pub-venue { color: var(--muted); }
.pub-link { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-left: 6px; }

/* Lectures & Talks */
.talks { list-style: none; padding: 0; margin: 0; }
.talk {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.talk:last-child { border-bottom: 1px solid var(--line); }
.talk-date { margin: 0; text-align: center; border-right: 1px solid var(--line); padding-right: 24px; }
.talk-month { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--gold); line-height: 1.1; }
.talk-year { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; color: var(--muted); }
.talk-title { font-size: 1.25rem; margin-bottom: 0.2em; }
.talk-meta { color: var(--muted); font-size: 0.93rem; margin: 0; }

.item-link {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.item-link:hover { background: var(--gold); color: var(--navy); }

/* Events */
.events-head { font-size: 0.78rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.2em; }
.events-head ~ .events-head { margin-top: 3em; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.event-card {
  display: flex;
  gap: 28px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.event-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: rgba(201, 164, 92, 0.5); }
.event-date {
  flex: 0 0 84px;
  align-self: flex-start;
  text-align: center;
  padding: 14px 6px;
  background: var(--navy);
  border-radius: 10px;
  border-bottom: 2px solid var(--gold);
}
.event-day { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: #fff; }
.event-month { display: block; margin-top: 6px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.event-body { min-width: 0; }
.event-body > :last-child { margin-bottom: 0; }
.event-where { margin: 0 0 0.4em; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.event-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); line-height: 1.25; margin: 0 0 0.4em; }
.event-desc { color: var(--muted); font-size: 0.95rem; }
.event-body .item-link { margin-top: 4px; }
.empty-note { color: var(--muted); font-style: italic; list-style: none; }

/* Plain list */
.list { list-style: none; padding: 0; margin: 0; }
.list li { position: relative; padding-left: 28px; margin-bottom: 1em; }
.list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.8em;
  width: 14px; height: 1px;
  background: var(--gold);
}
.list strong { color: var(--navy); font-weight: 600; }

/* Memberships */
.members { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; }
.members li {
  min-width: 160px;
  text-align: center;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 32px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
  box-shadow: var(--shadow);
}

/* Contact */
.contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-link {
  display: block;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.contact-link:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.contact-label { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.contact-url { display: block; color: var(--muted); font-size: 0.92rem; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 48px;
  text-align: center;
  border-top: 1px solid rgba(201, 164, 92, 0.35);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.footer-name { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin: 0; }
.site-footer .gold-rule { width: 48px; }
.footer-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 8px 0 0; font-size: 0.82rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2),
.timeline .reveal:nth-child(2) { transition-delay: 0.1s; }
.timeline .reveal:nth-child(3) { transition-delay: 0.2s; }
.timeline .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Collapsed nav (menu button) ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--navy);
    border-bottom: 1px solid rgba(201, 164, 92, 0.25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .menu-open .nav-links { visibility: visible; opacity: 1; transform: none; }
  .nav-links li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-links a { display: block; padding: 14px 0; font-size: 0.85rem; }
  .nav-links a::after { display: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .highlights-list { grid-template-columns: repeat(2, 1fr); }
  .highlights-list li:nth-child(3) { border-left: 0; }
  .highlights-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-inner { gap: 48px; }
  .hero-photo { width: 200px; height: 200px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container { padding: 0 20px; }

  .hero { padding: calc(var(--header-h) + 48px) 0 72px; text-align: center; }
  .hero-lines::before { left: 12px; right: 12px; top: calc(var(--header-h) + 12px); bottom: 14px; }
  .hero-inner { flex-direction: column; gap: 36px; }
  .hero-photo-wrap { padding: 8px; }
  .hero-photo { width: 168px; height: 168px; }
  .photo-fallback { font-size: 3rem; }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; }
  .hero .gold-rule { margin-left: auto; margin-right: auto; }
  .hero-tagline { margin-left: auto; margin-right: auto; font-size: 1.05rem; }
  .hero-actions { justify-content: center; }

  .highlights-list { grid-template-columns: 1fr 1fr; padding: 0; }
  .highlights-list li { padding: 22px 14px; }
  .hl-label { font-size: 0.95rem; }

  .section { padding: 72px 0; }
  .card { padding: 32px 26px 28px; }
  .card::before { left: 26px; right: 26px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .pubs li { padding-left: 44px; }
  .members { gap: 12px; }
  .members li { flex: 1 1 30%; min-width: 0; padding: 18px 12px; font-size: 1.05rem; }

  .talk { grid-template-columns: 64px 1fr; gap: 6px 18px; padding: 22px 0; }
  .talk-date { grid-row: span 2; align-self: start; padding-right: 14px; }
  .talk-month { font-size: 1.2rem; }
  .talk-title { font-size: 1.1rem; }
  .talk .item-link { grid-column: 2; justify-self: start; margin-top: 8px; }
  .events { grid-template-columns: 1fr; gap: 20px; }
  .event-card { padding: 24px 20px; gap: 18px; }
  .event-date { flex-basis: 68px; padding: 12px 4px; }
  .event-day { font-size: 1.6rem; }
}

@media (max-width: 380px) {
  .highlights-list { grid-template-columns: 1fr; }
  .highlights-list li { border-left: 0; }
  .highlights-list li + li { border-top: 1px solid var(--line); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Patient education videos */
.patient-head { margin-top: 3.2em !important; }
.head-ar { font-family: "Noto Naskh Arabic", var(--serif); padding-left: 12px; border-left: 1px solid var(--line); letter-spacing: 0; text-transform: none; font-size: 1.05rem; color: var(--navy); margin-left: 6px; }
.patient-intro { color: var(--muted); margin: -0.4em 0 1.6em; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.video-card {
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--navy);
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 18px; box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.video-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: rgba(201, 164, 92, 0.5); color: var(--navy); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--radius) - 4px); background: var(--navy); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(11, 31, 58, 0.78); border: 1px solid var(--gold);
}
.video-play::after {
  content: ""; position: absolute; left: 21px; top: 16px;
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--gold);
}
.video-len { position: absolute; right: 8px; bottom: 8px; background: rgba(11, 31, 58, 0.85); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 2px 7px; border-radius: 3px; }
.video-title { font-family: "Noto Naskh Arabic", var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.6; text-align: right; padding: 0 4px; }
.video-meta { text-align: right; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); padding: 0 4px; }
@media (max-width: 600px) { .videos { grid-template-columns: 1fr; } }
