/* ======================================================
   NVI Ghana — Base Theme
   - Cleaned hero styles (single block)
   - Accessible buttons with variants
   - Admin styles scoped to .admin-shell only
   - Notices + Announcements side-by-side
   ====================================================== */

/* ---------------------------
   Theme Tokens
---------------------------- */
:root {
  --brand: #1e5bb8;
  /* primary blue */
  --accent: #1aa34a;
  /* green accent */
  --ink: #0b1733;
  /* primary text */
  --muted: #5c6c92;
  /* secondary text */
  --bg: #ffffff;
  /* page background */
  --surface: #f5f7fc;
  /* section surface */
  --card: #ffffff;
  /* card background */
  --ring: rgba(30, 91, 184, .22);
  --shadow: 0 16px 36px rgba(10, 30, 70, .08);
  --gold: #cfb53b;
  --red: #c9302c;
  --yellow: #f4c335;
  --green: #1ba24a;

  /* Admin tokens */
  --card-bg: #fff;
  --admin-ink: #0f172a;
  --admin-muted: #64748b;
  --admin-ring: #e5e7eb;
  --admin-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

/* ---------------------------
   Resets / Base
---------------------------- */
* {
  box-sizing: border-box
}

html,
body {
  min-height: 100vh;
  overflow-x: clip; /* clip ≠ hidden: doesn't create a scroll container, so child overflow-x:auto elements can still scroll */
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background-color: #f0f4f8;
  cursor: url('syringe.svg') 0 0, auto;
  /* Custom Cursor */
  background-image:
    radial-gradient(at 0% 0%, hsla(210, 100%, 93%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(220, 100%, 93%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(350, 100%, 94%, 1) 0, transparent 50%);
  width: 100%;
  max-width: 100vw;
}

.container {
  max-width: 1200px;
  padding: 0 1rem;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 1rem;
    /* Full width feel on mobile */
    max-width: 100%;
  }

  /* Ensure sections don't force padding either */
  .section>div[style*="padding:0 3rem"] {
    padding: 0 1rem !important;
  }
}

/* Custom Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

@media (max-width: 900px) {

  .col-md-3,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


@media (max-width: 600px) {
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.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
}

/* Global Interactive Cursor */
a,
button,
.btn,
input,
select,
textarea {
  cursor: url('syringe.svg') 0 0, pointer;
}

/* ---------------------------
   Top Government Bar
---------------------------- */
.govbar {
  background: #0f1b38;
  color: #e7efff;
  font-size: .9rem
}

.govbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 40px
}

.gov-left {
  display: flex;
  align-items: center;
  gap: .5rem
}

.crest {
  height: 22px;
  width: auto;
  filter: grayscale(1) brightness(10)
}

.gov-right a {
  color: #cddbff;
  text-decoration: none;
  margin-left: 1rem
}

/* ---------------------------
   Masthead / Brand / Search
---------------------------- */
.masthead {
  background: #fff;
  border-bottom: 1px solid #e5ecfb
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.3;
}

.brand-text span {
  display: block;
  color: #5e6b8e;
  font-weight: 600;
  letter-spacing: .2px;
  font-size: 0.9rem;
}

.site-search {
  display: flex;
  gap: .5rem;
  align-items: center
}

.site-search input {
  padding: .65rem .85rem;
  border: 1px solid #cbd5e1;
  border-radius: 99px;
  /* Pill shape */
  font: inherit;
  min-width: 240px;
  outline: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  /* Inner depth */
  background: #f8fafc;
  transition: all 0.2s;
}

.site-search input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.03),
    0 0 0 3px rgba(30, 91, 184, 0.15);
}

/* Social Media Icons (Top) */
.social-icons-top {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #f8fafc;
  color: #0b1220;
  text-decoration: none;
  transition: all 0.16s ease;
  border: 4px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.14);
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 91, 184, 0.15) 0%, rgba(26, 163, 74, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.social-icon {
  z-index: 1;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
  border-color: rgba(0, 0, 0, 0.08);
}

.social-icon svg {
  width: 52px;
  height: 52px;
  transition: transform 0.18s ease;
  position: relative;
  z-index: 2;
}

.social-icon:hover svg {
  transform: scale(1.2);
}

/* Platform-specific colors */
.social-icon.facebook {
  background: #1877f2;
  color: #fff;
  border-color: rgba(24, 119, 242, 0.15);
}

.social-icon.facebook:hover {
  background: #145ec6;
  color: #fff;
}

.social-icon.x,
.social-icon.twitter {
  background: #1da1f2;
  color: #fff;
  border-color: rgba(29, 161, 242, 0.12);
}

.social-icon.x:hover,
.social-icon.twitter:hover {
  background: #0d95e8;
  color: #fff;
}

.social-icon.linkedin {
  background: #0a66c2;
  color: #fff;
  border-color: rgba(10, 102, 194, 0.12);
}

.social-icon.linkedin:hover {
  background: #084f9b;
  color: #fff;
}

.social-icon.youtube {
  background: #ff0000;
  color: #fff;
  border-color: rgba(255, 0, 0, 0.12);
}

.social-icon.youtube:hover {
  background: #cc0000;
  color: #fff;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  border-color: rgba(204, 35, 67, 0.08);
}

.social-icon.instagram:hover {
  filter: brightness(0.95) saturate(1.05);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .mast {
    gap: 0.5rem;
    padding: 0.75rem 0;
  }

  /* Hide top icons on mobile */
  .social-icons-top {
    display: none;
  }

  .brand img {
    height: 40px;
    width: 40px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text span {
    font-size: 0.8rem;
  }
}

/* Mobile Social Icons in Nav */
.social-icons-mobile {
  display: none;
  /* Hidden by default (desktop) */
}

@media (max-width: 900px) {
  .social-icons-mobile {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-left: auto;
    /* Push to right if space permits */
  }

  .social-icons-mobile .social-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: none;
    border-radius: 50%;
    margin: 0;
  }

  .social-icons-mobile .social-icon svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .mast {
    gap: 0.4rem;
    padding: 0.6rem 0;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand img {
    height: 32px;
    width: 32px;
  }

  .brand-text strong {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .brand-text span {
    font-size: 0.7rem;
  }

  .social-icons-top {
    gap: 0.35rem;
  }

  .social-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-width: 1.5px;
    box-shadow: 0 4px 6px rgba(2, 6, 23, 0.1);
  }

  .social-icon svg {
    width: 12px;
    height: 12px;
  }

  .social-icon:hover {
    transform: translateY(-2px) scale(1.02);
  }
}


/* Ultra-small screens (320px) */
@media (max-width: 360px) {
  .mast {
    gap: 0.3rem;
    padding: 0.5rem 0;
  }

  .brand {
    gap: 0.4rem;
  }

  .brand img {
    height: 28px;
    width: 28px;
  }

  .brand-text strong {
    font-size: 0.75rem;
    line-height: 1.1;
  }

  .brand-text span {
    font-size: 0.65rem;
  }

  .social-icons-top {
    gap: 0.25rem;
  }

  .social-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-width: 1px;
    box-shadow: none;
  }

  .social-icon svg {
    width: 10px;
    height: 10px;
  }
}

.social-icon:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring), 0 18px 40px rgba(2, 6, 23, 0.12);
}

.site-search input:focus {
  box-shadow: 0 0 0 3px var(--ring)
}

.site-search button {
  padding: .65rem .9rem;
  border-radius: .6rem;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700
}

/* ---------------------------
   Primary Navigation (3D Modern)
---------------------------- */
.primary-nav {
  background: rgba(9, 16, 43, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.primary-nav.nav-scrolled {
  background: rgba(6, 11, 30, 0.99);
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.5rem 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  padding: .75rem;
}

#nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  /* Reduced gap for pills */
  align-items: center;
}

#nav-links>li>a {
  display: block;
  padding: 0.95rem 1.1rem;
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 6px;
  transition: color 0.22s ease, background 0.22s ease;
  position: relative;
  white-space: nowrap;
}

/* Animated underline indicator */
#nav-links>li>a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 1.1rem;
  right: 1.1rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Hover and active — underline slides in */
#nav-links>li>a:hover,
#nav-links>li>a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

#nav-links>li>a:hover::after,
#nav-links>li>a.active::after {
  transform: scaleX(1);
}

/* Active Pressed State */
#nav-links>li>a:active {
  transform: translateY(1px);
  background: rgba(0, 0, 0, 0.15);
}

/* CTA Button — pulse glow */
#nav-links li.nav-cta-item a.nav-cta {
  background: linear-gradient(135deg, var(--brand) 0%, #164e9e 100%);
  border: none;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  animation: ctaNavPulse 2.8s ease-in-out infinite;
}

#nav-links li.nav-cta-item a.nav-cta::after {
  display: none;
}

#nav-links li.nav-cta-item a.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -4px rgba(30, 91, 184, 0.65);
  background: linear-gradient(135deg, #2563eb 0%, #1e5bb8 100%);
  animation: none;
}

@keyframes ctaNavPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 91, 184, 0.5); }
  55% { box-shadow: 0 0 0 8px rgba(30, 91, 184, 0); }
}

/* Dropdown Menu (3D Card) */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  /* Gap for safety */
  left: 0;
  background: #1e293b;
  min-width: 240px;
  list-style: none;
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 100;

  /* Perspective origin for rotation */
  transform-origin: top center;
}

/* Bridge to prevent closing when moving mouse */
.has-child::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.has-child {
  position: relative;
}

