/* =========================================================
   Pakistan Muslim League (Z) — Design System
   Premium executive political website
   ========================================================= */

:root {
  --brand-green: #036637;
  --brand-green-deep: #013d22;
  --brand-green-mid: #024a28;
  --brand-green-soft: #0a7a45;
  --brand-gold: #fcef27;
  --brand-gold-muted: #c9b91a;
  --brand-gold-soft: #fff6a3;
  --ink: #0f1713;
  --ink-soft: #3a4740;
  --muted: #65756c;
  --line: rgba(15, 23, 19, 0.08);
  --line-strong: rgba(3, 102, 55, 0.16);
  --surface: #ffffff;
  --surface-soft: #f6f8f7;
  --surface-muted: #eef2ef;
  --shadow-sm: 0 1px 2px rgba(15, 23, 19, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 19, 0.07);
  --shadow-lg: 0 28px 64px rgba(15, 23, 19, 0.1);
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --nav-h: 4.75rem;
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 74rem;
  --section-y: clamp(5rem, 9vw, 8rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.25rem);
}

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

[id] {
  scroll-margin-top: calc(var(--nav-h) + 1.25rem);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
}

/* No blue browser link underlines / spell-mark look on chrome text */
a {
  color: inherit;
  text-decoration: none;
}

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

/* Accessibility: hide skip link unless focused (do not rely on Tailwind) */
.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10001;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}


::selection {
  background: rgba(3, 102, 55, 0.18);
  color: var(--ink);
}

.font-display {
  font-family: var(--font-display);
}

.bg-brand {
  background-color: var(--brand-green);
}

.bg-brand-deep {
  background-color: var(--brand-green-deep);
}

.text-brand {
  color: var(--brand-green);
}

.text-gold {
  color: var(--brand-gold);
}

.bg-soft {
  background-color: var(--surface-soft);
}

.border-brand-line {
  border-color: var(--line);
}

/* ---------- Loading ---------- */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #024a28, #036637 55%, #012a16);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
  /* CSS safety net — even if all JS is blocked (CSP, network),
     the loader will still fade out on its own so the page becomes usable. */
  animation: page-loader-safety 7s forwards;
}

#page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes page-loader-safety {
  0%, 85% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.loader-mark {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(252, 239, 39, 0.35);
  display: grid;
  place-items: center;
  animation: pulse-soft 1.4s var(--ease) infinite;
}

.loader-mark img {
  width: 3.25rem;
  height: 3.25rem;
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(252, 239, 39, 0.25);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 12px rgba(252, 239, 39, 0);
  }
}

/* ---------- Party flag ---------- */
.party-flag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 26rem;
  margin-inline: auto;
}

.party-flag::before {
  content: "";
  position: absolute;
  inset: 12% 8% 18%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(3, 102, 55, 0.12),
    rgba(252, 239, 39, 0.08) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.party-flag__media {
  position: relative;
  z-index: 1;
  width: 100%;
  transform-origin: 12% 50%;
  transition: transform 0.5s var(--ease);
}

.party-flag img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(1, 42, 22, 0.14));
  transition: filter 0.4s var(--ease);
}

.party-flag:hover .party-flag__media {
  transform: rotate(0.8deg);
}

.party-flag:hover img {
  filter: drop-shadow(0 22px 34px rgba(1, 42, 22, 0.2));
}

.party-flag__caption {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .party-flag__media,
  .hero-enter > * {
    animation: none !important;
    transition: none !important;
  }

  .hero-enter > * {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Header bar layout — pure CSS so chrome works if Tailwind CDN fails */
.site-header .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.site-header .header-nav-desktop,
.site-header .header-cta-wrap {
  display: none;
  align-items: center;
}

.site-header .header-nav-desktop {
  gap: 1.5rem;
}

.site-header .header-cta-wrap {
  gap: 0.75rem;
}

.site-header #menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .site-header .header-nav-desktop,
  .site-header .header-cta-wrap {
    display: flex;
  }

  .site-header #menu-toggle {
    display: none;
  }
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(18px);
  -webkit-backdrop-filter: saturate(1.2) blur(18px);
  box-shadow: 0 1px 0 rgba(15, 23, 19, 0.04), var(--shadow-sm);
  border-bottom-color: var(--line);
}

.site-header:not(.is-solid) .nav-link,
.site-header:not(.is-solid) .brand-text {
  color: #fff;
}

.site-header:not(.is-solid) .nav-link:hover,
.site-header:not(.is-solid) .nav-link.is-active {
  color: var(--brand-gold);
}

.site-header.is-solid .nav-link {
  color: var(--ink-soft);
}

.site-header.is-solid .nav-link:hover,
.site-header.is-solid .nav-link.is-active {
  color: var(--brand-green);
}

.site-header.is-solid .brand-text {
  color: var(--ink);
}

.site-header.is-solid #menu-toggle {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.site-header .brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 0 1 auto;
  color: inherit;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.site-header .brand-lockup:hover,
