/* ============================================
   Canossa College of Nursing — Global Styles
   Palette: deep navy, white, soft grey, teal + gold accent
   Fonts: Poppins (headings), Inter (body)
   ============================================ */

:root {
  --color-navy: #0b1f33;
  --color-navy-soft: #132f4a;
  --color-white: #ffffff;
  --color-grey-50: #f6f8fa;
  --color-grey-100: #e8edf2;
  --color-grey-600: #5c6b7a;
  --color-grey-900: #1a2836;
  --color-teal: #0f766e;
  --color-teal-soft: #ccfbf1;
  --color-gold: #c4a035;
  --color-gold-soft: rgba(196, 160, 53, 0.12);
  --shadow-sm: 0 2px 8px rgba(11, 31, 51, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 31, 51, 0.08);
  --shadow-premium: 0 12px 48px rgba(11, 31, 51, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --header-height: 72px;
  --quick-bar-height: 40px;
  --site-top-height: calc(var(--quick-bar-height) + var(--header-height));
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --transition: 0.25s ease;
  --transition-slow: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-grey-900);
  background: var(--color-grey-50);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-navy);
}

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-navy);
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--color-grey-600);
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

/* ---------- Quick info bar ---------- */
.quick-info-bar {
  background: linear-gradient(
    90deg,
    var(--color-navy) 0%,
    var(--color-navy-soft) 50%,
    #0d3d52 100%
  );
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  min-height: var(--quick-bar-height);
  display: flex;
  align-items: center;
}

.quick-info-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
  padding-block: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 500;
}

.quick-info-bar__sep {
  opacity: 0.35;
  user-select: none;
}

.quick-info-bar a {
  color: rgba(255, 255, 255, 0.95);
}

.quick-info-bar a:hover {
  color: var(--color-teal-soft);
}

/* Sticky site top: announcements + header */
.site-top {
  position: sticky;
  top: 0;
  z-index: 150;
}

.site-header {
  position: relative;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--color-navy);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-navy);
}

.logo__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.logo__subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-grey-600);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-grey-100);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  color: var(--color-navy);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--transition);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), top var(--transition);
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
}

.nav__primary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.nav__item {
  position: relative;
}

.nav__primary > .nav__item > a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-grey-900);
  padding: 0.35rem 0;
  position: relative;
  text-decoration: none;
}

.nav__primary > .nav__item > a:hover {
  color: var(--color-teal);
}

.nav__mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-grey-900);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0;
  position: relative;
  text-align: left;
}

.nav__mega-trigger:hover {
  color: var(--color-teal);
}

.nav__chev {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
  opacity: 0.85;
  transition: transform 0.28s var(--transition, ease);
}

.nav__mega-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  border-radius: 2px;
  transition: width 0.28s ease;
}

.nav__item--dropdown:hover .nav__mega-trigger::after,
.nav__item--dropdown:focus-within .nav__mega-trigger::after {
  width: 100%;
}

.nav__item--dropdown.has-active-descendant .nav__mega-trigger::after {
  width: 100%;
}

.nav__primary > .nav__item > a.is-active {
  color: var(--color-teal);
}

.nav__primary > .nav__item > a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  border-radius: 2px;
}

.nav__item--dropdown.has-active-descendant .nav__mega-trigger {
  color: var(--color-teal);
}

.nav__dropdown {
  list-style: none;
}

.nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__sub a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-grey-900);
  text-decoration: none;
  position: relative;
  display: block;
}

.nav__sub a:hover {
  color: var(--color-teal);
}

.nav__sub a.is-active {
  color: var(--color-teal);
  font-weight: 600;
}

