/*
  St. Gonzaga Secondary School (GOSEC)
  A crest-led, accessible digital campus design system.
*/

:root {
  --blue-950: #0d1740;
  --blue-900: #14245f;
  --blue-800: #1d3180;
  --blue-700: #283c93;
  --blue-600: #3851b0;
  --yellow-500: #f8e80c;
  --yellow-300: #fff27a;
  --ink: #15203d;
  --ink-soft: #4f5e7e;
  --paper: #ffffff;
  --canvas: #f5f7fc;
  --surface-blue: #e9eeff;
  --surface-yellow: #fffbd6;
  --line: #dce3f1;
  --success: #0d7559;
  --danger: #ad3144;
  --shadow-sm: 0 12px 30px rgba(16, 32, 89, 0.09);
  --shadow: 0 24px 65px rgba(16, 32, 89, 0.16);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 34px;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 17px;
}
body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open,
body.search-open { overflow: hidden; }
body.theme-dark {
  --ink: #f3f6ff;
  --ink-soft: #b9c5e1;
  --paper: #172451;
  --canvas: #0d1738;
  --surface-blue: #1b2f6c;
  --surface-yellow: #463e06;
  --line: #304579;
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.24);
  --shadow: 0 24px 65px rgba(0, 0, 0, 0.38);
}

::selection { background: var(--yellow-500); color: var(--blue-950); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button,
input,
select,
textarea { font: inherit; }
button { cursor: pointer; }
h1,
h2,
h3,
h4,
p { margin-top: 0; }
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.12;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.045em;
}
h1 { font-size: clamp(2.7rem, 5.5vw, 5.35rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.35rem); }
h3 { font-size: 1.16rem; }
p { color: var(--ink-soft); }
:focus-visible {
  outline: 3px solid var(--yellow-500);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -5rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--yellow-500);
  color: var(--blue-950);
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.site-width {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}
.page-main { padding: 2.5rem 0 6rem; }
.section { margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.section:first-child { margin-top: 0; }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading h2 { margin: 0.45rem 0 0.75rem; }
.section-heading p { max-width: 650px; margin-bottom: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue-700);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 1.5rem;
  height: 2px;
  border-radius: 999px;
  background: var(--yellow-500);
  content: "";
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--blue-700);
  border-radius: 999px;
  background: var(--blue-700);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  border-color: var(--blue-900);
  background: var(--blue-900);
  box-shadow: 0 10px 22px rgba(40, 60, 147, 0.24);
}
.button.yellow {
  border-color: var(--yellow-500);
  background: var(--yellow-500);
  color: var(--blue-950);
}
.button.yellow:hover {
  border-color: var(--yellow-300);
  background: var(--yellow-300);
}
.button.secondary {
  border-color: currentColor;
  background: transparent;
  color: var(--blue-700);
}
.button.secondary:hover {
  border-color: var(--blue-700);
  background: var(--surface-blue);
  box-shadow: none;
}
.button.small {
  min-height: 36px;
  padding: 0.5rem 0.76rem;
  font-size: 0.7rem;
}
.button[disabled] { cursor: progress; opacity: 0.7; transform: none; }

/* Header */
.utility-bar {
  background: var(--blue-950);
  color: #dce5ff;
  font-size: 0.72rem;
}
.utility-inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.utility-meta,
.utility-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}
.utility-meta a:hover { color: var(--yellow-500); }
.utility-actions .button {
  min-height: 28px;
  padding: 0.3rem 0.6rem;
  border: 0;
  color: #fff;
  font-size: 0.65rem;
}
.utility-actions .button:hover { background: rgba(255, 255, 255, 0.12); }
.utility-apply {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--yellow-500);
  color: var(--blue-950);
  font-weight: 800;
}
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-dark .site-header { background: rgba(13, 23, 56, 0.93); }
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 25px rgba(16, 32, 89, 0.08);
}
.header-inner {
  display: flex;
  width: min(1320px, calc(100% - 2.5rem));
  min-height: 83px;
  margin: 0 auto;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.72rem;
  min-width: 246px;
}
.brand-logo {
  width: 54px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(16, 32, 89, 0.14));
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-name {
  color: var(--blue-900);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.theme-dark .brand-name { color: #fff; }
.brand-name span { display: block; }
.brand-name .brand-gosec {
  margin-top: 0.13rem;
  color: var(--blue-700);
  font-size: 0.57rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.brand-motto {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.54rem;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}
.main-nav a::after {
  display: block;
  width: 0;
  height: 2px;
  margin-left: 0.35rem;
  border-radius: 99px;
  background: var(--yellow-500);
  content: "";
  transition: width 0.18s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--blue-700); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 7px; }
.header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
}
.icon-button,
.menu-toggle {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue-700);
}
.icon-button:hover,
.menu-toggle:hover { background: var(--surface-blue); }
.menu-toggle { display: none; }

