:root {
  --navy: #001a33;
  --navy-deep: #001428;
  --navy-soft: #0a2744;
  --gold: #8b1e3f;
  --gold-dark: #6b152f;
  --gold-light: #a8324a;
  --accent-rgb: 139, 30, 63;
  --text: #1e2d3d;
  --muted: #657789;
  --light-bg: #f5f7fb;
  --border: #e6ebf2;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(0, 26, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 26, 51, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* Wider content — less side empty space */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .container { max-width: 100%; }
}

@media (min-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 1140px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1320px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1480px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1600px;
  }
}

/* Top Bar */
.top-bar {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy-soft));
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  padding: 0.55rem 0;
}

.top-bar-inner {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.top-bar-phone,
.top-bar-email {
  display: none;
}

.top-bar i { color: var(--gold); margin-right: 0.3rem; }
.top-bar a {
  color: #fff;
  opacity: 0.85;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.top-bar a i { margin-right: 0; }
.top-bar a:hover { color: var(--gold); opacity: 1; background: rgba(var(--accent-rgb), 0.15); }
.follow-label { margin-right: 0.15rem; opacity: 0.85; white-space: nowrap; }

@media (min-width: 768px) {
  .top-bar-phone { display: inline-flex; }
  .top-bar-left { gap: 1.25rem; }
  .top-bar-right { gap: 0.5rem; }
}

@media (min-width: 992px) {
  .top-bar-email { display: inline-flex; }
}

@media (max-width: 575.98px) {
  .top-bar {
    font-size: 0.75rem;
    padding: 0.45rem 0;
  }
  .top-bar a {
    width: 26px;
    height: 26px;
  }
  .follow-label { font-size: 0.72rem; }
}

/* Brand */
.brand-crest {
  width: 48px;
  height: 54px;
  background: linear-gradient(160deg, var(--gold-light), var(--gold-dark));
  clip-path: polygon(50% 0%, 100% 18%, 100% 68%, 50% 100%, 0% 68%, 0% 18%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.35);
}

.brand-crest-sm { width: 40px; height: 46px; font-size: 0.95rem; }

.brand-logo {
  width: 48px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-logo-sm {
  width: 40px;
  height: 46px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
}

/* Navbar */
.main-nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,26,51,0.06);
  padding: 0.65rem 0;
}

.main-nav .nav-link {
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.55rem 0.8rem !important;
  position: relative;
  border-radius: 8px;
  white-space: nowrap;
}

.main-nav .nav-link:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

.main-nav .nav-link.active::after,
.main-nav .nav-link:hover::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.main-nav .nav-dropdown {
  border: none;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 26, 51, 0.14);
  padding: 0.45rem;
  margin-top: 0.35rem;
  min-width: 200px;
}

.main-nav .nav-dropdown .dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 0.6rem 0.85rem;
}

.main-nav .nav-dropdown .dropdown-item:hover,
.main-nav .nav-dropdown .dropdown-item:focus {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--navy);
}

.main-nav .nav-dropdown .dropdown-item.active {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--gold-dark);
}

.main-nav .nav-dropdown .dropdown-item i {
  color: var(--gold);
  width: 1.1rem;
  text-align: center;
}

@media (min-width: 992px) {
  .main-nav .navbar-nav .nav-item.dropdown:hover > .nav-dropdown {
    display: block;
    margin-top: 0;
  }
}

.btn-portal {
  background: var(--navy);
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(0,26,51,0.2);
}

.btn-portal:hover {
  background: var(--navy-soft);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(var(--accent-rgb), 0.85);
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.btn-outline-gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

/* Page Hero */
.page-hero {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 20, 40, 0.82), rgba(0, 26, 51, 0.65));
}

.page-hero-content { position: relative; z-index: 1; padding: 2rem 1rem; }
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 0.55rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
}

.breadcrumb-nav a { color: rgba(255,255,255,0.9); }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav .current { color: var(--gold); font-weight: 600; }

/* Home Hero */
.home-hero-wrap {
  position: relative;
  overflow: hidden;
  --hero-overlay: 70;
  --hero-blur: 0px;
  --hero-overlay-r: 0;
  --hero-overlay-g: 26;
  --hero-overlay-b: 51;
  --hero-eyebrow-color: var(--gold);
  --hero-title-color: #ffffff;
  --hero-subtitle-color: #ffffff;
}