@media (min-width: 901px) {
  /* Hover bridge: fills gap between trigger and panel so :hover stays on .nav__item--dropdown */
  .nav__item--dropdown::after {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: calc(100% - 8px);
    height: 22px;
    background: transparent;
    z-index: 219;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav__item--dropdown:hover::after,
  .nav__item--dropdown:focus-within::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__dropdown {
    position: absolute;
    left: 50%;
    top: 100%;
    margin-top: -10px;
    padding-top: 0.35rem;
    transform: translate(-50%, -10px);
    min-width: 228px;
    padding: 0.55rem 0 0.45rem;
    margin-left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-grey-100);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 44px rgba(11, 31, 51, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.28s ease;
    z-index: 220;
  }

  .nav__item--dropdown:hover .nav__dropdown,
  .nav__item--dropdown:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .nav__sub {
    padding: 0.2rem 0;
  }

  .nav__sub a {
    padding: 0.55rem 1.15rem;
  }

  .nav__sub a:hover {
    background: var(--color-grey-50);
  }

  .nav__sub a.is-active {
    background: rgba(15, 118, 110, 0.07);
    border-left: 3px solid var(--color-teal);
    padding-left: calc(1.15rem - 3px);
  }
}

@media (max-width: 900px) {
  .nav__item--dropdown::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--site-top-height) 0 auto 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-grey-100);
    padding: 0.75rem 1rem 1.15rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition),
      visibility var(--transition);
    box-shadow: var(--shadow-md);
    max-height: min(78vh, calc(100vh - var(--site-top-height)));
    overflow-y: auto;
  }

  .site-header.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__primary {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
  }

  .nav__primary > .nav__item > a,
  .nav__mega-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-grey-100);
    border-radius: 0;
  }

  .nav__mega-trigger::after {
    display: none;
  }

  .nav__primary > .nav__item > a.is-active::after {
    display: none;
  }

  .nav__primary > .nav__item > a.is-active {
    border-left: 3px solid var(--color-teal);
    padding-left: 0.5rem;
  }

  .nav__item--dropdown.has-active-descendant .nav__mega-trigger {
    border-left: 3px solid var(--color-teal);
    padding-left: 0.5rem;
  }

  .nav__dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
  }

  .nav__item--dropdown.is-open .nav__dropdown {
    max-height: 320px;
    opacity: 1;
  }

  .nav__item--dropdown.is-open .nav__chev {
    transform: rotate(-135deg);
    margin-top: 0.12rem;
  }

  .nav__sub {
    padding: 0.15rem 0 0.65rem 0.85rem;
    border-bottom: 1px solid var(--color-grey-100);
  }

  .nav__sub li:last-child a {
    border-bottom: none;
  }

  .nav__sub a {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(11, 31, 51, 0.06);
    font-weight: 500;
  }

  .nav__sub a.is-active {
    color: var(--color-teal);
    border-left: 3px solid var(--color-teal);
    padding-left: 0.45rem;
    background: rgba(15, 118, 110, 0.05);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--primary:hover {
  background: #0d9488;
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--gold {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-navy);
}

.btn--gold:hover {
  background: var(--color-gold-soft);
  color: var(--color-navy);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(
      135deg,
      var(--color-navy) 0%,
      var(--color-navy-soft) 55%,
      #0d3d52 100%
    );
  color: var(--color-white);
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 50% at 80% 20%,
      rgba(15, 118, 110, 0.25),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 40% at 10% 90%,
      rgba(196, 160, 53, 0.08),
      transparent 50%
    );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-white);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 58ch;
}

.hero .btn.btn--outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero .btn.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero__accent-line {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  margin-bottom: 1.25rem;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--white {
  background: var(--color-white);
}

.section--tint {
  background: var(--color-grey-50);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 960px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .card-grid--4,
  .card-grid--3,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-grey-100);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-teal-soft);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--color-grey-600);
}

.link-arrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

/* ---------- Split / preview ---------- */
.split-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .split-preview {
    grid-template-columns: 1fr;
  }
}

.vm-box {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-grey-100);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.vm-box--mission {
  border-top: 3px solid var(--color-gold);
}

.vm-box--vision {
  border-top: 3px solid var(--color-teal);
}

.vm-box blockquote {
  margin: 0;
  font-style: italic;
  color: var(--color-grey-900);
  font-size: 1rem;
}

.vm-box footer {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-navy), var(--color-navy-soft));
  color: var(--color-white);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(15, 118, 110, 0.2),
    transparent 50%
  );
  pointer-events: none;
}

.cta-band h2 {
  color: var(--color-white);
  position: relative;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin: 0.75rem auto 1.5rem;
  position: relative;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
}

.cta-band .btn--primary {
  background: var(--color-white);
  color: var(--color-navy);
  position: relative;
}