/* Home page utility styling */
.top-utility-bar {
  background: var(--blue-950);
  color: #e9eeff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 42px;
  padding-block: 0.2rem;
}
.utility-contacts,
.utility-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}
.utility-contacts span,
.utility-contacts a,
.utility-actions a,
.utility-actions button {
  color: #e8eeff;
  font-size: 0.7rem;
  font-weight: 600;
}
.utility-actions a,
.utility-actions button {
  border: 0;
  background: transparent;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.btn-utility-search,
.btn-utility-link,
.btn-utility-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}
.btn-utility-search {
  color: #edf4ff;
}
.btn-utility-link {
  color: #e8eeff;
}
.btn-utility-highlight {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--yellow-500);
  color: var(--blue-950);
}
.theme-toggle-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue-700);
}
.home-page .page-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}
.home-page .hero {
  position: relative;
  overflow: hidden;
}
.home-page .hero-copy .eyebrow,
.home-page .section-heading .eyebrow,
.home-page .buzz-section .eyebrow {
  color: var(--yellow-500);
}
.home-page .hero-copy .eyebrow::before,
.home-page .section-heading .eyebrow::before,
.home-page .buzz-section .eyebrow::before {
  background: currentColor;
}
.home-page .hero-actions {
  margin-top: 1.5rem;
}
.home-page .btn,
.home-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.home-page .btn-primary,
.home-page .button {
  background: var(--blue-700);
  border: 1px solid var(--blue-700);
  color: #fff;
}
.home-page .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.home-page .btn-accent {
  background: var(--yellow-500);
  border: 1px solid var(--yellow-500);
  color: var(--blue-950);
}
.home-page .btn:hover,
.home-page .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(20, 36, 95, 0.15);
}
.home-page .stats-banner {
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}
.home-page .stat-card {
  min-height: 150px;
  padding: 1.2rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.home-page .stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.8rem;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-blue);
  color: var(--blue-700);
  font-size: 1.2rem;
}
.home-page .stat-number {
  margin-bottom: 0.3rem;
  color: var(--blue-800);
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 400;
}
.home-page .stat-label {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}
.home-page .highlights,
.home-page .quick-links,
.home-page .buzz-section {
  margin-top: 2.5rem;
}
.home-page .section-heading {
  margin-bottom: 1.25rem;
}
.home-page .carousel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.home-page .carousel-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.home-page .carousel-slide {
  padding: 1.35rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(233, 238, 255, 0.65), rgba(255, 255, 255, 0.9));
}
.home-page .carousel-slide h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}
.home-page .carousel-slide p {
  margin-bottom: 0;
  font-size: 0.82rem;
}
.home-page .carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1rem;
}
.home-page .icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--blue-700);
  font-size: 1.1rem;
}
.home-page .quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.home-page .link-card {
  display: block;
  min-height: 175px;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-page .link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.home-page .link-card span {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 15px;
  background: var(--surface-blue);
  font-size: 1.5rem;
}
.home-page .link-card:nth-child(2) span { background: var(--surface-yellow); }
.home-page .link-card:nth-child(3) span { background: #ebf4ff; }
.home-page .link-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.home-page .link-card p {
  margin-bottom: 0;
  font-size: 0.82rem;
}
.home-page .buzz-row {
  display: grid;
  gap: 1.25rem;
}
.home-page .events-marquee,
.home-page .notice-ticker {
  overflow: hidden;
}
.home-page .events-track,
.home-page .notice-track {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-page .event-card,
.home-page .notice-card {
  padding: 1.15rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.home-page .event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.68rem;
  font-weight: 700;
}
.home-page .event-date {
  color: var(--blue-700);
}
.home-page .event-tag {
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-yellow);
  color: var(--blue-900);
}
.home-page .event-card h3,
.home-page .notice-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}
.home-page .event-card p,
.home-page .notice-card p {
  margin-bottom: 0;
  font-size: 0.8rem;
}
.home-page .notice-highlight {
  background: linear-gradient(135deg, rgba(248, 232, 12, 0.18), rgba(255, 255, 255, 0.9));
}
.home-page .footer {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  background: var(--blue-950);
  color: #dce8ff;
}
.home-page .footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr;
  gap: 1.5rem;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}
