:root {
  --light-blue: #16234A;
  --light-blue-hover: #0F1A33;
  --light-blue-vivid: #1E3A8A;
  --navy-900: #0F1A33;
  --navy-800: #16234A;
  --navy-700: #1E3A8A;
  --navy-600: #2A3E70;
  --red-600: #DC2626;
  --red-700: #B91C1C;
  --paper: #F8FAFC;
  --paper-raised: #FFFFFF;
  --band-bg: #FFFFFF;
  --heading-color: #0F1A33;
  --ink: #16234A;
  --ink-soft: #273B6B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --focus: #DC2626;
  box-sizing: border-box;
}

:root[data-theme="dark"] {
  --light-blue: #FFFFFF;
  --light-blue-hover: #F1F5F9;
  --light-blue-vivid: #DC2626;
  --navy-800: #E2E8F0;
  --heading-color: #FFFFFF;
  --paper: #0B0E14;
  --paper-raised: #12161F;
  --band-bg: #181F2B;
  --ink: #F1F5F9;
  --ink-soft: #A7AFBE;
  --line: #232A38;
  --line-strong: #333D50;
  --navy-700: #4C6197;
  --focus: #DC2626;
}

html {
  scroll-padding-top: 84px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

#siteBgCanvas {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--bg-image-url);
  background-size: var(--bg-image-size, cover);
  background-position: var(--bg-image-pos, center top);
  background-repeat: var(--bg-image-repeat, no-repeat);
  background-attachment: var(--bg-image-attachment, fixed);
  opacity: var(--bg-image-opacity, 0.25);
  filter: blur(var(--bg-image-blur, 0px));
  transition: opacity 0.25s ease;
}

body.has-custom-bg #siteBgCanvas {
  display: block;
}

/* Ensure all page content layers above the fixed background canvas */
.topbar,
.top-bar,
.site-header,
main#app,
.site-footer,
.floating-social-group {
  position: relative;
  z-index: 1;
}

/* Translucent Frosted Glass effect across all pages when custom background image is active */
body.has-custom-bg {
  background-color: var(--paper) !important;
}
body.has-custom-bg main#app {
  background: transparent;
}
body.has-custom-bg section:not(.band-navy):not(.hero) {
  background-color: var(--frosted-section-bg, rgba(248, 250, 252, 0.82));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.has-custom-bg .hero {
  background: linear-gradient(155deg, rgba(15, 26, 51, 0.93) 0%, rgba(22, 35, 74, 0.88) 100%) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body.has-custom-bg .band {
  background-color: var(--frosted-band-bg, rgba(255, 255, 255, 0.90)) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.has-custom-bg .panel {
  background-color: var(--frosted-panel-bg, rgba(255, 255, 255, 0.94)) !important;
  border-color: rgba(22, 35, 74, 0.12) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(15, 26, 51, 0.06);
}
body.has-custom-bg .facility-card,
body.has-custom-bg .event-card,
body.has-custom-bg .event-card-vertical,
body.has-custom-bg .fac-card,
body.has-custom-bg .mou-card {
  background-color: var(--frosted-card-bg, rgba(255, 255, 255, 0.95)) !important;
  border-color: rgba(22, 35, 74, 0.12) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(15, 26, 51, 0.06);
}
body.has-custom-bg .stat-strip {
  background-color: rgba(15, 26, 51, 0.85) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--heading-color, var(--navy-800, #16234A));
}
p, .lead-p, .lede {
  color: var(--ink, #16234A);
}

/* All elements on transparent, unset, or none backgrounds strictly use Navy Blue text */
[style*="background: transparent"],
[style*="background:transparent"],
[style*="background: none"],
[style*="background:none"],
main#app,
main#app > .page,
section.tight,
section:not(.band-navy):not(.hero),
.wrap,
.wrap-narrow,
.section-head,
.dept-heading {
  color: var(--ink, #16234A);
}

/* Headings on transparent backgrounds */
[style*="background: transparent"] h1,
[style*="background: transparent"] h2,
[style*="background: transparent"] h3,
[style*="background: transparent"] h4,
[style*="background: transparent"] h5,
[style*="background: transparent"] h6,
[style*="background: none"] h1,
[style*="background: none"] h2,
[style*="background: none"] h3,
[style*="background: none"] h4,
[style*="background: none"] h5,
[style*="background: none"] h6,
section.tight h1,
section.tight h2,
section.tight h3,
section:not(.band-navy):not(.hero) h1,
section:not(.band-navy):not(.hero) h2,
section:not(.band-navy):not(.hero) h3,
section:not(.band-navy):not(.hero) h4,
section:not(.band-navy):not(.hero) h5,
section:not(.band-navy):not(.hero) h6,
.section-head h2,
.dept-heading,
.dept-heading span,
.ev-title {
  color: var(--heading-color, #0F1A33) !important;
}

/* Paragraphs, body copy, lead text & lists on transparent backgrounds */
[style*="background: transparent"] p,
[style*="background: transparent"] li,
[style*="background: transparent"] span:not(.tag):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.apply-btn),
[style*="background: none"] p,
[style*="background: none"] li,
[style*="background: none"] span:not(.tag):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.apply-btn),
section.tight p,
section.tight .lead-p,
section:not(.band-navy):not(.hero) p,
section:not(.band-navy):not(.hero) .lead-p,
section:not(.band-navy):not(.hero) .lede,
section:not(.band-navy):not(.hero) li,
.section-head p {
  color: var(--ink, #16234A) !important;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar (top span): strictly solid Navy blue (#16234A) with zero opacity */
.topbar,
.top-bar {
  background: #16234A !important;
  background-color: #16234A !important;
  color: #FFFFFF !important;
  font-size: 13px;
  position: relative;
  z-index: 60 !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
}
.topbar *,
.top-bar * {
  opacity: 1 !important;
  filter: none !important;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 7px;
  padding-bottom: 7px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a,
.topbar-left,
.topbar-left span,
.topbar-right,
.topbar-right a,
.top-socials a,
.top-socials svg {
  text-decoration: none;
  color: #FFFFFF !important;
  fill: #FFFFFF !important;
  opacity: 1 !important;
}
.topbar a:hover,
.topbar-right a:hover {
  color: #FFFFFF !important;
  opacity: 1 !important;
  text-decoration: underline;
}
.topbar-left {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 1 !important;
}
.topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF !important;
  opacity: 1 !important;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: #FFFFFF !important;
  opacity: 1 !important;
}
.topbar-right a {
  display: flex;
  align-items: center;
  color: #FFFFFF !important;
  opacity: 1 !important;
}
.top-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 1 !important;
}
.topbar-mini-btn,
#trackBtn,
#loginBtn,
#adminToggleBtn {
  background: #475569 !important;
  background-color: #475569 !important;
  border: 1px solid #64748B !important;
  color: #FFFFFF !important;
  opacity: 1 !important;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
  transition: all 0.18s ease;
  font-family: inherit;
  text-decoration: none;
}
.topbar-mini-btn:hover,
#trackBtn:hover,
#loginBtn:hover,
#adminToggleBtn:hover {
  background: var(--red-600) !important;
  border-color: var(--red-600) !important;
  color: #FFFFFF !important;
  opacity: 1 !important;
  transform: translateY(-1px);
}
.topbar-mini-btn:active,
#trackBtn:active,
#loginBtn:active,
#adminToggleBtn:active {
  transform: translateY(0);
  opacity: 1 !important;
}
.top-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Header / Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  transform: translateZ(0);
  min-height: 56px;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  min-height: 56px;
  padding: 0;
  gap: 16px;
  box-sizing: border-box;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  height: 52px;
}
.brand img {
  width: 274px;
  height: 52px;
  max-width: 274px;
  object-fit: contain;
  display: block;
}
#brandLogo {
  display: inline-flex;
  align-items: center;
  height: 52px;
}
#brandLogo .editable-img-wrap {
  display: inline-flex;
  align-items: center;
  height: 52px;
  max-width: 274px;
}

