/* =========================================================================
    components.css — Institutional Architecture (Clean Header, Editorial Hero,
    Academic Notice Board, Course Grid, Faculty Directory & Clean Footer)
    ========================================================================= */

.config-error-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #7f1d1d;
  color: #fff;
  padding: 14px 24px;
  border-bottom: 2px solid #fca5a5;
  font-size: 14.5px;
}

.config-error-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.config-error-banner p {
  margin: 0;
  color: #fecaca;
}

/* ---- Top Utility Bar ---- */
.top-bar {
  background: var(--theme-primary-dark);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  padding: 8px 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

/*
    IMPORTANT — icon rendering fix:
    The previous build showed blank white circles because the HTML referenced
    icon classes (e.g. <i class="fa-brands fa-facebook">) but the page never
    loaded an icon font/library, so the glyph had nothing to render.
    Fix in the HTML <head>, not here:
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    This CSS block below makes each icon a consistent circular hit target
    once the icon library is actually loaded.
  */
.top-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  opacity: 0.95;
  transition: var(--transition);
}

.top-bar-social a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.top-bar-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-info a {
  color: #ffffff;
  text-decoration: underline;
}

/* ---- Header Pill CTA ----
     NOTE: the old file defined `.nav a.nav-cta` twice with conflicting
     styles (one pill/50px + accent color, one square/theme-primary). The
     second definition silently won and killed the pill-button look. Only
     ONE definition now exists below. */
.nav a.nav-cta {
  background: var(--theme-accent);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 50px;
  margin-left: 12px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.nav a.nav-cta:hover {
  background: var(--theme-accent-hover);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

/* ---- Institutional Header ---- */
#site-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h, 80px);
  background: #ffffff;
  border-bottom: 1px solid var(--theme-line);
  box-shadow: 0 2px 10px rgba(11, 25, 44, 0.04);
  transition: var(--transition);
}

.brand-tag[hidden] {
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h, 80px);
}

/* Brand Identity */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.brand-logo .site-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo .logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--theme-primary);
  color: var(--theme-accent);
  font-weight: 800;
  font-size: 20px;
  font-family: var(--font-serif);
  border-radius: var(--radius-sm);
}

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

.brand-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--theme-primary);
  letter-spacing: -0.01em;
  font-family: var(--font-heading);
}

.brand-tag {
  color: var(--theme-muted);
  font-size: 12.5px;
  font-weight: 500;
}

/* Nav Bar */
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 8px 14px;
  font-weight: 600;
  color: var(--theme-text);
  font-size: 14.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav a:hover {
  color: var(--theme-accent);
  background: var(--theme-surface);
}

.nav a.active:not(.nav-cta) {
  color: var(--theme-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--theme-accent);
  border-radius: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--theme-surface);
  border: 1px solid var(--theme-line);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 40px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--theme-primary);
  margin: 4px auto;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu OPEN state — toggled by JS adding .nav-open to <body> or .site-header.
     This was entirely missing before, so the hamburger button had nothing to control. */
.nav-toggle.is-active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---- Academic Hero Section with Full-Bleed Campus Photography ---- */
.hero {
  min-height: 70vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  color: #ffffff;
  padding: 80px 0 120px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.84);
  z-index: 0;
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(13, 148, 136, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #ffffff;
  font-family: var(--font-heading);
}

.hero h1 span.hl {
  color: var(--theme-highlight);
}

.hero p.lead,
.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 620px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-btns .btn-light {
  background: var(--theme-accent);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
}

.hero-btns .btn-light:hover {
  background: var(--theme-accent-hover);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.hero-btns .btn-white.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 14px 28px;
}

.hero-btns .btn-white.btn-outline:hover {
  background: #ffffff;
  color: var(--theme-primary);
}

/* ---- Feature Strip Overlapping Hero (Numbered 01 02 03 04 Cards) ---- */
.hero-stats-ribbon {
  background: transparent;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hero-stats .stat {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--theme-line);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.hero-stats .stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  border-color: var(--theme-accent);
}

.stat-num,
.stat b {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--theme-primary);
  font-family: var(--font-heading);
}

.stat-label,
.stat span {
  color: var(--theme-muted);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* Inner Page Hero Header Photography & Height Guarantee */
.page-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  color: #ffffff;
  background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-hero h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  max-width: 680px;
}

.breadcrumb {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--theme-accent);
}

.breadcrumb .sep {
  opacity: 0.5;
}

/* ---- Academic Course Cards ---- */
.home-grid,
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--theme-line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}

.course-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--theme-accent);
  transform: translateY(-2px);
}

.course-card .card-media {
  height: 180px;
  position: relative;
  background: var(--theme-surface-alt);
}

.course-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card .card-body h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--theme-primary);
}

.course-card .card-body p {
  color: var(--theme-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.course-card .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.course-card .chip {
  background: var(--theme-surface);
  border: 1px solid var(--theme-line);
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.course-card .chip-row {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--theme-line);
}

.course-toolbar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  margin-bottom: 32px;
  background: var(--theme-surface);
  padding: 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--theme-line);
}

/* ---- Notice Board Layout (Clean List Rows) ---- */
.notice-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.list-item {
  display: flex;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--theme-line);
  align-items: center;
  transition: var(--transition);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: var(--theme-surface);
}

.li-date {
  flex: 0 0 120px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--theme-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.li-body {
  flex: 1;
}

.li-body b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-primary);
  margin-bottom: 4px;
}

.li-sub {
  display: block;
  color: var(--theme-muted);
  font-size: 14px;
}

.li-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--theme-secondary);
}

/* ---- Vision & Mission Editorial Tiles ---- */
.vm-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.vm-tile,
.vm-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 32px;
  border: 1px solid var(--theme-line);
  border-left: 4px solid var(--theme-primary);
  box-shadow: var(--shadow-sm);
}

