/**
 * IUHD — university design system (local assets only).
 * Loaded after Bootstrap; overrides --bs-* tokens.
 */

:root {
  --iuhd-navy: #071a33;
  --iuhd-navy-mid: #0f2744;
  --iuhd-navbar-top: linear-gradient(
    180deg,
    #061428 0%,
    #0a2340 48%,
    #0c3044 100%
  );
  --iuhd-teal: #0d9488;
  --iuhd-teal-deep: #0f766e;
  --iuhd-gold: #d4a84b;
  --iuhd-gold-soft: rgba(212, 168, 75, 0.35);
  --iuhd-surface: #f6f8fb;
  --iuhd-surface-elevated: #ffffff;
  --iuhd-text: #0f172a;
  --iuhd-text-muted: #475569;
  --iuhd-radius: 14px;
  --iuhd-radius-lg: 22px;
  --iuhd-shadow: 0 4px 24px rgba(7, 26, 51, 0.08);
  --iuhd-shadow-hover: 0 18px 48px rgba(7, 26, 51, 0.12);
  --bs-primary: var(--iuhd-teal-deep);
  --bs-primary-rgb: 15, 118, 110;
  --bs-secondary: var(--iuhd-navy-mid);
  --bs-secondary-rgb: 15, 39, 68;
  --bs-dark: #030712;
  --bs-body-color: var(--iuhd-text);
  --bs-body-bg: var(--iuhd-surface);
  --bs-light: #eef2f7;
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Offset for fixed header (preheader + navbar); updated by static/js/main.js */
  --iuhd-fixed-header-h: 220px;

  /* Typography scale — shared across all templates */
  --iuhd-text-eyebrow: clamp(0.62rem, 1.1vw, 0.72rem);
  --iuhd-text-section-display: clamp(1.28rem, 2.4vw, 1.9rem);
  --iuhd-text-content-page: clamp(1.65rem, 2.8vw, 2.05rem);
  --iuhd-text-section: clamp(1.2rem, 1.9vw, 1.5rem);
  --iuhd-text-subsection: 1.125rem;
  --iuhd-text-card-title: 1.0625rem;
  --iuhd-text-body: 1rem;
  --iuhd-text-body-lg: 1.0625rem;
  --iuhd-text-meta: 0.875rem;
  --iuhd-text-small: 0.8125rem;
  --iuhd-text-welcome: clamp(1.45rem, 2.4vw, 2.1rem);
  --iuhd-card-body-padding: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  overflow-x: clip;
  max-width: 100%;
  /* Fixed header: in-page #anchors land below the bar */
  scroll-padding-top: var(--iuhd-fixed-header-h, 220px);
}

.site-body {
  font-family: var(--bs-font-sans-serif);
  color: var(--iuhd-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

/* Heading & card typography — pair with semantic h1–h3 in templates */
.iuhd-page-title {
  font-size: var(--iuhd-text-content-page);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--iuhd-navy);
}

.iuhd-section-title {
  font-size: var(--iuhd-text-section);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--iuhd-navy);
}

.iuhd-subsection-title {
  font-size: var(--iuhd-text-subsection);
  font-weight: 700;
  line-height: 1.32;
  color: var(--iuhd-navy);
}

.iuhd-card-title {
  font-size: var(--iuhd-text-card-title);
  font-weight: 700;
  line-height: 1.38;
  color: var(--iuhd-navy);
}

.iuhd-meta-text {
  font-size: var(--iuhd-text-meta);
  color: var(--iuhd-text-muted);
}

.iuhd-aside-title {
  font-size: var(--iuhd-text-meta);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.iuhd-carousel-caption-title {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iuhd-teal-deep);
}

/* Default 404 (templates/404.html) */
.iuhd-error-page {
  max-width: 36rem;
}

.iuhd-error-code {
  font-size: clamp(3.25rem, 11vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--iuhd-teal-deep);
  opacity: 0.28;
}

.iuhd-error-page__lead {
  max-width: 28rem;
}

/* Mobile menu — classic 3-bar icon (button uses Bootstrap d-lg-none) */
.site-header .iuhd-navbar-toggler {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0;
  border: 1.5px solid rgba(15, 39, 68, 0.22);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

/* Toggler = three bars only (no Bootstrap icon, no images) */
.site-header .iuhd-navbar-toggler,
.site-header .iuhd-navbar-toggler::before,
.site-header .iuhd-navbar-toggler::after {
  background-image: none !important;
}

.site-header .iuhd-navbar-toggler img,
.site-header .iuhd-navbar-toggler .navbar-toggler-icon {
  display: none !important;
}

.site-header .iuhd-navbar-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 1.35rem;
  height: 1.05rem;
  pointer-events: none;
}

.site-header .iuhd-navbar-bars > span {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--iuhd-navy);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile only: light strip + light toggler (desktop uses dark bar; toggler is hidden lg+) */
@media (max-width: 991.98px) {
  .site-header .navbar:not(.sticky-top) .iuhd-navbar-toggler {
    border-color: rgba(15, 39, 68, 0.22);
    background: rgba(255, 255, 255, 0.92);
  }

  .site-header .navbar:not(.sticky-top) .iuhd-navbar-toggler:hover {
    border-color: var(--iuhd-teal);
    background: rgba(13, 148, 136, 0.06);
  }
}

@media (min-width: 992px) {
  .site-header .navbar:not(.sticky-top) .iuhd-navbar-bars > span {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  }

  .site-header .navbar:not(.sticky-top) .iuhd-navbar-toggler {
    border-color: rgba(212, 168, 75, 0.55);
    background: rgba(0, 0, 0, 0.15);
  }

  .site-header .navbar:not(.sticky-top) .iuhd-navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--iuhd-gold);
  }
}

.site-header .navbar.sticky-top .iuhd-navbar-toggler:hover {
  border-color: var(--iuhd-teal);
  background: rgba(13, 148, 136, 0.06);
}

.site-header .iuhd-navbar-toggler:focus {
  outline: none;
}

.site-header .iuhd-navbar-toggler:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.28);
}

.site-header .iuhd-navbar-toggler[aria-expanded="true"] {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--iuhd-teal-deep);
  transform: scale(0.98);
}

