/* Academic homepage — refined polish
   Primary #1e3a5f · Gold #c9a227 · Mist #e8f4f8 · Ink #1a1a2e */

:root {
  --brand-primary: #1e3a5f;
  --brand-secondary: #c9a227;
  --brand-accent: #e8f4f8;
  --brand-text: #1a1a2e;
  --brand-bg: #ffffff;
}

/* Preloader — minimal, fast exit */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .35s ease, visibility .35s ease;
}
.site-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-preloader__inner { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.site-preloader__logo { width: 64px; height: 64px; object-fit: contain; }
.site-preloader__bar {
  width: 88px; height: 2px; border-radius: 999px; background: #e8f4f8; overflow: hidden;
}
.site-preloader__bar span {
  display: block; height: 100%; width: 45%;
  background: var(--brand-primary);
  animation: preloaderSlide .9s ease-in-out infinite;
}
@keyframes preloaderSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

.home-page--academic .section-cta {
  margin-top: 1.75rem;
  text-align: center;
}
.home-page--academic .btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.35rem;
  border: 1.5px solid rgba(30, 58, 95, .22);
  border-radius: 999px;
  color: var(--brand-primary);
  font-weight: 750;
  background: #fff;
}
.home-page--academic .btn-outline-primary:hover {
  background: var(--brand-accent);
  border-color: var(--brand-primary);
}

@media (max-width: 1100px) {
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .fac-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .site-preloader__bar span { animation: none; width: 100%; }
}

/* Header polish */
.header .logo-icon { width: 52px; height: 52px; }
.header .logo-main { color: var(--brand-primary); font-size: 1.15rem; font-weight: 900; }
.header .logo-sub { color: #6b7c93; font-weight: 600; letter-spacing: .02em; }
.header .btn-apply {
  background: var(--brand-secondary);
  color: #1a1a2e;
  padding: .55rem 1.05rem;
  font-size: .9rem;
  box-shadow: none;
}
.header .btn-apply:hover {
  background: #b8911f;
  color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(201, 162, 39, .22);
  transform: translateY(-1px);
}
.topbar { background: var(--brand-primary); }

/* Sticky glass header on scroll (site-wide) */
.header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 999;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, border-color .35s ease;
}
.header.scrolled {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(239, 246, 255, 0.62) 100%
  ) !important;
  backdrop-filter: blur(20px) saturate(1.45) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.45) !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12) !important;
  box-shadow:
    0 12px 36px rgba(12, 31, 69, 0.12),
    0 0 0 1px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
.header.scrolled .btn-apply {
  background: var(--brand-secondary) !important;
  color: #1a1a2e !important;
  box-shadow: 0 4px 12px rgba(201, 162, 39, .2) !important;
}
html.neon-scrolled .topbar {
  background: rgba(12, 31, 69, 0.88) !important;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}



/* Home shell */
.home-page.home-page--academic {
  --home-scroll-offset: calc(var(--topbar-h) + var(--header-h));
  color: var(--brand-text);
  background: #fff;
  overflow-x: clip;
}
html:has(.home-page--academic),
body:has(.home-page--academic) {
  overflow-x: hidden;
}
.home-page--academic .section {
  padding: clamp(3.25rem, 6vw, 5rem) 0;
}
.home-page--academic .section-eyebrow {
  margin: 0 0 .45rem;
  color: var(--brand-secondary);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.home-page--academic .section-title {
  color: var(--brand-primary);
  margin-bottom: .65rem;
  letter-spacing: -.02em;
}
.home-page--academic .section-desc {
  color: #5b677a;
  max-width: 46ch;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 600;
}
.home-page--academic .section-header { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.55rem;
  background: var(--brand-secondary);
  color: #1a1a2e !important;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(201, 162, 39, .18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-gold:hover {
  background: #b8911f;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201, 162, 39, .22);
}
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.55rem;
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.14);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border: 1.5px solid rgba(30, 58, 95, .25);
  color: var(--brand-primary) !important;
  font-weight: 750;
  border-radius: 999px;
  background: #fff;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.btn-outline-navy:hover {
  border-color: var(--brand-primary);
  background: var(--brand-accent);
  transform: translateY(-1px);
}

