/* ============================================================
   KSWA public site — editorial layer (loaded on public pages only).
   Floating nav, heavy display type, pill buttons, rounded media
   cards, dark gallery band, black footer. Admin is unaffected.

   Kannada rule: never apply letter-spacing to Kannada text — it
   splits conjuncts apart. Kannada also needs a taller line-height
   than Latin so vowel signs aren't clipped.
   ============================================================ */

:root {
  --k-ink: #0f1110;
  --k-ink-soft: #2b302d;
  --k-muted: #6b716e;
  --k-line: rgba(15, 17, 16, .08);
  --k-green: #0a7d46;
  --k-green-deep: #04432a;
  --k-gold: #c9a227;
  --k-sky-top: #d6e5ee;
  --k-sky-mid: #edf3f6;
  --k-mist: #e8eef1;
  --k-fog-top: #f4f5f5;
  --k-fog-bottom: #e8e9e9;
  --k-paper: #ffffff;
  --k-frame: #e6d8bd;
  --k-font: 'Manrope', 'Baloo Tamma 2', 'Segoe UI', system-ui, sans-serif;
  --k-font-kn: 'Baloo Tamma 2', 'Manrope', 'Segoe UI', sans-serif;
  --k-radius-lg: 28px;
  --k-radius: 22px;
  --k-radius-sm: 16px;
  --k-shadow: 0 1px 2px rgba(15, 17, 16, .04), 0 12px 32px rgba(15, 17, 16, .07);
  --k-shadow-hover: 0 2px 4px rgba(15, 17, 16, .05), 0 22px 48px rgba(15, 17, 16, .12);
  --k-section-y: clamp(84px, 11vw, 150px);
  --k-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */

body.public-body {
  font-family: var(--k-font);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--k-ink);
  background: var(--k-paper);
  -webkit-font-smoothing: antialiased;
}
.public-body h1, .public-body h2, .public-body h3,
.public-body h4, .public-body h5, .public-body h6,
.public-body .kn, .public-body .kn h2, .public-body .kn h3,
.public-body .kn h4, .public-body .kn h5, .public-body .kn .fw-bold {
  font-family: var(--k-font);
  letter-spacing: 0;
}
.public-body a { color: var(--k-ink); }
.public-body ::selection { background: var(--k-ink); color: #fff; }

/* ---------- Buttons ---------- */

.k-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--k-font);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  padding: .95rem 1.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--k-ease), color .25s var(--k-ease), border-color .25s var(--k-ease), transform .25s var(--k-ease), box-shadow .25s var(--k-ease);
}
.k-btn .bi { font-size: 1em; transition: transform .25s var(--k-ease); }
.k-btn:hover .bi-arrow-right, .k-btn:hover .bi-chevron-right { transform: translateX(3px); }
.k-btn:focus-visible { outline: 2px solid var(--k-green); outline-offset: 3px; }
.k-btn-sm { padding: .62rem 1.1rem; font-size: .82rem; }

.public-body .k-btn-dark { background: var(--k-ink); color: #fff; }
.public-body .k-btn-dark:hover { background: var(--k-green); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10, 125, 70, .25); }