.home-page .footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.home-page .footer-brand img {
  width: 55px;
  height: 62px;
  object-fit: contain;
}
.home-page .footer-brand p {
  margin: 0.18rem 0;
  color: #dce8ff;
  font-size: 0.8rem;
}
.home-page .footer-nav h3,
.home-page .footer-contact h3 {
  margin-bottom: 0.8rem;
  color: var(--yellow-500);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-page .footer-nav ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-page .footer-nav a,
.home-page .footer-contact a,
.home-page .footer-contact p {
  color: rgba(236, 242, 255, 0.9);
  font-size: 0.8rem;
}
.home-page .footer-bottom {
  width: min(1200px, calc(100% - 2rem));
  margin: 2rem auto 0;
  padding: 1rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(219, 228, 255, 0.8);
  font-size: 0.75rem;
}
.home-page .bottom-contact-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1200px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.8rem 1rem;
  border-radius: 18px 18px 0 0;
  background: rgba(9, 20, 60, 0.96);
  box-shadow: 0 -15px 35px rgba(9, 20, 60, 0.18);
  color: #edf3ff;
}
.home-page .floating-apply-button {
  position: fixed;
  right: 1.15rem;
  bottom: 5.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow-500), #f2d21c);
  color: var(--blue-950);
  font-weight: 800;
  box-shadow: var(--shadow);
}
.home-page .back-to-top-btn {
  position: fixed;
  right: 1.15rem;
  bottom: 1.2rem;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  box-shadow: var(--shadow);
}
.home-page .search-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(7, 18, 49, 0.78);
  z-index: 900;
}
.home-page .search-modal-backdrop.show {
  display: grid;
}
.home-page .search-modal-content {
  width: min(720px, calc(100% - 1.5rem));
  border-radius: 22px;
  overflow: hidden;
  background: #0d1738;
  box-shadow: var(--shadow);
}
.home-page .search-modal-header {
  padding: 1rem 1rem 0.75rem;
  background: rgba(14, 30, 79, 0.96);
}
.home-page .quick-tags .badge {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
}
.home-page .search-results-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Hero and top-level content */
.hero-shell {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100vh - 120px));
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(93deg, rgba(9, 20, 60, 0.96) 0%, rgba(14, 29, 76, 0.86) 46%, rgba(17, 35, 88, 0.35) 100%),
    var(--hero-image) center / cover no-repeat;
}
.home-page .hero-shell {
  --hero-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1600&q=80');
  min-height: min(710px, calc(100vh - 110px));
}
.home-page .hero-shell::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 20, 49, 0.78), rgba(7, 20, 49, 0.2));
  content: "";
}
.hero-shell::after {
  position: absolute;
  z-index: -1;
  right: -5rem;
  bottom: -7rem;
  width: 29rem;
  height: 29rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.035), 0 0 0 6rem rgba(248, 232, 12, 0.045);
  content: "";
}
.home-page .hero-logo-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}
.home-page .hero-logo-bg img {
  width: min(48vw, 540px);
  max-width: 100%;
  opacity: 0.12;
  filter: drop-shadow(0 0 25px rgba(248, 232, 12, 0.16));
  animation: logoFade 7s ease-in-out infinite alternate;
}
@keyframes logoFade {
  0% {
    opacity: 0.08;
    transform: scale(0.96) rotate(-7deg) translateY(12px);
  }
  50% {
    opacity: 0.16;
    transform: scale(1.03) rotate(2deg) translateY(-6px);
  }
  100% {
    opacity: 0.2;
    transform: scale(0.99) rotate(7deg) translateY(8px);
  }
}
.hero-grid {
  display: grid;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(255px, 0.42fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-copy { max-width: 710px; }
.hero-copy .eyebrow { color: var(--yellow-500); }
.hero-copy .eyebrow::before { background: currentColor; }
.hero-copy h1 {
  max-width: 690px;
  margin: 0.55rem 0 1rem;
  color: #fff;
}
.hero-copy p {
  max-width: 610px;
  margin-bottom: 1.8rem;
  color: #dce6ff;
  font-size: 1rem;
}
.hero-copy .button.secondary { color: #fff; }
.hero-copy .button.secondary:hover { background: rgba(255, 255, 255, 0.1); }
.hero-side {
  display: grid;
  gap: 0.8rem;
  align-self: end;
}
.hero-card {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: var(--radius-sm);
  background: rgba(8, 19, 56, 0.66);
  color: #fff;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
}
.hero-card .hero-card-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--yellow-500);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 0.95rem;
}
.hero-card p {
  margin: 0;
  color: #dce6ff;
  font-size: 0.76rem;
}
.hero-card a {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--yellow-500);
  font-size: 0.74rem;
  font-weight: 800;
}
.hero-card a:hover { color: #fff; }
.trust-bar {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(1100px, calc(100% - 2.5rem));
  margin: -2.1rem auto 0;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.trust-item {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-item > i {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-yellow);
  color: var(--blue-700);
}
.trust-item strong,
.trust-item span { display: block; }
.trust-item strong { color: var(--ink); font-size: 0.77rem; }
.trust-item span {
  color: var(--ink-soft);
  font-size: 0.66rem;
  line-height: 1.35;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.95rem;
}
.quick-card {
  display: flex;
  min-height: 120px;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.quick-card > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-blue);
  color: var(--blue-700);
}
.quick-card:nth-child(even) > i { background: var(--surface-yellow); }
.quick-card strong,
.quick-card span { display: block; }
.quick-card strong { margin-bottom: 0.18rem; color: var(--ink); font-size: 0.78rem; }
.quick-card span { color: var(--ink-soft); font-size: 0.67rem; line-height: 1.45; }

/* Cards, image stories, and grids */
.split-story {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}
.image-stack {
  position: relative;
  min-height: 440px;
}
.image-stack .image-primary {
  width: 83%;
  height: 394px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.image-stack .image-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 51%;
  height: 225px;
  border: 7px solid var(--canvas);
  border-radius: 19px;
  object-fit: cover;
}
.image-label {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.48rem 0.7rem;
  border-radius: 9px;
  background: var(--yellow-500);
  color: var(--blue-950);
  font-size: 0.65rem;
  font-weight: 800;
}
.story-copy h2 { margin: 0.5rem 0 1rem; }
.check-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 1.8rem;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--ink-soft);
}
.check-list i { margin-top: 0.32rem; color: var(--blue-700); }
.check-list strong { color: var(--ink); }
.feature-grid,
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.two-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature-card,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.feature-card {
  min-height: 225px;
  padding: 1.55rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.feature-icon {
  display: grid;
  width: 47px;
  height: 47px;
  margin-bottom: 1.25rem;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-blue);
  color: var(--blue-700);
  font-size: 1.12rem;
}
.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon { background: var(--surface-yellow); }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { margin-bottom: 0; font-size: 0.83rem; }
.card { padding: 1.5rem; }
.card h3 { margin: 0.65rem 0 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.icon-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blue-700);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.icon-label i {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-blue);
}
.icon-label.yellow i { background: var(--surface-yellow); }
.media-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 1rem;
}
.media-tile {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue-950);
}
.media-tile.large { min-height: 335px; }
.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.media-tile:hover img { opacity: 1; transform: scale(1.05); }
.media-tile .media-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.75rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(10, 21, 57, 0.92));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}
.impact-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.impact-card {
  min-height: 152px;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
}
.impact-card:last-child { border: 0; }
.impact-card:first-child { background: var(--blue-700); }
.impact-card:first-child .eyebrow,
.impact-card:first-child h3,
.impact-card:first-child p { color: #fff; }
.impact-card:first-child .eyebrow::before { background: var(--yellow-500); }
.impact-card h3 { margin: 0.55rem 0 0.4rem; font-size: 1rem; }
.impact-card p { margin: 0; font-size: 0.74rem; }
.impact-card strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--blue-700);
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1;
}