.has-child.open .dropdown,
.has-child:hover .dropdown {
  display: block;
  animation: dropdownFoldIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* On mobile, only show via .open class (hover has no meaning) */
@media (max-width: 900px) {
  .has-child:hover .dropdown {
    display: none;
  }
  .has-child.open .dropdown {
    display: block;
  }
}

.dropdown li {
  margin-bottom: 2px;
}

.dropdown li:last-child {
  margin-bottom: 0;
}

.dropdown a {
  padding: 0.75rem 1rem !important;
  color: #cbd5e1 !important;
  font-weight: 500 !important;
  font-size: 0.95rem;
  border-radius: 6px;
  display: block;
  border: none !important;
  /* Remove line separators */
  transition: all 0.2s;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  transform: translateX(4px);
  /* Slide right */
  box-shadow: -2px 0 0 var(--accent);
  /* Accent bar on left */
}

@keyframes dropdownFoldIn {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(-10deg) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
  }
}



/* Mobile adjustments handled by general nav logic, but ensure dropdown works there too */
@media (max-width: 900px) {
  .dropdown {
    position: static;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: none;
    padding-left: 1rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block
  }

  #nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: #0f1b38;
    top: 100%;
    padding: 1rem;
    flex-direction: column;
    max-height: 80vh;
    /* Prevent cutoff */
    overflow-y: auto;
    /* Allow scrolling */
  }

  #nav-links.open {
    display: flex
  }
}

/* ---------------------------
   Hero (single clean block)
---------------------------- */
.hero {
  position: relative
}

/* ===== Brighter Hero Images ===== */
.hero {
  position: relative;
}

.hero-slide {
  position: relative;
  min-height: 640px;
  /* adjust height if you want */
  background-image: var(--bg);
  /* --bg is set inline as url(...) */
  background-size: cover;
  background-position: center;
}

/* Smooth Parallax for Desktop */
@media (min-width: 768px) {
  .hero-slide {
    background-attachment: fixed;
  }
}

/* subtle dim layer; set to 0 to remove entirely */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--hero-dim, .10);
  /* 0.10 = subtle; 0 = none */
  pointer-events: none;
}

/* keep hero text above overlay */
.hero-inner {
  position: relative;
  z-index: 1;
}

/* your white text card for readability */
.hero-copy {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(2px);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  max-width: 720px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .10);
}

.hero-slide.current {
  display: block
}

.hero-inner {
  color: #fff;
  padding: 4rem 0
}

.hero-inner h1 {
  font-size: 2.4rem;
  margin: 0 0 .5rem
}

.hero-inner p {
  font-size: 1.1rem;
  margin: .25rem 0 1rem
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  gap: .5rem;
  justify-content: center
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .55)
}

.dot.active {
  background: #fff
}

/* ---------------------------
   Sections / Cards / Links
---------------------------- */
.section {
  padding: 4rem 0;
  /* Increased padding for better separation */
}

.section-white {
  background-color: #ffffff;
}


.section-offwhite {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  /* Subtle gradient */
}

.section-brand-light {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  /* Brand tint gradient */
}

/* --- WOW BACKGROUNDS (BOLDER) --- */

/* Services: Techy Grid with stronger contrast */
.section-bg-services {
  background-color: #f0f9ff;
  /* Clear light blue */
  background-image:
    radial-gradient(#94a3b8 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  position: relative;
  border-bottom: 2px solid #e2e8f0;
}

/* Events: Distinct Warm Spotlight */
.section-bg-events {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #fffbeb 0%, #ffffff 60%);
  /* Warm gold/yellow tint to stand out */
  border-bottom: 2px solid #e2e8f0;
}



/* Partners: Structural Pattern */
/* Partners: Clean White */
.section-bg-partners {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* Connect: Deep Night / Footer Pre-cursor */
.section-bg-connect {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Optional accent shape for connect */
.section-bg-connect::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 91, 184, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}




.surface {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.card {
  background: var(--card);
  border: 1px solid #e5ecfb;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow)
}

.link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700
}

/* ---------------------------
   Services Grid
---------------------------- */
/* ---------------------------
   Services Grid (Redesigned)
---------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.svc {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  text-align: left;
  padding: 0;
  overflow: hidden;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  /* Rounded modern look */
  border: 0;
  /* Remove default card border */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  /* Soft shadow */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.svc:hover {
  transform: translateY(-8px);
  /* Lift effect */
  box-shadow: 0 20px 40px -10px rgba(30, 91, 184, 0.25), 0 10px 10px -5px rgba(30, 91, 184, 0.1);
  /* Deep Blue Glow */
}

.svc-img-wrap {
  width: 100%;
  height: 180px;
  /* Taller image */
  background: #f1f5f9;
  overflow: hidden;
  position: relative;
}

.svc img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.svc:hover img {
  transform: scale(1.1);
  /* Subtle zoom */
}

.svc-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.svc h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  /* Brand Blue */
  letter-spacing: -0.02em;
}

.svc p {
  color: #64748b;
  /* Slate 500 */
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Optional: Add a "Read More" indicator */
.svc-body::after {
  content: 'Learn more →';
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  display: block;
}

.svc:hover .svc-body::after {
  opacity: 1;
  transform: translateX(0);
}

/* Quick links */
.quick-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

.ql {
  display: inline-block;
  padding: .5rem .8rem;
  border: 1px solid #dbe3f5;
  border-radius: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600
}

/* ---------------------------
   Notices + Announcements Split
---------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 1rem;
  align-items: start
}

@media (max-width: 1000px) {
  .split {
    grid-template-columns: 1fr
  }
}

/* Notice teaser (left) */
.notice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem
}

.notice-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
  overflow: hidden
}

.notice-card img {
  width: 100%;
  height: 160px;
  object-fit: cover
}

.notice-body {
  padding: 1rem 1.1rem
}

.notice-body h3 {
  margin: .2rem 0 .25rem
}

/* Legacy notice row format (still used in some spots) */
.notice {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  margin-bottom: 1rem
}

.notice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: .6rem
}

/* Announcements (right) */
.ann-list {
  list-style: none;
  margin: 0;
  padding: .75rem
}

.ann-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px dashed #e5ecfb
}

.ann-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600
}

/* ---------------------------
   Programs / News
---------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem
}

.cards .card {
  min-height: 140px
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem
}

/* News: Techy Grid (Services Match) */
/* News: Light Gradient (No Dots) */
.section-bg-news {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  position: relative;
  border-bottom: 2px solid #e2e8f0;
  overflow: hidden;
}

/* ... (previous styles continue) ... */

.news-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 0;
  /* Remove border to match svc style which uses shadow */
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(30, 91, 184, 0.25), 0 10px 10px -5px rgba(30, 91, 184, 0.1);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  /* ensure block to avoid inline gaps */
}

/* Ensure the link wrapper is a block so height/width apply correctly */
.thumb-wrap {
  display: block;
  width: 100%;
  height: 180px;
  /* same as img */
  overflow: hidden;
}

.news-card:hover img {
  transform: scale(1.1);
}


.news-body {
  padding: 1rem
}

.news-body .meta {
  color: var(--muted);
  font-size: .9rem
}

/* ---------------------------
   Footer
---------------------------- */
.site-footer {
  background: #0f1b38;
  color: #dfe7ff;
  margin-top: 2rem
}

.foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0
}

.foot a {
  color: #cddbff;
  text-decoration: none
}

.foot-col h4 {
  margin: .2rem 0 .4rem
}

.foot-social {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .5rem;
}

.foot-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #dfe7ff;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

.foot-social-icon:hover {
  transform: translateY(-2px);
  color: #fff;
}

.foot-social-icon.foot-social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.foot-social-icon.foot-social-x:hover,
.foot-social-icon.foot-social-twitter:hover {
  background: #000;
  border-color: #000;
}

.foot-social-icon.foot-social-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

.foot-social-icon.foot-social-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.foot-social-icon.foot-social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
}

.foot-social-icon.foot-social-tiktok:hover {
  background: #000;
  border-color: #000;
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .4rem
}

/* ---------------------------
   Events
---------------------------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.event-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 1.5rem;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--brand);
}

.event-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.event-details h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  font-weight: 700;
}

.event-details .meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.event-details .desc {
  font-size: 0.9rem;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}

.copybar {
  background: #0b1329;
  color: #cddbff;
  font-size: .9rem;
  padding: .6rem 0
}

/* ---------------------------
   PUBLIC Buttons (accessible)
---------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);

  display: inline-block;
  padding: .75rem 1rem;
  border-radius: .7rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: filter .12s ease, transform .06s ease;
}

.btn:hover {
  filter: brightness(0.96)
}

.btn:active {
  transform: translateY(1px)
}

.btn:focus {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--ring)
}

/* Variants */
.btn.primary {
  --btn-bg: linear-gradient(135deg, var(--brand) 0%, #2563eb 100%);
  --btn-bd: transparent;
  --btn-fg: #fff;
  box-shadow: 0 4px 6px -1px rgba(30, 91, 184, 0.2);
}

.btn.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 15px -3px rgba(30, 91, 184, 0.3);
  transform: translateY(-1px);
}

/* solid brand */
.btn.outline {
  --btn-bg: #fff;
  --btn-fg: var(--brand);
  --btn-bd: var(--brand)
}

/* white bg on light areas */
.btn.outline:hover {
  filter: none;
  background: #f7faff
}

