/* Masar University — homepage sections
   P1: hero + stats band. */

/* =========================================================
   Hero
   ========================================================= */
.mu-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(4, 138, 164, .30), transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(4, 138, 164, .14), transparent 30%),
    linear-gradient(135deg, var(--mu-navy-950) 0%, var(--mu-navy) 52%, var(--mu-navy-800) 100%);
}

/* Circuit texture — inspired by the logo's M traces, never a copy of the mark */
.mu-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: #fff;
  opacity: .055;
  pointer-events: none;
}

.mu-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 4.5vw, 4.25rem) clamp(5rem, 7vw, 6.25rem);
  min-height: 500px;
}

.mu-hero__content { max-width: 690px; }

/* The university name leads; the promise sits below it, smaller. */
.mu-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  font-weight: var(--mu-fw-heavy);
  line-height: 1.2;
}
.mu-hero__title::after {
  /* short gold rule under the name, as in the academic-calendar designs */
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 1.1rem;
  border-radius: 3px;
  background: var(--mu-gold);
}
.mu-hero__tagline {
  margin: 1.1rem 0 1rem;
  color: #fff;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: var(--mu-fw-bold);
  line-height: 1.5;
  text-wrap: balance;
}
.mu-hero__tagline-accent { color: var(--mu-teal-300); }

.mu-hero__lead {
  max-width: 34em;
  margin: 0 0 2rem;
  color: var(--mu-on-dark);
  font-size: var(--mu-fs-body-lg);
  line-height: 1.9;
}

.mu-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

/* ---------- Hero visual: "platform window" ---------- */
.mu-hero__visual {
  position: relative;
  padding: 9% 4% 11%;
}

.mu-hero__path {
  position: absolute;
  inset: -6% -10% -8% -6%;
  z-index: 0;
  width: 116%;
  height: 114%;
  pointer-events: none;
}

.mu-device {
  position: relative;
  z-index: 1;
  container-type: inline-size;
  width: min(100%, 540px);
  margin-inline: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 8, 24, .45));
}
.mu-device__screen {
  overflow: hidden;
  aspect-ratio: 16 / 10.4;
  border: 2.2cqw solid #121c2e;
  border-bottom-width: 2.8cqw;
  border-radius: 3.4cqw 3.4cqw 1.2cqw 1.2cqw;
  background: var(--mu-surface);
}
.mu-device__base {
  position: relative;
  height: 3.2cqw;
  margin-inline: -7%;
  border-radius: 0 0 3cqw 3cqw;
  background: linear-gradient(180deg, #dfe6ee 0%, #aab6c5 100%);
}
.mu-device__base::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 42%;
  height: 1.1cqw;
  border-radius: 0 0 1.4cqw 1.4cqw;
  background: #8b98aa;
}

/* The mini LMS inside the screen — all sizes in cqw so it scales with the device */
.mu-app {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  font-size: 2.05cqw;
  line-height: 1.45;
  color: var(--mu-text);
}
.mu-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5cqw 2.4cqw;
  background: var(--mu-navy-950);
  color: #fff;
  font-weight: var(--mu-fw-bold);
}
.mu-app__bar-dots { display: flex; gap: .9cqw; direction: ltr; }
.mu-app__bar-dots span { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.mu-app__bar-dots span:first-child { background: var(--mu-gold); }
.mu-app__week {
  padding: .3cqw 1.4cqw;
  border-radius: 99px;
  background: rgba(95, 208, 227, .16);
  color: var(--mu-teal-300);
  font-size: 1.75cqw;
}
.mu-app__main {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: start;
  gap: 2cqw;
  padding: 2.2cqw;
  min-height: 0;
}
.mu-app__player {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9.4;
  border-radius: 1.8cqw;
  background:
    radial-gradient(circle at 30% 25%, rgba(95, 208, 227, .35), transparent 45%),
    linear-gradient(135deg, var(--mu-navy) 0%, var(--mu-teal-700) 100%);
}
.mu-app__player::before {
  /* abstract "slide" on the recorded lecture */
  content: "";
  position: absolute;
  inset: 16% 12% auto auto;
  width: 38%;
  height: 34%;
  border-radius: 1cqw;
  background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) 12% 22% / 70% 8% no-repeat,
    linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.3)) 12% 48% / 55% 7% no-repeat,
    linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.3)) 12% 70% / 62% 7% no-repeat,
    rgba(255, 255, 255, .1);
}
.mu-app__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 8.5cqw;
  height: 8.5cqw;
  border-radius: 50%;
  background: #fff;
  color: var(--mu-teal-700);
  font-size: 4cqw;
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .25);
}
.mu-app__progress {
  position: absolute;
  inset-inline: 3cqw;
  bottom: 2.4cqw;
  height: .8cqw;
  border-radius: 99px;
  background: rgba(255, 255, 255, .25);
}
.mu-app__progress span {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 64%;
  border-radius: inherit;
  background: var(--mu-gold);
}
.mu-app__lecture { margin-top: 1.4cqw; }
.mu-app__lecture strong { display: block; color: var(--mu-navy); font-size: 2.3cqw; }
.mu-app__lecture span { color: var(--mu-text-muted); font-size: 1.8cqw; }
.mu-app__course {
  margin-top: 1.6cqw;
  padding: 1.4cqw 1.6cqw;
  border: 1px solid var(--mu-border);
  border-radius: 1.4cqw;
  background: #fff;
  font-size: 1.75cqw;
}
.mu-app__course-row { display: flex; justify-content: space-between; color: var(--mu-text-muted); }
.mu-app__course-row b { color: var(--mu-navy); font-weight: var(--mu-fw-bold); }
.mu-app__meter { height: .9cqw; margin-top: .9cqw; border-radius: 99px; background: var(--mu-surface-2); overflow: hidden; }
.mu-app__meter span { display: block; width: 58%; height: 100%; border-radius: inherit; background: var(--mu-teal); }

