@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --ink: #071b33;
  --ink-2: #243b55;
  --muted: #5a6d82;
  --line: #d9e2ec;
  --navy-950: #041326;
  --navy-900: #061e3b;
  --navy-800: #0b2b52;
  --navy-700: #133c6e;
  --saffron: #ea6a12;
  --saffron-light: #ff8c38;
  --green: #138808;
  --green-soft: #e7f6e6;
  --olive: #7c8636;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(6, 30, 59, 0.06);
  --shadow-md: 0 12px 32px rgba(6, 30, 59, 0.09);
  --shadow-lg: 0 22px 54px rgba(6, 30, 59, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 15px/1.66 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  line-height: 1.14;
  letter-spacing: -0.028em;
  margin: 0 0 12px;
}

/* Executive, balanced sizing — not oversized */
h1 { font-size: clamp(1.95rem, 3.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.35rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 700; }

h1 em, h2 em {
  font-style: normal;
  color: var(--saffron-light);
}
.section h2 em, .split-layout h2 em {
  color: var(--saffron);
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

/* Subtle Tricolour Identity Stripe */
.tricolor-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--saffron) 33.3%, #ffffff 33.3%, #ffffff 66.6%, var(--green) 66.6%, var(--green) 100%);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1200;
  background: linear-gradient(90deg, var(--saffron), #ffb36b, var(--green));
  transition: width 0.08s linear;
}

/* Top announcement bar */
.topline {
  background: var(--navy-950);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topline-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topline-inner span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
}
.topline-inner span:first-child::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron-light);
}