nav.main-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: wrap;
}
nav.main-nav button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-800);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
nav.main-nav button:hover {
  background: rgba(22, 35, 74, 0.05);
  color: var(--navy-900);
}
nav.main-nav button.active {
  color: var(--red-600);
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-actions .apply-btn {
  padding: 7px 16px;
  font-size: 13.5px;
  line-height: 1.3;
}

.apply-btn {
  background: var(--red-600);
  color: #fff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, transform 0.1s;
}
.apply-btn:hover {
  background: var(--red-700);
  transform: translateY(-1px);
}
.ghost-btn {
  border: 1.5px solid var(--navy-800);
  color: var(--navy-800);
  background: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}
.ghost-btn:hover {
  background: var(--navy-800);
  color: #fff;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-800);
  margin: 5px 0;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
}
.mobile-nav button {
  text-align: left;
  background: none;
  border: none;
  padding: 12px 4px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mobile-nav button.active {
  color: var(--red-600);
  font-weight: 700;
}
.mobile-nav button.mobile-sub {
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--navy-800);
  position: relative;
}
.mobile-nav button.mobile-sub::before {
  content: "–";
  position: absolute;
  left: 8px;
  color: var(--line-strong);
}

/* Dropdown */
.nav-item {
  position: relative;
  display: inline-flex;
}
.nav-item > button.nav-toplevel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-item .caret {
  color: var(--ink-soft);
  transition: transform 0.15s;
  flex: none;
}
.nav-item:hover .caret,
.nav-item:focus-within .caret {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 235px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 26, 51, 0.14);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 70;
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.dropdown-menu button:hover,
.dropdown-menu button:focus-visible {
  background: var(--paper);
  color: var(--navy-800);
}
.dropdown-menu button.active {
  color: var(--red-600);
  font-weight: 700;
}
.about-intro-text {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.75;
  margin-bottom: 14px;
}
.mobile-nav button.mobile-parent {
  font-weight: 700;
  color: var(--navy-900);
}

@media (max-width: 940px) {
  nav.main-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .header-actions .ghost-btn {
    display: none;
  }
}
@media (max-width: 640px) {
  .topbar-left span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 480px) {
  .brand img {
    max-width: 215px;
    height: 44px;
  }
  .brand {
    height: 44px;
  }
}
@media (max-width: 380px) {
  .brand img {
    max-width: 175px;
    height: 38px;
  }
  .brand {
    height: 38px;
  }
  .header-actions .apply-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Hero */
.hero {
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -220px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  padding: 28px 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
}
.hero-inner.wrap,
.hero .hero-inner {
  max-width: 1320px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
.hero-left-col {
  width: 534px;
  min-width: 534px;
  max-width: 534px;
  height: 465px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  flex-shrink: 0;
}
.hero-right-col {
  width: 730px;
  min-width: 730px;
  max-width: 730px;
  height: 465px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}
.hero-image-frame {
  position: relative;
  width: 730px;
  max-width: 730px;
  height: 465px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(22, 35, 74, 0.4);
  background: rgba(15, 26, 51, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  box-sizing: border-box;
}
.hero-image-frame .editable-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex: 1;
}
.hero-img {
  width: 730px;
  height: 465px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  flex: 1;
}
.hero-image-frame:hover .hero-img {
  transform: scale(1.02);
}
.hero-image-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 26, 51, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DC2626;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.8);
}
/* Hero Banner Image Edit Styles */
body.admin-editing .hero-image-frame {
  cursor: pointer;
}
body.admin-editing .hero-image-frame .hero-img {
  cursor: pointer;
}
body.admin-editing .hero-image-frame .img-edit-btn,
body.admin-editing .hero-img-edit-btn {
  display: flex !important;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  background: #1E3A8A;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}
body.admin-editing .hero-image-frame .img-edit-btn:hover,
body.admin-editing .hero-img-edit-btn:hover {
  background: #2563EB;
  transform: scale(1.04);
  border-color: #ffffff;
}
body.admin-editing .hero-image-frame::after {
  content: "📷 Click Image or Button to Change Banner";
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 26, 51, 0.88);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.admin-editing .hero-image-frame:hover::after {
  opacity: 1;
}
.hero-image-caption {
  cursor: default;
}
/* Hero Accreditations & Affiliation Block (below Hero CTAs on Left Col) */
.hero-accreditations {
  width: 100%;
  max-width: 534px;
  background: rgba(15, 26, 51, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 10px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  margin-top: 0;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.hero-accred-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.accred-seal-icon {
  font-size: 13.5px;
}
.accred-heading-txt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.hero-accred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hero-accred-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 8px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-accred-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}
.hero-accred-logo-wrap {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}
.hero-accred-logo-wrap .editable-img-wrap {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.accred-logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}
.hero-accred-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.accred-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F1A33 !important;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}
.accred-full {
  display: none;
}
@media (max-width: 520px) {
  .hero-accred-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-accred-card {
    flex-direction: row;
    padding: 7px 12px;
    gap: 12px;
    text-align: left;
  }
  .hero-accred-logo-wrap,
  .hero-accred-logo-wrap .editable-img-wrap,
  .accred-logo-img {
    width: 48px;
    height: 48px;
  }
  .hero-accred-info {
    align-items: flex-start;
  }
  .accred-full {
    display: none;
  }
}
@media (max-width: 1319px) and (min-width: 901px) {
  .hero-inner.wrap,
  .hero .hero-inner {
    gap: 16px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-left-col {
    width: 44%;
    min-width: 420px;
    max-width: 534px;
    height: 465px;
  }
  .hero-right-col,
  .hero-image-frame,
  .hero-img {
    width: 56%;
    min-width: 0;
    max-width: 730px;
    height: 465px;
  }
}
@media (max-width: 900px) {
  .hero-inner.wrap,
  .hero .hero-inner {
    flex-direction: column;
    gap: 22px;
    padding: 24px 16px 20px;
  }
  .hero-left-col {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
  }
  .hero-right-col,
  .hero-image-frame {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 320px;
  }
  .hero-img {
    width: 100%;
    height: 320px;
  }
}
.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #F4B4B5;
  font-size: 13px;
  font-weight: 600;
}
.eyebrow-line .rule {
  width: 28px;
  height: 2px;
  background: var(--red-600);
}
.hero h1 {
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1.2;
  color: #fff;
  max-width: 24ch;
  margin: 0 0 6px;
}
.hero p.lede,
.hero .lede {
  font-size: 14px;
  color: #F1F5F9 !important;
  opacity: 1 !important;
  max-width: 50ch;
  margin-top: 4px;
  margin-bottom: 8px;
  line-height: 1.48;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.hero-ctas {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.hero-ctas .ghost-btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.hero-ctas .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.stat-strip {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-strip div {
  padding: 12px 0;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.stat-strip div:last-child {
  border-right: none;
}
.stat-strip strong {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  color: #fff;
}
.stat-strip span {
  font-size: 12.5px;
  color: #AEB9CF;
}
@media (max-width: 700px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-strip div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Sections */
section {
  padding: 34px 0;
}
section.tight {
  padding: 20px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 20px;
}
.section-head .tag {
  color: var(--red-600);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 6px;
  font-size: 15.5px;
}
.band {
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-navy {
  background: var(--navy-900);
  color: #fff;
}
.band-navy .section-head p {
  color: #B7C1D6;
}
.band-navy h2 {
  color: #fff;
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 8px;
  padding: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Home Page Panels & Cards */
.home-about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.home-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(22, 35, 74, 0.06);
  border: 1px solid rgba(22, 35, 74, 0.14);
  color: var(--navy-800);
}
.home-prog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border-top: 3.5px solid var(--navy-800) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-top-color 0.2s ease;
}
.home-prog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15, 26, 51, 0.1);
  border-top-color: var(--red-600) !important;
}
.home-prog-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.home-prog-badge.badge-blue {
  background: rgba(2, 132, 199, 0.1);
  color: #0284C7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}
.home-prog-badge.badge-navy {
  background: rgba(22, 35, 74, 0.08);
  color: var(--navy-800);
  border: 1px solid rgba(22, 35, 74, 0.2);
}
.home-prog-badge.badge-emerald {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
}
.home-principal-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red-600);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 4px 18px rgba(15, 26, 51, 0.05);
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.home-news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 18px 20px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.home-news-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.35);
}
.home-news-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #F4B4B5;
  background: rgba(244, 180, 181, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(244, 180, 181, 0.25);
}
.home-cta-panel {
  background: linear-gradient(135deg, var(--paper-raised) 0%, rgba(22, 35, 74, 0.03) 100%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red-600);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 8px 24px rgba(15, 26, 51, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.value-chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--navy-800);
  background: var(--paper-raised);
  font-weight: 600;
  display: inline-block;
}
.values-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quote-block {
  border-left: 3px solid var(--red-600);
  padding-left: 22px;
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.6;
}
.sign {
  margin-top: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.sign strong {
  display: block;
  color: var(--ink);
  font-size: 15.5px;
}

table.scheme {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.scheme th, table.scheme td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}
table.scheme th {
  background: var(--navy-900);
  font-weight: 700;
  color: #FFFFFF;
}
table.scheme td.num {
  text-align: center;
}
table.scheme tr.total td {
  font-weight: 700;
  background: var(--paper);
}

details.sem {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--paper-raised);
}
details.sem summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--navy-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 15px;
}
details.sem summary::-webkit-details-marker {
  display: none;
}
details.sem summary::after {
  content: "+";
  font-size: 20px;
  color: var(--red-600);
  font-weight: 700;
}
details.sem[open] summary::after {
  content: "–";
}
details.sem .sem-body {
  padding: 0 18px 18px;
}

/* Staff Profile Cards — Dedicated Circle Design */
.fac-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 14px 16px;
  background: var(--paper-raised);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.fac-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 26, 51, 0.08);
  border-color: var(--navy-800);
}