.mu-app__plan {
  padding: 1.8cqw;
  border: 1px solid var(--mu-border);
  border-radius: 1.8cqw;
  background: #fff;
}
.mu-app__plan-title {
  margin: 0 0 1.2cqw;
  color: var(--mu-navy);
  font-size: 2.2cqw;
  font-weight: var(--mu-fw-bold);
}
.mu-app__plan ul { display: grid; gap: 1.3cqw; margin: 0; padding: 0; list-style: none; }
.mu-app__plan li { display: flex; align-items: center; gap: 1.2cqw; font-size: 1.85cqw; }
.mu-app__plan li i {
  display: grid;
  place-items: center;
  flex: none;
  width: 4.4cqw;
  height: 4.4cqw;
  border-radius: 1.2cqw;
  background: var(--mu-teal-100);
  color: var(--mu-teal-700);
  font-size: 2.5cqw;
}
.mu-app__plan li.is-done i { background: var(--mu-teal-700); color: #fff; }
.mu-app__plan li.is-live i { background: #FFF4D1; color: var(--mu-bronze-700); }
.mu-app__plan li small { display: block; color: var(--mu-text-muted); font-size: 1.55cqw; }

/* Floating chips around the device */
.mu-hero__chip {
  position: absolute;
  z-index: 2;
  animation: mu-rise .7s var(--mu-ease) both;
}
.mu-hero__chip--a { top: -1%; inset-inline-start: 2%; animation-delay: .25s; }
.mu-hero__chip--b { bottom: 0; inset-inline-end: 0; animation-delay: .4s; }

.mu-hero__content > * { animation: mu-rise .6s var(--mu-ease) both; }
.mu-hero__content > :nth-child(2) { animation-delay: .06s; }
.mu-hero__content > :nth-child(3) { animation-delay: .12s; }
.mu-hero__content > :nth-child(4) { animation-delay: .18s; }
.mu-hero__content > :nth-child(5) { animation-delay: .24s; }
.mu-device { animation: mu-rise .8s var(--mu-ease) .1s both; }

@keyframes mu-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   Stats band (sits on the hero's lower edge, as in the mockup)
   ========================================================= */
.mu-stats {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  color: #fff;
}
.mu-stats__cap {
  display: flex;
  height: 44px;
}
.mu-stats__cap svg { flex: none; width: 110px; height: 44px; display: block; }
.mu-stats__cap svg path { fill: var(--mu-teal-700); }
/* the corner that must rise toward the page edge is mirrored, per direction */
html[dir="rtl"] .mu-stats__cap svg:first-child,
html[dir="ltr"] .mu-stats__cap svg:last-child { transform: scaleX(-1); }
.mu-stats__cap-mid { flex: 1; background: var(--mu-teal-700); }
.mu-stats__body {
  background: linear-gradient(180deg, var(--mu-teal-700) 0%, #046C80 100%);
  box-shadow: 0 18px 40px rgba(0, 47, 108, .12);
}
.mu-stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: .25rem 0 1.6rem;
  list-style: none;
}
.mu-stat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .35rem 1rem;
}
.mu-stats__list > li { position: relative; }
.mu-stats__list > li > a.mu-stat { height: 100%; }
.mu-stats__list > li + li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(255, 255, 255, .26);
}
.mu-stat__icon {
  flex: none;
  color: var(--mu-gold);
  font-size: 2.35rem;
  line-height: 1;
}
.mu-stat__text { display: flex; flex-direction: column; line-height: 1.25; }
.mu-stat__num {
  font-size: clamp(1.75rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.01em;
  unicode-bidi: isolate;
  direction: ltr;
  text-align: start;
}
html[dir="rtl"] .mu-stat__num { text-align: end; }
.mu-stat__label { font-size: 1rem; font-weight: var(--mu-fw-medium); color: rgba(255, 255, 255, .92); }
a.mu-stat { color: inherit; text-decoration: none; border-radius: var(--mu-radius-md); transition: background-color var(--mu-dur) ease; }
a.mu-stat:hover { background: rgba(255, 255, 255, .07); }
a.mu-stat:hover .mu-stat__label { text-decoration: underline; text-underline-offset: .25em; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
  .mu-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }
  .mu-hero__content { max-width: 680px; margin-inline: auto; }
  .mu-hero__lead { margin-inline: auto; }
  .mu-hero__title::after { margin-inline: auto; }
  .mu-hero__actions { justify-content: center; }
  .mu-hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .mu-stats__list { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .mu-stats__list > li:nth-child(3)::before { display: none; }
  .mu-stat { justify-content: flex-start; padding-inline: 1.5rem; }
}

@media (max-width: 767px) {
  .mu-hero__grid { padding-block: 2.5rem 5rem; gap: 1.5rem; }
  .mu-hero__actions { flex-direction: column; }
  .mu-hero__actions .mu-btn { width: 100%; }
  .mu-hero__chip--b { display: none; }
  .mu-hero__chip--a { top: -2%; inset-inline-start: -2%; }
  .mu-hero__chip .mu-chip { padding: .5rem .8rem; }
  .mu-stats { margin-top: -30px; }
  .mu-stats__cap { height: 30px; }
  .mu-stats__cap svg { width: 70px; height: 30px; }
  .mu-stat { gap: .7rem; padding-inline: .6rem; }
  .mu-stat__icon { font-size: 1.8rem; }
  .mu-stat__label { font-size: .9rem; }
}

/* =========================================================
   P2 — About
   ========================================================= */
.mu-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.mu-about__text p { margin: 0 0 1rem; color: var(--mu-text); font-size: 1.05rem; }
.mu-about__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
}
.mu-about__values li {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.1rem 1rem;
  border: 1px solid var(--mu-border);
  border-top: 3px solid var(--mu-teal);
  border-radius: var(--mu-radius-md);
  background: #fff;
  box-shadow: var(--mu-shadow-sm);
  color: var(--mu-navy);
  font-weight: var(--mu-fw-bold);
  line-height: 1.45;
}
.mu-about__values li:nth-child(2) { border-top-color: var(--mu-navy); }
.mu-about__values li:nth-child(3) { border-top-color: var(--mu-gold); }
.mu-about__values .mu-icon-tile { width: 44px; height: 44px; border-radius: 12px; font-size: 1.35rem; }

/* Visual: the calendar-design language — navy field, circuit texture, reversed logo, gold rule */
.mu-about__visual { position: relative; padding-bottom: 2.5rem; }
.mu-about__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.4rem;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: var(--mu-radius-xl);
  background:
    radial-gradient(circle at 85% 12%, rgba(4, 138, 164, .38), transparent 42%),
    linear-gradient(145deg, var(--mu-navy-950) 0%, var(--mu-navy) 60%, var(--mu-navy-800) 100%);
  box-shadow: var(--mu-shadow-lg);
}
.mu-about__panel .mu-texture { opacity: .07; }
.mu-about__panel img { position: relative; width: 44%; height: auto; }
.mu-about__panel-rule { width: 64px; height: 3px; border-radius: 3px; background: var(--mu-gold); }
.mu-about__vision {
  position: absolute;
  bottom: 0;
  inset-inline-start: -1.5rem;
  max-width: 340px;
  padding: 1.25rem 1.4rem;
  border-radius: var(--mu-radius-lg);
  background: var(--mu-teal-700);
  color: #fff;
  box-shadow: 0 20px 44px rgba(3, 117, 139, .30);
}
.mu-about__vision::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: .7rem;
  border-radius: 3px;
  background: var(--mu-gold);
}
.mu-about__vision strong { display: block; margin-bottom: .25rem; font-size: 1rem; }
.mu-about__vision p { margin: 0; color: rgba(255, 255, 255, .92); font-size: .98rem; line-height: 1.75; }