.btn.ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: #ffffff66;
  border-color: #ffffff66
    /* transparent for dark sections */
}

.btn.btn-remove-img {
  --btn-bg: #fff0f0;
  --btn-fg: #b91c1c;
  --btn-bd: #fca5a5;
  font-size: .8rem;
}
.btn.btn-remove-img:hover {
  --btn-bg: #fee2e2;
  filter: none;
}

.btn.inverse {
  --btn-bg: #fff;
  --btn-fg: #0b1733;
  --btn-bd: #fff
}

/* solid white button for dark sections */

/* Legacy ghost compatibility */
.btn.ghost {
  background: transparent;
  color: var(--btn-fg)
}

/* ---------------------------
   CTA Band (animated)
---------------------------- */
.cta-animated {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 400px at 10% 10%, #e0f2fe 0, transparent 60%),
    radial-gradient(1200px 400px at 90% 90%, #e9d5ff 0, transparent 60%),
    #0b1b3a;
  color: #fff;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
}

.cta-copy h2 {
  font-size: 1.75rem;
  margin: 0 0 .25rem 0
}

.cta-copy p {
  margin: 0;
  opacity: .9
}

.cta-animated::before,
.cta-animated::after {
  content: '';
  position: absolute;
  inset: auto;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
  will-change: transform;
  transform: translateZ(0);
  pointer-events: none;
  animation: floaty 10s ease-in-out infinite;
}

.cta-animated::before {
  background: #38bdf8;
  top: -200px;
  left: -200px;
}

.cta-animated::after {
  background: #a78bfa;
  bottom: -220px;
  right: -220px;
  animation-delay: -4s;
}

@keyframes floaty {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  50% {
    transform: translate(20px, -10px) scale(1.05)
  }
}

/* Pulse ring for CTA button */
.cta-pulse {
  position: relative;
  isolation: isolate;
  box-shadow: 0 6px 20px rgba(31, 111, 235, .35)
}

.cta-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .6);
  animation: pulse 2.2s ease-out infinite;
  opacity: .6;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: .6
  }

  70%,
  100% {
    transform: scale(1.18);
    opacity: 0
  }
}

/* ---------------------------
   Pagination
---------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5ecfb;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  background: #fff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 91, 184, 0.25);
}

.pagination a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(30, 91, 184, 0.2);
}

.pagination .activepage {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(30, 91, 184, 0.3);
  cursor: default;
}

.pagination span:not(.activepage) {
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  cursor: default;
  min-width: auto;
  padding: 0.5rem 0.25rem;
}

/* Responsive pagination */
@media (max-width: 640px) {
  .pagination {
    gap: 0.35rem;
  }

  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
}

/* ---------------------------
   Images in cards / prose
---------------------------- */
.prose img,
.card img {
  max-width: 100%;
  height: auto
}

/* ---------------------------
   Responsive tweaks
---------------------------- */
@media (max-width:1000px) {
  .svc-grid {
    grid-template-columns: 1fr 1fr
  }

  .news-grid,
  .cards {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:560px) {

  .news-grid,
  .cards {
    grid-template-columns: 1fr
  }
}

/* ======================================================
   ADMIN-ONLY STYLES (scoped)
   Add class="admin-shell" to <body> of admin pages.
   These rules will NOT affect public pages.
   ====================================================== */
.admin-shell {
  background: #f6f7fb;
  color: var(--admin-ink)
}

.card.admin {
  background: var(--card-bg);
  border: 1px solid #eef2f7;
  border-radius: 16px;
  box-shadow: var(--admin-shadow);
  transition: transform .08s ease, box-shadow .12s ease;
}

.card.admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, .12)
}

.kpi {
  font: 800 2rem/1 Inter, system-ui;
  color: var(--admin-ink)
}

.muted {
  color: var(--admin-muted)
}

/* Admin-scoped buttons (won't override public) */
.admin-shell .btn,
.card.admin .btn {
  --btn-bg: #fff;
  --btn-fg: #0f172a;
  --btn-bd: var(--admin-ring);
  border-radius: 10px;
  padding: .5rem .85rem;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.admin-shell .btn.primary,
.card.admin .btn.primary {
  --btn-bg: #1f6feb;
  --btn-fg: #fff;
  --btn-bd: #1f6feb
}

.admin-shell .btn.ghost,
.card.admin .btn.ghost {
  --btn-bg: #f3f4f6;
  --btn-fg: #0f172a;
  --btn-bd: #e5e7eb
}

/* ---------------------------
   Welcome / CEO section
---------------------------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center
}

.welcome-photo {
  display: flex;
  justify-content: center
}

.welcome-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 999px;
  border: 6px solid #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .15);
}

.welcome-placeholder {
  width: 280px;
  height: 280px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e7ff, #fce7f3);
  color: #111827;
  font-weight: 800;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .15);
}

.welcome-text .ceo-name {
  color: #334155;
  font-weight: 600;
  margin-top: .5rem
}

@media (max-width:900px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    text-align: center
  }

  /* Stack name under image */
  .welcome-text {
    display: flex;
    flex-direction: column;
  }

  .welcome-text .ceo-name {
    order: -1;
    margin: 0.5rem 0 1.5rem;
    font-size: 1.1rem;
    color: var(--brand);
  }

  .cta-inner {
    flex-direction: column;
    text-align: center
  }
}

/* ===== Section dividers ===== */
.divider {
  --div-clr: #e8eefb;
  /* base line color */
  --div-thick: 1px;
  /* thickness */
  --div-gap: 2rem;
  /* spacing above/below */
  width: 100%;
  height: var(--div-thick);
  background: linear-gradient(90deg, transparent, var(--div-clr), transparent);
  margin: var(--div-gap) 0;
  border: 0;
}

/* Slightly stronger divider */
.divider--bold {
  --div-clr: #d7dff1;
  --div-thick: 2px;
}

/* Dotted divider */
.divider--dotted {
  --div-gap: 1.5rem;
  height: 0;
  border: 0;
  border-top: 1px dotted #cfd9f3;
  background: none;
  margin: var(--div-gap) 0;
}

/* Ghana tricolor accent bar (subtle, 3px total) */
.divider--flag {
  --div-gap: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, #c9302c 33.33%, #f4c335 33.34% 66.66%, #1ba24a 66.67%);
  box-shadow: 0 1px 0 rgba(10, 30, 70, .06);
}

/* Optional: headline underline for section titles */
.h2-underline {
  position: relative;
  display: inline-block;
  padding-bottom: .4rem;
}

.h2-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
  opacity: .15;
}

/* Base visuals for slides */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: none;
  opacity: 0;
  transform: translateX(0);
}

.hero-slide.current {
  display: block;
}

/* Fade mode */
.hero.anim-fade .hero-slide {
  transition: opacity .6s ease;
}

.hero.anim-fade .hero-slide.current {
  opacity: 1;
}

.hero.anim-fade .hero-slide.leaving {
  opacity: 0;
}

/* Slide mode */
.hero.anim-slide .hero-slide {
  will-change: transform, opacity;
  transition: transform .6s ease, opacity .6s ease;
}

.hero.anim-slide .hero-slide.entering {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.hero.anim-slide .hero-slide.leaving {
  display: block;
  opacity: 0;
  transform: translateX(-6%);
}

/* Dots unchanged (ensure visible) */
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  gap: .5rem;
  justify-content: center
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .55);
  cursor: pointer
}

.dot.active {
  background: #fff
}

/* --- Taller hero (responsive) --- */
.hero {
  position: relative;
  overflow: hidden;
}

/* desktop/tablet: big, but not overwhelming */
.hero-slide {
  min-height: clamp(520px, 70vh, 820px);
}

/* give the text more breathing room */
.hero .hero-inner {
  padding: clamp(3rem, 6vh, 6rem) 0;
}

/* small screens: still taller than before, but sensible */
@media (max-width: 600px) {
  .hero-slide {
    min-height: 520px;
  }

  .hero .hero-inner {
    padding: 3rem 0;
  }
}

/* --- Hero text vertical offset (push content lower) --- */
.hero {
  /* control overall height and the vertical offset from the top */
  --hero-h: clamp(520px, 70vh, 820px);
  --hero-top: clamp(6rem, 24vh, 14rem);
  /* increase/decrease to move text */
}

.hero-slide {
  min-height: var(--hero-h);
  position: relative;
}

/* make the inner container fill the hero and offset from the top */
.hero .hero-inner {
  min-height: var(--hero-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--hero-top);
  padding-bottom: clamp(1.5rem, 5vh, 3rem);
}

/* small screens: reduce the offset so text stays visible */
@media (max-width: 600px) {
  .hero {
    --hero-top: 4rem;
  }
}

/* --- Hero copy card: readable on any image --- */
.hero {
  --hero-h: clamp(520px, 70vh, 820px);
  --hero-top: clamp(6rem, 24vh, 14rem);
  /* move this up/down to adjust vertical position */
}

.hero-slide {
  min-height: var(--hero-h);
  position: relative;
}

.hero .hero-inner {
  min-height: var(--hero-h);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: var(--hero-top);
  padding-bottom: clamp(1.5rem, 5vh, 3rem);
}

/* The white overlay card */
.hero-copy {
  max-width: min(760px, 92%);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: clamp(1rem, 2.5vh, 1.5rem) clamp(1rem, 3vw, 1.75rem);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .18);
  color: #0b1733;
}

/* Ensure strong contrast */
.hero-copy h1 {
  color: #0b1733;
  margin: 0 0 .5rem;
  line-height: 1.1;
}