.home-hero-wrap .carousel-inner,
.home-hero-wrap .carousel-item {
  min-height: 82vh;
}

.home-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--hero-title-color, #fff);
  background: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: -16px;
  z-index: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(var(--hero-blur));
  transform: scale(1.06);
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

.carousel-item.active .home-hero.is-ken-burns::after {
  animation: heroKenBurnsRight 10.5s linear forwards;
}

.carousel-item.active .home-hero.is-ken-burns[data-ken-dir="left"]::after {
  animation-name: heroKenBurnsLeft;
}

@keyframes heroKenBurnsRight {
  from { transform: scale(1.06) translate3d(-1.2%, 0, 0); }
  to { transform: scale(1.16) translate3d(1.2%, 0, 0); }
}

@keyframes heroKenBurnsLeft {
  from { transform: scale(1.06) translate3d(1.2%, 0, 0); }
  to { transform: scale(1.16) translate3d(-1.2%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-item.active .home-hero.is-ken-burns::after {
    animation: none;
  }
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(var(--hero-overlay-r), var(--hero-overlay-g), var(--hero-overlay-b), calc(var(--hero-overlay) * 0.0095)) 0%,
    rgba(var(--hero-overlay-r), var(--hero-overlay-g), var(--hero-overlay-b), calc(var(--hero-overlay) * 0.006)) 55%,
    rgba(var(--hero-overlay-r), var(--hero-overlay-g), var(--hero-overlay-b), calc(var(--hero-overlay) * 0.0025)) 100%
  );
  pointer-events: none;
}

/* Effect 1: soft light sweep across the slide */
.home-hero-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.home-hero-shine::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -40%;
  width: 42%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.07) 55%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-18deg);
  opacity: 0;
}

.carousel-item.active .home-hero-shine::before {
  animation: heroLightSweep 10.5s ease-in-out 0.6s 1;
}

@keyframes heroLightSweep {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  12% { opacity: 1; }
  55% { transform: translateX(220%) skewX(-18deg); opacity: 0.7; }
  100% { transform: translateX(260%) skewX(-18deg); opacity: 0; }
}

.home-hero-content { position: relative; z-index: 2; max-width: 720px; padding: 4rem 0 6rem; }

/* Effect 2: staggered reveal + accent line under eyebrow */
.carousel-item.active .hero-eyebrow,
.carousel-item.active .hero-title-continuous,
.carousel-item.active .hero-subtitle,
.carousel-item.active .hero-actions {
  animation: heroStaggerIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.carousel-item.active .hero-eyebrow { animation-delay: 0.08s; }
.carousel-item.active .hero-title-continuous { animation-delay: 0.18s; }
.carousel-item.active .hero-subtitle { animation-delay: 0.34s; }
.carousel-item.active .hero-actions { animation-delay: 0.48s; }

@keyframes heroStaggerIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-family: 'Great Vibes', 'Segoe Script', 'Brush Script MT', cursive;
  color: var(--hero-eyebrow-color, var(--gold));
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
  display: inline-block;
  position: relative;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-eyebrow::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin-top: 0.35rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hero-eyebrow-color, var(--gold)), transparent);
}