/* =========================================================
   P2 — Colleges: navy band with the heading, cards rising out of it
   ========================================================= */
.mu-colleges { padding-top: 0; background: var(--mu-surface-2); }
.mu-colleges__band { padding: clamp(3.5rem, 7vw, 5.5rem) 0 9.5rem; }
.mu-colleges__band .mu-heading { margin-bottom: 0; }
.mu-colleges__cards { position: relative; margin-top: -7.5rem; }
.mu-colleges__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mu-college { height: 100%; padding: 1.75rem 1.5rem 1.5rem; overflow: hidden; box-shadow: var(--mu-shadow-md); }
.mu-college::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--mu-teal);
}
.mu-colleges__grid > li:nth-child(even) .mu-college::before { background: var(--mu-navy); }
.mu-college__title {
  margin: 1.1rem 0 .5rem;
  color: var(--mu-navy);
  font-size: 1.2rem;
  font-weight: var(--mu-fw-bold);
  line-height: 1.5;
}
.mu-college__title a { color: inherit; text-decoration: none; }
.mu-college__desc { flex: 1; margin: 0 0 1.1rem; color: var(--mu-text-muted); font-size: .95rem; line-height: 1.8; }
.mu-college__levels { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.mu-college__levels span {
  padding: .15rem .65rem;
  border-radius: var(--mu-radius-pill);
  background: var(--mu-teal-100);
  color: var(--mu-navy);
  font-size: .82rem;
  font-weight: var(--mu-fw-semibold);
}
.mu-college__levels b { color: var(--mu-teal-700); }
.mu-college__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mu-border);
}
.mu-college__count { color: var(--mu-text-muted); font-size: .92rem; font-weight: var(--mu-fw-semibold); }
.mu-college__count b { margin-inline-end: .2rem; color: var(--mu-navy); font-size: 1.5rem; font-weight: 800; }
.mu-college .mu-link { font-size: .92rem; }

.mu-degrees {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.mu-degrees__label { margin-inline-end: .25rem; color: var(--mu-text-muted); font-weight: var(--mu-fw-semibold); }
.mu-degrees a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1.1rem;
  border: 1px solid #D5E1E8;
  border-radius: var(--mu-radius-pill);
  background: #fff;
  color: var(--mu-navy);
  font-weight: var(--mu-fw-semibold);
  text-decoration: none;
  transition: border-color var(--mu-dur) ease, color var(--mu-dur) ease, background-color var(--mu-dur) ease;
}
.mu-degrees a:hover { border-color: var(--mu-navy); background: var(--mu-navy); color: #fff; }

/* =========================================================
   P2 — President message
   ========================================================= */
.mu-president__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--mu-radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(4, 138, 164, .28), transparent 40%),
    linear-gradient(135deg, var(--mu-navy-950) 0%, var(--mu-navy) 60%, var(--mu-navy-800) 100%);
  box-shadow: var(--mu-shadow-lg);
}
.mu-president__content { padding: clamp(2rem, 4.5vw, 3.75rem); }
.mu-president__quote {
  position: relative;
  margin: 2.25rem 0 1.25rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 3px solid var(--mu-bronze);
  color: #fff;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: var(--mu-fw-bold);
  line-height: 1.6;
}
.mu-president__quote .ti {
  position: absolute;
  top: -2.1rem;
  inset-inline-start: -.2rem;
  color: var(--mu-gold);
  font-size: 2rem;
}
.mu-president__excerpt { margin: 0 0 1.5rem; color: var(--mu-on-dark); line-height: 1.95; }
.mu-president__more > summary { list-style: none; }
.mu-president__more > summary::-webkit-details-marker { display: none; }
.mu-president__more .mu-president__less { display: none; }
.mu-president__more[open] .mu-president__less { display: inline; }
.mu-president__more[open] .mu-president__read { display: none; }
.mu-president__more summary .ti { transition: transform var(--mu-dur) ease; }
.mu-president__more[open] summary .ti { transform: rotate(180deg); }
.mu-president__full {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--mu-radius-lg);
  background: rgba(255, 255, 255, .05);
  color: var(--mu-on-dark);
  line-height: 1.95;
}
.mu-president__full p { margin: 0 0 .9rem; }
.mu-president__full p:last-child { margin: 0; }
.mu-president__sign {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.mu-president__sign strong { display: block; font-size: 1.1rem; }
.mu-president__sign span { color: var(--mu-on-dark-muted); font-size: .92rem; }
/* Framed portrait: the official photo has a white background, so it sits in a frame
   rather than bleeding into the navy panel. */
.mu-president__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3.5vw, 3rem);
}
.mu-president__frame {
  position: relative;
  width: min(100%, 340px);
}
.mu-president__frame::before {
  /* gold rule around the portrait, the same gap on every side */
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(245, 184, 0, .55);
  border-radius: calc(var(--mu-radius-lg) + 12px);
}
.mu-president__frame img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--mu-radius-lg);
  background: #fff;
  box-shadow: 0 24px 50px rgba(0, 8, 24, .35);
}