.hero-copy p {
  color: #334155;
  margin: .25rem 0 1rem;
}

/* Space CTAs and make them stack nicely on phones */
.hero-copy .cta-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

/* Buttons on light card */
.hero-copy .btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.hero-copy .btn.ghost {
  background: #ffffff;
  color: #0b1733;
  border-color: #e5e7eb;
}

.hero-copy .btn.ghost:hover {
  background: #f6f7fb;
}

/* Small screens: keep text visible and card full-width-ish */
@media (max-width: 600px) {
  .hero {
    --hero-top: 3.25rem;
  }

  .hero-copy {
    max-width: 100%;
    padding: 1rem 1.1rem;
  }
}

/* Softer, more transparent hero text card */
.hero-copy {
  background: rgba(255, 255, 255, 0.62);
  /* was ~0.80–0.85 */
  backdrop-filter: saturate(140%) blur(4px);
  /* a touch lighter blur */
  -webkit-backdrop-filter: saturate(140%) blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

/* --- Partners Ticker --- */
.partners-ticker {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8eefb;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
  padding: .75rem 0;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: partners-scroll 28s linear infinite;
  will-change: transform;
}

.partners-ticker:hover .partners-track {
  animation-play-state: paused;
}

.partner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  /* ensures spacing uniformity */
  padding: .25rem .5rem;
  filter: saturate(0.9);
  transition: transform .15s ease, filter .15s ease;
}

.partner:hover {
  transform: translateY(-2px);
  filter: saturate(1);
}

.partner img {
  height: 46px;
  /* tweak as needed */
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .04));
  opacity: .95;
}

@media (max-width: 640px) {
  .partner img {
    height: 38px;
  }
}

/* Continuous loop: track width is 2x content because we duplicated logos */
@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* move by half (because duplicated) */
}

/* Optional: if you like a subtle gradient fade on edges */
.partners-ticker::before,
.partners-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 1;
}

.partners-ticker::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.partners-ticker::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* If the section sits on a dark surface, invert fades: */
.surface .partners-ticker {
  background: #fff;
  /* keep white for logo contrast */
  border-color: #e8eefb;
}

.surface .partners-ticker::before {
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.surface .partners-ticker::after {
  background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

/* === Partners size tweaks (override) === */
.partners-ticker {
  /* bump padding so taller logos breathe */
  padding: 1rem 0;
  /* control sizes via variables */
  --partner-logo-h: 72px;
  /* <-- increase overall height here */
  --partner-gap: 3rem;
  /* spacing between logos */
}

.partners-track {
  gap: var(--partner-gap);
}

.partner img {
  height: var(--partner-logo-h);
  width: auto;
  max-height: var(--partner-logo-h);
  object-fit: contain;
}

/* Larger on wide screens, slightly smaller on very small screens */
@media (min-width: 1280px) {
  .partners-ticker {
    --partner-logo-h: 84px;
    --partner-gap: 3.5rem;
  }
}

@media (max-width: 640px) {
  .partners-ticker {
    --partner-logo-h: 56px;
    --partner-gap: 2rem;
  }
}

/* If any logos look faint on white, add a subtle shadow for contrast */
.partner img {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .06));
}

/* Names under partner logos */
.partner {
  display: inline-flex;
  flex-direction: column;
  /* stack logo + name */
  align-items: center;
  justify-content: center;
  min-width: 180px;
  /* give name some width */
  gap: .35rem;
  padding: .35rem .5rem;
  text-align: center;
}

.partner-name {
  font-size: .85rem;
  line-height: 1.15;
  font-weight: 600;
  color: #0f172a;
  opacity: .9;
  max-width: 200px;
  display: -webkit-box;
  /* clamp to 2 lines for stability */
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

/* keep your chosen logo size variables */
.partners-ticker {
  padding: 1rem 0;
  --partner-logo-h: 72px;
  /* adjust if you want larger/smaller */
  --partner-gap: 3rem;
}

.partners-track {
  gap: var(--partner-gap);
}

.partner img {
  height: var(--partner-logo-h);
  width: auto;
  max-height: var(--partner-logo-h);
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .06));
}

@media (min-width: 1280px) {
  .partners-ticker {
    --partner-logo-h: 84px;
    --partner-gap: 3.5rem;
  }
}

@media (max-width: 640px) {
  .partners-ticker {
    --partner-logo-h: 56px;
    --partner-gap: 2rem;
  }
}

/* ============================
   Elegant, non-intrusive page background
   ============================ */

/* Soft professional palette (tuned for Ghana Gov look) */
:root {
  --bg-1: #f8fafc;
  /* base */
  --bg-2: #f1f5fb;
  /* tint */
  --bg-3: #eef2f9;
  /* subtle panel halo */
  --bg-dot: rgba(13, 36, 89, 0.04);
  /* micro texture */
}

/* Page background: layered, very subtle, never competes with content */
body {
  /* layered gradients (no harsh bands), ultra low-contrast */
  background:
    radial-gradient(1200px 600px at 10% 5%, var(--bg-2) 0%, transparent 60%),
    radial-gradient(1100px 500px at 90% 95%, var(--bg-3) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1), #ffffff 60%, var(--bg-1));
}

/* Optional: micro dot texture to add depth on very large screens */
@media (min-width: 1200px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
      radial-gradient(2px 2px at 20px 20px, var(--bg-dot) 25%, transparent 26%);
    background-size: 22px 22px;
    opacity: .65;
    /* keep ultra subtle */
  }
}

/* Keep all primary content on clean surfaces */
.card,
.site-footer,
.notice-card,
.news-card {
  background: #fff;
  /* guarantee readability */
}

/* Surface sections get a faint lift so they sit nicely on the new bg */
.section.surface {
  background: transparent;
  /* let the elegant body show through */
}

.section.surface .container {
  background: rgba(255, 255, 255, .65);
  /* translucent panel feel */
  backdrop-filter: saturate(110%) blur(2px);
  -webkit-backdrop-filter: saturate(110%) blur(2px);
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  box-shadow: 0 10px 30px rgba(10, 30, 70, .04);
}

/* Dividers stay crisp on the new background */
.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(15, 23, 42, .12), transparent);
  margin: 1.75rem 0;
}

.divider--bold {
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(15, 23, 42, .18), transparent);
}

.divider--flag {
  height: 4px;
  background:
    linear-gradient(90deg,
      #006b3f 0 33%,
      /* green */
      #fcd116 33% 66%,
      /* gold */
      #ce1126 66% 100%
      /* red  */
    );
  border-radius: 2px;
}

/* Hero stays readable; your hero-copy chip is already white with shadow */
.hero {
  background: transparent;
  /* let body bg breathe around the hero edges */
}

/* Partners ticker panel pops cleanly on the elegant page bg */
.partners-ticker {
  background: #fff;
  border: 1px solid #e8eefb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

/* CTA animated band: soften edges against new bg */
.cta-animated {
  border-radius: 14px;
  margin-inline: .25rem;
  box-shadow: 0 16px 44px rgba(11, 27, 58, .18);
}

/* ===== Footer hardening (override) ===== */

/* Keep footer solid and independent of global translucent panels */
.site-footer {
  background: #0f1b38 !important;
  /* deep navy */
  color: #dfe7ff !important;
  box-shadow: none !important;
  border: 0 !important;
}

.site-footer .container,
.site-footer .foot {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  /* cancel any glass effect */
  -webkit-backdrop-filter: none !important;
}

/* Text & link colors for contrast on dark bg */
.site-footer h4 {
  color: #ffffff !important;
}

.site-footer a {
  color: #cddbff !important;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff !important;
}

/* Lists in footer */
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: .25rem 0;
}

/* “copybar” strip stays darker than main footer */
.copybar {
  background: #0b1329 !important;
  /* almost-black navy */
  color: #cddbff !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Optional: add subtle separators inside footer for structure */
.site-footer .foot {
  row-gap: 1rem;
}

.site-footer .foot-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .08);
  padding-right: 1rem;
}

@media (max-width: 800px) {
  .site-footer .foot-col:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding-right: 0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
}

/* Partners */
.partners {
  background: var(--surface);
  padding: 2rem 0;
}

.partners h2 {
  position: relative;
  z-index: 2;
  margin-bottom: .75rem;
}

/* Scroller */
.partners-rail {
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  animation: partners-scroll 28s linear infinite;
  will-change: transform;
  padding: .5rem 0;
}

.partner-card {
  min-width: 180px;
  text-align: center;
  background: #fff;
  border: 1px solid #e8eefb;
  border-radius: 12px;
  padding: .75rem .9rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

.partner-card img {
  width: 160px;
  height: 70px;
  object-fit: contain;
  display: block;
  margin: 0 auto .35rem;
}

.partner-card figcaption {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes partners-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .partner-card {
    min-width: 140px;
  }

  .partner-card img {
    width: 120px;
    height: 56px;
  }
}

/* About hero (reuses your hero-card style) */
.about-hero {
  min-height: 360px;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)), var(--bg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .25));
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 1.25rem 1.1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .1);
  max-width: 720px;
}

.hero-card h1 {
  margin: 0 0 .35rem 0
}

.hero-card .lead {
  margin: 0;
  color: #1f2937;
}

/* About grid sections */
.grid-about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .grid-about {
    grid-template-columns: 1fr;
  }
}

/* Leadership */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .75rem;
}