@media (max-width: 991.98px) {
  .site-header .navbar:not(.sticky-top) .iuhd-navbar-toggler[aria-expanded="true"] {
    background: rgba(13, 148, 136, 0.12);
    border-color: var(--iuhd-teal-deep);
  }
}

@media (min-width: 992px) {
  .site-header .navbar:not(.sticky-top) .iuhd-navbar-toggler[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--iuhd-gold);
  }
}

/* Homepage hero (gradient only — no background image) */
.iuhd-hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: min(52vh, 560px);
  max-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.iuhd-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    #030d18 0%,
    #0a2340 42%,
    #0c4a45 78%,
    #0f766e 100%
  );
}

.iuhd-hero > .container {
  position: relative;
  z-index: 2;
}

.iuhd-hero__brand-row {
  /* Same box for emblem + flag so size and spacing match the logo */
  --iuhd-hero-side-slot: clamp(64px, 11vw, 104px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  column-gap: clamp(1.1rem, 4.5vw, 3rem);
  margin-bottom: 0.35rem;
}

.iuhd-hero__symbol {
  flex: 0 0 var(--iuhd-hero-side-slot);
  width: var(--iuhd-hero-side-slot);
  height: var(--iuhd-hero-side-slot);
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
}

.iuhd-hero__symbol--emblem,
.iuhd-hero__symbol--flag {
  /* Shared slot — flag keeps natural ratio inside the square */
  max-width: 100%;
  max-height: 100%;
}

.iuhd-hero__campus-mark {
  max-width: min(280px, 58vw);
  width: auto;
  height: auto;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.35));
  opacity: 0.98;
}

.iuhd-hero__brand-row .iuhd-hero__campus-mark {
  max-width: min(260px, 50vw);
}

.iuhd-hero__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--iuhd-gold);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.35;
}

.iuhd-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.iuhd-hero__lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

/* Homepage breaking news ticker (below hero, before Why IUHD) */
.iuhd-breaking {
  margin: 0.75rem auto 0;
  width: calc(100% - 1.1rem);
  max-width: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  border: 1px solid rgba(15, 39, 68, 0.1);
  box-shadow: 0 12px 32px rgba(7, 26, 51, 0.08);
  overflow: hidden;
}

.iuhd-breaking__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  min-height: 3.75rem;
}

@media (min-width: 768px) {
  .iuhd-breaking__inner {
    flex-wrap: nowrap;
    min-height: 4.25rem;
  }
}

.iuhd-breaking__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--iuhd-navy) 0%, #0c2744 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.iuhd-breaking__live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.35);
  animation: iuhd-breaking-pulse 1.6s ease-in-out infinite;
}

@keyframes iuhd-breaking-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(0.92);
  }
}

.iuhd-breaking__title {
  white-space: nowrap;
}

.iuhd-breaking__all {
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.iuhd-breaking__all:hover {
  color: var(--iuhd-gold);
  border-bottom-color: rgba(212, 168, 75, 0.6);
}

.iuhd-breaking__viewport {
  flex: 1 1 220px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}

.iuhd-breaking__track {
  display: flex;
  width: max-content;
  animation: iuhd-breaking-marquee 55s linear infinite;
  will-change: transform;
}

.iuhd-breaking__group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.75rem;
  flex-shrink: 0;
}

.iuhd-breaking__card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: min(280px, 72vw);
  max-width: 340px;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 39, 68, 0.1);
  box-shadow: 0 6px 16px rgba(7, 26, 51, 0.06);
  text-decoration: none;
  color: var(--iuhd-navy);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.iuhd-breaking__card:hover {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 10px 22px rgba(7, 26, 51, 0.1);
  transform: translateY(-1px);
}

.iuhd-breaking__thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15, 39, 68, 0.06);
}

.iuhd-breaking__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iuhd-breaking__thumb--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--iuhd-teal-deep);
  font-size: 1.1rem;
}

.iuhd-breaking__card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.iuhd-breaking__viewport:hover .iuhd-breaking__track,
.iuhd-breaking__viewport:focus-within .iuhd-breaking__track {
  animation-play-state: paused;
}

@keyframes iuhd-breaking-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .iuhd-breaking__live {
    animation: none;
  }

  .iuhd-breaking__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .iuhd-breaking__group[aria-hidden="true"] {
    display: none;
  }

  .iuhd-breaking__viewport {
    overflow: visible;
    mask-image: none;
  }
}

/* Homepage animated education band */
.iuhd-edu-motion {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(122, 168, 255, 0.18);
  background: radial-gradient(circle at 14% 22%, rgba(13, 148, 136, 0.26), transparent 42%),
    radial-gradient(circle at 86% 74%, rgba(212, 168, 75, 0.24), transparent 46%),
    linear-gradient(145deg, #071a33 0%, #0b2547 42%, #102f57 100%);
  box-shadow: 0 24px 64px rgba(7, 26, 51, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: clamp(1.3rem, 2.4vw, 2.2rem);
}

.iuhd-edu-motion__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 197, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.36;
  pointer-events: none;
}

.iuhd-edu-motion__head {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 1rem;
}

.iuhd-edu-motion__head h2 {
  color: #eef6ff;
  letter-spacing: -0.02em;
}

.iuhd-edu-motion__head .section-eyebrow {
  color: #8ee8d5;
}

.iuhd-edu-motion__head .text-secondary {
  color: rgba(225, 236, 251, 0.86) !important;
}

.iuhd-edu-motion__orbit {
  position: relative;
  min-height: clamp(260px, 36vw, 380px);
}

.iuhd-edu-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 13vw, 154px);
  height: clamp(120px, 13vw, 154px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  border: 1px solid rgba(160, 208, 255, 0.46);
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.42), rgba(125, 173, 247, 0.12)),
    rgba(13, 39, 74, 0.68);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 18px rgba(133, 177, 250, 0.1), 0 14px 36px rgba(4, 14, 30, 0.45);
  color: #eef6ff;
  user-select: none;
}

.iuhd-edu-core strong {
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  letter-spacing: 0.14em;
}