/* =========================================================
   P2 — News
   ========================================================= */
.mu-news__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.mu-news-card { overflow: hidden; }
.mu-news-card:hover .mu-media img { transform: scale(1.035); }
.mu-news-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.mu-news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .6rem; color: var(--mu-text-muted); font-size: .88rem; }
.mu-news-card__meta .ti { color: var(--mu-teal); }
.mu-news-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0 0 .6rem;
  color: var(--mu-navy);
  font-size: 1.08rem;
  font-weight: var(--mu-fw-bold);
  line-height: 1.6;
}
.mu-news-card__title a { color: inherit; text-decoration: none; }
.mu-news-card__title a:hover { color: var(--mu-teal-700); text-decoration: underline; text-underline-offset: .25em; }
.mu-news-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: var(--mu-text-muted);
  line-height: 1.85;
}
.mu-news-card--featured .mu-news-card__title { -webkit-line-clamp: 2; font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
.mu-news-card--featured .mu-news-card__body { padding: 1.6rem 1.75rem 1.75rem; }
.mu-news-card__more { margin-top: auto; padding-top: 1.25rem; }

/* ---------- Announcements (above the news): short, time-bound, no photo ---------- */
.mu-notices { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.mu-notices__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mu-notice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--mu-white);
  border: 1px solid var(--mu-border);
  border-inline-start: 4px solid var(--mu-gold);
  border-radius: var(--mu-radius-md);
  box-shadow: var(--mu-shadow-sm);
  transition: box-shadow var(--mu-dur) var(--mu-ease), transform var(--mu-dur) var(--mu-ease);
}
.mu-notice:hover { box-shadow: var(--mu-shadow-md); transform: translateY(-2px); }
.mu-notice:focus-within { outline: 3px solid var(--mu-teal); outline-offset: 2px; }
.mu-notice__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--mu-radius-sm);
  background: var(--mu-teal-100);
  color: var(--mu-teal-700);
  font-size: 1.35rem;
}
.mu-notice__thumb {
  flex: none;
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--mu-radius-sm);
  background: var(--mu-surface-2);
}
.mu-notice__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--mu-ease); }
.mu-notice:hover .mu-notice__thumb img { transform: scale(1.05); }
@media (max-width: 575.98px) { .mu-notice__thumb { width: 76px; } }
.mu-notice--admission .mu-notice__icon { background: #E6EEF7; color: var(--mu-navy); }
.mu-notice--discount .mu-notice__icon { background: #FFF4D1; color: var(--mu-bronze-700); }
.mu-notice--alert { border-inline-start-color: #B42318; }
.mu-notice--alert .mu-notice__icon { background: #FEE4E2; color: #B42318; }
.mu-notice__body { flex: 1; min-width: 0; }
.mu-notice__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .4rem; color: var(--mu-text-muted); font-size: .84rem; }
.mu-notice__title { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--mu-navy); }
.mu-notice__title a { color: inherit; text-decoration: none; }
.mu-notice__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the link */
.mu-notice__title a:hover { color: var(--mu-teal-700); }
.mu-notice__title a:focus-visible { outline: none; }
.mu-notice__until { display: flex; align-items: center; gap: .35rem; margin: .5rem 0 0; color: var(--mu-bronze-700); font-size: .86rem; font-weight: var(--mu-fw-semibold); }
.mu-notice__go { flex: none; align-self: center; color: var(--mu-teal); font-size: 1.15rem; }

.mu-news__list { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.mu-news-card--row { flex-direction: row; align-items: stretch; height: 100%; }
.mu-news-card--row .mu-media { flex: none; width: 40%; aspect-ratio: auto; min-height: 150px; }
.mu-news-card--row .mu-news-card__body { justify-content: center; padding: 1rem 1.2rem; }
.mu-news-card--row .mu-news-card__title { margin: 0; font-size: 1rem; }

/* =========================================================
   P2 — Responsive
   ========================================================= */
@media (max-width: 1199.98px) {
  .mu-colleges__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .mu-about__grid { grid-template-columns: 1fr; }
  .mu-about__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .mu-about__vision { inset-inline-start: 1rem; }
  .mu-president__panel { grid-template-columns: 1fr; }
  .mu-president__photo { order: -1; padding-bottom: 0; }
  .mu-president__frame { width: min(70%, 300px); }
  .mu-news__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .mu-heading--row { flex-direction: column; align-items: flex-start; }
  .mu-about__values { grid-template-columns: 1fr; }
  .mu-about__values li { flex-direction: row; align-items: center; }
  .mu-about__visual { padding-bottom: 0; }
  .mu-about__vision { position: relative; inset: auto; max-width: none; margin: -2rem 1rem 0; }
  .mu-colleges__grid { grid-template-columns: 1fr; }
  .mu-colleges__band { padding-bottom: 8rem; }
  .mu-colleges__cards { margin-top: -6rem; }
  .mu-news-card--row { flex-direction: column; }
  .mu-news-card--row .mu-media { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
}

/* =========================================================
   P3 — Accreditation + scholarships (two cards on one row)
   ========================================================= */
.mu-highlights__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.mu-accred__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--mu-border);
  border-inline-start: 4px solid var(--mu-gold);
  border-radius: var(--mu-radius-lg);
  background: #fff;
  box-shadow: var(--mu-shadow-sm);
}
.mu-accred__head { display: flex; align-items: center; gap: 1rem; }
.mu-accred__card .mu-icon-tile { width: 56px; height: 56px; border-radius: 16px; font-size: 1.75rem; }
.mu-accred__title { margin: 0; color: var(--mu-navy); font-size: var(--mu-fs-h3); font-weight: var(--mu-fw-bold); }
.mu-accred__text { flex: 1; margin: 0; color: var(--mu-text-muted); line-height: 1.9; }

.mu-scholar {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--mu-radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 184, 0, .22), transparent 40%),
    linear-gradient(145deg, var(--mu-navy) 0%, var(--mu-navy-800) 60%, var(--mu-teal-700) 130%);
  box-shadow: var(--mu-shadow-md);
}
.mu-scholar .mu-texture { opacity: .06; }
.mu-scholar__num { margin: 0; color: var(--mu-gold); font-size: clamp(2.4rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.1; }
.mu-scholar__title { margin: .2rem 0 .6rem; color: #fff; font-size: 1.35rem; font-weight: var(--mu-fw-bold); }
.mu-scholar__text { flex: 1; margin: 0 0 1.25rem; color: var(--mu-on-dark); line-height: 1.85; }
.mu-scholar__link { color: var(--mu-teal-300); }
.mu-scholar__link:hover { color: #fff; }

/* =========================================================
   P3 — Admissions: three real steps + closing band
   ========================================================= */
.mu-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.mu-steps::before {
  /* dashed gold path linking the step numbers */
  content: "";
  position: absolute;
  top: 36px;
  inset-inline: 16%;
  border-top: 2px dashed rgba(245, 184, 0, .7);
}
.mu-step {
  position: relative;
  padding: 0 1rem;
  text-align: center;
}
.mu-step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--mu-teal-700);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(3, 117, 139, .28);
}
.mu-step:nth-child(2) .mu-step__num { background: var(--mu-navy); box-shadow: 0 12px 28px rgba(0, 47, 108, .28); }
.mu-step:nth-child(3) .mu-step__num { background: var(--mu-gold); color: var(--mu-navy-950); box-shadow: 0 12px 28px rgba(245, 184, 0, .3); }
.mu-step__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 0 .5rem;
  color: var(--mu-navy);
  font-size: 1.2rem;
  font-weight: var(--mu-fw-bold);
}
.mu-step__title .ti { color: var(--mu-teal); font-size: 1.35rem; }
.mu-step__text { max-width: 30ch; margin: 0 auto; color: var(--mu-text-muted); line-height: 1.85; }

