/* School Website — Public Design System */
:root {
  --sw-font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --sw-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sw-ink: #172331;
  --sw-ink-soft: #465568;
  --sw-primary: #0e2a43;
  --sw-primary-dark: #081c2d;
  --sw-accent: #d9a441;
  --sw-teal: #087f8c;
  --sw-teal-dark: #05616b;
  --sw-bg: #f6f8fa;
  --sw-surface: #ffffff;
  --sw-border: #d9e1e8;
  --sw-border-strong: #bdcbd7;
  --sw-text: #172331;
  --sw-text-muted: #687889;
  --sw-radius: 0.25rem;
  --sw-radius-lg: 0.5rem;
  --sw-shadow: 0 2px 8px rgba(14, 42, 67, 0.07);
  --sw-shadow-lg: 0 12px 32px rgba(14, 42, 67, 0.14);
  --sw-header-bg: #0e2a43;
  --sw-header-text: #ffffff;
  --sw-nav-height: 3.8rem;
  --sw-space-1: 0.25rem;
  --sw-space-2: 0.5rem;
  --sw-space-3: 0.75rem;
  --sw-space-4: 1rem;
  --sw-space-6: 1.5rem;
  --sw-space-8: 2rem;
  --sw-content-max: 76rem;
}

[data-theme="dark"] {
  --sw-bg: #0f172a;
  --sw-surface: #1e293b;
  --sw-text: #e2e8f0;
  --sw-text-muted: #94a3b8;
  --sw-border: #334155;
  --sw-header-bg: #020617;
}

[data-theme="greyscale"] {
  --sw-primary: #444;
  --sw-primary-dark: #222;
  --sw-accent: #777;
  --sw-header-bg: #333;
  filter: grayscale(1);
}

[data-theme="high-contrast"] {
  --sw-primary: #000;
  --sw-primary-dark: #000;
  --sw-accent: #ff0;
  --sw-bg: #fff;
  --sw-surface: #fff;
  --sw-text: #000;
  --sw-text-muted: #000;
  --sw-border: #000;
  --sw-header-bg: #000;
}

[data-text-size="small"] { font-size: 87.5%; }
[data-text-size="medium"] { font-size: 100%; }
[data-text-size="large"] { font-size: 112.5%; }

@media (prefers-reduced-motion: reduce), [data-reduce-motion="true"] {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  overflow-x: clip;
  max-width: 100vw;
}

body.public-site {
  font-family: var(--sw-font-sans);
  background: var(--sw-bg);
  color: var(--sw-text);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100vw;
}

.public-site h1, .public-site h2, .public-site h3 {
  font-family: var(--sw-font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--sw-text);
}

.sw-container {
  width: 100%;
  max-width: var(--sw-content-max);
  margin-inline: auto;
  padding-inline: var(--sw-space-4);
}

/* Header */
.sw-topbar {
  background: var(--sw-primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 0.8125rem;
  padding: 0.35rem 0;
}
.sw-topbar a { color: inherit; text-decoration: none; }
.sw-topbar a:hover { color: #fff; text-decoration: underline; }

.sw-header {
  background: var(--sw-header-bg);
  color: var(--sw-header-text);
  border-bottom: 3px solid var(--sw-accent);
  position: relative;
  z-index: 100;
}
.sw-brand {
  display: flex;
  align-items: center;
  gap: var(--sw-space-3);
  text-decoration: none;
  color: inherit;
}
.sw-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
}
.sw-brand-name {
  font-family: var(--sw-font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}
.sw-brand-tagline {
  font-size: 0.75rem;
  opacity: 0.8;
  font-family: var(--sw-font-sans);
}

/* Primary nav styles are consolidated in the PRIMARY NAVIGATION section below */

/* Mega menu panel */
.sw-mega {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 520px;
  max-width: 720px;
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  border: 1px solid var(--sw-border);
  padding: var(--sw-space-4);
  display: none;
  z-index: 1040;
}
.sw-mega.is-open { display: block; }
.sw-mega-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sw-space-4);
}
.sw-mega-col-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sw-text-muted);
  margin-bottom: var(--sw-space-2);
  font-weight: 600;
  border-bottom: 1px solid var(--sw-border);
  padding-bottom: 0.35rem;
}
.sw-mega a {
  display: block;
  padding: 0.4rem 0;
  color: var(--sw-text);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 0.25rem;
}
.sw-mega a:hover, .sw-mega a:focus-visible {
  color: var(--sw-primary);
  background: rgba(11,61,92,.06);
  outline: none;
}
.sw-mega a.is-highlighted { font-weight: 600; color: var(--sw-primary); }

/* Mobile nav */
.sw-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 0.35rem;
}
/* Mobile navigation and modal rules are consolidated in RESPONSIVE section */

/* Cards */
.sw-card {
  background: var(--sw-surface);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  overflow: hidden;
  height: 100%;
}
.sw-card-body { padding: var(--sw-space-4); }
.sw-card-meta { font-size: 0.8rem; color: var(--sw-text-muted); }

/* Hero */
.sw-hero {
  background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
  color: #fff;
  padding: var(--sw-space-8) 0;
  border-bottom: 3px solid var(--sw-accent);
}
.sw-hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.sw-hero p { opacity: 0.9; max-width: 40rem; }

/* Section */
.sw-section { padding: var(--sw-space-8) 0; }
.sw-section-title {
  font-size: 1.5rem;
  margin-bottom: var(--sw-space-4);
  padding-bottom: var(--sw-space-2);
  border-bottom: 2px solid var(--sw-accent);
  display: inline-block;
}

/* Footer */
.sw-footer {
  background: var(--sw-primary-dark);
  color: rgba(255,255,255,.85);
  padding: var(--sw-space-8) 0 var(--sw-space-4);
  margin-top: auto;
  font-size: 0.9rem;
}
.sw-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.sw-footer a:hover { color: #fff; text-decoration: underline; }
.sw-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sw-space-3);
  font-family: var(--sw-font-sans);
}
.sw-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: var(--sw-space-6);
  padding-top: var(--sw-space-4);
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Accessibility panel */
.sw-a11y-panel {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1050;
}
.sw-a11y-toggle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--sw-primary);
  color: #fff;
  border: 2px solid var(--sw-accent);
  box-shadow: var(--sw-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
}
.sw-a11y-toggle:focus-visible { outline: 2px solid var(--sw-accent); outline-offset: 2px; }
.sw-a11y-menu {
  display: none;
  position: absolute;
  bottom: 3.5rem;
  right: 0;
  background: var(--sw-surface);
  color: var(--sw-text);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  padding: var(--sw-space-4);
  min-width: 240px;
}
.sw-a11y-menu.is-open { display: block; }
.sw-a11y-menu fieldset {
  border: none;
  margin: 0 0 var(--sw-space-3);
  padding: 0;
}
.sw-a11y-menu legend {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--sw-text-muted);
}
.sw-a11y-menu label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  cursor: pointer;
}

/* Breadcrumb */
.sw-breadcrumb {
  font-size: 0.875rem;
  padding: var(--sw-space-3) 0;
}
.sw-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.sw-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--sw-text-muted);
}
.sw-breadcrumb a { color: var(--sw-primary); text-decoration: none; }
.sw-breadcrumb a:hover { text-decoration: underline; }

/* Buttons */
.btn-sw-primary {
  background: var(--sw-primary);
  border-color: var(--sw-primary);
  color: #fff;
}
.btn-sw-primary:hover { background: var(--sw-primary-dark); border-color: var(--sw-primary-dark); color: #fff; }

/* Skip link navigation */
.sw-skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.65rem 1.25rem;
  background: var(--tenant-accent, var(--sw-accent));
  color: #172331;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-lg);
  transition: top 0.15s ease-out;
}
.sw-skip-link:focus {
  top: 1rem;
  outline: 3px solid #172331;
  outline-offset: 2px;
}

/* Tables */
.sw-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--sw-space-4);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-surface);
  box-shadow: var(--sw-shadow);
}
.sw-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  color: var(--sw-text);
  font-size: 0.9375rem;
}
.sw-table th,
.sw-table td {
  padding: 0.85rem 1.15rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--sw-border);
}
.sw-table th {
  background: #f1f5f8;
  color: var(--sw-ink);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--sw-border-strong);
  white-space: nowrap;
}
.sw-table tbody tr:last-child td {
  border-bottom: 0;
}
.sw-table tbody tr:hover {
  background: rgba(14, 42, 67, 0.025);
}
.sw-table-striped tbody tr:nth-of-type(odd) {
  background: rgba(246, 248, 250, 0.7);
}
.sw-table-striped tbody tr:nth-of-type(odd):hover {
  background: rgba(14, 42, 67, 0.035);
}
.sw-table caption {
  padding: 0.75rem 1.15rem;
  font-size: 0.8125rem;
  color: var(--sw-text-muted);
  caption-side: bottom;
}

/* Pagination */
.sw-pagination,
.public-site .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.public-site .page-item {
  margin: 0;
}
.public-site .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sw-ink);
  background: var(--sw-surface);
  border: 1px solid var(--sw-border-strong);
  border-radius: var(--sw-radius);
  text-decoration: none;
  transition: all 0.15s ease;
}
.public-site .page-link:hover {
  background: #edf3f6;
  border-color: var(--tenant-primary, var(--sw-teal));
  color: var(--tenant-primary, var(--sw-teal-dark));
}
.public-site .page-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(217,164,65,.7);
  border-color: var(--sw-accent);
}
.public-site .page-item.active .page-link,
.public-site .page-item.active span.page-link {
  background: var(--tenant-primary, var(--sw-primary));
  border-color: var(--tenant-primary, var(--sw-primary));
  color: #fff;
  cursor: default;
}
.public-site .page-item.disabled .page-link,
.public-site .page-item.disabled span.page-link {
  color: var(--sw-text-muted);
  background: #f8fafb;
  border-color: var(--sw-border);
  cursor: not-allowed;
  opacity: 0.65;
}

/* Prose Typography (Rich text CMS content) */
.sw-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--sw-text);
  max-width: 68ch;
}
.sw-prose p {
  margin-top: 0;
  margin-bottom: 1.4rem;
}
.sw-prose h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--sw-border);
}
.sw-prose h3 {
  font-size: 1.25rem;
  margin-top: 1.85rem;
  margin-bottom: 0.75rem;
}
.sw-prose h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}
.sw-prose ul,
.sw-prose ol {
  margin-top: 0;
  margin-bottom: 1.4rem;
  padding-left: 1.6rem;
}
.sw-prose li {
  margin-bottom: 0.45rem;
}
.sw-prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--tenant-accent, var(--sw-accent));
  background: rgba(14, 42, 67, 0.03);
  border-radius: 0 var(--sw-radius) var(--sw-radius) 0;
  font-style: italic;
  color: var(--sw-ink);
}
.sw-prose blockquote p:last-child {
  margin-bottom: 0;
}
.sw-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--sw-radius);
  border: 1px solid var(--sw-border);
  margin: 1.5rem 0;
}
.sw-prose a {
  color: var(--tenant-primary-hover, var(--sw-teal-dark));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sw-prose a:hover {
  color: var(--tenant-primary, var(--sw-primary));
}
.sw-prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--sw-border);
}

/* Badges */
.sw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--sw-radius);
  letter-spacing: 0.03em;
  white-space: nowrap;
  vertical-align: middle;
}
.sw-badge-primary {
  background: var(--tenant-primary, var(--sw-primary));
  color: #fff;
}
.sw-badge-accent {
  background: var(--tenant-accent, var(--sw-accent));
  color: #172331;
}
.sw-badge-muted {
  background: #e9eef2;
  color: var(--sw-ink-soft);
  border: 1px solid var(--sw-border);
}
.sw-badge-success {
  background: #e3f5e9;
  color: #0f4e2f;
  border: 1px solid #b7e3c4;
}
.sw-badge-warning {
  background: #fff6e0;
  color: #6a4f08;
  border: 1px solid #fae29f;
}
.sw-badge-danger {
  background: #fde8e8;
  color: #781c24;
  border: 1px solid #f8b4b4;
}

/* Alerts & Notices */
.sw-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--sw-radius);
  border: 1px solid var(--sw-border);
  border-left-width: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.sw-alert i {
  font-size: 1.25rem;
  flex: 0 0 auto;
  line-height: 1.2;
}
.sw-alert-info {
  background: #f0f7f9;
  border-color: #c7e1e7;
  border-left-color: var(--sw-teal);
  color: #0d464f;
}
.sw-alert-info i { color: var(--sw-teal); }
.sw-alert-warning {
  background: #fff9ee;
  border-color: #f7e3b8;
  border-left-color: var(--sw-accent);
  color: #5c4308;
}
.sw-alert-warning i { color: var(--sw-accent); }
.sw-alert-danger {
  background: #fdf2f2;
  border-color: #f8c8c8;
  border-left-color: #dc3545;
  color: #6a1a24;
}
.sw-alert-danger i { color: #dc3545; }
.sw-alert-success {
  background: #f0f9f4;
  border-color: #c4ebd4;
  border-left-color: #198754;
  color: #0f4e2f;
}
.sw-alert-success i { color: #198754; }

/* Empty States */
.sw-empty {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--sw-border-strong);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-surface);
  text-align: center;
  color: var(--sw-text-muted);
}
.sw-empty-icon {
  font-size: 2.5rem;
  color: var(--sw-border-strong);
  margin-bottom: 0.85rem;
  display: inline-flex;
}
.sw-empty-title {
  font-family: var(--sw-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sw-text);
  margin-bottom: 0.35rem;
}
.sw-empty-text {
  font-size: 0.9375rem;
  color: var(--sw-text-muted);
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}

/* Stack & Cluster Utilities */
.sw-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--sw-stack-gap, var(--sw-space-4));
}
.sw-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sw-cluster-gap, var(--sw-space-3));
}
.sw-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =============================================================
   UTILITY TOPBAR — PCCB Institutional Style
   ============================================================= */
