/* =============================================================================================
   Public website - responsive & design enhancement layer
   Fixed header (mobile + desktop), mobile tab menus, voice/text assistant, refined visual system.
   Loaded after the page's base styles, so rules here refine (never fight) the dynamic theme vars.
   ============================================================================================= */

:root {
  --chrome-h: 150px;
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --radius-lg: 20px;
  --radius-md: 14px;
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6eaf2;
  --surface: #ffffff;
  --canvas: #f6f8fc;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Anchors land just below the compact (scrolled) header */
html { scroll-padding-top: calc(var(--chrome-compact-h, var(--chrome-h)) + 12px) !important; }
/* Never let any content widen the mobile layout viewport (which makes phones zoom out) */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { background: var(--canvas); color: var(--ink); text-rendering: optimizeLegibility; }
/* Long footer labels truncate inside their column instead of stretching the page */
.footer-nav-list li { min-width: 0; }
.footer-nav-link { max-width: 100%; min-width: 0; }
.footer-nav-link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-footer .col-6, .site-footer [class*="col-"] { min-width: 0; }
@media (max-width: 991.98px) {
  html { scroll-padding-top: calc(var(--chrome-compact-h, var(--chrome-h)) + 8px) !important; }
  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px) !important; }
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: #fff; color: var(--site-primary); padding: .55rem 1rem; border-radius: 10px;
  font-weight: 700; box-shadow: var(--shadow-md); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--site-accent) 70%, transparent); outline-offset: 2px; }

/* ---------------------------------------------------------------------------------------------
   1. FIXED SITE CHROME (announcement bar + header) - pinned on every screen size
   --------------------------------------------------------------------------------------------- */
.site-chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
  transform: translateZ(0);
}
.site-chrome .site-header,
.site-chrome .site-header.is-sticky { position: relative !important; top: auto; }
#siteChromeSpacer { height: var(--chrome-h); }
.site-chrome.no-anim, .site-chrome.no-anim * { transition: none !important; }

.site-chrome .top-utility-bar {
  max-height: 60px; overflow: hidden;
  transition: max-height .28s var(--ease), padding .28s var(--ease), opacity .2s;
}
.site-chrome .header-primary-row { transition: padding .25s var(--ease); }
.site-chrome .brand-logo-img { transition: height .25s var(--ease), transform .2s ease; }
.site-chrome .faculty-ribbon-bar { max-height: 64px; overflow: hidden; transition: max-height .28s var(--ease), opacity .2s; }