.carousel-item.active .hero-eyebrow::after {
  animation: heroAccentDraw 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes heroAccentDraw {
  from { width: 0; }
  to { width: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-item.active .home-hero-shine::before,
  .carousel-item.active .hero-eyebrow,
  .carousel-item.active .hero-title-continuous,
  .carousel-item.active .hero-subtitle,
  .carousel-item.active .hero-actions,
  .carousel-item.active .hero-eyebrow::after {
    animation: none;
  }
  .carousel-item.active .hero-eyebrow::after {
    width: 4.5rem;
  }
}

.home-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.12;
  margin-bottom: 1.1rem;
  min-height: 1.2em;
  color: var(--hero-title-color, #fff);
}

.home-hero h1.hero-title-continuous::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 4px;
  background: var(--hero-eyebrow-color, var(--gold));
  vertical-align: -0.05em;
  animation: heroCaretBlink 0.85s steps(1) infinite;
  opacity: 0;
}

.home-hero h1.hero-title-continuous.is-typing::after {
  opacity: 1;
}

@keyframes heroCaretBlink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.home-hero p,
.home-hero .hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 1.85rem;
  max-width: 520px;
  line-height: 1.7;
  color: var(--hero-subtitle-color, #fff);
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
}

.hero-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Effect 3: circular slide timer + morphing indicators */
.home-hero-progress {
  position: absolute;
  right: 1.35rem;
  bottom: 1.45rem;
  z-index: 4;
  width: 36px;
  height: 36px;
  pointer-events: none;
}

.home-hero-progress-ring {
  display: block;
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
}

.home-hero-progress-track,
.home-hero-progress-bar {
  stroke-width: 2.75;
}

.home-hero-progress-track {
  stroke: rgba(255, 255, 255, 0.28);
}

.home-hero-progress-bar {
  stroke: var(--hero-eyebrow-color, var(--gold));
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 97.4;
  transition: none;
}

.home-hero-progress-bar.is-running {
  animation: heroProgressRing linear forwards;
  animation-duration: var(--hero-progress-ms, 10000ms);
}

@keyframes heroProgressRing {
  from { stroke-dashoffset: 97.4; }
  to { stroke-dashoffset: 0; }
}

.home-hero-indicators {
  bottom: 1.75rem;
  margin-bottom: 0;
  z-index: 3;
  gap: 0.35rem;
}

.home-hero-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  margin: 0 3px !important;
  background-color: rgba(255,255,255,0.45);
  opacity: 1;
  transition: width 0.35s ease, background-color 0.25s ease, transform 0.25s ease;
}

.home-hero-indicators .active {
  width: 28px;
  background-color: var(--hero-eyebrow-color, var(--gold));
  transform: none;
}

.home-hero-control {
  width: 52px;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.home-hero-wrap:hover .home-hero-control,
.home-hero-wrap:focus-within .home-hero-control {
  opacity: 1;
}

.home-hero-control-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 16, 36, 0.45);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.9rem;
  transition: 0.2s ease;
  backdrop-filter: blur(6px);
}

.home-hero-control:hover .home-hero-control-icon {
  background: rgba(var(--accent-rgb), 0.92);
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-progress-bar.is-running {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@media (max-width: 991.98px) {
  .home-hero-control {
    opacity: 1;
  }
  .home-hero-progress {
    right: 0.85rem;
    bottom: 1.15rem;
    width: 30px;
    height: 30px;
  }
  .home-hero-progress-ring {
    width: 30px;
    height: 30px;
  }
}

.home-hero-wrap .carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-hero-wrap .carousel-fade .carousel-item.active {
  opacity: 1;
}

.home-hero-wrap .carousel-fade .carousel-item.active.carousel-item-start,
.home-hero-wrap .carousel-fade .carousel-item.active.carousel-item-end {
  opacity: 0;
}

.home-hero-wrap .carousel-fade .carousel-item-next.carousel-item-start,
.home-hero-wrap .carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

@media (max-width: 575.98px) {
  .hero-actions {
    gap: 0.45rem;
  }
  .hero-actions .btn-gold,
  .hero-actions .btn-outline-gold {
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
  }
}

/* Stats Bar */
.stats-section { margin-top: -55px; position: relative; z-index: 2; }

.stats-bar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem 1rem;
}

@media (min-width: 992px) {
  .stats-section .container {
    max-width: min(96vw, 1600px);
  }
}

.stat-item { text-align: center; padding: 0.65rem; position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-item i {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.65rem;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--gold);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-item .stat-value { font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-item .stat-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-top: 0.15rem; }

/* Sections */
.section { padding: 2.75rem 0; }
.section-sm { padding: 2rem 0; }
.bg-light { background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%) !important; }

/* Tighter Bootstrap spacing on public pages */
.section .mb-5 { margin-bottom: 1.5rem !important; }
.section .mb-4 { margin-bottom: 0.75rem !important; }
.section .row.g-4,
.footer-main.g-4 {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

.section-eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  display: inline-block;
}

.section-title {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.link-gold {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-gold:hover { color: var(--gold-dark); gap: 0.55rem; }

/* Features */
.feature-item {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 0;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid transparent;
  transition: var(--transition);
  height: 100%;
}

.feature-item:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.08));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.feature-item h5 {
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.55;
}

/* News */
.news-card {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.35rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
  border-color: transparent;
  color: inherit;
}

.news-thumb {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.news-date {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.4rem;
}

.news-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.news-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.news-list-card {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 1.25rem;
  overflow: hidden;
  transition: var(--transition);
}

.news-list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
  color: inherit;
}

.news-list-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-list-card .news-date {
  margin: 1rem 1.15rem 0.5rem;
}

.news-list-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 1.15rem 0.5rem;
  line-height: 1.35;
}