.mu-cta-band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 3.25rem);
  border-radius: var(--mu-radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 8% 110%, rgba(245, 184, 0, .18), transparent 32%),
    linear-gradient(120deg, var(--mu-navy) 0%, var(--mu-navy-800) 45%, var(--mu-teal-700) 100%);
  box-shadow: var(--mu-shadow-lg);
}
.mu-cta-band .mu-texture { opacity: .06; }
.mu-cta-band__title { margin: 0 0 .35rem; color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: var(--mu-fw-bold); line-height: 1.45; }
.mu-cta-band__text { margin: 0; color: var(--mu-on-dark); }
.mu-cta-band__actions { display: flex; flex: none; flex-wrap: wrap; gap: .8rem; }

/* =========================================================
   P3 — Student portals (dark section)
   ========================================================= */
.mu-portals__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mu-portal {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--mu-radius-lg);
  background: rgba(255, 255, 255, .06);
  transition: border-color var(--mu-dur) ease, background-color var(--mu-dur) ease, transform var(--mu-dur) var(--mu-ease);
}
.mu-portal:hover { transform: translateY(-4px); border-color: rgba(95, 208, 227, .5); background: rgba(255, 255, 255, .09); }
.mu-portal__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: rgba(95, 208, 227, .14);
  color: var(--mu-teal-300);
  font-size: 1.8rem;
}
.mu-portals__grid > li:nth-child(3) .mu-portal__icon { background: rgba(245, 184, 0, .14); color: var(--mu-gold); }
.mu-portal__tag {
  position: absolute;
  top: 1.4rem;
  inset-inline-end: 1.4rem;
  padding: .1rem .6rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--mu-radius-pill);
  color: var(--mu-on-dark-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.mu-portal__title { margin: 0 0 .5rem; color: #fff; font-size: 1.25rem; font-weight: var(--mu-fw-bold); }
.mu-portal__text { flex: 1; margin: 0 0 1.5rem; color: var(--mu-on-dark); line-height: 1.85; }
.mu-portal__link { color: var(--mu-teal-300); }
.mu-portal__link:hover { color: #fff; }

/* =========================================================
   P3 — FAQ
   ========================================================= */
.mu-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.mu-faq__aside { position: sticky; top: calc(var(--mu-header-h) + 1.5rem); }
.mu-faq__help {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border-radius: var(--mu-radius-lg);
  background: var(--mu-navy);
  color: #fff;
  box-shadow: var(--mu-shadow-md);
}
.mu-faq__help strong { display: block; margin-bottom: .3rem; font-size: 1.1rem; }
.mu-faq__help p { margin: 0 0 1.1rem; color: var(--mu-on-dark); font-size: .95rem; }
.mu-faq__help .mu-btn { width: 100%; }

.mu-faq__list { display: grid; gap: .85rem; }
.mu-faq__item {
  border: 1px solid var(--mu-border);
  border-radius: var(--mu-radius-md);
  background: #fff;
  transition: border-color var(--mu-dur) ease, box-shadow var(--mu-dur) ease;
}
.mu-faq__item[open] { border-color: rgba(4, 138, 164, .45); box-shadow: var(--mu-shadow-sm); }
.mu-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: .9rem 1.25rem;
  color: var(--mu-navy);
  font-size: 1.05rem;
  font-weight: var(--mu-fw-bold);
  list-style: none;
  cursor: pointer;
}
.mu-faq__item summary::-webkit-details-marker { display: none; }
.mu-faq__item summary:focus-visible { border-radius: var(--mu-radius-md); }
.mu-faq__toggle {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mu-teal-100);
  transition: background-color var(--mu-dur) ease;
}
.mu-faq__toggle::before,
.mu-faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--mu-teal-700);
  transform: translate(-50%, -50%);
  transition: transform var(--mu-dur) ease, background-color var(--mu-dur) ease;
}
.mu-faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.mu-faq__item[open] .mu-faq__toggle { background: var(--mu-teal-700); }
.mu-faq__item[open] .mu-faq__toggle::before,
.mu-faq__item[open] .mu-faq__toggle::after { background: #fff; }
.mu-faq__item[open] .mu-faq__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.mu-faq__answer { padding: 0 1.25rem 1.2rem; color: var(--mu-text); line-height: 1.9; }
.mu-faq__answer p { margin: 0; }
.mu-faq__answer a { color: var(--mu-teal-700); font-weight: var(--mu-fw-semibold); }

/* =========================================================
   P3 — Footer
   ========================================================= */
.mu-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--mu-on-dark-muted);
  background: var(--mu-navy-950);
}
.mu-footer::before {
  /* thin gold line on the top edge */
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--mu-gold) 20%, var(--mu-gold) 80%, transparent);
  opacity: .75;
}
.mu-footer .mu-texture { opacity: .035; }
.mu-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-block: clamp(3.5rem, 6vw, 4.75rem) 2.5rem;
}
.mu-footer__brand img { display: block; width: 190px; height: auto; margin-bottom: 1.25rem; }
.mu-footer__brand p { max-width: 34ch; margin: 0 0 1.5rem; line-height: 1.9; }
.mu-footer__social { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.mu-footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color var(--mu-dur) ease, border-color var(--mu-dur) ease, color var(--mu-dur) ease;
}
.mu-footer__social a:hover { border-color: var(--mu-gold); background: var(--mu-gold); color: var(--mu-navy-950); }
.mu-footer__title { margin: 0 0 1.1rem; color: #fff; font-size: 1.05rem; font-weight: var(--mu-fw-bold); }
.mu-footer__title::after { content: ""; display: block; width: 28px; height: 2px; margin-top: .55rem; border-radius: 2px; background: var(--mu-gold); }
.mu-footer__links { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.mu-footer__links a { color: var(--mu-on-dark-muted); font-size: .95rem; text-decoration: none; transition: color var(--mu-dur) ease; }
.mu-footer__links a:hover { color: #fff; }
.mu-footer__contact li { display: flex; align-items: flex-start; gap: .55rem; }
.mu-footer__contact .ti { margin-top: .3rem; color: var(--mu-teal-300); }
.mu-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem;
}
.mu-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.mu-footer__bottom a { color: var(--mu-on-dark-muted); text-decoration: none; }
.mu-footer__operator { display: block; margin-top: .2rem; font-size: .85em; opacity: .85; }
.mu-footer__bottom a:hover { color: #fff; }

/* =========================================================
   P3 — Responsive
   ========================================================= */
@media (max-width: 1199.98px) {
  .mu-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mu-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
  .mu-highlights__grid { grid-template-columns: 1fr; }
  .mu-cta-band { flex-direction: column; align-items: flex-start; }
  .mu-portals__grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .mu-faq__grid { grid-template-columns: 1fr; }
  .mu-faq__aside { position: static; }
}

@media (max-width: 767px) {
  .mu-steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .mu-steps::before { top: 36px; bottom: 36px; inset-inline: auto; inset-inline-start: 35px; border-top: 0; border-inline-start: 2px dashed rgba(245, 184, 0, .7); }
  .mu-step { display: grid; grid-template-columns: 72px 1fr; column-gap: 1rem; padding: 0; text-align: start; }
  .mu-step__num { grid-row: span 2; margin: 0; }
  .mu-step__title { justify-content: flex-start; }
  .mu-step__text { max-width: none; margin: 0; }
  .mu-cta-band__actions { width: 100%; flex-direction: column; }
  .mu-cta-band__actions .mu-btn { width: 100%; }
  .mu-footer__grid { grid-template-columns: 1fr 1fr; }
  .mu-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Section reveal — added by masar-site.js only when motion is allowed.
   Uses `translate`, not `transform`, so card hover lifts keep working.
   ========================================================= */
.mu-reveal-ready .mu-reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity .5s ease, translate .5s var(--mu-ease);
  transition-delay: var(--mu-reveal-delay, 0s);
}
.mu-reveal-ready .mu-reveal.is-visible { opacity: 1; translate: none; }

/* =========================================================
   Hero upgrade — admissions badge, calendar card, drawn path
   ========================================================= */
.mu-hero__date {
  position: absolute;
  z-index: 3;
  top: 3%;
  inset-inline-end: 0;
  display: grid;
  justify-items: center;
  width: 108px;
  overflow: hidden;
  border-radius: var(--mu-radius-md);
  background: #fff;
  color: var(--mu-navy);
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 8, 24, .35);
  animation: mu-rise .7s var(--mu-ease) .5s both;
  transition: transform var(--mu-dur) var(--mu-ease);
}
.mu-hero__date:hover { transform: translateY(-3px); }
.mu-hero__date-month {
  width: 100%;
  padding: .3rem 0;
  background: var(--mu-navy);
  color: #fff;
  font-size: .78rem;
  font-weight: var(--mu-fw-bold);
  text-align: center;
}
.mu-hero__date-day { font-size: 2.3rem; font-weight: 800; line-height: 1.15; margin-top: .2rem; }
.mu-hero__date-day .ti { display: block; padding-block: .15rem; color: var(--mu-teal-700); font-size: 2rem; }
.mu-hero__date-label {
  width: 100%;
  padding: .25rem 0 .5rem;
  border-top: 2px solid var(--mu-gold);
  margin-top: .2rem;
  color: var(--mu-text-muted);
  font-size: .76rem;
  font-weight: var(--mu-fw-semibold);
  text-align: center;
}

.mu-hero__path-gold {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: mu-draw 2.2s var(--mu-ease) .35s forwards;
}
@keyframes mu-draw { to { stroke-dashoffset: 0; } }

/* Soft diagonal light across the hero */
.mu-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(95, 208, 227, .06) 50%, transparent 65%);
  pointer-events: none;
}