.public-body .k-btn-light { background: #fff; color: var(--k-ink); border-color: var(--k-line); box-shadow: 0 2px 10px rgba(15, 17, 16, .05); }
.public-body .k-btn-light:hover { border-color: var(--k-ink); color: var(--k-ink); transform: translateY(-2px); }

.public-body .k-btn-ghost { background: transparent; color: var(--k-ink); }
.public-body .k-btn-ghost:hover { background: #f1f3f2; color: var(--k-ink); }

.public-body .k-btn-pill { background: #fff; color: var(--k-ink); border-color: var(--k-line); padding: .7rem 1.25rem; font-size: .82rem; box-shadow: 0 2px 10px rgba(15, 17, 16, .05); }
.public-body .k-btn-pill:hover { border-color: var(--k-ink); color: var(--k-ink); }
.public-body .k-btn-pill-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.public-body .k-btn-pill-light:hover { background: #fff; color: var(--k-ink); border-color: #fff; }

.public-body .k-btn-white { background: #fff; color: var(--k-ink); }
.public-body .k-btn-white:hover { background: var(--k-gold); color: var(--k-ink); transform: translateY(-2px); }
.public-body .k-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.public-body .k-btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

/* Bootstrap buttons used by inner pages and forms, brought into the same language. */
.public-body .btn { font-family: var(--k-font); font-weight: 700; letter-spacing: 0; }
.public-body .btn-success {
  background: var(--k-ink) !important;
  border-color: var(--k-ink) !important;
  color: #fff !important;
  box-shadow: none;
}
.public-body .btn-success:hover, .public-body .btn-success:focus {
  background: var(--k-green) !important;
  border-color: var(--k-green) !important;
  box-shadow: 0 10px 24px rgba(10, 125, 70, .22);
}
.public-body .btn-outline-success, .public-body .btn-outline-secondary {
  color: var(--k-ink) !important;
  border: 1px solid rgba(15, 17, 16, .14) !important;
  background: #fff;
}
.public-body .btn-outline-success:hover, .public-body .btn-outline-secondary:hover {
  background: var(--k-ink) !important;
  border-color: var(--k-ink) !important;
  color: #fff !important;
  box-shadow: none;
}

/* ---------- Floating navigation ---------- */

.k-nav-wrap {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 0 16px;
  pointer-events: none;
}
.k-nav {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 12px 10px 22px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 17, 16, .05);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(15, 17, 16, .07);
  transition: box-shadow .3s var(--k-ease);
}
.k-nav-wrap.is-scrolled .k-nav { box-shadow: 0 10px 36px rgba(15, 17, 16, .13); }
.k-nav-spacer { height: 104px; }

.k-brand { display: flex; align-items: center; gap: .6rem; padding: 0; margin-right: 1.25rem; text-decoration: none; }
.k-brand-logo { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 2px 8px rgba(15, 17, 16, .12); transition: transform .4s var(--k-ease); }
.k-brand:hover .k-brand-logo { transform: rotate(-8deg) scale(1.05); }
.k-brand-mark { font-family: var(--k-font); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; color: var(--k-ink); }
.k-brand-sub {
  font-family: var(--k-font);
  font-size: .56rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--k-muted);
  padding-left: .7rem;
  border-left: 1px solid var(--k-line);
}

.k-nav .navbar-nav .nav-link {
  font-family: var(--k-font);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--k-muted);
  padding: .55rem .72rem !important;
  border-radius: 10px;
  background: transparent;
}
.k-nav .navbar-nav .nav-link:hover { color: var(--k-ink) !important; background: #f3f5f4; }
.k-nav .navbar-nav .nav-link.active { color: var(--k-ink) !important; }
.k-nav .navbar-nav .nav-link.active::after {
  left: 50%;
  right: auto;
  bottom: .15rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--k-green);
}
.k-nav-actions { display: flex; align-items: center; gap: .35rem; }

.k-nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f1f3f2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.k-nav-toggle:focus { box-shadow: none; }
.k-nav-toggle:focus-visible { box-shadow: 0 0 0 2px var(--k-green); }
.k-nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--k-ink); transition: transform .3s var(--k-ease); }
.k-nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.k-nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Full menu on mid-size laptops: drop the small caption so logo + KSWA + all
   links fit on one row. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .k-brand-sub { display: none; }
}

@media (max-width: 1199.98px) {
  .k-nav { padding: 10px 10px 10px 18px; }
  .k-nav .navbar-collapse { padding: .75rem 0 .35rem; }
  .k-nav .navbar-nav .nav-link { font-size: 1rem; padding: .7rem .6rem !important; }
  .k-nav .navbar-nav .nav-link.active::after { left: auto; right: .6rem; top: 50%; bottom: auto; transform: translateY(-50%); }
  .k-nav-actions { flex-wrap: wrap; padding-top: .75rem; margin-top: .5rem; border-top: 1px solid var(--k-line); }
  .k-nav-actions .k-btn { flex: 1 1 auto; }
}

/* ---------- Shared section scaffolding ---------- */

.k-main { display: block; }
.k-section { padding: var(--k-section-y) 0; position: relative; }
.k-section-tight { padding-top: clamp(24px, 4vw, 48px); }
.k-section-mist { background: var(--k-mist); }
.k-section-fog { background: linear-gradient(180deg, var(--k-fog-top), var(--k-fog-bottom)); }
.k-section-dark { background: #0f1110; color: rgba(255, 255, 255, .72); }

.k-eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.1rem;
  font-family: var(--k-font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--k-muted);
}
.k-eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .45; flex-shrink: 0; }
.k-eyebrow-center { justify-content: center; }
.k-eyebrow-center::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .45; flex-shrink: 0; }
.k-eyebrow-kn { font-family: var(--k-font-kn); font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.k-eyebrow .en { font-family: var(--k-font); font-size: .78em; font-weight: 600; color: var(--k-muted); }
.k-section-dark .k-eyebrow { color: rgba(255, 255, 255, .55); }

.k-display {
  margin: 0;
  font-family: var(--k-font);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--k-ink);
}
.public-body .kn .k-display { font-family: var(--k-font-kn); line-height: 1.25; letter-spacing: 0; }
.k-display-en {
  display: block;
  margin-top: .35rem;
  font-family: var(--k-font);
  font-size: .38em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--k-muted);
}
.k-display-center { text-align: center; }
.k-section-dark .k-display { color: #fff; }

.k-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

/* ---------- Hero ---------- */

.k-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 128px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--k-sky-top) 0%, var(--k-sky-mid) 48%, var(--k-paper) 100%);
}
.k-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 18% 78%, rgba(10, 125, 70, .16), transparent 70%),
    radial-gradient(640px 380px at 86% 30%, rgba(201, 162, 39, .18), transparent 70%),
    radial-gradient(900px 300px at 50% 0%, rgba(255, 255, 255, .7), transparent 70%);
}
.k-hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 48px;
}
.public-body .k-hero-title {
  margin: 0;
  max-width: 100%;
  font-family: var(--k-font-kn);
  font-weight: 800;
  font-size: clamp(3rem, 9.2vw, 8.6rem);
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--k-ink);
  text-wrap: balance;
}
.public-body .k-hero-tagline {
  margin: 1.1rem 0 2.4rem;
  font-family: var(--k-font-kn);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--k-ink-soft);
}
.k-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.k-hero-copy { position: relative; z-index: 1; }
.k-hero-copy > [data-rise] { animation: k-rise 1s var(--k-ease) both; }
.k-hero-copy > [data-rise]:nth-child(2) { animation-delay: .1s; }
.k-hero-copy > [data-rise]:nth-child(3) { animation-delay: .2s; }
.k-hero-copy > [data-rise]:nth-child(4) { animation-delay: .3s; }
@keyframes k-rise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero flag: pop up, unfurl, then fly ---------- */