/* Clean Sticky Header (NO backdrop-filter on parent so fixed elements never break) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 8px 26px rgba(6, 30, 59, 0.09);
}
.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy-900);
  flex-shrink: 0;
}
.brand-img {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--navy-900);
  box-shadow: 0 4px 12px rgba(6, 30, 59, 0.16);
  flex: 0 0 48px;
}
.brand b {
  display: block;
  font: 800 17px/1.1 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.03em;
  color: var(--navy-900);
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 2px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:not(.nav-join):hover,
.nav-links a:not(.nav-join).active {
  color: var(--navy-900);
  background: #edf2f8;
}
.nav-links a:not(.nav-join).active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  border-radius: 99px;
  background: var(--saffron);
}
.nav-join {
  margin-left: 8px;
  padding: 9px 17px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700)) !important;
  border: 1px solid var(--navy-900);
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.22s var(--ease), background 0.22s, box-shadow 0.22s !important;
}
.nav-join:hover {
  background: linear-gradient(120deg, var(--saffron), #d95d0c) !important;
  border-color: var(--saffron);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(234, 106, 18, 0.3);
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.nav-toggle:hover { background: var(--surface-soft); border-color: var(--navy-700); }

/* Dedicated Mobile Drawer (outside header — guaranteed full viewport height) */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(4, 19, 38, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.mobile-backdrop.open { opacity: 1; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  height: 100dvh;
  z-index: 999;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.3s var(--ease);
  box-shadow: -16px 0 48px rgba(4, 19, 38, 0.45);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-drawer-head .brand b { color: #fff; font-size: 16px; }
.mobile-drawer-head .brand small { color: var(--saffron-light); letter-spacing: 0.16em; }
.mobile-drawer-head .brand-img { width: 40px; height: 40px; flex: 0 0 40px; border-color: rgba(255,255,255,0.4); }

.mobile-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 5px;
}
.mobile-nav a {
  text-decoration: none;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.mobile-nav a.active {
  border-left: 3px solid var(--saffron-light);
}
.mobile-nav a.mobile-join {
  margin-top: 12px;
  text-align: center;
  background: linear-gradient(120deg, var(--saffron), #d95d0c);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}

/* Eyebrows & Buttons */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--saffron), var(--green));
}
.eyebrow.light { color: #fed7aa; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font: 700 13.5px/1 'Inter', sans-serif;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--saffron), #d95d0c);
  box-shadow: 0 10px 24px rgba(234, 106, 18, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(234, 106, 18, 0.44); }
.btn-secondary {
  color: #fff;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  box-shadow: 0 10px 24px rgba(6, 30, 59, 0.22);
}
.btn-white {
  color: var(--navy-900);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.btn-white:hover { background: #fff7ed; }

.hero-link, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  transition: gap 0.22s var(--ease), color 0.2s, background 0.2s;
}
.hero-link {
  color: #f1f5f9;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}
.hero-link:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; gap: 10px; }
.text-link { color: var(--navy-700); }
.text-link:hover { color: var(--saffron); gap: 10px; }

/* Compact, Executive Master / Hero Section */
.hero, .page-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(234, 106, 18, 0.18), transparent 36%),
    radial-gradient(circle at 12% 85%, rgba(19, 136, 8, 0.16), transparent 38%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 58%, var(--navy-800) 100%);
  overflow: hidden;
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero { padding: clamp(38px, 4.8vw, 64px) 0 clamp(42px, 5vw, 68px); }
.page-hero { padding: clamp(36px, 4.4vw, 56px) 0; }
.page-hero p { max-width: 620px; color: #cbd5e1; font-size: 15.5px; margin: 10px 0 0; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.hero-copy p {
  color: #cbd5e1;
  font-size: 15.5px;
  max-width: 540px;
  margin: 12px 0 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.hero-note {
  margin-top: 20px;
  font-size: 12px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-note span { color: var(--saffron-light); }

/* Compact Official Crest Showcase in Hero */
.hero-crest-card {
  justify-self: end;
  width: min(300px, 100%);
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}
.crest-ring {
  width: 144px;
  height: 144px;
  margin: 0 auto 14px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), #ffffff, var(--green));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.crest-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--navy-900);
}
.nation-pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  background: rgba(234, 106, 18, 0.22);
  color: #fed7aa;
  border: 1px solid rgba(234, 106, 18, 0.45);
  margin-bottom: 8px;
}
.crest-caption strong {
  display: block;
  font: 700 14px/1.3 'Plus Jakarta Sans', sans-serif;
  color: #fff;
}
.crest-caption small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #cbd5e1;
}

/* Ticker */
.ticker {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.ticker-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ticker-in span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--saffron);
}
.ticker-in b {
  font: 600 13px 'Inter', sans-serif;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ticker-in b::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* Sections */
.section { padding: clamp(46px, 5.5vw, 76px) 0; }
.section.soft {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lead { font-size: 16px; color: var(--ink-2); line-height: 1.72; margin: 0 0 18px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 52px); align-items: start; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head p { max-width: 440px; color: var(--muted); margin: 0; font-size: 14.5px; }

/* Focus & Value Cards */
.focus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.focus-card, .value-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.focus-card::before, .value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.focus-card:hover, .value-card:hover {
  transform: translateY(-5px);
  border-color: #b7c9dd;
  box-shadow: var(--shadow-md);
}
.focus-card:hover::before, .value-card:hover::before { transform: scaleX(1); }
.focus-card small, .value-card small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--saffron);
  margin-bottom: 14px;
}
.focus-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--navy-900);
  background: #edf2f8;
  margin-bottom: 14px;
  transition: background 0.25s, color 0.25s;
}
.focus-card:hover .focus-icon { background: var(--navy-900); color: #fff; }
.focus-card p, .value-card p { color: var(--muted); font-size: 13.8px; margin: 0; }

/* Stats Band */
.stats-band {
  background: linear-gradient(125deg, var(--navy-950), var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 44px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  text-align: center;
  padding: 18px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.stat strong {
  display: block;
  font: 800 clamp(1.8rem, 3.2vw, 2.6rem)/1.05 'Plus Jakarta Sans', sans-serif;
  color: #fff;
  margin-bottom: 6px;
}
.stat span { font-size: 12.5px; color: #cbd5e1; font-weight: 600; }

/* Members & Content Cards */
.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.member-card, .content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.member-card:hover, .content-card:hover {
  transform: translateY(-5px);
  border-color: #b7c9dd;
  box-shadow: var(--shadow-md);
}
.member-photo {
  position: relative;
  height: 300px;
  background: #edf2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}
.member-photo img { height: 100%; }
.member-card:hover .member-photo img, .content-card:hover > img { transform: scale(1.04); }
.member-initial {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 22px 'Plus Jakarta Sans', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--saffron), #d95d0c);
}
.member-info, .content-pad { padding: 18px 20px 20px; }
.member-info small, .meta {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.member-info p, .content-pad p { margin: 0 0 8px; color: var(--muted); font-size: 13.8px; }
.member-code {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-900);
  background: #edf2f8;
}

/* Gallery & Lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img, .gallery-item video { width: 100%; height: 225px; object-fit: cover; background: var(--navy-900); }
.gallery-item img { cursor: zoom-in; }
.gallery-item figcaption { padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

.myaf-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(4, 19, 38, 0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.myaf-lightbox.open { opacity: 1; pointer-events: auto; }
.myaf-lightbox img { max-width: min(1000px, 92vw); max-height: 78vh; border-radius: 14px; }
.myaf-lightbox p { color: #e2e8f0; margin-top: 12px; font-size: 13.5px; }
.myaf-lightbox button {
  position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(6,30,59,0.85); color: #fff; font-size: 20px; cursor: pointer;
}

/* Search, Forms, Split Layout */
.search-form { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.search-form input {
  flex: 1 1 260px; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font: inherit; outline: none;
}
.search-form input:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(19, 60, 110, 0.12); }

.split-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  border-radius: 10px; border: 1px solid #cbd5e1; background: #fafcff; font: 500 13.5px 'Inter', sans-serif; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(19, 60, 110, 0.12);
}
.form-card small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }

/* Grievance stats & tracker */
.grievance-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 34px; }
.grievance-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow-sm);
}
.grievance-stat strong { display: block; font: 800 1.9rem/1.1 'Plus Jakarta Sans', sans-serif; color: var(--navy-900); }
.grievance-stat span { font-size: 12px; color: var(--muted); font-weight: 600; }