.sw-topbar {
  background: #111827;
  color: #d1d5db;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sw-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}
.sw-topbar-start,
.sw-topbar-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

/* Contact & Location Pill Badges (PCCB reference) */
.sw-topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: #e5e7eb;
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.sw-topbar-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.sw-topbar-pill .bi {
  color: var(--sw-accent, #fcd116);
  font-size: 0.8rem;
}

/* Right-side utility links */
.sw-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  background: transparent;
  border: 0;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.sw-topbar-link:hover { color: #ffffff; }
.sw-topbar-link .bi { color: var(--sw-accent, #fcd116); font-size: 0.82rem; }
.sw-topbar-link:focus-visible,
.sw-topbar-pill:focus-visible {
  outline: 2px solid rgba(252, 209, 22, 0.8);
  outline-offset: 2px;
  border-radius: 9999px;
}

/* Mobile hamburger in topbar */
.sw-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--sw-radius, 6px);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.sw-mobile-toggle:hover { background: rgba(255, 255, 255, 0.2); }
.sw-mobile-toggle:focus-visible {
  outline: 2px solid var(--sw-accent, #fcd116);
  outline-offset: 2px;
}

/* =============================================================
   INSTITUTIONAL HEADER — Realistic Waving Tanzanian Flag Canvas
   ============================================================= */
.sw-header {
  position: relative;
  z-index: 100;
  overflow: hidden;
  padding: 0.65rem 0;
  background: rgba(13, 32, 48, var(--header-bg-opacity, 0.92));
  border-bottom: 2px solid #000000;
}

/* Realistic waving flag fabric animation canvas */
.sw-header-flag-canvas {
  /* Controlled by Website Settings → Flag background opacity (inline --flag-opacity). */
  position: absolute;
  inset: -12% -8%;
  width: 116%;
  height: 124%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: var(--flag-opacity, 0.6);
}

/* Base Tanzanian flag diagonal geometry */
.sw-header-flag-cloth {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    #1eb53a 0%, #1eb53a 36%, 
    #fcd116 36%, #fcd116 40%, 
    #000000 40%, #000000 60%, 
    #fcd116 60%, #fcd116 64%, 
    #00a3dd 64%, #00a3dd 100%
  );
  filter: saturate(1.15) brightness(0.98);
}

/* Waving fabric ripples & cloth folds (highlights & shadows traveling across cloth) */
.sw-header-flag-ripples {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    108deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 8%,
    rgba(0, 0, 0, 0.28) 16%,
    rgba(255, 255, 255, 0.22) 24%,
    rgba(0, 0, 0, 0.32) 32%,
    rgba(255, 255, 255, 0.16) 40%,
    rgba(255, 255, 255, 0) 48%
  );
  background-size: 200% 200%;
  mix-blend-mode: overlay;
  animation: flagFabricWave 8.5s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

/* Subtle wind sheen and fabric breath */
.sw-header-flag-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 65% at 45% 50%,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(0, 0, 0, 0.15) 55%,
    rgba(0, 0, 0, 0.42) 100%
  );
  mix-blend-mode: soft-light;
  animation: flagWindBreath 5.5s ease-in-out infinite alternate;
}

@keyframes flagFabricWave {
  0% {
    background-position: 0% 40%;
    transform: scale(1.02) skewY(-0.35deg);
  }
  50% {
    background-position: 100% 60%;
    transform: scale(1.03) skewY(0.35deg);
  }
  100% {
    background-position: 0% 40%;
    transform: scale(1.02) skewY(-0.35deg);
  }
}

@keyframes flagWindBreath {
  0% {
    opacity: 0.65;
    transform: translateY(-2px);
  }
  100% {
    opacity: 0.95;
    transform: translateY(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-header-flag-ripples,
  .sw-header-flag-sheen {
    animation: none !important;
  }
}

.sw-header-container {
  position: relative;
  z-index: 2;
}

/* White floating card — slight opacity so flag canvas shows through */
.sw-header-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, var(--header-card-opacity, 0.6));
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  padding: 0.65rem 1.25rem;
  backdrop-filter: blur(2px);
}

.sw-header-identity-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}
.sw-header-identity-wrap:hover { color: inherit; opacity: 0.98; }
.sw-header-identity-wrap:focus-visible {
  outline: 2px solid #0f4c81;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Emblem cards: modest radius only — NEVER circular (no border-radius: 50%) */
.sw-header-crest-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  overflow: hidden;
}
.sw-crest-img {
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: contain; /* full logo visible — no circular crop */
  border-radius: 4px;
  display: block;
  background: transparent;
}
.sw-crest-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--tenant-primary, #0f4c81);
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sw-crest-placeholder--school {
  background: var(--tenant-primary, #0b6834);
}

/* Centered Typography Hierarchy (PCCB reference) */
.sw-header-identity-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.15rem;
  padding: 0 0.75rem;
}
.sw-header-org-name {
  font-family: var(--sw-font-sans);
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #0f4c81;
  line-height: 1.25;
}
/* National Flag Color Line between Upper Org and School Name */
.sw-header-flag-divider {
  display: block;
  width: 7.5rem;
  max-width: 100%;
  height: 3px;
  border-radius: 2px;
  margin: 0.25rem auto;
  background: linear-gradient(90deg, 
    #1eb53a 0%, #1eb53a 30%, 
    #fcd116 30%, #fcd116 38%, 
    #000000 38%, #000000 62%, 
    #fcd116 62%, #fcd116 70%, 
    #00a3dd 70%, #00a3dd 100%
  );
}
.sw-header-school-name {
  font-family: var(--sw-font-sans);
  font-size: clamp(0.82rem, 1.6vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111827;
  line-height: 1.25;
}

/* Dark / high-contrast theme overrides */
[data-theme="dark"] .sw-header { background: #0f172a; border-bottom-color: #334155; }
[data-theme="dark"] .sw-header-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .sw-header-crest-card { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .sw-header-org-name { color: #38bdf8; }
[data-theme="dark"] .sw-header-school-name { color: #f1f5f9; }
[data-theme="high-contrast"] .sw-header-card { border: 2px solid #000; }
[data-theme="high-contrast"] .sw-header-org-name { color: #000; }
[data-theme="high-contrast"] .sw-header-school-name { color: #000; }

/* Legacy fallbacks */
.sw-brand { color: var(--sw-text); }
.sw-brand:hover { color: var(--sw-text); }
.sw-brand-logo { width: 3.25rem; height: 3.25rem; border-radius: var(--sw-radius); }
.sw-brand-name { font-size: clamp(1.1rem, 2vw, 1.45rem); }
.sw-organization-lockup { display: inline-flex; align-items: center; gap: .55rem; color: var(--sw-text-muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; }

/* =============================================================
   PRIMARY NAVIGATION — PCCB Clean White Portal Navigation
   Sticky on scroll, green active indicator, accessible dropdowns
   ============================================================= */
.sw-primary-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 3.5rem;
  background: #ffffff;
  border-bottom: 2px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}
.sw-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap; /* no hard limit on number of nav items */
  flex: 1 1 auto;
  min-width: 0;
}
.sw-primary-nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.sw-nav-desktop .sw-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.sw-nav-more {
  position: relative;
}
.sw-nav-more-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 14rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #009639;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 12px 28px rgba(15, 40, 70, 0.12);
  z-index: 1040;
  padding: 0.35rem 0;
}
.sw-nav-more:hover > .sw-nav-more-menu,
.sw-nav-more:focus-within > .sw-nav-more-menu,
.sw-nav-more.is-open > .sw-nav-more-menu {
  display: block;
}
.sw-nav-more-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.sw-nav-more-menu a:hover {
  background: #f8fafc;
  color: #009639;
}
.sw-nav-item {
  position: relative;
}
.sw-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2937;
  font-family: var(--sw-font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.sw-nav-link:hover {
  color: #009639;
  background: #f8fafc;
  outline: 0;
}
.sw-nav-link:focus-visible {
  outline: 2px solid #009639;
  outline-offset: -2px;
}

/* Active indicator: clean green text + 3px indicator line at bottom */
.sw-nav-link.is-active {
  color: #009639 !important;
  font-weight: 700;
}
.sw-nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 3px;
  background: #009639;
  border-radius: 3px 3px 0 0;
}

.sw-nav-chevron {
  font-size: 0.68rem;
  color: #64748b;
  transition: transform 0.2s ease, color 0.15s ease;
  margin-left: 0.2rem;
}
.sw-has-dropdown:hover > .sw-nav-link .sw-nav-chevron,
.sw-nav-link[aria-expanded="true"] .sw-nav-chevron {
  transform: rotate(180deg);
  color: #009639;
}
.sw-has-dropdown:hover > .sw-nav-link {
  color: #009639;
}

/* Dropdown Menus (PCCB reference: Kuhusu Sisi dropdown) */
.sw-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #009639;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 6px 12px -4px rgba(0, 0, 0, 0.06);
  padding: 0.4rem 0;
  margin: 0;
  list-style: none;
  z-index: 1050;
  animation: slideDown 0.18s ease;
}
@media (min-width: 992px) {
  .sw-has-dropdown:hover > .sw-dropdown-menu {
    display: block;
  }
}
.sw-dropdown-menu.is-open {
  display: block;
}
.sw-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  color: #334155;
  text-decoration: none;
  font-family: var(--sw-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
.sw-dropdown-link:hover,
.sw-dropdown-link:focus-visible {
  background: #f0fdf4;
  color: #009639;
  border-left-color: #009639;
  outline: 0;
  padding-left: 1.45rem;
}
.sw-dropdown-link.is-active {
  background: #f0fdf4;
  color: #009639;
  font-weight: 700;
  border-left-color: #009639;
}

/* Mega Menu */
.sw-mega {
  top: 100%;
  width: min(48rem, calc(100vw - 2rem));
  padding: 1.35rem;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #009639;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  color: #1f2937;
  animation: slideDown 0.18s ease;
}
.sw-mega-cols { gap: 1.5rem; }
.sw-mega-col-title {
  border-bottom: 1px solid #e5e7eb;
  color: #0f4c81;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 0.45rem;
  margin-bottom: 0.45rem;
}
.sw-mega a {
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  color: #374151;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}
.sw-mega a:hover,
.sw-mega a:focus-visible {
  background: #f0fdf4;
  color: #009639;
  outline: 0;
  padding-left: 0.85rem;
}
.sw-mega a.is-highlighted {
  color: #009639;
  font-weight: 600;
}

/* Focus styles */
.sw-nav-link:focus-visible,
.sw-dropdown-link:focus-visible {
  box-shadow: 0 0 0 2px #009639;
  outline: 0;
}

/* Dark mode for primary nav */
[data-theme="dark"] .sw-primary-nav { background: #1e293b; border-bottom-color: #334155; }
[data-theme="dark"] .sw-nav-link { color: #e2e8f0; }
[data-theme="dark"] .sw-nav-link:hover { color: #38bdf8; background: #334155; }
[data-theme="dark"] .sw-nav-link.is-active { color: #38bdf8 !important; }
[data-theme="dark"] .sw-nav-link.is-active::after { background: #38bdf8; }
[data-theme="dark"] .sw-dropdown-menu,
[data-theme="dark"] .sw-mega { background: #1e293b; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .sw-dropdown-link { color: #cbd5e1; }
[data-theme="dark"] .sw-dropdown-link:hover { background: #334155; color: #38bdf8; border-left-color: #38bdf8; }
[data-theme="dark"] .sw-mega { background: #1e293b; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .sw-dropdown-link { color: #cbd5e1; }
[data-theme="dark"] .sw-dropdown-link:hover { background: #334155; color: #38bdf8; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sw-hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: var(--sw-primary); border-bottom: 0; }
.sw-hero h1 { max-width: 48rem; color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.sw-hero p { max-width: 42rem; color: #d5e3ea; }
.sw-hero-kicker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; color: #f0c66a; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sw-hero-kicker::before { width: 2rem; height: 2px; background: var(--sw-accent); content: ""; }
.sw-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }
.sw-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.sw-section-alt { background: var(--sw-surface); border-block: 1px solid var(--sw-border); }
.sw-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.sw-section-heading h2 { margin: 0; }
.sw-section-heading p { max-width: 34rem; margin: .5rem 0 0; color: var(--sw-text-muted); }
.sw-section-title { display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; border: 0; font-size: 1.6rem; }
.sw-section-title::before { width: .28rem; height: 1.6rem; background: var(--sw-accent); content: ""; }
.sw-page-header { padding: 2.5rem 0 2rem; background: var(--sw-surface); border-bottom: 1px solid var(--sw-border); }
.sw-page-header h1 { margin: 0; }
.sw-page-header p { max-width: 42rem; margin: .65rem 0 0; color: var(--sw-text-muted); }
.sw-breadcrumb { color: var(--sw-text-muted); }
.sw-breadcrumb li:not(:last-child)::after { color: var(--sw-border-strong); }
.sw-breadcrumb a { color: var(--sw-teal-dark); }

.sw-card { border: 1px solid var(--sw-border); border-radius: var(--sw-radius-lg); background: var(--sw-surface); box-shadow: var(--sw-shadow); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.sw-card:hover { border-color: #a6c8ce; box-shadow: var(--sw-shadow-lg); transform: translateY(-2px); }
.sw-card-body { padding: 1.25rem; }
.sw-card-meta { color: var(--sw-text-muted); font-size: .78rem; }
.sw-card h2, .sw-card h3 { margin: .45rem 0 .55rem; }
.sw-card h2 a, .sw-card h3 a { color: var(--sw-text); }
.sw-card h2 a:hover, .sw-card h3 a:hover { color: var(--sw-teal-dark); }
.sw-service-card { display: flex; align-items: flex-start; gap: .85rem; color: var(--sw-text); text-decoration: none; }
.sw-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.65rem; height: 2.65rem; flex: 0 0 auto; border-radius: 50%; background: #e5f2f2; color: var(--sw-teal-dark); font-size: 1.2rem; }
.sw-service-title { font-weight: 600; }
.sw-service-arrow { margin-left: auto; color: var(--sw-teal); }
.sw-stat-strip { position: relative; z-index: 2; margin-top: -2rem; }
.sw-stat { height: 100%; padding: 1rem 1.15rem; border-left: 3px solid var(--sw-accent); background: var(--sw-surface); box-shadow: var(--sw-shadow-lg); }
.sw-stat-label { color: var(--sw-text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.sw-stat-value { display: block; color: var(--sw-primary); font-family: var(--sw-font-serif); font-size: 1.15rem; }
.sw-list-panel { border: 1px solid var(--sw-border); border-radius: var(--sw-radius-lg); background: var(--sw-surface); }
.sw-list-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--sw-border); }
.sw-list-item:last-child { border-bottom: 0; }
.sw-list-item-title { color: var(--sw-text); font-weight: 600; text-decoration: none; }
.sw-list-item-title:hover { color: var(--sw-teal-dark); }
.sw-date-block { width: 3.9rem; flex: 0 0 auto; border: 1px solid var(--sw-border); border-top: 3px solid var(--sw-teal); border-radius: var(--sw-radius); text-align: center; }
.sw-date-block-month { display: block; color: var(--sw-teal-dark); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sw-date-block-day { display: block; color: var(--sw-primary); font-family: var(--sw-font-serif); font-size: 1.4rem; line-height: 1.25; }
.sw-empty { padding: 2rem; border: 1px dashed var(--sw-border-strong); border-radius: var(--sw-radius-lg); color: var(--sw-text-muted); text-align: center; }
.public-site .btn { border-radius: var(--sw-radius); font-weight: 600; }
.btn-sw-primary { border-color: var(--sw-teal); background: var(--sw-teal); color: #fff; }
.btn-sw-primary:hover, .btn-sw-primary:focus-visible { border-color: var(--sw-teal-dark); background: var(--sw-teal-dark); color: #fff; }
.btn-sw-light { border-color: rgba(255,255,255,.45); background: #fff; color: var(--sw-primary); }
.btn-sw-light:hover, .btn-sw-light:focus-visible { border-color: #fff; background: #eaf3f4; color: var(--sw-primary); }
.public-site .form-control, .public-site .form-select { min-height: 2.8rem; border-color: var(--sw-border-strong); border-radius: var(--sw-radius); color: var(--sw-text); }
.public-site .form-control:focus, .public-site .form-select:focus { border-color: var(--sw-teal); box-shadow: 0 0 0 .2rem rgba(8,127,140,.16); }
.sw-search-panel { padding: 1.25rem; border: 1px solid var(--sw-border); border-radius: var(--sw-radius-lg); background: var(--sw-surface); box-shadow: var(--sw-shadow); }

.sw-footer {
  position: relative;
  padding: 0 0 1.5rem !important;
  background: var(--sw-primary-dark);
  color: #d2e0e7;
}

/* Full-width Tanzania National Flag Band at top edge of footer */
.sw-footer-flag-band {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, 
    #1eb53a 0%, #1eb53a 30%, 
    #fcd116 30%, #fcd116 38%, 
    #000000 38%, #000000 62%, 
    #fcd116 62%, #fcd116 70%, 
    #00a3dd 70%, #00a3dd 100%
  );
  margin-bottom: 2.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sw-footer-brand-flag-line {
  display: block;
  width: 5rem;
  height: 3px;
  border-radius: 2px;
  margin: 0.45rem 0 0.95rem 0;
  background: linear-gradient(90deg, 
    #1eb53a 0%, #1eb53a 30%, 
    #fcd116 30%, #fcd116 38%, 
    #000000 38%, #000000 62%, 
    #fcd116 62%, #fcd116 70%, 
    #00a3dd 70%, #00a3dd 100%
  );
}

.sw-footer h3 { color: #fff; font-family: var(--sw-font-sans); font-size: .78rem; letter-spacing: .1em; }
.sw-footer a { color: #d2e0e7; }
.sw-footer a:hover { color: #fff; }
.sw-footer-brand { color: #fff; font-family: var(--sw-font-serif); font-size: 1.45rem; }
.sw-footer-list { list-style: none; margin: 0; padding: 0; }
.sw-footer-list li + li { margin-top: .45rem; }

.sw-footer-bottom {
  margin-top: 2.25rem;
  padding-top: 0;
  border-top: none;
  color: #a9bbc5;
  font-size: .78rem;
}

.sw-footer-bottom-flag-line {
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 1.15rem;
  background: linear-gradient(90deg, 
    #1eb53a 0%, #1eb53a 30%, 
    #fcd116 30%, #fcd116 38%, 
    #000000 38%, #000000 62%, 
    #fcd116 62%, #fcd116 70%, 
    #00a3dd 70%, #00a3dd 100%
  );
  opacity: 0.85;
}

.sw-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================================
   HOME PAGE SURFACES & COMPOSITION (DESKTOP / BASE STYLES)
   ============================================================ */
.sw-home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(18rem, .7fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.sw-home-hero-panel { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; border: 1px solid rgba(255,255,255,.2); border-top: 3px solid var(--sw-accent); background: rgba(0,0,0,.15); color: #d9e8ee; }
.sw-home-emblem { width: 4.5rem; height: 4.5rem; flex: 0 0 auto; object-fit: contain; border-radius: var(--sw-radius); background: rgba(255,255,255,.12); }
.sw-home-emblem-placeholder { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.65rem; }
.sw-home-panel-label { margin-bottom: .6rem; color: #f0c66a; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sw-home-hero-panel p { margin: .25rem 0 0; color: #d9e8ee; font-size: .88rem; }
.sw-home-hero-panel p i { width: 1.1rem; color: #a9d4d7; }
.sw-home-hero-panel a { color: #fff; }
.sw-stat-link { display: block; color: inherit; text-decoration: none; }
.sw-stat-link:hover { color: inherit; }
.sw-stat-link .sw-stat-value { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-family: var(--sw-font-sans); font-size: .95rem; font-weight: 600; }
.sw-stat-link .sw-stat-value i { color: var(--sw-teal); font-size: .85rem; }
.sw-gallery-placeholder { display: flex; align-items: center; justify-content: center; min-height: 8rem; background: var(--sw-primary); color: #b8d8db; font-size: 2rem; }
.sw-gallery-card h3 { color: var(--sw-text); }
.sw-gallery-card:hover h3 { color: var(--sw-teal-dark); }

/* Final Home overrides */
.sw-hero { background: var(--sw-home-theme, var(--sw-primary)); border-bottom: 0; }
.sw-hero h1 { color: var(--sw-home-theme-text, #fff); }
.sw-hero p { color: var(--sw-home-theme-muted, #d5e3ea); }
.sw-home-discovery { max-width: 54rem; padding: .35rem; border: 1px solid var(--sw-border); border-radius: var(--sw-radius-lg); background: var(--sw-surface); box-shadow: var(--sw-shadow); }
.sw-home-discovery .input-group-text { border-color: transparent; color: var(--sw-teal); }
.sw-home-discovery .form-control { border-color: transparent; box-shadow: none; }
.sw-home-discovery .form-control:focus { border-color: transparent; box-shadow: none; }

/* Home reference composition */
.home-hero { position: relative; min-height: clamp(25rem, 52vw, 39rem); height: clamp(25rem, 52vw, 39rem); overflow: hidden; background: var(--tenant-primary, var(--sw-primary)); color: var(--tenant-primary-text, #fff); }
.home-carousel-slides { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s; pointer-events: none; z-index: 1; }
.home-carousel-slide.is-active { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; z-index: 2 !important; }
.home-carousel-slide[hidden] { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.home-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; will-change: transform; }
.home-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,28,45,.82) 0%, rgba(8,28,45,.56) 50%, rgba(8,28,45,.16) 100%); }
.home-hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: clamp(25rem, 52vw, 39rem); padding-block: 4rem; will-change: transform, opacity; }

/* Dynamic random transform transition animation modes */
.home-carousel-slide.anim-zoom-in .home-hero-media { animation: heroZoomIn 6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.home-carousel-slide.anim-zoom-in .home-hero-content { animation: heroContentFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.home-carousel-slide.anim-zoom-out .home-hero-media { animation: heroZoomOut 6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.home-carousel-slide.anim-zoom-out .home-hero-content { animation: heroContentScaleIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.home-carousel-slide.anim-slide-left .home-hero-media { animation: heroPanLeft 6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.home-carousel-slide.anim-slide-left .home-hero-content { animation: heroContentSlideLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.home-carousel-slide.anim-slide-right .home-hero-media { animation: heroPanRight 6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.home-carousel-slide.anim-slide-right .home-hero-content { animation: heroContentSlideRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.home-carousel-slide.anim-slide-up .home-hero-media { animation: heroPanUp 6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.home-carousel-slide.anim-slide-up .home-hero-content { animation: heroContentSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.home-carousel-slide.anim-diagonal .home-hero-media { animation: heroDiagonal 6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.home-carousel-slide.anim-diagonal .home-hero-content { animation: heroContentFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

@keyframes heroZoomIn {
  0% { transform: scale(1.18); }
  100% { transform: scale(1.0); }
}
@keyframes heroZoomOut {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.16); }
}
@keyframes heroPanLeft {
  0% { transform: scale(1.08) translateX(5%); }
  100% { transform: scale(1.02) translateX(-3%); }
}
@keyframes heroPanRight {
  0% { transform: scale(1.08) translateX(-5%); }
  100% { transform: scale(1.02) translateX(3%); }
}
@keyframes heroPanUp {
  0% { transform: scale(1.1) translateY(4%); }
  100% { transform: scale(1.02) translateY(-2%); }
}
@keyframes heroDiagonal {
  0% { transform: scale(1.15) translate(-3%, 3%); }
  100% { transform: scale(1.02) translate(1%, -1%); }
}

@keyframes heroContentFadeUp {
  0% { opacity: 0; transform: translateY(35px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroContentScaleIn {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes heroContentSlideLeft {
  0% { opacity: 0; transform: translateX(55px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes heroContentSlideRight {
  0% { opacity: 0; transform: translateX(-55px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes heroContentSlideUp {
  0% { opacity: 0; transform: translateY(45px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.home-identity-line { display: flex; align-items: center; gap: .7rem; color: #f0c66a; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.home-identity-line span { width: 2.25rem; height: 2px; background: var(--sw-accent); }
.home-hero h1 { max-width: 52rem; margin: 1rem 0 .9rem; color: var(--tenant-primary-text, #fff); font-size: clamp(2.4rem, 5.8vw, 5rem); letter-spacing: -.02em; }
.home-hero-lead { max-width: 42rem; margin: 0; color: var(--tenant-primary-muted, #dbe8ed); font-size: clamp(1rem, 2vw, 1.3rem); }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.home-carousel-controls { position: absolute; right: max(1rem, calc((100% - var(--sw-content-max)) / 2)); bottom: 1.25rem; z-index: 3; display: flex; align-items: center; gap: .75rem; }
.home-carousel-control { display: inline-flex; align-items: center; justify-content: center; width: 2.35rem; height: 2.35rem; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(8,28,45,.42); color: #fff; }
.home-carousel-control:hover, .home-carousel-control:focus-visible { border-color: var(--tenant-accent, var(--sw-accent)); background: var(--tenant-primary, var(--sw-primary)); color: #fff; outline: 0; }
.home-carousel-indicators { display: flex; align-items: center; gap: .45rem; }
.home-carousel-indicators button { width: .55rem; height: .55rem; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; }
.home-carousel-indicators button.is-active { width: 1.4rem; border-radius: 1rem; border-color: var(--tenant-accent, var(--sw-accent)); background: var(--tenant-accent, var(--sw-accent)); }
.home-btn-primary { border-color: var(--tenant-primary, var(--sw-accent)); background: var(--tenant-primary, var(--sw-accent)); color: #fff; font-weight: 700; }
.home-btn-primary:hover, .home-btn-primary:focus-visible { border-color: var(--tenant-primary-hover, #f0c66a); background: var(--tenant-primary-hover, #f0c66a); color: #fff; }
.home-btn-quiet { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.home-btn-quiet:hover, .home-btn-quiet:focus-visible { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }
.home-service-band { position: relative; z-index: 2; padding: clamp(2.5rem, 5vw, 4rem) 0; background: #263b45; color: #fff; }
.home-section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.home-section-intro h2 { margin: .35rem 0 0; color: var(--sw-text); font-size: clamp(1.55rem, 3vw, 2.2rem); }
.home-section-intro p { max-width: 42rem; margin: .5rem 0 0; color: var(--sw-text-muted); }
.home-section-intro-light h2, .home-section-intro-light p { color: #fff; }
.home-section-intro-light p { color: #c6d7dc; }
.home-section-kicker { color: var(--sw-teal); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.home-section-intro-light .home-section-kicker { color: #f0c66a; }
.home-service-search { display: flex; width: min(100%, 25rem); border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.14); }
.home-service-search input { min-width: 0; flex: 1; padding: .75rem .9rem; border: 0; outline: 0; background: transparent; color: #fff; }
.home-service-search input::placeholder { color: #c6d7dc; }
.home-service-search button { width: 3rem; border: 0; background: var(--sw-accent); color: #16202a; }
.home-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.16); }
.home-service-tile { display: flex; align-items: center; gap: .8rem; min-height: 5.5rem; padding: 1rem; background: #2d4651; color: #fff; text-decoration: none; }
.home-service-tile:hover, .home-service-tile:focus-visible { background: #355561; color: #fff; outline: 0; }
.home-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; border: 1px solid rgba(240,198,106,.5); border-radius: 50%; color: #f0c66a; }
.home-service-label { flex: 1; font-weight: 600; }
.home-service-arrow { color: #9cc8cc; }
.home-service-empty { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; border: 1px solid rgba(255,255,255,.18); color: #d9e8ee; }
.home-service-empty > i { color: #f0c66a; }
.home-service-empty a { margin-left: auto; color: #fff; font-weight: 600; text-decoration: none; }
.home-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.home-link-card { display: flex; align-items: center; gap: .75rem; min-height: 6rem; padding: 1rem; border: 1px solid var(--sw-border); background: var(--sw-surface); color: var(--sw-text); text-decoration: none; box-shadow: var(--sw-shadow); }
.home-link-card:hover, .home-link-card:focus-visible { border-color: #a6c8ce; color: var(--sw-teal-dark); outline: 0; box-shadow: var(--sw-shadow-lg); }
.home-link-card > i:first-child { color: var(--sw-teal); font-size: 1.35rem; }
.home-link-card span { display: flex; flex: 1; flex-direction: column; }
.home-link-card small { margin-top: .2rem; color: var(--sw-text-muted); }
.home-link-card > i:last-child { color: var(--sw-text-muted); font-size: .85rem; }
.home-information-band { background: var(--sw-surface); border-block: 1px solid var(--sw-border); }
.home-text-link, .home-card-link { color: var(--tenant-primary-hover, var(--sw-teal-dark)); font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-text-link:hover, .home-card-link:hover { text-decoration: underline; }
.home-notice-panel { height: 100%; border-top: 3px solid var(--sw-accent); background: var(--sw-paper); }
.home-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--sw-border); }
.home-panel-heading h3 { margin: 0; font-family: var(--sw-font-sans); font-size: 1rem; }
.home-panel-heading i { color: var(--sw-teal); }
.home-notice { display: grid; grid-template-columns: 5.2rem 1fr; gap: .7rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--sw-border); }
.home-notice:last-child { border-bottom: 0; }
.home-notice-date, .home-news-date { color: var(--sw-text-muted); font-size: .76rem; }
.home-notice .badge { grid-column: 2; width: max-content; }
.home-news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.home-news-card { padding: 1.2rem; border-top: 3px solid var(--sw-teal); background: var(--sw-paper); }
.home-news-card h3 { margin: .45rem 0 .55rem; font-size: 1.15rem; }
.home-news-card h3 a { color: var(--sw-text); text-decoration: none; }
.home-news-card h3 a:hover { color: var(--sw-teal-dark); }
.home-news-card p { color: var(--sw-text-muted); font-size: .9rem; }
.home-card-link { display: inline-block; margin-top: .3rem; font-size: .86rem; }
.home-discover-band { background: var(--sw-bg); }
.home-event-list, .home-gallery-list { border-top: 1px solid var(--sw-border); }
.home-event-row, .home-gallery-list > a { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--sw-border); color: var(--sw-text); text-decoration: none; }
.home-event-row:hover, .home-gallery-list > a:hover { color: var(--sw-teal-dark); }
.home-event-row > span:nth-child(2), .home-gallery-list > a > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.home-event-row small, .home-gallery-list small { margin-top: .2rem; color: var(--sw-text-muted); }
.home-event-date { display: inline-flex; width: 3.8rem; flex: 0 0 auto; flex-direction: column; align-items: center; border-left: 3px solid var(--sw-teal); background: var(--sw-surface); padding: .3rem; }
.home-event-date b { font-family: var(--sw-font-serif); font-size: 1.45rem; line-height: 1.1; }
.home-event-date small { margin: 0; color: var(--sw-teal-dark); font-size: .68rem; text-transform: uppercase; }
.home-gallery-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; flex: 0 0 auto; background: var(--sw-primary); color: #f0c66a; }

/* ============================================================
   RESPONSIVE BREAKPOINTS (CONSOLIDATED AT END OF FILE)
   ============================================================ */
@media (min-width: 992px) {
  .sw-primary-nav.sw-nav-desktop { display: block !important; }
}

@media (max-width: 991.98px) {
  /* Sticky topbar on mobile so hamburger is always accessible */
  .sw-topbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
  }

  /* Show mobile hamburger in topbar */
  .sw-mobile-toggle { display: inline-flex; }

  /* Desktop nav off; modern mobile modal pop-up replaces drawer */
  .sw-primary-nav { display: none !important; }

  /* =============================================================
     BROWSER CONTEXT POP-UP MENU (Small Screens & Mobile)
     Sleek dark floating context popup anchored from top-right 3-dots,
     matching native browser dropdown menu layout & aesthetics
     ============================================================= */
  .sw-mobile-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1080;
    opacity: 0;
    transition: opacity 0.18s ease;
  }
  .sw-mobile-modal-backdrop.is-open {
    display: block;
    opacity: 1;
  }

  .sw-popmenu {
    display: none;
    position: fixed;
    top: 3.15rem;
    right: 0.75rem;
    width: 305px;
    max-width: calc(100vw - 1.5rem);
    max-height: min(84vh, 620px);
    background-color: #2b2a33;
    color: #fbfbfe;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 1090;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.35rem 0.25rem 0.5rem;
    box-sizing: border-box;
    transform-origin: top right;
    transform: scale(0.96) translateY(-6px);
    opacity: 0;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.12s ease;
  }
  .sw-popmenu.is-open {
    display: flex !important;
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  /* Top Header Banner: School / Portal Name + Sign In Button (matches sample image) */
  .sw-popmenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.65rem 0.55rem;
    gap: 0.65rem;
  }
  .sw-popmenu-brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .sw-popmenu-head-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fbfbfe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
  }
  .sw-popmenu-head-sub {
    font-size: 0.7rem;
    color: #9aa0a6;
    font-weight: 400;
    line-height: 1.2;
  }
  .sw-popmenu-auth-btn-wrap {
    flex-shrink: 0;
  }
  .sw-popmenu-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #3e3d48;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 0.28rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s;
    cursor: pointer;
  }
  .sw-popmenu-signin-btn:hover {
    background-color: #009639;
    border-color: #009639;
    color: #ffffff !important;
  }

  /* Divider Lines */
  .sw-popmenu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0.35rem 0.45rem;
    border: 0;
  }

  /* Navigation List - STRICT VERTICAL STACK */
  .sw-popmenu-nav-wrap,
  .sw-popmenu-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .sw-popmenu .sw-nav,
  .sw-popmenu .sw-nav-mobile-list,
  .sw-popmenu-nav .sw-nav-mobile-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 0.15rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .sw-popmenu .sw-nav-item,
  .sw-popmenu-nav .sw-nav-item {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }
  .sw-popmenu .sw-nav-link,
  .sw-popmenu-item,
  .sw-popmenu-nav .sw-nav-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.48rem 0.75rem !important;
    color: #fbfbfe !important;
    font-size: 0.88rem !important;
    font-weight: 450 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: background-color 0.12s ease, color 0.12s ease !important;
    min-height: 2.3rem !important;
    height: auto !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
  .sw-popmenu-item:hover,
  .sw-popmenu-item:focus-visible,
  .sw-popmenu-nav .sw-nav-link:hover,
  .sw-popmenu-nav .sw-nav-link:focus-visible {
    background-color: #383842 !important;
    color: #ffffff !important;
  }
  .sw-popmenu-nav .sw-nav-link.is-active {
    background-color: rgba(0, 150, 57, 0.25) !important;
    color: #4ade80 !important;
    font-weight: 600 !important;
  }
  .sw-popmenu-nav .sw-nav-link.is-active::after {
    display: none;
  }
  .sw-popmenu-chevron {
    font-size: 0.75rem;
    color: #9aa0a6;
    transition: transform 0.18s ease;
    margin-left: auto;
  }
  .sw-popmenu-nav .sw-nav-collapse-trigger.is-expanded .sw-popmenu-chevron,
  .sw-popmenu-nav .sw-nav-collapse-trigger.is-expanded .sw-nav-chevron {
    transform: rotate(90deg);
    color: #ffffff;
  }
  .sw-popmenu-nav .sw-nav-mobile-sublist {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 0.25rem 0.4rem;
    margin: 0.2rem 0.4rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  .sw-popmenu-nav .sw-nav-sublink {
    display: flex !important;
    align-items: center !important;
    padding: 0.4rem 0.65rem !important;
    font-size: 0.83rem !important;
    color: #d1d5db !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    min-height: 2rem !important;
    transition: background-color 0.12s, color 0.12s;
  }
  .sw-popmenu-nav .sw-nav-sublink:hover {
    background-color: #383842 !important;
    color: #ffffff !important;
  }
  .sw-popmenu-nav .sw-nav-sublink.is-active {
    color: #4ade80 !important;
    font-weight: 600 !important;
    background-color: rgba(0, 150, 57, 0.18) !important;
  }
  .sw-popmenu-nav .sw-mega {
    position: static;
    width: 100%;
    margin: 0.25rem 0;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.5rem;
    animation: none;
  }
  .sw-popmenu-nav .sw-mega::before { display: none; }
  .sw-popmenu-nav .sw-mega-cols { grid-template-columns: 1fr; gap: 0.5rem; }
  .sw-popmenu-nav .sw-mega-col-title {
    color: #9aa0a6;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
  }
  .sw-popmenu-nav .sw-mega a {
    color: #d1d5db;
    padding: 0.35rem 0.5rem;
    font-size: 0.83rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
  }
  .sw-popmenu-nav .sw-mega a:hover {
    background: #383842;
    color: #ffffff;
  }

  /* Tools & Utilities */
  .sw-popmenu-tools {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .sw-popmenu-shortcut {
    font-size: 0.72rem;
    color: #9aa0a6;
    margin-left: auto;
  }
  .sw-popmenu-shortcut kbd {
    background: rgba(255, 255, 255, 0.08);
    color: #9aa0a6;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
    font-size: 0.7rem;
    font-family: inherit;
  }
  .sw-popmenu-meta {
    font-size: 0.74rem;
    color: #9aa0a6;
    margin-left: auto;
  }
  .sw-popmenu-lang-pills {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
    margin-left: auto;
  }
  .sw-popmenu-lang-pill {
    padding: 0.12rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9aa0a6;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background-color 0.12s, color 0.12s;
  }
  .sw-popmenu-lang-pill:hover {
    color: #ffffff;
    background: #383842;
  }
  .sw-popmenu-lang-pill.is-active {
    background: #009639;
    color: #ffffff;
    border-color: #009639;
  }
  .sw-popmenu-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.75rem;
    color: #d1d5db;
    font-size: 0.82rem;
  }
  .sw-popmenu-username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
    font-weight: 500;
  }
  .sw-popmenu-logout-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    border-radius: 4px;
    padding: 0.18rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
  }
  .sw-popmenu-logout-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
  }

  /* Topbar: hide contact pill on small tablet to prevent wrap */
  .sw-topbar-start .sw-topbar-pill:nth-child(n+2) { display: none; }

  /* Compact header card at tablet */
  .sw-header-card { padding: 0.45rem 0.75rem; border-radius: 10px; }
  .sw-header-crest-card { padding: 0.2rem 0.3rem; border-radius: 6px; }
  .sw-crest-img { max-height: 2.45rem; }
  .sw-crest-placeholder { width: 2.45rem; height: 2.45rem; font-size: 0.85rem; border-radius: 5px; }
  .sw-header-org-name { font-size: clamp(0.85rem, 2.3vw, 1.15rem); }
  .sw-header-flag-divider { width: 6.5rem; }
  .sw-header-school-name { font-size: clamp(0.72rem, 1.7vw, 0.92rem); }

  /* Home grids at tablet */
  .home-link-grid { grid-template-columns: repeat(2, 1fr); }
  .home-service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  /* Compact topbar */
  .sw-topbar-label { display: none; }
  .sw-topbar-start { display: none; }
  .sw-topbar-inner { padding: 0.35rem 0; justify-content: flex-end; }

  /* Compact identity at mobile */
  .sw-header-card { padding: 0.35rem 0.65rem; border-radius: 8px; }
  .sw-header-crest-card { padding: 0.15rem 0.25rem; border-radius: 6px; }
  .sw-crest-img { max-height: 2.15rem; }
  .sw-crest-placeholder { width: 2.15rem; height: 2.15rem; font-size: 0.78rem; }
  .sw-header-org-name { font-size: clamp(0.75rem, 3vw, 0.95rem); }
  .sw-header-flag-divider { width: 5.5rem; height: 2px; }
  .sw-header-school-name { font-size: clamp(0.65rem, 2.4vw, 0.82rem); }

  /* Home page responsive adjustments */
  .home-hero-content { padding-block: 2.5rem; }
  .home-hero h1 { font-size: clamp(1.85rem, 6vw, 2.5rem); }
  .home-hero-actions { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .home-hero-actions .btn { width: 100%; text-align: center; }
  .home-section-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .home-service-search { width: 100%; max-width: 100%; margin-top: 0.75rem; }
  .home-service-grid { grid-template-columns: 1fr; }
  .home-link-grid { grid-template-columns: 1fr; }
  .home-news-grid { grid-template-columns: 1fr; }
  .home-notice { grid-template-columns: 1fr; gap: 0.35rem; }
  .home-notice .badge { grid-column: 1; }
  .home-service-empty { align-items: flex-start; flex-wrap: wrap; }
  .home-service-empty a { width: 100%; margin-left: 0; margin-top: 0.5rem; }
  .home-carousel-controls { right: 1rem; bottom: .9rem; }
  .sw-home-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sw-home-hero-panel { max-width: 100%; }
}

@media (max-width: 575.98px) {
  .sw-container { width: 100%; padding-inline: 0.75rem; }

  /* Compact at 375px */
  .sw-header-card { padding: 0.3rem 0.45rem; }
  .sw-header-identity-wrap { gap: 0.4rem; }
  .sw-crest-img { max-height: 1.85rem; }
  .sw-crest-placeholder { width: 1.85rem; height: 1.85rem; font-size: 0.7rem; }
  .sw-header-org-name { font-size: clamp(0.68rem, 3.4vw, 0.85rem); }
  .sw-header-flag-divider { width: 4.5rem; height: 2px; }
  .sw-header-school-name { font-size: clamp(0.6rem, 3vw, 0.75rem); }
  .sw-mobile-toggle { width: 2.15rem; height: 2.15rem; font-size: 1.15rem; }
  .sw-a11y-menu { min-width: 200px; max-width: calc(100vw - 2rem); }

  /* Legacy */
  .sw-brand-name { font-size: 1.05rem; }
  .sw-list-item { display: block; }
  .sw-list-item > .btn { margin-top: .75rem; }
  .sw-section-heading { display: block; }
}

@media (max-width: 360px) {
  /* 320px baseline: keep school crest and compact text */
  .sw-header-crest--left { display: none; }
  .sw-header-identity-wrap { gap: 0.35rem; }
  .sw-crest-img { max-height: 1.65rem; }
  .sw-crest-placeholder { width: 1.65rem; height: 1.65rem; font-size: 0.65rem; }
  .sw-header-org-name { font-size: 0.65rem; }
  .sw-header-flag-divider { width: 3.5rem; }
  .sw-header-school-name { font-size: 0.68rem; }
  .sw-a11y-toggle { width: 2.5rem; height: 2.5rem; font-size: 1.05rem; }
}


/* =============================================================
   HEADER CARD WIDTH FIX — Full width with compact 1rem padding
   ============================================================= */
.sw-header .sw-header-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-inline: 1rem !important;
}
.sw-header-card {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding: 0.5rem 1rem !important;
  box-sizing: border-box !important;
}

/* =============================================================
   NAVIGATION BUTTONS & DROPDOWN — Strict horizontal alignment (Desktop Primary Nav)
   ============================================================= */
.sw-primary-nav .sw-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.sw-primary-nav .sw-container {
  display: flex !important;
  align-items: center !important;
}
.sw-primary-nav .sw-nav-item {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 3.5rem !important;
}
/* Ensure EVERY nav link/button in desktop primary nav has identical height, baseline, and row layout */
.sw-primary-nav .sw-nav-link,
.sw-primary-nav .sw-nav-dropdown-trigger,
.sw-primary-nav .sw-nav-mega-trigger {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  height: 3.5rem !important;
  min-height: 3.5rem !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}
.sw-primary-nav .sw-nav-link > span,
.sw-primary-nav .sw-nav-dropdown-trigger > span,
.sw-primary-nav .sw-nav-mega-trigger > span {
  display: inline-block !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
.sw-nav-chevron {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-left: 0.2rem !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
/* Dropdown panel position */
.sw-dropdown-menu {
  top: 100% !important;
  left: 0 !important;
}

/* =============================================================
   STICKY NAVIGATION ON SCROLL
   ============================================================= */
.sw-primary-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 3.5rem;
  background: #ffffff;
  border-bottom: 2px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}
.sw-primary-nav.is-sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1050 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  animation: stickySlideDown 0.2s ease-out;
}
body.has-sticky-nav {
  padding-top: 3.5rem;
}
@keyframes stickySlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* =============================================================
   PCCB-STYLE NEWS & EVENTS COMPONENTS
   ============================================================= */

/* ------- Section heading pattern ------- */
.hn-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.hn-section-head-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hn-section-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sw-teal);
}
.hn-section-title {
  margin: 0;
  font-family: var(--sw-font-serif);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--sw-text);
  line-height: 1.2;
}
.hn-title-bar {
  width: 3.5rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #009639 0%, #fcd116 50%, #00a3dd 100%);
  margin-top: 0.4rem;
}
.hn-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border: 1.5px solid var(--sw-teal);
  border-radius: 9999px;
  color: var(--sw-teal);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.hn-view-all-btn:hover {
  background: var(--sw-teal);
  color: #fff;
}

/* ------- News band background ------- */
.hn-news-band { background: #f7f9fc; }

/* ------- PCCB 4-column news card grid ------- */
.hn-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* News card */
.hn-news-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.hn-news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Date badge circle (top-right corner of image) */
.hn-news-card-date-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: var(--sw-primary, #0e2a43);
  color: #fff;
  text-align: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hn-date-day {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
}
.hn-date-mon {
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.05rem;
}

/* Card image */
.hn-news-card-img {
  position: relative;
  width: 100%;
  height: 11rem;
  overflow: hidden;
  background: #e5e7eb;
  flex-shrink: 0;
}
.hn-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hn-news-card:hover .hn-news-card-img img {
  transform: scale(1.04);
}
.hn-news-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2.25rem;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

/* Card body */
.hn-news-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  flex: 1;
}
.hn-news-cat-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 3px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: max-content;
}
.hn-news-cat-badge--events {
  background: #087f8c;
  color: #ffffff;
}
.hn-news-card-title {
  margin: 0;
  font-family: var(--sw-font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sw-text);
}
.hn-news-card-title a {
  color: inherit;
  text-decoration: none;
}
.hn-news-card-title a:hover { color: #009639; }
.hn-news-card-excerpt {
  margin: 0;
  font-size: 0.82rem;
  color: var(--sw-text-muted);
  line-height: 1.55;
  flex: 1;
}
.hn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #009639;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
}
.hn-read-more:hover { text-decoration: underline; }

/* ------- Announcements strip ------- */
.hn-announcements-strip {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.hn-ann-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
}
.hn-ann-item:last-child { border-bottom: 0; }
.hn-ann-icon {
  color: var(--sw-accent, #d9a441);
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.hn-ann-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  font-size: 0.86rem;
}
.hn-ann-pinned {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 3px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  width: max-content;
}
.hn-ann-date {
  color: var(--sw-text-muted);
  font-size: 0.75rem;
}

/* ------- Discover / Events-Gallery panel band ------- */
.hn-discover-band { background: var(--sw-bg); }
.hn-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hn-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: var(--sw-primary, #0e2a43);
  color: #fff;
  gap: 1rem;
}
.hn-panel-title {
  margin: 0;
  font-family: var(--sw-font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.hn-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #f0c66a;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hn-panel-link:hover { color: #fff; text-decoration: underline; }

/* Events list (PCCB sidebar thumbnail row style) */
.hn-events-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hn-event-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--sw-text);
  text-decoration: none;
  transition: background 0.15s ease;
}
.hn-event-item:last-child { border-bottom: 0; }
.hn-event-item:hover { background: #f8fafc; }

/* Thumbnail or calendar placeholder */
.hn-event-thumb {
  width: 4rem;
  height: 4rem;
  flex: 0 0 4rem;
  border-radius: 6px;
  overflow: hidden;
  background: #e5e7eb;
}
.hn-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hn-event-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--sw-primary, #0e2a43);
  color: #fff;
  text-align: center;
  gap: 0;
}
.hn-event-thumb-placeholder--gallery {
  background: var(--sw-teal, #087f8c);
  font-size: 1.35rem;
}
.hn-event-cal-day {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
.hn-event-cal-mon {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hn-event-info {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1;
  min-width: 0;
}
.hn-event-meta {
  font-size: 0.7rem;
  color: var(--sw-teal);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.hn-event-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sw-text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hn-event-item:hover .hn-event-title { color: #009639; }
.hn-event-timeago {
  font-size: 0.7rem;
  color: var(--sw-text-muted);
}
.hn-event-arrow {
  color: #d1d5db;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}
.hn-event-item:hover .hn-event-arrow {
  transform: translateX(3px);
  color: #009639;
}

.hn-panel-foot {
  padding: 0.75rem 1.15rem;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}
.hn-panel-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sw-teal);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--sw-teal);
  border-radius: 9999px;
  transition: all 0.15s ease;
}
.hn-panel-more-btn:hover { background: var(--sw-teal); color: #fff; }

/* ------- Page-level header band ------- */
.hn-page-header-band {
  background: var(--sw-primary, #0e2a43);
  color: #fff;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 3px solid var(--sw-accent, #d9a441);
}
.hn-page-header-band .sw-breadcrumb { margin-bottom: 0.75rem; }
.hn-page-header-band .sw-breadcrumb a { color: rgba(255,255,255,0.75); }
.hn-page-header-band .sw-breadcrumb a:hover { color: #fff; }
.hn-page-header-band .sw-breadcrumb li:last-child { color: rgba(255,255,255,0.9); }
.hn-page-header-band .hn-section-kicker { color: #f0c66a; }
.hn-page-header-band .hn-section-title { color: #fff; }
.hn-page-header-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hn-article-header-band { padding-bottom: 1rem; }
.hn-filter-tabs {
  display: flex;
  gap: 0.5rem;
}
.hn-filter-tab {
  padding: 0.4rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 9999px;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.hn-filter-tab:hover, .hn-filter-tab.is-active {
  border-color: #fff;
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Filter tabs on a light background (e.g. inside .ah-panel) */
.ah-panel .hn-filter-tabs {
  margin-bottom: 1.25rem;
}
.ah-panel .hn-filter-tab {
  border-color: #e2e8f0;
  color: #475569;
}
.ah-panel .hn-filter-tab:hover,
.ah-panel .hn-filter-tab.is-active {
  border-color: var(--tenant-primary, #0f4c81);
  background: color-mix(in srgb, var(--tenant-primary, #0f4c81) 10%, white);
  color: var(--tenant-primary, #0f4c81);
}

/* ------- News page row layout ------- */
.hn-news-page-band { background: var(--sw-bg); }
.hn-news-card--row {
  flex-direction: row;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  min-height: 10rem;
}
.hn-news-row-img {
  width: 13rem;
  min-width: 13rem;
  height: auto;
  overflow: hidden;
  background: #e5e7eb;
  flex-shrink: 0;
  border-radius: 0;
  position: relative;
}
.hn-news-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hn-news-row-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}
.hn-news-card--row .hn-news-card-body {
  padding: 1.15rem 1.35rem;
}
.hn-news-card--row .hn-news-card-title { font-size: 1.05rem; }
.hn-news-card--row .hn-news-card-excerpt { font-size: 0.88rem; }

/* ------- Events page full-width list ------- */
.hn-events-page-band { background: var(--sw-bg); padding-top: 2rem; padding-bottom: 2.5rem; }
.hn-events-list--page {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.hn-event-item--lg {
  padding: 1.1rem 1.5rem;
  position: relative;
  gap: 1.1rem;
}
.hn-event-item--lg:hover { background: #f8fafc; }
.hn-event-item--lg .hn-event-thumb {
  width: 5rem;
  height: 5rem;
  flex: 0 0 5rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.hn-event-item--lg .hn-event-title { font-size: 0.98rem; white-space: normal; }
.hn-event-item--lg .hn-event-arrow {
  align-self: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #f1f5f9;
  transition: all 0.15s ease;
}
.hn-event-item--lg:hover .hn-event-arrow {
  background: var(--sw-teal, #087f8c);
  color: #fff;
}
.hn-event-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.4rem;
}
.hn-event-status--upcoming { background: #dcfce7; color: #15803d; }
.hn-event-status--past { background: #f1f5f9; color: #64748b; }
.hn-filter-tabs .hn-filter-tab .bi { margin-right: 0.3rem; }

/* ------- Article full page ------- */
.hn-article-container {
  max-width: 52rem;
}
.hn-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2rem;
  align-items: start;
}
.hn-article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.hn-article-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.hn-article-date {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--sw-text-muted);
}
.hn-article-title {
  font-family: var(--sw-font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--sw-text);
  margin: 0 0 1rem;
}
.hn-article-lead {
  font-size: 1.05rem;
  color: var(--sw-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--sw-teal);
  padding-left: 1rem;
}
.hn-article-featured-img {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  max-height: 28rem;
}
.hn-article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hn-article-body {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--sw-text);
}
.hn-article-body p { margin-bottom: 1rem; }
.hn-article-body h2, .hn-article-body h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; }
.hn-article-back {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sw-border);
}
.hn-article-back--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ------- Article sidebar (related items + quick links) ------- */
.hn-article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 1.25rem;
}
.hn-side-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.hn-side-card-head {
  background: var(--sw-primary, #0e2a43);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 3px solid var(--sw-accent, #d9a441);
}
.hn-side-card-head--alt {
  background: var(--sw-teal, #087f8c);
  border-bottom-color: rgba(255,255,255,0.35);
}
.hn-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hn-side-list li { border-bottom: 1px solid #f1f5f9; }
.hn-side-list li:last-child { border-bottom: 0; }
.hn-side-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.hn-side-item:hover { background: #f8fafc; }
.hn-side-thumb {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 3.1rem;
  border-radius: 6px;
  overflow: hidden;
  background: var(--sw-primary, #0e2a43);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.hn-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hn-side-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.hn-side-item-body strong {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sw-text);
}
.hn-side-item:hover .hn-side-item-body strong { color: #009639; }
.hn-side-item-body small {
  font-size: 0.7rem;
  color: var(--sw-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.hn-side-quicklinks {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}
.hn-side-quicklinks a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  color: var(--sw-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.hn-side-quicklinks a:hover { background: #f0fdfa; color: var(--sw-teal, #087f8c); }
.hn-side-chevron { margin-left: auto; font-size: 0.7rem; color: #cbd5e1; }
@media (max-width: 991.98px) {
  .hn-article-layout { grid-template-columns: 1fr; }
  .hn-article-sidebar { position: static; }
}
/* ------- Share buttons ------- */
.hn-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
}
.hn-share-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sw-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hn-share-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.hn-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #4b5563;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.hn-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  color: #fff;
}
.hn-share-btn--whatsapp:hover { background: #25d366; }
.hn-share-btn--gmail:hover { background: #ea4335; }
.hn-share-btn--sms:hover { background: #0ea5e9; }
.hn-share-btn--facebook:hover { background: #1877f2; }
.hn-share-btn--instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; }
.hn-share-btn--instagram:hover { filter: brightness(1.08); box-shadow: 0 4px 10px rgba(238,42,123,0.35); }
.hn-share-btn--copy:hover { background: var(--sw-teal, #087f8c); }
.hn-share-btn--more:hover { background: var(--sw-primary, #0e2a43); }
.hn-share-toast {
  position: absolute;
  top: -2.1rem;
  left: 0;
  background: #0e2a43;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  white-space: nowrap;
}
.hn-share-toast.is-visible { opacity: 1; transform: translateY(0); }
.hn-share-toast::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 1rem;
  width: 8px;
  height: 8px;
  background: inherit;
  transform: rotate(45deg);
}

.hn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sw-teal);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.15s ease;
}
.hn-back-link:hover { gap: 0.6rem; color: var(--sw-teal-dark); }

/* ------- Empty state ------- */
.hn-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--sw-text-muted);
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.hn-empty-state i { font-size: 2.5rem; opacity: 0.4; }
.hn-empty-state p { margin: 0; font-size: 0.9rem; }

/* ------- Pagination ------- */
.hn-pagination { margin-top: 1.5rem; }

/* =============================================================
   PCCB-STYLE DOCUMENTS COMPONENT
   ============================================================= */
.hn-docs-page-band { background: var(--sw-bg); }
.hn-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.hn-doc-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hn-doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.hn-doc-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
  background: #fef3c7;
  color: #b45309;
  flex-shrink: 0;
  text-align: center;
}
.hn-doc-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.hn-doc-format {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}
.hn-doc-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}
.hn-doc-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.hn-doc-cat-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.hn-doc-date {
  font-size: 0.75rem;
  color: var(--sw-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.hn-doc-title {
  margin: 0;
  font-family: var(--sw-font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sw-text);
  line-height: 1.35;
}
.hn-doc-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--sw-text-muted);
  line-height: 1.5;
}
.hn-doc-action {
  flex-shrink: 0;
}
.hn-doc-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: #009639;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.hn-doc-download-btn:hover {
  background: #007a2e;
  color: #ffffff;
  transform: translateY(-1px);
}

/* =============================================================
   PCCB-STYLE GALLERY COMPONENTS
   ============================================================= */
.hn-gallery-page-band,
.hn-gallery-detail-band { background: var(--sw-bg); }
.hn-album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.hn-album-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hn-album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}
.hn-album-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.hn-album-img-wrap {
  position: relative;
  width: 100%;
  height: 13rem;
  overflow: hidden;
  background: #e5e7eb;
}
.hn-album-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hn-album-card:hover .hn-album-img-wrap img {
  transform: scale(1.05);
}
.hn-album-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.8rem;
  color: #9ca3af;
  background: linear-gradient(135deg, #0e2a43, #1e3a5f);
}
.hn-album-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.hn-album-badge--static {
  position: static;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.hn-album-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem;
  flex: 1;
}
.hn-album-title {
  margin: 0;
  font-family: var(--sw-font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sw-text);
  line-height: 1.35;
}
.hn-album-card:hover .hn-album-title {
  color: #009639;
}
.hn-album-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--sw-text-muted);
  line-height: 1.5;
  flex: 1;
}
.hn-album-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #009639;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Gallery Photo Grid (Album Show) */
.hn-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.hn-photo-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hn-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.hn-photo-img-wrap {
  position: relative;
  width: 100%;
  height: 14rem;
  overflow: hidden;
  background: #e5e7eb;
}
.hn-photo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hn-photo-card:hover .hn-photo-img-wrap img {
  transform: scale(1.04);
}
.hn-photo-zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.28);
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.hn-photo-card:hover .hn-photo-zoom-hint { opacity: 1; }
.hn-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  color: #9ca3af;
  background: #f3f4f6;
}
.hn-photo-caption {
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--sw-text);
  line-height: 1.4;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

/* =============================================================
   PCCB-STYLE SEARCH COMPONENTS
   ============================================================= */
.hn-search-page-band { background: var(--sw-bg); }
.hn-search-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}
.hn-search-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.25rem 0.35rem 0.25rem 1rem;
  background: #ffffff;
  transition: border-color 0.15s ease;
}
.hn-search-input-wrap:focus-within {
  border-color: #009639;
  box-shadow: 0 0 0 3px rgba(0, 150, 57, 0.12);
}
.hn-search-icon {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-right: 0.75rem;
}
.hn-search-input {
  border: 0;
  outline: 0;
  font-size: 0.98rem;
  color: var(--sw-text);
  flex: 1;
  background: transparent;
}
.hn-search-input::placeholder { color: #94a3b8; }
.hn-search-submit-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.45rem;
  border: 0;
  border-radius: 6px;
  background: #009639;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hn-search-submit-btn:hover { background: #007a2e; }
.hn-search-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.hn-search-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #f0fdf4;
  color: #009639;
  font-weight: 700;
  font-size: 0.78rem;
}
.hn-search-section {
  margin-bottom: 2rem;
}
.hn-search-section-title {
  font-family: var(--sw-font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sw-text);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
}
.hn-search-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.hn-search-result-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hn-search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.hn-search-card-title {
  margin: 0;
  font-family: var(--sw-font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}
.hn-search-card-title a {
  color: var(--sw-text);
  text-decoration: none;
}
.hn-search-card-title a:hover { color: #009639; }
.hn-search-card-excerpt {
  margin: 0;
  font-size: 0.82rem;
  color: var(--sw-text-muted);
  line-height: 1.5;
}

/* =============================================================
   PCCB-STYLE INSTITUTIONAL PAGES BAND
   ============================================================= */
.hn-page-content-band { background: var(--sw-bg); }
.hn-page-section-block {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
}

/* =============================================================
   INSTITUTIONAL LOGIN BUTTONS & ACTIONS
   ============================================================= */
.sw-topbar-pill--login {
  background: rgba(252, 209, 22, 0.18) !important;
  border: 1px solid rgba(252, 209, 22, 0.55) !important;
  color: #fcd116 !important;
  font-weight: 700 !important;
}
.sw-topbar-pill--login:hover {
  background: #fcd116 !important;
  color: #0e2a43 !important;
}
.sw-primary-nav-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.sw-nav-login-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}
.sw-nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: #0e2a43;
  color: #ffffff;
  font-family: var(--sw-font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(14, 42, 67, 0.18);
}
.sw-nav-login-btn:hover {
  background: #009639;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 150, 57, 0.28);
}
.sw-footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sw-footer-login-link {
  color: #fcd116;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease;
}
.sw-footer-login-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.sw-footer-sep {
  color: rgba(255, 255, 255, 0.4);
}
body.sw-modal-open {
  overflow: hidden !important;
}

/* =============================================================
   RESPONSIVE — PCCB Components
   ============================================================= */
@media (max-width: 991.98px) {
  .hn-news-grid { grid-template-columns: repeat(2, 1fr); }
  .hn-news-card--row { flex-direction: column; }
  .hn-news-row-img { width: 100%; min-width: 0; height: 12rem; }
  .hn-album-grid { grid-template-columns: repeat(2, 1fr); }
  .hn-photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
  .hn-section-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hn-news-grid { grid-template-columns: 1fr; }
  .hn-page-header-content { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hn-article { padding: 1.25rem; }
  .hn-article-title { font-size: 1.45rem; }
  .hn-news-card--row .hn-news-card-body { padding: 0.9rem 1rem; }
  .hn-doc-card { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .hn-doc-action { width: 100%; }
  .hn-doc-download-btn { width: 100%; justify-content: center; }
  .hn-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .hn-search-grid { grid-template-columns: 1fr; }
  .hn-search-input-wrap { flex-direction: column; padding: 0.75rem; gap: 0.5rem; }
  .hn-search-submit-btn { width: 100%; justify-content: center; }
}

@media (max-width: 575.98px) {
  .hn-news-grid { grid-template-columns: 1fr; }
  .hn-event-item--lg .hn-event-thumb { width: 3.5rem; height: 3.5rem; flex: 0 0 3.5rem; }
  .hn-filter-tabs { flex-wrap: wrap; }
  .hn-article-lead { font-size: 0.95rem; }
  .hn-album-grid { grid-template-columns: 1fr; }
  .hn-photo-grid { grid-template-columns: 1fr; }

  /* Context pop-up menu on small phones */
  .sw-popmenu {
    top: 3.15rem !important;
    right: 0.5rem !important;
    left: auto !important;
    width: 290px !important;
    max-width: calc(100vw - 1rem) !important;
  }
}



/* Content image fallback (news/events without photo) */
.hn-content-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  background: linear-gradient(145deg, #eef3f6 0%, #e2e9ef 100%);
  color: #5b6b7c;
  border-radius: 0.5rem;
}
.hn-content-image-fallback .bi {
  font-size: 2rem;
  opacity: 0.85;
}

/* ========== About page (institutional profile) ========== */
.about-hero {
  background: linear-gradient(180deg, #f4f7fa 0%, #eef2f6 100%);
  padding: 1.75rem 0 2.25rem;
  border-bottom: 1px solid rgba(15, 40, 70, 0.06);
}
.about-hero-title {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 700;
  color: #172331;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.25;
}
.about-hero-lead {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #465568;
  margin: 0.75rem 0 0;
}
.about-section {
  padding: 2.75rem 0;
}
.about-section-title {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  color: #172331;
  margin: 0.25rem 0 1rem;
}
.about-section-head { margin-bottom: 1.5rem; }
.about-narrow { max-width: 48rem; }
.about-prose {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #2c3a4a;
}
.about-prose p { margin-bottom: 1rem; }
.about-prose p:last-child { margin-bottom: 0; }

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: start;
}
.about-info-card {
  background: #fff;
  border: 1px solid rgba(15, 40, 70, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(15, 40, 70, 0.06);
  padding: 1.25rem 1.35rem;
}
.about-info-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #172331;
}
.about-info-list { margin: 0; }
.about-info-list > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(15, 40, 70, 0.06);
}
.about-info-list > div:first-child { border-top: 0; padding-top: 0; }
.about-info-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7a8c;
  font-weight: 600;
}
.about-info-list dd {
  margin: 0;
  color: #172331;
  font-size: 0.95rem;
  line-height: 1.45;
}

.about-motto-section {
  background: linear-gradient(135deg, #0d3b5c 0%, #145a7a 100%);
  color: #fff;
  text-align: center;
}
.about-motto-section .hn-section-kicker { color: rgba(255,255,255,0.75); }
.about-motto-section .about-section-title { color: #fff; }
.about-motto-text {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.35;
}
.about-motto-explain {
  max-width: 40rem;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.65;
}

.about-vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.about-vm-card {
  background: #fff;
  border: 1px solid rgba(15, 40, 70, 0.08);
  border-radius: 0.75rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 6px 18px rgba(15, 40, 70, 0.05);
  height: 100%;
}
.about-vm-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f2f7;
  color: #0d5c7a;
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}
.about-vm-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: #172331;
}
.about-vm-body {
  margin: 0;
  line-height: 1.7;
  color: #3a4a5c;
  font-size: 0.98rem;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.about-value-card {
  background: #fff;
  border: 1px solid rgba(15, 40, 70, 0.07);
  border-radius: 0.65rem;
  padding: 1.1rem 1rem;
  height: 100%;
}
.about-value-icon {
  color: #0d5c7a;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.about-value-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #172331;
}
.about-value-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a5a6c;
}

.about-leader-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(15, 40, 70, 0.08);
  border-radius: 0.75rem;
  padding: 1.35rem;
  box-shadow: 0 6px 18px rgba(15, 40, 70, 0.05);
}
.about-leader-avatar {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #e8eef3;
  color: #5b6b7c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.about-leader-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: #172331;
}
.about-leader-title {
  margin: 0 0 0.65rem;
  color: #0d5c7a;
  font-weight: 600;
  font-size: 0.95rem;
}
.about-leader-bio {
  margin: 0;
  line-height: 1.65;
  color: #3a4a5c;
}

.about-commitment-panel {
  background: #f4f8fb;
  border-left: 4px solid #0d5c7a;
  border-radius: 0 0.65rem 0.65rem 0;
  padding: 1.25rem 1.35rem;
  line-height: 1.75;
  color: #2c3a4a;
}
.about-commitment-panel p { margin: 0; }

.about-location-wrap { padding-bottom: 1rem; }
.about-location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}
.about-location-map-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 62%;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(15, 40, 70, 0.1);
  box-shadow: 0 8px 24px rgba(15, 40, 70, 0.08);
  background: #e8eef3;
}
.about-location-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.about-location-map-fallback {
  min-height: 220px;
  border-radius: 0.75rem;
  border: 1px dashed rgba(15, 40, 70, 0.15);
  background: #f5f8fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #5b6b7c;
  padding: 1.5rem;
  text-align: center;
}
.about-location-map-fallback .bi { font-size: 1.75rem; }
.about-location-school {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #172331;
}
.about-location-address {
  font-style: normal;
  line-height: 1.6;
  color: #3a4a5c;
  margin-bottom: 0.75rem;
}
.about-location-directions { margin-top: 0.5rem; }
.about-location-map-links {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}
.about-back-wrap {
  padding: 0 0 2.5rem;
}

@media (max-width: 991.98px) {
  .about-intro-grid,
  .about-location-grid,
  .about-vm-grid {
    grid-template-columns: 1fr;
  }
  .about-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .about-values-grid {
    grid-template-columns: 1fr;
  }
  .about-leader-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-section { padding: 2rem 0; }
}

.about-card-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7a8c;
}
.about-headmaster-card {
  border-left: 4px solid #0d5c7a;
}
.about-history-card {
  background: #fff;
  border: 1px solid rgba(15, 40, 70, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 6px 18px rgba(15, 40, 70, 0.05);
}
.about-showmore-bar {
  padding: 0 0 0.5rem;
  text-align: center;
}
.about-showmore-btn {
  min-width: 11rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.about-showmore-chevron {
  transition: transform 0.2s ease;
}
.about-showmore-chevron.is-open {
  transform: rotate(180deg);
}
.about-secondary[hidden] {
  display: none !important;
}
@media (max-width: 575.98px) {
  .about-showmore-btn {
    width: 100%;
  }
}

.about-leader-bio, .about-vm-body, .about-prose p {
  white-space: pre-line;
}
.about-vm-card + .about-vm-card { }
.about-section + .about-section { }

/* ===== Announcements (distinct from News) ===== */
.ann-page-hero {
  background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 55%, #0d5c7a 100%);
  color: #fff;
  padding: 2rem 0 2.25rem;
}
.ann-page-title { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0.35rem 0; color: #fff; }
.ann-page-lead { opacity: 0.9; max-width: 40rem; margin: 0.75rem 0 0; }
.ann-page-hero .sw-breadcrumb a { color: rgba(255,255,255,0.85); }
.ann-page-hero .sw-breadcrumb li[aria-current="page"] { color: #fff; }
.ann-list { display: flex; flex-direction: column; gap: 1rem; }
.ann-list-card {
  display: flex; gap: 1rem; background: #fff;
  border: 1px solid rgba(15,40,70,0.1); border-radius: 0.75rem;
  overflow: hidden; box-shadow: 0 6px 18px rgba(15,40,70,0.05);
}
.ann-list-card-rail {
  flex: 0 0 3.5rem; display: flex; align-items: center; justify-content: center;
  background: #0d5c7a; color: #fff; font-size: 1.25rem;
}
.ann-list-card.priority-urgent .ann-list-card-rail,
.ann-home-card.priority-urgent { border-left-color: #b91c1c; }
.ann-list-card.priority-urgent .ann-list-card-rail { background: #b91c1c; }
.ann-list-card.priority-high .ann-list-card-rail { background: #c2410c; }
.ann-list-card-body { flex: 1; padding: 1rem 1.15rem 1.15rem; }
.ann-list-meta, .ann-detail-meta, .ann-home-card-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center;
  font-size: 0.8rem; color: #64748b; margin-bottom: 0.4rem;
}
.ann-badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
}
.ann-badge-pinned { background: #fef3c7; color: #92400e; }
.ann-badge-priority { background: #e0f2fe; color: #075985; }
.ann-list-title { font-size: 1.15rem; margin: 0 0 0.35rem; }
.ann-list-title a { color: #0f2744; text-decoration: none; }
.ann-list-title a:hover { color: #0d5c7a; }
.ann-list-excerpt { margin: 0 0 0.5rem; color: #475569; font-size: 0.95rem; }
.ann-read-link { font-weight: 600; color: #0d5c7a; text-decoration: none; font-size: 0.9rem; }
.ann-read-link:hover { text-decoration: underline; }
.ann-detail-wrap { max-width: 48rem; }
.ann-detail-card {
  background: #fff; border: 1px solid rgba(15,40,70,0.1); border-radius: 0.85rem;
  padding: 1.5rem 1.6rem; box-shadow: 0 8px 24px rgba(15,40,70,0.06);
  border-left: 5px solid #0d5c7a;
}
.ann-detail-card.priority-urgent { border-left-color: #b91c1c; }
.ann-detail-card.priority-high { border-left-color: #c2410c; }
.ann-detail-title { font-size: clamp(1.5rem, 2.5vw, 1.9rem); margin: 0.5rem 0 1rem; color: #0f2744; }
.ann-detail-body { color: #334155; line-height: 1.7; white-space: pre-line; }
.ann-home-subtitle { color: #64748b; font-size: 0.95rem; margin: 0.35rem 0 0; max-width: 36rem; }
.ann-home-grid { display: grid; gap: 0.85rem; }
@media (min-width: 768px) {
  .ann-home-grid { grid-template-columns: repeat(3, 1fr); }
}
.ann-home-card {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: #fff; border: 1px solid rgba(15,40,70,0.1); border-left: 4px solid #0d5c7a;
  border-radius: 0.65rem; padding: 1rem; text-decoration: none; color: inherit;
  box-shadow: 0 4px 14px rgba(15,40,70,0.05); transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ann-home-card:hover { box-shadow: 0 8px 22px rgba(15,40,70,0.1); transform: translateY(-1px); color: inherit; }
.ann-home-card.is-pinned { background: #fffbeb; }
.ann-home-card-icon {
  flex: 0 0 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: #e0f2fe; color: #0d5c7a; display: flex; align-items: center; justify-content: center;
}
.ann-home-card.priority-urgent .ann-home-card-icon { background: #fee2e2; color: #b91c1c; }
.ann-home-card-body { flex: 1; min-width: 0; }
.ann-home-card-title { display: block; color: #0f2744; margin-bottom: 0.25rem; }
.ann-home-card-excerpt { display: block; font-size: 0.88rem; color: #64748b; }
.ann-home-card-chevron { color: #94a3b8; margin-top: 0.25rem; }

/* ===== Updates ticker — clean continuous marquee ===== */
.updates-ticker {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}
.updates-ticker-inner {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 2.4rem;
}
.updates-ticker-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.95rem;
  color: #0b3d91;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #eef2ff;
  border-right: 1px solid #e5e7eb;
}
.updates-ticker-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #e11d48;
}
.updates-ticker-marquee-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.updates-ticker-track {
  display: flex;
  width: max-content;
  animation: updatesTickerScroll 40s linear infinite;
  will-change: transform;
}
.updates-ticker:hover .updates-ticker-track {
  animation-play-state: paused;
}
.updates-ticker-list {
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin: 0;
  padding: 0.45rem 0;
}
.updates-ticker-item {
  display: inline-flex;
  align-items: center;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 600;
}
.updates-ticker-link,
.updates-ticker-text {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
}
.updates-ticker-link:hover {
  color: #0b3d91;
  text-decoration: underline;
}
.updates-ticker-sep {
  margin-left: 1.5rem;
  color: #9ca3af;
  font-weight: 700;
}
@keyframes updatesTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .updates-ticker-track { animation: none; }
}
@media (max-width: 575.98px) {
  .updates-ticker-badge { font-size: 0.65rem; padding: 0 0.65rem; }
  .updates-ticker-item { font-size: 0.82rem; padding-left: 1rem; }
  .updates-ticker-sep { margin-left: 1rem; }
}

/* ===== Gallery lightbox — full viewport modal ===== */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5, 10, 18, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}
/* Override [hidden] so modal always shows when open */
.gal-lightbox.is-open,
.gal-lightbox.is-open[hidden] {
  display: flex !important;
}
.gal-lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4rem 2.5rem;
  box-sizing: border-box;
}
.gal-lightbox-inner img,
#galLightboxImg {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1400px);
  max-height: min(86vh, 900px);
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  background: #0a0f18;
}
.gal-lightbox-caption {
  color: #e2e8f0;
  text-align: center;
  max-width: 42rem;
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.gal-lightbox-close,
.gal-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s ease;
}
.gal-lightbox-close:hover,
.gal-lightbox-nav:hover {
  background: rgba(255,255,255,0.22);
}
.gal-lightbox-close {
  top: 1rem;
  right: 1rem;
}
.gal-lightbox-nav.prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.gal-lightbox-nav.next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.hn-photo-card[data-gallery-item] {
  cursor: zoom-in;
}
@media (max-width: 767.98px) {
  .gal-lightbox-inner {
    padding: 3rem 0.75rem 1.5rem;
  }
  .gal-lightbox-inner img,
  #galLightboxImg {
    max-width: 100vw;
    max-height: 78vh;
  }
  .gal-lightbox-nav.prev { left: 0.35rem; }
  .gal-lightbox-nav.next { right: 0.35rem; }
}


/* ===== Services band — no white tiles ===== */
.home-service-band {
  background: linear-gradient(165deg, #0f2744 0%, #143652 45%, #0d5c7a 100%) !important;
  color: #e8eef5;
  padding: 3rem 0 3.25rem;
}
.home-service-band .home-section-intro,
.home-service-band .home-section-intro-light {
  color: #e8eef5;
}
.home-service-band .home-section-kicker {
  color: #e8c547 !important;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.home-service-band h2 {
  color: #ffffff !important;
  font-weight: 800;
}
.home-service-band .home-section-intro p {
  color: rgba(232, 238, 245, 0.82) !important;
}
.home-service-search {
  display: flex;
  align-items: stretch;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(8, 24, 40, 0.45);
  max-width: 22rem;
}
.home-service-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.65rem 0.9rem;
  outline: none;
}
.home-service-search input::placeholder {
  color: rgba(255,255,255,0.55);
}
.home-service-search button {
  border: 0;
  background: #c9a227;
  color: #1a1a1a;
  padding: 0 1rem;
  font-weight: 700;
  cursor: pointer;
}
.home-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.home-service-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(8, 24, 40, 0.42) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  text-decoration: none;
  color: #f1f5f9 !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.home-service-tile:hover {
  background: rgba(8, 24, 40, 0.62) !important;
  border-color: rgba(201, 162, 39, 0.55) !important;
  transform: translateY(-2px);
  color: #fff !important;
}
.home-service-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.18) !important;
  color: #e8c547 !important;
  flex: 0 0 auto;
}
.home-service-label {
  font-weight: 700;
  flex: 1;
  color: inherit;
}
.home-service-arrow {
  opacity: 0.55;
  color: inherit;
}
.home-service-empty {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: rgba(232, 238, 245, 0.85);
  background: rgba(8, 24, 40, 0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.85rem;
  padding: 1rem 1.15rem;
}
.home-service-empty a {
  color: #e8c547;
  font-weight: 700;
  text-decoration: none;
}






/* ===== Primary nav — white text on themed/dark bar ===== */
.sw-primary-nav {
  background: var(--tenant-nav-bg, #0b3d91) !important;
  border-bottom: 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}
.sw-primary-nav .sw-nav {
  gap: 0.15rem 0.85rem !important;
}
.sw-primary-nav .sw-nav-link,
.sw-primary-nav .sw-nav-dropdown-trigger,
.sw-primary-nav .sw-nav-mega-trigger {
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease !important;
}
.sw-primary-nav .sw-nav-link:hover,
.sw-primary-nav .sw-nav-dropdown-trigger:hover,
.sw-primary-nav .sw-nav-mega-trigger:hover {
  color: #ffffff !important;
  opacity: 0.92;
  box-shadow: inset 0 -3px 0 var(--tenant-accent, #c9a227) !important;
  background: transparent !important;
}
.sw-primary-nav .sw-nav-link.active,
.sw-primary-nav .sw-nav-item.is-active > .sw-nav-link {
  color: #ffffff !important;
  box-shadow: inset 0 -3px 0 var(--tenant-accent, #c9a227) !important;
}
.sw-primary-nav .sw-nav-icon {
  display: none !important;
}
.sw-primary-nav .sw-nav-chevron {
  color: #ffffff !important;
  opacity: 0.85;
}
.sw-primary-nav .sw-nav-login-btn {
  background: rgba(255,255,255,0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 999px !important;
}
.sw-primary-nav .sw-nav-login-btn:hover {
  background: rgba(255,255,255,0.25) !important;
  color: #ffffff !important;
}

/* Upper institution lines */
.sw-header-org-lines {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.12rem !important;
}
.sw-header-org-line {
  display: block !important;
  color: #0f2744 !important;
  text-align: center !important;
}
.sw-header-org-line.is-bold { font-weight: 800 !important; }


/* Language switcher */
.sw-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.sw-lang-option {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.75;
}
.sw-lang-option.is-active {
  opacity: 1;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sw-lang-sep { opacity: 0.45; }

/* On primary nav (white text) */
.sw-nav-lang-wrap {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  margin-right: 0.35rem;
}
.sw-lang-switch--nav .sw-lang-option {
  color: #ffffff !important;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.2rem;
}
.sw-lang-switch--nav .sw-lang-option.is-active {
  box-shadow: inset 0 -2px 0 var(--tenant-accent, #c9a227);
  text-decoration: none;
}
.sw-lang-switch--nav .sw-lang-sep {
  color: rgba(255,255,255,0.55);
}

/* Mobile language modal pills */
.sw-popmenu-lang-pills {
  display: flex;
  gap: 0.5rem;
}
.sw-popmenu-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}
.sw-popmenu-lang-pill.is-active {
  background: rgba(255,255,255,0.18);
  border-color: var(--tenant-accent, #c9a227);
}

/* ===== Critical overrides (post-deploy safety) ===== */
/* Never circular header logos */
.sw-header-crest-card,
.sw-header-crest-card .sw-crest-img,
.sw-header .sw-crest-img,
.sw-header img.sw-crest-img {
  border-radius: 8px !important;
}
.sw-crest-img {
  object-fit: contain !important;
  border-radius: 4px !important;
}

/* Header card opacity + stacking above flag */
.sw-header-card {
  background: rgba(255, 255, 255, var(--header-card-opacity, 0.6)) !important;
  position: relative;
  z-index: 2;
}
.sw-header-flag-canvas {
  opacity: var(--flag-opacity, 0.6);
  z-index: 1;
}
.sw-header-container {
  position: relative;
  z-index: 2;
}

/* Gallery modal always on top when open */
.gal-lightbox.is-open,
.gal-lightbox.is-open[hidden] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.sw-modal-open {
  overflow: hidden !important;
}

/* PCCB-like news/events cards stay consistent */
.hn-news-card-date-badge {
  border-radius: 50%; /* date badge only — intentional circle */
}

/* =============================================================
   HOME SECTIONS — PCCB-aligned polish (Taarifa za umma, Habari, etc.)
   ============================================================= */

/* Quick links — Taarifa za umma / Institutional information */
.home-quick-links {
  background: #f4f7fb;
  padding: 2.75rem 0 3rem;
}
.home-quick-links .home-section-kicker {
  color: var(--sw-teal, #0d9488);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-quick-links h2 {
  font-family: var(--sw-font-serif, "Source Serif 4", Georgia, serif);
  font-weight: 700;
  color: #0f2744;
  margin: 0.35rem 0 0.5rem;
}
.home-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.home-link-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 6.25rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f2744;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 39, 68, 0.06);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.15s ease;
}
.home-link-card:hover,
.home-link-card:focus-visible {
  border-color: #94c5ce;
  color: #0b6834;
  outline: 0;
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.12);
  transform: translateY(-2px);
}
.home-link-card > i:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(145deg, #0f4c81 0%, #0b6834 100%);
  color: #f0c66a;
  font-size: 1.25rem;
}
.home-link-card span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.home-link-card strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.home-link-card small {
  margin-top: 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
}
.home-link-card > i:last-child {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Latest News band */
.hn-news-band {
  background: #f7f9fc;
  padding: 2.75rem 0 3.25rem;
}
.hn-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.hn-news-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.hn-news-card:hover {
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.12);
  transform: translateY(-3px);
}
.hn-news-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}
.hn-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.hn-news-card:hover .hn-news-card-img img {
  transform: scale(1.04);
}
.hn-news-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2rem;
}
.hn-news-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}
.hn-news-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.hn-news-card-title a {
  color: #0f2744;
  text-decoration: none;
}
.hn-news-card-title a:hover {
  color: #009639;
}
.hn-read-more {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f4c81;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.hn-read-more:hover {
  color: #009639;
}

/* Announcements */
.ann-home-section {
  background: #fff;
  padding: 2.5rem 0 3rem;
}
.ann-home-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.5rem;
}
@media (min-width: 992px) {
  .ann-home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ann-home-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0f4c81;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ann-home-card:hover {
  box-shadow: 0 10px 24px rgba(15, 39, 68, 0.1);
  transform: translateY(-2px);
  color: inherit;
}
.ann-home-card.priority-urgent {
  border-left-color: #b91c1c;
  background: #fffafa;
}
.ann-home-card.is-pinned {
  background: #fffbeb;
}
.ann-home-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #e8f0fe;
  color: #0f4c81;
  flex-shrink: 0;
}
.ann-home-card.priority-urgent .ann-home-card-icon {
  background: #fee2e2;
  color: #b91c1c;
}

/* Events + Gallery panels (Matukio / Picha) */
.hn-discover-band {
  background: #f4f7fb;
  padding: 2.75rem 0 3.25rem;
}
.hn-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hn-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(90deg, #0f4c81 0%, #0b6834 100%);
  color: #fff;
}
.hn-panel-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.hn-panel-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hn-panel-link:hover {
  color: #fff;
  text-decoration: underline;
}
.hn-events-list {
  flex: 1;
}
.hn-event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}
.hn-event-item:last-child {
  border-bottom: 0;
}
.hn-event-item:hover {
  background: #f8fafc;
}
.hn-event-thumb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}
.hn-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hn-event-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f4c81;
  color: #fff;
  line-height: 1.1;
}
.hn-event-thumb-placeholder--gallery {
  background: linear-gradient(145deg, #0f4c81, #0b6834);
  font-size: 1.35rem;
}
.hn-event-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2744;
  line-height: 1.3;
}
.hn-event-item:hover .hn-event-title {
  color: #009639;
}
.hn-panel-foot {
  padding: 0.85rem 1.2rem 1.1rem;
  border-top: 1px solid #eef2f7;
}
.hn-panel-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f4c81;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid #0f4c81;
  border-radius: 999px;
}
.hn-panel-more-btn:hover {
  background: #0f4c81;
  color: #fff;
}

@media (max-width: 991.98px) {
  .home-link-grid,
  .hn-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .home-link-grid,
  .hn-news-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery lightbox — hard force visible */
.gal-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(5, 10, 18, 0.96) !important;
}
.gal-lightbox.is-open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.gal-lightbox[hidden]:not(.is-open) {
  display: none !important;
}
.gal-lightbox.is-open[hidden] {
  display: flex !important;
  hidden: false;
}
.hn-photo-card,
.hn-photo-card[data-gallery-item],
[data-gallery-item] {
  cursor: zoom-in !important;
}
.hn-photo-img-wrap {
  position: relative;
}

/* =============================================================
   PCCB-exact news cards + Matukio events panel
   ============================================================= */

.hn-news-band {
  background: #f5f7fa;
  padding: 2.75rem 0 3rem;
}
.hn-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}
@media (max-width: 1199.98px) {
  .hn-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .hn-news-grid { grid-template-columns: 1fr; }
}

.hn-news-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 39, 68, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.hn-news-card:hover {
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.12);
  transform: translateY(-3px);
}

/* Date badge — top-right on image (PCCB) */
.hn-news-card-date-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #0e2a43;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
  pointer-events: none;
}
.hn-date-day { font-size: 0.95rem; font-weight: 800; }
.hn-date-mon { font-size: 0.58rem; font-weight: 600; text-transform: uppercase; margin-top: 0.08rem; }

.hn-news-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #dbe3ec;
  overflow: hidden;
}
.hn-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hn-news-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2.25rem;
  min-height: 10rem;
}

.hn-news-card-body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.hn-news-cat-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b6834;
  background: #e8f7ee;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.hn-news-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f2744;
}
.hn-news-card-title a {
  color: inherit;
  text-decoration: none;
}
.hn-news-card-title a:hover { color: #009639; }
.hn-news-card-excerpt {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hn-read-more {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0b6834;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.hn-read-more:hover { color: #08752f; text-decoration: underline; }

/* Centered View All News pill (PCCB ANGALIA HABARI ZOTE) */
.hn-news-view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
.hn-news-view-all-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.75rem;
  border-radius: 999px;
  background: #0f4c81;
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(15, 76, 129, 0.35);
  transition: background 0.15s ease, transform 0.12s ease;
}
.hn-news-view-all-pill:hover {
  background: #0b6834;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Matukio-style events panel (blue head like PCCB) */
.hn-discover-band .hn-panel-head {
  background: #1e5bb8;
  background: linear-gradient(90deg, #1a56a8 0%, #1e6fd4 100%);
}
.hn-discover-band .col-lg-5 .hn-panel-head {
  background: linear-gradient(90deg, #0f4c81 0%, #0b6834 100%);
}
.hn-event-item {
  padding: 0.85rem 1.15rem;
}
.hn-event-meta {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.2rem;
}
.hn-event-timeago {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Portal brand logo fallback icon sizing */
.portal-brand-logo-fallback i,
.login-logo-fallback i {
  font-size: 1.35rem;
  line-height: 1;
}
.login-logo-fallback i {
  font-size: 2rem;
}
.hn-news-card-media {
  position: relative;
}

/* Article featured image: normal size until user clicks */
.hn-article-featured-img {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 10px;
  margin: 1.25rem 0 1.5rem;
}
.hn-article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  transform: none !important;
  transition: none;
}
.hn-article-featured-img .hn-photo-zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(15, 39, 68, 0.7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.hn-article-featured-img:hover .hn-photo-zoom-hint {
  opacity: 1;
}
/* Body content images: no auto zoom */
.hn-article-body img {
  max-width: 100%;
  height: auto;
  transform: none !important;
}

/* Crest / logo fallbacks must show when image fails */
.sw-crest-placeholder[hidden] { display: none !important; }
.sw-header-crest-card .sw-crest-placeholder:not([hidden]) {
  display: inline-flex !important;
}
.sw-crest-img[style*="display: none"] + .sw-crest-placeholder {
  display: inline-flex !important;
}

/* =============================================================
   Matukio panel — exact PCCB match (blue head, list, timeago)
   ============================================================= */
.hn-panel--matukio {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 39, 68, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hn-panel-head--matukio {
  background: linear-gradient(90deg, #1a56a8 0%, #1e6fd4 55%, #2b7de9 100%) !important;
  padding: 1rem 1.35rem !important;
  justify-content: center !important;
  text-align: center;
}
.hn-panel-head--matukio .hn-panel-title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
}
.hn-events-list--matukio {
  padding: 0.35rem 0;
  flex: 1;
}
.hn-event-item--matukio {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}
.hn-event-item--matukio:last-child {
  border-bottom: 0;
}
.hn-event-item--matukio:hover {
  background: #f5f9ff;
}
.hn-event-item--matukio .hn-event-thumb {
  width: 4rem;
  height: 4rem;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 4rem;
  background: #e8eef5;
}
.hn-event-item--matukio .hn-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hn-event-item--matukio .hn-event-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a56a8, #1e6fd4);
  color: #fff;
  line-height: 1.05;
}
.hn-event-item--matukio .hn-event-cal-day {
  font-size: 1.05rem;
  font-weight: 800;
}
.hn-event-item--matukio .hn-event-cal-mon {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
}
.hn-event-item--matukio .hn-event-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hn-event-item--matukio .hn-event-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a56a8;
}
.hn-event-item--matukio .hn-event-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2744;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hn-event-item--matukio:hover .hn-event-title {
  color: #1a56a8;
}
.hn-event-item--matukio .hn-event-timeago {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #64748b;
}
.hn-event-item--matukio .hn-event-timeago i {
  color: #3b82f6;
  font-size: 0.7rem;
}
.hn-panel-foot--center {
  display: flex;
  justify-content: center;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #eef2f7;
  background: #fafbfd;
}
.hn-panel-more-btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid #1a56a8;
  color: #1a56a8 !important;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.hn-panel-more-btn--outline:hover {
  background: #1a56a8;
  color: #fff !important;
}

/* =============================================================
   Announcements — richer cards
   ============================================================= */
.ann-home-section {
  background: linear-gradient(180deg, #fff 0%, #f4f7fb 100%);
  padding: 2.75rem 0 3rem;
}
.ann-home-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.75rem;
}
@media (min-width: 992px) {
  .ann-home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ann-home-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.3rem 1.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.06);
  border-left: 5px solid #0f4c81;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.15s ease;
  min-height: 11rem;
}
.ann-home-card:hover {
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.12);
  transform: translateY(-3px);
  color: inherit;
}
.ann-home-card.priority-urgent {
  border-left-color: #dc2626;
  background: linear-gradient(180deg, #fff5f5 0%, #fff 55%);
}
.ann-home-card.priority-high {
  border-left-color: #ea580c;
}
.ann-home-card.is-pinned {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
  border-left-color: #d97706;
}
.ann-home-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ann-home-card-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: #e8f0fe;
  color: #0f4c81;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.ann-home-card.priority-urgent .ann-home-card-icon {
  background: #fee2e2;
  color: #dc2626;
}
.ann-home-card.is-pinned .ann-home-card-icon {
  background: #fef3c7;
  color: #d97706;
}
.ann-home-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.ann-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}
.ann-badge-pinned {
  background: #fef3c7;
  color: #b45309;
}
.ann-badge-priority.priority-urgent {
  background: #fee2e2;
  color: #b91c1c;
}
.ann-badge-priority.priority-high {
  background: #ffedd5;
  color: #c2410c;
}
.ann-badge-priority.priority-normal {
  background: #e0f2fe;
  color: #0369a1;
}
.ann-home-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2744;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ann-home-card:hover .ann-home-card-title {
  color: #0f4c81;
}
.ann-home-card-excerpt {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.ann-home-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: #64748b;
}
.ann-home-card-foot time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.ann-home-card-cta {
  font-weight: 700;
  color: #0f4c81;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.ann-home-card:hover .ann-home-card-cta {
  color: #0b6834;
}

/* Picha panel — paired with Matukio */
.hn-panel--picha {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 39, 68, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hn-panel-head--picha {
  background: linear-gradient(90deg, #0b6834 0%, #0d8a45 55%, #12a353 100%) !important;
  padding: 1rem 1.35rem !important;
  justify-content: center !important;
  text-align: center;
}
.hn-panel-head--picha .hn-panel-title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
}
.hn-panel-more-btn--picha {
  border-color: #0b6834 !important;
  color: #0b6834 !important;
}
.hn-panel-more-btn--picha:hover {
  background: #0b6834 !important;
  color: #fff !important;
}

/* Make discover band more obvious spacing */
.hn-discover-band {
  padding: 2.5rem 0 3rem !important;
  background: #f0f4f9 !important;
}
.hn-discover-band .row {
  align-items: stretch;
}

/* ===== Gallery filter tabs + all photos ===== */
.gal-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem;
  background: #eef2f7;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.gal-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.gal-filter-tab:hover { color: #0f4c81; background: rgba(255,255,255,.7); }
.gal-filter-tab.is-active {
  background: #fff;
  color: #0f4c81;
  box-shadow: 0 2px 8px rgba(15,39,68,.1);
}
.gal-filter-count {
  font-size: 0.75rem;
  background: #e2e8f0;
  color: #475569;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.gal-filter-tab.is-active .gal-filter-count {
  background: #dbeafe;
  color: #1d4ed8;
}
.gal-all-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .gal-all-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .gal-all-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.gal-all-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #e2e8f0;
}
.gal-all-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.gal-all-tile:hover img { transform: scale(1.05); }
.gal-all-tile-album {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gal-album-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .gal-album-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .gal-album-grid { grid-template-columns: repeat(3, 1fr); }
}
.gal-album-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(15,39,68,.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gal-album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,39,68,.12);
  color: inherit;
}
.gal-album-cover {
  position: relative;
  aspect-ratio: 16/10;
  background: #e2e8f0;
}
.gal-album-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gal-album-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #94a3b8;
  background: linear-gradient(145deg, #0b6834, #12a353);
  color: #fff;
}
.gal-album-count {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(15,39,68,.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  display: inline-flex; gap: 0.3rem; align-items: center;
}
.gal-album-body { padding: 0.95rem 1.05rem 1.1rem; }
.gal-album-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2744;
  margin-bottom: 0.25rem;
}
.gal-album-card:hover .gal-album-title { color: #0b6834; }
.gal-album-desc {
  display: block;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.4;
}
.gal-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}
.gal-empty i { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; color: #94a3b8; }
.gal-pagination { margin-top: 1.75rem; }

/* ===== News / Event article polish ===== */
.hn-article-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 992px) {
  .hn-article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
  }
}
.hn-article {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: 0 8px 28px rgba(15,39,68,.06);
}
@media (min-width: 768px) {
  .hn-article { padding: 2rem 2.25rem 2.25rem; }
}
.hn-article-title {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #0f2744;
  line-height: 1.25;
  margin: 0.5rem 0 0.85rem;
}
.hn-article-lead {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.hn-article-featured-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.25rem 0 1.5rem;
  cursor: zoom-in;
  background: #e2e8f0;
}
.hn-article-featured-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.hn-article-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #334155;
}
.hn-article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.hn-article-back { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #eef2f7; }
.hn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #0f4c81;
  text-decoration: none;
}
.hn-back-link:hover { color: #0b6834; }

/* ===== About page refactor ===== */
.about-page {
  padding-bottom: 3rem;
}
.about-hero {
  background: linear-gradient(135deg, #0f4c81 0%, #0b6834 100%);
  color: #fff;
  padding: 2.5rem 0 2.75rem;
  margin-bottom: 2rem;
}
.about-hero .hn-section-title,
.about-hero h1 {
  color: #fff !important;
}
.about-layout {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 992px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}
.about-main-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 8px 28px rgba(15,39,68,.06);
}
@media (min-width: 768px) {
  .about-main-card { padding: 2rem 2.25rem; }
}
.about-info-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 8px 28px rgba(15,39,68,.06);
  position: sticky;
  top: 5.5rem;
}
.about-info-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f2744;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #0b6834;
}
.about-info-list {
  margin: 0;
  padding: 0;
}
.about-info-list > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.about-info-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 700;
}
.about-info-list dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f2744;
}
.about-prose {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #334155;
}
.about-section-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eef2f7;
}
.about-section-block h2,
.about-section-block h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2744;
  margin-bottom: 0.65rem;
}


/* =============================================================
   PUBLIC HEADER ONLY — scale fonts/content on small screens
   Keep the same 3-column layout as desktop (both crests visible)
   ============================================================= */
.sw-header-org-line {
  font-size: var(--org-line-size, 14px);
  line-height: 1.2;
  max-width: 100%;
}

/* Tablet: slightly smaller, same structure */
@media (max-width: 991.98px) {
  .sw-header {
    padding: 0.45rem 0 !important;
  }
  .sw-header .sw-header-card {
    padding: 0.4rem 0.7rem !important;
    border-radius: 10px !important;
  }
  .sw-header .sw-header-identity-wrap {
    gap: 0.55rem !important;
  }
  .sw-header .sw-header-identity-text {
    padding: 0 0.35rem !important;
    gap: 0.08rem !important;
  }
  .sw-header .sw-header-crest-card {
    width: 2.65rem !important;
    height: 2.65rem !important;
    padding: 0.15rem !important;
    border-radius: 6px !important;
  }
  .sw-header .sw-crest-img {
    max-height: none !important;
    width: 100% !important;
    height: 100% !important;
  }
  .sw-header .sw-crest-placeholder {
    width: 100% !important;
    height: 100% !important;
    font-size: 0.8rem !important;
  }
  .sw-header .sw-header-org-line {
    font-size: calc(var(--org-line-size, 14px) * 0.78) !important;
  }
  .sw-header .sw-header-org-name {
    font-size: clamp(0.78rem, 2.1vw, 1.05rem) !important;
  }
  .sw-header .sw-header-school-name {
    font-size: clamp(0.7rem, 1.8vw, 0.92rem) !important;
  }
  .sw-header .sw-header-flag-divider {
    width: 5.75rem !important;
    height: 2.5px !important;
    margin: 0.15rem auto !important;
  }
}

/* Phones: compact but still same layout as large screen */
@media (max-width: 767.98px) {
  .sw-header {
    padding: 0.35rem 0 !important;
  }
  .sw-header .sw-header-card {
    padding: 0.3rem 0.5rem !important;
    border-radius: 8px !important;
  }
  .sw-header .sw-header-identity-wrap {
    gap: 0.4rem !important;
  }
  .sw-header .sw-header-identity-text {
    padding: 0 0.2rem !important;
    gap: 0.05rem !important;
  }
  .sw-header .sw-header-crest-card {
    width: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0.12rem !important;
  }
  /* Keep BOTH crests — do not hide left */
  .sw-header .sw-header-crest--left,
  .sw-header .sw-header-crest--right {
    display: flex !important;
  }
  .sw-header .sw-header-org-line {
    font-size: calc(var(--org-line-size, 14px) * 0.62) !important;
  }
  .sw-header .sw-header-org-name {
    font-size: clamp(0.68rem, 2.8vw, 0.88rem) !important;
    letter-spacing: 0.015em !important;
  }
  .sw-header .sw-header-school-name {
    font-size: clamp(0.62rem, 2.5vw, 0.78rem) !important;
    letter-spacing: 0.01em !important;
  }
  .sw-header .sw-header-flag-divider {
    width: 4.25rem !important;
    height: 2px !important;
    margin: 0.1rem auto !important;
  }
}

/* Very small phones: even tighter, still 3-column */
@media (max-width: 400px) {
  .sw-header .sw-header-card {
    padding: 0.25rem 0.35rem !important;
  }
  .sw-header .sw-header-identity-wrap {
    gap: 0.3rem !important;
  }
  .sw-header .sw-header-crest-card {
    width: 1.95rem !important;
    height: 1.95rem !important;
  }
  .sw-header .sw-header-crest--left,
  .sw-header .sw-header-crest--right {
    display: flex !important;
  }
  .sw-header .sw-header-org-line {
    font-size: calc(var(--org-line-size, 14px) * 0.52) !important;
  }
  .sw-header .sw-header-org-name {
    font-size: 0.62rem !important;
  }
  .sw-header .sw-header-school-name {
    font-size: 0.58rem !important;
  }
  .sw-header .sw-header-flag-divider {
    width: 3.25rem !important;
    height: 1.5px !important;
  }
}

/* Override older rule that hid left crest at 360px */
@media (max-width: 360px) {
  .sw-header .sw-header-crest--left {
    display: flex !important;
  }
}


/* ===== Updates ticker — trapezium shape (not plain rectangle) ===== */
.updates-ticker {
  background: transparent !important;
  border-bottom: 0 !important;
  padding: 0.45rem 0 0.55rem;
  overflow: visible;
}
.updates-ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 2.55rem;
  display: flex;
  align-items: stretch;
  /* Trapezium: wider on top, narrower on bottom */
  clip-path: polygon(1.5% 0%, 98.5% 0%, 96% 100%, 4% 100%);
  background: linear-gradient(180deg, #f4f7fc 0%, #eef3f9 100%);
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.08);
  /* soft fallback for browsers without clip-path support via transform */
  transform: perspective(120px) rotateX(0.5deg);
  transform-origin: center top;
}
@supports (clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%)) {
  .updates-ticker-inner {
    transform: none;
  }
}
.updates-ticker-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem 0 1.15rem;
  color: #0b3d91;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  /* Badge itself as small trapezium tab */
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  border-right: 0 !important;
  position: relative;
  z-index: 1;
}
.updates-ticker-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18);
  animation: tickerPulse 1.6s ease-in-out infinite;
}
@keyframes tickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.updates-ticker-marquee-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-right: 1.25rem;
}
.updates-ticker-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2937;
}
@media (max-width: 575.98px) {
  .updates-ticker {
    padding: 0.35rem 0.35rem 0.45rem;
  }
  .updates-ticker-inner {
    clip-path: polygon(2% 0%, 98% 0%, 95% 100%, 5% 100%);
    min-height: 2.35rem;
  }
  .updates-ticker-badge {
    padding: 0 0.7rem 0 0.85rem;
    font-size: 0.62rem;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  }
}

/* =============================================================
   ABOUT — PCCB Historia-style (light header, cards, sidebar)
   ============================================================= */
.about-page,
.about-body-section {
  background: #f3f6fa;
}
.about-ph-band {
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%) !important;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.75rem !important;
}
.about-ph-band .hn-section-title {
  color: #0f2744 !important;
}
.about-ph-band .hn-page-lead {
  color: #475569 !important;
  max-width: 40rem;
  margin-top: 0.65rem;
  line-height: 1.55;
}
.about-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 992px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.75rem;
  }
}
.about-main {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.about-story-card {
  background: #fff;
  border: 1px solid #e5ebf2;
  border-radius: 14px;
  padding: 1.35rem 1.35rem 1.45rem;
  box-shadow: 0 6px 20px rgba(15, 39, 68, 0.05);
}
@media (min-width: 768px) {
  .about-story-card {
    padding: 1.65rem 1.85rem 1.75rem;
  }
}
.about-story-card--accent {
  border-left: 4px solid var(--tenant-primary, #0f4c81);
}
.about-card-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tenant-primary, #0f4c81);
  margin-bottom: 0.35rem;
}
.about-story-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f2744;
  margin: 0 0 0.85rem;
  line-height: 1.3;
}
.about-story-title--sm {
  font-size: 1.1rem;
}
.about-prose {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}
.about-prose p { margin-bottom: 0.85rem; }
.about-motto-quote {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tenant-primary, #0f4c81);
  line-height: 1.45;
  margin: 0.25rem 0 0.75rem;
  font-style: italic;
}
.about-vm-row {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .about-vm-row { grid-template-columns: 1fr 1fr; }
}
.about-vm-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tenant-primary, #0f4c81) 12%, white);
  color: var(--tenant-primary, #0f4c81);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.about-vm-icon--mission {
  background: color-mix(in srgb, var(--tenant-primary, #0b6834) 14%, white);
  color: var(--tenant-primary, #0b6834);
}
.about-values-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.about-values-list li {
  position: relative;
  padding: 0.65rem 0.85rem 0.65rem 2.1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #eef2f7;
  font-weight: 600;
  color: #0f2744;
}
.about-values-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tenant-primary, #0f4c81);
}
.about-leader-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.about-leader-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  background: var(--tenant-primary, #0f4c81);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.about-leader-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f2744;
  margin: 0 0 0.15rem;
}
.about-leader-role {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
  margin: 0 0 0.65rem;
}
.about-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 992px) {
  .about-side {
    position: sticky;
    top: 5.25rem;
  }
}
.about-side-card {
  background: #fff;
  border: 1px solid #e5ebf2;
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: 0 6px 20px rgba(15, 39, 68, 0.05);
}
.about-side-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f2744;
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--tenant-primary, #0b6834);
}
.about-side-list {
  margin: 0;
  padding: 0;
}
.about-side-list > div {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.about-side-list > div:last-child { border-bottom: 0; }
.about-side-list dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
  margin: 0 0 0.15rem;
}
.about-side-list dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2744;
}
.about-side-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.about-side-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #0f2744;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.about-side-links a i {
  color: var(--tenant-primary, #0f4c81);
}
.about-side-links a:hover {
  background: #f1f5f9;
  color: var(--tenant-primary, #0f4c81);
}
.about-back-wrap {
  padding: 0 0 2.5rem;
}
.about-location-section {
  background: #fff;
  border-top: 1px solid #e8eef5;
}

/* =============================================================
   UPDATES TICKER — true trapezium + primary theme
   (matches reference: angled ends, badge tab, light face)
   ============================================================= */
.updates-ticker {
  background: transparent !important;
  border: 0 !important;
  padding: 0.5rem 0.75rem 0.65rem !important;
  overflow: visible;
}
.updates-ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 2.6rem;
  display: flex;
  align-items: stretch;
  position: relative;
  background: #f7f9fc;
  /* Trapezium: top wider than bottom */
  clip-path: polygon(0 0, 100% 0, 97.5% 100%, 2.5% 100%);
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--tenant-primary, #0f4c81) 35%, transparent),
    0 8px 20px rgba(15, 39, 68, 0.08);
  border: 0;
}
.updates-ticker-badge {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.15rem 0 1.25rem !important;
  margin: 0 !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background: var(--tenant-primary, #0f4c81) !important;
  border-right: 0 !important;
  /* Badge as left trapezium tab */
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  position: relative;
  z-index: 2;
}
.updates-ticker-dot {
  width: 0.42rem !important;
  height: 0.42rem !important;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  animation: tickerPulse 1.5s ease-in-out infinite;
}
.updates-ticker-marquee-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-right: 1.5rem;
  background: transparent;
}
.updates-ticker-item,
.updates-ticker-link,
.updates-ticker-text {
  color: #1e293b !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
}
.updates-ticker-link:hover {
  color: var(--tenant-primary, #0f4c81) !important;
}
.updates-ticker-sep {
  color: color-mix(in srgb, var(--tenant-primary, #0f4c81) 55%, #94a3b8) !important;
}
@media (max-width: 575.98px) {
  .updates-ticker { padding: 0.4rem 0.4rem 0.5rem !important; }
  .updates-ticker-inner {
    clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
    min-height: 2.4rem;
  }
  .updates-ticker-badge {
    padding: 0 0.85rem 0 0.9rem !important;
    font-size: 0.62rem !important;
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  }
}

/* =============================================================
   ABOUT HISTORIA — PCCB-inspired modernization
   ============================================================= */
.ah-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(135deg, var(--tenant-primary, #0b3d91) 0%, #0a2744 55%, var(--tenant-primary, #0b6834) 100%);
  color: #fff;
  padding: 2rem 0 2.75rem;
  text-align: center;
}
.ah-breadcrumb ol {
  justify-content: center;
  margin-bottom: 1rem;
}
.ah-breadcrumb a { color: rgba(255,255,255,.85) !important; }
.ah-breadcrumb li { color: rgba(255,255,255,.7); }
.ah-hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f5d76e;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.ah-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.ah-stat {
  min-width: 7.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.ah-stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.ah-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
}
.ah-panel-wrap {
  margin-top: -1.25rem;
  padding-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.ah-panel {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15,39,68,.12);
  border: 1px solid #e8eef5;
  padding: 1.5rem 1.25rem 1.75rem;
}
@media (min-width: 768px) {
  .ah-panel { padding: 1.85rem 1.75rem 2rem; }
}
.ah-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 992px) {
  .ah-grid { grid-template-columns: 1.2fr 1fr 0.95fr; gap: 1.5rem; }
}
.ah-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.ah-pill--blue { background: #1d4ed8; }
.ah-pill--green { background: #15803d; }
.ah-pill--purple { background: #6d28d9; }
.ah-col-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f2744;
  margin: 0 0 0.85rem;
  line-height: 1.3;
}
.ah-highlight {
  background: linear-gradient(90deg, #ecfdf5, #fef3c7);
  border-left: 4px solid var(--tenant-primary, #0f4c81);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: #0f2744;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.ah-prose {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
}
.ah-vm-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  margin-bottom: 0.75rem;
}
.ah-vm-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ah-vm-icon--m { background: #dcfce7; color: #15803d; }
.ah-vm-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f2744;
}
.ah-vm-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}
.ah-motto {
  margin: 0.75rem 0 0;
  font-style: italic;
  font-weight: 700;
  color: var(--tenant-primary, #0f4c81);
}
.ah-values { display: grid; gap: 0.55rem; }
.ah-value {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #e8eef5;
  background: #fff;
}
.ah-value i {
  color: var(--tenant-primary, #0f4c81);
  font-size: 1.05rem;
  margin-top: 0.1rem;
}
.ah-value strong { display: block; font-size: 0.9rem; color: #0f2744; }
.ah-value span { display: block; font-size: 0.8rem; color: #64748b; line-height: 1.35; }

.ah-section { padding: 2.5rem 0; }
.ah-section--soft { background: #f4f7fb; }
.ah-section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.ah-section-head h2 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f2744;
}
.ah-section-head p { margin: 0; color: #64748b; }

.ah-fn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .ah-fn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ah-fn-grid { grid-template-columns: repeat(3, 1fr); } }
.ah-fn-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 4px 14px rgba(15,39,68,.05);
}
.ah-fn-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tenant-primary, #0f4c81) 12%, white);
  color: var(--tenant-primary, #0f4c81);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}
.ah-fn-card h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 800; color: #0f2744; }
.ah-fn-card p { margin: 0; font-size: 0.88rem; color: #64748b; line-height: 1.45; }

.ah-timeline { position: relative; overflow-x: auto; padding: 0.5rem 0 1rem; }
.ah-timeline-line {
  position: absolute;
  left: 0; right: 0; top: 1.35rem;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #22c55e, #3b82f6);
  border-radius: 2px;
  opacity: 0.85;
}
.ah-timeline-track {
  display: flex;
  gap: 1rem;
  min-width: max-content;
  padding-top: 0.15rem;
}
.ah-timeline-item {
  width: 11.5rem;
  flex: 0 0 11.5rem;
  text-align: center;
}
.ah-timeline-dot {
  position: relative;
  z-index: 1;
  width: 2.7rem;
  height: 2.7rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 3px solid #cbd5e1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f2744;
}
.ah-timeline-item.is-first .ah-timeline-dot {
  border-color: #f59e0b;
  background: #fef3c7;
}
.ah-timeline-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  padding: 0.85rem 0.75rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(15,39,68,.05);
  min-height: 7.5rem;
}
.ah-timeline-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f2744;
  line-height: 1.3;
}
.ah-timeline-card p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.ah-leaders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .ah-leaders { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .ah-leaders { grid-template-columns: repeat(4, 1fr); } }
.ah-leader-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,39,68,.06);
}
.ah-leader-photo {
  position: relative;
  aspect-ratio: 1;
  background: #e2e8f0;
}
.ah-leader-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ah-leader-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #94a3b8; background: #f1f5f9;
}
.ah-leader-period {
  position: absolute;
  left: 0.5rem; bottom: 0.5rem;
  background: rgba(15,39,68,.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}
.ah-leader-card.is-current .ah-leader-period {
  background: #ca8a04;
}
.ah-leader-meta {
  padding: 0.75rem 0.85rem 0.9rem;
  text-align: center;
}
.ah-leader-meta strong {
  display: block;
  font-size: 0.95rem;
  color: #0f2744;
  margin-bottom: 0.15rem;
}
.ah-leader-meta span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

/* =============================================================
   TICKER — soft light bar like reference image (not sharp trap)
   ============================================================= */
.updates-ticker {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}
.updates-ticker-inner {
  max-width: none !important;
  margin: 0 !important;
  min-height: 2.35rem !important;
  display: flex !important;
  align-items: stretch !important;
  background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  transform: none !important;
  border-radius: 0 !important;
}
.updates-ticker-badge {
  clip-path: none !important;
  background: transparent !important;
  color: var(--tenant-primary, #0b3d91) !important;
  border-right: 1px solid #e5e7eb !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  padding: 0 0.95rem !important;
}
.updates-ticker-dot {
  background: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15) !important;
}
.updates-ticker-marquee-wrap {
  padding-right: 1rem !important;
}
.updates-ticker-item,
.updates-ticker-link,
.updates-ticker-text {
  color: #1f2937 !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
}

/* About hero breadcrumb left + white title */
.ah-hero {
  text-align: left !important;
}
.ah-breadcrumb {
  margin-bottom: 0.85rem;
}
.ah-breadcrumb ol {
  justify-content: flex-start !important;
  text-align: left !important;
}
.ah-hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35) !important;
  text-align: left !important;
}
.ah-hero-stats {
  justify-content: flex-start !important;
}

/* Leadership organisation tree / role flow */
.ah-org-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}
.ah-org-tree {
  max-width: 1100px;
  margin: 0 auto;
}
.ah-org-tier-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tenant-primary, #0f4c81);
  margin: 0 0 1rem;
}
.ah-org-tier-nodes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.ah-org-node {
  width: 11.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.08);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ah-org-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.12);
}
.ah-org-node.is-current {
  border-color: var(--tenant-primary, #0f4c81);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--tenant-primary, #0f4c81) 22%, transparent);
  width: 13.5rem;
}
.ah-org-photo {
  aspect-ratio: 1;
  background: #e2e8f0;
  position: relative;
}
.ah-org-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ah-org-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  color: #94a3b8;
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
}
.ah-org-node.is-current .ah-org-placeholder {
  background: linear-gradient(145deg, var(--tenant-primary, #0f4c81), #1e3a5f);
  color: rgba(255,255,255,.9);
}
.ah-org-meta {
  padding: 0.85rem 0.75rem 1rem;
}
.ah-org-meta strong {
  display: block;
  font-size: 0.95rem;
  color: #0f2744;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.ah-org-role {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tenant-primary, #0f4c81);
  margin-bottom: 0.25rem;
}
.ah-org-period {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.ah-org-node.is-current .ah-org-period {
  background: color-mix(in srgb, var(--tenant-primary, #0f4c81) 12%, white);
  color: var(--tenant-primary, #0f4c81);
}

/* Connector between current and past */
.ah-org-connector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem auto 1.25rem;
  max-width: 28rem;
}
.ah-org-connector-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}
.ah-org-connector-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

/* Past leaders role flow (horizontal with arrows) */
.ah-org-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.35rem;
}
.ah-org-flow .ah-org-node {
  width: 10.25rem;
}
.ah-org-flow-arrow {
  color: #94a3b8;
  font-size: 1.15rem;
  padding: 0 0.15rem;
  flex-shrink: 0;
}
@media (max-width: 575.98px) {
  .ah-org-flow-arrow { display: none; }
  .ah-org-flow { gap: 0.85rem; }
  .ah-org-node,
  .ah-org-node.is-current,
  .ah-org-flow .ah-org-node {
    width: calc(50% - 0.5rem);
    max-width: 11rem;
  }
}