.k-flag { position: relative; order: -1; width: min(78vw, 400px); margin: 0 auto 2.75rem; }
.k-flag-float { position: relative; z-index: 1; animation: k-flag-float 7s ease-in-out 2.4s infinite; }

/* Mosque to the right, under the flag's free end: pops up first, then the flag rises.
   Its top sits just below the fly end of the cloth (≈51% of the flag box height). */
.k-mosque {
  position: absolute;
  z-index: 2;
  right: -8%;
  bottom: -6%;
  width: 58%;
  aspect-ratio: 520 / 526;
  transform-origin: 50% 100%;
  animation: k-mosque-pop 1s cubic-bezier(.34, 1.56, .64, 1) .1s both;
}
.k-mosque img { position: relative; display: block; width: 100%; height: 100%; filter: drop-shadow(0 18px 24px rgba(4, 40, 26, .25)); }
.k-mosque-glow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 120, .55), rgba(255, 214, 120, 0));
  filter: blur(6px);
  animation: k-mosque-glow 4.5s ease-in-out 1.2s infinite;
}
/* Speaker (left, in front of the pole base) and scholars (centre front) pop up
   after the mosque; their cropped bottom edges fade out. */
.k-hero-figure {
  position: absolute;
  bottom: -6%;
  transform-origin: 50% 100%;
  animation: k-mosque-pop 1s cubic-bezier(.34, 1.56, .64, 1) both;
}
.k-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  filter: drop-shadow(0 14px 22px rgba(15, 17, 16, .22));
}
.k-speaker { z-index: 3; left: -14%; width: 50%; aspect-ratio: 560 / 383; animation-delay: .25s; }
.k-elders { z-index: 4; left: 28%; width: 40%; aspect-ratio: 389 / 292; animation-delay: .4s; }