@media (max-width: 1100px) {
  .leaders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .leaders-grid {
    grid-template-columns: 1fr;
  }
}

.bio-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bio-photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.bio-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1f2937;
}

.bio-body h3 {
  margin: .25rem 0 .15rem 0
}

.bio-body .meta {
  color: var(--muted);
  margin: 0 0 .4rem 0
}

.prose.small p {
  margin: .35rem 0
}

/* People grid */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px) {
  .people-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

.person-card {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.person-photo {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .person-card {
    flex-direction: column;
    text-align: center;
  }

  .person-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 800;
  font-size: 1.5rem;
}

.person-name {
  margin: .1rem 0 .1rem;
}

.person-title {
  color: #64748b;
  margin: 0 0 .4rem;
}

.profile-btn {
  border-radius: 10px;
  padding: .45rem .8rem;
  background: #1f6feb;
  color: #fff;
  border: 1px solid #1f6feb;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.show {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
}

.modal-dialog {
  position: relative;
  margin: 6vh auto;
  max-width: 820px;
  width: calc(100% - 24px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
  border: 1px solid #eef2f7;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-content {
  padding: 1rem 1.1rem;
}

/* Modal inner profile styles */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .5rem;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.profile-name {
  margin: .1rem 0;
}

.profile-title {
  color: #64748b;
}

.profile-body {
  margin-top: .5rem;
}

/* === Leadership & Management sizing & layout (About page) === */
#leadership .people-grid,
#management .people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(480px, 1fr));
  gap: 22px;
}

@media (max-width: 980px) {

  #leadership .people-grid,
  #management .people-grid {
    grid-template-columns: 1fr;
  }
}

#leadership .person-card,
#management .person-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

/* Larger photo */
#leadership .person-photo,
#management .person-photo {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}

#leadership .person-photo img,
#management .person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#leadership .person-placeholder,
#management .person-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 56px;
  color: #64748b;
  background: #f3f4f6;
  border-radius: 14px;
}

/* Bigger typography */
#leadership .person-name,
#management .person-name {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 2px 0 6px 0;
}

#leadership .person-title,
#management .person-title {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 10px 0;
}

@media (max-width: 768px) {

  #leadership .person-card,
  #management .person-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  #leadership .person-photo,
  #management .person-photo {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    margin-bottom: 0.5rem;
  }

  #leadership .person-meta,
  #management .person-meta {
    padding: 0;
    width: 100%;
  }

  #leadership .person-name {
    margin-top: 0.5rem;
    font-size: 1.25rem;
  }
}

#leadership .person-snippet {
  margin: 6px 0 12px 0;
  color: #334155;
}

/* Prominent profile button */
#leadership .profile-btn {
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #0b63e6;
  color: #fff;
  font-weight: 600;
}

/* Wider modal for profiles (optional) */
.modal-dialog {
  max-width: 880px;
}

.profile-name {
  font-size: 1.4rem;
}

.profile-title {
  color: #64748b;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

/* Modal scrolling improvements */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.modal.show {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .5);
}

.modal-dialog {
  position: relative;
  margin: 6vh auto 0;
  width: min(820px, 92vw);
  max-height: 90vh;
  /* <= constrain to viewport */
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  overflow: hidden;
  /* clip rounded corners while child scrolls */
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-content {
  padding: 16px 18px;
  overflow: auto;
  /* <= the content scrolls */
  max-height: calc(90vh - 0px);
  /* ensure scroll area fills the dialog */
}

/* Optional: nicer layout for the profile content */
.profile-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 10px;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
  }
}

.profile-name {
  margin: 0;
}

.profile-title {
  color: #64748b;
}

/* Mobile: use most of the screen */
@media (max-width: 640px) {
  .modal-dialog {
    margin: 4vh auto 0;
    width: 96vw;
    max-height: 92vh;
  }
}

/* =============================
   ADMIN BUTTON NORMALIZATION
   ============================= */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .5rem .85rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.1;
  transition: .15s ease-in-out;
}

.btn:hover {
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
  transform: translateY(-1px);
}

/* Primary */
.btn.primary {
  background: #1f6feb;
  border-color: #1f6feb;
  color: #fff;
}

.btn.primary:hover {
  filter: brightness(1.05);
}

/* Ghost (light surface) */
.btn.ghost {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #0f172a;
}

.btn.ghost:hover {
  background: #e9ebef;
}

/* Danger */
.btn.danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.btn.danger:hover {
  filter: brightness(1.05);
}

/* Disabled states */
.btn[disabled],
.btn.is-disabled {
  opacity: .55;
  pointer-events: none;
  filter: grayscale(15%);
}

/* =============================
   CONTEXT: DARK TOP BAR (.govbar)
   Make buttons look right on the navy header
   ============================= */
.govbar .btn {
  background: transparent;
  color: #e6edff;
  border-color: rgba(255, 255, 255, .28);
}

.govbar .btn:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.govbar .btn.primary {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

.govbar .btn.ghost {
  /* “light” pill on dark bar */
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: #e6edff;
}

.govbar .btn.ghost:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.govbar .btn[disabled],
.govbar .btn.is-disabled {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: #c8d4ff;
}

/* Ensure links with .btn never turn default link blue */
a.btn {
  color: inherit;
}

/* --- Fix: buttons inside the dark top bar (.govbar) --- */
.govbar .topbar .btn,
.govbar .btn {
  background: transparent !important;
  color: #e6edff !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  box-shadow: none !important;
}

.govbar .topbar .btn:hover,
.govbar .btn:hover {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}

/* Primary variant on the bar */
.govbar .btn.primary {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
}

/* Ghost (pill) variant on the bar */
.govbar .btn.ghost {
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  color: #e6edff !important;
}

.govbar .btn.ghost:hover {
  background: rgba(255, 255, 255, .18) !important;
}

/* Disabled look on the bar */
.govbar .btn[disabled],
.govbar .btn.is-disabled {
  opacity: .6;
  pointer-events: none;
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .1) !important;
  color: #c8d4ff !important;
}

/* Public Notices: 3-up responsive grid */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  /* space between cards */
}

/* Tablet: 2 across */
@media (max-width: 1024px) {
  .notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 across */
@media (max-width: 640px) {
  .notice-grid {
    grid-template-columns: 1fr;
  }
}

/* Make each notice card fill its grid cell and look consistent */
.notice-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

/* Optional top image */
.notice-card>img {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* keeps consistent height */
  object-fit: cover;
  display: block;
}

/* Inner body of the card */
.notice-card .notice-body {
  padding: .9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1 1 auto;
  /* stretch to push link down */
}

/* Title and meta */
.notice-card h3 {
  margin: 0 0 .25rem 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.notice-card .meta {
  color: #64748b;
  font-size: .9rem;
}

/* Keep the "Read more" link at the bottom */
.notice-card .link {
  margin-top: auto;
}

/* --- CTA band button visibility fixes --- */
.cta-animated .btn {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

/* Your CTA uses .btn.inverse in the band */
.cta-animated .btn.inverse {
  background: #ffffff;
  /* keep the pill look */
  color: #0b1326 !important;
  /* dark ink so it’s readable */
  border: 1px solid rgba(15, 23, 42, .12);
  box-shadow: 0 8px 20px rgba(16, 24, 40, .12);
  text-shadow: none;
  /* ensure no glow hides text */
}

.cta-animated .btn.inverse:hover,
.cta-animated .btn.inverse:focus-visible {
  background: #f8fafc;
  /* subtle hover */
  color: #0b1326 !important;
  border-color: rgba(15, 23, 42, .18);
  transform: translateY(-1px);
}

/* If you use a pulsing class, make sure it doesn't fade the text */
.cta-animated .btn.inverse.cta-pulse {
  animation: ctaPulse 2.2s ease-in-out infinite;
}

@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 111, 235, .28);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(31, 111, 235, 0);
  }
}

/* ===== Milestones Timeline ===== */
.milestones .milestones-head {
  margin-bottom: .5rem;
}

.timeline {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 18px 6px 26px;
  /* bottom padding for baseline */
  scroll-snap-type: x proximity;
}

.timeline::-webkit-scrollbar {
  height: 8px
}

.timeline::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 8px
}

/* baseline */
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
}

/* each item */
.tl-item {
  position: relative;
  width: 260px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: normal;
}

/* node on the baseline */
.tl-node {
  position: absolute;
  left: 18px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e5e7eb;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

/* card */
.tl-card {
  background: #fff;
  border: 1px solid #e8eefb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  padding: .9rem 1rem;
  min-height: 120px;
}

.tl-year {
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 .1rem 0
}

.tl-title {
  margin: .1rem 0 .25rem 0;
  line-height: 1.25
}

.tl-text {
  margin: .1rem 0 0 0;
  color: #475569
}

/* (Optional) reveal effect: default visible even without JS */
[data-tl] .tl-card {
  opacity: 1;
  transform: none;
  transition: opacity .4s ease, transform .4s ease;
}

[data-tl] .tl-card.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

/* ===== Fancy rounded timeline cards + lively animations ===== */

/* vertical rail with soft gradient */
.v-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 6px 0 6px 78px;
  /* space for dot + number */
  counter-reset: vstep;
}

.v-timeline::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #e6ecf8 0, #dfe7fb 50%, #e6ecf8 100%);
}

/* each item gets a subtle number tag (optional) */
.vtl-item {
  position: relative;
  margin: 18px 0 24px;
  counter-increment: vstep;
}

