/* ==========================================================================
   International Semmozhi University — design system
   Built on Bootstrap 5.3.3
   ========================================================================== */

:root {
  --isu-navy-deep: #00154f;
  --isu-navy: #0f467b;
  --isu-navy-600: #19437a;
  --isu-gold: #c4942f;
  --isu-gold-dark: #876012; /* gold for small text: 5.2:1+ on light backgrounds (WCAG AA) */
  --isu-cream: #f3e6c8;
  --isu-cream-soft: #faf5ea;
  --isu-paper: #f6f7fa;
  --isu-ink: #131c2b;
  --isu-muted: #5a6578;
  --isu-line: #e3e7ee;
  --isu-white: #ffffff;

  --isu-font-display: "Lora", Georgia, "Times New Roman", serif;
  --isu-font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --isu-font-tamil: "Noto Sans Tamil", "Latha", sans-serif;

  --isu-radius: 14px;
  --isu-radius-sm: 10px;
  --isu-shadow: 0 10px 30px -12px rgba(0, 21, 79, .22);
  --isu-shadow-lg: 0 24px 50px -20px rgba(0, 21, 79, .35);
  --isu-header-h: 92px;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--isu-font-body);
  --bs-body-color: var(--isu-ink);
  --bs-body-bg: var(--isu-white);
  --bs-link-color: var(--isu-navy);
  --bs-link-color-rgb: 15, 70, 123;
  --bs-link-hover-color: var(--isu-gold-dark);
  --bs-link-hover-color-rgb: 135, 96, 18;
  --bs-border-color: var(--isu-line);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--isu-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }

h1, h2, h3, .h1, .h2, .h3, .display-font {
  font-family: var(--isu-font-display);
  font-weight: 600;
  color: var(--isu-navy-deep);
  text-wrap: balance;
  line-height: 1.2;
}
h4, h5, h6 { font-family: var(--isu-font-body); font-weight: 700; color: var(--isu-navy-deep); }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
a { transition: color .2s ease; }
:focus-visible { outline: 3px solid var(--isu-gold); outline-offset: 2px; }

.tamil { font-family: var(--isu-font-tamil); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .7rem 1.5rem; letter-spacing: .01em; }
.btn-isu-gold { /* navy text on gold = 6.3:1 contrast */
  --bs-btn-color: var(--isu-navy-deep); --bs-btn-bg: var(--isu-gold); --bs-btn-border-color: var(--isu-gold);
  --bs-btn-hover-color: var(--isu-navy-deep); --bs-btn-hover-bg: #d9a94a; --bs-btn-hover-border-color: #d9a94a;
  --bs-btn-active-bg: #d9a94a; --bs-btn-active-color: var(--isu-navy-deep); }
.btn-isu-navy { --bs-btn-color: #fff; --bs-btn-bg: var(--isu-navy-deep); --bs-btn-border-color: var(--isu-navy-deep);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--isu-navy); --bs-btn-hover-border-color: var(--isu-navy);
  --bs-btn-active-bg: var(--isu-navy); --bs-btn-active-color: #fff; }
.btn-isu-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.7);
  --bs-btn-hover-color: var(--isu-navy-deep); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; }