.cta-band .btn--primary:hover {
  background: var(--color-teal-soft);
  color: var(--color-navy);
}

.cta-band .btn.btn--outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.cta-band .btn.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--color-teal-soft);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a {
  font-size: 0.9rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.footer-meta {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey-100);
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  margin-bottom: 0;
}

/* ---------- Inner page banner hero ---------- */
.page-hero--banner {
  position: relative;
  min-height: clamp(260px, 36vw, 400px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-bottom: none;
  overflow: hidden;
  background: var(--color-navy);
}

.page-hero--banner__media {
  position: absolute;
  inset: 0;
}

.page-hero--banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 31, 51, 0.93) 0%,
    rgba(11, 31, 51, 0.72) 45%,
    rgba(11, 31, 51, 0.52) 100%
  );
}

.page-hero--banner__glow {
  position: absolute;
  width: min(460px, 58vw);
  height: min(460px, 58vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.28) 0%, transparent 66%);
  filter: blur(44px);
  top: -22%;
  right: -12%;
  pointer-events: none;
}

.page-hero--banner__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2rem, 4vw, 2.75rem);
}

.page-hero--banner h1 {
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 28px rgba(11, 31, 51, 0.35);
}

.page-hero--banner .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 38rem;
  margin-bottom: 0;
}

.section-label--on-dark {
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin-bottom: 1rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.38;
  font-weight: 500;
}

.breadcrumb--light a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.breadcrumb--light a:hover {
  color: var(--color-teal-soft);
}

.breadcrumb--light li:last-child {
  color: rgba(255, 255, 255, 0.95);
}

.breadcrumb--dark a {
  color: var(--color-grey-600);
}

.breadcrumb--dark a:hover {
  color: var(--color-teal);
}

.breadcrumb--dark li:last-child {
  color: var(--color-navy);
}

/* ---------- Split showcase ---------- */
.split-showcase {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .split-showcase {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .split-showcase > .stat-cards {
    margin-top: 0;
    align-self: center;
  }

  .split-showcase--flip {
    direction: rtl;
  }

  .split-showcase--flip > * {
    direction: ltr;
  }
}

.split-showcase__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.split-showcase__figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-showcase__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.15rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, transparent, rgba(11, 31, 51, 0.82));
}

/* ---------- Icon cards ---------- */
.icon-card-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.icon-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-grey-100);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.12);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.icon-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.icon-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-grey-600);
  line-height: 1.55;
}

/* ---------- Premium timeline strip ---------- */
.timeline-strip {
  display: grid;
  gap: 1rem;
}

@media (min-width: 780px) {
  .timeline-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.timeline-strip__item {
  padding: 1.35rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.timeline-strip__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.15rem;
  right: 1.15rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  opacity: 0.85;
}

.timeline-strip__year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-teal);
  margin-bottom: 0.35rem;
}

.timeline-strip__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-grey-600);
  line-height: 1.5;
}

/* ---------- Quote highlight ---------- */
.quote-highlight {
  margin: 0;
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-teal);
  background: linear-gradient(
    135deg,
    rgba(15, 118, 110, 0.09) 0%,
    rgba(11, 31, 51, 0.04) 100%
  );
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.55;
}

.section--navy-band {
  background: linear-gradient(160deg, var(--color-navy) 0%, #142a42 100%);
  color: rgba(255, 255, 255, 0.88);
}

.section--navy-band h2,
.section--navy-band h3 {
  color: #fff;
}

.section--navy-band .section-label {
  color: rgba(255, 255, 255, 0.55);
}

.section--soft {
  background: linear-gradient(180deg, var(--color-grey-50) 0%, #fafbfc 100%);
}

/* ---------- Programme showcase cards ---------- */
.programme-showcase {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 820px) {
  .programme-showcase {
    grid-template-columns: 1fr 1fr;
  }
}

.programme-showcase-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}

.programme-showcase-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.programme-showcase-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programme-showcase-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.programme-showcase-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.35rem;
}

/* ---------- Comparison table ---------- */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-grey-100);
}

.compare-table th {
  background: var(--color-grey-50);
  font-family: var(--font-heading);
  font-weight: 600;
}

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