/* Circular Profile Image Container */
.fac-avatar-container {
  position: relative;
  margin-bottom: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.fac-circle-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  border: 4px solid var(--navy-800);
  box-shadow: 0 4px 18px rgba(15, 26, 51, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fac-card:hover .fac-circle-avatar {
  transform: scale(1.05);
  box-shadow: 0 8px 26px rgba(220, 38, 38, 0.24);
  border-color: var(--red-600);
}

.fac-circle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Quick upload badge in edit mode */
.fac-avatar-edit-badge {
  position: absolute;
  right: 0px;
  bottom: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  border: 2px solid #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, background-color 0.15s;
}
.fac-avatar-edit-badge:hover {
  transform: scale(1.15);
  background: var(--red-600);
}

.fac-card strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.3;
}
.fac-card .role {
  color: var(--red-600);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.fac-card .meta {
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.35;
}
.fac-dept-badge {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-800);
  background: rgba(22, 35, 74, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 35, 74, 0.15);
}
.dept-heading {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy-800);
  margin: 22px 0 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.dept-heading:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Facilities Page Specific Heading Rule */
.facilities-page-view h1,
.facilities-page-view h2,
.facilities-page-view h3,
.facilities-page-view h4,
.facilities-page-view .fc-head h3,
body.page-facilities h1,
body.page-facilities h2,
body.page-facilities h3 {
  color: #FFFFFF !important;
}

.facility-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-raised);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 16px rgba(15, 26, 51, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.facility-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15, 26, 51, 0.15);
}
.facility-card .fc-media {
  position: relative;
  width: 100%;
  height: 195px;
  background: var(--navy-900);
  overflow: hidden;
  flex-shrink: 0;
}
.facility-card .fc-media .editable-img-wrap {
  width: 100%;
  height: 100%;
  display: block;
}
.facility-card .fc-media .facility-card-img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.facility-card:hover .facility-card-img {
  transform: scale(1.04);
}
.facility-card .fc-head {
  background: var(--navy-900);
  color: #FFFFFF !important;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.facility-card .fc-head h3 {
  color: #FFFFFF !important;
  font-size: 16.5px;
  margin: 0;
  font-weight: 700;
}
.facility-card .fc-body {
  padding: 14px 16px 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

.event-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-raised);
  padding: 14px 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.event-card .ev-date {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.event-card h3 {
  font-size: 16.5px;
  margin-top: 6px;
}
.event-card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 6px;
}