.btn .bi { transition: transform .25s ease; }
.btn:hover .bi-arrow-right, .btn:hover .bi-arrow-up-right { transform: translateX(3px); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-paper { background: var(--isu-paper); }
.section-cream { background: var(--isu-cream-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--isu-gold-dark); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--isu-gold); border-radius: 2px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .75rem; }
.section-lead { color: var(--isu-muted); max-width: 62ch; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.text-center .section-lead { margin-inline: auto; }
.section-head.text-center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--isu-gold); border-radius: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--isu-navy-deep); color: rgba(255,255,255,.85); font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.topbar a:hover { color: var(--isu-gold); }
.topbar-contact { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-contact .bi { color: var(--isu-gold); margin-right: .4rem; }
.social { display: flex; gap: .4rem; }
.social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); font-size: .85rem; transition: background .2s, border-color .2s, color .2s; }
.social a:hover { background: var(--isu-gold); border-color: var(--isu-gold); color: #fff; }

/* ---------- Header / navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  border-bottom: 1px solid rgba(0,21,79,.06);
  transition: box-shadow .3s ease;
}
/* glass effect on a pseudo-element so the header does not trap the fixed off-canvas menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -16px rgba(0,21,79,.35); }
.site-header .navbar { padding-block: .7rem; transition: padding .3s ease; }
.site-header.is-scrolled .navbar { padding-block: .35rem; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: 1rem; }
.brand img { width: 68px; height: 68px; transition: width .3s ease, height .3s ease; }
.site-header.is-scrolled .brand img { width: 54px; height: 54px; }
.brand-text { font-family: var(--isu-font-display); color: var(--isu-navy-deep); line-height: 1.12; font-size: 1.05rem; font-weight: 500; }
.brand-text { white-space: nowrap; }
.brand-text strong { display: block; font-weight: 700; font-size: 1.3rem; color: var(--isu-navy); }

.navbar-toggler { border: 0; padding: .5rem; font-size: 1.8rem; color: var(--isu-navy-deep); }
.navbar-toggler:focus { box-shadow: none; }

.main-nav .nav-link {
  white-space: nowrap;
  font-weight: 600; font-size: .95rem; color: var(--isu-ink);
  padding: .6rem .85rem !important; border-radius: 8px; position: relative;
}
.main-nav .nav-link:hover, .main-nav .nav-link:focus, .main-nav .nav-link.show { color: var(--isu-navy); }
.main-nav .nav-link.active { color: var(--isu-navy); }
.main-nav .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; vertical-align: middle; margin-left: .3rem; transition: transform .2s; }
.main-nav .dropdown-toggle.show::after { transform: rotate(180deg); }

.dropdown-menu { --bs-dropdown-border-color: var(--isu-line); --bs-dropdown-link-active-bg: var(--isu-navy); border-radius: var(--isu-radius); box-shadow: var(--isu-shadow-lg); padding: .6rem; }
.dropdown-menu .dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-size: .93rem; font-weight: 500; display: flex; align-items: center; gap: .6rem; }
.dropdown-item .bi { color: var(--isu-gold-dark); }
.dropdown-item:hover { background: var(--isu-cream-soft); color: var(--isu-navy-deep); }

/* Mega menu */
.mega-link { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 10px; text-decoration: none; color: var(--isu-ink); font-size: .92rem; font-weight: 500; line-height: 1.3; }
.mega-link .ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--isu-paper); color: var(--isu-navy); font-size: 1rem; transition: background .2s, color .2s; }
.mega-link:hover { background: var(--isu-cream-soft); color: var(--isu-navy-deep); }
.mega-link:hover .ico { background: var(--isu-navy-deep); color: var(--isu-gold); }
.mega-link small { display: block; color: var(--isu-muted); font-size: .75rem; font-weight: 500; }
.mega-title { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--isu-muted); padding: .2rem .6rem .5rem; }
.mega-feature { position: relative; border-radius: var(--isu-radius); overflow: hidden; height: 100%; min-height: 220px; color: #fff; display: flex; align-items: flex-end; text-decoration: none; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,21,79,.1) 20%, rgba(0,21,79,.92)); }
.mega-feature:hover img { transform: scale(1.05); }
.mega-feature .inner { position: relative; z-index: 1; padding: 1.2rem; }
.mega-feature h5 { color: #fff; font-family: var(--isu-font-display); font-size: 1.2rem; margin-bottom: .3rem; }
.mega-feature p { font-size: .85rem; margin-bottom: .6rem; color: rgba(255,255,255,.85); }
.mega-feature .go { color: var(--isu-gold); font-weight: 700; font-size: .85rem; }

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .main-nav .nav-link { padding: .6rem .6rem !important; font-size: .92rem; }
  .brand img { width: 60px; height: 60px; }
  .brand-text { font-size: .98rem; }
  .brand-text strong { font-size: 1.2rem; }
}
.btn { white-space: nowrap; }
@media (min-width: 1200px) {
  .main-nav .nav-item.dropdown-mega { position: static; }
  .main-nav .dropdown-mega > .dropdown-menu {
    left: 50%; transform: translateX(-50%); width: min(1140px, calc(100vw - 32px));
    padding: 1.4rem; margin-top: .6rem !important; top: 100%;
  }
  .main-nav .dropdown-menu { margin-top: .6rem !important; }
  .main-nav .dropdown-menu.show { animation: menuIn .22s ease both; }
  .offcanvas-footer-mobile { display: none; }
}
@keyframes menuIn { from { opacity: 0; transform: translate(var(--tx, 0), 8px); } to { opacity: 1; transform: translate(var(--tx, 0), 0); } }
.main-nav .dropdown-mega > .dropdown-menu.show { --tx: -50%; }

/* Offcanvas (below xl) */
@media (max-width: 1199.98px) {
  .site-header .offcanvas { --bs-offcanvas-width: min(380px, 88vw); }
  .offcanvas-header { border-bottom: 1px solid var(--isu-line); }
  .main-nav .nav-link { padding: .8rem .4rem !important; border-bottom: 1px solid var(--isu-line); border-radius: 0; display: flex; justify-content: space-between; align-items: center; }
  .main-nav .dropdown-menu { box-shadow: none; border: 0; padding: .3rem 0 .6rem; background: transparent; }
  .main-nav .mega-feature, .main-nav .mega-hide-mobile { display: none; }
  .main-nav .mega-title { padding-left: .4rem; }
  .offcanvas-footer-mobile { padding: 1rem 0 0; display: grid; gap: .6rem; }
  .brand img { width: 56px; height: 56px; }
  .brand-text { font-size: .92rem; }
  .brand-text strong { font-size: 1.1rem; }
}
@media (max-width: 400px) {
  .brand-text { font-size: .82rem; }
  .brand-text strong { font-size: 1rem; }
  .brand img { width: 48px; height: 48px; }
}

/* ---------- Hero banner ---------- */
.hero { position: relative; background: var(--isu-navy-deep); }
.hero .carousel-item { height: clamp(460px, 44vw, 660px); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: center 30%; }
.hero .carousel-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,21,79,.92) 0%, rgba(0,21,79,.72) 38%, rgba(0,21,79,.08) 72%);
}
.hero-caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-caption .content { max-width: 560px; color: #fff; }
.hero-caption .kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--isu-gold); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; font-family: var(--isu-font-body); }
.hero-caption .kicker::before { content: ""; width: 34px; height: 2px; background: var(--isu-gold); }
.hero-caption .headline { font-family: var(--isu-font-display); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; color: #fff; margin-bottom: 1rem; text-wrap: balance; }
.hero-caption .headline em { font-style: italic; color: var(--isu-gold); }
.hero-caption p { color: rgba(255,255,255,.86); font-size: 1.08rem; margin-bottom: 1.6rem; max-width: 46ch; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 5.2rem; z-index: 3; }
.hero-controls .container { display: flex; justify-content: space-between; align-items: center; }
.hero .carousel-indicators { position: static; margin: 0; justify-content: flex-start; }
.hero .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; border: 0; background: #fff; opacity: .4; }
.hero .carousel-indicators .active { background: var(--isu-gold); opacity: 1; }
.hero-arrows { display: flex; gap: .5rem; }
.hero-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,21,79,.45); color: #fff; font-size: 1.1rem; transition: background .2s, border-color .2s; }
.hero-arrows button:hover { background: var(--isu-gold); border-color: var(--isu-gold); }
.hero .carousel-item.active .hero-caption .content > * { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .carousel-item.active .hero-caption .content > *:nth-child(2) { animation-delay: .1s; }
.hero .carousel-item.active .hero-caption .content > *:nth-child(3) { animation-delay: .2s; }
.hero .carousel-item.active .hero-caption .content > *:nth-child(4) { animation-delay: .3s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 767.98px) {
  .hero .carousel-item { height: auto; aspect-ratio: auto; min-height: 560px; }
  .hero picture img { object-position: center top; }
  .hero .carousel-item::after { background: linear-gradient(180deg, rgba(0,21,79,.0) 0%, rgba(0,21,79,.55) 32%, rgba(0,21,79,.96) 62%); }
  .hero-caption { align-items: flex-end; padding-bottom: 6.5rem; }
  .hero-caption p { font-size: 1rem; }
  .hero-caption .kicker { font-size: .7rem; letter-spacing: .12em; }
  .hero-caption .kicker::before { display: none; }
  .hero .carousel-item { min-height: 600px; }
  .hero-arrows { display: none; }
  .hero-controls { bottom: 4.5rem; }
}

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 4; margin-top: -3.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--isu-radius); box-shadow: var(--isu-shadow-lg); overflow: hidden; }
.stat { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.5rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--isu-line); }
.stat-icon { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--isu-navy-deep); }
.stat:nth-child(even) .stat-icon { background: var(--isu-gold); }
.stat-icon img { width: 30px; height: 30px; object-fit: contain; }
.stat-num { white-space: nowrap; font-family: var(--isu-font-display); font-size: 1.75rem; font-weight: 700; color: var(--isu-navy-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num .pre { font-family: var(--isu-font-body); font-size: .8rem; font-weight: 600; color: var(--isu-gold-dark); text-transform: uppercase; letter-spacing: .08em; display: block; line-height: 1.2; }
.stat-label { color: var(--isu-muted); font-size: .9rem; font-weight: 500; }
@media (max-width: 991.98px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--isu-line); }
}
@media (max-width: 575.98px) {
  .stat { flex-direction: column; text-align: center; gap: .6rem; padding: 1.2rem .8rem; }
  .stat-num { font-size: 1.4rem; }
  .stat-icon { width: 50px; height: 50px; border-radius: 14px; }
  .stat-label { font-size: .82rem; }
}