.news-list-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 1.15rem 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.news-list-card:hover .news-read-more {
  color: var(--navy);
}

.news-article-meta {
  margin-bottom: 1.25rem;
}

.news-article-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.news-article-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-article-excerpt {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.news-article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
}

.page-hero-sm {
  min-height: 140px;
}

.page-hero-sm .page-hero-content h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

/* Resources */
.resources-intro {
  font-size: 1.05rem;
  color: #445566;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.resource-page-grid-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 26, 51, 0.2) transparent;
}

.resource-page-grid-scroll.is-scrollable {
  border: 1px solid #e8eef5;
  border-radius: 12px;
  padding: 0.65rem;
  background: #fafbfd;
}

.resource-page-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 0.55rem;
  align-items: stretch;
}

.resource-page-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.resource-page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  padding: 0.7rem 0.7rem 0.65rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0, 26, 51, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.resource-page-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 26, 51, 0.08);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: inherit;
}

.resource-page-num {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #9aa8b5;
}

.resource-page-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--gold-dark);
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.resource-page-card h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.25rem;
  padding-right: 1.2rem;
  line-height: 1.25;
}

.resource-page-card p {
  font-size: 0.75rem;
  color: #667788;
  margin: 0 0 0.45rem;
  line-height: 1.3;
  flex: 1;
}

.resource-page-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: auto;
}

/* Keep 5 columns on desktop; only reduce on smaller screens */
@media (max-width: 991.98px) {
  .resource-page-grid,
  .resource-page-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .resource-page-grid,
  .resource-page-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .resource-page-grid,
  .resource-page-grid-5 {
    grid-template-columns: 1fr;
  }
}

.resource-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.resource-table-wrap {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 26, 51, 0.05);
}

.resource-table {
  margin: 0;
  width: 100%;
}

.resource-table thead th {
  background: #f4f7fb;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e8eef5;
  padding: 0.45rem 0.75rem;
  white-space: nowrap;
}

.resource-table tbody td {
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.86rem;
  color: var(--navy);
  vertical-align: middle;
  line-height: 1.25;
}

.resource-table tbody tr:last-child td {
  border-bottom: none;
}

.resource-table tbody tr:hover td {
  background: #fafbfd;
}

.resource-td-num {
  font-weight: 800;
  color: #8a9aab;
}

.resource-table-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-weight: 700;
}

.resource-status {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.resource-status-open {
  background: rgba(25, 135, 84, 0.12);
  color: #157347;
}

.resource-status-closed {
  background: rgba(108, 117, 125, 0.14);
  color: #5c636a;
}

.resource-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.1);
}

.resource-new-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #ff3b3b, #c62828);
  clip-path: polygon(50% 0%, 58.3% 19.1%, 75% 6.7%, 72.6% 27.4%, 93.3% 25%, 80.9% 41.7%, 100% 50%, 80.9% 58.3%, 93.3% 75%, 72.6% 72.6%, 75% 93.3%, 58.3% 80.9%, 50% 100%, 41.7% 80.9%, 25% 93.3%, 27.4% 72.6%, 6.7% 75%, 19.1% 58.3%, 0% 50%, 19.1% 41.7%, 6.7% 25%, 27.4% 27.4%, 25% 6.7%, 41.7% 19.1%);
  vertical-align: middle;
  animation: resourceNewPulse 1.6s ease-in-out infinite;
}

@keyframes resourceNewPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.8; }
}

.resource-download-btn:hover {
  color: var(--navy);
  background: rgba(var(--accent-rgb), 0.18);
}

.resource-doc-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: inherit;
  min-height: 52px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-doc-item:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 6px 16px rgba(0, 26, 51, 0.07);
  color: inherit;
}

.resource-doc-num {
  flex-shrink: 0;
  width: 1.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #8a9aab;
  text-align: center;
}

.resource-doc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.resource-doc-meta {
  flex: 1;
  min-width: 0;
}

.resource-doc-meta strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--navy);
  font-size: 0.88rem;
  margin-bottom: 0;
  line-height: 1.25;
}