.panel-muted {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--color-grey-50);
  border: 1px solid var(--color-grey-100);
}

/* ---------- Clinical process cards ---------- */
.process-pill-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.process-pill {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.process-pill__step {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal), #0d9488);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-pill h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.process-pill p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-grey-600);
}

/* ---------- News premium cards ---------- */
.news-card-pro {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-grey-100);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .news-card-pro {
    grid-template-columns: minmax(200px, 280px) 1fr;
  }
}

.news-card-pro__media {
  position: relative;
  margin: 0;
  min-height: 180px;
}

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

.news-card-pro__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.news-card-pro__body {
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-card-pro__body h2 {
  margin: 0;
  font-size: 1.15rem;
}

.news-card-pro__body > p {
  margin: 0;
  flex: 1;
}

/* ---------- Career pathway ---------- */
.path-card-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.path-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-grey-100);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.path-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

/* ---------- Contact premium ---------- */
.contact-layout--premium {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .contact-layout--premium {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.contact-card--elevated {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}

.map-placeholder--premium {
  border-radius: var(--radius-lg);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(
      145deg,
      rgba(11, 31, 51, 0.92) 0%,
      rgba(15, 118, 110, 0.35) 100%
    ),
    var(--color-grey-100);
  border: 1px solid var(--color-grey-100);
}

/* ---------- Depth décor (inner pages) ---------- */
.section--depth {
  position: relative;
  overflow: hidden;
}

.section--depth::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.07) 0%, transparent 68%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.section--depth > .container {
  position: relative;
  z-index: 1;
}
.prose {
  max-width: 42rem;
}

.prose-wide {
  max-width: 52rem;
}

.stack-lg > * + * {
  margin-top: 1.25rem;
}

.placeholder-note {
  font-size: 0.88rem;
  color: var(--color-grey-600);
  padding: 0.75rem 1rem;
  background: var(--color-grey-50);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-sm);
}

/* ---------- Steps (admissions) ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-teal-soft);
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-grid figure.gallery-tile {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-grey-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-grid figure.gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-grey-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-item figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-heading);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-sm);
}

.contact-card address {
  font-style: normal;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-grey-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--color-teal-soft);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.map-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--color-grey-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey-600);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--color-grey-600);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

.section--premium {
  padding-block: var(--space-6);
}

/* ---------- Principal message ---------- */
.principal-message__grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(var(--space-3), 5vw, var(--space-5));
  align-items: center;
}

@media (max-width: 820px) {
  .principal-message__grid {
    grid-template-columns: 1fr;
  }
}

.principal-message__portrait {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--color-grey-100);
}

.principal-message__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.principal-message__portrait:hover img {
  transform: scale(1.03);
}

.principal-message__quote {
  margin: 0 0 var(--space-3);
  padding: 0;
  border: none;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-grey-900);
  font-style: italic;
}

.principal-message__sig {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
  padding-top: var(--space-2);
  border-top: 2px solid var(--color-gold-soft);
}

.principal-message__role {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-grey-600);
  margin-top: 0.25rem;
}

/* ---------- Why choose feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-3) var(--space-4);
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition);
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-premium);
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.25);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--color-teal-soft),
    var(--color-gold-soft)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--color-teal);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--color-grey-600);
}

/* ---------- Life at Canossa ---------- */
.life-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}

@media (max-width: 1100px) {
  .life-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .life-strip {
    grid-template-columns: 1fr;
  }
}

.life-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-sm);
}

.life-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.life-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.life-card:hover .life-card__media img {
  transform: scale(1.08);
}

.life-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 31, 51, 0.15) 0%,
    rgba(11, 31, 51, 0.82) 100%
  );
  transition: background var(--transition);
}

.life-card:hover .life-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(15, 118, 110, 0.25) 0%,
    rgba(11, 31, 51, 0.88) 100%
  );
}

.life-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-3);
  color: #fff;
}

.life-card__body h3 {
  color: #fff;
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.life-card__body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Admission flow ---------- */
.admission-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

@media (max-width: 900px) {
  .admission-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .admission-flow {
    grid-template-columns: 1fr;
  }
}

.admission-flow__step {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.admission-flow__step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.admission-flow__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
  box-shadow: 0 4px 14px rgba(11, 31, 51, 0.2);
}

.admission-flow__step h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.admission-flow__step p {
  font-size: 0.88rem;
  color: var(--color-grey-600);
}

/* ---------- Campus experience split ---------- */
.campus-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--color-grey-100);
}