.track-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 20px; }
.track-step {
  padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #f8fafc;
  font-size: 12px; font-weight: 700; color: var(--muted); text-align: center;
}
.track-step.done { background: var(--green-soft); border-color: var(--green); color: #14532d; }

/* Alerts, Badges, Notices */
.notice {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: #edf2f8; border-left: 4px solid var(--navy-900); color: var(--ink-2); font-size: 13.5px;
}
.alert { padding: 13px 15px; border-radius: 12px; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; background: #edf2f8; color: var(--navy-900); border: 1px solid #cbd5e1; }
.alert-danger { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.badge.ok { background: #d1fae5; color: #065f46; }
.badge.warn { background: #fef3c7; color: #92400e; }
.empty-state {
  grid-column: 1 / -1; padding: 38px 20px; text-align: center; background: var(--surface);
  border: 1px dashed #cbd5e1; border-radius: var(--radius-md); color: var(--muted); font-weight: 600;
}
.prose p { color: var(--ink-2); margin: 0 0 14px; }

/* CTA Band */
.cta-band {
  background:
    radial-gradient(circle at 86% 25%, rgba(234, 106, 18, 0.22), transparent 40%),
    linear-gradient(125deg, var(--navy-950), var(--navy-900), var(--navy-800));
  color: #fff;
  padding: clamp(44px, 5vw, 66px) 0;
}
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 52px 0 24px;
  border-top: 3px solid var(--saffron);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand b { color: #fff; }
.footer-brand small { color: #94a3b8; }
.footer-brand { margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { display: block; text-decoration: none; color: #cbd5e1; font-size: 13.5px; margin-bottom: 8px; transition: color 0.2s; }
.site-footer a:hover { color: var(--saffron-light); }
.site-footer p { font-size: 13.5px; margin: 0 0 10px; line-height: 1.62; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 0; }
.social-links a {
  display: inline-flex; margin: 0; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: #e2e8f0;
}
.social-links a:hover { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; font-size: 12px; color: #94a3b8;
}

/* Back to top */
.back-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 42px; height: 42px;
  border-radius: 11px; border: 1px solid rgba(255,255,255,0.2); background: var(--navy-900);
  color: #fff; font-size: 17px; cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: var(--saffron); }

/* Installer (setup.php) */
body.installer { min-height: 100vh; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); padding: 34px 16px; }
.install-shell { max-width: 820px; margin: 0 auto; }
.install-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 38px); box-shadow: 0 24px 60px rgba(0,0,0,0.32); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid h3, .span-2 { grid-column: 1 / -1; }
.install-foot { margin-top: 14px; color: var(--muted); font-size: 12.5px; }
.success-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 26px; margin-bottom: 14px; }

/* Smooth Scroll Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .focus-grid, .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a { padding: 7px 8px; font-size: 12.8px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-inner, .two-col, .split-layout { grid-template-columns: 1fr; }
  .hero-crest-card { justify-self: start; width: 100%; max-width: 340px; }
  .cards-grid, .gallery-grid, .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid, .grievance-stats, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 26px, 1180px); }
  .topline { font-size: 10px; }
  .topline-inner { justify-content: center; text-align: center; }
  .brand small { max-width: 170px; }
  .focus-grid, .member-grid, .cards-grid, .gallery-grid, .value-grid, .form-row, .form-grid, .footer-grid, .track-steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Rank badges, No-Photo Member Directory, Verify Page & Footer SVG Icons */
.rank-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: var(--navy-900); color: #fff; border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.member-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.verify-link { font-size: 12px; font-weight: 700; color: var(--saffron); text-decoration: none; }
.verify-link:hover { text-decoration: underline; }

.dir-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dir-heading span { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.text-member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.text-member-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 20px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--navy-900);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.text-member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-top-color: var(--saffron); }
.text-member-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.text-rank { font: 800 12px 'Plus Jakarta Sans', sans-serif; color: var(--saffron); background: #fff4ec; padding: 3px 9px; border-radius: 999px; }
.text-member-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.text-desig { margin: 0 0 12px; font-size: 13px; color: var(--green); font-weight: 700; }
.text-member-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* Member QR Verification Page */
.verify-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.verify-banner { display: flex; align-items: center; gap: 14px; padding: 18px 24px; color: #fff; }
.verify-banner.is-valid { background: linear-gradient(120deg, #0d6e06, var(--green)); }
.verify-banner.is-invalid { background: linear-gradient(120deg, #9f1239, #e11d48); }
.verify-icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.2); display: grid; place-items: center; font-size: 20px; font-weight: 800; flex-shrink: 0; }
.verify-banner strong { display: block; font-size: 15px; letter-spacing: 0.08em; }
.verify-banner small { opacity: 0.9; font-size: 12px; }
.verify-body { padding: clamp(20px, 3vw, 32px); }
.verify-profile { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.verify-avatar { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; border: 3px solid var(--navy-900); background: var(--navy-900); display: grid; place-items: center; flex-shrink: 0; }
.verify-avatar img { width: 100%; height: 100%; object-fit: cover; }
.verify-role-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; background: #edf2f8; color: var(--navy-900); margin-bottom: 8px; }
.verify-role-pill.core { background: #fff4ec; color: var(--saffron); }
.verify-desig { margin: 0 0 8px; font-weight: 700; color: var(--green); }
.verify-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.verify-item { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.verify-item span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.verify-item b { font-size: 14px; color: var(--ink); }
.text-green { color: var(--green) !important; }
.text-red { color: #dc2626 !important; }
.verify-qr-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px; border-radius: 14px; background: #f1f5f9; border: 1px solid var(--line); }
.verify-qr-row img { border-radius: 10px; background: #fff; padding: 4px; border: 1px solid var(--line); }
.verify-qr-row p { margin: 4px 0 0; font-size: 13px; color: var(--muted); max-width: 480px; }

/* Enhanced Footer Icons */
.footer-col a { display: inline-flex; align-items: center; gap: 7px; }
.footer-col a .fi { width: 14px; height: 14px; color: var(--saffron-light); flex-shrink: 0; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; font-size: 13.5px; color: #cbd5e1; }
.footer-contact-item svg { width: 17px; height: 17px; color: var(--saffron-light); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { margin: 0; color: #e2e8f0; text-decoration: none; }
.footer-contact-item a:hover { color: var(--saffron-light); }
.social-links a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; }
.social-links a svg { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 960px) {
  .text-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .text-member-grid, .verify-grid { grid-template-columns: 1fr; }
}