.resource-doc-size {
  font-size: 0.72rem !important;
  font-weight: 600;
  color: #7a8a99 !important;
}

.resource-doc-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}

.resource-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #7a8a99;
  background: #f7f9fc;
  border-radius: 14px;
  border: 1px dashed #d7e0ea;
}

.resource-empty i {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
  color: #aab6c3;
}

.resource-empty p { margin: 0; }

@media (max-width: 575.98px) {
  .resource-doc-action { display: none; }
  .resource-table thead th:nth-child(3),
  .resource-table tbody td:nth-child(3) {
    /* keep status visible */
  }
  .resource-download-btn span { display: none; }
}

/* Tour */
.tour-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 300px;
  /* Never taller than the 4 stacked side tiles (4 * 90px + 3 gaps of 0.85rem) */
  max-height: calc(360px + 2.55rem);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.tour-main img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  transition: 0.6s ease;
}

.tour-main:hover img { transform: scale(1.05); }

.tour-main.has-video {
  cursor: pointer;
}

.tour-main.has-video:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.tour-video-modal {
  background: #000;
  border: none;
  border-radius: 14px;
  overflow: hidden;
}

.tour-video-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  opacity: 0.9;
}

.tour-video-frame {
  background: #000;
}

.tour-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tour-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,26,51,0.2), rgba(0,26,51,0.7));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.45);
  transition: var(--transition);
}

.tour-main:hover .play-btn { transform: scale(1.08); }

.tour-side-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.85rem;
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,26,51,0.1);
  display: block;
  text-decoration: none;
  color: inherit;
}

.tour-side-item:last-child { margin-bottom: 0; }
.tour-side-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: 0.4s ease;
}
.tour-side-item:hover img { transform: scale(1.08); }
.tour-side-item span {
  position: absolute;
  inset: 0;
  background: rgba(0,26,51,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

a.tour-side-item:hover span {
  color: #fff;
  background: rgba(0,26,51,0.55);
}

/* CTA Bar */
.cta-bar {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy-soft) 50%, var(--navy));
  color: #fff;
  padding: 2rem 0;
}

.cta-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 0;
}

.cta-item i {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-item h6 {
  margin: 0;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.cta-item p {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* About */
.about-image {
  border-radius: var(--radius);
  width: 100%;
  height: 340px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.pillar-box {
  text-align: center;
  padding: 1.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--light-bg);
  height: 100%;
  transition: var(--transition);
  border: 1px solid transparent;
}

.pillar-box:hover {
  background: var(--white);
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.pillar-box i {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--gold);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-box h5 { color: var(--navy); font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; }
.pillar-box p { color: var(--muted); font-size: 0.85rem; margin: 0; }

.standout-box {
  background: linear-gradient(145deg, var(--navy), var(--navy-soft));
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.35rem;
  box-shadow: var(--shadow-lg);
}

.standout-box h4 {
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.standout-box li {
  list-style: none;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.standout-box li i { color: var(--gold); margin-top: 0.2rem; }

/* Filter buttons */
.filter-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  justify-content: flex-start;
  margin-bottom: 1.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.filter-btns::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,26,51,0.04);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.3);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .filter-btns {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Staff cards */
.staff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,26,51,0.04);
}

.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.staff-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  transition: 0.45s ease;
  background: #e8eef5;
}

.staff-card:hover img { transform: scale(1.03); }

.staff-card h5 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.staff-card .role {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.staff-card .creds {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}

.staff-card .subjects {
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.2rem 0 0;
}

/* Teachers / Head of Department tabs */
.staff-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  border-bottom: 1px solid var(--border);
}

.staff-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 0.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.staff-tab-btn:hover { color: var(--navy); }

.staff-tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.staff-tab-count {
  display: inline-block;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.4rem;
  transition: var(--transition);
}

.staff-tab-btn.active .staff-tab-count {
  background: var(--gold);
  color: #fff;
}

/* Head of Department cards */
.staff-card-head {
  position: relative;
  border-color: rgba(var(--accent-rgb), 0.25);
}

.staff-head-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.35);
  z-index: 2;
}

.staff-card-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  box-shadow: 0 8px 22px rgba(0, 26, 51, 0.06);
}

.staff-card-btn .staff-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #e8eef5;
}

.staff-card-btn .staff-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 26, 51, 0.28));
  opacity: 0.55;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.staff-card-btn img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s ease;
}