@keyframes k-mosque-pop {
  0% { opacity: 0; transform: translateY(40%) scale(.4); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes k-mosque-glow {
  0%, 100% { opacity: .55; transform: scale(.95); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* Animated sky behind the flag: sun glow + drifting clouds, edges faded into the hero. */
.k-flag-sky {
  position: absolute;
  inset: -10% -16% 4% -16%;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #3e8fd4 0%, #6aaee8 38%, #a9d2f1 68%, rgba(214, 229, 238, 0) 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  animation: k-sky-in 1.4s ease .05s both;
}
.k-sun {
  position: absolute;
  top: 10%;
  right: 20%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 0%, rgba(255, 244, 196, .85) 28%, rgba(255, 238, 170, 0) 70%);
  animation: k-sun-pulse 6s ease-in-out infinite;
}
.k-cloud {
  position: absolute;
  left: 0;
  height: 13%;
  width: 44%;
  border-radius: 999px;
  background: #fff;
  filter: blur(5px);
  will-change: transform;
  animation: k-cloud-drift 40s linear infinite;
}
.k-cloud::before, .k-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.k-cloud::before { width: 46%; height: 190%; left: 14%; bottom: 25%; }
.k-cloud::after { width: 34%; height: 150%; left: 52%; bottom: 20%; }
.k-cloud-1 { top: 16%; opacity: .92; animation-duration: 38s; animation-delay: -12s; }
.k-cloud-2 { top: 46%; width: 60%; height: 15%; opacity: .7; animation-duration: 56s; animation-delay: -34s; }
.k-cloud-3 { top: 66%; width: 36%; opacity: .85; animation-duration: 30s; animation-delay: -4s; }
.k-cloud-4 { top: 30%; width: 26%; opacity: .55; filter: blur(9px); animation-duration: 46s; animation-delay: -24s; }
@keyframes k-cloud-drift {
  from { transform: translateX(-110%); }
  to { transform: translateX(270%); }
}
@keyframes k-sun-pulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes k-sky-in {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: none; }
}
.k-flag-stage {
  position: relative;
  aspect-ratio: 794 / 815;
  transform-origin: 8% 100%;
  animation: k-flag-pop 1.15s cubic-bezier(.34, 1.56, .64, 1) .55s both;
}
.k-flag-pole {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.k-flag-cloth {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 18px 28px rgba(4, 40, 26, .22));
  clip-path: inset(-20% 100% -30% 0);
  animation: k-flag-unfurl 1.1s cubic-bezier(.22, 1, .36, 1) 1.25s forwards;
}
.k-flag-cloth img { position: absolute; inset: 0; width: 100%; height: 100%; }
.k-flag-strip {
  position: absolute;
  top: 0;
  height: 100%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: k-flag-wave 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.075s);
}
@keyframes k-flag-pop {
  0% { opacity: 0; transform: translateY(70px) scale(.6) rotate(-6deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes k-flag-unfurl {
  to { clip-path: inset(-20% -20% -30% 0); }
}
/* Travelling wave: each strip bobs and leans, scaled by its distance from the pole. */
@keyframes k-flag-wave {
  0%, 100% { transform: translateY(calc(var(--reach) * -1.9%)) skewY(calc(var(--reach) * 1.6deg)); }
  50% { transform: translateY(calc(var(--reach) * 1.9%)) skewY(calc(var(--reach) * -1.6deg)); }
}
@keyframes k-flag-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(.6deg); }
}

@media (min-width: 992px) {
  .k-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    text-align: left;
  }
  .k-hero-copy .k-eyebrow-center { justify-content: flex-start; }
  .k-hero-copy .k-eyebrow-center::after { display: none; }
  .public-body .k-hero-title { font-size: clamp(3.2rem, 6.2vw, 6.6rem); }
  .k-hero-actions { justify-content: flex-start; }
  .k-flag {
    order: 0;
    width: min(100%, calc((100svh - 230px) * .974));
    margin: 0 0 0 auto;
  }
}

.k-marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--k-line);
  background: rgba(255, 255, 255, .55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.k-marquee-track { display: flex; width: max-content; animation: k-marquee 38s linear infinite; }
.k-marquee-group { display: flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem; }
.k-marquee-group span {
  font-family: var(--k-font);
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: rgba(15, 17, 16, .78);
  white-space: nowrap;
}
.k-marquee-group .bi { color: var(--k-green); font-size: 1.6rem; line-height: 1; }
@keyframes k-marquee { to { transform: translateX(-50%); } }

/* ---------- Objectives: pinned horizontal story ---------- */

.k-story { background: var(--k-paper); overflow: hidden; }
.k-story-inner {
  display: grid;
  grid-template-columns: minmax(300px, 32%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  min-height: 100vh;
  padding: 120px 0 80px max(24px, calc((100vw - 1240px) / 2 + 16px));
}
.public-body .k-stack {
  margin: 0 0 1.6rem;
  font-family: var(--k-font-kn);
  font-weight: 800;
  font-size: clamp(3.4rem, 6.4vw, 6.6rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--k-ink);
}
.public-body .kn .k-stack span { display: block; line-height: 1.12; }
.public-body .k-stack span:nth-child(2) { color: var(--k-green); }
.public-body .k-story-lead {
  max-width: 340px;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--k-line);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.85;
  color: var(--k-ink-soft);
}
.k-story-viewport { overflow: hidden; min-width: 0; }
.k-story-track {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 2.8rem);
  width: max-content;
  padding: 60px 8vw 60px 0;
  will-change: transform;
}
.k-polaroid { width: 290px; flex: none; display: flex; flex-direction: column; gap: 1.2rem; }
.k-polaroid.is-high { transform: translateY(-46px); }
.k-polaroid.is-low { transform: translateY(46px); }
.k-polaroid-frame {
  padding: 12px;
  border-radius: 20px;
  background: var(--k-frame);
  box-shadow: 0 18px 40px rgba(80, 60, 20, .14);
  transform: rotate(-1.6deg);
  transition: transform .5s var(--k-ease);
}
.k-polaroid.is-low .k-polaroid-frame { transform: rotate(1.8deg); }
.k-polaroid:hover .k-polaroid-frame { transform: rotate(0) scale(1.02); }
.k-polaroid-tile {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.k-polaroid-tile .bi { font-size: 4.6rem; position: relative; }
.k-polaroid-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .35;
}
.tone-green { background: linear-gradient(150deg, #e3f2ea, #b9dcc8); color: var(--k-green-deep); }
.tone-gold { background: linear-gradient(150deg, #fbf3dc, #ecd79d); color: #7a5f10; }
.tone-sky { background: linear-gradient(150deg, #eaf2f7, #c3d8e5); color: #1e4a63; }
.public-body .k-polaroid-text {
  margin: 0;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.85;
  color: var(--k-ink-soft);
}

/* ---------- Campaign banner ---------- */

.k-banner {
  position: relative;
  border-radius: var(--k-radius-lg);
  overflow: hidden;
  background: var(--k-ink);
  box-shadow: 0 30px 60px rgba(15, 17, 16, .16);
}
.k-banner-slide { position: relative; min-height: clamp(420px, 62vh, 620px); display: flex; align-items: flex-end; }
.k-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 12, 11, .78) 0%, rgba(10, 12, 11, .35) 55%, transparent 100%), linear-gradient(0deg, rgba(10, 12, 11, .55), transparent 55%);
}
.k-banner-copy { position: relative; z-index: 2; max-width: 680px; padding: clamp(28px, 5vw, 64px); }
.public-body .k-banner-title {
  margin: 0 0 .9rem;
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
}
.k-banner-sub { margin: 0 0 1.8rem; font-size: 1.08rem; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.k-banner-nav { position: absolute; right: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 36px); z-index: 3; display: flex; gap: .6rem; }
.k-banner-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--k-ink);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: transform .25s var(--k-ease), background-color .25s var(--k-ease);
}
.k-banner-nav button:hover { transform: scale(1.08); background: var(--k-gold); }
.k-banner-fallback {
  min-height: clamp(380px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(700px 420px at 92% 10%, rgba(201, 162, 39, .45), transparent 65%),
    radial-gradient(600px 360px at 10% 100%, rgba(10, 125, 70, .55), transparent 70%),
    linear-gradient(135deg, #07150f, var(--k-green-deep));
}

/* ---------- About ---------- */

.public-body .kn .k-lead { font-size: 1.28rem; font-weight: 600; line-height: 1.9; color: var(--k-ink); margin-bottom: 1.4rem; }
.public-body #about .col-lg-7 p:not(.k-lead) { font-size: 1.02rem; line-height: 2; color: #3f4542; }
.k-vm {
  position: relative;
  padding: 1.9rem 1.9rem 1.7rem;
  border-radius: var(--k-radius);
  background: #fff;
  border: 1px solid var(--k-line);
  box-shadow: var(--k-shadow);
  transition: transform .35s var(--k-ease), box-shadow .35s var(--k-ease);
}
.k-vm:hover { transform: translateY(-4px); box-shadow: var(--k-shadow-hover); }
.k-vm-vision { background: linear-gradient(160deg, #eef7f2, #fff 65%); }
.k-vm-mission { background: linear-gradient(160deg, #fbf6e8, #fff 65%); }
.k-vm-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fff;
  background: var(--k-ink);
  margin-bottom: 1.1rem;
}
.k-vm-vision .k-vm-icon { background: var(--k-green); }
.k-vm-mission .k-vm-icon { background: var(--k-gold); color: var(--k-ink); }
.public-body .kn .k-vm h3 { font-family: var(--k-font-kn); font-size: 1.3rem; font-weight: 700; line-height: 1.5; margin-bottom: .8rem; }
.k-vm h3 .en { font-family: var(--k-font); font-size: .7em; font-weight: 600; color: var(--k-muted); }
.public-body .kn .k-vm p { font-size: .96rem; line-height: 1.95; color: #3f4542; }

.k-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--k-line);
}
.k-stat { display: flex; flex-direction: column; gap: .4rem; padding: 2rem 1.5rem 0 0; }
.k-stat + .k-stat { padding-left: 1.5rem; border-left: 1px solid var(--k-line); }
.public-body .kn .k-stat-num { font-family: var(--k-font); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: -.04em; color: var(--k-ink); }
.public-body .kn .k-stat-label { font-family: var(--k-font); font-size: .74rem; font-weight: 700; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--k-muted); }

/* ---------- Guided by Scholarship ---------- */

.k-scholars { position: relative; overflow: hidden; color: #f6ead9; background: #1f1310; }
.k-scholars-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 85% 20%, rgba(138, 28, 43, .35), transparent 70%),
    radial-gradient(600px 420px at 10% 90%, rgba(201, 162, 39, .14), transparent 70%),
    linear-gradient(135deg, #2a1712 0%, #1c110e 55%, #120b09 100%);
}
.k-scholars-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76' viewBox='0 0 76 76'%3E%3Cg fill='none' stroke='%23e2c56a' stroke-width='1.1'%3E%3Crect x='23' y='23' width='30' height='30'/%3E%3Crect x='23' y='23' width='30' height='30' transform='rotate(45 38 38)'/%3E%3Ccircle cx='38' cy='38' r='7'/%3E%3Cpath d='M0 38h8M68 38h8M38 0v8M38 68v8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 76px 76px;
  opacity: .06;
}
.k-scholars-bg.has-photo { background: var(--scholars-bg) center / cover no-repeat; animation: k-scholars-zoom 24s ease-in-out infinite alternate; }
.k-scholars-bg.has-photo::before { background: linear-gradient(90deg, rgba(24, 14, 11, .9) 0%, rgba(24, 14, 11, .72) 45%, rgba(24, 14, 11, .55) 100%); opacity: 1; }
@keyframes k-scholars-zoom { to { transform: scale(1.06); } }

.k-scholars-eyebrow { color: #d9b56a; }
.public-body .k-scholars-title {
  margin: 0 0 1.4rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: #f6ead9;
}
.k-scholars-sub { max-width: 380px; margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 500; line-height: 1.45; color: rgba(246, 234, 217, .92); }

.k-scholars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.4rem); }
.k-scholar {
  overflow: hidden;
  border-radius: 20px;
  background: #f8f3ec;
  border: 1px solid rgba(201, 162, 39, .35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
  transition: transform .45s var(--k-ease), box-shadow .45s var(--k-ease);
}
.k-scholar:hover { transform: translateY(-8px); box-shadow: 0 34px 64px rgba(0, 0, 0, .45); }
.k-scholar-photo { aspect-ratio: 290 / 283; overflow: hidden; background: #e9e1d6; }
.k-scholar-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--k-ease); }
.k-scholar:hover .k-scholar-photo img { transform: scale(1.06); }
.k-scholar-body { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.15rem 1rem 1.35rem; text-align: center; }
.k-scholar-role { font-size: .95rem; font-weight: 600; color: #8a1c2b; }
.public-body .k-scholar-name { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 600; line-height: 1.3; color: #1f1a17; }

@media (max-width: 767.98px) {
  .k-scholars-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(72vw, 280px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .5rem 0 1.5rem;
    scrollbar-width: none;
  }
  .k-scholars-grid::-webkit-scrollbar { display: none; }
  .k-scholar { scroll-snap-align: start; }
}

/* ---------- Media cards (news) ---------- */

.k-card {
  display: block;
  height: 100%;
  padding: 12px;
  border-radius: var(--k-radius);
  background: #fff;
  color: var(--k-ink);
  text-decoration: none;
  box-shadow: var(--k-shadow);
  transition: transform .4s var(--k-ease), box-shadow .4s var(--k-ease);
}
.k-card:hover { transform: translateY(-6px); box-shadow: var(--k-shadow-hover); color: var(--k-ink); }
.k-card-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--k-radius-sm); overflow: hidden; background: #eef1f0; }
.k-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--k-ease); }
.k-card:hover .k-card-media img { transform: scale(1.06); }
.k-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: rgba(15, 17, 16, .25);
  background: linear-gradient(150deg, #eef3f1, #dde7e2);
}
.k-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: .42rem .75rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 17, 16, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.k-card-body { padding: 1.15rem .55rem .5rem; }
.k-card-date { display: block; margin-bottom: .55rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--k-muted); }
.public-body .k-card-title {
  margin: 0 0 .55rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.k-card-text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--k-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Gallery albums (dark band) ---------- */

.k-album {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #1c1f1d;
  text-decoration: none;
}
.k-album img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--k-ease), filter .8s var(--k-ease); }
.k-album:hover img { transform: scale(1.07); filter: saturate(1.1); }
.k-album .k-card-placeholder { background: linear-gradient(150deg, #232725, #171a18); color: rgba(255, 255, 255, .25); }
.k-album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 55%); }
.k-album-title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-weight: 700; font-size: .95rem; line-height: 1.35; color: #fff; }