@media (max-width: 767px) {
  .mu-hero__date { width: 88px; top: 0; inset-inline-end: 0; }
  .mu-hero__date-day { font-size: 1.9rem; }
}

/* =========================================================
   Animated counters (masar-site.js) — ease-out count, gold rule grows
   ========================================================= */
.mu-count { font-variant-numeric: tabular-nums; }
.mu-stat__num { position: relative; padding-bottom: .35rem; }
.mu-stat__num::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--mu-gold);
  transition: width 1.6s var(--mu-ease);
}
html[dir="rtl"] .mu-stat__num::after { right: 0; }
html[dir="ltr"] .mu-stat__num::after { left: 0; }
.mu-counters-ready .mu-stats:not(.is-counted) .mu-stat__num::after { width: 0; }

/* =========================================================
   Hero v2 — atmosphere (light, depth) and the lecture on screen
   ========================================================= */
/* Light comes from the visual side, deepening to navy under the text (RTL: text on the right) */
.mu-hero {
  background:
    radial-gradient(ellipse 55% 70% at 22% 52%, rgba(95, 208, 227, .30), transparent 62%),
    radial-gradient(circle at 6% 8%, rgba(245, 184, 0, .14), transparent 30%),
    radial-gradient(circle at 92% 100%, rgba(4, 138, 164, .18), transparent 32%),
    linear-gradient(to left, var(--mu-navy-950) 0%, #00295A 38%, #06447A 72%, #0A5A8C 100%);
}
html[dir="ltr"] .mu-hero {
  background:
    radial-gradient(ellipse 55% 70% at 78% 52%, rgba(95, 208, 227, .30), transparent 62%),
    radial-gradient(circle at 94% 8%, rgba(245, 184, 0, .14), transparent 30%),
    linear-gradient(to right, var(--mu-navy-950) 0%, #00295A 38%, #06447A 72%, #0A5A8C 100%);
}
.mu-hero__atmo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mu-orb { position: absolute; border-radius: 50%; filter: blur(28px); opacity: .7; }
.mu-orb--1 { width: 220px; height: 220px; top: 8%; inset-inline-end: 30%; background: rgba(95, 208, 227, .35); }
.mu-orb--2 { width: 140px; height: 140px; bottom: 18%; inset-inline-end: 6%; background: rgba(245, 184, 0, .22); }
.mu-orb--3 { width: 90px; height: 90px; top: 22%; inset-inline-end: 8%; background: rgba(255, 255, 255, .16); filter: blur(18px); }
.mu-orb--4 { width: 300px; height: 300px; top: -8%; inset-inline-start: 18%; background: rgba(4, 138, 164, .20); filter: blur(60px); }
/* Perspective floor under the laptop: gives the scene a "stage" and depth */
.mu-hero__floor {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 62%;
  height: 42%;
  opacity: .35;
}
/* Soft vignette so the edges settle into navy */
.mu-hero__atmo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 20, 48, .45) 100%);
}