@media (max-width: 900px) {
  .campus-split {
    grid-template-columns: 1fr;
  }
}

.campus-split__media {
  min-height: 320px;
}

.campus-split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.campus-split__content {
  background: var(--color-white);
  padding: clamp(var(--space-4), 5vw, var(--space-5));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Facility tile (button card) ---------- */
.facility-tile {
  display: block;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: none;
  background: var(--color-white);
  color: var(--color-grey-900);
}

.facility-tile h3 {
  color: var(--color-navy);
}

.facility-tile:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

.facility-tile .card__hint {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-teal);
  margin-top: var(--space-2);
}

.facility-tile:hover .card__hint {
  color: var(--color-navy);
}

.facility-tile--visual {
  padding: 0;
  overflow: hidden;
}

.facility-tile__thumb {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-grey-50);
}

.facility-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facility-tile__body {
  padding: var(--space-3, 1.25rem);
  text-align: left;
}

.facility-tile--visual .card__icon {
  margin-bottom: 0.5rem;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 51, 0.72);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  padding: var(--space-3);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition-slow);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-grey-50);
  color: var(--color-navy);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: background var(--transition);
}

.modal__close:hover {
  background: var(--color-grey-100);
}

.facility-modal__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.facility-modal__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.facility-modal__title {
  margin: 0 0 var(--space-2);
}

.facility-modal__desc {
  color: var(--color-grey-600);
  font-size: 0.95rem;
}

/* ---------- Gallery lightbox ---------- */
.gallery-lightbox .modal__dialog {
  width: min(100%, 920px);
  padding: var(--space-2);
}

.gallery-lightbox__stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-navy);
}

.gallery-lightbox__stage img {
  width: 100%;
  max-height: min(70vh, 620px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.gallery-lightbox__caption {
  padding: var(--space-2) var(--space-2) var(--space-1);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
}

.gallery-lightbox__toolbar {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  padding-bottom: var(--space-1);
}

.gallery-lightbox__toolbar button {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-grey-100);
  background: var(--color-grey-50);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.gallery-lightbox__toolbar button:hover:not(:disabled) {
  background: var(--color-teal-soft);
  border-color: var(--color-teal);
}

.gallery-lightbox__toolbar button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-tile__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.gallery-tile__btn img {
  transition: transform var(--transition-slow);
}

.gallery-tile__btn:hover img {
  transform: scale(1.06);
}

.gallery-tile__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.gallery-tile figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-heading);
}

/* ---------- FAQ accordion ---------- */
.accordion {
  max-width: 760px;
  margin-inline: auto;
}

.accordion__item {
  border: 1px solid var(--color-grey-100);
  border-radius: var(--radius-md);
  background: var(--color-white);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3);
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.accordion__trigger:hover {
  background: var(--color-grey-50);
}

.accordion__trigger .accordion__chev {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-right: 2px solid var(--color-teal);
  border-bottom: 2px solid var(--color-teal);
  transform: rotate(45deg);
  transition: transform var(--transition);
  margin-bottom: 6px;
}

.accordion__trigger[aria-expanded="true"] .accordion__chev {
  transform: rotate(-135deg);
  margin-top: 6px;
  margin-bottom: 0;
}

.accordion__panel {
  padding: 0;
  color: var(--color-grey-600);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- Downloads ---------- */
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-grey-100);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--color-teal);
}

.download-btn__icon {
  font-size: 1.1rem;
}

/* ---------- Premium CTA band ---------- */
.cta-premium {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(var(--space-5), 8vw, var(--space-6));
  text-align: center;
  background: linear-gradient(
    125deg,
    var(--color-navy) 0%,
    #152d45 40%,
    var(--color-navy-soft) 100%
  );
  box-shadow: var(--shadow-premium);
}

.cta-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 40%,
      rgba(15, 118, 110, 0.35),
      transparent 45%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(196, 160, 53, 0.12),
      transparent 40%
    );
  pointer-events: none;
}