.iuhd-edu-core small {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
}

.iuhd-edu-glyph {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.94));
  color: var(--iuhd-navy-mid);
  border: 1px solid rgba(185, 216, 255, 0.56);
  box-shadow: 0 14px 30px rgba(2, 16, 34, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  letter-spacing: 0.01em;
  animation: iuhd-glyph-float 8s ease-in-out infinite;
  user-select: none;
}

.iuhd-edu-glyph i {
  filter: drop-shadow(0 4px 10px rgba(7, 26, 51, 0.18));
}

.iuhd-edu-glyph__text {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.iuhd-edu-glyph--math {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95), rgba(204, 251, 241, 0.85));
}

.iuhd-edu-glyph--it {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), rgba(219, 234, 254, 0.86));
}

.iuhd-edu-glyph--lang {
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(145deg, rgba(245, 243, 255, 0.95), rgba(233, 213, 255, 0.82));
}

.iuhd-edu-glyph--global {
  color: #0b7285;
  border-color: rgba(14, 116, 144, 0.24);
  background: linear-gradient(145deg, rgba(236, 253, 255, 0.96), rgba(207, 250, 254, 0.85));
}

.iuhd-edu-glyph--diplomacy {
  color: #a16207;
  border-color: rgba(161, 98, 7, 0.24);
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.95), rgba(254, 240, 138, 0.78));
}

.iuhd-edu-glyph--research {
  color: #be123c;
  border-color: rgba(190, 18, 60, 0.22);
  background: linear-gradient(145deg, rgba(255, 241, 242, 0.95), rgba(254, 205, 211, 0.82));
}