/* ---------- About (single-image collage frame) ---------- */
.collage { position: relative; max-width: 440px; margin-inline: auto; padding: 0 2.4rem 2.4rem 0; }
.collage::before { /* gold outline offset */
  content: ""; position: absolute; top: 2.4rem; left: 2.4rem; right: 0; bottom: 0;
  border: 2px solid var(--isu-gold); border-radius: 180px 180px var(--isu-radius) var(--isu-radius);
}
.collage-dots { position: absolute; left: -1.2rem; top: 18%; width: 110px; height: 140px; z-index: 0;
  background-image: radial-gradient(var(--isu-navy) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .35; }
.collage-img { position: relative; z-index: 1; border-radius: 180px 180px var(--isu-radius) var(--isu-radius); overflow: hidden; box-shadow: var(--isu-shadow-lg); aspect-ratio: 330 / 460; }
.collage-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.collage-badge { position: absolute; z-index: 2; right: 0; bottom: 3.2rem; background: var(--isu-navy-deep); color: #fff; border-radius: var(--isu-radius); padding: 1rem 1.2rem; box-shadow: var(--isu-shadow-lg); display: flex; align-items: center; gap: .8rem; max-width: 240px; }
.collage-badge img { width: 46px; height: 46px; flex: none; }
.collage-badge strong { display: block; font-family: var(--isu-font-display); font-size: 1.05rem; line-height: 1.2; }
.collage-badge span { font-size: .78rem; color: rgba(255,255,255,.75); }
.collage-chip { position: absolute; z-index: 2; left: 0; top: 4.5rem; background: #fff; border-radius: 999px; padding: .55rem 1rem .55rem .6rem; box-shadow: var(--isu-shadow); display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .85rem; color: var(--isu-navy-deep); }
.collage-chip .bi { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--isu-cream); color: var(--isu-gold-dark); }

.about-sub { font-family: var(--isu-font-display); font-style: italic; color: var(--isu-gold-dark); font-size: 1.25rem; margin-bottom: 1rem; }
.pill-tabs { display: inline-flex; gap: .3rem; background: var(--isu-paper); border-radius: 999px; padding: .3rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pill-tabs .nav-link { border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--isu-muted); padding: .45rem 1.1rem; }
.pill-tabs .nav-link.active { background: var(--isu-navy-deep); color: #fff; }
.tab-panel-text { border-left: 3px solid var(--isu-gold); padding: .2rem 0 .2rem 1rem; color: var(--isu-muted); min-height: 5.2em; }

/* ---------- Accreditation ribbon ---------- */
.ribbon { background: var(--isu-navy-deep); color: #fff; overflow: hidden; padding-block: 1.05rem; border-block: 3px solid var(--isu-gold); }
.ribbon-track { display: flex; width: max-content; gap: 3rem; animation: marquee 38s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-item { display: flex; align-items: center; gap: .7rem; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.ribbon-item .bi { color: var(--isu-gold); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 1rem 2rem; } .ribbon-track [aria-hidden="true"] { display: none; } }

/* ---------- Faculty bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 1rem; }
.bento-tile { position: relative; border-radius: var(--isu-radius); overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; color: #fff; background: var(--isu-navy-deep); isolation: isolate; }
.bento-tile.xl { grid-column: span 2; grid-row: span 2; }
.bento-tile.wide { grid-column: span 2; }
.bento-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.bento-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,21,79,.05) 15%, rgba(0,21,79,.95) 100%); transition: background .3s; }
.bento-tile.pattern { background-color: var(--isu-navy); background-image: radial-gradient(circle at 100% 0, rgba(196,148,47,.35), transparent 55%), repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px); }
.bento-tile.pattern::after { display: none; }
.bento-tile .tile-ico { position: absolute; top: 1rem; left: 1rem; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--isu-gold); font-size: 1.2rem; }
.bento-tile .tile-go { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--isu-navy-deep); transform: scale(.7); opacity: 0; transition: .3s ease; }
.bento-tile .tile-body { padding: 1.1rem 1.2rem; display: block; }
.bento-tile .tile-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--isu-gold); font-weight: 700; }
.bento-tile h3 { color: #fff; font-size: 1.12rem; margin: .2rem 0 0; }
.bento-tile.xl h3 { font-size: 1.6rem; }
.bento-tile:hover img { transform: scale(1.07); }
.bento-tile:hover .tile-go, .bento-tile:focus-visible .tile-go { transform: scale(1); opacity: 1; }
@media (max-width: 991.98px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } .bento-tile.xl { grid-row: span 2; } }
@media (max-width: 575.98px) { .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: .7rem; } .bento-tile.xl { grid-column: span 2; grid-row: span 1; } .bento-tile.wide { grid-column: span 2; } .bento-tile h3 { font-size: .95rem; } .bento-tile.xl h3 { font-size: 1.25rem; } .bento-tile .tile-ico { width: 36px; height: 36px; } }

/* ---------- Scroll slider (courses / cards) ---------- */
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem 1.5rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
@media (max-width: 1199.98px) { .slider-track { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 767.98px) { .slider-track { grid-auto-columns: 86%; gap: 1rem; } }
.slider-nav { display: flex; gap: .5rem; }
.slider-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--isu-line); background: #fff; color: var(--isu-navy-deep); font-size: 1.1rem; transition: .2s; }
.slider-nav button:hover:not(:disabled) { background: var(--isu-navy-deep); color: #fff; border-color: var(--isu-navy-deep); }
.slider-nav button:disabled { opacity: .4; }
.slider-progress { height: 3px; background: var(--isu-line); border-radius: 3px; overflow: hidden; margin-top: .5rem; }
.slider-progress span { display: block; height: 100%; width: 0; background: var(--isu-gold); border-radius: 3px; transition: width .2s; }

.course-card { background: #fff; border-radius: var(--isu-radius); overflow: hidden; border: 1px solid var(--isu-line); display: flex; flex-direction: column; height: 100%; transition: transform .3s ease, box-shadow .3s ease; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--isu-shadow-lg); }
.course-card .thumb { aspect-ratio: 370 / 214; overflow: hidden; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.course-card:hover .thumb img { transform: scale(1.06); }
.course-card .body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-family: var(--isu-font-body); font-weight: 700; font-size: 1.12rem; margin-bottom: .5rem; }
.course-card p { color: var(--isu-muted); font-size: .93rem; margin-bottom: 1rem; }
.meta-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--isu-line); }
.meta-chips span { font-size: .76rem; font-weight: 600; background: var(--isu-paper); color: var(--isu-navy); border-radius: 999px; padding: .28rem .7rem; display: inline-flex; gap: .35rem; align-items: center; }
.meta-chips .bi { color: var(--isu-gold-dark); }

/* ---------- Course categories grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cat-tile { background: #fff; border: 1px solid var(--isu-line); border-radius: var(--isu-radius); padding: 1.3rem 1rem; text-align: center; text-decoration: none; color: var(--isu-ink); display: flex; flex-direction: column; align-items: center; gap: .6rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.cat-tile .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--isu-cream-soft); color: var(--isu-gold-dark); font-size: 1.5rem; transition: .25s; }
.cat-tile strong { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.cat-tile small { color: var(--isu-muted); font-size: .78rem; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--isu-shadow); border-color: transparent; color: var(--isu-navy-deep); }
.cat-tile:hover .ico { background: var(--isu-navy-deep); color: var(--isu-gold); }
@media (max-width: 1199.98px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767.98px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: .7rem; } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Enquiry + scholarship ---------- */
.enquiry-card { background: #fff; border-radius: var(--isu-radius); box-shadow: var(--isu-shadow-lg); padding: clamp(1.5rem, 3vw, 2.5rem); height: 100%; }
.form-label { font-weight: 600; font-size: .88rem; color: var(--isu-navy-deep); margin-bottom: .35rem; }
.form-control, .form-select { border-radius: var(--isu-radius-sm); border-color: var(--isu-line); padding: .75rem 1rem; background-color: var(--isu-paper); font-size: .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--isu-gold); box-shadow: 0 0 0 .25rem rgba(196,148,47,.18); background-color: #fff; }
.captcha-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.captcha-row canvas { border-radius: 8px; border: 1px solid var(--isu-line); }
.captcha-row .form-control { max-width: 200px; }
.captcha-refresh { border: 0; background: none; color: var(--isu-navy); font-weight: 600; font-size: .85rem; padding: 0; text-decoration: underline; }
.field-msg { font-size: .82rem; margin-top: .3rem; min-height: 1em; }

.scholarship { position: relative; border-radius: var(--isu-radius); overflow: hidden; color: #fff; height: 100%; min-height: 420px; display: flex; align-items: flex-end; isolation: isolate; }
.scholarship > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.scholarship::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,21,79,.35), rgba(0,21,79,.95) 70%); }
.scholarship .inner { padding: clamp(1.5rem, 3vw, 2.4rem); }
.scholarship .big { font-family: var(--isu-font-display); font-size: clamp(3.5rem, 7vw, 5rem); font-weight: 700; line-height: 1; color: var(--isu-gold); }
.scholarship h2 { color: #fff; font-size: 1.5rem; letter-spacing: .04em; margin: .6rem 0; }
.scholarship p { color: rgba(255,255,255,.88); }

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border-radius: var(--isu-radius); box-shadow: var(--isu-shadow); padding: clamp(1.8rem, 4vw, 3rem); position: relative; max-width: 860px; margin-inline: auto; }
.testimonial .qmark { position: absolute; top: -26px; left: clamp(1.8rem, 4vw, 3rem); width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--isu-gold); color: var(--isu-navy-deep); font-size: 1.6rem; }
.testimonial blockquote { font-family: var(--isu-font-display); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; color: var(--isu-navy-deep); margin: .8rem 0 1.5rem; }
.testimonial .who { display: flex; align-items: center; gap: .9rem; }
.testimonial .who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--isu-cream); }
.testimonial .who strong { display: block; color: var(--isu-navy-deep); }
.testimonial .who span { font-size: .85rem; color: var(--isu-muted); }
.t-indicators { position: static; margin: 1.8rem 0 0; }
.t-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; background: var(--isu-navy); border: 0; opacity: .25; margin: 0 5px; }
.t-indicators .active { opacity: 1; background: var(--isu-gold); width: 28px; border-radius: 6px; }