/* ── Hero: cinematic landscape, content mid-left ── */
.hero--academic {
  position: relative;
  min-height: clamp(560px, 78vh, 740px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #12263f;
}
.hero--academic .hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero--academic .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: none;
  max-width: none;
}
.hero--academic .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 38, 63, .72) 0%, rgba(18, 38, 63, .38) 48%, rgba(18, 38, 63, .12) 100%),
    linear-gradient(180deg, rgba(18, 38, 63, .08) 0%, rgba(18, 38, 63, .28) 100%);
}
.hero--academic .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(4.5rem, 8vw, 6rem) clamp(4.5rem, 8vw, 5.5rem);
  text-align: start;
}
.hero--academic .hero-copy { max-width: 620px; flex: 1 1 auto; }
.hero--academic .hero-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: .35rem .8rem .35rem .4rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #f3e6b5;
  font-weight: 750;
  font-size: .88rem;
}
.hero--academic .hero-brand img {
  width: 28px; height: 28px; object-fit: contain; border-radius: 50%;
  background: #fff;
}
.hero--academic .hero-title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.28;
  margin: 0 0 1rem;
  color: #fff;
  max-width: 18ch;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero--academic .hero-desc {
  margin: 0 0 1.6rem;
  max-width: 42ch;
  font-size: clamp(.98rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(0,0,0,.2);
}
.hero--academic .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.hero--academic .hero-scroll { display: none; }

/* Hero left seal — atmospheric brand balance */
.hero--academic .hero-aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-inline-end: clamp(.5rem, 3vw, 2rem);
  pointer-events: none;
  user-select: none;
}
.hero--academic .hero-seal {
  position: relative;
  width: clamp(148px, 16vw, 196px);
  height: clamp(148px, 16vw, 196px);
  display: grid;
  place-items: center;
}
.hero--academic .hero-seal__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .28) 0%, rgba(201, 162, 39, .08) 42%, transparent 70%);
  filter: blur(2px);
  animation: heroSealPulse 4.8s ease-in-out infinite;
}
.hero--academic .hero-seal__ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 230, 181, .55);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 0 24px rgba(201, 162, 39, .12);
}
.hero--academic .hero-seal__ring--outer {
  inset: 0;
  border-color: rgba(255,255,255,.22);
  border-style: dashed;
  animation: heroSealSpin 28s linear infinite;
  box-shadow: none;
}
.hero--academic .hero-seal__logo {
  position: relative;
  z-index: 1;
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  padding: .55rem;
  box-shadow:
    0 10px 28px rgba(0,0,0,.22),
    0 0 0 6px rgba(255,255,255,.08);
}
.hero--academic .hero-aside__motto {
  margin: 0;
  color: rgba(243, 230, 181, .92);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-shadow: 0 1px 12px rgba(0,0,0,.28);
}
.hero--academic .hero-aside__line {
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.85), transparent);
}
@keyframes heroSealSpin {
  to { transform: rotate(360deg); }
}
@keyframes heroSealPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* ── Stats strip ── */
.stats-section--academic {
  background: #fff;
  padding: 0 !important;
  position: relative;
  z-index: 5;
  margin-top: -2.25rem;
}
body:has(.home-page--academic) .ai-assistant-widget {
  z-index: 40;
}
.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid rgba(30, 58, 95, .1);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(30, 58, 95, .1);
  overflow: hidden;
}
.stat-card {
  text-align: center;
  padding: 1.35rem 1rem;
  border-inline-start: 1px solid rgba(30, 58, 95, .08);
  transition: background .2s ease;
}
.stat-card:first-child { border-inline-start: 0; }
.stat-card:hover { background: var(--brand-accent); }
.stat-card__icon {
  width: 42px; height: 42px; margin: 0 auto .65rem;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-accent);
  color: var(--brand-primary);
  font-size: 1.05rem;
}
.stat-card .stat-num {
  display: inline;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 900;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-card .stat-suffix {
  color: var(--brand-secondary);
  font-weight: 800;
  font-size: 1rem;
  margin-inline-start: 2px;
}
.stat-card .stat-label {
  display: block;
  margin-top: .4rem;
  font-size: .84rem;
  font-weight: 700;
  color: #5b677a;
}

/* ── Quick links ── */
.quick-links--academic {
  background: #fff;
  padding-block: clamp(2.5rem, 4vw, 3.25rem) !important;
}
.ql-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .9rem;
}
.ql-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 124px;
  padding: 1.15rem .75rem;
  text-align: center;
  text-decoration: none;
  color: var(--brand-primary);
  background: #fff;
  border: 1px solid rgba(30, 58, 95, .14);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(30, 58, 95, .04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ql-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, .5);
  box-shadow: 0 12px 28px rgba(30, 58, 95, .1);
  color: var(--brand-primary);
}
.ql-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-primary);
  color: #fff;
  font-size: 1.12rem;
  transition: background .2s ease, color .2s ease;
}
.ql-card:hover .ql-card__icon {
  background: var(--brand-secondary);
  color: #1a1a2e;
}
.ql-card__label {
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.35;
  color: var(--brand-primary);
}