/* Laptop: larger, turned slightly toward the text, lit by its own screen */
.mu-device {
  width: min(100%, 600px);
  filter: drop-shadow(0 40px 60px rgba(0, 8, 24, .5));
}
.mu-device__screen {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 0 90px rgba(95, 208, 227, .28);
}
.mu-device__shadow {
  position: absolute;
  inset-inline: 6%;
  bottom: -26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 10, 30, .55), transparent 70%);
  filter: blur(6px);
}

@media (max-width: 991.98px) {
  .mu-hero__floor { width: 100%; height: 30%; }
}

/* Lecturer photo inside the video player (set --mu-lecturer on .mu-app__player when the image exists) */
.mu-app__player[style*="--mu-lecturer"] {
  background:
    linear-gradient(0deg, rgba(0, 27, 61, .55), rgba(0, 27, 61, 0) 45%),
    var(--mu-lecturer) center 20% / cover no-repeat;
}
.mu-app__player[style*="--mu-lecturer"]::before { display: none; }

/* =========================================================
   Hero — photo (student on a Dubai rooftop, following a recorded lecture)
   Each language has its own photo with the student on the side away from the text
   (inline-end), so nothing is mirrored and the skyline stays true.
   ========================================================= */
.mu-hero--photo { background: var(--mu-navy-950); }
.mu-hero--photo::after { display: none; }
.mu-hero--photo .mu-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 600px; }