/* ---------- Campus life gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 240px); gap: 1rem; }
.gallery a { position: relative; border-radius: var(--isu-radius); overflow: hidden; display: block; color: #fff; text-decoration: none; }
.gallery a:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,21,79,.85)); }
.gallery .cap { position: absolute; left: 1.1rem; right: 1.1rem; bottom: .9rem; z-index: 1; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.gallery .cap .bi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 767.98px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 170px 170px 240px; } .gallery a:nth-child(3) { grid-column: 1 / span 2; grid-row: 3; } }

.lightbox .modal-content { background: transparent; border: 0; }
.lightbox img { border-radius: var(--isu-radius); width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox .modal-caption { color: #fff; text-align: center; margin-top: .8rem; font-weight: 600; }
.lightbox .btn-close { position: absolute; top: -2.5rem; right: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--isu-cream); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(196,148,47,.18); }
.cta-band .container { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--isu-navy-deep); color: rgba(255,255,255,.78); position: relative; overflow: hidden; font-size: .93rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("../images/footer/bg.jpg") center / cover no-repeat; opacity: .07; }
.site-footer > * { position: relative; }
.footer-main { padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer-brand img { width: 88px; height: 88px; }
.footer-brand .abbr { font-family: var(--isu-font-display); color: var(--isu-gold); font-weight: 700; font-size: 1.1rem; letter-spacing: .12em; margin-top: 1rem; }
.footer-brand h2 { color: #fff; font-size: 1.35rem; margin: .2rem 0 .5rem; }
.footer-brand .tag { font-size: .75rem; letter-spacing: .12em; color: rgba(255,255,255,.6); margin-bottom: .6rem; }
.footer-brand .tamil { color: var(--isu-gold); margin-bottom: 1.2rem; }
.site-footer h3 { font-family: var(--isu-font-body); color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; padding-bottom: .7rem; position: relative; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--isu-gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-links.two-col { grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
.footer-links a { color: rgba(255,255,255,.78); text-decoration: none; display: inline-flex; gap: .45rem; align-items: baseline; }
.footer-links a::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .6rem; color: var(--isu-gold); }
.footer-links a:hover { color: var(--isu-gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.footer-contact li { display: flex; gap: .8rem; }
.footer-contact .bi { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--isu-gold); }
.footer-contact a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact small { display: block; color: rgba(255,255,255,.55); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.2rem; font-size: .88rem; }
.footer-bottom a { color: #fff; text-decoration: none; }
.site-footer .social a { width: 36px; height: 36px; color: #fff; }

@media (max-width: 767.98px) {
  .footer-acc h3 { cursor: pointer; margin-bottom: 0; padding-block: .9rem; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; }
  .footer-acc h3::after { display: none; }
  .footer-acc h3 .bi { transition: transform .2s; }
  .footer-acc h3[aria-expanded="true"] .bi { transform: rotate(180deg); }
  .footer-acc .footer-links { padding-block: .9rem; }
}
@media (min-width: 768px) { .footer-acc .collapse { display: block !important; height: auto !important; } .footer-acc h3 .bi { display: none; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 1040; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--isu-gold); color: var(--isu-navy-deep); font-size: 1.2rem; box-shadow: var(--isu-shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--isu-navy-deep); color: #fff; }

/* ---------- Reveal on scroll (only when JS adds .js-reveal) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; background: var(--isu-navy-deep); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,21,79,.97) 0%, rgba(0,21,79,.88) 45%, rgba(0,21,79,.55) 100%); }
.page-hero.pattern { background-image: radial-gradient(circle at 85% 20%, rgba(196,148,47,.28), transparent 45%), repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px); }
.page-hero.pattern::before { display: none; }
.page-hero .seal-mark { position: absolute; right: max(16px, 6vw); top: 50%; transform: translateY(-50%); width: clamp(140px, 22vw, 260px); opacity: .1; z-index: -1; pointer-events: none; }
.page-hero .container { padding-block: clamp(2.8rem, 6vw, 4.8rem); }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: var(--isu-gold); margin-bottom: 1rem; font-size: .88rem; font-weight: 500; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .7rem; padding-top: .2rem; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .6rem; max-width: 22ch; }
.page-hero .lead { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 60ch; margin-bottom: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; padding: .4rem .9rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.hero-badges .bi { color: var(--isu-gold); }

/* Two-column page body */
.page-body { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.sidebar { display: grid; gap: 1.25rem; }
.side-card { background: #fff; border: 1px solid var(--isu-line); border-radius: var(--isu-radius); padding: 1.25rem; }
.side-card h2 { font-family: var(--isu-font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--isu-muted); margin-bottom: .8rem; }
.side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.side-nav a { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 9px; color: var(--isu-ink); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.3; }
.side-nav a .bi { color: var(--isu-gold-dark); flex: none; width: 1.1rem; text-align: center; }
.side-nav a:hover { background: var(--isu-cream-soft); color: var(--isu-navy-deep); }
.side-nav a[aria-current="page"] { background: var(--isu-navy-deep); color: #fff; }
.side-nav a[aria-current="page"] .bi { color: var(--isu-gold); }
.side-nav .count { margin-left: auto; font-size: .75rem; color: var(--isu-muted); font-variant-numeric: tabular-nums; }
.side-nav a[aria-current="page"] .count { color: rgba(255,255,255,.7); }
.side-cta { background: var(--isu-navy-deep); color: #fff; border-radius: var(--isu-radius); padding: 1.4rem; position: relative; overflow: hidden; }
.side-cta::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 22px solid rgba(196,148,47,.22); }
.side-cta .big { font-family: var(--isu-font-display); font-size: 2.6rem; font-weight: 700; color: var(--isu-gold); line-height: 1; }
.side-cta h2 { color: #fff; font-size: 1.15rem; margin: .4rem 0; }
.side-cta p { color: rgba(255,255,255,.8); font-size: .9rem; }
.side-contact a { display: flex; align-items: center; gap: .6rem; color: var(--isu-ink); text-decoration: none; font-weight: 600; font-size: .92rem; padding: .35rem 0; overflow-wrap: anywhere; }
.side-contact .bi { color: var(--isu-gold-dark); }
@media (max-width: 575.98px) { .prose .intro { font-size: 1.04rem; } }

/* Rich content (faculty / text pages) */
.prose { font-size: 1.02rem; color: #2b3547; }
.prose > * + * { margin-top: 1rem; }
.prose p { margin-bottom: 0; }
.prose .intro { font-size: 1.12rem; color: var(--isu-ink); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--isu-line); display: flex; gap: .8rem; align-items: baseline; }
.prose h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--isu-gold); transform: translateY(-2px) rotate(45deg); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-family: var(--isu-font-body); font-size: 1.05rem; font-weight: 700; color: var(--isu-navy); margin-top: 1.6rem; }
.prose figure { margin: 1.8rem 0; }
.prose figure img { width: 100%; border-radius: var(--isu-radius); box-shadow: var(--isu-shadow); aspect-ratio: 690 / 460; object-fit: cover; }
.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem 1.2rem; }
.check-list.long { grid-template-columns: 1fr; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; background: var(--isu-paper); border-radius: 10px; padding: .6rem .8rem; line-height: 1.45; }
.check-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; color: var(--isu-gold-dark); flex: none; margin-top: .05rem; }
.related { display: flex; flex-wrap: wrap; gap: .5rem; }
.related a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; background: var(--isu-cream-soft); color: var(--isu-navy-deep); text-decoration: none; font-size: .86rem; font-weight: 600; border: 1px solid transparent; transition: .2s; }
.related a .bi { color: var(--isu-gold-dark); }
.related a:hover { border-color: var(--isu-gold); background: #fff; }

/* Course table */
.table-card { background: #fff; border: 1px solid var(--isu-line); border-radius: var(--isu-radius); overflow: clip; box-shadow: 0 6px 24px -18px rgba(0,21,79,.4); }
.table-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--isu-line); }
.table-card-head h2 { font-size: 1.3rem; margin: 0; }
.table-card-head .legend { display: flex; flex-wrap: wrap; gap: .4rem; }
.course-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.course-table thead th { position: sticky; top: var(--isu-header-h); z-index: 1; background: var(--isu-navy-deep); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .85rem 1rem; text-align: left; white-space: nowrap; }
.course-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--isu-line); vertical-align: middle; }
.course-table tbody tr:nth-child(even) td { background: #fbfcfd; }
.course-table tbody tr:hover td { background: var(--isu-cream-soft); }
.course-table tbody tr:last-child td { border-bottom: 0; }
.course-table .sno { width: 64px; color: var(--isu-muted); font-variant-numeric: tabular-nums; }
.course-table .code { width: 120px; font-weight: 700; color: var(--isu-navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.course-table .name { font-weight: 600; color: var(--isu-ink); }
.course-table .dur { width: 150px; }
.dur-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.dur-badge.d6 { background: #e8f3ee; color: #1d6b48; }
.dur-badge.d12 { background: #e7eef8; color: var(--isu-navy); }
.dur-badge.d24 { background: var(--isu-cream); color: #7a5712; }
@media (max-width: 767.98px) {
  .course-table thead { display: none; }
  .course-table, .course-table tbody, .course-table tr, .course-table td { display: block; width: 100%; }
  .course-table tr { padding: .9rem 1.1rem; border-bottom: 1px solid var(--isu-line); display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; }
  .course-table tbody tr:nth-child(even) td, .course-table tbody tr:hover td { background: transparent; }
  .course-table tbody tr:nth-child(even) { background: #fbfcfd; }
  .course-table td { padding: 0; border: 0; }
  .course-table .sno { grid-row: span 3; width: auto; }
  .course-table .sno::before { content: "#"; }
  .course-table .code { width: auto; font-size: .82rem; }
  .course-table .dur { width: auto; margin-top: .35rem; }
}

/* About page */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 575.98px) { .value-grid { grid-template-columns: 1fr; } }
.sticky-lg { position: sticky; top: calc(var(--isu-header-h) + 1rem); }
@media (max-width: 991.98px) { .sticky-lg { position: static; } }
.value-card { background: #fff; border: 1px solid var(--isu-line); border-radius: var(--isu-radius); padding: 1.3rem; transition: transform .25s, box-shadow .25s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--isu-shadow); }
.value-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--isu-cream-soft); color: var(--isu-gold-dark); font-size: 1.3rem; margin-bottom: .9rem; }
.value-card h3 { font-family: var(--isu-font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.value-card p { color: var(--isu-muted); font-size: .94rem; margin: 0; }
.pillar { text-align: center; padding: 2rem 1.4rem; border-radius: var(--isu-radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); height: 100%; }
.pillar .ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--isu-gold); color: #fff; font-size: 1.6rem; }
.pillar h3 { color: #fff; font-size: 1.4rem; margin-bottom: .5rem; }
.pillar p { color: rgba(255,255,255,.78); margin: 0; }
.section-navy { background: var(--isu-navy-deep); color: #fff; position: relative; overflow: hidden; }
.section-navy .section-title { color: #fff; }
.section-navy .section-lead { color: rgba(255,255,255,.75); }
.mv-card { background: #fff; border-radius: var(--isu-radius); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--isu-shadow); height: 100%; border-top: 4px solid var(--isu-gold); }
.mv-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--isu-navy-deep); color: var(--isu-gold); font-size: 1.4rem; margin-bottom: 1rem; }
.mv-card h2 { font-size: 1.6rem; }
.mv-card p { color: #2b3547; }
.framed-img { border-radius: var(--isu-radius); overflow: hidden; box-shadow: var(--isu-shadow-lg); position: relative; }
.framed-img img { width: 100%; display: block; }
.framed-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,21,79,.08); }
.page-toc a { font-size: .86rem; }

/* Numbered rule lists (Honorary Doctorate etc.) keep their own i. ii. iii. text */
.plain-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.plain-list li { padding: .7rem .9rem; background: var(--isu-paper); border-left: 3px solid var(--isu-gold); border-radius: 0 10px 10px 0; line-height: 1.55; }

/* Tabs for long pages */
.page-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1.8rem; scrollbar-width: thin; border-bottom: 1px solid var(--isu-line); flex-wrap: nowrap; }
.page-tabs .nav-link { white-space: nowrap; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--isu-muted); padding: .55rem 1.1rem; border: 1px solid var(--isu-line); background: #fff; }
.page-tabs .nav-link:hover { color: var(--isu-navy-deep); border-color: var(--isu-gold); }
.page-tabs .nav-link.active { background: var(--isu-navy-deep); border-color: var(--isu-navy-deep); color: #fff; }
.tab-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--isu-gold-dark); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-grid a { display: block; border-radius: var(--isu-radius); overflow: hidden; aspect-ratio: 690 / 460; position: relative; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-grid a:hover img { transform: scale(1.06); }
.photo-grid a .bi { position: absolute; right: .7rem; bottom: .7rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,21,79,.6); color: #fff; }
@media (max-width: 767.98px) { .photo-grid { grid-template-columns: 1fr 1fr; } }

/* Info cards (contact, accreditation) */
.info-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--isu-line); border-radius: var(--isu-radius); padding: 1.2rem; height: 100%; }
.info-card .ico { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--isu-navy-deep); color: var(--isu-gold); font-size: 1.25rem; }
.info-card h2, .info-card h3 { font-family: var(--isu-font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--isu-muted); margin-bottom: .3rem; }
.info-card p { margin: 0; color: var(--isu-ink); font-weight: 600; overflow-wrap: anywhere; }
.info-card a { color: var(--isu-ink); text-decoration: none; }
.info-card a:hover { color: var(--isu-navy); }
.reg-panel { background: var(--isu-navy-deep); color: #fff; border-radius: var(--isu-radius); padding: 1.4rem; }
.reg-panel h2 { color: #fff; font-family: var(--isu-font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.reg-panel dl { margin: 0; display: grid; gap: .8rem; }
.reg-panel dt { font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 500; }
.reg-panel dd { margin: 0; font-family: var(--isu-font-display); font-size: 1.35rem; color: var(--isu-gold); font-variant-numeric: tabular-nums; }
.body-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.body-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; font-size: .92rem; line-height: 1.4; }
.body-list .bi { color: var(--isu-gold-dark); font-size: 1.1rem; }

/* Certificate verification */
.verify-card { max-width: 640px; margin-inline: auto; background: #fff; border-radius: var(--isu-radius); box-shadow: var(--isu-shadow-lg); padding: clamp(1.6rem, 4vw, 2.8rem); position: relative; }
.verify-card .seal { width: 76px; height: 76px; margin: -4.6rem auto 1rem; display: block; background: #fff; border-radius: 50%; padding: 4px; box-shadow: var(--isu-shadow); }
.note { display: flex; gap: .7rem; background: var(--isu-cream-soft); border: 1px dashed var(--isu-gold); border-radius: var(--isu-radius-sm); padding: .8rem 1rem; font-size: .92rem; color: #5b4310; }
.note .bi { color: var(--isu-gold-dark); font-size: 1.1rem; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.notfound .code { font-family: var(--isu-font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; color: var(--isu-navy-deep); }
.notfound .code span { color: var(--isu-gold); }

/* Server captcha image + form status message */
.captcha-img { border-radius: 8px; border: 1px solid var(--isu-line); background: var(--isu-cream); }
.form-status:empty { display: none; }
.form-status { display: flex; align-items: flex-start; border-radius: var(--isu-radius-sm); font-weight: 500; }
/* Honeypot field: kept off-screen for people, visible to bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Certificate verification result */
.verify-result { max-width: 900px; margin-inline: auto; background: #fff; border-radius: var(--isu-radius); box-shadow: var(--isu-shadow-lg); padding: clamp(1.4rem, 3vw, 2.2rem); border-top: 5px solid; }
.verify-ok { border-color: #198754; }
.verify-no { border-color: #dc3545; }
.verify-result-head { display: flex; gap: 1rem; align-items: flex-start; }
.verify-icon { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; }
.verify-ok .verify-icon { background: #e8f3ee; color: #198754; }
.verify-no .verify-icon { background: #fbeaec; color: #dc3545; }
.verify-details { margin: 0; display: grid; gap: .9rem; }
.verify-details div { background: var(--isu-paper); border-radius: var(--isu-radius-sm); padding: .8rem 1rem; }
.verify-details dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--isu-muted); font-weight: 700; }
.verify-details dd { margin: 0; font-family: var(--isu-font-display); font-size: 1.35rem; color: var(--isu-navy-deep); font-weight: 600; }
.verify-photo { display: block; position: relative; border-radius: var(--isu-radius-sm); overflow: hidden; border: 1px solid var(--isu-line); background: var(--isu-paper); text-decoration: none; }
.verify-photo img { width: 100%; display: block; }
.verify-photo span { position: absolute; right: .6rem; bottom: .6rem; background: rgba(0,21,79,.8); color: #fff; font-size: .8rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; }