.staff-card-btn .staff-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem 0.85rem;
  flex: 1;
}

.staff-card-btn h5 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.staff-card-btn .role {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.staff-card-btn:hover,
.staff-card-btn:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 18px 36px rgba(0, 26, 51, 0.14);
  border-color: rgba(0, 26, 51, 0.12);
  outline: none;
}

.staff-card-btn:hover .staff-card-media::after,
.staff-card-btn:focus-visible .staff-card-media::after {
  opacity: 0.85;
}

.staff-card-btn:hover img,
.staff-card-btn:focus-visible img {
  transform: scale(1.05);
}

.leadership-view-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 26, 51, 0.06);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

.leadership-view-hint i {
  font-size: 0.62rem;
  transition: transform 0.25s ease;
}

.staff-card-btn:hover .leadership-view-hint,
.staff-card-btn:focus-visible .leadership-view-hint {
  background: var(--navy);
  color: #fff;
  gap: 0.55rem;
}

.staff-card-btn:hover .leadership-view-hint i,
.staff-card-btn:focus-visible .leadership-view-hint i {
  transform: translateX(2px);
}

.leadership-section {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(var(--accent-rgb), 0.05), transparent 60%),
    var(--light-bg);
}

.leadership-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.leadership-kicker {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.leadership-intro .section-title {
  margin-bottom: 0.75rem;
}

.leadership-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  justify-content: center;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .leadership-grid {
    grid-template-columns: repeat(3, minmax(0, 200px));
    gap: 1.15rem;
    justify-content: center;
    max-width: 680px;
  }
}

@media (min-width: 1100px) {
  .leadership-grid {
    grid-template-columns: repeat(4, minmax(0, 190px));
    gap: 1.2rem;
    max-width: 860px;
  }
}

.leadership-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(0, 26, 51, 0.08);
  border-radius: 18px;
  background: var(--white);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 10px 28px rgba(0, 26, 51, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: leadershipTileIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--tile-delay, 0ms);
}

@keyframes leadershipTileIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leadership-tile:hover,
.leadership-tile:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 22px 44px rgba(0, 26, 51, 0.12);
  outline: none;
}

.leadership-tile-media {
  position: relative;
  display: block;
  width: 72%;
  max-width: 168px;
  aspect-ratio: 1 / 1;
  max-height: 168px;
  margin: 1rem auto 0;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(160deg, #d7e0ea, #eef2f7);
}

.leadership-tile-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 20, 40, 0.55));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.leadership-tile:hover .leadership-tile-media::after,
.leadership-tile:focus-visible .leadership-tile-media::after {
  opacity: 1;
}

.leadership-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.leadership-tile:hover .leadership-tile-media img,
.leadership-tile:focus-visible .leadership-tile-media img {
  transform: scale(1.05);
}

.leadership-tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 1rem 1.05rem 1.15rem;
  min-height: 5.2rem;
}

.leadership-tile-name {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.leadership-tile-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gold-dark);
}

.leadership-tile-creds {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 0.15rem;
}

.staff-tile {
  cursor: default;
}

.staff-tile .leadership-tile-action {
  display: none;
}

.leadership-tile-action {
  position: absolute;
  right: 0.85rem;
  bottom: 0.95rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 26, 51, 0.06);
  color: var(--navy);
  font-size: 0.75rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.leadership-tile:hover .leadership-tile-action,
.leadership-tile:focus-visible .leadership-tile-action {
  background: var(--navy);
  color: #fff;
  transform: translateX(2px);
}

.leadership-modal .modal-dialog {
  max-width: 780px;
}

.leadership-modal-content {
  position: relative;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 26, 51, 0.22);
}

.leadership-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 26, 51, 0.12);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.leadership-modal-close:hover {
  background: #fff;
  transform: scale(1.05);
}

.leadership-profile {
  display: grid;
  grid-template-columns: minmax(240px, 42%) 1fr;
  min-height: 360px;
}

.leadership-profile-media {
  position: relative;
  background: linear-gradient(165deg, var(--navy), var(--navy-soft));
  min-height: 320px;
}