/* ---------------- Vertical News & Events Layout & Multi-Image Gallery ---------------- */
.events-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.ev-filter-pill {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.ev-filter-pill:hover {
  background: var(--paper);
  color: var(--navy-800);
  border-color: var(--line-strong);
}
.ev-filter-pill.active {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}

.events-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.event-card-vertical {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-800);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 4px 18px rgba(15, 26, 51, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.event-card-vertical:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 26, 51, 0.09);
  border-color: var(--line-strong);
  border-left-color: var(--red-600);
}

.event-card-vertical .ev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.event-card-vertical .ev-tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.event-card-vertical .ev-category-pill {
  background: rgba(22, 35, 74, 0.07);
  color: var(--navy-800);
  border: 1px solid rgba(22, 35, 74, 0.16);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
}
.event-card-vertical .ev-date-badge {
  color: var(--red-600);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.event-card-vertical h2.ev-title {
  font-size: clamp(20px, 2.6vw, 24px);
  color: var(--navy-800);
  font-weight: 700;
  margin: 6px 0 12px;
  line-height: 1.3;
}
.event-card-vertical .ev-body-content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 16px;
}

/* Multi-Image Event Gallery Grid */
.ev-gallery-container {
  margin-top: 16px;
  position: relative;
}
.ev-gallery-grid {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  overflow: hidden;
}
.ev-gallery-1 {
  grid-template-columns: 1fr;
}
.ev-gallery-1 .ev-photo-item {
  height: 380px;
}
.ev-gallery-2 {
  grid-template-columns: 1fr 1fr;
}
.ev-gallery-2 .ev-photo-item {
  height: 280px;
}
.ev-gallery-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 140px 140px;
}
.ev-gallery-3 .ev-photo-item:first-child {
  grid-row: span 2;
  height: 290px;
}
.ev-gallery-3 .ev-photo-item {
  height: 140px;
}
.ev-gallery-4plus {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.ev-gallery-4plus .ev-photo-item {
  height: 160px;
}

.ev-photo-item {
  position: relative;
  overflow: hidden;
  background: #0F1A33;
  border-radius: 6px;
  cursor: pointer;
}
.ev-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease, filter 0.28s ease;
}
.ev-photo-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.95);
}
.ev-photo-overlay-count {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 51, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  backdrop-filter: blur(2px);
  transition: background 0.18s;
}
.ev-photo-overlay-count:hover {
  background: rgba(15, 26, 51, 0.82);
}
.ev-photo-gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* Modal Thumbnails List */
.news-preview-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0F1A33;
  flex: none;
}
.news-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: transform 0.12s, background 0.12s;
}
.news-preview-remove:hover {
  transform: scale(1.15);
  background: #B91C1C;
}