.vm-tile h3,
.vm-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme-primary);
  margin-bottom: 10px;
}

.vm-tile p,
.vm-card p {
  color: var(--theme-muted);
  font-size: 15px;
  margin: 0;
}

/* ---- Faculty Directory ---- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.faculty-card {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--radius-card);
}

.faculty-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 2px solid var(--theme-line);
}

.faculty-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.faculty-role {
  color: var(--theme-accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ---- Leadership Messages ---- */
.msg-card {
  padding: 32px;
  border-radius: var(--radius-card);
  background: #ffffff;
  border: 1px solid var(--theme-line);
  border-top: 4px solid var(--theme-accent);
}

.msg-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid var(--theme-line);
}

.msg-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.msg-role {
  color: var(--theme-accent);
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.msg-body {
  color: var(--theme-text);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---- Events List & Cards ---- */
.event-card {
  padding: 24px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-date {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--theme-line);
}

.ed-md {
  font-size: 28px;
  font-weight: 800;
  color: var(--theme-primary);
  font-family: var(--font-heading);
}

.ed-mo {
  text-transform: uppercase;
  font-size: 12px;
  color: var(--theme-muted);
  font-weight: 700;
}

/* ---- Notices Page Tabs ---- */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--theme-line);
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--theme-muted);
  font-weight: 700;
  font-size: 14.5px;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--theme-primary);
  border-bottom-color: var(--theme-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ---- Gallery Grid & Lightbox ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: zoom-in;
  border: 1px solid var(--theme-line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-item figcaption,
.gallery-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 14px 12px;
  font-size: 13px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.88);
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  display: none;
}

.lightbox.open {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 14, 26, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 14px;
  font-size: 15px;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.lightbox-btn:hover {
  background: var(--theme-accent);
}

#lightbox-prev {
  left: 24px;
}

#lightbox-next {
  right: 24px;
}

#lightbox-close {
  top: 24px;
  right: 24px;
  transform: none;
}

/* ---- Form Cards ---- */
.form-card {
  background: #ffffff;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  margin: 0 auto;
}

.form-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
}

/* ---- Contact Page 3-Card Info Strip ---- */
.contact-section {
  background: var(--theme-surface);
  padding: 60px 0 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.contact-info-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 20px 22px;
  border: 1px solid var(--theme-line);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--theme-accent);
  box-shadow: var(--shadow-md);
}

.contact-info-card .ic-circle {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: var(--theme-accent-light);
  color: var(--theme-accent);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 0;
}

.contact-info-card b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--theme-primary);
  margin-bottom: 2px;
}

.contact-info-card span {
  color: var(--theme-muted);
  font-size: 13px;
  line-height: 1.35;
}

.contact-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-row .ic {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-accent-light);
  display: grid;
  place-items: center;
  color: var(--theme-accent);
  font-size: 18px;
}

.contact-row b {
  display: block;
  color: var(--theme-primary);
  font-size: 15px;
  font-weight: 700;
}

/* ---- Professional Footer (simple layout) ---- */
.site-footer {
  margin-top: 80px;
  padding: 64px 0 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--theme-primary);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--theme-accent);
}

.site-footer .brand {
  margin-bottom: 1rem;
}

.site-footer .brand-name {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-footer p#footer-about {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 360px;
}

.footer-grid {
  align-items: start;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

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

.site-footer ul li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.site-footer a:hover {
  color: var(--theme-highlight);
}

.footer-contact-list li {
  margin-bottom: 0.85rem !important;
  font-size: 0.9rem;
}

.ft-label {
  display: block;
  font-weight: 600;
  color: var(--theme-highlight);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #ffffff;
  transition: var(--transition);
  padding-left: 0;
}

.social a:hover {
  background: var(--theme-accent);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  padding-left: 0;
}

.footer-bottom {
  margin-top: 48px;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a:hover {
  color: var(--theme-highlight);
}

.footer-links .dot {
  margin: 0 0.5rem;
  opacity: 0.35;
}

/* =========================================================================
     RESPONSIVE RULES — none of this existed before. Every grid below was
     hard-locked to a fixed column count with no fallback, which is why the
     layout broke on tablet/mobile widths.
     ========================================================================= */

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .vm-tiles {
    grid-template-columns: 1fr;
  }
}

/* ---- Mobile nav + core layout (≤ 900px) ---- */
@media (max-width: 900px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .top-bar-info {
    gap: 12px;
    font-size: 12px;
  }

  .nav-toggle {
    display: block;
  }

  /* the toggle button now actually appears */

  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border-bottom: 1px solid var(--theme-line);
    box-shadow: var(--shadow-md);
    padding: 8px 16px 16px;
  }

  /* JS should toggle this class on .nav (or .site-header) when the
       hamburger button is clicked. */
  .nav.nav-open ul,
  .site-header.nav-open .nav ul {
    display: flex;
  }

  .nav a.nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .header-inner {
    position: relative;
  }
}

/* ---- Small tablet / large phone (≤ 768px) ---- */
@media (max-width: 768px) {
  .hero {
    min-height: 440px;
    padding: 56px 0 90px;
    text-align: left;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-stats-ribbon {
    margin-top: -40px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .page-hero {
    min-height: 220px;
    padding: 40px 0;
  }

  .course-toolbar {
    grid-template-columns: 1fr;
  }

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

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

  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .li-date {
    flex: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ---- Phone (≤ 480px) ---- */
@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .home-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btns .btn-light,
  .hero-btns .btn-white {
    width: 100%;
    text-align: center;
  }

  .contact-info-card {
    flex-direction: column;
    text-align: center;
  }
}