.site-header .brand-lockup:focus,
.site-header .brand-lockup:visited,
.site-header .brand-lockup:active {
  color: inherit;
  text-decoration: none !important;
}

.site-header .brand-lockup img {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  box-shadow: 0 0 0 2px rgba(252, 239, 39, 0.35);
}

.site-header .brand-text {
  line-height: 1.15;
  min-width: 0;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}

.site-header .brand-text__name,
.site-header .brand-text__sub {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  -webkit-text-decoration-line: none !important;
}

.site-header .brand-text__name {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header .brand-text__sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .site-header .header-bar {
    gap: 0.65rem;
  }

  .site-header .brand-lockup {
    flex: 1 1 auto;
    gap: 0.55rem;
  }

  .site-header .brand-lockup img {
    width: 2.4rem;
    height: 2.4rem;
  }

  .site-header .brand-text__name {
    font-size: 0.72rem;
  }

  .site-header .brand-text__sub {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }

  .site-header #menu-toggle {
    flex-shrink: 0;
  }
}

@media (min-width: 768px) {
  .site-header .brand-text__name {
    font-size: 0.92rem;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav__link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  background: var(--surface-soft);
  color: var(--brand-green);
}

.mobile-join {
  width: 100%;
  margin-top: 1.5rem;
}

.site-header #menu-toggle .hidden,
.site-header #menu-toggle .close-icon.hidden,
.hidden {
  display: none !important;
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1.5px;
  border-radius: 9999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
  opacity: 0.9;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  min-height: 2.6rem !important;
  padding-inline: 1.15rem !important;
  font-size: 0.8125rem !important;
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(1, 28, 16, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(21rem, 90vw);
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  padding: 5.75rem 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.mobile-panel.is-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer a.is-active {
  background: var(--surface-soft);
  color: var(--brand-green);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.55rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  background: var(--brand-gold);
  color: var(--brand-green-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 14px 32px rgba(0, 0, 0, 0.22);
  background: #fff29a;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--brand-green);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: var(--brand-green);
  color: #fff;
  box-shadow: 0 10px 28px rgba(3, 102, 55, 0.2);
}

.btn-dark:hover {
  background: var(--brand-green-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--surface-soft);
  color: var(--brand-green);
}

.btn-ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.35),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-ripple:active::after {
  opacity: 1;
}

/* =========================================================
   Hero — premium executive composition
   Left: brand content (clean, never overlapped)
   Right: dedicated image stage
     · Zia = soft inspiration (behind, left of stage)
     · Ijaz = living leadership (forward, right of stage)
   Mobile: content-first; stage becomes atmospheric wash
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

/* Dark emerald field — deep green, never black */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #012a16;
  background-image:
    radial-gradient(ellipse 50% 45% at 72% 28%, rgba(252, 239, 39, 0.035), transparent 68%),
    radial-gradient(ellipse 40% 40% at 20% 40%, rgba(2, 74, 40, 0.35), transparent 72%),
    linear-gradient(160deg, #013d22 0%, #012a16 45%, #011910 78%, #01180e 100%);
}

/* Soft emerald scrim for copy */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg,
      rgba(1, 42, 22, 0.72) 0%,
      rgba(1, 42, 22, 0.38) 32%,
      transparent 58%),
    linear-gradient(180deg,
      rgba(1, 42, 22, 0.28) 0%,
      transparent 22%,
      transparent 76%,
      rgba(1, 24, 14, 0.55) 100%);
  pointer-events: none;
}

/*
  Portrait stage:
  Zia — engraved thematic backdrop (legacy atmosphere)
  Ijaz — crisp leadership foreground
*/
.hero-stage {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(64%, 54rem);
  pointer-events: none;
  overflow: hidden;
}

.hero-stage__light {
  position: absolute;
  inset: 2% -6% 0 4%;
  background:
    radial-gradient(ellipse at 40% 38%, rgba(3, 102, 55, 0.32), transparent 62%),
    radial-gradient(ellipse at 76% 46%, rgba(252, 239, 39, 0.045), transparent 55%);
  filter: blur(42px);
  opacity: 0.85;
}

.hero-stage__figure {
  position: absolute;
  margin: 0;
  bottom: 0;
}

.hero-stage__figure picture,
.hero-stage__figure img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Zia — engraved theme, large soft backdrop behind Ijaz */
.hero-stage__figure--zia {
  left: -4%;
  bottom: 6%;
  width: 86%;
  aspect-ratio: 1 / 1;
  z-index: 1;
  opacity: 0;
  animation: hero-stage-in 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s forwards;
}

.hero-stage__figure--zia img {
  object-fit: contain;
  object-position: center 18%;
  opacity: 0.68;
  filter: brightness(1.22) contrast(1.06) saturate(0.92);
}

/* Ijaz — primary, anchored right, overlapping engraved edge */
.hero-stage__figure--ijaz {
  right: 1%;
  bottom: -2%;
  width: 48%;
  aspect-ratio: 3 / 4;
  z-index: 2;
  opacity: 0;
  animation: hero-stage-in 1.05s cubic-bezier(0.22, 0.61, 0.36, 1) 0.14s forwards;
}

.hero-stage__figure--ijaz img {
  object-fit: cover;
  object-position: center 6%;
  filter: saturate(1.02) contrast(1.04) brightness(1.04);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, black 12%, black 100%),
    linear-gradient(180deg, transparent 0%, black 2%, black 88%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, black 12%, black 100%),
    linear-gradient(180deg, transparent 0%, black 2%, black 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  animation: hero-leader-float 22s ease-in-out infinite;
}

@keyframes hero-stage-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-leader-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}