.iuhd-edu-motion__line {
  position: absolute;
  z-index: 1;
  width: 170%;
  height: 220px;
  left: -35%;
  border: 2px solid rgba(15, 39, 68, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.iuhd-edu-motion__line--a {
  top: 42%;
  transform: rotate(-8deg);
  animation: iuhd-curve-spin-a 22s linear infinite;
}

.iuhd-edu-motion__line--b {
  top: 32%;
  transform: rotate(7deg);
  border-color: rgba(13, 148, 136, 0.2);
  animation: iuhd-curve-spin-b 26s linear infinite reverse;
}

.iuhd-edu-glyph--1 { top: 12%; left: 8%; animation-delay: 0s; }
.iuhd-edu-glyph--2 { top: 32%; left: 18%; animation-delay: 0.5s; }
.iuhd-edu-glyph--3 { top: 70%; left: 10%; animation-delay: 1s; }
.iuhd-edu-glyph--4 { top: 18%; left: 26%; animation-delay: 1.4s; }
.iuhd-edu-glyph--5 { top: 66%; left: 25%; animation-delay: 1.9s; }
.iuhd-edu-glyph--6 { top: 14%; left: 43%; animation-delay: 2.3s; }
.iuhd-edu-glyph--7 { top: 78%; left: 44%; animation-delay: 2.8s; }
.iuhd-edu-glyph--8 { top: 15%; left: 60%; animation-delay: 3.2s; }
.iuhd-edu-glyph--9 { top: 74%; left: 61%; animation-delay: 3.6s; }
.iuhd-edu-glyph--10 { top: 21%; left: 77%; animation-delay: 4.1s; }
.iuhd-edu-glyph--11 { top: 66%; left: 78%; animation-delay: 4.6s; }
.iuhd-edu-glyph--12 { top: 44%; left: 90%; animation-delay: 5s; }

@keyframes iuhd-glyph-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes iuhd-curve-spin-a {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(352deg); }
}

@keyframes iuhd-curve-spin-b {
  0% { transform: rotate(7deg); }
  100% { transform: rotate(367deg); }
}

@media (max-width: 991.98px) {
  .iuhd-edu-motion__orbit {
    min-height: 300px;
  }
  .iuhd-edu-core {
    width: 126px;
    height: 126px;
  }
  .iuhd-edu-glyph {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
  .iuhd-edu-motion__line {
    width: 210%;
    left: -55%;
  }
}

@media (max-width: 575.98px) {
  .iuhd-edu-motion {
    padding: 1rem 0.8rem;
    border-radius: 18px;
  }
  .iuhd-edu-motion__head {
    margin-bottom: 0.6rem;
  }
  .iuhd-edu-motion__orbit {
    min-height: 250px;
  }
  .iuhd-edu-core {
    width: 108px;
    height: 108px;
    box-shadow: 0 0 0 10px rgba(133, 177, 250, 0.1), 0 12px 26px rgba(4, 14, 30, 0.42);
  }
  .iuhd-edu-core strong {
    font-size: 1rem;
  }
  .iuhd-edu-core small {
    font-size: 0.54rem;
  }
  .iuhd-edu-glyph {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
  .iuhd-edu-glyph__text {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iuhd-edu-glyph,
  .iuhd-edu-motion__line--a,
  .iuhd-edu-motion__line--b {
    animation: none !important;
  }
}

/* --- Header / navbar --- */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Reserve space so main/footer are not hidden under the fixed header.
     !important: Bootstrap .p-0 used to zero this out — use px-0 on .site-shell instead. */
  padding-top: var(--iuhd-fixed-header-h, 220px) !important;
  box-sizing: border-box;
}

.site-header.site-header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
  max-width: 100%;
}

/* Mobile / small tablets: hide the full preheader (meta bar + motto + emblem). Flags stay in the drawer. */
@media (max-width: 991.98px) {
  .site-header .iuhd-preheader {
    display: none !important;
  }
}

.iuhd-preheader {
  background: #fff;
  border-bottom: 1px solid rgba(15, 39, 68, 0.14);
}

.iuhd-preheader__meta,
.iuhd-preheader__main {
  width: min(100%, 1420px);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.iuhd-preheader__meta {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border-bottom: 1px solid rgba(15, 39, 68, 0.1);
  font-size: 0.74rem;
  color: #1f2937;
}

.iuhd-preheader__meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0;
}

.iuhd-preheader__meta-item {
  padding-right: 0.85rem;
  margin-right: 0.85rem;
  border-right: 1px solid rgba(15, 39, 68, 0.18);
  white-space: nowrap;
  font-weight: 600;
}

.iuhd-preheader__meta-item:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.iuhd-preheader__meta-right {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.iuhd-preheader__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.iuhd-preheader__flag-img {
  display: block;
  width: auto;
  height: 1rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 39, 68, 0.12);
  object-fit: cover;
}

.iuhd-preheader__flag:hover {
  transform: translateY(-1px);
}

.iuhd-preheader__main {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.iuhd-preheader__ministry {
  display: none;
}

.iuhd-preheader__ministry-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.iuhd-preheader__ministry-text {
  max-width: 360px;
  font-weight: 700;
  line-height: 1.2;
  font-size: 0.92rem;
}

.iuhd-preheader__motto {
  grid-column: 2;
  text-align: center;
  justify-self: center;
  max-width: min(100%, 56rem);
  margin-left: 0;
  font-weight: 800;
  font-size: clamp(1rem, 2.1vw, 2.15rem);
  letter-spacing: 0.02em;
  color: #111827;
  line-height: 1.2;
}

.iuhd-preheader__uni {
  grid-column: 3;
  justify-self: end;
}

.iuhd-preheader__uni-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .iuhd-preheader__meta {
    min-height: 34px;
    font-size: 0.67rem;
    gap: 0.45rem;
  }

  .iuhd-preheader__meta-item {
    margin-right: 0.5rem;
    padding-right: 0.5rem;
  }

  .iuhd-preheader__main {
    min-height: 78px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: none;
    gap: 0.5rem 0.9rem;
    padding-top: 0.55rem;
    padding-bottom: 0.45rem;
  }

  .iuhd-preheader__motto {
    grid-column: 2;
    text-align: center;
    font-size: 0.95rem;
  }

  .iuhd-preheader__uni {
    grid-column: 3;
  }

  .iuhd-preheader__uni-logo {
    width: 52px;
    height: 52px;
  }
}

.site-header .navbar {
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/* Mobile: light strip — dark text + colored logo in the bar */
@media (max-width: 991.98px) {
  /*
   * Navbar must stack above .iuhd-nav-backdrop (z-index 1040). The off-canvas
   * drawer lives inside nav; without this, the backdrop paints on top and
   * intercepts all taps on the menu.
   */
  .site-header .navbar {
    z-index: 1060;
  }

  .site-header .navbar:not(.sticky-top) {
    background: rgba(255, 255, 255, 0.93) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--iuhd-border-soft);
    border-top: none;
    box-shadow: 0 18px 44px rgba(7, 26, 51, 0.1);
  }
}

/* Desktop: original dark gradient bar until scroll */
@media (min-width: 992px) {
  .site-header .navbar:not(.sticky-top) {
    background: var(--iuhd-navbar-top) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(3, 9, 20, 0.32);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.site-header .navbar.sticky-top {
  background: rgba(248, 250, 252, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(7, 26, 51, 0.1);
  border-bottom: 1px solid rgba(15, 39, 68, 0.09);
}

.brand-wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: #fff !important;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .site-header .navbar:not(.sticky-top) .brand-wordmark {
    color: #fff !important;
  }

  .site-header .navbar.sticky-top .brand-wordmark {
    color: var(--iuhd-navy) !important;
  }
}

@media (max-width: 991.98px) {
  .site-header .navbar:not(.sticky-top) .brand-wordmark,
  .site-header .navbar.sticky-top .brand-wordmark {
    color: var(--iuhd-navy) !important;
  }
}

.navbar-light .navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Desktop: dark bar — light links + white logo; sticky — dark text + green logo */
@media (min-width: 992px) {
  .site-header .navbar:not(.sticky-top) .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
  }

  .site-header .navbar:not(.sticky-top) .navbar-nav .nav-link:hover,
  .site-header .navbar:not(.sticky-top) .navbar-nav .nav-link:focus,
  .site-header .navbar:not(.sticky-top) .navbar-nav .nav-link.active {
    color: var(--iuhd-gold) !important;
  }

  .site-header .navbar.sticky-top .navbar-nav .nav-link {
    color: rgb(0 0 0 / 92%) !important;
  }

  .site-header .navbar.sticky-top .navbar-nav .nav-link:hover,
  .site-header .navbar.sticky-top .navbar-nav .nav-link:focus {
    color: var(--iuhd-teal-deep) !important;
  }

  .site-header .navbar.sticky-top .navbar-nav .nav-link.active {
    color: var(--iuhd-gold) !important;
  }
}

/* Mobile: light strip — dark text + colored logo */
@media (max-width: 991.98px) {
  .site-header .navbar:not(.sticky-top) .navbar-nav .nav-link,
  .site-header .navbar.sticky-top .navbar-nav .nav-link {
    color: rgb(0 0 0 / 92%) !important;
  }

  .site-header .navbar:not(.sticky-top) .navbar-nav .nav-link:hover,
  .site-header .navbar:not(.sticky-top) .navbar-nav .nav-link:focus,
  .site-header .navbar.sticky-top .navbar-nav .nav-link:hover,
  .site-header .navbar.sticky-top .navbar-nav .nav-link:focus {
    color: var(--iuhd-teal-deep) !important;
  }

  .site-header .navbar:not(.sticky-top) .navbar-nav .nav-link.active,
  .site-header .navbar.sticky-top .navbar-nav .nav-link.active {
    color: var(--iuhd-gold) !important;
  }
}

.iuhd-navbar-home-link {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: #fff;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .site-header .navbar:not(.sticky-top) .iuhd-navbar-home-link {
    color: #fff;
  }

  .site-header .navbar.sticky-top .iuhd-navbar-home-link {
    color: var(--iuhd-navy);
  }
}

@media (max-width: 991.98px) {
  .site-header .navbar:not(.sticky-top) .iuhd-navbar-home-link,
  .site-header .navbar.sticky-top .iuhd-navbar-home-link {
    color: var(--iuhd-navy);
  }
}

/* Navbar brand — desktop: white mark on dark bar, green on sticky. Mobile: colored mark only. */
.iuhd-navbar-brand-logo {
  display: block;
  width: auto;
  max-height: 48px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 992px) {
  .site-header .navbar:not(.sticky-top) .iuhd-navbar-brand-logo--dark {
    display: none !important;
  }

  .site-header .navbar:not(.sticky-top) .iuhd-navbar-brand-logo--light {
    display: block !important;
  }

  .site-header .navbar.sticky-top .iuhd-navbar-brand-logo--light {
    display: none !important;
  }

  .site-header .navbar.sticky-top .iuhd-navbar-brand-logo--dark {
    display: block !important;
  }
}

@media (max-width: 991.98px) {
  .site-header .navbar:not(.sticky-top) .iuhd-navbar-brand-logo--light,
  .site-header .navbar.sticky-top .iuhd-navbar-brand-logo--light {
    display: none !important;
  }

  .site-header .navbar:not(.sticky-top) .iuhd-navbar-brand-logo--dark,
  .site-header .navbar.sticky-top .iuhd-navbar-brand-logo--dark {
    display: block !important;
  }
}

.site-header .navbar.sticky-top .iuhd-navbar-brand-logo {
  max-height: 42px;
}

/* Mobile: keep brand + toggler from crowding; toggler is bars-only (see rules above) */
@media (max-width: 991.98px) {
  .site-header .iuhd-navbar-toggler {
    flex-shrink: 0;
    margin-left: auto;
  }

  .site-header .navbar-expand-lg .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0.5rem;
  }
}