.cta-premium > * {
  position: relative;
}

.cta-premium h2 {
  color: #fff;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  margin-bottom: var(--space-2);
}

.cta-premium > p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
  margin: 0 auto var(--space-4);
  font-size: 1.05rem;
}

.cta-premium .btn--primary {
  background: #fff;
  color: var(--color-navy);
}

.cta-premium .btn--primary:hover {
  background: var(--color-teal-soft);
}

.cta-premium .cta-actions {
  margin-top: 0.25rem;
}

.cta-premium .btn.btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.cta-premium .btn.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ---------- FAB stack (enquiry + WhatsApp) ---------- */
.fab-stack {
  position: fixed;
  right: max(var(--space-2), env(safe-area-inset-right));
  bottom: max(var(--space-2), env(safe-area-inset-bottom));
  z-index: 350;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.fab-enquiry {
  position: static;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-teal), #0d9488);
  box-shadow: 0 10px 36px rgba(15, 118, 110, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab-enquiry:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(15, 118, 110, 0.5);
}

.fab-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.42);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab-whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.48);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-3);
}

.btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition),
    transform var(--transition);
}

.btn-footer:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.btn-footer--whatsapp {
  border-color: rgba(37, 211, 102, 0.55);
  background: rgba(37, 211, 102, 0.12);
}

.btn-footer--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.85);
  background: rgba(37, 211, 102, 0.22);
}

/* ---------- Principal page ---------- */
.principal-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .principal-layout {
    grid-template-columns: minmax(220px, 300px) 1fr;
  }
}

.principal-portrait {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.principal-portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.principal-message > p {
  margin-bottom: 1rem;
}

.principal-signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-grey-100);
}

.principal-signature__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-navy);
}

.principal-signature__role {
  font-size: 0.9rem;
  color: var(--color-grey-600);
  margin-top: 0.25rem;
}

/* ---------- Faculty directory ---------- */
.faculty-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.faculty-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.faculty-card__photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-2);
  aspect-ratio: 1;
  background: var(--color-grey-50);
}

.faculty-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faculty-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--color-navy);
}

.faculty-card__designation {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-teal);
  margin: 0 0 0.35rem;
}

.faculty-card__qualification {
  font-size: 0.88rem;
  color: var(--color-grey-600);
  margin: 0 0 var(--space-2);
  flex: 1;
}

.faculty-card__more {
  align-self: flex-start;
}

/* ---------- Structured content / careers stats ---------- */
.block-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-block {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-sm);
}

.content-block h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: var(--space-3);
}

.stat-cards__item {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--color-navy), #142a42);
  color: rgba(255, 255, 255, 0.92);
}

.stat-cards__item strong {
  display: block;
  font-size: 1.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-cards__item span {
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.88;
}

/* ---------- News & events listing ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .news-card {
    grid-template-columns: 200px 1fr;
  }
}

.news-card__media {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-grey-50);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-card__body time {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-teal);
  letter-spacing: 0.02em;
}

.news-card__body h2 {
  margin: 0;
  font-size: 1.15rem;
}

.news-card__body > p {
  margin: 0;
  color: var(--color-grey-600);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.article-modal__meta {
  font-size: 0.88rem;
  color: var(--color-grey-600);
  margin: -0.25rem 0 1rem;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 360;
  pointer-events: none;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 51, 0.5);
  opacity: 0;
  transition: opacity var(--transition);
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 400px);
  background: var(--color-white);
  box-shadow: -12px 0 48px rgba(11, 31, 51, 0.18);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-3);
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.drawer__head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.drawer__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-grey-50);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.drawer__body {
  flex: 1;
  overflow: auto;
}

.footer-about {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-3);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  transition: background var(--transition), transform var(--transition);
}

.social-row a:hover {
  background: rgba(15, 118, 110, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.social-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-grid--enhanced {
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
}

@media (max-width: 900px) {
  .footer-grid--enhanced {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid--enhanced {
    grid-template-columns: 1fr;
  }
}

/* ---------- Scroll animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility ---------- */
.mt-0 {
  margin-top: 0;
}

.text-center {
  text-align: center;
}

.mb-section {
  margin-bottom: 2rem;
}