/* -------- Content lane -------- */
.hero-content {
  position: relative;
  z-index: 4;
  width: min(100% - 3.5rem, var(--max));
  margin-inline: auto;
  padding-block: clamp(7rem, 12vh, 9rem) clamp(3.5rem, 7vh, 5rem);
  display: flex;
  justify-content: flex-start;
}

.hero-copy {
  max-width: min(26rem, 36vw);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-crest {
  width: clamp(4.25rem, 7vw, 5.25rem);
  aspect-ratio: 1 / 1;
  margin-bottom: 1.35rem;
  display: grid;
  place-items: center;
}

.hero-crest__mark {
  width: 100%;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  transition: transform 0.6s var(--ease);
}

.hero-crest:hover .hero-crest__mark {
  transform: scale(1.03);
}

/* Quranic verse — “from darkness towards light”; crowns the hero, centered */
.hero-verse {
  position: absolute;
  z-index: 5;
  top: calc(var(--nav-h) + clamp(1.1rem, 3.5vh, 2.25rem));
  left: 0;
  right: 0;
  margin: 0 auto;
  width: clamp(16rem, 24vw, 20rem);
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise 0.7s var(--ease) 0.04s forwards;
}

.hero-verse img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.032em;
  max-width: 11ch;
  margin: 0;
  text-wrap: balance;
}

.hero-subbrand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.15rem 0 0;
  font-size: clamp(0.66rem, 0.9vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.hero-subbrand__rule {
  display: inline-block;
  width: clamp(1.25rem, 2.5vw, 2.25rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 239, 39, 0.7), transparent);
}

.hero-tagline {
  margin: 1.15rem 0 0;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  max-width: 20rem;
  line-height: 1.55;
}

.hero-leader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 1.75rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.hero-leader__role {
  font-weight: 600;
}

.hero-leader__name {
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--brand-gold);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.25s var(--ease);
}

.hero-scroll-hint:hover,
.hero-scroll-hint:focus-visible {
  color: var(--brand-gold);
}

.hero-scroll-hint i {
  animation: hero-scroll-bounce 2.2s var(--ease) infinite;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50%      { transform: translateY(4px); opacity: 1; }
}

.hero-enter > * {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise 0.7s var(--ease) forwards;
}

.hero-enter .hero-crest { animation-delay: 0.08s; }
.hero-enter .hero-brand { animation-delay: 0.12s; }
.hero-enter .hero-subbrand { animation-delay: 0.16s; }
.hero-enter .hero-tagline { animation-delay: 0.2s; }
.hero-enter .hero-leader { animation-delay: 0.24s; }
.hero-enter .hero-cta { animation-delay: 0.3s; }
.hero-enter .hero-scroll-hint { animation-delay: 0.38s; }

@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* -------- Tablet -------- */
@media (max-width: 1023px) {
  .hero-content {
    width: min(100% - 2.5rem, var(--max));
  }

  .hero-copy {
    max-width: min(24rem, 44vw);
  }

  .hero-stage {
    width: min(62%, 36rem);
  }

  .hero-stage__figure--zia {
    left: -6%;
    bottom: 8%;
    width: 90%;
  }

  .hero-stage__figure--zia img {
    opacity: 0.62;
  }

  .hero-stage__figure--ijaz {
    width: 52%;
    right: 0;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg,
        rgba(1, 42, 22, 0.88) 0%,
        rgba(1, 42, 22, 0.58) 36%,
        rgba(1, 42, 22, 0.22) 58%,
        transparent 100%),
      linear-gradient(180deg,
        rgba(1, 42, 22, 0.4) 0%,
        transparent 26%,
        transparent 70%,
        rgba(1, 24, 14, 0.62) 100%);
  }
}

/* -------- Mobile --------
   One continuous field: copy + portraits share the same dark
   green plane (no split / second section color). */