/* Brand wordmark next to logo */
.navbar-brand-wordmark {
  min-width: 0;
  max-width: min(62vw, 420px);
}

.navbar-brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--iuhd-navy);
}

.navbar-brand-subtitle {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-top: 0.15rem;
  white-space: normal;
  color: var(--iuhd-text-muted);
}

@media (min-width: 992px) {
  .site-header .navbar:not(.sticky-top) .navbar-brand-title {
    color: #fff !important;
  }

  .site-header .navbar:not(.sticky-top) .navbar-brand-subtitle {
    color: rgba(255, 255, 255, 0.78) !important;
  }

  .site-header .navbar.sticky-top .navbar-brand-title {
    color: var(--iuhd-navy) !important;
  }

  .site-header .navbar.sticky-top .navbar-brand-subtitle {
    color: var(--iuhd-text-muted) !important;
  }
}

@media (max-width: 991.98px) {
  .site-header .navbar:not(.sticky-top) .navbar-brand-title,
  .site-header .navbar.sticky-top .navbar-brand-title {
    color: var(--iuhd-navy) !important;
  }

  .site-header .navbar:not(.sticky-top) .navbar-brand-subtitle,
  .site-header .navbar.sticky-top .navbar-brand-subtitle {
    color: var(--iuhd-text-muted) !important;
  }
}

@media (min-width: 992px) {
  .navbar-brand-wordmark {
    max-width: 560px;
  }

  .navbar-brand-subtitle {
    font-size: 0.62rem;
  }
}

/* Undo legacy style.css spacing that breaks fit + wrapping */
.site-header .navbar .nav-item {
  margin-left: 0 !important;
  padding: 0 !important;
}

.site-header .navbar-light .navbar-nav .nav-link {
  margin-right: 0 !important;
  padding: 0.55rem 0.35rem !important;
}

@media (min-width: 992px) {
  .site-header .navbar-expand-lg .navbar-collapse.iuhd-navbar-collapse {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 0.2rem;
    column-gap: 0.1rem;
  }

  .site-header .iuhd-navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 0.15rem;
  }

  .site-header .navbar-light .navbar-nav .nav-link {
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.05em !important;
  }

  .site-header .iuhd-nav-lang .nav-link {
    white-space: nowrap;
  }
}

/* Language block stays visible (last in flex row) */
.site-header .iuhd-nav-lang {
  flex-shrink: 0;
}

.site-header .iuhd-nav-lang-current {
  letter-spacing: 0.08em;
}

.site-header .iuhd-nav-lang .iuhd-lang-dropdown {
  min-width: 11rem;
  right: 0;
  left: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 39, 68, 0.14);
  box-shadow: 0 14px 28px rgba(7, 26, 51, 0.18);
}

.site-header .iuhd-nav-lang .iuhd-lang-dropdown .dropdown-item {
  font-weight: 600;
  color: var(--iuhd-navy);
  padding: 0.56rem 0.9rem;
}

.site-header .iuhd-nav-lang .iuhd-lang-dropdown .dropdown-item:hover,
.site-header .iuhd-nav-lang .iuhd-lang-dropdown .dropdown-item:focus {
  background: rgba(17, 182, 146, 0.12);
  color: var(--iuhd-navy);
}

.site-header .iuhd-nav-lang .iuhd-lang-dropdown .dropdown-item.active,
.site-header .iuhd-nav-lang .iuhd-lang-dropdown .dropdown-item:active {
  background: #11b692;
  color: #fff;
}

/* --- Mobile: Offcanvas navigation (Bootstrap) --- */
@media (min-width: 992px) {
  .iuhd-mobile-nav-scroll {
    display: contents;
  }
}