.leadership-profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leadership-profile-copy {
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leadership-profile-badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leadership-profile-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.leadership-profile-creds {
  margin: -0.35rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.leadership-profile-remarks {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: normal;
}

.leadership-profile-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 767.98px) {
  .leadership-tile-body {
    padding: 0.85rem 0.85rem 1rem;
    min-height: 4.6rem;
    padding-right: 2.6rem;
  }

  .leadership-tile-name {
    font-size: 0.88rem;
  }

  .leadership-tile-title {
    font-size: 0.74rem;
  }

  .leadership-tile-action {
    width: 30px;
    height: 30px;
    right: 0.65rem;
    bottom: 0.75rem;
  }

  .leadership-profile {
    grid-template-columns: 1fr;
  }

  .leadership-profile-media {
    min-height: 240px;
    max-height: 280px;
  }

  .leadership-profile-copy {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .leadership-modal-close {
    background: rgba(255, 255, 255, 0.96);
  }
}

/* Legacy leadership helpers kept for safety */
.leadership-card .leadership-remarks {
  white-space: normal;
  margin-top: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Best student cards */
.best-students-lede {
  max-width: 640px;
}

@media (min-width: 768px) {
  .best-students-lede {
    max-width: none;
    white-space: nowrap;
  }
}

.best-student-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.best-student-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: inherit;
}

.best-student-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.best-student-head img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8eef5;
}

.best-student-head h5 {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.best-student-meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.best-student-grade-badge {
  margin-left: auto;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50px;
  padding: 0.3rem 0.75rem;
  flex-shrink: 0;
}

.best-student-remarks {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.best-student-grades {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
}

.best-student-grades li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  color: var(--navy);
}

.best-student-grades li strong {
  color: var(--gold-dark);
  font-weight: 800;
}

.best-student-detail {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.best-student-detail img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8eef5;
}

.best-student-detail h2 {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.best-student-grade-badge-lg {
  margin-left: auto;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
}

/* Gallery */
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,26,51,0.08);
  cursor: pointer;
}

.gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  background: rgba(0,26,51,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: 0.5s ease;
  display: block;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 1.6rem 0.85rem 0.6rem;
  background: linear-gradient(to top, rgba(0,26,51,0.85), rgba(0,26,51,0));
  color: #fff;
  pointer-events: none;
  z-index: 1;
}

.gallery-item-caption strong { font-size: 0.85rem; font-weight: 700; line-height: 1.25; }
.gallery-item-caption em { font-style: normal; font-size: 0.72rem; color: rgba(255,255,255,0.78); }

.gallery-item-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 26, 51, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 1;
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 20, 40, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.gallery-lightbox.open { opacity: 1; visibility: visible; }

.gallery-lightbox-stage { max-width: 90vw; max-height: 88vh; text-align: center; }

.gallery-lightbox-stage img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: block;
}

.gallery-lightbox-caption {
  color: #fff;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.gallery-lightbox-caption:empty { display: none; }

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-color: transparent;
}

.gallery-lightbox-close { top: 22px; right: 22px; }
.gallery-lightbox-nav { top: 50%; transform: translateY(-50%); }
.gallery-lightbox-prev { left: 22px; }
.gallery-lightbox-next { right: 22px; }

.gallery-lightbox.single-photo .gallery-lightbox-nav { display: none; }

@media (max-width: 768px) {
  .gallery-lightbox-nav { width: 38px; height: 38px; font-size: 0.95rem; }
  .gallery-lightbox-prev { left: 8px; }
  .gallery-lightbox-next { right: 8px; }
  .gallery-lightbox-close { top: 10px; right: 10px; }
}

.gallery-col { margin-bottom: 0.65rem; transition: opacity 0.3s ease, transform 0.3s ease; }
.gallery-col.is-hidden,
.staff-col.is-hidden {
  display: none !important;
}

.staff-grid-scroll,
.gallery-grid-scroll,
.leadership-grid-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.35) transparent;
  padding-right: 0.15rem;
}

.staff-grid-scroll::-webkit-scrollbar,
.gallery-grid-scroll::-webkit-scrollbar,
.leadership-grid-scroll::-webkit-scrollbar { width: 6px; }
.staff-grid-scroll::-webkit-scrollbar-thumb,
.gallery-grid-scroll::-webkit-scrollbar-thumb,
.leadership-grid-scroll::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.35);
  border-radius: 6px;
}

.staff-grid-scroll.is-scrollable,
.gallery-grid-scroll.is-scrollable,
.leadership-grid-scroll.is-scrollable {
  border-bottom: 1px solid var(--border);
}