/* Digital notices and calls to action */
.digital-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue-950);
  box-shadow: var(--shadow);
}
.digital-panel-copy {
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
}
.digital-panel-copy h2 { margin: 0.55rem 0 0.9rem; color: #fff; }
.digital-panel-copy p { max-width: 600px; color: #d7e1ff; }
.digital-panel-copy .eyebrow { color: var(--yellow-500); }
.digital-panel-copy .eyebrow::before { background: currentColor; }
.portal-links {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.portal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}
.portal-link:hover { background: rgba(255, 255, 255, 0.1); color: var(--yellow-500); }
.portal-link span { display: flex; align-items: center; gap: 0.6rem; }
.news-card {
  align-self: center;
  margin: 1.2rem 1.2rem 1.2rem 0;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--paper);
}
.news-card h3 { margin: 0.45rem 0 1rem; }
.notice {
  padding: 0.86rem 0;
  border-bottom: 1px solid var(--line);
}
.notice:last-child { padding-bottom: 0; border: 0; }
.notice time,
.notice span {
  display: block;
  color: var(--blue-700);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.notice a {
  display: inline-block;
  margin-top: 0.18rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}
.notice a:hover { color: var(--blue-700); }
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.7rem, 4vw, 2.5rem);
  border: 1px solid #e9df75;
  border-radius: var(--radius-lg);
  background: linear-gradient(118deg, var(--surface-blue), var(--surface-yellow));
}
.callout h2 {
  max-width: 660px;
  margin: 0.45rem 0 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.callout p { margin-bottom: 0; }

/* Inner-page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.3rem, 8vw, 6.3rem) 0 clamp(3.3rem, 6vw, 4.6rem);
  background:
    radial-gradient(circle at 85% 10%, rgba(248, 232, 12, 0.75) 0 5%, transparent 5.2%),
    radial-gradient(circle at 90% 12%, rgba(40, 60, 147, 0.1) 0 25%, transparent 25.3%),
    linear-gradient(125deg, var(--surface-blue), var(--canvas) 68%);
}
.page-hero::after {
  position: absolute;
  right: -4rem;
  bottom: -9rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(40, 60, 147, 0.14);
  border-radius: 50%;
  content: "";
}
.page-hero .site-width { position: relative; z-index: 1; }
.page-hero h1 { max-width: 790px; margin: 0.5rem 0 0.8rem; }
.page-hero p { max-width: 680px; margin-bottom: 0; font-size: 1rem; }
.page-hero .eyebrow::before { background: var(--yellow-500); }

/* Academics, fees, campus, clubs */
.path-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
}
.path-number {
  color: var(--yellow-500);
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.9;
}
.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.tag {
  padding: 0.32rem 0.52rem;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--blue-800);
  font-size: 0.64rem;
  font-weight: 800;
}
.tag.yellow { background: var(--surface-yellow); color: #5c5000; }
.performance-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.tab-button {
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 800;
}
.tab-button[aria-selected="true"] {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.result-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 1.15rem;
}
.result-score {
  display: grid;
  min-height: 100%;
  place-items: center;
  text-align: center;
}
.result-score strong {
  display: block;
  color: var(--blue-700);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
}
.result-score span { color: var(--ink-soft); font-size: 0.76rem; font-weight: 700; }
.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; }
.timeline-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-yellow);
  color: var(--blue-800);
  font-size: 0.71rem;
  font-weight: 800;
}
.timeline h3 { margin: 0.1rem 0 0.25rem; font-size: 0.88rem; }
.timeline p { margin: 0; font-size: 0.77rem; }
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  gap: 1.15rem;
}
.calculator {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--blue-950);
  box-shadow: var(--shadow);
}
.calculator h2,
.calculator p,
.calculator label { color: #fff; }
.calculator .eyebrow { color: var(--yellow-500); }
.calculator .eyebrow::before { background: currentColor; }
.fee-result {
  display: grid;
  min-height: 100%;
  align-content: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.fee-result .result-total {
  color: var(--blue-700);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1;
}
.fee-result .result-label {
  margin: 0.55rem 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}
.fee-breakdown { display: grid; gap: 0.55rem; }
.fee-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.77rem;
}
.fee-breakdown div:last-child { border: 0; }
.fee-breakdown strong { color: var(--ink); }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: left;
}
.accordion-trigger i { color: var(--blue-700); transition: transform 0.2s ease; }
.accordion-trigger[aria-expanded="true"] i { transform: rotate(45deg); }
.accordion-panel {
  display: none;
  padding: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.81rem;
}
.accordion-panel.open { display: block; }
.bank-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}
.bank-number {
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.copy-button {
  padding: 0.43rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--blue-700);
  font-size: 0.67rem;
  font-weight: 800;
}
.copy-button:hover { background: var(--surface-blue); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr 0.78fr;
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--blue-950);
}
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.6rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(9, 20, 60, 0.9));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.campus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
  gap: 1.15rem;
}
.photo-card { padding: 0; overflow: hidden; }
.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.club-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding: 0.65rem 0.8rem 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.7rem;
}
.search-field i { color: var(--blue-700); }
.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.club-count {
  flex: 0 0 auto;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-yellow);
  color: var(--blue-800);
  font-size: 0.65rem;
  font-weight: 800;
}
.club-card { padding: 0; overflow: hidden; }
.club-card-media { height: 180px; overflow: hidden; }
.club-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.club-card:hover .club-card-media img { transform: scale(1.05); }
.club-card-copy { padding: 1.15rem 1.25rem 1.3rem; }
.club-card-copy p { font-size: 0.79rem; }