@media (max-width: 991.98px) {
  /* Ensure header always stacks above the page. */
  .site-header.site-header--fixed {
    z-index: 1060;
  }

  .iuhd-mobile-offcanvas {
    width: min(88vw, 400px);
    border: none;
    box-shadow: -8px 0 32px rgba(7, 26, 51, 0.22);
  }

  .iuhd-mobile-offcanvas .iuhd-mobile-nav-toggle {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .iuhd-mobile-nav-head {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(15, 39, 68, 0.1);
  }

  .iuhd-mobile-nav-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0.25rem 0 0.4rem;
  }

  .iuhd-mobile-nav-brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
    color: var(--iuhd-navy);
  }

  .iuhd-mobile-nav-brand-logo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .iuhd-mobile-nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
  }

  .iuhd-mobile-nav-brand-title {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
    color: var(--iuhd-navy);
  }

  .iuhd-mobile-nav-brand-sub {
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--iuhd-text-muted);
  }

  .iuhd-mobile-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.25rem 0.5rem;
  }

  .iuhd-mobile-nav-lang {
    flex-shrink: 0;
    margin: 0;
    padding: 0.65rem 0.75rem 0.85rem;
    border-top: 1px solid rgba(15, 39, 68, 0.1);
    background: #fafbfc;
  }

  .iuhd-mobile-nav-lang-flags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
  }

  .iuhd-mobile-nav-lang .iuhd-preheader__flag-img {
    height: 1.15rem;
  }

  .site-header .iuhd-navbar-nav .nav-item {
    border-bottom: 1px solid rgba(15, 39, 68, 0.08);
  }

  .site-header .iuhd-navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .site-header .iuhd-navbar-nav .nav-link {
    padding: 0.85rem 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    color: var(--iuhd-navy) !important;
    letter-spacing: 0.04em;
  }

  .site-header .iuhd-navbar-nav .nav-link:hover,
  .site-header .iuhd-navbar-nav .nav-link:focus,
  .site-header .iuhd-navbar-nav .nav-link.active {
    color: var(--iuhd-teal-deep) !important;
  }

  .site-header .iuhd-navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin: 0 0 0.5rem !important;
    border: none;
    border-radius: 10px;
    box-shadow: none;
    background: rgba(15, 39, 68, 0.04);
    transform: none !important;
    inset: auto !important;
  }

  .site-header .iuhd-navbar-nav .dropdown-item {
    color: var(--iuhd-text);
    padding: 0.55rem 1rem;
    font-weight: 500;
  }

  .site-header .iuhd-navbar-nav .dropdown-item:hover,
  .site-header .iuhd-navbar-nav .dropdown-item:focus {
    background: rgba(212, 168, 75, 0.2);
    color: var(--iuhd-navy);
  }

  .site-header .iuhd-nav-lang .nav-link {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .site-header .iuhd-nav-lang .iuhd-lang-dropdown {
    min-width: 100%;
    margin-top: 0.25rem !important;
    border-radius: 10px;
  }

}

.site-main {
  flex: 1 0 auto;
  /* Extra breathing room below the measured header strip (cards/headlines were tight to the bar) */
  /*padding-top: clamp(0.5rem, 1.5vw, 1rem);*/
}

/* --- Hero --- */
@keyframes iuhd-hero-shine {
  0% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.88;
  }
}

@keyframes iuhd-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.header-carousel .header-carousel-item .carousel-caption {
  background: linear-gradient(
    165deg,
    rgba(7, 26, 51, 0.72) 0%,
    rgba(15, 39, 68, 0.55) 45%,
    rgba(13, 148, 136, 0.25) 100%
  );
}

.hero-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--iuhd-gold) !important;
  animation: iuhd-float 5s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff !important;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
  animation: iuhd-hero-shine 8s ease-in-out infinite;
}

