/* 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: #0d2030;
  border-bottom: 2px solid #000000;
}

/* Realistic waving flag fabric animation canvas */
.sw-header-flag-canvas {
  position: absolute;
  inset: -12% -8%;
  width: 116%;
  height: 124%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0.65;
}

/* 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 with Radius (PCCB reference) */
.sw-header-card {
  background: #ffffff;
  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;
}

.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 with Radius & Subtle Border — compact proportionate size */
.sw-header-crest-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.25rem 0.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}
.sw-crest-img {
  width: auto;
  max-height: 2.85rem;
  max-width: 3.85rem;
  object-fit: contain;
  border-radius: 4px;
}
.sw-crest-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  background: var(--tenant-primary, #0f4c81);
  color: #ffffff;
  border-radius: 6px;
  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: #f0c66a;
  color: #1a1a1a;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: max-content;
}
.hn-news-cat-badge--events {
  background: #e0f2fe;
  color: #0369a1;
}
.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;
}

/* ------- 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); }
.hn-events-list--page {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.hn-event-item--lg {
  padding: 1rem 1.35rem;
}
.hn-event-item--lg .hn-event-thumb {
  width: 5rem;
  height: 5rem;
  flex: 0 0 5rem;
}
.hn-event-item--lg .hn-event-title { font-size: 0.95rem; white-space: normal; }

/* ------- Article full page ------- */
.hn-article-container {
  max-width: 52rem;
}
.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-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-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; }