/* Forms and contact */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  gap: 1.4rem;
  align-items: start;
}
.form-card { padding: clamp(1.25rem, 3.5vw, 2.35rem); }
.form-section {
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
}
.form-section:first-of-type { padding-top: 0; border-top: 0; }
.form-section h3 { margin-bottom: 0.25rem; }
.form-section > p { margin-bottom: 1rem; font-size: 0.8rem; }
fieldset.form-section {
  min-width: 0;
  margin: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}
fieldset.form-section legend {
  padding: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field-grid .full { grid-column: 1 / -1; }
.field label,
.calculator label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--ink);
  font-size: 0.71rem;
  font-weight: 800;
}
.calculator label { color: #e1e8ff; }
.field input,
.field select,
.field textarea,
.calculator select {
  width: 100%;
  padding: 0.76rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.81rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.calculator select {
  background: rgba(255, 255, 255, 0.98);
  color: var(--blue-950);
}
.field textarea { min-height: 115px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.calculator select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(56, 81, 176, 0.15);
}
.form-note {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
}
.privacy-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-blue);
  color: var(--ink-soft);
  font-size: 0.71rem;
}
.privacy-note i { margin-top: 0.15rem; color: var(--blue-700); }
.privacy-note a { color: var(--blue-700); font-weight: 800; text-decoration: underline; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}
.form-status.show { display: block; }
.form-status.success { background: #e0f7ef; color: #0b664d; }
.form-status.error { background: #fff0f2; color: var(--danger); }
.form-aside { position: sticky; top: 105px; }
.process-list { display: grid; gap: 1rem; margin: 1.15rem 0 1.4rem; }
.process-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0.75rem;
}
.process-num {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-yellow);
  color: var(--blue-800);
  font-size: 0.69rem;
  font-weight: 800;
}
.process-item h4 { margin: 0.12rem 0 0.18rem; font-family: var(--font-body); font-size: 0.8rem; }
.process-item p { margin: 0; font-size: 0.72rem; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1.18fr);
  gap: 1.15rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.78rem;
  margin: 1.1rem 0;
}
.contact-detail > i {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-yellow);
  color: var(--blue-700);
}
.contact-detail strong,
.contact-detail span,
.contact-detail a { display: block; }
.contact-detail strong { color: var(--ink); font-size: 0.72rem; }
.contact-detail span,
.contact-detail a { color: var(--ink-soft); font-size: 0.8rem; }
.contact-detail a:hover { color: var(--blue-700); }
.map-frame {
  width: 100%;
  min-height: 460px;
  border: 0;
  border-radius: var(--radius);
  filter: saturate(0.85);
  box-shadow: var(--shadow-sm);
}