.hero-glass {
  display: inline-block;
  padding: 1.25rem 1.75rem;
  border-radius: var(--iuhd-radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

/* Homepage: president highlight (before Why IUHD) */
.iuhd-president-banner {
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.iuhd-president-banner__headline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: #1d4ed8;
}

.iuhd-president-banner__body {
  font-size: var(--iuhd-text-body-lg);
  line-height: 1.65;
  color: #1e40af;
}

/* --- Sections --- */
.iuhd-section {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.iuhd-section--muted {
  background: linear-gradient(180deg, var(--iuhd-surface) 0%, #fff 55%, var(--iuhd-surface) 100%);
}

.iuhd-section--dark {
  background: linear-gradient(135deg, var(--iuhd-navy) 0%, var(--iuhd-navy-mid) 100%);
  color: #e2e8f0;
}

.section-eyebrow {
  font-size: var(--iuhd-text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--iuhd-teal);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: var(--iuhd-text-section-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--iuhd-navy);
}

.section-heading-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 3px solid var(--iuhd-gold);
  padding-bottom: 0.2rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-heading-link:hover {
  color: var(--iuhd-teal-deep);
  border-bottom-color: var(--iuhd-teal);
}

/* Feature pillars */
.iuhd-pillar {
  border-radius: var(--iuhd-radius);
  background: var(--iuhd-surface-elevated);
  border: 1px solid rgba(15, 39, 68, 0.07);
  box-shadow: var(--iuhd-shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.iuhd-pillar:hover {
  transform: translateY(-8px);
  box-shadow: var(--iuhd-shadow-hover);
}

.iuhd-pillar .feature-icon {
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.12), rgba(212, 168, 75, 0.12)) !important;
  border-radius: 16px !important;
}

/* Homepage “Why IUHD” pillar icons — slow color cycle (respects global prefers-reduced-motion) */
@keyframes iuhd-pillar-icon-color {
  0% {
    color: var(--iuhd-teal-deep);
  }
  20% {
    color: var(--iuhd-teal);
  }
  40% {
    color: var(--iuhd-gold);
  }
  60% {
    color: #1f6b4a;
  }
  80% {
    color: var(--iuhd-navy-mid);
  }
  100% {
    color: var(--iuhd-teal-deep);
  }
}

.iuhd-pillar__icon {
  color: var(--iuhd-teal-deep);
  animation: iuhd-pillar-icon-color 16s ease-in-out infinite;
}

.iuhd-section .row.g-4 > .col:nth-child(2) .iuhd-pillar__icon {
  animation-delay: -5.3s;
}

.iuhd-section .row.g-4 > .col:nth-child(3) .iuhd-pillar__icon {
  animation-delay: -10.6s;
}

.iuhd-pillar h4 {
  font-size: var(--iuhd-text-subsection);
  font-weight: 700;
  color: var(--iuhd-navy);
}

/* Cards */
.iuhd-card {
  border-radius: var(--iuhd-radius);
  overflow: hidden;
  border: 1px solid rgba(15, 39, 68, 0.06) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.iuhd-card .card-body {
  padding: var(--iuhd-card-body-padding);
}

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

/* News loading state: subtle shimmer skeleton, then clean reveal */
.section-news.iuhd-news-loading .iuhd-news-card {
  position: relative;
  overflow: hidden;
}

.section-news.iuhd-news-loading .iuhd-news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0) 15%,
      rgba(255, 255, 255, 0.6) 45%,
      rgba(255, 255, 255, 0) 75%
    ),
    linear-gradient(135deg, rgba(15, 39, 68, 0.06), rgba(15, 118, 110, 0.09));
  background-size: 260% 100%, 100% 100%;
  animation: iuhd-news-shimmer 1.25s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.section-news .iuhd-news-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.25s ease;
}

/* Homepage Latest News: always two cards per row */
.section-news .iuhd-news-card--home {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .iuhd-home-news-grid .iuhd-news-card--home .card-body {
    padding: 0.65rem 0.5rem;
  }

  .iuhd-home-news-grid .iuhd-news-card--home h3 {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .iuhd-home-news-grid .iuhd-news-card--home .text-muted.small {
    font-size: 0.72rem;
    margin-bottom: 0.5rem !important;
  }

  .iuhd-home-news-grid .iuhd-news-card--home .small.text-muted {
    font-size: 0.65rem;
    gap: 0.35rem !important;
  }
}

/* Homepage news: three columns on lg+; two columns below (unchanged vs prior mobile/tablet) */
@media (min-width: 992px) {
  .iuhd-home-news-grid .iuhd-news-card--home h3 {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .iuhd-home-news-grid .iuhd-news-card--home .text-muted.small {
    font-size: 0.78rem;
  }
}

@keyframes iuhd-news-shimmer {
  0% {
    background-position: 120% 0, 0 0;
  }
  100% {
    background-position: -80% 0, 0 0;
  }
}

.news-card-title {
  color: var(--iuhd-navy);
  font-weight: 700;
}

.news-card-title:hover {
  color: var(--iuhd-teal-deep);
}

.welcome-title {
  font-size: var(--iuhd-text-welcome);
  font-weight: 800;
  color: var(--iuhd-navy);
  letter-spacing: -0.03em;
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, var(--iuhd-navy) 0%, #030712 100%);
  color: rgba(226, 232, 240, 0.88);
  padding-top: 3rem;
  padding-bottom: 2rem;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.site-footer > .container {
  position: relative;
  z-index: 2;
}

.site-footer .iuhd-edu-motion--footer-bg {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  padding: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid + slow drift (readable but alive) */
.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-motion__bg {
  opacity: 0.07;
  background-size: 32px 32px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  animation: iuhd-footer-grid-drift 60s linear infinite;
}

@keyframes iuhd-footer-grid-drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 32px 32px;
  }
}

/* Very faint arc guides — slow rotation */
.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-motion__line {
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.06);
}

.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-motion__line--a {
  animation: iuhd-curve-spin-a 52s linear infinite !important;
}

.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-motion__line--b {
  animation: iuhd-curve-spin-b 64s linear infinite reverse !important;
}

.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-motion__orbit {
  min-height: clamp(180px, 26vw, 240px);
  filter: none;
}

/* No Education Hub circle in footer (markup omitted); hide if present elsewhere */
.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-core {
  display: none !important;
}

@keyframes iuhd-glyph-float-footer {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(1.2deg);
  }
}

/* Thin outline “wire” tiles — barely visible, gentle float */
.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 0.62rem;
  opacity: 1;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
  animation: iuhd-glyph-float-footer 14s ease-in-out infinite !important;
}

.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph i {
  filter: none;
  opacity: 0.85;
}

.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph__text {
  font-size: 0.55rem;
  font-weight: 600;
  color: inherit !important;
}

/* Mute category tint classes to a single faint wire style */
.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph--math,
.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph--it,
.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph--lang,
.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph--global,
.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph--diplomacy,
.site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph--research {
  color: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 991.98px) {
  .site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph {
    width: 22px;
    height: 22px;
    font-size: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-motion__bg,
  .site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-motion__line--a,
  .site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-motion__line--b,
  .site-footer .iuhd-edu-motion--footer-bg .iuhd-edu-glyph {
    animation: none !important;
  }
}

.site-footer .footer-brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.site-footer .footer-brand-wrap {
  display: inline-flex;
  align-items: center;
}

.site-footer .footer-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

.site-footer a {
  color: rgba(226, 232, 240, 0.9);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--iuhd-gold);
}

.site-footer .copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.95);
}

.btn.btn-primary {
  background: linear-gradient(135deg, var(--iuhd-teal) 0%, var(--iuhd-teal-deep) 100%);
  border: none;
}

.btn.btn-primary:hover {
  background: var(--iuhd-navy-mid);
  color: #fff !important;
}

/* Reveal animation helper (works with WOW.js) */
.iuhd-reveal {
  will-change: transform, opacity;
}

/* Hero image: subtle zoom once (legacy template carousel) */
@media (prefers-reduced-motion: reduce) {
  .header-carousel .header-carousel-item img {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .header-carousel .header-carousel-item img {
    animation: iuhd-hero-ken 22s ease-out 1 forwards;
  }
}

@keyframes iuhd-hero-ken {
  0% {
    transform: scale(1.08);
    opacity: 0.92;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== 2026 full redesign overrides ===== */
:root {
  --iuhd-bg: #f3f6fb;
  --iuhd-surface-glass: rgba(255, 255, 255, 0.78);
  --iuhd-border-soft: rgba(15, 39, 68, 0.12);
}

.site-body {
  background:
    radial-gradient(1200px 420px at 8% -10%, rgba(13, 148, 136, 0.12), transparent 55%),
    radial-gradient(1000px 440px at 92% -6%, rgba(212, 168, 75, 0.12), transparent 56%),
    var(--iuhd-bg);
}

/* Breathing room below the navbar on inner pages only (homepage hero handles its own spacing). */
body.site-body--inner .site-header .iuhd-navbar {
  margin-bottom: 0.75rem;
}

.site-header .navbar {
  border-radius: 0 0 18px 18px;
  margin: 0 0.55rem;
  padding-left: 1.1rem !important;
  padding-right: 1.1rem !important;
}

.site-header .navbar.sticky-top {
  background: rgba(255, 255, 255, 0.93) !important;
  border: 1px solid var(--iuhd-border-soft);
  border-top: none;
  box-shadow: 0 18px 44px rgba(7, 26, 51, 0.1);
}

.site-header .navbar-nav .dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--iuhd-border-soft);
  box-shadow: 0 14px 34px rgba(7, 26, 51, 0.12);
}

.iuhd-hero {
  border-radius: 22px;
  margin: 1rem auto 0;
  width: calc(100% - 1.1rem);
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(7, 26, 51, 0.3);
}

.iuhd-hero__content {
  backdrop-filter: blur(4px);
}

.iuhd-section {
  position: relative;
}

.iuhd-section.container,
.iuhd-section .container {
  position: relative;
}

.iuhd-card,
.feature-item.iuhd-pillar,
.card.iuhd-card {
  border: 1px solid var(--iuhd-border-soft) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  box-shadow: 0 14px 30px rgba(7, 26, 51, 0.08);
}

.iuhd-page-hero {
  position: relative;
  min-height: min(44vh, 380px);
  width: 100%;
  overflow: hidden;
  margin-bottom: 1rem;
}

.iuhd-page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.iuhd-page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.4rem, 5vw, 3.2rem);
}