/* Contact */
.contact-info-list { list-style: none; padding: 0; margin: 0; }

.contact-info-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.15rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--light-bg);
  transition: var(--transition);
}

.contact-info-list li:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-info-list .ci-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.08));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-list h6 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.contact-info-list p {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.contact-form .form-control {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  background: var(--light-bg);
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  height: 230px;
  margin-bottom: 0;
  box-shadow: var(--shadow);
  background: #e8eef5;
  border: 1px solid rgba(0, 26, 51, 0.06);
}

.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-find-col {
  display: flex;
  flex-direction: column;
}

/* Same total height as old map + gap + side image, trimmed slightly */
.map-embed-tall {
  flex: 1 1 auto;
  width: 100%;
  height: 400px;
  min-height: 400px;
}

@media (max-width: 991.98px) {
  .map-embed-tall {
    height: 340px;
    min-height: 340px;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--navy-soft), var(--navy-deep));
  color: rgba(255,255,255,0.85);
  padding-top: 2.25rem;
}

.footer-title {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.footer-about {
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0.85;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

@media (max-width: 575.98px) {
  .footer-title {
    font-size: 0.95rem;
  }
  .footer-links a {
    font-size: 0.82rem;
  }
  .footer-links li {
    margin-bottom: 0.4rem;
  }
}

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  align-items: flex-start;
}
.footer-contact i { color: var(--gold); margin-top: 0.2rem; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.04);
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.newsletter-form .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.5rem;
  padding: 1rem 0;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom a:hover { color: #fff; }

.footer-legal a { color: rgba(255,255,255,0.75); margin: 0 0.35rem; }
.footer-legal a:hover { color: var(--gold); }
.footer-legal span { opacity: 0.4; }

/* Alert */
.alert-custom {
  border-radius: 12px;
  border: none;
  box-shadow: var(--shadow);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-up { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

.reveal { opacity: 0; }

@media (max-width: 991.98px) {
  .main-nav .nav-link.active::after,
  .main-nav .nav-link:hover::after { display: none; }
  .main-nav .nav-link.active { color: var(--gold) !important; background: rgba(var(--accent-rgb), 0.1); }
  .btn-portal { margin-top: 0.75rem; width: 100%; }
  .stats-section { margin-top: -35px; }
  .stat-item:not(:last-child)::after { display: none; }
  .home-hero-wrap .carousel-inner,
  .home-hero-wrap .carousel-item,
  .home-hero { min-height: 72vh; }
  .home-hero-content { padding: 4rem 0 5.5rem; }
}

@media (max-width: 575.98px) {
  .stat-item .stat-value { font-size: 1.3rem; }
  .gallery-item img { height: 180px; }
  .section {
    padding: 0.7rem 0 1.25rem;
  }
  .section-sm {
    padding: 0.65rem 0 1rem;
  }
  .filter-btns {
    margin-bottom: 0.75rem;
  }
  .page-hero {
    min-height: 110px;
  }
  .page-hero-content {
    padding: 1.1rem 0.85rem;
  }
  .page-hero h1 {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
  }
  .page-hero-sm {
    min-height: 100px;
  }
  .page-hero-sm .page-hero-content h1 {
    font-size: 1.05rem;
  }
  .breadcrumb-nav {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
  }
  .staff-card {
    padding: 0.7rem;
  }
  .staff-card img {
    height: 110px;
    margin-bottom: 0.55rem;
  }
  .staff-card h5 {
    font-size: 0.88rem;
  }
  .staff-card .role {
    font-size: 0.75rem;
  }
  .staff-card .creds {
    font-size: 0.7rem;
  }
  .staff-card .subjects {
    font-size: 0.68rem;
  }
  .staff-card-btn {
    padding: 0;
  }
  .staff-card-btn img {
    height: 100%;
    margin-bottom: 0;
  }
  .staff-card-btn .staff-card-body {
    padding: 0.75rem 0.8rem 0.85rem;
  }
  .staff-card-btn h5 {
    font-size: 0.86rem;
  }
  .staff-card-btn .role {
    font-size: 0.72rem;
  }
  .leadership-view-hint {
    margin-top: 0.45rem;
    font-size: 0.68rem;
    padding: 0.22rem 0.55rem;
  }
}

body.no-copy {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body.no-copy input,
body.no-copy textarea,
body.no-copy [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