@media (max-width: 720px) {
  .hero {
    display: block;
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    background: #012a16;
  }

  .hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    /* Extra top space clears the absolutely-positioned verse above the copy */
    padding:
      calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 6.7rem)
      1.25rem
      clamp(15.5rem, 46svh, 21rem);
  }

  .hero-copy {
    text-align: center;
    align-items: center;
    max-width: 20.5rem;
    width: 100%;
    margin-inline: auto;
  }

  /* Nav already carries the crest — drop the duplicate mark */
  .hero-crest {
    display: none;
  }

  .hero-verse {
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 0.6rem);
    width: min(14.5rem, 72vw);
  }

  .hero-brand {
    font-size: clamp(1.65rem, 6.8vw, 2rem);
    max-width: 14ch;
    line-height: 1.08;
    margin-inline: auto;
    text-align: center;
  }

  .hero-subbrand {
    margin-top: 0.55rem;
    margin-inline: auto;
    justify-content: center;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    gap: 0.4rem;
  }

  .hero-subbrand__rule {
    width: 0.85rem;
  }

  .hero-tagline {
    margin-top: 0.5rem;
    margin-inline: auto;
    font-size: 0.88rem;
    line-height: 1.4;
    max-width: 17rem;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
  }

  .hero-leader {
    align-items: center;
    margin-top: 0.8rem;
    margin-inline: auto;
    gap: 0.12rem;
    text-align: center;
  }

  .hero-leader__name {
    font-size: 0.92rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: min(100%, 15.25rem);
    max-width: 15.25rem;
    margin-top: 0.95rem;
    margin-inline: auto;
    margin-bottom: 0;
    gap: 0.45rem;
    position: relative;
    z-index: 5;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.55rem;
    font-size: 0.9rem;
  }

  .hero-scroll-hint {
    display: none;
  }

  /* Portraits float on the same background — no separate panel */
  .hero-stage {
    position: absolute;
    z-index: 1;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: clamp(15.5rem, 48svh, 22rem);
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
  }

  .hero-stage::before {
    display: none;
  }

  .hero-stage__light {
    display: none;
  }

  .hero-stage__figure--zia,
  .hero-stage__figure--ijaz {
    position: absolute;
    margin: 0;
    animation: none;
    opacity: 1;
  }

  .hero-stage__figure--zia {
    left: -8%;
    bottom: -10%;
    width: 74%;
    height: 104%;
    aspect-ratio: auto;
    max-width: none;
    z-index: 1;
  }

  .hero-stage__figure--zia img {
    object-fit: cover;
    object-position: 42% 8%;
    opacity: 0.28;
    filter: brightness(1.02) contrast(1.02) saturate(0.65);
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, black 16%, black 80%, transparent 100%),
      linear-gradient(180deg, transparent 0%, transparent 12%, black 36%, black 92%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, black 16%, black 80%, transparent 100%),
      linear-gradient(180deg, transparent 0%, transparent 12%, black 36%, black 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .hero-stage__figure--ijaz {
    right: 0;
    bottom: -4%;
    width: 68%;
    height: 106%;
    aspect-ratio: auto;
    max-width: none;
    z-index: 2;
  }

  .hero-stage__figure--ijaz img {
    object-fit: cover;
    object-position: center 2%;
    opacity: 1;
    animation: none;
    filter: saturate(1.04) contrast(1.05) brightness(1.04);
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, black 16%, black 100%),
      linear-gradient(180deg, transparent 0%, transparent 6%, black 22%, black 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, black 16%, black 100%),
      linear-gradient(180deg, transparent 0%, transparent 6%, black 22%, black 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  /* Flat continuous field — no mid-screen color break */
  .hero-media {
    background-color: #012a16;
    background-image: none;
  }

  .hero-media::after {
    background: none;
  }
}

@media (max-width: 720px) and (max-height: 720px) {
  .hero-content {
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 5.4rem);
    padding-bottom: clamp(12rem, 40svh, 16rem);
  }

  .hero-verse {
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 0.4rem);
    width: min(12rem, 60vw);
  }

  .hero-tagline {
    display: none;
  }

  .hero-brand {
    font-size: clamp(1.5rem, 6.2vw, 1.8rem);
  }

  .hero-leader {
    margin-top: 0.65rem;
  }

  .hero-cta {
    margin-top: 0.75rem;
    max-width: 14.5rem;
  }

  .hero-cta .btn {
    min-height: 2.4rem;
  }

  .hero-stage {
    height: clamp(12rem, 40svh, 16rem);
  }
}

@media (max-width: 720px) and (max-height: 640px) {
  .hero-subbrand {
    margin-top: 0.4rem;
  }

  .hero-leader__role {
    display: none;
  }

  .hero-cta {
    margin-top: 0.55rem;
    gap: 0.4rem;
  }

  .hero-stage__figure--zia img {
    opacity: 0.3;
  }
}