/* Footer and fixed helpers */
.site-footer {
  padding: 4rem 0 1.35rem;
  background: var(--blue-950);
  color: #d9e4ff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.72fr 0.82fr 0.96fr;
  gap: 1.7rem;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.82rem;
}
.footer-brand img {
  width: 55px;
  height: 62px;
  object-fit: contain;
}
.footer-brand strong { display: block; color: #fff; font-size: 0.9rem; }
.footer-brand p { margin: 0.35rem 0 0; color: #b8c8ef; font-size: 0.74rem; }
.site-footer h3 {
  margin: 0 0 0.75rem;
  color: var(--yellow-500);
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.footer-links {
  display: grid;
  gap: 0.36rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a,
.footer-contact p { color: #d9e4ff; font-size: 0.75rem; }
.footer-contact p { margin: 0.32rem 0; }
.footer-links a:hover,
.footer-contact a:hover { color: var(--yellow-500); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #aabce4;
  font-size: 0.67rem;
}
.footer-socials { display: flex; gap: 0.45rem; }
.footer-socials a {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
}
.footer-socials a:hover { border-color: var(--yellow-500); color: var(--yellow-500); }
.floating-actions {
  position: fixed;
  z-index: 50;
  right: 1.15rem;
  bottom: 1.15rem;
  display: grid;
  gap: 0.55rem;
}
.float-button {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow);
}
.float-button.apply { background: #1d9d64; }
.float-button.top {
  background: var(--blue-700);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.float-button.top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-progress {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: var(--yellow-500);
  transition: width 0.1s linear;
}

/* Search */
.search-dialog {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
  background: rgba(6, 14, 43, 0.73);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.search-dialog.open { display: flex; }
.search-box {
  width: min(650px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.search-box-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.search-box-header > i { color: var(--blue-700); }
.search-box-header input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.search-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--surface-blue);
  color: var(--blue-700);
}
.search-results {
  display: grid;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}
.search-result {
  display: block;
  padding: 0.84rem;
  border-radius: 10px;
}
.search-result:hover,
.search-result:focus-visible { background: var(--surface-blue); }
.search-result strong,
.search-result span { display: block; }
.search-result strong { color: var(--ink); font-size: 0.8rem; }
.search-result span { color: var(--ink-soft); font-size: 0.71rem; }
.search-empty { padding: 1rem; margin: 0; color: var(--ink-soft); font-size: 0.79rem; }

/* Motion and responsive layout */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.56s ease, transform 0.56s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 1120px) {
  .header-inner { gap: 0.75rem; }
  .brand { min-width: 216px; }
  .main-nav a { padding-inline: 0.38rem; font-size: 0.66rem; }
}
@media (max-width: 980px) {
  .header-inner { min-height: 73px; }
  .main-nav {
    position: fixed;
    inset: 0;
    display: grid;
    visibility: hidden;
    place-items: start center;
    padding: 105px 1.25rem 2rem;
    background: rgba(9, 19, 55, 0.98);
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 40;
  }
  .main-nav.open { visibility: visible; opacity: 1; }
  .main-nav ul {
    display: grid;
    width: min(440px, 100%);
    gap: 0.3rem;
  }
  .main-nav a {
    min-height: 48px;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: #fff;
    font-size: 0.91rem;
  }
  .main-nav a:hover,
  .main-nav a.active { background: rgba(255, 255, 255, 0.1); color: var(--yellow-500); }
  .main-nav a::after { display: none; }
  .menu-toggle { position: relative; z-index: 2; display: grid; }
  .nav-open .menu-toggle { border-color: var(--yellow-500); background: var(--yellow-500); color: var(--blue-950); }
  .home-page .quick-links,
  .home-page .events-track,
  .home-page .footer-inner,
  .home-page .bottom-contact-bar { grid-template-columns: 1fr; }
  .home-page .bottom-contact-bar { display: grid; }
  .hero-grid,
  .split-story,
  .digital-panel,
  .calculator-layout,
  .contact-grid,
  .campus-grid,
  .form-layout { grid-template-columns: 1fr; }
  .hero-grid { min-height: 610px; padding-top: 5.25rem; }
  .hero-side { max-width: 430px; }
  .news-card { margin: 0 1.2rem 1.2rem; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-card:nth-child(2) { border-right: 0; }
  .impact-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr; }
  .footer-grid > :first-child { grid-column: span 3; }
  .form-aside { position: static; }
}
@media (max-width: 760px) {
  .utility-bar { display: none; }
  .site-width,
  .header-inner,
  .hero-grid { width: min(100% - 2rem, 1180px); }
  .page-main { padding-top: 2rem; }
  .brand { min-width: 0; gap: 0.6rem; }
  .brand-logo { width: 45px; height: 51px; }
  .brand-name { font-size: 0.76rem; }
  .brand-motto { display: none; }
  .icon-button { display: none; }
  .home-page .page-shell { width: min(100% - 1rem, 1200px); }
  .hero-shell { min-height: 650px; }
  .home-page .hero-shell { min-height: 580px; }
  .hero-grid { min-height: 650px; padding-bottom: 2.2rem; }
  .hero-copy h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .hero-side { align-self: end; }
  .home-page .hero-logo-bg img { width: min(74vw, 360px); }
  .home-page .quick-links,
  .home-page .events-track,
  .home-page .notice-track,
  .home-page .carousel-inner { grid-template-columns: 1fr; }
  .home-page .bottom-contact-bar { width: min(100% - 0.75rem, 1200px); }
  .trust-bar { grid-template-columns: repeat(2, 1fr); margin-top: -1.3rem; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .quick-grid,
  .feature-grid,
  .three-grid,
  .four-grid,
  .media-strip { grid-template-columns: 1fr; }
  .media-tile,
  .media-tile.large { min-height: 235px; }
  .image-stack { min-height: 370px; }
  .image-stack .image-primary { height: 330px; }
  .image-stack .image-secondary { width: 52%; height: 172px; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-card,
  .impact-card:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .impact-card:last-child { border-bottom: 0; }
  .callout { display: block; }
  .callout .button { margin-top: 1.2rem; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }
  .gallery-item:first-child { grid-row: span 2; }
  .gallery-item:last-child { grid-column: span 2; }
  .two-grid,
  .result-layout { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .full { grid-column: auto; }
  .bank-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
  .footer-bottom { display: block; }
  .footer-socials { margin-top: 0.8rem; }
}
@media (max-width: 480px) {
  html { font-size: 16px; }
  .header-inner { min-height: 66px; }
  .brand-name .brand-gosec { font-size: 0.5rem; }
  .hero-shell { min-height: 620px; }
  .home-page .hero-shell { min-height: 540px; }
  .hero-grid { min-height: 620px; padding-top: 4rem; }
  .hero-card { padding: 1rem; }
  .home-page .hero-logo-bg img { width: min(76vw, 280px); }
  .home-page .bottom-contact-bar { padding: 0.75rem; }
  .home-page .bottom-contact-bar .d-flex { display: grid !important; width: 100%; }
  .home-page .bottom-contact-bar .btn { width: 100%; }
  .trust-bar,
  .quick-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .trust-item,
  .trust-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .gallery-grid { grid-template-rows: repeat(5, 190px); }
  .gallery-item:first-child,
  .gallery-item:last-child { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .floating-actions { right: 0.8rem; bottom: 0.8rem; }
}