/* Fullscreen Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 25, 0.94);
  z-index: 100010;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  padding: 24px;
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 10;
}
.lightbox-close:hover {
  background: var(--red-600);
  border-color: var(--red-600);
  transform: scale(1.08);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 10;
  user-select: none;
}
.lightbox-nav:hover {
  background: var(--navy-800);
  border-color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 88vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.lightbox-caption-bar {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 88vw;
  color: #fff;
  font-size: 14px;
}
.lightbox-title {
  font-weight: 600;
  color: #E2E8F0;
}
.lightbox-counter {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .event-card-vertical {
    padding: 20px 18px;
  }
  .ev-gallery-2, .ev-gallery-3 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .ev-gallery-2 .ev-photo-item, .ev-gallery-3 .ev-photo-item {
    height: 200px !important;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.step-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.step-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
}
.step-row h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.step-row p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 12px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--red-600);
  font-size: 20px;
  font-weight: 400;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item .faq-a {
  padding: 0 4px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 70ch;
}

.contact-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child {
  border-bottom: none;
}
.contact-row .ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-row strong {
  display: block;
  font-size: 14px;
}
.contact-row span, .contact-row a {
  color: var(--ink-soft);
  font-size: 14px;
}

form.contact-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
  background: var(--paper-raised);
  color: var(--ink);
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  border-color: var(--navy-700);
  outline: none;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  color: var(--ink-soft);
}
.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 4px;
  font-family: 'Source Serif 4', serif;
}

footer.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
  background: var(--navy-900);
  color: #B7C1D6;
  padding: 34px 0 18px;
}
footer.site-footer h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
}
footer.site-footer a {
  color: #B7C1D6;
  text-decoration: none;
  font-size: 13.5px;
  display: block;
  margin-bottom: 7px;
}
footer.site-footer a:hover {
  color: #fff;
}
.foot-hours {
  color: #B7C1D6;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 20px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #8492AB;
}
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.social-row a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.social-row a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.badge-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.mou-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-raised);
}
.mou-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.mou-card .mou-txt {
  padding: 14px 16px;
}
.mou-card .mou-txt strong {
  display: block;
  font-size: 14.5px;
}
.mou-card .mou-txt span {
  font-size: 13px;
  color: var(--ink-soft);
}

.page {
  display: none;
}
.page.active {
  display: block;
}

/* Floating Social Media Stack (Right Bottom) */
.floating-social-group {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.social-fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  position: relative;
}

.social-fab:hover {
  transform: translateY(-3px) scale(1.08);
}

.social-fab.fab-facebook {
  background: #1877F2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}
.social-fab.fab-facebook:hover {
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.55);
}

.social-fab.fab-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 4px 14px rgba(214, 36, 159, 0.35);
}
.social-fab.fab-instagram:hover {
  box-shadow: 0 6px 20px rgba(214, 36, 159, 0.55);
}

.social-fab.fab-whatsapp,
.whatsapp-fab {
  width: 52px;
  height: 52px;
  background: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.40);
}
.social-fab.fab-whatsapp:hover,
.whatsapp-fab:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.60);
}
.social-fab svg,
.whatsapp-fab svg {
  display: block;
}
.fade-in {
  animation: fadeIn 0.35s ease both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-clean li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}
.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--red-600);
}