/* ---------- Events ---------- */

.k-events { display: flex; flex-direction: column; gap: .9rem; }
.k-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.15rem 1.4rem;
  border-radius: var(--k-radius);
  background: #fff;
  color: var(--k-ink);
  text-decoration: none;
  box-shadow: var(--k-shadow);
  transition: transform .35s var(--k-ease), box-shadow .35s var(--k-ease);
}
.k-event:hover { transform: translateX(6px); box-shadow: var(--k-shadow-hover); color: var(--k-ink); }
.k-event-date { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: .6rem .4rem; border-radius: 14px; background: #f1f4f3; }
.k-event-day { font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.03em; }
.k-event-month { margin-top: .3rem; font-size: .62rem; font-weight: 800; letter-spacing: .12em; color: var(--k-muted); }
.public-body .k-event-info h3 { margin: 0 0 .3rem; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.k-event-info span { font-size: .86rem; color: var(--k-muted); }
.k-event-arrow { font-size: 1.3rem; color: var(--k-muted); transition: color .25s var(--k-ease); }
.k-event:hover .k-event-arrow { color: var(--k-green); }
.k-event-empty {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  border-radius: var(--k-radius-lg);
  background: #fff;
  box-shadow: var(--k-shadow);
}
.k-event-empty .bi { font-size: 2.6rem; color: var(--k-green); }
.k-event-empty p { margin: 0; font-weight: 600; line-height: 1.7; color: var(--k-muted); }

/* ---------- Spiritual heritage ---------- */

.k-heritage {
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(201, 162, 39, .14), transparent 70%),
    #faf8f2;
}
.k-heritage-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.k-heritage-inner .k-display { margin-bottom: 2rem; }
.public-body .kn .k-heritage-inner > p { font-size: 1.08rem; line-height: 2; color: #3f4542; }
.k-promise {
  margin: 2.5rem 0;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--k-radius-lg);
  background: #fff;
  border: 1px solid rgba(201, 162, 39, .28);
  box-shadow: var(--k-shadow);
}
.public-body .kn .k-promise p { margin-bottom: .4rem; font-size: 1.05rem; font-weight: 600; line-height: 1.9; color: var(--k-ink); }
.k-mottos { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.public-body .kn .k-motto {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  background: var(--k-ink);
  color: #fff;
  font-family: var(--k-font-kn);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}
.k-motto .bi { color: var(--k-gold); }
.k-signature { display: flex; flex-direction: column; gap: .35rem; margin-top: 2.6rem; }
.public-body .kn .k-signature strong { font-family: var(--k-font-kn); font-size: 1.45rem; line-height: 1.5; }
.public-body .kn .k-signature span { font-weight: 600; line-height: 1.7; color: #9a7a14; }

/* ---------- Join CTA ---------- */

.k-section-join { background: linear-gradient(180deg, var(--k-paper), #eceeed); }
.k-join {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: 32px;
  text-align: center;
  color: rgba(255, 255, 255, .68);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(201, 162, 39, .22), transparent 70%),
    radial-gradient(520px 260px at 0% 100%, rgba(10, 125, 70, .3), transparent 70%),
    #111312;
  box-shadow: 0 30px 70px rgba(15, 17, 16, .25);
}
.k-join-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.4rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}
.public-body .k-join h2 { margin: 0 0 1rem; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; color: #fff; }
.k-join p { max-width: 520px; margin: 0 auto 2.2rem; font-size: 1.05rem; line-height: 1.7; }
.k-join-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ---------- Footer ---------- */

.k-footer { background: #0b0c0c; color: rgba(255, 255, 255, .6); padding: clamp(72px, 9vw, 110px) 0 32px; }
.k-footer-brand img { width: 52px; height: 52px; border-radius: 50%; }
.public-body .k-footer-brand { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; font-weight: 800; font-size: 2rem; letter-spacing: .02em; color: #fff; text-decoration: none; }
.k-footer-about { max-width: 340px; font-size: .92rem; line-height: 1.8; margin-bottom: 1.6rem; }
.k-footer-social { display: flex; gap: .6rem; }
.public-body .k-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .14);
  text-decoration: none;
  transition: all .25s var(--k-ease);
}
.public-body .k-footer-social a:hover { color: var(--k-ink); background: #fff; border-color: #fff; }
.public-body .k-footer-head { margin-bottom: 1.3rem; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.k-footer-links, .k-footer-contacts { list-style: none; margin: 0; padding: 0; }
.k-footer-links li { margin-bottom: .8rem; }
.public-body .k-footer a { color: rgba(255, 255, 255, .6); text-decoration: none; transition: color .2s var(--k-ease); }
.public-body .k-footer a:hover { color: #fff; }
.public-body .k-footer .k-footer-brand { color: #fff; }
.k-footer-links a { font-size: .92rem; }
.k-footer-contacts li { display: flex; flex-direction: column; gap: .15rem; margin-bottom: 1.05rem; font-size: .9rem; }
.k-footer-contact-name { color: #fff; font-weight: 600; }
.k-footer-contact-name span { color: var(--k-gold); font-weight: 500; font-size: .88em; }
.k-footer-address { line-height: 1.7; }
.k-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1rem;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.k-footer-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .3); }

/* ---------- Inner pages (about, news, events, gallery, ...) ---------- */

.public-body .container.py-5 { padding-top: 2.5rem !important; padding-bottom: 6rem !important; }
.public-body .container.py-5 > h1.fw-bold {
  font-weight: 800 !important;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 2.6rem !important;
}
.public-body .card { border: 0; border-radius: var(--k-radius); box-shadow: var(--k-shadow); }
.public-body .card.shadow-sm { box-shadow: var(--k-shadow) !important; }
.public-body .card.shadow-sm:hover { box-shadow: var(--k-shadow-hover) !important; }
.public-body .card > .card-img-top,
.public-body a > .card > .card-img-top,
.public-body .card .card-img-top {
  width: calc(100% - 24px);
  margin: 12px 12px 0;
  border-radius: var(--k-radius-sm);
}
.public-body .card-title { font-weight: 700; }
.public-body h2.text-center.section-title::after,
.public-body h2.text-center.fw-bold::after { left: 50%; transform: translateX(-50%); }
.public-body .badge { font-family: var(--k-font); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .62rem; }
.public-body .form-control, .public-body .form-select { font-family: var(--k-font); border-radius: 14px; }
.public-body img.rounded { border-radius: var(--k-radius) !important; }

.public-body .leadership-hero {
  margin: 0 16px;
  padding: clamp(64px, 9vw, 110px) 0;
  border-radius: var(--k-radius-lg);
  background:
    radial-gradient(600px 300px at 15% 100%, rgba(10, 125, 70, .14), transparent 70%),
    radial-gradient(600px 300px at 85% 0%, rgba(201, 162, 39, .16), transparent 70%),
    linear-gradient(180deg, var(--k-sky-top), var(--k-sky-mid));
}
.public-body .leadership-hero h1 { font-weight: 800 !important; font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -.035em; color: var(--k-ink); }
.public-body .leadership-hero p { color: var(--k-ink-soft); font-size: 1.1rem; }

/* ---------- Membership card page ---------- */

.k-photo-missing {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--k-radius);
  background: #fff8e6;
  border: 1px solid rgba(201, 162, 39, .45);
  box-shadow: var(--k-shadow);
}
.k-photo-missing-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--k-gold); }
.k-photo-missing-body strong { display: block; margin-bottom: .3rem; font-size: 1.05rem; }
.k-photo-missing-body p { margin: 0 0 .9rem; color: var(--k-ink-soft); line-height: 1.6; }
.k-photo-missing-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.k-photo-missing-actions .form-control { flex: 1 1 220px; }
@media (max-width: 575.98px) {
  .k-photo-missing { flex-direction: column; }
  .k-photo-missing-actions .k-btn { flex: 1 1 100%; }
}

.k-card-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: 2.2rem auto 0;
  border-radius: var(--k-radius);
  background: #fff;
  box-shadow: var(--k-shadow);
}
.k-card-facts > div { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.3rem; }
.k-card-facts > div + div { border-left: 1px solid var(--k-line); }
.k-card-facts span { font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--k-muted); }
.k-card-facts strong { font-size: clamp(.9rem, 1.7vw, 1.02rem); font-weight: 800; color: var(--k-ink); white-space: nowrap; }
.k-card-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.6rem; }
.public-body .idcard-hint { color: var(--k-muted); }

@media (max-width: 575.98px) {
  .k-card-facts { grid-template-columns: 1fr; }
  .k-card-facts > div + div { border-left: 0; border-top: 1px solid var(--k-line); }
  .k-card-downloads .k-btn { flex: 1 1 100%; }
}

/* ---------- Announcement poster popup ---------- */

.k-poster { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.k-poster[hidden] { display: none; }
.k-poster:not(.is-open) { pointer-events: none; }
.k-poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 10, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s ease;
}
.k-poster-box {
  position: relative;
  width: min(92vw, calc((100svh - 40px) * .8), 560px);
  aspect-ratio: 900 / 1125;
  opacity: 0;
  transform: translateY(40px) scale(.85);
  transition: opacity .35s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.k-poster-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  background: #fbf3e8;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
}
.k-poster-link { display: block; height: 100%; }
.k-poster-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: var(--k-ink);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: transform .25s var(--k-ease), background-color .25s var(--k-ease), color .25s var(--k-ease);
}
.k-poster-close:hover { transform: rotate(90deg); background: var(--k-ink); color: #fff; }
.k-poster-close:focus-visible { outline: 3px solid var(--k-gold); outline-offset: 2px; }
.k-poster.is-open .k-poster-backdrop { opacity: 1; }
.k-poster.is-open .k-poster-box { opacity: 1; transform: none; }
body.k-poster-lock { overflow: hidden; }

@media (max-width: 575.98px) {
  .k-poster-close { top: -10px; right: -6px; width: 40px; height: 40px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .k-story-inner {
    display: block;
    min-height: 0;
    padding: clamp(72px, 12vw, 110px) 0 clamp(56px, 10vw, 90px);
  }
  .k-story-words { padding: 0 16px; margin-bottom: 2rem; }
  .public-body .kn .k-stack span { display: inline-block; margin-right: .25em; }
  .public-body .k-stack { font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1.3; }
  .public-body .k-story-lead { max-width: none; }
  .k-story-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .k-story-viewport::-webkit-scrollbar { display: none; }
  .k-story-track { padding: 30px 16px 40px; }
  .k-polaroid { width: 250px; scroll-snap-align: start; }
  .k-polaroid.is-high { transform: translateY(-16px); }
  .k-polaroid.is-low { transform: translateY(16px); }

  .k-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .k-stat:nth-child(n + 3) { border-top: 1px solid var(--k-line); margin-top: 2rem; }
}

/* Phones: comfortable side margins, thumb-sized tap targets (>= 44px), and
   no text smaller than 12px. */
@media (max-width: 575.98px) {
  .public-body .container { padding-left: 20px; padding-right: 20px; }
  .public-body .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2.5rem; }
  .public-body .row.g-4 { --bs-gutter-x: 1.25rem; }

  .k-btn { min-height: 46px; }
  .k-btn-sm, .public-body .k-btn-pill { min-height: 44px; }
  .public-body .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .public-body .btn-sm { min-height: 40px; }
  .k-nav .navbar-nav .nav-link { padding: .8rem .6rem !important; }

  .k-footer-links li { margin-bottom: .1rem; }
  .k-footer-links a, .k-footer-contacts a { display: inline-block; padding: .55rem 0; }
  .k-footer-contacts li { margin-bottom: .6rem; gap: 0; }
  .public-body .k-footer-social a { width: 44px; height: 44px; }

  .k-eyebrow { font-size: .75rem; }
  .k-badge, .k-event-month { font-size: .75rem; }
  .k-card-date, .public-body .kn .k-stat-label, .public-body .k-footer-head, .k-scholar-role { font-size: .75rem; }
  .k-footer-bottom { font-size: .78rem; letter-spacing: .14em; }
  .public-body .badge, .public-body .wing-role, .public-body .leader-role { font-size: .75rem; }
  .k-eyebrow .en, .public-body .about-subheading .en { font-size: .8rem; }

  .k-speaker { left: -11%; }
  .k-nav-spacer { height: 96px; }
  .k-brand-sub { display: none; }
  .k-hero { padding-top: 112px; }
  .k-eyebrow { gap: .6rem; letter-spacing: .18em; }
  .k-eyebrow::before, .k-eyebrow-center::after { width: 20px; }
  .k-hero-actions .k-btn { flex: 1 1 100%; }
  .k-section-head { align-items: flex-start; }
  .k-event { grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1rem; }
  .k-event-arrow { display: none; }
  .k-banner-nav { position: static; padding: 0 28px 28px; }
  .k-banner-slide { min-height: 440px; }
  .public-body .leadership-hero { margin: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .k-marquee-track, .k-hero-copy > [data-rise], .k-flag-float, .k-flag-stage { animation: none; }
  .k-flag-cloth { animation: none; clip-path: none; }
  .k-poster-box, .k-poster-backdrop { transition: none; }
  .k-flag-sky, .k-sun, .k-scholars-bg.has-photo, .k-mosque, .k-mosque-glow, .k-hero-figure { animation: none; }
  .k-cloud { animation: none; transform: translateX(40%); }
  .k-card, .k-event, .k-vm, .k-polaroid-frame, .k-btn { transition: none; }
}