.vtl-item::before {
  content: counter(vstep) ".";
  position: absolute;
  left: -4px;
  top: 10px;
  color: #94a3b8;
  font-weight: 700;
  font-size: .9rem;
}

/* glowing dot with gradient and pulse on hover */
.vtl-dot {
  position: absolute;
  left: 19px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(65% 65% at 35% 35%, #67b3ff 0, #1f6feb 60%, #154cb5 100%);
  border: 2px solid #fff;
  box-shadow: 0 8px 26px rgba(31, 111, 235, .38), 0 0 0 0 rgba(31, 111, 235, .22);
  transition: box-shadow .35s ease, transform .2s ease;
  z-index: 2;
}

.vtl-dot img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: none
}

.vtl-dot svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  opacity: .95
}

.vtl-item:hover .vtl-dot {
  box-shadow: 0 10px 32px rgba(31, 111, 235, .45), 0 0 0 10px rgba(31, 111, 235, 0);
  transform: translateY(-1px);
}

/* rounded, “pill” cards with border glow on hover */
.vtl-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  /* rounder corners */
  padding: 18px 20px;
  border: 1px solid #e6ecf8;
  box-shadow: 0 14px 38px rgba(16, 24, 40, .10);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.vtl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(16, 24, 40, .14);
  border-color: #d9e5ff;
}

/* headings + body */
.vtl-year {
  color: #64748b;
  font-weight: 700;
  margin: 2px 0 2px;
}

.vtl-title {
  margin: .1rem 0 .45rem;
  color: #1f6feb;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
}

.vtl-text {
  margin: 0;
  color: #334155;
}

/* ---- Scroll-reveal animation (staggered) ---- */
[data-vtl] .vtl-card {
  opacity: 1;
  transform: none;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: no-preference) {
  [data-vtl] .vtl-card.is-hidden {
    opacity: 0;
    transform: translateY(16px) scale(.99);
  }
}

/* responsive nits */
@media (max-width: 700px) {
  .v-timeline {
    padding-left: 66px;
  }

  .v-timeline::before {
    left: 30px;
  }

  .vtl-item::before {
    left: -8px;
  }

  .vtl-dot {
    left: 13px;
    width: 34px;
    height: 34px;
  }
}

/* Milestones vertical timeline */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 6px 0 6px 64px
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #e6ecf8 0, #dfe7fb 50%, #e6ecf8 100%);
}

.tl-item {
  position: relative;
  margin: 18px 0 24px;
}

.tl-node {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(65% 65% at 35% 35%, #67b3ff 0, #1f6feb 60%, #154cb5 100%);
  border: 2px solid #fff;
  box-shadow: 0 10px 26px rgba(31, 111, 235, .35);
}

.tl-card {
  background: #fff;
  border: 1px solid #e6ecf8;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 14px 38px rgba(16, 24, 40, .10);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, opacity .45s ease;
}

.tl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(16, 24, 40, .14);
  border-color: #d9e5ff
}

.tl-year {
  color: #64748b;
  font-weight: 700;
  margin: 2px 0
}

.tl-title {
  margin: .1rem 0 .45rem;
  color: #1f6feb;
  font-weight: 700;
  font-size: 1.1rem;
}

.tl-text {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* reveal animation */
.tl-card.is-hidden {
  opacity: 0;
  transform: translateY(14px) scale(.99)
}

/* progress line inside the rail */
.tl-progress {
  position: absolute;
  left: 30px;
  top: 0;
  width: 4px;
  height: calc(var(--p, 0) * 100%);
  background: #1f6feb;
  border-radius: 4px;
  pointer-events: none;
}

/* responsive */
@media (max-width:700px) {
  .timeline {
    padding-left: 58px
  }

  .timeline::before,
  .tl-progress {
    left: 26px;
  }

  .tl-node {
    left: 14px;
    width: 26px;
    height: 26px;
    top: 20px
  }

  .tl-item {
    width: auto;
  }
}

/* make each item & card a positioning context */
.tl-item {
  position: relative;
}

.tl-card {
  position: relative;
  z-index: 1;
}

/* TOP-RIGHT DOT (smaller, subtle shadow) */
.tl-node {
  position: absolute;
  right: 10px;
  /* inside the card’s right edge */
  top: 10px;
  /* slightly above the card top for a “badge” feel */
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(65% 65% at 35% 35%, #7cc0ff 0, #1f6feb 60%, #154cb5 100%);
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(31, 111, 235, .35);
  z-index: 2;
}

/* smaller on narrow screens */
@media (max-width: 900px) {
  .tl-node {
    right: 8px;
    top: -9px;
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.25rem;
    padding: .75rem
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(40px + 74px);
    background: #0f1b38;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem
  }

  .nav-links.open {
    display: flex
  }
}

body.nav-open {
  overflow: hidden;
}

/* ===== Primary nav visibility & layout ===== */
.primary-nav {
  background: #0f1b38;
  position: sticky;
  top: 0;
  z-index: 9999
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem
}

/* Show links on desktop */
.primary-nav .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

/* Link styling */
.primary-nav .nav-links a {
  display: block;
  padding: .9rem .25rem;
  color: #e7efff;
  text-decoration: none;
  font-weight: 600;
}

.primary-nav .nav-links a:hover {
  color: #fff
}

.primary-nav .nav-links a.active {
  color: #fff;
  text-decoration: underline
}

/* Toggle hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  padding: .75rem
}

/* ===== Mobile behaviour ===== */
@media (max-width: 900px) {
  .nav-toggle {
    display: block
  }

  /* show hamburger */
  .primary-nav .nav-links {
    display: none;
    /* hide list until opened */
    position: absolute;
    left: 0;
    right: 0;
    top: calc(40px + 74px);
    /* adjust if your header height differs */
    background: #0f1b38;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .primary-nav .nav-links.open {
    display: flex
  }

  /* show when toggled */
}

/* Prevent background scroll when menu is open */
body.nav-open {
  overflow: hidden
}

/* ---------------------------
   Social Media Hub (Modern)
---------------------------- */
.social-hub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.social-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: #0f172a;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  /* Pill shape */
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

/* Icon container */
.social-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  /* Inherit color from parent for easier styling */
}

/* Specific Platform Colors (on hover only, or subtle tint) */
.social-card.facebook:hover {
  color: #1877f2;
  border-color: #1877f2;
  background: #f0f7ff;
}

.social-card.twitter:hover,
.social-card.x:hover {
  color: #000;
  border-color: #000;
  background: #f7f7f7;
}

.social-card.linkedin:hover {
  color: #0a66c2;
  border-color: #0a66c2;
  background: #edf4fe;
}

.social-card.youtube:hover {
  color: #ff0000;
  border-color: #ff0000;
  background: #fff0f0;
}

.social-card.instagram:hover {
  color: #e1306c;
  border-color: #e1306c;
  background: #fff0f5;
}

.social-card.tiktok:hover {
  color: #000;
  border-color: #000;
  background: #f0f0f0;
}

/* Hover Animation */
.social-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  /* Lift effect */
}

.social-card span {
  white-space: nowrap;
}

/* Hide the 'Follow' text to keep it small & clean, or make it very subtle */
.social-card .muted {
  display: none;
  /* User asked for "small but clear", removing extra text helps */
}

@media (max-width: 600px) {
  .social-hub {
    gap: 0.75rem;
  }

  .social-card {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }

  .social-icon {
    width: 18px;
    height: 18px;
  }
}