@media (max-width: 380px) {
  .hero-brand {
    font-size: 1.45rem;
  }

  .hero-stage__figure--zia {
    width: 80%;
    left: -10%;
  }

  .hero-stage__figure--ijaz {
    width: 74%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage__figure--zia,
  .hero-stage__figure--ijaz,
  .hero-stage__figure--ijaz img,
  .hero-scroll-hint i,
  .hero-enter > *,
  .hero-verse,
  .hero-crest__mark {
    animation: none !important;
    transition: none !important;
  }

  .hero-stage__figure--zia,
  .hero-stage__figure--ijaz,
  .hero-enter > *,
  .hero-verse {
    opacity: 1;
    transform: none;
  }
}


.stats-band {
  position: relative;
  background: linear-gradient(180deg, #012a16 0%, #013d22 100%);
  border-block: 1px solid rgba(252, 239, 39, 0.1);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}

.stat-item {
  position: relative;
  text-align: left;
}

@media (min-width: 1024px) {
  .stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1.25rem;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(252, 239, 39, 0.28), transparent);
  }
}

.stat-label {
  margin: 0.65rem 0 0;
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.portrait-frame {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -0.75rem;
  border-radius: calc(var(--radius-xl) + 0.35rem);
  border: 1px solid rgba(3, 102, 55, 0.14);
  background: linear-gradient(145deg, rgba(252, 239, 39, 0.12), transparent 50%);
  z-index: 0;
}

.portrait-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 3.25rem) 0 4.25rem;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(252, 239, 39, 0.08), transparent 50%),
    linear-gradient(145deg, #024a28 0%, #013d22 55%, #011910 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 239, 39, 0.35), transparent);
}

.page-hero .container-site {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 40rem;
}

.page-hero .section-eyebrow {
  color: var(--brand-gold);
}

.page-hero .section-eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 1.5px;
  border-radius: 9999px;
  background: var(--brand-gold);
  opacity: 0.85;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-y);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-green);
}

.section-eyebrow--on-dark {
  color: var(--brand-gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 600;
}

.section-title--on-dark {
  color: #fff;
}

.section-brand {
  background: linear-gradient(160deg, #024a28 0%, #036637 42%, #013d22 100%);
}

.section-brand__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 45% 55% at 12% 20%, rgba(252, 239, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 50% at 88% 75%, rgba(255, 255, 255, 0.05), transparent 50%);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(252, 239, 39, 0.1), transparent 55%),
    linear-gradient(145deg, #024a28, #011910);
  border: 1px solid rgba(252, 239, 39, 0.12);
  box-shadow: var(--shadow-lg);
}

.cta-panel__glow {
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 14rem;
  height: 14rem;
  border-radius: 9999px;
  background: rgba(252, 239, 39, 0.1);
  filter: blur(40px);
  pointer-events: none;
}

.section-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 40rem;
}

.container-site {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 1536px) {
  .container-site {
    width: min(100% - 4rem, 80rem);
  }

  :root {
    --max: 80rem;
  }
}

/* ---------- Cards / Interactive surfaces ---------- */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s;
  position: relative;
}

.surface-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.icon-tile {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: rgba(3, 102, 55, 0.07);
  color: var(--brand-green);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.surface-card:hover .icon-tile {
  background: rgba(3, 102, 55, 0.12);
  transform: translateY(-1px);
}

.manifesto-card[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.manifesto-card summary {
  list-style: none;
  cursor: pointer;
}

.manifesto-card summary::-webkit-details-marker {
  display: none;
}

.manifesto-card .chevron {
  transition: transform 0.3s var(--ease);
}

.manifesto-card[open] .chevron {
  transform: rotate(180deg);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-green), rgba(3, 102, 55, 0.15));
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 2.5rem;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 2.5rem;
  }
}

.timeline-dot {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 9999px;
  background: var(--brand-gold);
  border: 3px solid var(--brand-green);
  box-shadow: 0 0 0 4px rgba(252, 239, 39, 0.2);
}

@media (min-width: 768px) {
  .timeline-item .timeline-dot {
    left: auto;
    right: -0.45rem;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: -0.45rem;
    right: auto;
  }
}