/* Faculties — clean academic cards (no neon) */
.faculties-section--academic {
  background: #f5f8fb;
}
.fac-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.fac-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(30, 58, 95, .1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(30, 58, 95, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.fac-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 39, .4);
  box-shadow: 0 16px 36px rgba(30, 58, 95, .12);
}
.fac-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1e3a5f center/cover no-repeat;
}
.fac-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(18,38,63,.45) 100%);
}
.fac-card__icon {
  position: absolute;
  z-index: 1;
  inset-inline-start: 1rem;
  bottom: 1rem;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-primary);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.fac-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.fac-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--brand-primary);
  line-height: 1.4;
}
.fac-card__body p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.65;
  color: #5b677a;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.fac-card__dean {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(30, 58, 95, .08);
  font-size: .8rem;
  font-weight: 700;
  color: #6b7c93;
}
.fac-card__dean i { color: var(--brand-secondary); }

/* Timeline */
.calendar-section--academic { background: #fff; }
.timeline-academic {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.timeline-academic__intro .section-title { text-align: start; }
.timeline-academic__intro .section-desc { margin-inline: 0; text-align: start; }
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline-list::before {
  content: '';
  position: absolute;
  top: .4rem; bottom: .4rem;
  inset-inline-start: 1.05rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-secondary), rgba(30,58,95,.12));
}
.tl-item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: .9rem;
  margin-bottom: .95rem;
}
.tl-item__dot {
  width: 2.15rem; height: 2.15rem;
  border-radius: 999px;
  display: grid; place-items: center;
  background: #fff;
  border: 2.5px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: .65rem;
  z-index: 1;
}
.tl-item--urgent .tl-item__dot { border-color: #b33b2e; color: #b33b2e; }
.tl-item--upcoming .tl-item__dot { border-color: var(--brand-secondary); color: #9a7a15; }
.tl-item--standard .tl-item__dot { border-color: #3a7a96; color: #3a7a96; }
.tl-item__card {
  background: #f8fafc;
  border: 1px solid rgba(30, 58, 95, .08);
  border-radius: 14px;
  padding: .9rem 1.05rem;
  transition: background .2s ease, box-shadow .2s ease;
}
.tl-item__card:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 58, 95, .08);
}
.tl-item__meta {
  display: flex; flex-wrap: wrap; gap: .4rem .7rem;
  align-items: center; margin-bottom: .35rem;
}
.tl-item__badge {
  display: inline-flex;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
}
.tl-item--urgent .tl-item__badge { background: #fdecea; color: #9e3428; }
.tl-item--upcoming .tl-item__badge { background: #fbf4dc; color: #8a6d12; }
.tl-item--standard .tl-item__badge { background: #e7f2f7; color: #1f5d78; }
.tl-item__when { font-size: .78rem; font-weight: 700; color: #6b7c93; }
.tl-item__title {
  margin: 0;
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 800;
  line-height: 1.4;
}
.tl-item__text {
  margin: .35rem 0 0;
  font-size: .86rem;
  color: #5b677a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News */
.news-section--academic { background: linear-gradient(180deg, #f7fafc, #fff); }
.news-grid-academic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.news-card-ac {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(30, 58, 95, .1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30, 58, 95, .04);
  transition: transform .22s ease, box-shadow .22s ease;
}
.news-card-ac:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(30, 58, 95, .1);
}
.news-card-ac__media {
  aspect-ratio: 16 / 10;
  background: var(--brand-accent);
  overflow: hidden;
}
.news-card-ac__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.news-card-ac:hover .news-card-ac__media img { transform: scale(1.04); }
.news-card-ac__placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--brand-primary); opacity: .35; font-size: 1.6rem;
}
.news-card-ac__body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex; flex-direction: column; gap: .45rem; flex: 1;
}
.news-card-ac__meta {
  display: flex; justify-content: space-between; gap: .4rem;
  font-size: .72rem; font-weight: 700; color: #6b7c93;
}
.news-card-ac__cat { color: var(--brand-secondary); }
.news-card-ac__title {
  margin: 0;
  font-size: .98rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-ac__excerpt {
  margin: 0;
  font-size: .84rem;
  color: #5b677a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-card-ac__more {
  margin-top: .25rem;
  font-size: .84rem;
  font-weight: 800;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.news-card-ac__more:hover { color: #9a7a15; }

/* Testimonials — RTL disciplined, calm academic panel */
.testimonials-section--academic {
  background: linear-gradient(180deg, #f8fafc, #fff);
  color: var(--brand-text);
  direction: rtl;
}
.testimonials-section--academic .section-header { text-align: center; }
.testimonials-section--academic .section-desc { margin-inline: auto; }
.testimonials-slider-ac {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  direction: rtl;
  border-radius: 20px;
}
.testimonials-track-ac {
  display: flex;
  direction: rtl;
  gap: 1rem;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.testimonial-card-ac {
  min-width: calc((100% - 2rem) / 3);
  flex: 0 0 calc((100% - 2rem) / 3);
  width: calc((100% - 2rem) / 3);
  max-width: none;
  padding: 0;
  direction: rtl;
}
@media (max-width: 900px) {
  .testimonial-card-ac {
    min-width: 100%;
    flex-basis: 100%;
    width: 100%;
  }
  .testimonials-track-ac { gap: 0; }
}
@media (max-width: 640px) {
  .testimonial-card-ac {
    min-width: 100%;
    flex-basis: 100%;
    width: 100%;
  }
  .testimonials-track-ac { gap: 0; }
}
.tc-ac-panel {
  text-align: center;
  background: #fff;
  border: 1px solid rgba(30, 58, 95, .1);
  border-radius: 20px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: 0 10px 30px rgba(30, 58, 95, .06);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tc-ac-stars {
  color: var(--brand-secondary);
  margin: 0 auto 1rem;
  letter-spacing: 0;
  font-size: .95rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: .3rem;
  width: 100%;
  white-space: nowrap;
}
.tc-ac-quote {
  margin: 0 0 .95rem;
  font-size: clamp(.92rem, 1.5vw, 1.02rem);
  line-height: 1.7;
  font-weight: 600;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
}
.tc-ac-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: auto;
}
.tc-ac-avatar {
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--brand-primary); color: #fff;
  display: grid; place-items: center; font-weight: 900; overflow: hidden;
  font-size: 1.15rem;
  border: 3px solid var(--brand-accent);
}
.tc-ac-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tc-ac-author strong { display: block; font-size: .95rem; color: var(--brand-primary); }
.tc-ac-author span { font-size: .8rem; color: #6b7c93; }
.testimonials-controls-ac {
  display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 1.5rem;
  direction: rtl;
}

/* Keep testimonials compact on smaller screens */
@media (max-width: 900px) {
  .tc-ac-panel {
    padding: clamp(1.1rem, 3.2vw, 1.5rem);
  }
  .tc-ac-quote { -webkit-line-clamp: 3; }
}

@media (max-width: 640px) {
  .tc-ac-stars { margin: 0 auto .85rem; }
  .tc-ac-author { gap: .5rem; }
  .tc-ac-panel {
    padding: clamp(1rem, 4vw, 1.35rem);
  }
  .tc-ac-quote { -webkit-line-clamp: 3; }
}
.testimonials-controls-ac button {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1.5px solid rgba(30, 58, 95, .18); color: var(--brand-primary);
  background: #fff;
  display: grid; place-items: center;
}
.testimonials-controls-ac button:hover {
  background: var(--brand-primary); border-color: var(--brand-primary); color: #fff;
}
.testimonials-dots-ac { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.testimonials-dots-ac button {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(30, 58, 95, .2); border: none; padding: 0;
}
.testimonials-dots-ac button.is-active {
  width: 20px; background: var(--brand-secondary);
}

/* CTA */
.admissions-cta--academic { background: #fff; padding-top: 2.5rem !important; }
.admissions-cta--academic .acta-board {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(201,162,39,.18), transparent 50%),
    linear-gradient(125deg, #1e3a5f, #152a45);
}
.admissions-cta--academic .acta-board__eyebrow { color: #e6d08a; margin: 0 0 .35rem; font-weight: 800; font-size: .8rem; }
.admissions-cta--academic .acta-board__title {
  margin: 0 0 .5rem; color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}
.admissions-cta--academic .acta-board__desc {
  margin: 0; color: rgba(255,255,255,.78); max-width: 42ch; line-height: 1.65; font-weight: 600;
}
.admissions-cta--academic .acta-board__actions { display: flex; flex-wrap: wrap; gap: .65rem; }

/* Contact */
.contact-quick--academic { background: var(--brand-accent); }
.cq-academic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
}
.cq-academic .section-title { text-align: start; }
.cq-academic__list {
  list-style: none; margin: 1.1rem 0; padding: 0;
  display: flex; flex-direction: column; gap: .7rem;
}
.cq-academic__item {
  display: flex; gap: .75rem; align-items: flex-start;
  background: #fff; border-radius: 12px; padding: .8rem .9rem;
  border: 1px solid rgba(30, 58, 95, .08);
}
.cq-academic__icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand-accent); color: var(--brand-primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.cq-academic__item h3 { margin: 0 0 .1rem; font-size: .82rem; color: var(--brand-primary); }
.cq-academic__item p,
.cq-academic__item a { margin: 0; font-size: .88rem; color: #5b677a; font-weight: 600; }
.cq-academic__item a:hover { color: #9a7a15; }
.cq-academic__social { display: flex; gap: .45rem; margin-bottom: .9rem; }
.cq-academic__social a {
  width: 38px; height: 38px; border-radius: 999px;
  background: #fff; color: var(--brand-primary);
  display: grid; place-items: center;
  border: 1px solid rgba(30, 58, 95, .1);
}
.cq-academic__social a:hover { background: var(--brand-primary); color: #fff; }
.cq-academic__map {
  border-radius: 16px; overflow: hidden; min-height: 300px; background: #fff;
  border: 1px solid rgba(30, 58, 95, .1);
  box-shadow: 0 10px 28px rgba(30, 58, 95, .08);
}

/* Footer accents */
.footer--board {
  --ft-bg: #12263f;
  --ft-panel: #1e3a5f;
  --ft-blue: #c9a227;
  --ft-blue-strong: #c9a227;
}

/* Keep seal beside copy until tablet; style.css forces column under 1024px */
@media (max-width: 1024px) {
  .hero--academic .hero-inner {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    text-align: start;
  }
  .hero--academic .hero-actions { justify-content: flex-start; }
  .hero--academic .hero-aside {
    transform: scale(.92);
    margin-inline-end: 0;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .ql-cards { grid-template-columns: repeat(3, 1fr); }
  .news-grid-academic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .timeline-academic,
  .cq-academic { grid-template-columns: 1fr; }
  .stats-panel { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(3) { border-inline-start: 0; }
  .stat-card { border-top: 1px solid rgba(30, 58, 95, .08); }
  .stat-card:nth-child(-n+2) { border-top: 0; }
  .ql-cards { grid-template-columns: repeat(2, 1fr); }
  .hero--academic { min-height: 72vh; align-items: flex-end; }
  .hero--academic .hero-title { max-width: none; }
  .hero--academic .hero-inner {
    flex-direction: column !important;
    align-items: stretch;
    justify-content: flex-end;
  }
  .hero--academic .hero-aside {
    display: none;
  }
  .hero--academic .hero-overlay {
    background:
      linear-gradient(180deg, rgba(18,38,63,.2) 0%, rgba(18,38,63,.55) 48%, rgba(18,38,63,.86) 100%);
  }
}
@media (max-width: 640px) {
  .stats-section--academic { margin-top: -1.5rem; }
  .news-grid-academic { grid-template-columns: 1fr; }
  .hero--academic .hero-inner { padding-bottom: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ql-card, .news-card-ac, .stat-card, .fac-card { transition: none; }
  .testimonials-track-ac { transition: none; }
  .hero--academic .hero-seal__ring--outer,
  .hero--academic .hero-seal__glow { animation: none; }
}


/* Override leftover blue accents from home-polish */
.home-page--academic .section-eyebrow {
  color: var(--brand-secondary) !important;
}


/* ── Footer academic refresh (overrides footer-board) ── */
.footer--board {
  background:
    radial-gradient(ellipse 60% 45% at 90% -5%, rgba(201,162,39,.12), transparent 55%),
    linear-gradient(180deg, #12263f 0%, #0d1c31 100%);
}
.footer--board .footer-board {
  grid-template-columns: minmax(230px, 1.2fr) minmax(0, 1.9fr) minmax(240px, 1fr);
}


/* Footer polish pass 2 — RTL alignment + breathing room */
.footer--board .footer-brand__desc { text-align: start; }
.footer--board .footer-col ul { gap: .6rem; }
.footer--board .footer-col a { align-items: center; }
.footer--board .footer-col h3,
.footer--board .footer-contact h3 { padding-inline-end: .1rem; }
.footer--board .footer-social { margin-top: .35rem; }
.footer--board .footer-board { row-gap: 2rem; }
.footer--board .footer-contact__list { gap: .9rem; }
.footer--board .footer-contact__cta i { margin-inline-start: .1rem; }
@media (max-width: 900px) {
  .footer--board .footer-board { grid-template-columns: 1fr; }
  .footer--board .footer-nav { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .footer--board .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* Bilingual: language switcher links + LTR shell */
.lang-switcher .lang-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
body.ltr-body {
  direction: ltr;
  text-align: left;
}
body.ltr-body .skip-link { right: auto; left: 16px; }

/* English header: prevent overflow from long labels */
html[lang="en"] .header .header-inner,
body.ltr-body .header .header-inner {
  gap: .75rem;
}
html[lang="en"] .header .logo-text,
body.ltr-body .header .logo-text {
  max-width: 11.5rem;
}
html[lang="en"] .header .logo-main,
body.ltr-body .header .logo-main {
  font-size: 1.02rem;
  line-height: 1.15;
  white-space: nowrap;
}
html[lang="en"] .header .logo-sub,
body.ltr-body .header .logo-sub {
  font-size: .72rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="en"] .header .header-actions,
body.ltr-body .header .header-actions {
  gap: .65rem !important;
}
html[lang="en"] .header .nav-list,
body.ltr-body .header .nav-list {
  gap: 0;
}
html[lang="en"] .header .nav-link,
body.ltr-body .header .nav-link {
  padding: .55rem .55rem;
  font-size: .82rem;
  letter-spacing: 0;
}
html[lang="en"] .header .btn-apply,
body.ltr-body .header .btn-apply {
  padding: .5rem .9rem;
  font-size: .82rem;
}
html[lang="en"] .header .mega-menu,
body.ltr-body .header .mega-menu {
  right: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
}
html[lang="en"] .header .nav-item:hover .mega-menu,
body.ltr-body .header .nav-item:hover .mega-menu {
  transform: translateX(-50%) translateY(0);
}
html[lang="en"] .topbar-inner,
body.ltr-body .topbar-inner {
  flex-direction: row;
}
/* Keep contact cluster on the start side in LTR without mirroring names wrongly */
html[lang="en"] .footer-col a::before,
body.ltr-body .footer-col a::before {
  content: none;
}
@media (max-width: 1200px) {
  html[lang="en"] .header .nav-link,
  body.ltr-body .header .nav-link {
    padding: .5rem .4rem;
    font-size: .78rem;
  }
  html[lang="en"] .header .logo-sub,
  body.ltr-body .header .logo-sub {
    display: none;
  }
}