/* Footer Responsive Grid */
@media (max-width: 900px) {
  .foot {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .foot {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------
   Universal Page Hero
---------------------------- */
.page-hero {
  position: relative;
  min-height: 380px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

/* Dark overlay for text readability */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.6));
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 1rem;
  padding-top: 2rem;
  width: 100%;
}

/* Ensure hero card (white box) stands out if used */
.page-hero .hero-card {
  margin: 0;
  /* Align left */
}

@media (max-width: 600px) {
  .page-hero {
    min-height: 280px;
  }

  .page-hero-inner {
    padding-bottom: 2rem;
  }
}

/* Page hero text always white over dark overlay */
.page-hero .hero-card h1,
.page-hero .hero-card .display-title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.page-hero .hero-card p,
.page-hero .hero-card .lead,
.page-hero .hero-card .lead-text {
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.page-hero {
  min-height: 440px;
}

/* Navigation CTA special styling */
.nav-cta-item {
  margin-left: 0.5rem;
}

#nav-links .nav-cta {
  --btn-bg: var(--red);
  --btn-bd: var(--red);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  /* Pill shape for action */
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

#nav-links .nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Sticky Action Button */
.sticky-action {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 990;
  /* Lower than modals (usually 1000+) */
  box-shadow: 0 4px 12px rgba(30, 91, 184, 0.3);
  /* Reduced shadow */
  animation: floatIn 0.5s ease-out;
  /* Removed constant pulse */
  display: flex;
  touch-action: none;
  user-select: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  /* Compact padding */
  border-radius: 50px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  /* Smaller font */
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  opacity: 0.9;
}

.sticky-action:hover {
  transform: scale(1.05);
  background: #15428a;
  color: #fff;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stickyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 91, 184, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(30, 91, 184, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(30, 91, 184, 0);
  }
}

@media (max-width: 600px) {
  .sticky-action {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }
}

/* ========================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS
   ======================================== */

/* Base Mobile Improvements */
@media (max-width: 768px) {

  /* Increase base font size for better readability */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Better container padding on mobile */
  .container {
    padding: 0 1.25rem;
  }

  /* Stack all grids to single column */
  .svc-grid,
  .cards,
  .news-grid,
  .split {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Make cards more compact */
  .card {
    padding: 1rem;
  }

  /* Responsive headings */
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  /* Hero adjustments */
  .hero-inner h1 {
    font-size: 1.75rem !important;
  }

  .hero-inner p {
    font-size: 1rem !important;
  }

  .page-hero {
    padding: 2rem 0 !important;
  }

  .hero-card {
    padding: 1.5rem !important;
  }

  /* Touch-friendly buttons */
  .btn,
  button,
  input[type="submit"] {
    min-height: 44px;
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem;
  }

  .btn.small {
    min-height: 38px;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem;
  }

  /* Form inputs - touch friendly */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    min-height: 44px;
    padding: 0.75rem !important;
    font-size: 16px !important;
    /* Prevents zoom on iOS */
  }

  /* Navigation improvements */
  .nav-links a {
    padding: 1rem 0.5rem !important;
    font-size: 1rem;
  }

  /* Dropdown menus - full width on mobile */
  .dropdown {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  /* Footer - stack columns */
  .foot {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }

  .social {
    justify-content: center !important;
  }

  /* Tables - make scrollable */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Two-column layouts become single column */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.2fr .8fr"] {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Reverse order for map on mobile (map on top) */
  [style*="order:1"] {
    order: 1 !important;
  }

  [style*="order:2"] {
    order: 2 !important;
  }

  /* Reduce excessive spacing */
  .section {
    padding: 2rem 0 !important;
  }

  /* Make images responsive */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Compact notice cards */
  .notice-card img {
    height: 120px !important;
  }

  /* Better modal/popup sizing */
  .modal,
  .popup {
    width: 95% !important;
    max-width: 95% !important;
    margin: 1rem auto !important;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {

  /* Even more compact spacing */
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.35rem !important;
  }

  /* Stack flex layouts */
  [style*="display:flex"][style*="gap"] {
    flex-wrap: wrap !important;
  }

  /* Full-width buttons on very small screens */
  .btn:not(.small) {
    width: 100%;
    justify-content: center;
  }

  /* Compact hero */
  .hero-slide {
    min-height: 400px !important;
  }

  /* Reduce card gaps */
  .svc-grid,
  .cards,
  .news-grid {
    gap: 0.75rem !important;
  }

  /* Make search forms stack */
  form[style*="display:flex"] {
    flex-direction: column !important;
  }

  form[style*="display:flex"]>div {
    width: 100% !important;
    min-width: 100% !important;
  }

  /* Sticky elements - better positioning */
  .sticky-action {
    bottom: 1rem !important;
    right: 1rem !important;
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
    opacity: 0.85;
  }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-slide {
    min-height: 300px !important;
  }

  .page-hero {
    padding: 1.5rem 0 !important;
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Two-column grids for tablets */
  .svc-grid,
  .cards,
  .news-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .container {
    padding: 0 2rem;
  }
}

/* Touch device optimizations (any touch-enabled device) */
@media (hover: none) and (pointer: coarse) {

  /* Larger tap targets */
  a,
  button,
  .btn,
  input,
  select {
    min-height: 44px;
  }

  /* Remove hover effects on touch devices */
  .hover:hover {
    transform: none !important;
  }

  /* Better focus states for accessibility */
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
  }
}

/* ---------------------------
   Forms & Inputs (International Standard)
   Added 2026-01-03
---------------------------- */
.field {
  margin-bottom: 1.5rem;
  display: block;
  position: relative;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

/* Modern Input Style */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #cbd5e1;
  /* slate-300 */
  border-radius: 0.6rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
  /* remove native styling */
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 0 0 4px var(--ring);
}

/* Disabled / Readonly state */
input:disabled,
input[readonly] {
  background-color: #f8fafc;
  /* slate-50 */
  color: #64748b;
  /* slate-500 */
  cursor: not-allowed;
  border-color: #e2e8f0;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Select specific */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* File Input Styling (Webkit) */
input[type="file"] {
  padding: 0.5rem;
  /* slightly less padding for file input container */
}

input[type="file"]::file-selector-button {
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  border-radius: 0.4rem;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
  background: #e2e8f0;
}

/* Helper text */
.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Form Sections / Grid */
.form-section {
  background: #fff;
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem;
}

.form-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Auth Pages (Login/Register) Container */
.auth-container {
  max-width: 460px;
  margin: 6rem auto 8rem;
  padding: 0 1rem;
}

.auth-card {
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid #f8fafc;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  /* Brand color specific */
}

.auth-header p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

/* Dynamic Row Items (Education/Experience) */
.row-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.2s;
}

.row-item:hover {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.row-item .remove-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #ef4444;
  background: #fee2e2;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: all 0.2s;
}

.row-item .remove-btn:hover {
  background: #ef4444;
  color: #fff;
  transform: rotate(90deg);
}

/* ---------------------------
   Global Modern Header (Hero-less)
---------------------------- */
.page-header-modern {
  padding: 4rem 1rem 2rem;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header-modern h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.page-header-modern .lead-text {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.events-search-form {
  max-width: 500px;
  margin: 0 auto;
}

.search-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.search-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

.search-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.search-reset {
  font-size: 0.9rem;
}

.text-link {
  color: var(--muted);
  text-decoration: underline;
}

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

/* Enhanced Event Card Interactivity */
.event-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.event-card h3 {
  transition: color 0.2s;
}

.event-card:hover h3 {
  color: var(--brand);
}

/* ---------------------------
   Services Page Redesign
---------------------------- */
/* ---------------------------
   Services Page Redesign (News-Style)
---------------------------- */
.svc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .svc-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .svc-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ================= PREMIUM SERVICES REDESIGN ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card-premium {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
}

/* Subtle decorative background */
.svc-card-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: hsla(var(--accent-hue), 80%, 60%, 0.03);
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: all 0.6s ease;
  z-index: 0;
}

.service-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12),
    0 18px 36px -18px hsla(var(--accent-hue), 80%, 40%, 0.2);
  border-color: hsla(var(--accent-hue), 80%, 40%, 0.1);
}

.service-card-premium:hover .svc-card-bg {
  width: 250px;
  height: 250px;
  background: hsla(var(--accent-hue), 80%, 60%, 0.06);
  transform: translate(20%, -20%);
}

.svc-icon-container {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: hsla(var(--accent-hue), 85%, 96%, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.svc-icon-inner {
  font-size: 1.75rem;
  font-weight: 800;
  color: hsla(var(--accent-hue), 85%, 40%, 1);
  transition: all 0.4s ease;
}

.service-card-premium:hover .svc-icon-container {
  background: hsla(var(--accent-hue), 85%, 50%, 1);
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 10px 20px -5px hsla(var(--accent-hue), 85%, 50%, 0.4);
}

.service-card-premium:hover .svc-icon-inner {
  color: #fff;
  transform: scale(1.1);
}

.svc-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.svc-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.svc-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svc-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.svc-link-text {
  position: relative;
}

.svc-link-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: hsla(var(--accent-hue), 85%, 50%, 1);
  transition: width 0.3s ease;
}

.svc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #475569;
}

.svc-arrow svg {
  width: 18px;
  height: 18px;
}

.service-card-premium:hover .svc-footer {
  color: hsla(var(--accent-hue), 85%, 40%, 1);
}

.service-card-premium:hover .svc-link-text::after {
  width: 100%;
}

.service-card-premium:hover .svc-arrow {
  background: hsla(var(--accent-hue), 85%, 50%, 1);
  color: #fff;
  transform: translateX(8px);
}

/* ================= LEADERSHIP REDESIGN ================= */
#leadership {
  padding: 6rem 0;
  background-color: #fff;
}

#leadership h2 {
  margin-bottom: 4rem;
}

.person-card {
  background: #fff;
  border: none;
  /* Remove old border */
  border-radius: 8px;
  /* Slightly softer corners */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  /* Subtle shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  /* For image scaling */
  height: 100%;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  /* Premium lift */
}

/* Photo Area */
.person-photo {
  width: 100%;
  margin: 0;
  aspect-ratio: 1 / 1;
  /* Force square for consistency */
  background: #f1f5f9;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.person-card:hover .person-photo img {
  transform: scale(1.03);
  /* Subtle zoom */
}

.person-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--muted);
  font-weight: 200;
}

/* Content Area */
.person-meta {
  padding: 1.5rem;
  text-align: center;
}