/* Compact state while scrolling */
.site-chrome.is-scrolled .top-utility-bar { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; border: 0; }
.site-chrome.is-scrolled .header-primary-row { padding: .45rem 0; }
.site-chrome.is-scrolled .brand-logo-img { height: 40px; }
.site-chrome.is-scrolled .brand-subtitle { display: none; }
.site-chrome.is-scrolled .site-header { box-shadow: 0 10px 30px rgba(6, 17, 38, .28); }
.site-chrome.is-scrolled .site-header.style-executive_gradient,
.site-chrome.is-scrolled .site-header.style-centered_academic {
  background: color-mix(in srgb, var(--site-navbar-bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
@media (min-width: 992px) {
  .site-chrome.is-scrolled .faculty-ribbon-bar { max-height: 0; opacity: 0; border: 0; }
}

/* Header details */
.header-search-input { height: 44px; }
.btn-header-auth, .btn-header-secondary { min-height: 40px; }
.nav-item-link { position: relative; }
.nav-item-link::after {
  content: ""; position: absolute; left: .82rem; right: .82rem; bottom: .2rem; height: 2px; border-radius: 2px;
  background: var(--site-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-item-link:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------------------------------------
   2. MOBILE HEADER + SECTION TAB MENU
   --------------------------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .header-primary-row { padding: .55rem 0; }
  .header-primary-inner { gap: .6rem; }
  .brand-lockup { max-width: calc(100vw - 120px); gap: .55rem; }
  .brand-logo-img { height: 40px; max-width: 96px; }
  .brand-title { font-size: 1rem; }
  .brand-subtitle { font-size: .68rem; }
  .faculty-ribbon-bar { display: none !important; }      /* faculties live in the tabs, drawer & assistant */
  .top-utility-bar { font-size: .72rem; padding: .3rem 0; }
  .top-utility-bar.links-only { display: none !important; }   /* contact links alone are a desktop utility */
  .top-announcement-text { font-size: .72rem; }
  .site-chrome.is-scrolled #mobileSearchWrap { display: none !important; }
}
@media (max-width: 399.98px) {
  .brand-subtitle { display: none; }
  .brand-title { font-size: .92rem; }
}

.mobile-section-tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}
.mobile-section-tabs-scroll {
  display: flex; gap: .4rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding: .5rem .75rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mobile-section-tabs-scroll::-webkit-scrollbar { display: none; }
.msec-tab {
  flex: 0 0 auto; scroll-snap-align: center;
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .45rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--ink-2); text-decoration: none;
  background: #f1f4f9; border: 1px solid transparent;
  transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}
.msec-tab i { font-size: .9rem; }
.msec-tab:active { transform: scale(.96); }
.msec-tab.active {
  background: var(--site-primary); color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--site-primary) 35%, transparent);
}

/* ---------------------------------------------------------------------------------------------
   3. MOBILE BOTTOM TAB BAR with the assistant in the middle
   --------------------------------------------------------------------------------------------- */
.mobile-bottom-tabbar {
  height: calc(var(--tabbar-h) + var(--safe-b)) !important;
  padding: 0 .4rem var(--safe-b) !important;
  background: color-mix(in srgb, #ffffff 92%, transparent) !important;
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid rgba(15, 23, 42, .08) !important;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, .08) !important;
  align-items: stretch !important;
}
.mobile-tab-btn {
  border: 0; background: transparent; position: relative;
  min-height: 48px; color: #6b7280 !important; font-size: .66rem !important; letter-spacing: .01em;
}
.mobile-tab-btn i { font-size: 1.25rem !important; transition: transform .2s var(--ease); }
.mobile-tab-btn.active { color: var(--site-primary) !important; }
.mobile-tab-btn.active i { transform: translateY(-2px); }
.mobile-tab-btn.active::before {
  content: ""; position: absolute; top: 4px; width: 26px; height: 3px; border-radius: 3px; background: var(--site-primary);
}
.mobile-tab-assistant { color: var(--site-primary) !important; font-weight: 800 !important; }
.assistant-orb {
  width: 58px; height: 58px; margin-top: -26px; margin-bottom: 2px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 1.45rem;
  background: radial-gradient(120% 120% at 20% 15%, #60a5fa 0%, var(--site-primary-hover) 45%, var(--site-primary) 100%);
  border: 4px solid #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--site-primary) 45%, transparent), 0 0 0 0 rgba(56, 189, 248, .45);
  animation: orbPulse 2.8s ease-out infinite;
}
.assistant-orb i { font-size: 1.45rem !important; }
@keyframes orbPulse {
  0% { box-shadow: 0 10px 24px rgba(14, 45, 109, .4), 0 0 0 0 rgba(56, 189, 248, .45); }
  70% { box-shadow: 0 10px 24px rgba(14, 45, 109, .4), 0 0 0 14px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 10px 24px rgba(14, 45, 109, .4), 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* ---------------------------------------------------------------------------------------------
   4. HERO, KPI, SECTIONS - responsive & refined
   --------------------------------------------------------------------------------------------- */
.hero-title { text-wrap: balance; }
.hero-subtitle { text-wrap: pretty; max-width: 640px; }

/* All slides share one grid cell: each slide (and its background image) always fills the whole stage,
   the stage is as tall as the configured height or the tallest slide, and switching slides never jumps. */
.hero-slides-stage { display: grid; }
.hero-slides-stage > .hero-slide-item,
.hero-slides-stage > .hero-slide-item.active { position: relative; inset: auto; grid-area: 1 / 1; min-width: 0; }
/* The stats card overlaps the bottom of the hero by --kpi-overlap; the slide controls sit just above it.
   Arrows are grouped at the bottom-right, clear of the slide text at every width. */
:root { --kpi-overlap: 3.2rem; }
@media (max-width: 991.98px) { :root { --kpi-overlap: 2.4rem; } }
@media (max-width: 575.98px) { :root { --kpi-overlap: 1.8rem; } }
.kpi-metrics-strip { margin-top: calc(-1 * var(--kpi-overlap)) !important; }
.hero-slide-item { padding-bottom: calc(var(--kpi-overlap) + 3rem) !important; }
.hero-indicators { bottom: calc(var(--kpi-overlap) + .9rem) !important; }
.hero-arrow-btn { top: auto; bottom: calc(var(--kpi-overlap) + .55rem); transform: none; }
.hero-arrow-prev { left: auto; right: calc(1.25rem + 52px); }
.hero-arrow-next { right: 1.25rem; }
.hero-slide-content.align-center .hero-subtitle { margin-left: auto; margin-right: auto; }
@media (max-width: 575.98px) {
  /* Let the slide content set the height on phones (no empty band under short slides) */
  .hero-slides-stage { min-height: 0 !important; }
  .hero-slide-item.active { min-height: 300px; }
}
@media (max-width: 767.98px) {
  .hero-slide-item { padding: 2rem 0 3.6rem; }
  .hero-title { font-size: clamp(1.55rem, 7vw, 2.1rem); }
  .hero-subtitle { font-size: .95rem; margin-bottom: 1.2rem; }
  .hero-slide-content .btn-lg { padding: .7rem 1.2rem; font-size: .95rem; }
  .hero-slide-content .d-flex.gap-3 { gap: .6rem !important; }
  .hero-badge-pill { font-size: .68rem; }
}

.kpi-metrics-card { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.kpi-stat-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--site-primary) 12%, #fff), color-mix(in srgb, var(--site-accent) 18%, #fff));
}
/* The floating stats strip (.kpi-metrics-strip) is fully styled, incl. its responsive layout, in website_public.html */

.section-block { padding: 4.25rem 0; }
@media (max-width: 767.98px) { .section-block { padding: 2.5rem 0; } }
.section-heading { position: relative; text-wrap: balance; }
.section-pill-badge {
  background: linear-gradient(135deg, color-mix(in srgb, var(--site-primary) 10%, #fff), color-mix(in srgb, var(--site-accent) 14%, #fff));
  border: 1px solid color-mix(in srgb, var(--site-primary) 14%, transparent);
}

/* Cards */
.udemy-course-card, .lecture-unit-card, .instructor-card, .hierarchy-card {
  border-color: var(--line) !important; box-shadow: var(--shadow-sm);
}
.udemy-course-card { border-radius: var(--radius-lg); }
.udemy-course-card:hover { box-shadow: var(--shadow-lg); }
.udemy-card-thumb { height: 190px; }
.udemy-card-body h5 {
  font-size: 1.02rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.udemy-card-body p.text-secondary, .lecture-unit-card p.text-secondary, .instructor-card p.small {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lecture-unit-card, .hierarchy-card, .instructor-card { border-radius: var(--radius-md); }

/* Swipeable rows on phones (app-like, like a store shelf) */
@media (max-width: 767.98px) {
  /* Courses, lectures and instructors use their own finder layouts (see 4e, 4f, 4g) - no swipe rows */
  .udemy-card-thumb { height: 170px; }
  .udemy-course-card:hover, .lecture-unit-card:hover, .hierarchy-card:hover { transform: none; }
  .section-subheading { font-size: .9rem; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .assistant-orb, .bot-fab { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Footer */
@media (max-width: 767.98px) {
  .footer-col-title { margin-bottom: .7rem; }
}

/* Modals full screen on phones: keep the rounded corners off */
@media (max-width: 767.98px) {
  .modal-fullscreen-md-down .modal-content { border-radius: 0 !important; }
}
@media (max-width: 575.98px) {
  .modal-fullscreen-sm-down .modal-content { border-radius: 0 !important; }
  #lectureVideoModal .modal-body { display: flex; flex-direction: column; justify-content: center; }
}

/* ---------------------------------------------------------------------------------------------
   4b. PAGINATION, SKELETONS, AVATARS
   --------------------------------------------------------------------------------------------- */
.site-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.4rem; }
.site-pager:empty { display: none; }
.pager-info { font-size: .82rem; color: var(--muted); }
.pager-nav { display: flex; align-items: center; gap: .3rem; }
.pager-btn {
  min-width: 38px; height: 38px; padding: 0 .55rem; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.pager-btn:hover:not([disabled]) { border-color: var(--site-primary); color: var(--site-primary); }
.pager-btn.active { background: var(--site-primary); border-color: var(--site-primary); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--site-primary) 30%, transparent); }
.pager-btn[disabled] { opacity: .4; cursor: not-allowed; }
.pager-gap { color: var(--muted); padding: 0 .2rem; }
.pager-compact { display: none; font-size: .82rem; font-weight: 700; color: var(--ink-2); padding: 0 .4rem; }
@media (max-width: 575.98px) {
  .site-pager { justify-content: center; }
  .pager-info { width: 100%; text-align: center; }
  .pager-num, .pager-gap { display: none; }
  .pager-compact { display: inline; }
}
.row.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* ---------------------------------------------------------------------------------------------
   4e. COURSE FINDER: live search, cascading filters, sort, page size, grid / list view
   --------------------------------------------------------------------------------------------- */
.course-finder {
  position: relative; margin: -0.4rem 0 1.4rem; padding: .85rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.cf-row { display: flex; align-items: center; gap: .6rem; }
.cf-search {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .6rem; margin: 0; height: 50px; padding: 0 .4rem 0 .95rem;
  border-radius: 14px; border: 1px solid var(--line); background: var(--canvas); transition: border-color .2s, box-shadow .2s, background .2s;
}
.cf-search:focus-within { background: #fff; border-color: color-mix(in srgb, var(--site-primary) 55%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-primary) 13%, transparent); }
.cf-search > .bi-search { color: var(--site-primary); font-size: 1.05rem; flex-shrink: 0; }
.cf-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .95rem; color: var(--ink); }
.cf-search input::-webkit-search-cancel-button { display: none; }
.cf-clear {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; transition: background .15s, color .15s;
}
.cf-clear:hover { background: #eef2f8; color: var(--ink); }
.cf-spinner {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--site-primary) 22%, transparent);
  border-top-color: var(--site-primary); opacity: 0; animation: cfSpin .7s linear infinite; transition: opacity .15s;
}
.course-finder.is-searching .cf-spinner { opacity: 1; }
@keyframes cfSpin { to { transform: rotate(360deg); } }

.cf-filter-toggle {
  display: none; flex-shrink: 0; align-items: center; gap: .45rem; height: 50px; padding: 0 .95rem; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; font-size: .88rem;
}
.cf-filter-toggle[aria-expanded="true"] { border-color: var(--site-primary); color: var(--site-primary); }
.cf-filter-count {
  min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 999px; font-size: .7rem; line-height: 20px; text-align: center;
  background: var(--site-primary); color: #fff;
}
.cf-view { display: flex; flex-shrink: 0; padding: 4px; gap: 4px; border-radius: 14px; background: var(--canvas); border: 1px solid var(--line); }
.cf-view-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; transition: background .15s, color .15s, box-shadow .15s;
}
.cf-view-btn:hover { color: var(--ink); }
.cf-view-btn.active { background: #fff; color: var(--site-primary); box-shadow: var(--shadow-sm); }

.cf-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .9fr) minmax(0, .55fr); gap: .6rem; margin-top: .7rem; }
.cf-field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.cf-field label { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: .2rem; }
.cf-field select {
  width: 100%; min-width: 0; height: 42px; padding: 0 2rem 0 .75rem; border-radius: 12px; border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11 3 6h10z'/%3E%3C/svg%3E") no-repeat right .7rem center;
  -webkit-appearance: none; appearance: none; font-size: .85rem; font-weight: 600; color: var(--ink);
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.cf-field select:hover:not(:disabled) { border-color: color-mix(in srgb, var(--site-primary) 40%, var(--line)); }
.cf-field select:focus { outline: 0; border-color: var(--site-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-primary) 14%, transparent); }
.cf-field select:disabled { background-color: var(--canvas); color: var(--muted); cursor: not-allowed; }

.cf-status { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.cf-status:has(.cf-chips:empty) .cf-result { margin-left: auto; }
.cf-chips { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.cf-chips:empty { display: none; }
.cf-chip {
  display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .32rem .55rem .32rem .65rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--site-primary) 25%, var(--line)); background: color-mix(in srgb, var(--site-primary) 7%, #fff);
  color: var(--site-primary); font-size: .76rem; font-weight: 700; transition: background .15s;
}
.cf-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.cf-chip .bi-x { font-size: 1rem; opacity: .7; }
.cf-chip:hover { background: color-mix(in srgb, var(--site-primary) 14%, #fff); }
.cf-chip:hover .bi-x { opacity: 1; }
.cf-chip-clear { border: 0; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 700; text-decoration: underline; padding: .3rem .4rem; }
.cf-chip-clear:hover { color: var(--ink); }
.cf-result { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.cf-result b { color: var(--ink); }
mark.cf-mark { background: color-mix(in srgb, var(--site-accent, #fbbf24) 45%, transparent); color: inherit; padding: 0 .1em; border-radius: 3px; }

/* List view: horizontal course rows (also the phone layout) */
#coursesGridContainer.is-list > [class*="col"] { flex: 0 0 100%; max-width: 100%; }
#coursesGridContainer.is-list .udemy-course-card { flex-direction: row; align-items: stretch; }
#coursesGridContainer.is-list .udemy-card-thumb { flex: 0 0 300px; width: 300px; height: auto; min-height: 190px; }
#coursesGridContainer.is-list .udemy-card-body { flex: 1 1 auto; min-width: 0; }
#coursesGridContainer.is-list .udemy-card-body p.text-secondary { -webkit-line-clamp: 2; }
#coursesGridContainer.is-list .udemy-card-body > .mt-auto { justify-content: flex-start; }
#coursesGridContainer.is-list .udemy-card-body > .mt-auto .btn-primary { flex: 0 0 auto !important; }

/* Tablets */
@media (max-width: 991.98px) {
  .cf-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #coursesGridContainer.is-list .udemy-card-thumb { flex-basis: 230px; width: 230px; }
}
/* Phones: one search row, filters behind a toggle, compact list cards */
@media (max-width: 767.98px) {
  .course-finder { padding: .6rem; margin-top: -0.6rem; border-radius: var(--radius-md); }
  .cf-search { height: 46px; }
  .cf-filter-toggle { display: inline-flex; height: 46px; padding: 0 .75rem; }
  .cf-filter-toggle > span { display: none; }
  .cf-view { display: none; }
  .cf-filters { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-finder.filters-open .cf-filters { display: grid; animation: cfDrop .2s ease; }
  .cf-filters .cf-field:nth-child(-n+3) { grid-column: 1 / -1; }
  .cf-field select { height: 44px; font-size: .9rem; }   /* >= 16px-equivalent on iOS to avoid zoom is handled by html font-size */
  .cf-chip span { max-width: 150px; }
  #coursesGridContainer { --bs-gutter-y: .75rem; }
  #coursesGridContainer > [class*="col"] { flex: 0 0 100%; max-width: 100%; }
  /* Phone cards are always compact rows: thumbnail left, details right */
  #coursesGridContainer .udemy-course-card { flex-direction: row; align-items: stretch; border-radius: var(--radius-md); }
  #coursesGridContainer .udemy-card-thumb { flex: 0 0 112px; width: 112px; height: auto !important; min-height: 100%; aspect-ratio: auto !important; }
  #coursesGridContainer .udemy-card-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
  #coursesGridContainer .udemy-card-thumb .badge.bottom-0, #coursesGridContainer .udemy-card-thumb .udemy-play-overlay { display: none !important; }
  #coursesGridContainer .udemy-card-thumb .badge { font-size: .58rem; margin: .35rem !important; max-width: calc(100% - .7rem); overflow: hidden; text-overflow: ellipsis; }
  /* stack the "live" badge under the course code instead of overlapping it */
  #coursesGridContainer .udemy-card-thumb .badge.top-0.end-0 { top: 1.45rem !important; right: auto !important; left: 0 !important; }
  #coursesGridContainer .udemy-card-body { padding: .7rem .75rem; min-width: 0; }
  #coursesGridContainer .udemy-card-body h5 { font-size: .9rem; margin-bottom: .25rem !important; }
  #coursesGridContainer .udemy-card-body p.text-secondary { display: none; }
  #coursesGridContainer .udemy-card-body > .mt-auto { padding-top: .45rem !important; }
  #coursesGridContainer .udemy-card-body > .mt-auto .btn { font-size: .74rem; padding: .3rem .6rem; }
  #coursesGridContainer .udemy-card-body > .mt-auto .btn-primary .bi { display: none; }
  #coursesGridContainer .udemy-card-body .mb-3 { margin-bottom: .35rem !important; }
}
@media (max-width: 379.98px) {
  #coursesGridContainer .udemy-card-thumb { flex-basis: 88px; width: 88px; }
  .cf-search input { font-size: .9rem; }
}
@keyframes cfDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------------------------------
   4f. VIDEO LECTURES: lecture finder + video cards (grid on desktop, rows in list view & on phones)
   --------------------------------------------------------------------------------------------- */
.lecture-finder .lf-filters { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .85fr) minmax(0, .9fr) minmax(0, .55fr); }
.lv-card {
  height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.lv-card:hover, .lv-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--site-primary) 30%, var(--line)); outline: none; }
.lv-card:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-primary) 35%, transparent), var(--shadow-lg); }
.lv-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; flex-shrink: 0;
  background: var(--site-gradient-navbar, linear-gradient(135deg, #0b1220, #1e293b)); color: #fff;
}
.lv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lv-thumb.is-logo img { width: 46%; height: 70%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.lv-thumb > .bi { font-size: 2.2rem; opacity: .7; }
.lv-card:hover .lv-thumb img { transform: scale(1.05); }
.lv-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45)); pointer-events: none; }
.lv-play {
  position: absolute; z-index: 1; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
  color: var(--site-primary); background: rgba(255, 255, 255, .94); box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s var(--ease);
}
.lv-play .bi { margin-left: 3px; }
.lv-card:hover .lv-play, .lv-card:focus-visible .lv-play { opacity: 1; transform: none; }
.lv-duration {
  position: absolute; z-index: 1; right: .5rem; bottom: .5rem; padding: .15rem .45rem; border-radius: 6px;
  background: rgba(0, 0, 0, .78); color: #fff; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.lv-source { position: absolute; z-index: 1; left: .5rem; bottom: .45rem; color: #fff; font-size: .9rem; opacity: .9; }
.lv-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .35rem; padding: .85rem .95rem .9rem; }
.lv-course { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.lv-code {
  flex-shrink: 0; font-size: .64rem; font-weight: 800; letter-spacing: .03em; padding: .14rem .45rem; border-radius: 6px;
  color: var(--site-primary); background: color-mix(in srgb, var(--site-primary) 9%, #fff);
}
.lv-course-title { min-width: 0; font-size: .72rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-title {
  margin: 0; font-family: var(--site-heading-font); font-size: .98rem; font-weight: 800; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lv-card:hover .lv-title { color: var(--site-primary); }
.lv-module { display: flex; align-items: flex-start; gap: .35rem; font-size: .74rem; font-weight: 600; color: var(--ink-2); min-width: 0; }
.lv-module .bi { color: var(--site-primary); margin-top: .1rem; flex-shrink: 0; }
.lv-module span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lv-desc { margin: 0; font-size: .78rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lv-foot { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.lv-inst { display: flex; align-items: center; gap: .45rem; min-width: 0; font-size: .76rem; font-weight: 700; color: var(--ink-2); }
.lv-inst img, .lv-inst-initial { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.lv-inst-initial { display: grid; place-items: center; color: #fff; font-size: .7rem; background: var(--site-gradient-primary, var(--site-primary)); border: 0; }
.lv-inst > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-watch {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .7rem; border-radius: 999px;
  font-size: .74rem; font-weight: 800; color: var(--site-primary); background: color-mix(in srgb, var(--site-primary) 9%, #fff);
  transition: background .2s, color .2s;
}
.lv-card:hover .lv-watch { background: var(--site-primary); color: #fff; }

/* List view (desktop): wide rows */
#lecturesGridContainer.is-list > [class*="col"] { flex: 0 0 100%; max-width: 100%; }
#lecturesGridContainer.is-list .lv-card { flex-direction: row; }
#lecturesGridContainer.is-list .lv-thumb { width: 280px; aspect-ratio: 16 / 9; height: auto; align-self: center; margin: .6rem; border-radius: 12px; }
#lecturesGridContainer.is-list .lv-body { padding: .8rem 1rem .8rem .3rem; }
#lecturesGridContainer.is-list .lv-title { -webkit-line-clamp: 1; font-size: 1.02rem; }

@media (max-width: 1199.98px) {
  .lecture-finder .lf-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Phones: compact rows (thumbnail left), filters behind the toggle */
@media (max-width: 767.98px) {
  .lecture-finder .lf-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lecture-finder .lf-filters .cf-field:nth-child(-n+3) { grid-column: 1 / -1; }
  #lecturesGridContainer { --bs-gutter-y: .6rem; }
  #lecturesGridContainer > [class*="col"] { flex: 0 0 100%; max-width: 100%; }
  #lecturesGridContainer .lv-card { flex-direction: row; border-radius: 14px; }
  #lecturesGridContainer .lv-card:hover { transform: none; }
  #lecturesGridContainer .lv-thumb { width: 132px; aspect-ratio: 16 / 10; margin: .45rem; border-radius: 10px; align-self: flex-start; }
  #lecturesGridContainer .lv-play { opacity: 1; transform: none; width: 34px; height: 34px; font-size: 1.05rem; }
  #lecturesGridContainer .lv-source { display: none; }
  #lecturesGridContainer .lv-body { padding: .5rem .65rem .55rem .15rem; gap: .2rem; }
  #lecturesGridContainer .lv-title { font-size: .86rem; }
  #lecturesGridContainer .lv-course-title, #lecturesGridContainer .lv-desc { display: none; }
  #lecturesGridContainer .lv-foot { padding-top: .35rem; border-top: 0; }
  #lecturesGridContainer .lv-inst img, #lecturesGridContainer .lv-inst-initial { width: 20px; height: 20px; }
  #lecturesGridContainer .lv-watch { display: none; }
}
@media (max-width: 379.98px) {
  #lecturesGridContainer .lv-thumb { width: 108px; }
  #lecturesGridContainer .lv-module { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-card, .lv-thumb img, .lv-play { transition: none !important; }
}

/* ---------------------------------------------------------------------------------------------
   4h. INSTITUTIONAL HIERARCHY: faculty cards (own hue per faculty) + department explorer
   --------------------------------------------------------------------------------------------- */
.hx-toolbar { display: flex; align-items: center; gap: 1rem; margin: -.2rem 0 1.4rem; }
.hx-search { flex: 1 1 auto; max-width: 560px; background: #fff; box-shadow: var(--shadow-sm); }
.hx-totals { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; font-size: .8rem; color: var(--muted); }
.hx-totals span { padding: .35rem .7rem; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); }
.hx-totals b { color: var(--ink); font-variant-numeric: tabular-nums; }

.hx-fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem; }
.hx-fac {
  --hx-a: hsl(var(--hx-hue) 70% 42%);
  --hx-b: hsl(var(--hx-hue2, calc(var(--hx-hue) + 38)) 72% 30%);
  position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 24px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: hxRise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.hx-fac:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px hsl(var(--hx-hue) 60% 25% / .55), var(--shadow-md); border-color: hsl(var(--hx-hue) 50% 80%); }
.hx-fac.is-active { border-color: var(--hx-a); box-shadow: 0 0 0 3px hsl(var(--hx-hue) 70% 42% / .18), var(--shadow-md); }
.hx-fac-top {
  position: relative; height: 112px; padding: 1rem 1.1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(135deg, var(--hx-a), var(--hx-b));
  color: #fff; overflow: hidden;
}
.hx-fac-top::before {   /* soft dotted texture */
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1.2px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000); mask-image: linear-gradient(120deg, transparent 30%, #000);
}
.hx-fac-top::after {   /* big faint ring */
  content: ""; position: absolute; right: -42px; bottom: -70px; width: 170px; height: 170px; border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, .08); transition: transform .6s var(--ease);
}
.hx-fac:hover .hx-fac-top::after { transform: scale(1.12) rotate(10deg); }
.hx-fac { --hx-top-h: 112px; }
.hx-fac-badge {
  position: absolute; left: 1.1rem; top: calc(var(--hx-top-h) - 42px); z-index: 3; width: 84px; height: 84px; border-radius: 26px;
  display: grid; place-items: center; overflow: hidden; background: #fff; color: var(--hx-a); font-size: 1.9rem;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px hsl(var(--hx-hue) 50% 86%), 0 18px 34px -14px hsl(var(--hx-hue) 60% 25% / .6);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.hx-fac-badge img {
  position: relative; z-index: 1; width: 88%; height: 88%; object-fit: contain;
  opacity: 0; transform: scale(.82); transition: opacity .5s var(--ease), transform .5s var(--ease);
  animation: hxBob 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.9s);
  filter: drop-shadow(0 5px 8px hsl(var(--hx-hue) 60% 25% / .25));
}
.hx-fac-badge img.is-loaded { opacity: 1; transform: none; }
.hx-fac-badge .bi { position: absolute; }
.hx-fac-badge img.is-loaded + .bi { display: none; }
/* light sweep across the crest on hover */
.hx-fac-badge::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0; transition: background-position .9s var(--ease);
}
.hx-fac:hover .hx-fac-badge { transform: translateY(-5px) rotate(-4deg) scale(1.04); box-shadow: 0 0 0 4px #fff, 0 0 0 6px hsl(var(--hx-hue) 65% 60%), 0 24px 40px -14px hsl(var(--hx-hue) 60% 25% / .7); }
.hx-fac:hover .hx-fac-badge::after { background-position: -60% 0; }.hx-fac-code {
  position: relative; z-index: 1; margin-left: auto; font-family: var(--site-heading-font); font-weight: 800; font-size: .78rem; letter-spacing: .12em;
  padding: .3rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hx-fac-flag {
  position: absolute; z-index: 1; left: 1.1rem; top: 1rem; font-size: .68rem; font-weight: 800; padding: .25rem .55rem; border-radius: 999px;
  background: #fff; color: var(--hx-a);
}
.hx-fac-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: .55rem; padding: 3.1rem 1.2rem 1.2rem; min-width: 0; }
.hx-fac-name { margin: 0; font-family: var(--site-heading-font); font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.hx-fac-desc { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-fac-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: .2rem 0 0; padding: .65rem .2rem; border-radius: 16px; background: hsl(var(--hx-hue) 45% 97%); border: 1px solid hsl(var(--hx-hue) 40% 92%); }
.hx-fac-stats > div { display: flex; flex-direction: column-reverse; align-items: center; gap: .1rem; min-width: 0; }
.hx-fac-stats > div + div { border-left: 1px solid hsl(var(--hx-hue) 35% 88%); }
.hx-fac-stats dt { font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hx-fac-stats dd { margin: 0; font-family: var(--site-heading-font); font-size: 1.12rem; font-weight: 800; color: var(--hx-b); font-variant-numeric: tabular-nums; }
.hx-fac-deps { display: flex; flex-wrap: wrap; gap: .35rem; }
.hx-dep-chip {
  border: 1px solid hsl(var(--hx-hue) 40% 88%); background: #fff; color: var(--ink-2); border-radius: 8px; padding: .18rem .5rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .02em; transition: all .15s;
}
.hx-dep-chip:hover { background: var(--hx-a); border-color: var(--hx-a); color: #fff; }
.hx-dep-more { align-self: center; font-size: .72rem; font-weight: 700; color: var(--muted); }
.hx-fac-actions { margin-top: auto; padding-top: .35rem; display: flex; gap: .5rem; }
.hx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 800; border: 1px solid transparent; transition: all .2s var(--ease); white-space: nowrap;
}
.hx-btn-solid { flex: 1 1 auto; color: #fff; background: linear-gradient(135deg, var(--hx-a), var(--hx-b)); box-shadow: 0 10px 22px -12px hsl(var(--hx-hue) 60% 30% / .8); }
.hx-btn-solid:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.hx-btn-ghost { color: var(--hx-b); background: hsl(var(--hx-hue) 45% 96%); border-color: hsl(var(--hx-hue) 40% 88%); }
.hx-btn-ghost:hover { background: #fff; border-color: var(--hx-a); }
.hx-btn:focus-visible, .hx-tab:focus-visible, .hx-dept-cta:focus-visible, .hx-more:focus-visible { outline: 2px solid var(--site-primary); outline-offset: 2px; }

.hx-more-wrap { display: flex; justify-content: center; }
.hx-more {
  margin-top: 1.3rem; display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .84rem; font-weight: 800; box-shadow: var(--shadow-sm); transition: all .2s;
}
.hx-more span { font-weight: 600; color: var(--muted); }
.hx-more:hover { border-color: var(--site-primary); color: var(--site-primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.hx-more[hidden] { display: none; }
.hx-empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 2.2rem 1rem; text-align: center;
  border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); background: var(--canvas);
}
.hx-empty > .bi { font-size: 1.6rem; color: var(--site-primary); opacity: .6; }
.hx-empty b { color: var(--ink); }
.hx-link { border: 0; background: none; color: var(--site-primary); font-weight: 700; text-decoration: underline; }

/* Departments */
.hx-depts { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--chrome-compact-h, var(--chrome-h)) + 12px); }
.hx-depts-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.hx-depts-title { margin: 0 0 .2rem; font-family: var(--site-heading-font); font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.hx-depts-sub { margin: 0; font-size: .86rem; color: var(--muted); }
.hx-count { font-size: .78rem; font-weight: 800; color: var(--site-primary); background: color-mix(in srgb, var(--site-primary) 9%, #fff); padding: .4rem .85rem; border-radius: 999px; }
.hx-tabs {
  display: flex; gap: .45rem; overflow-x: auto; padding: .2rem .1rem .7rem; margin-bottom: .6rem; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.hx-tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .8rem; font-weight: 800; transition: all .2s;
}
.hx-tab b { font-size: .68rem; min-width: 22px; padding: .05rem .4rem; border-radius: 999px; background: var(--canvas); color: var(--muted); }
.hx-tab-dot { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--hx-hue) 70% 42%); }
.hx-tab:hover { border-color: color-mix(in srgb, var(--site-primary) 40%, var(--line)); }
.hx-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 22px -12px rgba(11, 18, 32, .7); }
.hx-tab.active b { background: rgba(255, 255, 255, .16); color: #fff; }
.hx-tab.active .hx-tab-dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

.hx-dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .9rem; }
.hx-turn-next { animation: hxTurnNext .42s var(--ease) both; }
.hx-turn-prev { animation: hxTurnPrev .42s var(--ease) both; }
.hx-dept {
  position: relative; display: flex; flex-direction: column; gap: .55rem; min-width: 0; padding: 1rem 1rem .95rem 1.15rem;
  border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  animation: hxRise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.hx-dept::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, hsl(var(--hx-hue) 70% 45%), hsl(var(--hx-hue2, calc(var(--hx-hue) + 38)) 72% 32%)); }
/* Soft faculty-tinted glow behind the seal + light sweep on hover */
.hx-dept::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120px 90px at 46px 40px, hsl(var(--hx-hue) 70% 50% / .10), transparent 70%),
              linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) no-repeat;
  background-size: 100% 100%, 250% 100%; background-position: 0 0, 160% 0;
  transition: background-position .9s var(--ease);
}
.hx-dept:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px hsl(var(--hx-hue) 60% 25% / .45); border-color: hsl(var(--hx-hue) 45% 80%); }
.hx-dept:hover::after { background-position: 0 0, -60% 0; }

.hx-dept-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.hx-dept-logo {
  position: relative; flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: hsl(var(--hx-hue) 55% 96%);
  animation: hxBob 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s);
}
/* Rotating faculty-coloured halo */
.hx-dept-logo::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, hsl(var(--hx-hue) 75% 50%), transparent 30%, hsl(calc(var(--hx-hue) + 40) 80% 55%) 55%, transparent 80%, hsl(var(--hx-hue) 75% 50%));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  opacity: .45; animation: hxSpin 9s linear infinite; transition: opacity .3s;
}
.hx-dept-logo img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
  opacity: 0; transform: scale(.85); transition: opacity .45s var(--ease), transform .45s var(--ease);
  filter: drop-shadow(0 6px 10px hsl(var(--hx-hue) 60% 25% / .28));
}
.hx-dept-logo img.is-loaded { opacity: 1; transform: none; }
.hx-dept-logo .bi { position: absolute; font-size: 1.5rem; color: hsl(var(--hx-hue) 60% 38%); }
.hx-dept-logo img.is-loaded + .bi { display: none; }
.hx-dept:hover .hx-dept-logo::before { opacity: 1; animation-duration: 2.8s; }
.hx-dept:hover .hx-dept-logo img.is-loaded { transform: scale(1.08) rotate(-6deg); }

.hx-dept-tags { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.hx-dept-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.hx-dept-code { font-size: .66rem; font-weight: 800; letter-spacing: .06em; padding: .16rem .5rem; border-radius: 6px; color: hsl(var(--hx-hue) 60% 30%); background: hsl(var(--hx-hue) 50% 95%); }
.hx-dept-fac { font-size: .62rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.hx-dept-name { margin: 0; font-family: var(--site-heading-font); font-size: .95rem; font-weight: 800; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.hx-dept-meta { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .74rem; color: var(--muted); }
.hx-dept-meta .bi { color: hsl(var(--hx-hue) 60% 40%); margin-right: .25rem; }
.hx-dept-cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; padding: .2rem 0;
  font-size: .78rem; font-weight: 800; color: var(--site-primary);
}
.hx-dept-cta .bi { transition: transform .2s; }
.hx-dept:hover .hx-dept-cta .bi { transform: translateX(4px); }

/* Floating pager: sticks to the bottom of the viewport while the departments list is on screen */
.hx-pager-wrap {
  position: sticky; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20;
  display: flex; justify-content: center; margin-top: 1.3rem; pointer-events: none;
}
.hx-pager-wrap[hidden] { display: none; }
@media (max-width: 991.98px) { .hx-pager-wrap { bottom: calc(var(--tabbar-h, 68px) + 76px + env(safe-area-inset-bottom)); } }
/* Lift the pager above the network-status pill while it is showing */
body:has(.ns-pill.show) .hx-pager-wrap { bottom: calc(62px + env(safe-area-inset-bottom)); }
@media (max-width: 991.98px) { body:has(.ns-pill.show) .hx-pager-wrap { bottom: calc(172px + env(safe-area-inset-bottom)); } }
.hx-pager-wrap { transition: bottom .3s var(--ease); }
/* Horizontal swipes on the grids turn pages; never hand them to the browser's back-swipe / overscroll */
.hx-fac-grid, .hx-dept-grid { touch-action: pan-y pinch-zoom; overscroll-behavior-x: contain; }
.hx-pager {
  position: relative; pointer-events: auto; display: inline-flex; align-items: center; gap: .2rem; max-width: 100%;
  padding: .32rem; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(15, 23, 42, .08);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 14px 34px -14px rgba(11, 18, 32, .38), 0 2px 6px rgba(11, 18, 32, .06);
  animation: hxPagerIn .45s var(--ease) both;
}
.hx-pg-nums { display: inline-flex; align-items: center; gap: .15rem; }
.hx-pg {
  min-width: 38px; height: 38px; padding: 0 .55rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-2); font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums;
  display: inline-grid; place-items: center; cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.hx-pg:hover:not(:disabled):not([aria-current]) { background: color-mix(in srgb, var(--site-primary) 9%, #fff); color: var(--site-primary); }
.hx-pg:active:not(:disabled) { transform: scale(.92); }
.hx-pg[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -8px rgba(11, 18, 32, .7); animation: hxPop .35s var(--ease); }
.hx-pg:disabled { opacity: .32; cursor: default; }
.hx-pg:focus-visible { outline: 2px solid var(--site-primary); outline-offset: 2px; }
.hx-pg-step { font-size: .95rem; }
.hx-pg-gap { min-width: 18px; text-align: center; color: var(--muted); font-weight: 800; }
.hx-pg-compact { display: none; padding: 0 .55rem; font-size: .82rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.hx-pg-compact b { color: var(--ink); }
.hx-pg-info { padding: 0 .75rem 0 .65rem; margin-left: .15rem; border-left: 1px solid var(--line); font-size: .74rem; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx-pg-info span { font-weight: 600; color: var(--muted); }
.hx-pg-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: linear-gradient(90deg, var(--site-primary), color-mix(in srgb, var(--site-primary) 50%, #f5c542)); transition: width .45s var(--ease); }

@keyframes hxBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes hxSpin { to { transform: rotate(360deg); } }
@keyframes hxPop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes hxPagerIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hxTurnNext { from { opacity: .2; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes hxTurnPrev { from { opacity: .2; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes hxRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Tablets */
@media (max-width: 991.98px) {
  .hx-toolbar { flex-wrap: wrap; }
  .hx-search { max-width: none; flex-basis: 100%; }
  .hx-totals { margin-left: 0; }
}
/* Phones: compact faculty cards, two-column department tiles */
@media (max-width: 575.98px) {
  .hx-fac-grid { gap: .9rem; }
  .hx-fac { border-radius: 20px; }
  .hx-fac:hover { transform: none; }
  .hx-fac-top { height: 84px; padding: .8rem .9rem; }
  .hx-fac { --hx-top-h: 84px; }
  .hx-fac-badge { width: 66px; height: 66px; border-radius: 20px; font-size: 1.5rem; left: .9rem; top: calc(var(--hx-top-h) - 33px); }
  .hx-fac-body { padding: 2.55rem .95rem 1rem; gap: .45rem; }
  .hx-fac-name { font-size: 1.02rem; }
  .hx-fac-stats dd { font-size: 1rem; }
  .hx-fac-stats dt { font-size: .54rem; letter-spacing: .02em; }
  .hx-btn { padding: .55rem .75rem; font-size: .78rem; }
  .hx-btn-ghost span { display: none; }
  .hx-dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .hx-dept { padding: .8rem .75rem .75rem .95rem; border-radius: 14px; }
  .hx-dept:hover { transform: none; }
  .hx-dept-name { font-size: .84rem; }
  .hx-dept-meta { flex-direction: column; font-size: .7rem; }
  .hx-dept-logo { width: 48px; height: 48px; }
  .hx-dept-fac { display: none; }
  .hx-pg-nums, .hx-pg-info { display: none; }
  .hx-pg-compact { display: inline-block; }
  .hx-pg { min-width: 44px; height: 44px; }
  .hx-pager { padding: .28rem; }
  .hx-totals span { padding: .3rem .55rem; font-size: .74rem; }
}
@media (max-width: 359.98px) { .hx-dept-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .hx-fac, .hx-dept, .hx-dept-logo, .hx-dept-logo::before, .hx-fac-badge img, .hx-pager, .hx-pg, .hx-turn-next, .hx-turn-prev { animation: none !important; transition: none; }
  .hx-dept-logo img { transition: none; }
  .hx-fac-top::after, .hx-fac-badge { transition: none; }
}

/* ---------------------------------------------------------------------------------------------
   4i. DEGREE PROGRAMS: finder, "opened from a department" context banner, program cards
       (faculty colour, award, level), shared floating pager (4g), spotlight after navigation
   --------------------------------------------------------------------------------------------- */
.prog-finder .pf-filters { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, .9fr); }
.pf-context {
  display: flex; align-items: center; gap: .8rem; margin: -.4rem 0 1.2rem; padding: .75rem .85rem; border-radius: 18px;
  background: linear-gradient(90deg, hsl(var(--hx-hue, 200) 60% 96%), #fff); border: 1px solid hsl(var(--hx-hue, 200) 45% 86%);
  animation: cfDrop .3s ease;
}
.pf-context[hidden] { display: none; }
.pf-context-ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.05rem;
  background: linear-gradient(135deg, hsl(var(--hx-hue, 200) 70% 42%), hsl(calc(var(--hx-hue, 200) + 38) 72% 30%));
}
.pf-context-txt { flex: 1 1 auto; min-width: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
.pf-context-txt b { color: var(--ink); }
.pf-context-txt small { display: block; font-size: .74rem; color: var(--muted); }
.pf-context-clear {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: .78rem; font-weight: 800; color: var(--ink-2); transition: all .15s;
}
.pf-context-clear:hover { border-color: var(--site-primary); color: var(--site-primary); }

.pg-card {
  --pg-a: hsl(var(--hx-hue) 70% 42%);
  --pg-b: hsl(calc(var(--hx-hue) + 38) 72% 30%);
  position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pg-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -26px hsl(var(--hx-hue) 60% 25% / .55), var(--shadow-md); border-color: hsl(var(--hx-hue) 45% 82%); }
.pg-top {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem 1.1rem;
  background: radial-gradient(130% 160% at 100% 0%, rgba(255, 255, 255, .2), transparent 55%), linear-gradient(135deg, var(--pg-a), var(--pg-b));
  color: #fff; overflow: hidden;
}
.pg-top::after { content: ""; position: absolute; right: -24px; top: -40px; width: 110px; height: 110px; border-radius: 50%; border: 16px solid rgba(255, 255, 255, .1); }
.pg-award { position: relative; z-index: 1; font-family: var(--site-heading-font); font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.pg-level {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .6rem; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pg-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.1rem; min-width: 0; }
.pg-title { margin: 0; font-family: var(--site-heading-font); font-size: 1.1rem; font-weight: 800; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.pg-code { font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--pg-b); margin-top: -.2rem; }
.pg-path { list-style: none; margin: .15rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.pg-path li { display: flex; align-items: flex-start; gap: .45rem; min-width: 0; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.pg-path .bi { color: var(--pg-a); margin-top: .1rem; flex-shrink: 0; }
.pg-path span { min-width: 0; }
.pg-link { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-decoration-color: hsl(var(--hx-hue) 40% 82%); text-underline-offset: 3px; }
.pg-link:hover { color: var(--pg-a); text-decoration-color: currentColor; }
.pg-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .1rem; }
.pg-meta span {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  color: var(--ink-2); background: hsl(var(--hx-hue) 45% 96%); border: 1px solid hsl(var(--hx-hue) 40% 90%);
}
.pg-meta .bi { color: var(--pg-a); }
.pg-cta {
  margin-top: auto; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem .9rem;
  border-radius: 999px; border: 0; font-size: .82rem; font-weight: 800; color: var(--pg-b); background: hsl(var(--hx-hue) 50% 95%); transition: all .2s var(--ease);
}
.pg-cta .bi { transition: transform .2s; }
.pg-card:hover .pg-cta, .pg-cta:focus-visible { color: #fff; background: linear-gradient(135deg, var(--pg-a), var(--pg-b)); }
.pg-card:hover .pg-cta .bi { transform: translateX(4px); }

/* Spotlight after "View programs" / "Explore courses": a brief glow so the reader sees where they landed */
.is-spotlight { position: relative; }
.is-spotlight::after {
  content: ""; position: absolute; inset: -10px; border-radius: 26px; pointer-events: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-primary) 45%, transparent), 0 0 40px color-mix(in srgb, var(--site-primary) 25%, transparent);
  animation: spotlight 1.8s ease forwards;
}
@keyframes spotlight { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 991.98px) { .prog-finder .pf-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .prog-finder .pf-filters .cf-field:nth-child(-n+2) { grid-column: 1 / -1; }
  #programsGridContainer { --bs-gutter-y: .75rem; }
  #programsGridContainer > [class*="col"] { flex: 0 0 100%; max-width: 100%; }
  .pg-card { flex-direction: row; border-radius: 18px; }
  .pg-card:hover { transform: none; }
  .pg-top { flex-direction: column; justify-content: center; width: 92px; flex-shrink: 0; padding: .8rem .5rem; gap: .45rem; text-align: center; }
  .pg-award { font-size: 1.02rem; }
  .pg-level { font-size: .56rem; padding: .2rem .4rem; letter-spacing: .02em; }
  .pg-level .bi { display: none; }
  .pg-body { padding: .8rem .85rem .85rem; gap: .35rem; }
  .pg-title { font-size: .98rem; }
  .pg-path li { font-size: .74rem; }
  .pg-cta { align-self: flex-start; padding: .42rem .8rem; font-size: .76rem; }
  .pf-context { flex-wrap: wrap; }
  .pf-context-clear span { display: none; }
  .pf-context-clear { padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-card, .pg-cta { transition: none !important; }
  .is-spotlight::after { animation-duration: .01s; }
}

/* ---------------------------------------------------------------------------------------------
   4j. PLATFORM SHOWCASE (About): pillars, interactive tour with drawn product previews,
       live figures, security strip and call to action
   --------------------------------------------------------------------------------------------- */
.pf-show { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f4f7fc 55%, #fff 100%); border-top: 1px solid var(--line); }
.pf-show-glow {
  position: absolute; inset: -20% -10% auto; height: 70%; pointer-events: none; opacity: .55;
  background: radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--site-primary) 16%, transparent), transparent 70%),
              radial-gradient(35% 45% at 85% 20%, color-mix(in srgb, var(--site-accent, #fbbf24) 18%, transparent), transparent 70%);
}
.pf-head { max-width: 780px; margin: 0 auto 2.2rem; text-align: center; }
.pf-head .section-subheading { margin-left: auto; margin-right: auto; }

/* Pillars */
.pf-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.1rem; margin-bottom: 2.4rem; }
.pf-pillars[hidden] { display: none; }
.pf-pillar {
  --pf-a: hsl(var(--pf-hue) 70% 42%);
  position: relative; padding: 1.4rem 1.3rem 1.3rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: hxRise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms);
}
.pf-pillar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--pf-a), hsl(calc(var(--pf-hue) + 40) 72% 45%)); transform: scaleX(.25); transform-origin: left; transition: transform .45s var(--ease);
}
.pf-pillar:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -26px hsl(var(--pf-hue) 60% 25% / .5), var(--shadow-md); border-color: hsl(var(--pf-hue) 45% 85%); }
.pf-pillar:hover::before { transform: scaleX(1); }
.pf-pillar-num { position: absolute; right: 1rem; top: .8rem; font-family: var(--site-heading-font); font-weight: 800; font-size: 2.6rem; line-height: 1; color: hsl(var(--pf-hue) 50% 94%); }
.pf-pillar-ic {
  position: relative; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.45rem; color: #fff;
  background: linear-gradient(140deg, var(--pf-a), hsl(calc(var(--pf-hue) + 40) 72% 32%)); box-shadow: 0 14px 26px -12px hsl(var(--pf-hue) 70% 35% / .7);
  transition: transform .35s var(--ease);
}
.pf-pillar:hover .pf-pillar-ic { transform: rotate(-6deg) scale(1.06); }
.pf-pillar h3 { position: relative; margin: 0 0 .45rem; font-family: var(--site-heading-font); font-size: 1.08rem; font-weight: 800; color: var(--ink); }
.pf-pillar p { position: relative; margin: 0; font-size: .86rem; line-height: 1.55; color: var(--muted); }

/* Interactive tour */
.pf-tour {
  position: relative; border-radius: 28px; padding: 1rem; margin-bottom: 1.6rem;
  background: linear-gradient(160deg, #0b1220, #111b30 55%, color-mix(in srgb, var(--site-primary) 30%, #0b1220));
  box-shadow: 0 40px 80px -40px rgba(8, 24, 56, .7); color: #e2e8f0; overflow: hidden;
}
.pf-tour::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent); mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent);
}
.pf-tabs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; padding: .35rem; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.pf-tab {
  display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem .6rem; border-radius: 14px; border: 0;
  background: transparent; color: #94a3b8; font-weight: 800; font-size: .9rem; transition: background .25s, color .25s, box-shadow .25s;
}
.pf-tab i { font-size: 1.1rem; }
.pf-tab:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.pf-tab.active { color: #fff; background: linear-gradient(135deg, hsl(var(--pf-hue) 70% 42%), hsl(calc(var(--pf-hue) + 40) 72% 32%)); box-shadow: 0 12px 26px -12px hsl(var(--pf-hue) 70% 45% / .9); }
.pf-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pf-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem; align-items: center; padding: 2rem 1.4rem 1.6rem;
  animation: pfIn .5s var(--ease) both;
}
.pf-kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--pf-hue) 80% 72%); }
.pf-panel-copy h3 { margin: .55rem 0 .6rem; font-family: var(--site-heading-font); font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 800; line-height: 1.2; color: #fff; text-wrap: balance; }
.pf-panel-copy > p { margin: 0 0 1.1rem; font-size: .95rem; line-height: 1.6; color: #cbd5e1; max-width: 52ch; }
.pf-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pf-points li { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; line-height: 1.45; color: #e2e8f0; animation: pfIn .45s var(--ease) both; }
.pf-points li:nth-child(2) { animation-delay: 50ms; } .pf-points li:nth-child(3) { animation-delay: 100ms; }
.pf-points li:nth-child(4) { animation-delay: 150ms; } .pf-points li:nth-child(5) { animation-delay: 200ms; }
.pf-points li > span {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: hsl(var(--pf-hue) 60% 50% / .18); color: hsl(var(--pf-hue) 85% 75%); border: 1px solid hsl(var(--pf-hue) 60% 60% / .25);
}
.pf-progress { position: relative; height: 3px; margin: 0 1.4rem .4rem; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pf-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--site-primary), var(--site-accent, #fbbf24)); }
.pf-progress span.is-running { animation: pfProgress 8s linear forwards; }
@keyframes pfProgress { from { width: 0; } to { width: 100%; } }
@keyframes pfIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Drawn product previews */
.pv { position: relative; border-radius: 20px; padding: 1rem; min-height: 280px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.pv-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 999px; font-size: .74rem; font-weight: 800;
  background: #fff; color: #0b1220; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .55); animation: pvFloat 4s ease-in-out infinite;
}
@keyframes pvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.pv-chip-a { right: -10px; bottom: 26px; } .pv-chip-a i { color: #16a34a; }
.pv-chip-b { left: 14px; top: 14px; } .pv-chip-c { right: 10px; bottom: 12px; } .pv-chip-c i { color: hsl(280 70% 50%); }
/* learn */
.pv-player { position: relative; aspect-ratio: 16 / 8; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 90% at 30% 20%, hsl(158 70% 40% / .55), transparent), linear-gradient(135deg, #0f2a2a, #0b1220); }
.pv-play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0b1220; font-size: 1.6rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, .12); }
.pv-play i { margin-left: 3px; }
.pv-scrub { position: absolute; left: 12px; right: 90px; bottom: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.pv-scrub span { display: block; height: 100%; border-radius: 4px; background: hsl(158 80% 55%); }
.pv-time { position: absolute; right: 12px; bottom: 8px; font-size: .68rem; font-weight: 700; color: #cbd5e1; }
.pv-modules { display: grid; gap: .5rem; margin-top: .9rem; }
.pv-mod { display: grid; grid-template-columns: minmax(0, 1fr) 90px 38px; align-items: center; gap: .6rem; font-size: .76rem; color: #cbd5e1; }
.pv-mod-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pv-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, hsl(158 70% 45%), hsl(190 80% 55%)); }
.pv-mod b { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
/* live */
.pv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pv-tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1rem;
  background: linear-gradient(140deg, hsl(var(--h) 55% 35%), hsl(calc(var(--h) + 30) 55% 22%)); border: 2px solid transparent;
}
.pv-tile.is-speaker { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; font-size: 1.6rem; border-color: hsl(350 85% 60%); box-shadow: 0 0 0 4px hsl(350 85% 60% / .25); }
.pv-tile em { position: absolute; left: 8px; bottom: 6px; font-style: normal; font-size: .62rem; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; background: rgba(0, 0, 0, .45); }
.pv-heart {
  display: flex; align-items: center; gap: .7rem; margin-top: .8rem; padding: .7rem .85rem; border-radius: 14px;
  background: hsl(350 70% 50% / .14); border: 1px solid hsl(350 70% 60% / .3);
}
.pv-heart > i { font-size: 1.4rem; color: hsl(350 90% 65%); animation: pvBeat 1.2s ease-in-out infinite; }
@keyframes pvBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.pv-heart span { display: flex; flex-direction: column; font-size: .74rem; color: #cbd5e1; }
.pv-heart b { color: #fff; font-size: .86rem; }
.pv-rec { width: 9px; height: 9px; border-radius: 50%; background: #dc2626; animation: pvBlink 1.2s steps(2) infinite; }
@keyframes pvBlink { 50% { opacity: .2; } }
/* proctor */
.pv-proctor { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: .8rem; }
.pv-cam { position: relative; border-radius: 14px; overflow: hidden; display: grid; place-items: center; min-height: 230px;
  background: radial-gradient(60% 70% at 50% 40%, hsl(215 60% 30% / .7), transparent), #070d1a; color: hsl(190 90% 65%); }
.pv-face { width: 62%; max-width: 160px; fill: currentColor; filter: drop-shadow(0 0 6px hsl(190 90% 60% / .6)); animation: pvScan 3.2s ease-in-out infinite; }
@keyframes pvScan { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.pv-cam::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, hsl(190 90% 60% / .18), transparent); animation: pvSweep 2.8s linear infinite; }
@keyframes pvSweep { to { top: 100%; } }
.pv-box { position: absolute; right: 10%; bottom: 12%; width: 26%; height: 30%; border: 2px solid #f59e0b; border-radius: 6px; }
.pv-box em { position: absolute; left: -2px; top: -20px; font-style: normal; font-size: .62rem; font-weight: 800; padding: .1rem .35rem; border-radius: 4px; background: #f59e0b; color: #0b1220; white-space: nowrap; }
.pv-gaze { position: absolute; left: 10px; top: 10px; font-size: .64rem; font-weight: 800; padding: .2rem .45rem; border-radius: 6px; background: rgba(16, 185, 129, .2); color: #6ee7b7; }
.pv-log { display: flex; flex-direction: column; gap: .6rem; }
.pv-strikes { display: flex; align-items: baseline; gap: .3rem; padding: .7rem .85rem; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; color: #cbd5e1; }
.pv-strikes b { font-size: 1.6rem; color: #fbbf24; font-family: var(--site-heading-font); }
.pv-strikes span { color: #64748b; font-weight: 800; }
.pv-log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pv-log li { display: flex; align-items: center; gap: .45rem; padding: .5rem .6rem; border-radius: 10px; font-size: .72rem; color: #cbd5e1; background: rgba(255, 255, 255, .04); }
.pv-log li time { margin-left: auto; color: #64748b; font-variant-numeric: tabular-nums; }
.pv-log li.is-warn i { color: #fbbf24; } .pv-log li.is-ok i { color: #34d399; } .pv-log li i { color: #93c5fd; }
/* grade */
.pv-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; align-items: center; }
.pv-sheet { padding: .8rem; border-radius: 12px; background: #f8fafc; color: #0b1220; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); transform: rotate(-2deg); }
.pv-sheet-head { display: flex; justify-content: space-between; font-size: .64rem; margin-bottom: .45rem; color: #475569; }
.pv-sheet-head b { color: #0b1220; }
.pv-row { display: flex; align-items: center; gap: .32rem; margin-bottom: .3rem; }
.pv-row i { width: 14px; font-style: normal; font-size: .6rem; font-weight: 800; color: #64748b; }
.pv-row span { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #94a3b8; display: grid; place-items: center; font-size: .56rem; font-weight: 800; color: #94a3b8; }
.pv-row span.on { background: #0b1220; border-color: #0b1220; color: #fff; }
.pv-score { position: relative; display: flex; flex-direction: column; align-items: center; gap: .8rem; min-height: 220px; }
.pv-ring {
  width: 116px; height: 116px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #111b30 78%, transparent 80% 100%), conic-gradient(hsl(280 80% 65%) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0);
}
.pv-ring b { font-family: var(--site-heading-font); font-size: 1.6rem; color: #fff; line-height: 1; }
.pv-ring span { font-size: .66rem; color: #94a3b8; }
.pv-meters { width: 100%; display: grid; gap: .45rem; }
.pv-meters > div { display: grid; grid-template-columns: 70px minmax(0, 1fr) 30px; align-items: center; gap: .5rem; font-size: .7rem; color: #cbd5e1; }
.pv-meters i { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pv-meters em { display: block; height: 100%; background: #34d399; border-radius: 6px; }
.pv-meters b { text-align: right; color: #fff; }

/* Figures */
.pf-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.pf-fig {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: 1rem 1.05rem; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pf-fig > i { font-size: 1.1rem; color: var(--site-primary); margin-bottom: .2rem; }
.pf-fig b { font-family: var(--site-heading-font); font-size: 1.7rem; font-weight: 800; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-fig span { font-size: .76rem; color: var(--muted); }
.pf-fig.is-built { background: linear-gradient(160deg, #0b1220, #16213a); border-color: transparent; }
.pf-fig.is-built > i { color: var(--site-accent, #fbbf24); }
.pf-fig.is-built b { color: #fff; }
.pf-fig.is-built span { color: #94a3b8; }

/* Trust */
.pf-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.pf-trust-title { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: .4rem; }
.pf-trust-title i { color: var(--site-primary); font-size: 1rem; }
.pf-trust-chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); transition: border-color .2s, color .2s, transform .2s;
}
.pf-trust-chip i { color: var(--site-primary); }
.pf-trust-chip:hover { border-color: var(--site-primary); color: var(--site-primary); transform: translateY(-1px); }

/* CTA */
.pf-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 1.8rem; border-radius: 26px;
  background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--site-accent, #fbbf24) 30%, transparent), transparent 60%),
              linear-gradient(135deg, var(--site-primary), color-mix(in srgb, var(--site-primary) 55%, #0b1220));
  color: #fff; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--site-primary) 80%, transparent);
}
.pf-cta-copy h3 { margin: 0 0 .3rem; font-family: var(--site-heading-font); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; color: #fff; }
.pf-cta-copy p { margin: 0; font-size: .9rem; opacity: .85; }
.pf-cta-actions { display: flex; flex-wrap: wrap; gap: .55rem; flex-shrink: 0; }
.pf-cta-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.15rem; border-radius: 999px; font-size: .86rem; font-weight: 800; text-decoration: none; transition: transform .2s, filter .2s, background .2s; }
.pf-cta-btn.is-solid { background: var(--site-accent, #fbbf24); color: #0b1220; }
.pf-cta-btn.is-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.pf-cta-btn.is-link { color: #fff; padding-left: .5rem; padding-right: .5rem; }
.pf-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.05); color: inherit; }
.pf-cta-btn.is-ghost:hover, .pf-cta-btn.is-link:hover { color: #fff; background: rgba(255, 255, 255, .2); }

/* Tablets */
@media (max-width: 991.98px) {
  .pf-panel { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.5rem .6rem 1.2rem; }
  .pf-panel-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .pf-progress { display: none; }
  .pf-cta { flex-direction: column; align-items: flex-start; }
}
/* Phones */
@media (max-width: 575.98px) {
  .pf-tour { padding: .6rem; border-radius: 22px; }
  .pf-tabs { display: flex; overflow-x: auto; scrollbar-width: none; gap: .35rem; }
  .pf-tabs::-webkit-scrollbar { display: none; }
  .pf-tab { flex: 0 0 auto; padding: .65rem .85rem; font-size: .82rem; }
  .pf-panel { padding: 1.2rem .3rem 1rem; }
  .pf-panel-copy > p { font-size: .88rem; }
  .pf-points li { font-size: .82rem; }
  .pv { min-height: 0; padding: .7rem; }
  .pv-proctor, .pv-grade { grid-template-columns: 1fr; }
  .pv-cam { min-height: 190px; }
  .pv-sheet { transform: none; }
  .pv-chip { font-size: .66rem; padding: .35rem .6rem; }
  .pv-chip-a { right: 6px; bottom: 6px; }
  .pf-pillar { padding: 1.2rem 1.1rem; }
  .pf-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .pf-fig:last-child:nth-child(odd) { grid-column: 1 / -1; }      /* no lonely tile in the last row */
  .pf-fig { padding: .85rem .9rem; }
  .pf-fig b { font-size: 1.4rem; }
  .pf-trust { justify-content: flex-start; }
  .pf-trust-title { width: 100%; }
  .pf-cta { padding: 1.3rem 1.2rem; border-radius: 20px; }
  .pf-cta-actions { width: 100%; }
  .pf-cta-btn { white-space: nowrap; justify-content: center; }
  .pf-cta-btn.is-solid, .pf-cta-btn.is-ghost { flex: 1 1 0; }
  .pf-cta-btn.is-link { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-pillar, .pf-panel, .pf-points li { animation: none !important; }
  .pv-chip, .pv-heart > i, .pv-face, .pv-cam::after, .pv-rec { animation: none !important; }
}

/* ---------------------------------------------------------------------------------------------
   4k. FOOTER: aurora backdrop, hub row (search, live clock, counters), accordion columns,
       live "latest on campus" column, copyable email, back-to-top progress ring.
       Colours come from the footer theme variables (--ft-*) so every Footer Studio style works.
   --------------------------------------------------------------------------------------------- */
#dynamicFooterInner { position: relative; isolation: isolate; }
.fx-aurora {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(45% 55% at 12% 8%, color-mix(in srgb, var(--site-primary) 28%, transparent), transparent 70%),
    radial-gradient(35% 45% at 88% 18%, color-mix(in srgb, var(--ft-accent, #fbbf24) 18%, transparent), transparent 70%),
    radial-gradient(40% 50% at 60% 100%, color-mix(in srgb, var(--site-primary) 16%, transparent), transparent 70%);
  opacity: .9;
}
.fx-aurora::after {   /* fine grid texture */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--ft-border) 1px, transparent 1px), linear-gradient(90deg, var(--ft-border) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%);
}
.footer-clean_light .fx-aurora { opacity: .5; }

/* Hub row */
.fx-hub { display: grid; grid-template-columns: minmax(0, 1.25fr) auto; gap: .8rem; align-items: stretch; padding: 1.6rem 0 1.4rem; border-bottom: 1px solid var(--ft-border); }
.fx-search {
  display: flex; align-items: center; gap: .6rem; height: 54px; padding: 0 .4rem 0 1rem; border-radius: 16px;
  background: var(--ft-chip); border: 1px solid var(--ft-chip-border); transition: border-color .2s, box-shadow .2s, background .2s;
}
.fx-search:focus-within { border-color: var(--ft-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ft-accent) 22%, transparent); }
.fx-search > i { color: var(--ft-accent); font-size: 1.05rem; }
.fx-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ft-heading); font-size: .92rem; }
.fx-search input::placeholder { color: var(--ft-muted); }
.fx-search button {
  width: 42px; height: 42px; border-radius: 12px; border: 0; display: grid; place-items: center; flex-shrink: 0;
  background: var(--ft-accent); color: #0b1220; font-size: 1.05rem; transition: transform .2s, filter .2s;
}
.fx-search button:hover { transform: translateX(2px); filter: brightness(1.08); }
.fx-clock {
  display: flex; align-items: center; gap: .75rem; padding: 0 1.1rem; border-radius: 16px; min-height: 54px;
  background: var(--ft-chip); border: 1px solid var(--ft-chip-border);
}
.fx-clock-dot { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); flex-shrink: 0; }
.fx-clock-dot.is-synced { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: fxPulse 2s ease-in-out infinite; }
@keyframes fxPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); } 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, .05); } }
.fx-clock-txt { display: flex; flex-direction: column; line-height: 1.15; }
.fx-clock-txt b { font-family: var(--site-heading-font); font-size: 1.05rem; color: var(--ft-heading); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fx-clock-txt small { font-size: .7rem; color: var(--ft-muted); }
.fx-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.fx-stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: .75rem .95rem;
  border-radius: 16px; background: var(--ft-chip); border: 1px solid var(--ft-chip-border); text-decoration: none; transition: transform .25s var(--ease), border-color .25s;
}
.fx-stat i { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem;
  color: var(--ft-accent); background: color-mix(in srgb, var(--ft-accent) 14%, transparent); }
.fx-stat b { font-family: var(--site-heading-font); font-size: 1.3rem; line-height: 1.05; color: var(--ft-heading); font-variant-numeric: tabular-nums; }
.fx-stat span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ft-muted); }
.fx-stat:hover { transform: translateY(-2px); border-color: var(--ft-accent); }

/* Columns as accordions */
.fx-col { min-width: 0; }
.fx-col > summary { list-style: none; cursor: default; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fx-col > summary::-webkit-details-marker { display: none; }
.fx-col-caret { display: none; transition: transform .25s var(--ease); color: var(--ft-muted); }
.fx-count { margin-left: auto; font-style: normal; font-size: .66rem; font-weight: 800; padding: .05rem .4rem; border-radius: 999px; background: var(--ft-chip); border: 1px solid var(--ft-chip-border); color: var(--ft-muted); }
.footer-nav-link.fx-more { color: var(--ft-accent); font-weight: 700; }

/* Live column */
.fx-live { display: flex; flex-direction: column; gap: .35rem; }
.fx-live-h { display: flex; align-items: center; gap: .35rem; margin: .35rem 0 .15rem; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ft-muted); }
.fx-live-h:first-child { margin-top: 0; }
.fx-live-h i { color: var(--ft-accent); }
.fx-live-item {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .4rem; border-radius: 12px; border: 1px solid transparent; background: transparent;
  text-align: left; text-decoration: none; color: inherit; transition: background .2s, border-color .2s;
}
.fx-live-item:hover { background: var(--ft-chip); border-color: var(--ft-chip-border); }
.fx-live-thumb { position: relative; width: 56px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--ft-chip); }
.fx-live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fx-live-thumb i { position: absolute; color: #fff; font-size: .95rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.fx-live-av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; font-size: .72rem; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, var(--site-primary), color-mix(in srgb, var(--site-primary) 55%, #0b1220));
}
.fx-live-av img { width: 100%; height: 100%; object-fit: cover; }
.fx-live-txt { display: flex; flex-direction: column; min-width: 0; }
.fx-live-txt b { font-size: .8rem; font-weight: 700; color: var(--ft-heading); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-live-txt small { font-size: .7rem; color: var(--ft-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-live-txt small .bi-star-fill { color: #f59e0b; }
.fx-live-sk { height: 44px; border-radius: 12px; background: linear-gradient(90deg, var(--ft-chip), var(--ft-chip-border), var(--ft-chip)); background-size: 200% 100%; animation: skShine 1.2s linear infinite; }
.fx-live-empty { font-size: .8rem; color: var(--ft-muted); }

/* Contact extras */
.fx-map { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .74rem; font-weight: 700; color: var(--ft-accent) !important; text-decoration: none; }
.fx-map:hover { text-decoration: underline; }
.footer-contact-item > span:last-child { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.fx-email { flex-direction: row !important; align-items: center !important; gap: .4rem; min-width: 0; }
.fx-email a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-copy {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; cursor: pointer;
  border: 1px solid var(--ft-chip-border); background: var(--ft-chip); color: var(--ft-muted); transition: color .2s, border-color .2s;
}
.fx-copy:hover { color: var(--ft-heading); border-color: var(--ft-accent); }
.fx-contact-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; padding: .55rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 800; text-decoration: none; background: var(--ft-accent); color: #0b1220 !important; }

/* Back to top with progress ring */
.fx-top { position: relative; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.fx-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-top circle { fill: none; stroke: var(--ft-chip-border); stroke-width: 2.5; }
.fx-top .fx-top-ring { stroke: var(--ft-accent); stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; transition: stroke-dashoffset .15s linear; }
.fx-top i { position: relative; transition: transform .2s; }
.fx-top:hover i { transform: translateY(-2px); }
.fx-copyright { color: var(--ft-muted); }

/* Wide screens: every enabled column in one row (up to five); more than five wrap automatically */
@media (min-width: 1200px) {
  .site-footer .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr); gap: 2.5rem 3rem; }
  .site-footer .footer-cols.fx-cols-fixed { grid-template-columns: repeat(var(--fx-cols), minmax(0, 1fr)); gap: 2rem 1.6rem; }
}
/* Tablets */
@media (max-width: 991.98px) {
  .fx-hub { grid-template-columns: 1fr; }
  .fx-clock { justify-content: flex-start; }
}
/* Phones: accordion columns */
@media (max-width: 767.98px) {
  .fx-hub { padding: 1.2rem 0 1rem; gap: .6rem; }
  .fx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-stat { padding: .6rem .7rem; column-gap: .55rem; }
  .fx-stat i { width: 32px; height: 32px; font-size: .9rem; }
  .fx-stat b { font-size: 1.1rem; }
  .fx-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-cols { display: flex !important; flex-direction: column; gap: 0 !important; }
  .fx-col { border-bottom: 1px solid var(--ft-border); }
  .fx-col > summary { cursor: pointer; padding: .95rem 0; margin: 0 !important; }
  .fx-col > summary::after { display: none; }
  .fx-col-caret { display: inline-block; }
  .fx-col[open] .fx-col-caret { transform: rotate(180deg); }
  .fx-col[open] .fx-col-body { padding-bottom: 1rem; animation: cfDrop .25s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-clock-dot.is-synced, .fx-live-sk { animation: none; }
}

/* ---------------------------------------------------------------------------------------------
   4m. HEADER SEARCH SUGGESTIONS (static/site_search.js)
   --------------------------------------------------------------------------------------------- */
.ss-host { position: relative; }
.ss-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 1095; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  padding: .4rem; border-radius: 18px; background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -20px rgba(6, 17, 38, .45), 0 8px 20px -10px rgba(6, 17, 38, .25); text-align: left;
}
.ss-panel[hidden] { display: none; }
.ss-group { padding: .55rem .6rem .25rem; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ss-opt { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 12px; cursor: pointer; min-width: 0; }
.ss-opt.active { background: color-mix(in srgb, var(--site-primary) 9%, #fff); }
.ss-ic { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; font-size: 1rem; color: var(--site-primary); background: color-mix(in srgb, var(--site-primary) 9%, #fff); }
.ss-ic img { width: 100%; height: 100%; object-fit: cover; }
.ss-lecture { color: #dc2626; background: #fef2f2; } .ss-instructor { color: #7c3aed; background: #f5f3ff; }
.ss-program { color: #0369a1; background: #f0f9ff; } .ss-department { color: #b45309; background: #fffbeb; }
.ss-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ss-txt b { font-size: .86rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-txt b em { font-style: normal; font-size: .68rem; font-weight: 800; color: var(--site-primary); margin-left: .25rem; }
.ss-txt small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-txt mark { background: color-mix(in srgb, var(--site-accent, #fbbf24) 40%, transparent); color: inherit; padding: 0; border-radius: 2px; }
.ss-enter { color: var(--muted); opacity: 0; font-size: .85rem; }
.ss-opt.active .ss-enter { opacity: 1; }
.ss-foot { margin-top: .2rem; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; font-size: .84rem; color: var(--ink-2); }
.ss-foot > i { color: var(--site-primary); }
.ss-ai > i { color: #7c3aed; }
.ss-dym { font-size: .86rem; color: var(--ink-2); } .ss-dym > i { color: #f59e0b; }
.ss-note { display: flex; align-items: center; gap: .4rem; padding: .45rem .6rem; font-size: .74rem; color: #7c3aed; font-weight: 700; }
.ss-status, .ss-empty { display: flex; align-items: center; gap: .5rem; padding: .7rem .6rem; font-size: .84rem; color: var(--muted); }
.ss-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--site-primary) 25%, transparent); border-top-color: var(--site-primary); animation: cfSpin .7s linear infinite; }
@media (max-width: 767.98px) {
  .ss-panel { max-height: 58vh; border-radius: 16px; }
  .ss-txt b { font-size: .84rem; }
}

/* ---------------------------------------------------------------------------------------------
   4l. MEDIA PLAYER (static/media_player.js): YouTube / Vimeo / Drive embeds and the "can't play" message
   --------------------------------------------------------------------------------------------- */
.mp-box { position: relative; background: #000; }
.mp-box > video[hidden] { display: none !important; }
.mp-box > .mp-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.udemy-theater-screen.mp-box, .li-media.mp-box { min-height: 0; }
.udemy-theater-screen.mp-box:has(> .mp-embed), .udemy-theater-screen.mp-box:has(> .mp-msg),
.li-media.mp-box:has(> .mp-embed), .li-media.mp-box:has(> .mp-msg) { aspect-ratio: 16 / 9; }
.mp-msg {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  padding: 1.2rem; text-align: center; color: #e2e8f0; background: radial-gradient(70% 70% at 50% 40%, #1e293b, #0b1220);
}
.mp-msg > .bi { font-size: 2.2rem; color: #94a3b8; }
.mp-msg b { font-size: 1rem; color: #fff; }
.mp-msg span { max-width: 44ch; font-size: .84rem; color: #94a3b8; line-height: 1.5; }
.mp-msg-link {
  margin-top: .35rem; padding: .45rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none;
  color: #0b1220; background: var(--site-accent, #fbbf24);
}
.mp-msg-link:hover { filter: brightness(1.08); color: #0b1220; }

/* ---------------------------------------------------------------------------------------------
   4g. INSTRUCTORS: finder, profile cards (photo or initials, rating, stats), paged stage with
       side arrows + a floating pager that stays at the bottom of the screen while the list is visible
   --------------------------------------------------------------------------------------------- */
.if-selects { display: flex; gap: .5rem; flex-shrink: 0; }
.if-selects select {
  height: 50px; min-width: 0; max-width: 240px; padding: 0 2rem 0 .85rem; border-radius: 14px; border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11 3 6h10z'/%3E%3C/svg%3E") no-repeat right .75rem center;
  -webkit-appearance: none; appearance: none; font-size: .86rem; font-weight: 700; color: var(--ink); cursor: pointer;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.if-selects select:focus { outline: 0; border-color: var(--site-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-primary) 14%, transparent); }
.inst-finder .cf-status:has(.cf-chips:empty) { margin-top: .5rem; }

.inst-stage { position: relative; outline: none; }
.inst-stage > .row { transition: opacity .2s; }
.inst-stage > .row.slide-next > [class*="col"] { animation: ipInNext .45s var(--ease) both; }
.inst-stage > .row.slide-prev > [class*="col"] { animation: ipInPrev .45s var(--ease) both; }
.inst-stage > .row > [class*="col"]:nth-child(2) { animation-delay: 40ms; }
.inst-stage > .row > [class*="col"]:nth-child(3) { animation-delay: 80ms; }
.inst-stage > .row > [class*="col"]:nth-child(4) { animation-delay: 120ms; }
@keyframes ipInNext { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes ipInPrev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* Floating side arrows (desktop) */
.inst-arrow {
  position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; border-radius: 50%; display: none; place-items: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.15rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-md);
  transform: translateY(-50%); transition: transform .2s var(--ease), background .2s, color .2s, opacity .2s, box-shadow .2s;
}
.inst-arrow-prev { left: -24px; }
.inst-arrow-next { right: -24px; }
.inst-stage.has-pages .inst-arrow { display: grid; }
.inst-arrow:hover:not(:disabled) { background: var(--site-primary); color: #fff; border-color: var(--site-primary); transform: translateY(-50%) scale(1.06); box-shadow: var(--shadow-lg); }
.inst-arrow:disabled { opacity: 0; pointer-events: none; }

/* Floating pager: sticky to the bottom of the screen while the instructor list is in view */
.inst-float-pager {
  position: sticky; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: flex; justify-content: center; margin-top: 1.4rem; pointer-events: none;
}
.inst-float-pager:empty { display: none; }
.ifp {
  pointer-events: auto; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem; border-radius: 999px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 18px 40px -14px rgba(8, 24, 56, .35), 0 4px 12px -6px rgba(8, 24, 56, .2);
  transition: transform .3s var(--ease), opacity .3s;
}
.inst-float-pager:not(.in-view) .ifp { transform: translateY(8px); opacity: .0; }
.ifp-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1rem;
  background: var(--site-primary); color: #fff; transition: transform .15s, filter .15s, opacity .15s;
}
.ifp-btn:hover:not(:disabled) { transform: scale(1.06); filter: brightness(1.08); }
.ifp-btn:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.ifp-pages { display: flex; align-items: center; gap: .35rem; padding: 0 .25rem; }
.ifp-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: #cbd5e1; transition: width .3s var(--ease), background .2s;
}
.ifp-dot:hover { background: #94a3b8; }
.ifp-dot.active { width: 26px; background: var(--site-primary); }
.ifp-num {
  min-width: 32px; height: 32px; padding: 0 .4rem; border-radius: 999px; border: 0; background: transparent;
  font-size: .8rem; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.ifp-num:hover { background: #eef2f8; }
.ifp-num.active { background: color-mix(in srgb, var(--site-primary) 12%, #fff); color: var(--site-primary); }
.ifp-gap { color: var(--muted); font-size: .8rem; }
.ifp-info { font-size: .78rem; color: var(--muted); white-space: nowrap; padding: 0 .3rem; font-variant-numeric: tabular-nums; }
.ifp-info b { color: var(--ink); }

/* Profile card */
.ip-card {
  position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.ip-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--site-primary) 25%, var(--line)); }
.ip-cover {
  align-self: stretch; height: 78px;
  background:
    radial-gradient(120% 140% at 0% 0%, hsl(var(--ip-hue) 70% 72% / .55), transparent 60%),
    linear-gradient(135deg, var(--site-primary), color-mix(in srgb, var(--site-primary) 55%, #0b1220));
}
.ip-avatar {
  position: relative; width: 92px; height: 92px; margin-top: -46px; border-radius: 50%; padding: 4px; background: #fff;
  box-shadow: 0 10px 24px -10px rgba(8, 24, 56, .45);
}
.ip-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ip-avatar .ip-initials {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-family: var(--site-heading-font); font-size: 1.75rem; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(140deg, hsl(var(--ip-hue) 62% 42%), hsl(calc(var(--ip-hue) + 40) 58% 30%));
}
.ip-live {
  position: absolute; right: 2px; bottom: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; color: #fff; background: #dc2626; border: 3px solid #fff;
}
.ip-body { flex: 1 1 auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .7rem 1.1rem 1.1rem; min-width: 0; }
.ip-role {
  font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px;
  color: color-mix(in srgb, var(--site-primary) 85%, #000); background: color-mix(in srgb, var(--site-primary) 9%, #fff);
}
.ip-name {
  margin: .1rem 0 0; max-width: 100%; font-family: var(--site-heading-font); font-size: 1.08rem; font-weight: 800; line-height: 1.25; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ip-sub { max-width: 100%; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-rating { display: flex; align-items: center; gap: .35rem; min-height: 22px; font-size: .8rem; }
.ip-rating b { color: var(--ink); font-size: .9rem; }
.ip-rating .udemy-rating-stars { color: #f59e0b; font-size: .78rem; letter-spacing: 1px; }
.ip-rating > span:last-child:not(.ip-new) { color: var(--muted); }
.ip-new { font-size: .74rem; font-weight: 600; color: var(--muted); }
.ip-new .bi { color: var(--site-accent, #f59e0b); }
.ip-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: .35rem 0 .1rem; padding: .55rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ip-stats > div { display: flex; flex-direction: column-reverse; gap: .1rem; }
.ip-stats > div + div { border-left: 1px solid var(--line); }
.ip-stats dt { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ip-stats dd { margin: 0; font-family: var(--site-heading-font); font-size: 1.05rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ip-courses { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.ip-course {
  border: 1px solid var(--line); background: var(--canvas); border-radius: 8px; padding: .15rem .5rem;
  font-size: .7rem; font-weight: 800; color: var(--ink-2); transition: all .15s;
}
.ip-course:hover { border-color: var(--site-primary); color: var(--site-primary); background: #fff; }
.ip-more { font-size: .7rem; font-weight: 700; color: var(--muted); align-self: center; }
.ip-cta {
  margin-top: auto; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .8rem;
  border-radius: 999px; font-size: .8rem; font-weight: 800; text-decoration: none; color: var(--site-primary);
  background: color-mix(in srgb, var(--site-primary) 9%, #fff); transition: background .2s, color .2s;
}
.ip-card:hover .ip-cta, .ip-cta:focus-visible { background: var(--site-primary); color: #fff; }

/* Arrows hug the grid instead of sitting outside it where the container is narrow */
@media (max-width: 1439.98px) { .inst-arrow-prev { left: -14px; } .inst-arrow-next { right: -14px; } }
@media (max-width: 991.98px) {
  .inst-stage.has-pages .inst-arrow { display: none; }     /* tablets & phones: swipe + floating pager */
  .if-selects select { max-width: 200px; }
}
/* Phones: search on its own row, selects side by side, compact horizontal profile rows */
@media (max-width: 767.98px) {
  .inst-finder .cf-row { flex-wrap: wrap; }
  .inst-finder .cf-search { flex-basis: 100%; height: 46px; }
  .if-selects { width: 100%; }
  .if-selects select { flex: 1 1 0; max-width: none; height: 44px; font-size: .84rem; }
  .inst-float-pager { bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); }
  .ifp-info { display: none; }
  #instructorsGridContainer { --bs-gutter-y: .7rem; }
  #instructorsGridContainer > [class*="col"] { flex: 0 0 100%; max-width: 100%; }
  .ip-card { flex-direction: row; align-items: stretch; text-align: left; border-radius: 18px; }
  .ip-card:hover { transform: none; }
  .ip-cover { position: absolute; inset: 0 auto 0 0; width: 6px; height: auto; }
  .ip-avatar { width: 68px; height: 68px; margin: .9rem 0 .9rem 1.1rem; flex-shrink: 0; padding: 3px; }
  .ip-avatar .ip-initials { font-size: 1.25rem; }
  .ip-live { width: 22px; height: 22px; border-width: 2px; font-size: .62rem; }
  .ip-body { align-items: flex-start; padding: .8rem .9rem .85rem; gap: .2rem; }
  .ip-name { font-size: .98rem; }
  .ip-stats { grid-template-columns: repeat(3, auto); justify-content: start; gap: .9rem; margin: .25rem 0; padding: 0; border: 0; }
  .ip-stats > div + div { border-left: 0; }
  .ip-stats dd { font-size: .92rem; }
  .ip-courses { justify-content: flex-start; }
  .ip-cta { width: auto; margin-top: .35rem; padding: .4rem .8rem; font-size: .76rem; }
}
@media (max-width: 379.98px) {
  .ip-avatar { width: 56px; height: 56px; margin-left: .85rem; }
  .ip-courses { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .inst-stage > .row > [class*="col"] { animation: none !important; }
  .ip-card, .ifp, .inst-arrow, .ifp-dot { transition: none !important; }
}
@media (prefers-reduced-motion: reduce) { .cf-spinner { animation-duration: 2s; } .course-finder.filters-open .cf-filters { animation: none; } }

.skeleton-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 0 1rem; overflow: hidden; height: 100%; }
.skeleton-card .sk { background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%); background-size: 200% 100%; animation: skShine 1.2s linear infinite; border-radius: 8px; }
.skeleton-card .sk-media { height: 150px; border-radius: 0; margin-bottom: 1rem; }
.skeleton-card .sk-line { height: 12px; margin: .55rem 1rem; }
@keyframes skShine { to { background-position: -200% 0; } }

.inst-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.inst-avatar-initial { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.35rem; background: var(--site-gradient-primary); }
.dept-card h6 { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.min-w-0 { min-width: 0 !important; }

/* ---------------------------------------------------------------------------------------------
   4c. MEGA MENU (desktop / laptop)
   --------------------------------------------------------------------------------------------- */
@media (max-width: 991.98px) { #headerExploreWrapper { display: none !important; } }
/* Panel shell: opens on hover, keyboard focus or click (.is-open); .is-dismissed hides it after Esc / a choice */
.explore-mega-panel {
  width: min(1120px, calc(100vw - 48px)) !important; max-width: none !important; padding: 0 !important;
  border-radius: 24px !important; overflow: hidden; left: 0;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  box-shadow: 0 40px 90px -20px rgba(6, 17, 38, .45), 0 12px 30px -12px rgba(6, 17, 38, .25) !important;
  transform-origin: 12% 0;
}
.explore-wrapper.is-open .explore-mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.explore-wrapper .explore-mega-panel.is-dismissed { opacity: 0 !important; visibility: hidden !important; transform: translateY(8px) !important; }
.explore-wrapper.is-open .btn-explore-trigger,
.explore-wrapper:hover .btn-explore-trigger { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); }
.explore-wrapper .btn-explore-trigger .bi-chevron-down { transition: transform .25s var(--ease); }
.explore-wrapper.is-open .btn-explore-trigger .bi-chevron-down { transform: rotate(180deg); }
.explore-wrapper::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; } /* hover bridge */

.mega { color: var(--ink); display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 140px)); }
.mega-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem .15rem;
}
.mega-label span { font-size: .64rem; letter-spacing: 0; padding: .05rem .4rem; border-radius: 999px; background: #eef2f8; color: var(--ink-2); }
.mega-empty { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); padding: .8rem .5rem; }
.mega-empty-sm { font-size: .74rem; color: var(--muted); padding: .2rem .5rem .4rem 1.9rem; }

/* Top bar: search + quick links */
.mega-top {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem;
  background: linear-gradient(180deg, #fbfcfe, #f4f7fc); border-bottom: 1px solid var(--line);
}
.mega-search {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .6rem; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 .75rem; height: 46px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .2s, box-shadow .2s;
}
.mega-search:focus-within { border-color: color-mix(in srgb, var(--site-primary) 55%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-primary) 14%, transparent); }
.mega-search > i { color: var(--site-primary); font-size: 1rem; }
.mega-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .9rem; color: var(--ink); }
.mega-search input::-webkit-search-cancel-button { cursor: pointer; }
.mega-search kbd { font: 700 .62rem/1 var(--site-body-font, inherit); color: var(--muted); background: #f1f5f9; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .25rem .4rem; }
.mega-quick { display: flex; gap: .35rem; flex-shrink: 0; }
.mega-quick a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 999px; text-decoration: none;
  font-size: .78rem; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); transition: all .18s;
}
.mega-quick a i { color: var(--site-primary); }
.mega-quick a:hover, .mega-quick a:focus-visible { color: #fff; background: var(--site-primary); border-color: var(--site-primary); outline: none; }
.mega-quick a:hover i, .mega-quick a:focus-visible i { color: #fff; }

/* Body: faculty rail | detail | aside */
.mega-body { display: grid; grid-template-columns: 300px minmax(0, 1fr) 290px; min-height: 0; flex: 1 1 auto; }
.mega-rail, .mega-detail, .mega-aside { min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 1rem 1.05rem; }
.mega-rail { background: linear-gradient(180deg, #f6f8fc, #eff3fa); border-right: 1px solid var(--line); }
.mega-aside { background: #fbfcfe; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: .55rem; }

.mega-fac-list { display: flex; flex-direction: column; gap: .2rem; }
.mega-fac {
  position: relative; display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  border: 1px solid transparent; background: transparent; border-radius: 14px; padding: .55rem .6rem; color: var(--ink-2);
  transition: background .18s, border-color .18s, box-shadow .18s, color .18s;
}
.mega-fac::before {   /* accent bar on the active faculty */
  content: ""; position: absolute; left: -1.05rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--site-primary); transform: scaleY(0); transition: transform .2s var(--ease);
}
.mega-fac .bi-chevron-right { margin-left: auto; flex-shrink: 0; opacity: 0; transform: translateX(-4px); transition: all .18s; color: var(--site-primary); }
.mega-fac:hover, .mega-fac.active, .mega-fac:focus-visible { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); color: var(--site-primary); outline: none; }
.mega-fac.active::before { transform: scaleY(1); }
.mega-fac.active .bi-chevron-right, .mega-fac:hover .bi-chevron-right { opacity: 1; transform: none; }
.mega-fac-ic, .mega-detail-ic, .mega-res-ic {
  flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(140deg, var(--site-primary), color-mix(in srgb, var(--site-primary) 55%, var(--site-accent, #fbbf24)));
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--site-primary) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.mega-fac-ic { width: 40px; height: 40px; border-radius: 12px; font-size: .62rem; }
.mega-fac-txt { display: flex; flex-direction: column; min-width: 0; }
.mega-fac-txt b {   /* full names: wrap to two lines instead of being cut */
  font-size: .84rem; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mega-fac-txt small { margin-top: .15rem; font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Detail column */
.mega-detail-head { display: flex; align-items: flex-start; gap: .85rem; padding-bottom: .85rem; margin-bottom: .85rem; border-bottom: 1px solid var(--line); }
.mega-detail-ic { width: 50px; height: 50px; border-radius: 15px; font-size: .74rem; }
.mega-detail-titles { flex: 1 1 auto; min-width: 0; }
.mega-detail-title { font-family: var(--site-heading-font); font-weight: 800; font-size: 1.15rem; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.mega-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.mega-chips span {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; color: var(--ink-2);
  background: #f1f5fb; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .55rem;
}
.mega-chips i { color: var(--site-primary); }
.mega-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 800; text-decoration: none;
  color: #fff; background: var(--site-primary); padding: .5rem .9rem; border-radius: 999px;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--site-primary) 80%, transparent); transition: transform .18s, filter .18s;
}
.mega-cta:hover, .mega-cta:focus-visible { color: #fff; transform: translateY(-1px); filter: brightness(1.08); }
.mega-cta i { transition: transform .18s; }
.mega-cta:hover i { transform: translateX(3px); }
.mega-detail-desc { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: -.25rem 0 .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.mega-depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; align-items: start; }
.mega-dept { border: 1px solid var(--line); border-radius: 16px; padding: .55rem; background: #fff; transition: border-color .18s, box-shadow .18s; }
.mega-dept:hover { border-color: color-mix(in srgb, var(--site-primary) 25%, var(--line)); box-shadow: var(--shadow-sm); }
.mega-dept-head {
  display: flex; align-items: center; gap: .5rem; padding: .35rem .4rem .5rem; margin-bottom: .2rem; border-bottom: 1px dashed var(--line);
  text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 800; line-height: 1.3;
}
.mega-dept-head i { color: var(--site-primary); flex-shrink: 0; }
.mega-dept-head span { flex: 1 1 auto; min-width: 0; }
.mega-dept-head small { flex-shrink: 0; font-size: .64rem; font-weight: 700; color: var(--muted); }
a.mega-dept-head:hover, a.mega-dept-head:focus-visible { color: var(--site-primary); outline: none; }
.mega-prog {   /* icon | name, with the degree badge under the name */
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .45rem; row-gap: .2rem; align-items: start;
  padding: .4rem .45rem; border-radius: 10px;
  text-decoration: none; color: var(--ink-2); font-size: .8rem; font-weight: 600; line-height: 1.3; transition: background .15s, color .15s;
}
.mega-prog > i { color: var(--site-primary); opacity: .75; margin-top: .1rem; }
.mega-prog-name { min-width: 0; }
.mega-prog-badge {
  grid-column: 2; justify-self: start; font-size: .62rem; font-weight: 800; letter-spacing: .02em;
  color: color-mix(in srgb, var(--site-primary) 85%, #000); background: color-mix(in srgb, var(--site-primary) 9%, #fff);
  border-radius: 6px; padding: .08rem .4rem;
}
.mega-prog:hover, .mega-prog:focus-visible { background: #f1f5fb; color: var(--site-primary); outline: none; }

/* Search results */
.mega-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.1rem; align-items: start; }
.mega-res-group { min-width: 0; }
.mega-res {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; border: 1px solid transparent; background: transparent;
  padding: .45rem .5rem; border-radius: 12px; text-decoration: none; color: var(--ink-2); transition: all .15s;
}
.mega-res-ic { width: 32px; height: 32px; border-radius: 10px; font-size: .58rem; }
.mega-res-ic i { font-size: .9rem; }
.mega-res > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mega-res b { font-size: .8rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.mega-res small { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-res:hover, .mega-res:focus-visible { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); outline: none; }
.mega-res:hover b, .mega-res:focus-visible b { color: var(--site-primary); }
.mega-empty-search { flex-direction: column; justify-content: center; text-align: center; padding: 2.5rem 1rem; gap: .35rem; }
.mega-empty-search i { font-size: 1.6rem; color: var(--site-primary); opacity: .6; }
.mega-empty-search b { color: var(--ink); font-size: .9rem; }

/* Aside: featured courses, lecture feed, sign-in */
.mega-course-list { display: flex; flex-direction: column; gap: .45rem; }
.mega-course {
  display: flex; gap: .65rem; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff;
  border-radius: 14px; padding: .45rem; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.mega-course:hover, .mega-course:focus-visible { border-color: color-mix(in srgb, var(--site-primary) 45%, var(--line)); box-shadow: var(--shadow-md); transform: translateY(-1px); outline: none; }
.mega-course-thumb {
  width: 58px; height: 46px; border-radius: 10px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center;
  background: var(--site-gradient-navbar, #0f172a); color: #fff;
}
.mega-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega-course-txt { display: flex; flex-direction: column; min-width: 0; }
.mega-course-code { font-size: .64rem; font-weight: 800; letter-spacing: .03em; color: var(--site-primary); }
.mega-course-title { font-size: .8rem; font-weight: 700; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-course-meta { font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.mega-promo {
  position: relative; overflow: hidden; display: flex; gap: .65rem; align-items: center; margin-top: auto; padding: .8rem; border-radius: 16px;
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--site-primary), color-mix(in srgb, var(--site-primary) 60%, #0b1220));
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--site-primary) 80%, transparent);
}
.mega-promo::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.mega-promo-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-size: 1.1rem; flex-shrink: 0; }
.mega-promo b { display: block; font-size: .84rem; }
.mega-promo small { display: block; font-size: .7rem; opacity: .85; line-height: 1.3; }
.mega-promo > .bi-arrow-up-right { margin-left: auto; opacity: .8; transition: transform .18s; }
.mega-promo:hover { color: #fff; filter: brightness(1.08); }
.mega-promo:hover > .bi-arrow-up-right { transform: translate(2px, -2px); }
.mega-auth { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.mega-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .6rem; border-radius: 999px;
  font-size: .8rem; font-weight: 800; text-decoration: none; transition: all .18s; white-space: nowrap;
}
.mega-btn-ghost { color: var(--site-primary); border: 1px solid color-mix(in srgb, var(--site-primary) 35%, #fff); background: #fff; }
.mega-btn-ghost:hover { background: color-mix(in srgb, var(--site-primary) 8%, #fff); color: var(--site-primary); }
.mega-btn-solid { color: #0b1220; background: var(--site-accent, #fbbf24); border: 1px solid transparent; box-shadow: 0 8px 18px -10px var(--site-accent, #fbbf24); }
.mega-btn-solid:hover { color: #0b1220; filter: brightness(1.06); transform: translateY(-1px); }
.mega-auth .mega-btn:only-child { grid-column: 1 / -1; }

/* Narrower laptops */
@media (max-width: 1279.98px) {
  .mega-body { grid-template-columns: 260px minmax(0, 1fr) 250px; }
  .mega-quick a span, .mega-quick a { font-size: .74rem; padding: .45rem .6rem; }
}
@media (max-width: 1199.98px) {
  .mega-quick { display: none; }
  .mega-body { grid-template-columns: 285px minmax(0, 1fr); }
  .mega-fac-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mega-aside { display: none; }
  .mega-depts, .mega-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .explore-mega-panel, .mega-fac, .mega-course, .mega-cta, .mega-quick a { transition: none !important; }
}

/* ---------------------------------------------------------------------------------------------
   4d. COMPACT MOBILE SCALE - small text, fitted images, 100% width on any device
   --------------------------------------------------------------------------------------------- */
img, video { max-width: 100%; height: auto; }
@media (max-width: 575.98px) {
  html { font-size: 14px; }                                   /* all rem-based sizes shrink together */
  .section-heading { font-size: 1.32rem !important; }
  .section-subheading { font-size: .84rem; }
  .section-pill-badge { font-size: .64rem; padding: .25rem .65rem; }
  .udemy-card-body { padding: .9rem; }
  .udemy-card-body h5 { font-size: .92rem; }
  .udemy-card-thumb { height: auto !important; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
  .udemy-card-thumb img { width: 80% !important; height: 80% !important; object-fit: contain !important; margin: auto; }
  .lecture-unit-card, .hierarchy-card, .instructor-card { padding: .9rem; }
  .lecture-unit-card h6, .hierarchy-card h6, .instructor-card h5 { font-size: .9rem; }
  .badge { font-size: .66em; }
  .btn-sm { font-size: .78rem; }
  .hero-slide-bg { background-size: cover; }
  .inst-avatar { width: 46px; height: 46px; }
  .site-footer { font-size: .84rem; }
  .modal-body { padding: 1rem !important; }
}
@media (max-width: 359.98px) {
  html { font-size: 13px; }
  .msec-tab { padding: .4rem .7rem; font-size: .74rem; }
  .mobile-tab-btn { font-size: .6rem !important; }
  .assistant-orb { width: 52px; height: 52px; }
}

/* ---------------------------------------------------------------------------------------------
   5. VOICE & TEXT ASSISTANT
   Desktop: floating button + panel at the bottom-right. Mobile: opened from the centre tab,
   shown as a bottom sheet above the tab bar.
   --------------------------------------------------------------------------------------------- */
.bot-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 1046;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 60px; padding: 0 1.25rem 0 .45rem; border: 0; border-radius: 999px;
  color: #fff; font-weight: 800; font-size: .92rem; letter-spacing: .01em;
  background: linear-gradient(135deg, var(--site-primary) 0%, var(--site-primary-hover) 60%, #2563eb 100%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--site-primary) 45%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.bot-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px color-mix(in srgb, var(--site-primary) 55%, transparent); }
.bot-fab .bot-fab-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
}
.bot-fab .bot-fab-dot {
  position: absolute; top: 9px; left: 38px; width: 11px; height: 11px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff;
}
@media (max-width: 991.98px) { .bot-fab { display: none !important; } }
body.bot-open .bot-fab { opacity: 0; pointer-events: none; transform: scale(.9); }

.bot-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 1047;
  width: 400px; max-width: calc(100vw - 32px);
  height: min(640px, calc(100vh - var(--chrome-live-h, 120px) - 48px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(15, 23, 42, .28);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right;
  transition: opacity .22s var(--ease), transform .26s var(--ease), visibility .22s;
}
.bot-panel.open { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 991.98px) {
  .bot-panel {
    left: 0; right: 0; width: 100%; max-width: none;
    bottom: calc(var(--tabbar-h) + var(--safe-b));
    height: min(78vh, calc(100vh - var(--tabbar-h) - var(--safe-b) - 56px));
    border-radius: 22px 22px 0 0; border-bottom: 0; transform: translateY(24px); transform-origin: bottom center;
  }
  .bot-panel::before {
    content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .55); z-index: 2;
  }
  .bot-backdrop {
    position: fixed; inset: 0; z-index: 1045; background: rgba(2, 6, 23, .38);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  body.bot-open .bot-backdrop { opacity: 1; visibility: visible; }
}

.bot-head {
  display: flex; align-items: center; gap: .75rem; padding: 1rem 1rem .9rem; color: #fff;
  background: radial-gradient(140% 140% at 0% 0%, #2563eb 0%, var(--site-primary-hover) 35%, var(--site-primary) 100%);
}
.bot-avatar {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25); flex-shrink: 0;
}
.bot-title { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.bot-sub { font-size: .74rem; opacity: .85; display: flex; align-items: center; gap: .35rem; }
.bot-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.bot-head-btn {
  margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 0; color: #fff;
  background: rgba(255, 255, 255, .14); display: grid; place-items: center;
}
.bot-head-btn + .bot-head-btn { margin-left: .35rem; }
.bot-head-btn:hover { background: rgba(255, 255, 255, .26); }
.bot-head-btn.is-on { background: #fff; color: var(--site-primary); }

.bot-log {
  flex: 1 1 auto; overflow-y: auto; padding: 1rem; background: linear-gradient(180deg, #f7f9fd, #fff 240px);
  display: flex; flex-direction: column; gap: .65rem; overscroll-behavior: contain;
}
.bot-msg { max-width: 86%; padding: .65rem .85rem; border-radius: 16px; font-size: .88rem; line-height: 1.5; word-wrap: break-word; }
.bot-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); color: var(--ink); }
.bot-msg.user { align-self: flex-end; background: var(--site-primary); color: #fff; border-bottom-right-radius: 6px; }
.bot-msg.user .bot-voice-tag { opacity: .75; font-size: .7rem; margin-right: .3rem; }
.bot-msg ul { padding-left: 1.1rem; margin: .35rem 0 0; }
.bot-results { display: flex; flex-direction: column; gap: .4rem; margin-top: .55rem; }
.bot-result {
  display: flex; align-items: center; gap: .6rem; text-align: left; width: 100%;
  padding: .5rem .6rem; border-radius: 12px; border: 1px solid var(--line); background: #f8fafc;
  font-size: .82rem; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s;
}
.bot-result:hover { border-color: var(--site-primary); background: #fff; }
.bot-result .r-ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--site-primary) 10%, #fff); color: var(--site-primary);
}
.bot-result .r-sub { color: var(--muted); font-size: .72rem; }
.bot-typing { display: inline-flex; gap: 4px; padding: .7rem .9rem; }
.bot-typing span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: botDot 1.2s infinite; }
.bot-typing span:nth-child(2) { animation-delay: .15s; }
.bot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes botDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.bot-chips { display: flex; gap: .4rem; overflow-x: auto; padding: .55rem .9rem; border-top: 1px solid var(--line); scrollbar-width: none; background: #fff; }
.bot-chips::-webkit-scrollbar { display: none; }
.bot-suggest { display: flex; flex-wrap: wrap; gap: .35rem; margin: -.15rem 0 .4rem; padding-left: .2rem; }
.bot-suggest .bot-chip { font-size: .74rem; white-space: normal; text-align: left; }
.bot-chip {
  flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--site-primary) 22%, transparent);
  background: color-mix(in srgb, var(--site-primary) 6%, #fff); color: var(--site-primary);
  border-radius: 999px; padding: .35rem .8rem; font-size: .76rem; font-weight: 700;
}
.bot-chip:hover { background: var(--site-primary); color: #fff; }

.bot-form { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem .8rem; border-top: 1px solid var(--line); background: #fff; }
.bot-input {
  flex: 1 1 auto; min-width: 0; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: #f6f8fc; padding: 0 .9rem; font-size: .92rem; color: var(--ink);
}
.bot-input:focus { outline: none; border-color: var(--site-primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-primary) 14%, transparent); }
.bot-icon-btn {
  width: 46px; height: 46px; border-radius: 14px; border: 0; flex-shrink: 0; display: grid; place-items: center; font-size: 1.15rem;
}
.bot-mic { background: color-mix(in srgb, var(--site-primary) 10%, #fff); color: var(--site-primary); position: relative; }
.bot-mic[disabled] { opacity: .45; }
.bot-mic.listening { background: #ef4444; color: #fff; }
.bot-mic.listening::after {
  content: ""; position: absolute; inset: -5px; border-radius: 18px; border: 2px solid rgba(239, 68, 68, .55);
  animation: micRing 1.1s ease-out infinite;
}
@keyframes micRing { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.bot-send { background: var(--site-primary); color: #fff; }
.bot-send:hover { background: var(--site-primary-hover); }
.bot-listen-hint {
  display: none; align-items: center; gap: .55rem; padding: .45rem .9rem .55rem; background: #fff;
  font-size: .76rem; color: #b91c1c; font-weight: 700;
}
.bot-panel.listening .bot-listen-hint { display: flex; }
.bot-listen-text { flex: 1 1 auto; min-width: 0; }
.bot-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bot-eq i { width: 3px; border-radius: 2px; background: #ef4444; animation: botEq .9s ease-in-out infinite; }
.bot-eq i:nth-child(2) { animation-delay: .15s; } .bot-eq i:nth-child(3) { animation-delay: .3s; } .bot-eq i:nth-child(4) { animation-delay: .45s; }
@keyframes botEq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.bot-listen-cancel { border: 1px solid #fecaca; background: #fff; color: #b91c1c; border-radius: 999px; padding: .15rem .6rem; font-size: .7rem; font-weight: 800; }
.bot-listen-cancel:hover { background: #fef2f2; }
.bot-mic.is-unsupported { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .bot-eq i { animation: none; height: 10px; } }

/* =============================================================================================
   5. FULL-WIDTH LAYOUT
   The site fills the screen on desktop; content rows are centred in a wide container
   (max 1440px) with fluid gutters. Mobile keeps the bottom tab bar.
   ============================================================================================= */
.site-shell {
  width: 100%;
  margin: 0;
  background-color: #f8fafc;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}
#siteChrome.site-chrome {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  transform: translateZ(0) !important;
}
/* Desktop: edge-to-edge. Header, sections and footer span the full screen width with only a slim inner gutter */
@media (min-width: 992px) {
  .site-shell .container,
  .site-shell .container-fluid {
    max-width: 100% !important;
    padding-left: 2.5% !important;
    padding-right: 2.5% !important;
  }
}

/* =============================================================================================
   6. UDEMY-STYLE COURSE DETAIL & MULTI-INSTRUCTOR LEARNING PAGE
   ============================================================================================= */
.udemy-course-view {
  background: #f8fafc;
  min-height: 80vh;
}

.udemy-subnav-strip {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: var(--chrome-compact-h, 70px);
  z-index: 1020;
  backdrop-filter: blur(12px);
}

.udemy-hero-banner {
  background: linear-gradient(135deg, #061229 0%, #0c2356 50%, #153a7e 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 2.2rem 1.5rem !important;
}

.udemy-hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.udemy-hero-banner h1 {
  font-size: 1.7rem !important;
  margin-bottom: 0.6rem !important;
}

.udemy-hero-banner p.lead {
  font-size: 0.88rem !important;
  margin-bottom: 0.8rem !important;
}

.udemy-hero-inst-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.udemy-hero-inst-pill:hover,
.udemy-hero-inst-pill.active {
  background: #ffffff;
  color: #0c2356;
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Small round instructor avatar - sized everywhere it is used (hero pills, instructor tabs, playlists) */
.mini-avatar {
  width: 24px !important; height: 24px !important; max-width: none; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: #fff; border: 1px solid rgba(15, 23, 42, .12);
}
/* Instructor filter tabs on the course page */
#uInstructorFilterTabs { min-width: 0; }
.udemy-inst-tab-btn { display: inline-flex !important; align-items: center; gap: .45rem; max-width: 100%; min-width: 0; }
.udemy-inst-tab-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px) {
  #uInstructorFilterTabs {
    flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  #uInstructorFilterTabs::-webkit-scrollbar { display: none; }
  .udemy-inst-tab-btn { flex: 0 0 auto; max-width: 80vw; font-size: .8rem !important; }
}
.udemy-hero-inst-pill .mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
}

.udemy-inst-tab-btn {
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem !important;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.udemy-inst-tab-btn:hover {
  border-color: var(--site-primary);
  color: var(--site-primary);
  background: #f1f5f9;
}

.udemy-inst-tab-btn.active {
  background: var(--site-primary);
  color: #ffffff;
  border-color: var(--site-primary);
  box-shadow: 0 4px 14px rgba(14, 45, 109, 0.25);
}

.udemy-inst-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px !important;
  padding: 1.15rem !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.udemy-inst-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.udemy-inst-card.active-selected {
  border-color: var(--site-primary);
  box-shadow: 0 0 0 2px rgba(14, 45, 109, 0.2), 0 8px 24px rgba(14, 45, 109, 0.1);
}

.udemy-theater-card {
  background: #091224;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.udemy-theater-screen {
  background: #000000;
  position: relative;
}

.udemy-theater-screen video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 360px !important;
  object-fit: contain;
  background: #000;
  display: block;
}

.udemy-theater-bar {
  background: #0f1c35;
  color: #ffffff;
  padding: 0.75rem 1rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.udemy-unit-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px !important;
  padding: 0.65rem 0.85rem !important;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  font-size: 0.84rem;
}

.udemy-unit-row:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.udemy-unit-row.is-active-playing {
  background: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.udemy-unit-inst-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.udemy-unit-inst-badge.secondary-inst {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.udemy-sidebar-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px !important;
  padding: 1.15rem !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: calc(var(--chrome-compact-h, 80px) + 20px);
}

/* ---------------------------------------------------------------------------------------------
   6. PAGE TRANSLATOR (static/site_translate.js)
   Round heart button: bottom-left on desktop, centred above the assistant tab on phones; draggable.
   --------------------------------------------------------------------------------------------- */
.st-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 1045;
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; color: #fff;
  display: grid; place-items: center; cursor: grab; touch-action: none; user-select: none;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--site-primary) 55%, #fff) 0%, var(--site-primary) 55%, var(--site-primary-hover, var(--site-primary)) 100%);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--site-primary) 42%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .18s var(--ease, ease), box-shadow .18s;
}
.st-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 34px color-mix(in srgb, var(--site-primary) 52%, transparent); }
.st-fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--site-primary) 45%, #fff); outline-offset: 3px; }
.st-fab.is-dragging { cursor: grabbing; transition: none; opacity: .92; }
.st-fab .st-globe { width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); animation: stSpinGlobe 14s linear infinite; }
.st-fab .st-badge {
  position: absolute; top: -4px; right: -6px; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 10px;
  font: 800 .62rem/20px system-ui, sans-serif; color: var(--site-primary); background: #fff; border: 1.5px solid var(--site-primary);
  display: none;
}
.st-fab.is-translated .st-badge { display: block; }
@keyframes stSpinGlobe { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .st-fab .st-globe { animation: none; } }
@media (max-width: 991.98px) {
  .st-fab { left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b, 0px) + 14px); transform: translateX(-50%); width: 50px; height: 50px; }
  .st-fab:hover { transform: translateX(-50%); }
  .st-fab[style*="left"]:hover { transform: none; }
  .st-fab .st-globe { width: 27px; height: 27px; }
  body.bot-open .st-fab { opacity: 0; pointer-events: none; }
}

.st-panel {
  position: fixed; z-index: 1060; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bs-body-bg, #fff); color: var(--bs-body-color, #0f172a);
  border: 1px solid rgba(15, 23, 42, .1); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25); animation: stIn .16s ease-out;
}
.st-panel[hidden] { display: none; }
@keyframes stIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.st-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem .9rem .5rem; }
.st-title { font-weight: 800; font-size: .98rem; display: inline-flex; align-items: center; gap: .45rem; }
.st-title i { color: var(--site-primary); }
.st-x { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 50%; color: inherit; }
.st-x:hover { background: rgba(15, 23, 42, .07); }
.st-search { display: flex; align-items: center; gap: .5rem; margin: 0 .9rem .4rem; padding: 0 .75rem; border-radius: 12px; background: rgba(15, 23, 42, .05); border: 1px solid rgba(15, 23, 42, .08); }
.st-search i { opacity: .55; }
.st-search input { flex: 1; border: 0; background: transparent; padding: .55rem 0; font-size: 16px; outline: none; color: inherit; min-width: 0; }
.st-status { font-size: .8rem; padding: 0 .95rem .35rem; }
.st-status:empty { display: none; }
.st-status.is-busy { color: #2563eb; }
.st-status.is-ok { color: #15803d; }
.st-status.is-err { color: #b91c1c; }
.st-list { overflow-y: auto; padding: 0 .45rem .5rem; overscroll-behavior: contain; flex: 1; }
.st-group { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .55; padding: .7rem .55rem .3rem; }
.st-lang {
  width: 100%; display: flex; align-items: center; gap: .5rem; text-align: left; border: 0; background: transparent;
  padding: .5rem .6rem; border-radius: 10px; color: inherit; font-size: .9rem;
}
.st-lang:hover, .st-lang:focus-visible { background: color-mix(in srgb, var(--site-primary) 8%, transparent); outline: none; }
.st-lang.active { background: color-mix(in srgb, var(--site-primary) 12%, transparent); font-weight: 700; }
.st-lang-name { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.st-lang-name small { font-size: .74rem; opacity: .6; font-weight: 500; }
.st-lang .bi-check2 { color: var(--site-primary); font-size: 1.1rem; }
.st-ai { font-style: normal; font-size: .62rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; color: #7c3aed; background: rgba(124, 58, 237, .12); }
.st-loading { display: flex; align-items: center; gap: .5rem; font-size: .82rem; opacity: .7; padding: .5rem .6rem; }
.st-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--site-primary) 25%, transparent); border-top-color: var(--site-primary); animation: stSpin .8s linear infinite; }
@keyframes stSpin { to { transform: rotate(360deg); } }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .9rem; font-size: .72rem; border-top: 1px solid rgba(15, 23, 42, .08); opacity: .85; }
.st-reset { border: 0; background: transparent; color: var(--site-primary); font-weight: 700; font-size: .74rem; padding: 0; }

/* Hide Google's own banner / tooltip / highlight - the heart button is the only control */
.gt-holder { position: absolute !important; width: 1px; height: 1px; overflow: hidden; left: -9999px; top: 0; }
.goog-te-banner-frame, iframe.skiptranslate, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; visibility: hidden !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* =============================================================================================
   Course cards (cx-*): faculty-coloured media with a floating course emblem, staggered entrance,
   and the shared floating pager. Grid on desktop/tablet, compact rows on phones, list view option.
   ============================================================================================= */
.cx-col { display: flex; }
.cx-card {
  --cx-a: hsl(var(--cx-hue) 70% 42%);
  --cx-b: hsl(calc(var(--cx-hue) + 24) 72% 30%);
  position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: cxIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.cx-card:hover { transform: translateY(-6px); border-color: hsl(var(--cx-hue) 50% 82%); box-shadow: 0 26px 50px -26px hsl(var(--cx-hue) 60% 25% / .55), var(--shadow-md); }

.cx-media {
  position: relative; height: 172px; display: grid; place-items: center; overflow: hidden; cursor: pointer; isolation: isolate;
  background:
    radial-gradient(130% 110% at 100% 0%, hsl(var(--cx-hue) 80% 92% / .9), transparent 55%),
    linear-gradient(140deg, hsl(var(--cx-hue) 65% 97%), hsl(var(--cx-hue) 55% 90%));
}
.cx-media::before {   /* dotted texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(hsl(var(--cx-hue) 50% 70% / .45) 1px, transparent 1.3px); background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); mask-image: linear-gradient(200deg, #000, transparent 70%);
}
.cx-aura {
  position: absolute; width: 190px; height: 190px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, hsl(var(--cx-hue) 80% 60% / .38), transparent 65%);
  animation: cxPulse 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.6s);
}
.cx-media.is-icon img {
  width: 108px; height: 108px; object-fit: contain; border-radius: 26px;
  filter: drop-shadow(0 14px 18px hsl(var(--cx-hue) 60% 25% / .32));
  opacity: 0; transform: scale(.86);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  animation: cxBob 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.8s);
}
.cx-media.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .6s var(--ease); }
.cx-media img.is-loaded { opacity: 1; transform: none; }
.cx-card:hover .cx-media.is-icon img.is-loaded { transform: scale(1.08) rotate(-4deg); }
.cx-card:hover .cx-media.is-photo img.is-loaded { transform: scale(1.06); }
.cx-fallback { position: absolute; font-size: 2.6rem; color: var(--cx-a); }
.cx-media img.is-loaded + .cx-fallback { display: none; }

.cx-code, .cx-units, .cx-live, .cx-lect {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; max-width: calc(100% - 1.4rem);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 999px; font-weight: 800; line-height: 1;
}
.cx-code {
  top: .7rem; left: .7rem; padding: .36rem .65rem; font-size: .72rem; letter-spacing: .04em; color: #fff;
  background: linear-gradient(135deg, var(--cx-a), var(--cx-b)); box-shadow: 0 6px 14px -6px hsl(var(--cx-hue) 60% 25% / .7);
}
.cx-units { top: .7rem; right: .7rem; padding: .34rem .6rem; font-size: .68rem; color: hsl(var(--cx-hue) 60% 26%); background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid hsl(var(--cx-hue) 40% 86%); }
.cx-live { top: .7rem; right: .7rem; padding: .34rem .6rem; font-size: .68rem; color: #fff; background: #dc2626; animation: cxLive 1.6s ease-in-out infinite; }
.cx-lect { left: .7rem; bottom: .7rem; padding: .34rem .6rem; font-size: .68rem; font-weight: 700; color: #fff; background: rgba(11, 18, 32, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cx-play {
  position: absolute; z-index: 2; right: .7rem; bottom: .6rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.2rem; color: var(--cx-a); background: #fff; box-shadow: 0 10px 22px -8px rgba(11, 18, 32, .45);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.cx-card:hover .cx-play { transform: scale(1.12); background: var(--cx-a); color: #fff; }

.cx-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: .45rem; min-width: 0; padding: 1rem 1.15rem 1.1rem; }
.cx-tags { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.cx-fac { flex-shrink: 0; padding: .2rem .5rem; border-radius: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .06em; color: hsl(var(--cx-hue) 60% 30%); background: hsl(var(--cx-hue) 55% 95%); }
.cx-prog { min-width: 0; padding: .2rem .5rem; border-radius: 6px; font-size: .68rem; font-weight: 700; color: var(--muted); background: var(--canvas); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-title {
  margin: 0; font-family: var(--site-heading-font); font-size: 1.03rem; font-weight: 800; line-height: 1.32; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.64em;
}
.cx-desc { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-inst { display: flex; align-items: center; gap: .35rem; min-width: 0; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.cx-inst .bi { color: var(--cx-a); }
.cx-inst span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-inst em { font-style: normal; font-weight: 500; color: var(--muted); white-space: nowrap; }
.cx-inst b { padding: .05rem .4rem; border-radius: 999px; font-size: .68rem; color: var(--cx-a); background: hsl(var(--cx-hue) 55% 95%); }
.cx-foot { margin-top: auto; display: flex; align-items: center; gap: .5rem; padding-top: .75rem; border-top: 1px dashed var(--line); }
.cx-rating { flex: 1 1 auto; min-width: 0; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-cta {
  position: relative; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem; border: 0; border-radius: 999px;
  padding: .52rem 1rem; font-size: .8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--cx-a), var(--cx-b));
  box-shadow: 0 10px 20px -12px hsl(var(--cx-hue) 60% 25% / .8); transition: transform .2s var(--ease), box-shadow .2s;
}
.cx-cta .bi { transition: transform .25s var(--ease); }
.cx-cta::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.cx-card:hover .cx-cta::after { transform: translateX(120%); }
.cx-card:hover .cx-cta .bi, .cx-cta:focus-visible .bi { transform: translateX(4px); }
.cx-cta:active { transform: scale(.96); }
.cx-preview {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem;
  border: 1px solid hsl(var(--cx-hue) 45% 84%); color: var(--cx-a); background: #fff; transition: background .2s, color .2s;
}
.cx-preview:hover { background: var(--cx-a); color: #fff; }
.cx-media:focus-visible, .cx-cta:focus-visible, .cx-preview:focus-visible { outline: 3px solid hsl(var(--cx-hue) 70% 45% / .5); outline-offset: 2px; }

/* Slide between pages (the shared floating pager adds slide-next / slide-prev) */
.cx-stage > .row.slide-next > .cx-col > .cx-card { animation: cxNext .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.cx-stage > .row.slide-prev > .cx-col > .cx-card { animation: cxPrev .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.cx-stage > .row.is-loading { opacity: .55; transition: opacity .2s; }

/* List view */
#coursesGridContainer.is-list .cx-card { flex-direction: row; }
#coursesGridContainer.is-list .cx-media { flex: 0 0 260px; height: auto; min-height: 176px; }
#coursesGridContainer.is-list .cx-title { min-height: 0; }

@keyframes cxIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes cxNext { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes cxPrev { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
@keyframes cxBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes cxPulse { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes cxLive { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .5); } 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); } }

@media (max-width: 991.98px) {
  #coursesGridContainer.is-list .cx-media { flex-basis: 200px; }
}
/* Phones: compact horizontal rows - emblem left, details right */
@media (max-width: 767.98px) {
  .cx-card { flex-direction: row; border-radius: 16px; }
  .cx-card:hover { transform: none; }
  .cx-media { flex: 0 0 108px; height: auto; min-height: 132px; }
  .cx-media.is-icon img { width: 70px; height: 70px; border-radius: 18px; }
  .cx-aura { width: 120px; height: 120px; }
  .cx-code { top: .45rem; left: .45rem; padding: .26rem .45rem; font-size: .6rem; max-width: calc(100% - .9rem); }
  .cx-units, .cx-lect, .cx-play, .cx-desc { display: none; }
  .cx-live { top: auto; bottom: .45rem; left: .45rem; right: auto; padding: .24rem .45rem; font-size: .58rem; }
  .cx-body { padding: .7rem .8rem .75rem; gap: .3rem; }
  .cx-title { font-size: .92rem; min-height: 0; }
  .cx-inst { font-size: .72rem; }
  .cx-foot { padding-top: .5rem; }
  .cx-cta { padding: .42rem .8rem; font-size: .74rem; }
  .cx-preview { width: 32px; height: 32px; }
}
@media (max-width: 379.98px) {
  .cx-media { flex-basis: 88px; }
  .cx-media.is-icon img { width: 56px; height: 56px; }
  .cx-prog { display: none; }
}

/* Shared floating pagers: clear the phone/tablet tab bar + centred translate button, and the network pill */
.inst-stage { touch-action: pan-y pinch-zoom; overscroll-behavior-x: contain; }
.inst-float-pager { transition: bottom .3s var(--ease); }
@media (max-width: 991.98px) {
  .inst-float-pager { bottom: calc(var(--tabbar-h, 68px) + var(--safe-b, 0px) + 76px); }
}
body:has(.ns-pill.show) .inst-float-pager { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 991.98px) { body:has(.ns-pill.show) .inst-float-pager { bottom: calc(172px + env(safe-area-inset-bottom, 0px)); } }

@media (prefers-reduced-motion: reduce) {
  .cx-card, .cx-aura, .cx-media.is-icon img, .cx-live, .cx-stage > .row > .cx-col > .cx-card { animation: none !important; }
  .cx-card, .cx-cta, .cx-cta::after, .cx-media img, .cx-play { transition: none !important; }
}
/* =============================================================================================
   Lecture cards (lv-*) on the floating pager: faculty-tinted accents, staggered entrance, page-turn slide,
   always-visible play button, unit badge. Phones get compact rows.
   ============================================================================================= */
.lf-col { display: flex; }
.lv-card {
  --lv-a: hsl(var(--cx-hue, 215) 70% 42%);
  flex: 1 1 auto; position: relative; isolation: isolate;
  animation: cxIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.lv-card::after {   /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0; transition: background-position .9s var(--ease);
}
.lv-card:hover::after { background-position: -60% 0; }
.lv-card:hover, .lv-card:focus-visible { border-color: hsl(var(--cx-hue, 215) 50% 78%); box-shadow: 0 24px 46px -24px hsl(var(--cx-hue, 215) 60% 25% / .5), var(--shadow-md); }
.lv-thumb { background: linear-gradient(140deg, hsl(var(--cx-hue, 215) 55% 22%), hsl(var(--cx-hue, 215) 60% 38%)); }
.lv-thumb.is-photo img { opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.lv-thumb.is-photo img.is-loaded { opacity: 1; }
/* Play button always visible (touch screens have no hover), grows and pulses on hover */
.lv-play { opacity: .92; transform: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55); }
.lv-card:hover .lv-play, .lv-card:focus-visible .lv-play { transform: scale(1.12); background: var(--lv-a); color: #fff; animation: lvPulse 1.4s ease-out infinite; }
.lv-unit {
  position: absolute; z-index: 2; left: .55rem; top: .55rem; padding: .28rem .55rem; border-radius: 999px; font-size: .66rem; font-weight: 800;
  letter-spacing: .03em; color: #fff; background: linear-gradient(135deg, var(--lv-a), hsl(calc(var(--cx-hue, 215) + 24) 72% 30%));
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.lv-full { background: rgba(220, 38, 38, .92) !important; }
.lv-code { background: hsl(var(--cx-hue, 215) 55% 95%) !important; color: hsl(var(--cx-hue, 215) 60% 30%) !important; }
.lv-card:hover .lv-title { color: var(--lv-a); }
.lv-module .bi { color: var(--lv-a); }
.lv-card:hover .lv-watch { background: var(--lv-a); }
.lv-stage > .row.slide-next > .lf-col > .lv-card { animation: cxNext .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.lv-stage > .row.slide-prev > .lf-col > .lv-card { animation: cxPrev .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.lv-stage > .row.is-loading { opacity: .55; transition: opacity .2s; }
@keyframes lvPulse { 0% { box-shadow: 0 0 0 0 hsl(var(--cx-hue, 215) 70% 50% / .55); } 100% { box-shadow: 0 0 0 16px hsl(var(--cx-hue, 215) 70% 50% / 0); } }

/* Phones: compact rows (thumbnail left) so more lectures fit on screen */
@media (max-width: 575.98px) {
  #lecturesGridContainer:not(.is-list) .lv-card { flex-direction: row; }
  #lecturesGridContainer:not(.is-list) .lv-thumb { flex: 0 0 136px; width: 136px; height: auto; min-height: 100%; aspect-ratio: auto; }
  #lecturesGridContainer .lv-desc, #lecturesGridContainer .lv-source { display: none; }
  #lecturesGridContainer .lv-play { width: 40px; height: 40px; font-size: 1.05rem; }
  #lecturesGridContainer .lv-unit { font-size: .58rem; padding: .22rem .45rem; }
  #lecturesGridContainer .lv-body { padding: .65rem .75rem; gap: .25rem; }
  #lecturesGridContainer .lv-title { font-size: .9rem; }
  .lv-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-card, .lv-stage > .row > .lf-col > .lv-card, .lv-card:hover .lv-play { animation: none !important; }
  .lv-card::after, .lv-thumb.is-photo img { transition: none !important; }
}