/* ---------- Gallery ---------- */
.masonry {
  columns: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .masonry {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .masonry {
    columns: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ---------- Stats ---------- */
.stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--brand-gold);
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(252, 239, 39, 0.06), transparent 50%),
    linear-gradient(180deg, #013d22 0%, #011910 100%);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(252, 239, 39, 0.1);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.25s;
}

.site-footer a:hover {
  color: var(--brand-gold);
}

.footer-title {
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.footer-brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  box-shadow: 0 0 0 2px rgba(252, 239, 39, 0.28);
}

.footer-brand span {
  font-weight: 750;
  color: #fff;
  line-height: 1.25;
  font-size: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 20rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 550;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.footer-social a:hover {
  background: rgba(252, 239, 39, 0.14);
  border-color: rgba(252, 239, 39, 0.35);
  color: var(--brand-gold);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s var(--ease);
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--brand-gold);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--brand-green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Reveal animations ---------- */
/* Only hide awaiting-reveal when JS is active — never blank critical media if scripts fail */
html.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

html.js [data-reveal="left"]:not(.is-visible),
html.js [data-reveal="right"]:not(.is-visible),
html.js [data-reveal="scale"]:not(.is-visible) {
  transform: translateY(12px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Utilities ---------- */
.prose-party p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Announcement rich body — spacing, inline formatting, Urdu / RTL */
.announcement-body {
  color: var(--ink-soft);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.announcement-body p,
.announcement-body h2,
.announcement-body h3,
.announcement-body h4,
.announcement-body blockquote,
.announcement-body ul,
.announcement-body ol {
  margin: 0 0 1rem;
}

.announcement-body h2 {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--ink);
}

.announcement-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.announcement-body blockquote {
  border-left: 3px solid var(--brand-green);
  padding-left: 1rem;
  color: var(--ink-soft);
}

.announcement-body[dir="rtl"],
.announcement-body [dir="rtl"] {
  font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", Manrope, sans-serif;
  line-height: 2.15;
}

.announcement-body blockquote[dir="rtl"] {
  border-left: 0;
  border-right: 3px solid var(--brand-green);
  padding-left: 0;
  padding-right: 1rem;
}

.announcement-body ul,
.announcement-body ol {
  padding-left: 1.35rem;
}

.announcement-body[dir="rtl"] ul,
.announcement-body[dir="rtl"] ol,
.announcement-body [dir="rtl"] ul,
.announcement-body [dir="rtl"] ol {
  padding-left: 0;
  padding-right: 1.35rem;
}

.announcement-body a {
  color: var(--brand-green);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.announcement-excerpt {
  color: var(--ink-soft);
  line-height: 1.75;
}

.announcement-excerpt p:last-child {
  margin-bottom: 0;
}

.announcement-excerpt[dir="rtl"],
.announcement-excerpt [dir="rtl"] {
  font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", Manrope, sans-serif;
  line-height: 2;
}

.divider-gold {
  width: 3.5rem;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--brand-gold), rgba(252, 239, 39, 0.1));
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(3, 102, 55, 0.08);
  color: var(--brand-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
}

.contact-line__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.contact-line__value {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.focus-ring:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b1a12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 9 / 16;
  max-height: 34rem;
}

.video-frame--wide {
  aspect-ratio: 16 / 9;
  max-height: none;
  border-color: rgba(3, 102, 55, 0.16);
  box-shadow: var(--shadow-soft);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.announcement-card-media {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-muted, #eef2ef);
}

.announcement-card-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 10px;
  background: var(--surface-muted, #eef2ef);
}

.announcement-video-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(2, 74, 40, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement-video-badge::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 0.28rem solid transparent;
  border-bottom: 0.28rem solid transparent;
  border-left: 0.42rem solid currentColor;
}

.announcement-video figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.announcement-video a {
  color: var(--brand-green);
  font-weight: 800;
}

.filter-btn.is-active {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

/* ---------- Party gallery wall ---------- */
.gallery-wall {
  column-count: 3;
  column-gap: 1rem;
  min-height: 120px;
}

@media (max-width: 1023px) {
  .gallery-wall {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .gallery-wall {
    column-count: 1;
  }
}

.gallery-item {
  position: relative;
  display: block;
  margin-bottom: 1rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-muted, #eef2ef);
  box-shadow: 0 6px 22px rgba(2, 42, 22, 0.08);
  break-inside: avoid;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.gallery-item img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 32, 17, 0.72) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item__tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(2, 42, 22, 0.78);
  color: #fcef27;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-item__caption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.8rem;
  z-index: 1;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.gallery-item:hover .gallery-item__caption,
.gallery-item:focus-visible .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .gallery-item::after,
  .gallery-item__caption {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 18, 12, 0.88);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: grid;
}

.lightbox-dialog {
  position: relative;
  width: min(100%, 52rem);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(92vh - 4rem);
  object-fit: contain;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-align: center;
  max-width: 40rem;
}

.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-green-deep);
  font-size: 1.75rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

.lightbox-prev {
  left: 0.25rem;
}

.lightbox-next {
  right: 0.25rem;
}

@media (max-width: 640px) {
  .lightbox-nav {
    top: auto;
    bottom: 3.5rem;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 3.5rem);
  }

  .lightbox-next {
    right: calc(50% - 3.5rem);
  }
}

.doc-thumb {
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.doc-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pdf-frame {
  position: relative;
  width: 100%;
  height: min(70vh, 42rem);
  border: 0;
}

.pdf-frame--tall {
  height: min(85vh, 56rem);
}

.pdf-embed {
  width: 100%;
  height: 100%;
}

.pdf-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f4f7f5;
}

/* Phones / tablets: native PDF iframes are unreliable (blank/tiny/stuck). */
.pdf-mobile-card {
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  min-height: 14rem;
  padding: 1.5rem 1.25rem 1.75rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(3, 102, 55, 0.08), transparent 65%),
    var(--surface-muted, #f4f7f5);
}

.pdf-mobile-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-inline: auto;
  border-radius: 0.9rem;
  background: rgba(3, 102, 55, 0.1);
  color: var(--brand, #036637);
}

.pdf-mobile-card__title {
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink, #122018);
  line-height: 1.3;
}

.pdf-mobile-card__text {
  margin: 0 auto;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft, #4a5c52);
}

.pdf-mobile-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.pdf-mobile-card__actions .btn {
  min-height: 2.75rem;
  flex: 1 1 9rem;
  max-width: 14rem;
}

/* Force card UI for huge PDFs (no iframe download of 4–14MB files) */
.pdf-frame--native-only,
.pdf-frame--native-only.pdf-frame--tall {
  height: auto;
  min-height: 0;
}

.pdf-frame--native-only .pdf-embed {
  display: none !important;
}

.pdf-frame--native-only .pdf-mobile-card {
  display: flex;
}

.pdf-frame--native-only + .pdf-doc-actions,
.pdf-frame--native-only .pdf-doc-actions {
  /* no-op placeholder for specificity clarity */
}

@media (max-width: 1023px) {
  .pdf-frame,
  .pdf-frame--tall {
    height: auto;
    min-height: 0;
  }

  .pdf-embed {
    display: none !important;
  }

  .pdf-mobile-card {
    display: flex;
  }

  /* Avoid duplicate View / Download next to the mobile card CTAs */
  .pdf-doc-actions {
    display: none !important;
  }
}

/* ---------- Media / Reels ---------- */
.media-hero {
  background: #012a16;
}

.media-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 40%, rgba(252, 239, 39, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(10, 122, 69, 0.45), transparent 55%),
    linear-gradient(145deg, #024a28 0%, #012a16 55%, #01180e 100%);
}

.media-portrait-stack {
  position: relative;
  max-width: 22rem;
  margin-inline: auto;
}

.media-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.media-live-pill {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  background: rgba(1, 42, 22, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8125rem;
  font-weight: 700;
}

.media-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #fcef27;
  box-shadow: 0 0 0 4px rgba(252, 239, 39, 0.25);
  animation: pulse-soft 1.6s var(--ease) infinite;
}

.yt-stage {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #0b1a12;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.yt-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.phone-mock {
  width: min(100%, 22rem);
  margin-inline: auto;
  padding: 0.75rem;
  border-radius: 2.25rem;
  background: linear-gradient(160deg, #1a1f1c, #0d1210);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-notch {
  width: 7rem;
  height: 1.1rem;
  margin: 0.35rem auto 0.75rem;
  border-radius: 9999px;
  background: #050806;
}

.phone-screen {
  border-radius: 1.6rem;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 9 / 16;
  max-height: 36rem;
}

.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.platform-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.platform-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.platform-card--yt .platform-card__icon {
  background: rgba(255, 0, 0, 0.08);
  color: #cc0000;
}

.platform-card--fb .platform-card__icon {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
}

.media-cta {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 2rem;
  background:
    radial-gradient(ellipse 40% 80% at 100% 0%, rgba(252, 239, 39, 0.15), transparent 50%),
    linear-gradient(135deg, #024a28, #012a16);
  color: #fff;
}

@media (min-width: 768px) {
  .media-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.media-preview-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .media-preview-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.media-preview-main {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b1a12;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.media-preview-main iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-channel-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.5rem;
  border-radius: 1.5rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.media-channel-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.media-channel-tile--yt {
  background: linear-gradient(145deg, #5c1a1a, #2a1010);
}

.media-channel-tile--fb {
  background: linear-gradient(145deg, #036637, #024a28);
}

.office-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.office-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  min-width: 28rem;
}

.office-table th,
.office-table td {
  text-align: left;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.office-table th {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-soft);
}

.office-table tbody tr:last-child td {
  border-bottom: 0;
}

.office-table tr:hover td {
  background: rgba(3, 102, 55, 0.035);
}

.office-table td:first-child {
  font-weight: 650;
  color: var(--ink);
}

.principle-tile {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem 1.15rem;
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s;
}

.principle-tile:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(252, 239, 39, 0.28);
}

.form-field {
  width: 100%;
  min-height: 3rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-field:focus {
  outline: none;
  border-color: rgba(3, 102, 55, 0.45);
  box-shadow: 0 0 0 4px rgba(3, 102, 55, 0.1);
}

.form-field::placeholder {
  color: var(--muted);
}

textarea.form-field {
  min-height: 8.5rem;
  resize: vertical;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-enter > * {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   develop-branch enhancements (v2)
   Our Platform grid · News/Events timeline
   (Hero-specific rules now live in the main hero block above.)
   ========================================================= */

/* ---------- Our Platform grid ---------- */
.platform-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
}

@media (min-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.65rem 1.5rem 1.4rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(3, 102, 55, 0.06), rgba(252, 239, 39, 0.05) 60%, transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
}

.platform-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.platform-card:hover,
.platform-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.platform-card:hover::before,
.platform-card:focus-visible::before { opacity: 1; }

.platform-card:hover::after,
.platform-card:focus-visible::after { transform: scaleX(1); }

.platform-card__num {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: rgba(3, 102, 55, 0.14);
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.platform-card:hover .platform-card__num,
.platform-card:focus-visible .platform-card__num {
  color: var(--brand-green);
  transform: translateY(-2px);
}

.platform-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(3, 102, 55, 0.08);
  color: var(--brand-green);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.platform-card:hover .platform-card__icon,
.platform-card:focus-visible .platform-card__icon {
  background: var(--brand-green);
  color: #ffffff;
  transform: rotate(-4deg);
}

.platform-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: 0.15rem;
}

.platform-card__desc {
  font-size: 0.885rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}

.platform-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-top: 0.35rem;
}

.platform-card__cta i {
  transition: transform 0.3s var(--ease);
}

.platform-card:hover .platform-card__cta i,
.platform-card:focus-visible .platform-card__cta i {
  transform: translateX(3px);
}

/* ---------- News grid (home preview) ---------- */
.news-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.news-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.news-card:hover::after,
.news-card:focus-visible::after { transform: scaleX(1); }

.news-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.news-card__head time { font-weight: 600; letter-spacing: 0.02em; }

.news-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.news-card__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}

.news-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-top: 0.15rem;
}

.news-card__cta i {
  transition: transform 0.3s var(--ease);
}

.news-card:hover .news-card__cta i,
.news-card:focus-visible .news-card__cta i {
  transform: translateX(3px);
}

/* ---------- Timeline (media.html #news) ---------- */
.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9999px;
  width: max-content;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}

.timeline-chip {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.timeline-chip:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.timeline-chip.is-active {
  background: var(--brand-green);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(3, 102, 55, 0.22);
}

/* --- News timeline (media.html) ---
   Namespaced under `.news-timeline` so it does NOT collide with the
   pre-existing alternating-timeline component used by elections.html. */
.news-timeline {
  position: relative;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(3, 102, 55, 0.4), rgba(3, 102, 55, 0.08));
  border-radius: 2px;
}

@media (min-width: 768px) {
  .news-timeline::before { left: 1.5rem; }
}

.news-timeline__item {
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .news-timeline__item { padding-left: 4.25rem; }
}

.news-timeline__item.is-hidden { display: none; }

.news-timeline__node {
  position: absolute;
  left: 0.15rem;
  top: 0.35rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--brand-green);
  border: 2px solid var(--brand-green);
  box-shadow: 0 0 0 4px rgba(3, 102, 55, 0.08);
  z-index: 1;
}

@media (min-width: 768px) {
  .news-timeline__node { left: 0.6rem; }
}

.news-timeline__card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem 1.2rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.news-timeline__item:hover .news-timeline__card,
.news-timeline__item:focus-within .news-timeline__card {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.news-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.news-timeline__meta time {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(3, 102, 55, 0.1);
  color: var(--brand-green);
}

.timeline-tag--elections { background: rgba(212, 165, 16, 0.14); color: #7a5f00; }
.timeline-tag--ecp       { background: rgba(29, 78, 216, 0.10); color: #1d4ed8; }
.timeline-tag--media     { background: rgba(190, 24, 93, 0.10); color: #be185d; }
.timeline-tag--party     { background: rgba(3, 102, 55, 0.10); color: var(--brand-green); }
.timeline-tag--announcement { background: rgba(3, 102, 55, 0.12); color: #024a28; }
.timeline-tag--vlog { background: rgba(185, 28, 28, 0.10); color: #b91c1c; }
.timeline-tag--podcast { background: rgba(67, 56, 202, 0.10); color: #4338ca; }
.timeline-tag--campaign { background: rgba(180, 83, 9, 0.12); color: #9a3412; }
.timeline-tag--press { background: rgba(14, 116, 144, 0.12); color: #0e7490; }
.timeline-tag--other { background: rgba(75, 85, 99, 0.12); color: #374151; }

.news-timeline__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.news-timeline__desc {
  font-size: 0.895rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.news-timeline__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-green);
  text-decoration: none;
}

.news-timeline__link:hover,
.news-timeline__link:focus-visible { text-decoration: underline; }

.news-timeline__link i { transition: transform 0.3s var(--ease); }
.news-timeline__link:hover i { transform: translateX(3px); }

.news-timeline__empty {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Prebuilt Tailwind misses arbitrary CSS-var box-shadows */
.shadow-\[var\(--shadow-sm\)\] { box-shadow: var(--shadow-sm); }
.shadow-\[var\(--shadow-md\)\] { box-shadow: var(--shadow-md); }
.shadow-\[var\(--shadow-lg\)\] { box-shadow: var(--shadow-lg); }