/* Typography */
.person-name {
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--brand-color);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.person-title {
  font-size: 0.9rem;
  color: #64748b;
  /* Elegant slate grey */
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

/* Button override */
.person-meta .profile-btn {
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 4px;
  transition: all 0.2s;
}

.person-meta .profile-btn:hover {
  border-color: var(--brand-color);
  color: var(--brand-color);
  background: #f8fafc;
}

/* Override for Org Chart Root to fit new style */
.org-card-wrapper.root-card .person-card {
  /* Keep the border highlight for Chairman but merge shadow styles */
  border: 1px solid var(--brand-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.org-card-wrapper.root-card .person-meta {
  text-align: left;
  /* Chairman info left aligned on desktop per previous rule, confirm inheritance */
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .org-card-wrapper.root-card .person-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .org-card-wrapper.root-card .person-title {
    font-size: 1.1rem;
  }
}


/* --- LEAD SECTION --- */
.section-lead {
  padding: 6rem 0;
  background: #fff;
}

.container-narrow {
  max-width: 800px;
  /* Focus the reading experience */
  margin: 0 auto;
}

.lead-prose {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #334155;
}

.lead-prose p {
  margin-bottom: 1.5rem;
}

/* --- VISION BANNER --- */
.section-vision {
  background-color: #005f40 !important;
  /* Force fallback */
  background: var(--brand-color);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.section-vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
  pointer-events: none;
}

.section-vision h2 {
  color: #fff;
  margin-bottom: 2rem;
  font-weight: 700;
}

.vision-statement {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.95;
  font-family: serif;
  /* Classy touch if available, falls back gracefully */
  font-style: italic;
}

/* --- FUNCTION GRID --- */
.section-functions {
  padding: 6rem 0;
  background: #f8fafc;
  /* Surface color */
}

.function-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

@media (min-width: 768px) {
  .function-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
  }
}

.func-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.func-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: #e0f2fe;
  /* Light blue tint */
  color: var(--brand-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.func-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.func-text {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  padding-top: 0.25rem;
}

/* ================= ORG CHART HIERARCHY ================= */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

/* --- ROOT (Chairman) --- */
.org-root {
  position: relative;
  padding-bottom: 2rem;
  /* Space for trunk line */
  z-index: 2;
}

/* Trunk Line (Down from Chairman) */
.org-root::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 2rem;
  background-color: var(--border-color, #cbd5e1);
  transform: translateX(-50%);
}

.org-card-wrapper.root-card .person-card {
  border: 2px solid var(--brand-color);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

/* Desktop layout for Root Card: Photo Left, Info Right */
@media (min-width: 768px) {
  .org-card-wrapper.root-card .person-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0;
    overflow: hidden;
  }

  .org-card-wrapper.root-card .person-photo {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    margin: 0;
  }

  .org-card-wrapper.root-card .person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .org-card-wrapper.root-card .person-meta {
    padding: 2rem;
  }
}

/* --- BRANCHES (Members) --- */
.org-branches {
  position: relative;
  width: 100%;
}

/* The Connector Bar (Horizontal) */
/* We draw this on the .org-branches container using a pseudo-element. 
   It needs to span from the center of the first child to the center of the last child.
   This is tricky with CSS Grid. 
   
   Simplified visual approach: A border-top on the container with some margin.
*/

.org-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  /* Inset to avoid spanning full width if not needed, approx */
  right: 10%;
  height: 2px;
  background-color: var(--border-color, #cbd5e1);
  display: none;
  /* See media query */
}


/* Make grid items align for tree view */
.org-grid {
  display: flex;
  /* Use Flexbox for easier centering of variable items */
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
  /* Space below the horizontal bar */
  position: relative;
}

/* Line connectors for branches (Desktop only) */
@media (min-width: 768px) {
  .org-branches::before {
    display: block;
    /* Refine span: we want it to sit exactly atop the grid area. 
           Since Flexbox centers, a width of ~80% usually looks "connected". 
        */
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Vertical line UP from each member card to the horizontal bar */
  .org-card-wrapper {
    position: relative;
  }

  .org-card-wrapper::before {
    content: '';
    position: absolute;
    top: -2rem;
    /* Reach up to the bar */
    left: 50%;
    width: 2px;
    height: 2rem;
    background-color: var(--border-color, #cbd5e1);
    transform: translateX(-50%);
  }

  /* Make the root trunk connect to the branch bar */
  .org-root {
    padding-bottom: 0;
    /* Remove padding, line connects directly to next container top */
    margin-bottom: 2rem;
    /* Physical space matches the line height we'll simulate */
  }

  .org-root::after {
    height: 2rem;
    /* Line length */
    bottom: -2rem;
    /* Push it down into the gap */
  }
}

/* Styling the cards to be compact and classy */
.org-card-wrapper .person-card {
  height: 100%;
  /* Ensure uniform height */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.org-card-wrapper:hover .person-card {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

  /* --- Forms (Registration/Login) --- */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  select,
  textarea,
  .form-control {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* --- Typography Scaling --- */
  h1,
  .display-title {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  h2,
  .h2-underline {
    font-size: 1.75rem !important;
    margin-bottom: 2rem;
  }

  .lead-text {
    font-size: 1.1rem !important;
  }

  .lead-prose {
    font-size: 1.05rem !important;
  }

  /* --- Spacing Reduction --- */
  .section,
  #leadership,
  .section-lead,
  .section-vision,
  .section-functions {
    padding: 3rem 0 !important;
  }

  /* --- Hide Icons on Mobile & Reduce Padding --- */
  .svc-icon-box {
    display: none !important;
  }

  .service-card-modern {
    padding: 1rem !important;
  }

  /* --- Grids --- */
  .function-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .people-grid {
    grid-template-columns: 1fr !important;
    /* Stack people cards one per row */
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- Leadership / Org Chart Mobile --- */
  .org-chart {
    margin-bottom: 2rem;
  }

  /* Hide complex connectors on mobile */
  .org-root::after,
  .org-branches::before,
  .org-card-wrapper::before {
    display: none !important;
  }

  /* Reset padding for root card wrapper interaction */
  .org-root {
    padding-bottom: 1rem;
  }

  .org-grid {
    gap: 1.5rem;
    padding-top: 0;
  }

  /* Ensure cards take full width but constrained */
  .org-card-wrapper,
  .func-item {
    width: 100%;
    max-width: 100%;
  }

  /*.svc-grid-3 already handles mobile via min-width 768px query in its definition*/

  /* --- Footer --- */
  .site-footer .foot {
    flex-direction: column;
    gap: 2rem;
  }

  .site-footer .foot-col {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Limit animations and transitions on mobile for performance and better UX */
@media (max-width: 900px) {

  .news-card:hover,
  .card:hover,
  .service-card:hover,
  .gallery-thumb:hover {
    transform: none !important;
    box-shadow: var(--shadow) !important;
  }

  /* Simplify transitions across the site on mobile */
  *,
  *::before,
  *::after {
    transition-duration: 0.15s !important;
  }

  .news-card img,
  .gallery-thumb img {
    transform: none !important;
    transition: none !important;
  }
}

/* ================================================================
   GOVERNING BOARD — ORGANOGRAM STYLES
   ================================================================ */

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1rem 0 3rem;
}

/* ——— Level containers ——— */
.org-level {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.org-level-top {
  z-index: 2;
}

.org-level-bridge {
  height: 0;
  z-index: 1;
  pointer-events: none;
}

.org-level-members {
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 0;
}

/* ——— Connecting lines ——— */
.org-connector-down {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--brand), #93c5fd);
  margin: 0 auto;
}

.org-connector-up {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, #93c5fd, var(--brand));
  margin: 0 auto;
}

/* Horizontal bridge bar spanning all members */
.org-h-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background: linear-gradient(to right, #93c5fd 0%, var(--brand) 50%, #93c5fd 100%);
  /* Width spans between first and last member — approximated dynamically via JS or set broadly */
  width: min(calc(var(--members, 4) * 220px - 120px), 90%);
  max-width: 960px;
}

/* ——— Individual node ——— */
.org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  flex-shrink: 0;
}

.org-node-chairman {
  width: auto;
}

/* ——— Cards ——— */
.org-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(30, 91, 184, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 2px solid var(--brand);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  min-width: 240px;
  max-width: 300px;
  cursor: default;
}

.org-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 91, 184, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Chairman gets gold top accent + larger size */
.org-card:not(.org-card-member) {
  border-color: var(--gold);
  background: linear-gradient(160deg, #fff 70%, rgba(207, 181, 59, 0.06) 100%);
  min-width: 280px;
  max-width: 340px;
}

.org-card:not(.org-card-member)::before {
  content: '★ Chairman';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #5c4000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.org-card-member {
  border-color: #93c5fd;
  min-width: 190px;
  max-width: 220px;
  padding: 1.25rem 1rem 1rem;
}

/* ——— Photo ——— */
.org-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--brand);
  box-shadow: 0 6px 24px rgba(30, 91, 184, 0.3);
}

.org-card-member .org-photo {
  width: 160px;
  height: 160px;
}

.org-avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #2563eb);
  color: #fff;
  font-size: 4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--brand);
  box-shadow: 0 6px 24px rgba(30, 91, 184, 0.3);
}

.org-card-member .org-avatar-placeholder {
  width: 160px;
  height: 160px;
  font-size: 3.5rem;
}

/* ——— Text ——— */
.org-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.org-card-member .org-name {
  font-size: 0.95rem;
}

.org-title {
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 600;
  line-height: 1.3;
}

.org-bio {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 24ch;
}

/* ——— Responsive: collapse to vertical list on mobile ——— */
@media (max-width: 768px) {
  .org-level-members {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .org-node {
    width: 100%;
    max-width: 300px;
  }

  .org-h-line {
    display: none;
  }

  .org-connector-up {
    height: 24px;
  }

  .org-connector-down {
    height: 24px;
  }

  .org-card,
  .org-card-member {
    min-width: 240px;
    max-width: 300px;
    width: 100%;
  }
}

/* ================================================================
   ENGAGEMENT & ANIMATION UTILITIES
   ================================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  width: 0%;
  z-index: 99999;
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Never leave sections invisible on slow/no-JS or reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   IMPACT STATS (PREMIUM STYLING)
   ================================================================ */
.stats-section {
  background: linear-gradient(135deg, #0f1b38 0%, #1e5bb8 100%);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(to bottom right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bfdbfe;
}