.iuhd-page-hero__title {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.iuhd-page-hero__crumbs .breadcrumb {
  gap: 0.45rem;
}

.iuhd-page-hero__crumbs .breadcrumb-item,
.iuhd-page-hero__crumbs .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  text-decoration: none;
}

.iuhd-page-hero__crumbs .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.62);
}

.detail-content {
  font-size: var(--iuhd-text-body-lg);
}

.detail-content p {
  margin-bottom: 1rem;
}

.site-footer {
  border-radius: 20px 20px 0 0;
  margin: 2.2rem 0.55rem 0;
  width: calc(100% - 1.1rem);
  box-shadow: 0 -16px 44px rgba(3, 9, 20, 0.3);
}

.site-footer .container {
  max-width: 1240px;
}

@media (max-width: 991.98px) {
  .site-header .navbar,
  .site-footer,
  .iuhd-hero,
  .iuhd-breaking {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  /* No gap between header and hero — body bg was showing as a light strip */
  .iuhd-hero {
    margin-top: 0;
  }
}

.iuhd-olympiads-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--iuhd-teal);
  font-weight: 700;
  font-size: 0.74rem;
}

.iuhd-olympiads-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--iuhd-navy);
  font-weight: 800;
}

.iuhd-olympiads-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.iuhd-olympiads-stat {
  border: 1px solid var(--iuhd-border-soft);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(7, 26, 51, 0.07);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.iuhd-olympiads-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--iuhd-navy);
}

.iuhd-olympiads-stat-label {
  color: var(--iuhd-gray);
  font-size: 0.85rem;
}

.iuhd-olympiads-card {
  border: 1px solid var(--iuhd-border-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 32px rgba(7, 26, 51, 0.08);
  display: flex;
  flex-direction: column;
}

.iuhd-olympiads-card__body {
  padding: 1.3rem 1.2rem 0.9rem;
}

.iuhd-olympiads-card__title {
  margin: 0 0 0.75rem;
  font-size: var(--iuhd-text-card-title);
  line-height: 1.4;
}

.iuhd-olympiads-card__title a {
  color: var(--iuhd-navy);
}

.iuhd-olympiads-card__text {
  color: var(--iuhd-gray);
  font-size: 0.95rem;
}

.iuhd-olympiads-card__footer {
  padding: 0 1.2rem 1.2rem;
  margin-top: auto;
}

.iuhd-olympiads-card__footer .btn {
  border-radius: 999px;
  padding: 0.48rem 1rem;
}

.iuhd-olympiads-empty {
  border-radius: 14px;
}

.iuhd-faculty-card {
  border: 1px solid var(--iuhd-border-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(7, 26, 51, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iuhd-faculty-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.iuhd-faculty-card__media img {
  transition: transform 0.35s ease;
}

.iuhd-faculty-card:hover .iuhd-faculty-card__media img {
  transform: scale(1.04);
}

.iuhd-faculty-card__body {
  padding: 1.1rem 1.1rem 1.15rem;
}

.iuhd-faculty-card__title {
  font-size: var(--iuhd-text-card-title);
  line-height: 1.4;
}

.iuhd-faculty-card__title a {
  color: var(--iuhd-navy);
}

.iuhd-faculty-card__meta {
  color: var(--iuhd-gray);
  font-size: 0.9rem;
}

.iuhd-surface-card {
  border: 1px solid var(--iuhd-border-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 14px 30px rgba(7, 26, 51, 0.08);
}

.iuhd-education-intro {
  border: 1px solid var(--iuhd-border-soft);
  border-radius: 18px;
  background: linear-gradient(130deg, rgba(10, 35, 64, 0.04), rgba(17, 182, 146, 0.06));
  box-shadow: 0 16px 34px rgba(7, 26, 51, 0.08);
  padding: clamp(1.15rem, 2.4vw, 2rem);
  position: relative;
  overflow: hidden;
}

.iuhd-education-intro__bullet {
  color: var(--iuhd-navy);
  font-weight: 500;
}

.iuhd-education-intro__bullet i {
  color: #11b692;
}

.iuhd-education-intro__cta {
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
}

.iuhd-education-intro__media {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.iuhd-education-intro__glow {
  position: absolute;
  inset: 12% 10%;
  background: radial-gradient(circle, rgba(17, 182, 146, 0.28), transparent 70%);
  filter: blur(24px);
  animation: iuhd-video-glow 4s ease-in-out infinite;
  pointer-events: none;
}

.iuhd-education-intro__preview {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: #081628;
  box-shadow: 0 18px 40px rgba(7, 26, 51, 0.25);
}

.iuhd-education-intro__preview img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.9;
}

.iuhd-education-intro__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
}

.iuhd-education-intro__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  z-index: 2;
  animation: iuhd-play-pulse 1.8s ease-in-out infinite;
}

.iuhd-education-intro__caption {
  position: absolute;
  left: 1rem;
  bottom: 0.95rem;
  z-index: 2;
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes iuhd-video-glow {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes iuhd-play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

@media (max-width: 767.98px) {
  .iuhd-olympiads-stats {
    grid-template-columns: 1fr;
  }
}