.mu-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  container-type: size;   /* the badge is placed in photo coordinates (cqw/cqh) */
}
.mu-hero__photo { position: absolute; inset: 0; }
.mu-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
html[dir="ltr"] .mu-hero__photo img { object-position: right center; }
.mu-hero__media::after {
  /* navy veil under the text, clear over the student and the skyline */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(0, 27, 61, .92) 0%, rgba(0, 27, 61, .78) 30%, rgba(0, 27, 61, .25) 55%, rgba(0, 27, 61, 0) 72%),
    linear-gradient(to top, rgba(0, 27, 61, .55) 0%, rgba(0, 27, 61, 0) 35%);
}
html[dir="ltr"] .mu-hero__media::after {
  background:
    linear-gradient(to right, rgba(0, 27, 61, .92) 0%, rgba(0, 27, 61, .78) 30%, rgba(0, 27, 61, .25) 55%, rgba(0, 27, 61, 0) 72%),
    linear-gradient(to top, rgba(0, 27, 61, .55) 0%, rgba(0, 27, 61, 0) 35%);
}

/* ---------- Study-mode badge, pointing at the laptop screen ----------
   Laptop screen, measured on each photo as fractions of its width from the student's side
   (inline-end) and of its height from the top:
     --lap-c centre · --lap-in edge toward the text · --lap-out outer edge · --lap-top top edge
   --mu-iw is the rendered photo width (object-fit: cover), so the badge follows the laptop
   whatever the hero size. */
.mu-hero__badge {
  --lap-c: .43; --lap-in: .505; --lap-out: .354; --lap-top: .558;   /* ar photo */
  --lap-c-m: .692; --lap-top-m: .43;                                  /* ar phone crop, 5:4 box */
  --mu-iw: max(100cqw, 177.68cqh);
  position: absolute;
  z-index: 1;
  top: calc(50cqh + (var(--lap-top) - .5) * .5628 * var(--mu-iw) - .9rem);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .5rem 1rem;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(0, 27, 61, .58);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 10, 30, .3);
  color: #fff;
  font-size: .86rem;
  font-weight: var(--mu-fw-semibold);
  line-height: 1.4;
  white-space: nowrap;
  translate: 0 -100%;
  animation: mu-badge-in .7s var(--mu-ease) .5s both;
}
html[dir="ltr"] .mu-hero__badge {
  --lap-c: .3935; --lap-in: .463; --lap-out: .324; --lap-top: .5685;  /* en photo */
  --lap-c-m: .66; --lap-top-m: .441;                                  /* en phone crop */
}
.mu-hero__badge li { display: flex; align-items: center; gap: .45rem; }
.mu-hero__badge li + li { padding-inline-start: .75rem; border-inline-start: 1px solid rgba(255, 255, 255, .25); }
.mu-hero__badge .ti { color: var(--mu-gold); font-size: 1.05rem; }
.mu-hero__badge::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 12px;
  height: 7px;
  background: rgba(0, 27, 61, .58);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Wide screens: one line, centred a little toward the student, clear of the text */
@media (min-width: 1280px) {
  .mu-hero__badge { inset-inline-end: calc((var(--lap-c) - .02) * var(--mu-iw)); translate: -50% -100%; }
  html[dir="ltr"] .mu-hero__badge { translate: 50% -100%; }
  .mu-hero__badge::after { inset-inline-end: calc(50% + .02 * var(--mu-iw) - 6px); }
}
/* Laptops (992–1279): two short lines, ending at the laptop's edge so they never reach the text */
@media (min-width: 992px) and (max-width: 1279.98px) {
  .mu-hero__badge {
    inset-inline-start: calc(100cqw - (var(--lap-in) - .015) * var(--mu-iw));
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    padding: .55rem .9rem;
    border-radius: 14px;
    font-size: .82rem;
  }
  .mu-hero__badge li + li { padding: .3rem 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  .mu-hero__badge::after { inset-inline-start: calc((var(--lap-in) - .015 - var(--lap-c)) * var(--mu-iw) - 6px); }
}
/* Tablets: the photo is a banner with no text on it; the badge starts at the laptop and runs away from the student */
@media (min-width: 768px) and (max-width: 991.98px) {
  .mu-hero__badge { inset-inline-end: calc((var(--lap-out) + .015) * var(--mu-iw)); }
  .mu-hero__badge::after { inset-inline-end: calc((var(--lap-c) - var(--lap-out) - .015) * var(--mu-iw) - 6px); }
}
/* Phones: compact, held 10px from the edge, the pointer still on the laptop */
@media (max-width: 767px) {
  .mu-hero__badge {
    top: calc(var(--lap-top-m) * 100cqw - .6rem);
    inset-inline-start: 10px;
    gap: .5rem;
    padding: .35rem .7rem;
    font-size: .74rem;
  }
  .mu-hero__badge li + li { padding-inline-start: .5rem; }
  .mu-hero__badge .ti { font-size: .9rem; }
  .mu-hero__badge::after { inset-inline-start: calc((1 - var(--lap-c-m)) * 100cqw - 10px - 6px); }
}
@keyframes mu-badge-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mu-hero__badge { animation: none; }
}

@media (max-width: 991.98px) {
  /* Tablets and phones: the photo becomes a banner above the text so the student stays
     visible, fading into the navy under the title instead of sitting behind the copy. */
  .mu-hero--photo .mu-hero__grid { grid-template-columns: 1fr; min-height: 0; margin-top: -3.5rem; padding-top: 0; }
  .mu-hero__media {
    position: relative;
    aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
  .mu-hero__media::after { display: none; }
  .mu-hero__photo img,
  html[dir="ltr"] .mu-hero__photo img { object-position: center 70%; }
}
@media (max-width: 767px) {
  .mu-hero__media { aspect-ratio: 5 / 4; }
}