.kicker-h {
  font-size: 13px;
  color: var(--red-600);
  font-weight: 700;
  margin-bottom: 6px;
}
.lead-p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 70ch;
}

/* Photo slot & Edit wrapper */
.photo-slot {
  display: block;
  position: relative;
}
.photo-slot .photo-img {
  display: block;
  object-fit: cover;
}
.photo-slot.is-empty .photo-img {
  display: none;
}
.photo-slot:not(.is-empty) .photo-fallback {
  display: none;
}
.fac-photo {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
}
.fac-photo .photo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.fac-photo .fac-avatar {
  margin-bottom: 0;
}
.ev-photo {
  margin-bottom: 12px;
}
.ev-photo .photo-img {
  width: 100%;
  height: 150px;
  border-radius: 6px;
}
.ev-photo.is-empty {
  display: none;
}
body.admin-editing .ev-photo.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
body.admin-editing .ev-photo.is-empty .photo-fallback {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
}

.editable-img-wrap {
  position: relative;
  display: block;
}
.editable-img-wrap img {
  width: 100%;
}
.img-edit-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(15, 26, 51, 0.85);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.img-remove-btn {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(200, 26, 29, 0.9);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
body.admin-editing .editable-img-wrap {
  outline: 1.5px dashed var(--red-600);
  outline-offset: 3px;
  border-radius: 6px;
}
body.admin-editing .editable-img-wrap .img-edit-btn,
body.admin-editing .editable-img-wrap .img-remove-btn {
  display: block;
}

/* News photo edit overlay button */
.news-photo-edit-btn {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(15, 26, 51, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.15s;
}
.news-photo-edit-btn:hover {
  background: var(--red-600);
  transform: scale(1.05);
}
body.admin-editing .news-photo-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
body.admin-editing .ev-photo-item {
  position: relative;
  outline: 1.5px dashed var(--red-600);
  outline-offset: 3px;
  border-radius: 6px;
  cursor: pointer;
}
.news-empty-photo-placeholder {
  display: none;
  border: 2px dashed #94A3B8;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin-top: 14px;
  background: rgba(241, 245, 249, 0.7);
  color: var(--navy-900);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.news-empty-photo-placeholder:hover {
  border-color: var(--navy-800);
  background: rgba(22, 35, 74, 0.08);
}
body.admin-editing .news-empty-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.news-card-admin-actions {
  display: none;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
body.admin-editing .news-card-admin-actions {
  display: flex;
}

/* Faculty avatar and admin controls: strictly allow only in admin-editing mode */
body:not(.admin-editing) .fac-avatar-container,
body:not(.admin-editing) .fac-circle-avatar {
  cursor: default !important;
}
body:not(.admin-editing) .fac-avatar-edit-badge {
  display: none !important;
  pointer-events: none !important;
}
body.admin-editing .fac-avatar-container {
  cursor: pointer;
}
body.admin-editing .fac-circle-avatar {
  outline: 2px dashed var(--red-600);
  outline-offset: 3px;
  cursor: pointer;
}
body.admin-editing .fac-circle-avatar:hover {
  opacity: 0.85;
}
body.admin-editing .fac-avatar-edit-badge {
  display: flex !important;
  pointer-events: auto !important;
}

/* General admin-only element displays */
.admin-only-control {
  display: none !important;
}
body.admin-editing .admin-only-control {
  display: inline-flex !important;
}
.admin-only-flex {
  display: none !important;
}
body.admin-editing .admin-only-flex {
  display: flex !important;
}
.admin-only-block {
  display: none !important;
}
body.admin-editing .admin-only-block {
  display: block !important;
}

body.admin-editing [data-edit],
body.admin-editing [data-universal-edit] {
  outline: 1.5px dashed var(--navy-800);
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text;
  transition: background 0.12s, outline-color 0.12s;
}
body.admin-editing [data-edit]:hover,
body.admin-editing [data-universal-edit]:hover {
  background: rgba(22, 35, 74, 0.06);
}
body.admin-editing [data-edit]:focus,
body.admin-editing [data-universal-edit]:focus {
  outline-style: solid;
  outline-color: var(--navy-800);
  background: rgba(22, 35, 74, 0.10);
}

/* Distinct visual indicator for editable buttons and links */
body.admin-editing button[data-universal-edit],
body.admin-editing a[data-universal-edit],
body.admin-editing .apply-btn[data-universal-edit],
body.admin-editing .ghost-btn[data-universal-edit] {
  outline: 2px dashed #DC2626 !important;
  outline-offset: 3px !important;
  cursor: text !important;
  user-select: text !important;
}
body.admin-editing button[data-universal-edit]:hover,
body.admin-editing a[data-universal-edit]:hover,
body.admin-editing .apply-btn[data-universal-edit]:hover,
body.admin-editing .ghost-btn[data-universal-edit]:hover {
  background: rgba(220, 38, 38, 0.12) !important;
}
body.admin-editing button[data-universal-edit]:focus,
body.admin-editing a[data-universal-edit]:focus,
body.admin-editing .apply-btn[data-universal-edit]:focus,
body.admin-editing .ghost-btn[data-universal-edit]:focus {
  outline: 2px solid var(--navy-800) !important;
  background: rgba(22, 35, 74, 0.12) !important;
}

/* Distinct visual indicator for editable headings */
body.admin-editing h1[data-universal-edit],
body.admin-editing h2[data-universal-edit],
body.admin-editing h3[data-universal-edit],
body.admin-editing h4[data-universal-edit],
body.admin-editing h5[data-universal-edit],
body.admin-editing h6[data-universal-edit] {
  outline: 2px dashed var(--navy-800);
  outline-offset: 4px;
}

/* Off-screen section rendering performance */
main#app > .page > section:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Admin Toolbar */
.admin-toolbar {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 99990;
  background: var(--navy-900);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  transform: translateZ(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  flex-wrap: wrap;
  max-width: calc(100vw - 110px);
}
.admin-toolbar button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.admin-toolbar button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.admin-toolbar button.primary {
  background: var(--red-600);
}
.admin-toolbar button.primary:hover {
  background: var(--red-700);
}
.admin-toolbar .status {
  font-size: 12px;
  color: #B7C1D6;
  padding: 0 4px;
}

/* Color & Settings Panels */
.color-panel {
  position: fixed;
  left: 22px;
  bottom: 86px;
  z-index: 99995;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  width: 340px;
  display: none;
}
.color-panel.open {
  display: block;
}
.color-panel h4 {
  font-size: 14px;
  margin-bottom: 12px;
}
.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.color-row label {
  font-size: 13px;
  color: var(--ink-soft);
}
.color-row input[type="color"] {
  width: 34px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0;
  cursor: pointer;
  background: none;
}
#bgPanel {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.sp-profile-card {
  display: flex;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sp-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.sp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.sp-stat-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.sp-stat-item .lbl {
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: .02em;
}
.sp-stat-item .val {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-800);
  margin-top: 4px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 22, 0.65);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: var(--paper-raised);
  border-radius: 12px;
  padding: 22px 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box.wide {
  max-width: 800px;
}
.modal-box h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.modal-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 5px;
  color: var(--ink);
}
.modal-box input,
.modal-box select,
.modal-box textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 14.5px;
  background: var(--paper-raised);
  color: var(--ink);
  font-family: inherit;
}
.modal-box input:focus,
.modal-box select:focus,
.modal-box textarea:focus {
  border-color: var(--navy-700);
  outline: none;
}
.modal-error {
  color: var(--red-600);
  font-size: 13px;
  margin-top: 10px;
  min-height: 16px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-warning {
  background: #FFF3CD;
  color: #856404;
}
.badge-info {
  background: #D1ECF1;
  color: #0C5460;
}
.badge-success {
  background: #D4EDDA;
  color: #155724;
}
.badge-danger {
  background: #F8D7DA;
  color: #721C24;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--red-600);
}
.toast.success {
  border-left-color: #28a745;
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Admin Dashboard Sub-Styles */
.admin-tab-bar {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.admin-tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 6px;
  white-space: nowrap;
}
.admin-tab-btn.active {
  background: var(--navy-800);
  color: #fff;
}
.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}
.stat-card .val {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-800);
  font-family: 'Source Serif 4', serif;
}
.stat-card .lbl {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .stat-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.data-table th {
  background: var(--navy-900);
  font-weight: 600;
  color: #FFFFFF;
}
.data-table tr:hover td {
  background: rgba(15, 26, 51, 0.02);
}

/* ---------------- Font Size & In-Place Text Controls ---------------- */
.toolbar-font-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 3px 8px;
  gap: 5px;
}
.toolbar-font-group span {
  font-size: 12px;
  color: #FFFFFF;
  font-weight: 700;
  user-select: none;
}
.toolbar-font-group select {
  background: #0F1A33;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}
.toolbar-font-group select:focus {
  border-color: var(--red-600);
}

/* Floating Text Bubble Toolbar */
.floating-text-toolbar {
  position: absolute;
  z-index: 9999;
  background: #0F1A33;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-family: inherit;
  font-size: 12px;
  user-select: none;
  pointer-events: auto;
  animation: ftFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ftFadeIn {
  from { opacity: 0; transform: translateY(4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.floating-text-toolbar .ft-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 2px 6px;
  background: rgba(220, 38, 38, 0.4);
  border-radius: 4px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-text-toolbar button {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.15s;
}

.floating-text-toolbar button:hover {
  background: var(--red-600);
  border-color: var(--red-600);
}

.floating-text-toolbar select {
  background: #080D1A;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.floating-text-toolbar select:focus {
  outline: 2px solid var(--red-600);
}

/* Focused element outline in edit mode */
body.admin-editing [data-edit]:focus,
body.admin-editing [data-universal-edit]:focus,
body.admin-editing .editing-font-target {
  outline: 2px dashed var(--navy-800) !important;
  outline-offset: 3px !important;
}

/* ---------------- Move & Resize Interactive Mode ---------------- */
body.move-resize-active {
  user-select: none;
}
body.move-resize-active [data-layout-key] {
  cursor: pointer;
  transition: none !important;
}
body.move-resize-active [data-layout-key]:hover {
  outline: 2px dashed #2563EB !important;
  outline-offset: 3px !important;
}
body.move-resize-active .mr-is-selected {
  outline: 2px solid #2563EB !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.22) !important;
}

/* Floating Transformer Overlay */
#mrTransformerOverlay {
  position: absolute;
  pointer-events: none;
  z-index: 99990;
  border: 2px solid #2563EB;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
  display: none;
  box-sizing: border-box;
}
#mrTransformerOverlay.active {
  display: block;
}

/* Top bar handles */
.mr-top-bar {
  position: absolute;
  top: -34px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  white-space: nowrap;
  user-select: none;
}
.mr-handle-move {
  background: #1E3A8A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: grab;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
  touch-action: none;
}
.mr-handle-move:active {
  cursor: grabbing;
  background: #DC2626;
}
.mr-handle-info {
  background: rgba(15, 26, 51, 0.92);
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.mr-handle-reset {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.15s ease;
}
.mr-handle-reset:hover {
  background: #DC2626;
}

/* Resize Handles */
.mr-corner-br {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #2563EB;
  border: 2px solid #FFFFFF;
  border-radius: 3px;
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.mr-corner-br::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  background: #FFFFFF;
  border-radius: 1px;
}
.mr-edge-r {
  position: absolute;
  width: 8px;
  height: 36px;
  background: #2563EB;
  border: 2px solid #FFFFFF;
  border-radius: 3px;
  right: -4px;
  top: calc(50% - 18px);
  cursor: ew-resize;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  touch-action: none;
}
.mr-edge-b {
  position: absolute;
  width: 36px;
  height: 8px;
  background: #2563EB;
  border: 2px solid #FFFFFF;
  border-radius: 3px;
  bottom: -4px;
  left: calc(50% - 18px);
  cursor: ns-resize;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  touch-action: none;
}

/* Move & Resize Bottom Floating Dock */
.mr-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 26, 51, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 40px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 99999;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  font-family: var(--font-sans, system-ui, sans-serif);
  animation: mrDockSlideUp 0.22s ease-out;
}
@keyframes mrDockSlideUp {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.mr-dock-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mr-dock-badge {
  color: #60A5FA;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mr-dock-hint {
  color: #94A3B8;
  font-size: 11px;
}
.mr-dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mr-dock-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.mr-dock-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.mr-dock-btn.primary {
  background: #059669;
  border-color: #059669;
}
.mr-dock-btn.primary:hover {
  background: #047857;
}
.mr-dock-btn.close {
  background: #DC2626;
  border-color: #DC2626;
}
.mr-dock-btn.close:hover {
  background: #B91C1C;
}

@media (max-width: 768px) {
  .mr-dock {
    bottom: 12px;
    padding: 8px 12px;
    gap: 10px;
    max-width: 95vw;
  }
  .mr-dock-hint {
    display: none;
  }
}

/* Custom Highlighted & Selected Text Styles */
.custom-text-colored,
[data-custom-color] {
  color: var(--custom-text-color) !important;
}
.custom-text-colored *,
[data-custom-color] * {
  color: inherit !important;
}

.floating-text-toolbar .ft-color-dot {
  width: 15px;
  height: 15px;
  min-width: 15px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.floating-text-toolbar .ft-color-dot:hover {
  transform: scale(1.22);
  border-color: #ffffff;
}

.swatch-btn {
  transition: transform 0.15s, box-shadow 0.15s;
}
.swatch-btn:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--navy-800);
}

/* ========================================================
   MODERN WEB PERFORMANCE OPTIMIZATIONS
   ======================================================== */

/* 1. Touch Action: eliminate 300ms mobile touch delay */
button,
a,
input,
select,
textarea,
.nav-item,
.hero-ctas button,
.social-fab {
  touch-action: manipulation;
}

/* 2. Content-Visibility: defer rendering of heavy offscreen sections */
.site-footer,
.accred-banner-wrap,
.band-navy,
.news-grid,
.faculty-grid,
.facilities-grid,
.curriculum-table {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

/* 3. GPU Hardware Compositing for Smooth 60fps Animations */
.modal-box,
.mr-dock,
.floating-social-group,
.toast {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 4. Layout Shift Prevention (CLS) */
.hero-img {
  aspect-ratio: 730 / 465;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.accred-logo-img {
  aspect-ratio: 1 / 1;
}
.photo-img {
  aspect-ratio: 3 / 4;
}

/* 5. Smooth loading animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================================
   Campus Photo Gallery Grid & Lightbox Cards
   ======================================================== */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 24px;
}
.gallery-filter-btn {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  color: var(--navy-800);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-filter-btn:hover {
  background: var(--navy-800);
  color: #FFFFFF;
  border-color: var(--navy-800);
}
.gallery-filter-btn.active {
  background: var(--navy-800);
  color: #FFFFFF;
  border-color: var(--navy-800);
  box-shadow: 0 4px 12px rgba(15, 26, 51, 0.18);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.gallery-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(15, 26, 51, 0.05);
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 26, 51, 0.12);
  border-color: var(--navy-700);
}
.gallery-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy-900);
}
.gallery-card-media img,
.gallery-card-media .editable-img-wrap,
.gallery-card-media .editable-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-card:hover .gallery-card-media img,
.gallery-card:hover .gallery-card-media .editable-img-wrap img {
  transform: scale(1.05);
}
.gallery-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 26, 51, 0.82);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}
.gallery-card-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.gallery-card:hover .gallery-card-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}
.gallery-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gallery-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 6px;
  line-height: 1.35;
}
.gallery-card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
  flex: 1;
}
.gallery-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-800);
}
.gallery-card:hover .gallery-card-action {
  color: var(--red-600);
}

.gallery-one-line-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
