/* ============================================================
   MODERN UNIVERSITY SYSTEM — Design System v2.0
   E-Learning / Online University Edition
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* ── East Africa University Official Brand Colors ── */
  --primary:       #0a2b4e;   /* EAU deep navy  */
  --primary-light: #001A33;   /* EAU darker navy */
  --accent:        #0a2b4e;   /* EAU navy (links/interactive) */
  --accent-hover:  #001A33;
  --gold:          #f5a623;   /* EAU golden amber */
  --gold-dark:     #d4891a;
  --text-dark:     #0F172A;
  --text-mid:      #475569;
  --text-light:    #94A3B8;
  --bg-light:      #F8FAFC;
  --bg-white:      #FFFFFF;
  --bg-dark:       #010d1a;   /* EAU very dark */
  --border:        #E2E8F0;
  --shadow:        0 4px 24px rgba(10,43,78,.08);
  --shadow-lg:     0 20px 60px rgba(10,43,78,.14);
  --radius:        14px;
  --radius-lg:     24px;
  --transition:    all .3s cubic-bezier(.4,0,.2,1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p { color: var(--text-mid); line-height: 1.75; }

/* --- Section Spacing --- */
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

/* --- Section Label --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg,#EFF6FF,#DBEAFE);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-divider {
  width: 48px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: .9rem 0 1.5rem;
}
.section-divider.centered { margin-left: auto; margin-right: auto; }
.text-gradient {
  background: linear-gradient(135deg, #b07708 0%, var(--gold-dark) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.uni-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
}
.uni-navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border), 0 8px 40px rgba(0,0,0,.07);
  padding: .75rem 0;
}
.uni-navbar .navbar-brand img {
  height: 46px;
  transition: var(--transition);
}
.uni-navbar .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .45rem .9rem !important;
  border-radius: 8px;
  transition: var(--transition);
}
.uni-navbar.scrolled .nav-link { color: var(--text-dark) !important; }
.uni-navbar .nav-link:hover,
.uni-navbar .nav-link.active {
  color: var(--accent) !important;
  background: rgba(10,43,78,.08);
}
.uni-navbar.scrolled .nav-link:hover { color: var(--accent) !important; }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 100px !important;
  padding: .55rem 1.4rem !important;
  font-weight: 600 !important;
  font-size: .88rem !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,43,78,.35) !important;
}
.navbar-toggler {
  border: none;
  padding: .35rem;
  color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
}
.uni-navbar.scrolled .navbar-toggler { color: var(--text-dark); background: var(--bg-light); }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991px) {
  .uni-navbar {
    background: rgba(11,30,59,.97);
    backdrop-filter: blur(24px);
    padding: .9rem 0;
  }
  .navbar-collapse {
    margin-top: .75rem;
    padding: 1rem 0 .5rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .uni-navbar.scrolled .navbar-collapse {
    border-top-color: var(--border);
  }
  .uni-navbar.scrolled .navbar-collapse .nav-link { color: var(--text-dark) !important; }
}

/* ============================================================
   HERO SECTION — Cinematic v2 (video-ready, full-screen)
   ============================================================ */

/* ── Shell ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #040c18;
  overflow: hidden;
}

/* ── Video background ── */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .45;
  z-index: 0;
  pointer-events: none;
}

/* ── Slider image fallback ── */
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 1.6s ease;
  z-index: 0;
}
.hero-bg-slide.active { opacity: .85; }

/* ── Overlay layers ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Strong at top (behind nav) and bottom (behind stats bar), lighter through
     the middle so the photo actually reads instead of disappearing */
  background:
    linear-gradient(to bottom,
      rgba(4,12,24,.65) 0%,
      rgba(4,12,24,.20) 30%,
      rgba(4,12,24,.35) 65%,
      rgba(4,12,24,.85) 100%),
    radial-gradient(ellipse 70% 55% at 50% 40%,
      rgba(4,12,24,.55) 0%,
      transparent 70%);
}

/* Noise texture on top */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .5;
  pointer-events: none;
}

/* ── Animated glow orbs ── */
.hero-orb-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: rgba(10,43,78,.18);
  top: -200px; right: -100px;
  animation: orb-drift 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: rgba(245,158,11,.1);
  bottom: -150px; left: -150px;
  animation: orb-drift 18s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: rgba(124,58,237,.12);
  top: 40%; left: 50%;
  animation: orb-drift 10s ease-in-out infinite;
  animation-delay: -5s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(20px,-30px) scale(1.06); }
  66%       { transform: translate(-15px,20px) scale(.95); }
}

/* ── Main content wrapper ── */
.hero-content-wrap {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 0;
}

/* ── Eyebrow badge ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.28);
  color: #FDE68A;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .42rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,.1); }
}
.hero-online-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: #86efac;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .38rem .95rem;
  border-radius: 100px;
}

/* ── Headline ── */
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.06;
  margin-bottom: 1.6rem;
  letter-spacing: -.03em;
  text-shadow: 0 4px 24px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.4);
}
.hero-title .gold-text {
  background: linear-gradient(110deg, #F59E0B 0%, #FDE68A 50%, #F59E0B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 4s linear infinite;
}
@keyframes shimmer-text {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Subtitle ── */
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 2.75rem;
  line-height: 1.8;
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

/* ── Program type pills ── */
.hero-program-types {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.25rem;
}
.hero-program-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 100px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
  backdrop-filter: blur(4px);
}
.hero-program-pill:hover {
  background: rgba(245,158,11,.18);
  border-color: rgba(245,158,11,.35);
  color: #FDE68A;
  text-decoration: none;
}

/* ── CTA buttons ── */
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0; }

/* ── Ken Burns drift on the active slide ── */
@keyframes heroKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.09); }
}
.hero-bg-slide.active { animation: heroKenBurns 6s ease-out forwards; }

/* ── Hero entrance animation (load-triggered, not scroll-triggered —
     hero is already in view on page load) ── */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-rise {
  opacity: 0;
  animation: heroRise .7s cubic-bezier(.16,1,.3,1) forwards;
}

/* ── Floating code terminal ── */
.hero-terminal {
  position: absolute;
  z-index: 2;
  top: 56vh;
  /* keep clear of the fixed chatbot/WhatsApp column at the bottom-right */
  right: clamp(96px, 9vw, 160px);
  width: 320px;
  background: #1A1B26;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  animation: heroRise .7s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: 1.1s;
}
.hero-terminal-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .9rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-terminal-bar span { width: 10px; height: 10px; border-radius: 50%; }
.hero-terminal-bar span:nth-child(1) { background: #FF5F56; }
.hero-terminal-bar span:nth-child(2) { background: #FFBD2E; }
.hero-terminal-bar span:nth-child(3) { background: #27C93F; }
.hero-terminal-title {
  margin-left: .6rem;
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  font-family: Consolas, Monaco, 'Courier New', monospace;
}
.hero-terminal-body {
  padding: 1.1rem 1.15rem;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: .78rem;
  line-height: 1.85;
  min-height: 148px;
  white-space: pre-wrap;
  word-break: break-word;
}
.hero-terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: #A5E844;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: heroCursorBlink 1s step-end infinite;
}
@keyframes heroCursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Only render the decorative terminal when the viewport is wide enough that
   it clears both the centered hero copy and the fixed chat-button column. */
@media (max-width: 1399px) { .hero-terminal { display: none; } }

/* ── Stats bar (bottom of hero) ── */
.hero-stats-bar {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.75rem 0;
  margin-top: 5rem;
}
.hero-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.hero-stat-item {
  text-align: center;
  padding: 0 3rem;
  position: relative;
}
.hero-stat-item + .hero-stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.14);
}
.hero-stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .4rem;
}

/* ── Scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.35);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: scroll-bounce 2.5s ease-in-out infinite;
}
.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .5; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ── Slide transition ── (keep old class compatibility) */
.hero-stats-row {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.12);
}

/* ── Video play button ── */
.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.hero-play-btn:hover { color: #FDE68A; text-decoration: none; }
.hero-play-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
}
.hero-play-btn:hover .hero-play-icon {
  background: rgba(245,158,11,.25);
  border-color: rgba(245,158,11,.5);
  transform: scale(1.08);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-title { font-size: 2.6rem; }
  .hero-sub   { font-size: .98rem; }
  .hero-stat-item { padding: 0 1.5rem; }
  .hero-stats-bar { margin-top: 3rem; }
}
@media (max-width: 575px) {
  .hero-title { font-size: 2.1rem; }
  .hero-stat-item { padding: .75rem 1.25rem; }
  .hero-stat-item + .hero-stat-item::before { display: none; }
  .hero-stats-inner { gap: 0; }
  .hero-scroll-hint { display: none; }
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
  background: #fff;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}
.feature-item:hover { background: var(--bg-light); border-color: var(--border); transform: translateY(-4px); }
.feature-icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg,#EFF6FF,#DBEAFE);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.feature-item h5 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.feature-item p { font-size: .875rem; color: var(--text-mid); margin: 0; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--bg-light); padding: 7rem 0; }
.about-visual { position: relative; }
.about-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-main-img img { width: 100%; height: 480px; object-fit: cover; }
.about-accent-img {
  position: absolute;
  bottom: -28px; right: -28px;
  width: 200px; height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow-lg);
}
.about-accent-img img { width: 100%; height: 100%; object-fit: cover; }
.about-exp-bubble {
  position: absolute;
  top: -20px; left: -20px;
  width: 124px; height: 124px;
  padding: 0 .6rem;
  background: var(--accent);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 12px 40px rgba(10,43,78,.45);
  border: 4px solid #fff;
}
.about-exp-bubble .num { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--gold); }
.about-exp-bubble .label { font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; opacity: .9; margin-top: .25rem; text-align: center; line-height: 1.25; }
.about-text { padding-left: 2.5rem; }
@media (max-width: 991px) { .about-text { padding-left: 0; margin-top: 3rem; } .about-accent-img { display: none; } .about-exp-bubble { display: none; } }
.about-text p { font-size: 1rem; color: var(--text-mid); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 575px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 12px rgba(11,30,59,.05);
  transition: var(--transition);
}
.mission-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mission-box h6 { font-size: .9rem; font-weight: 700; color: var(--accent); margin-bottom: .5rem; }
.mission-box p { font-size: .84rem; color: var(--text-mid); margin: 0; }

/* ============================================================
   PROGRAMS (COURSES ON HOME)
   ============================================================ */
.programs-home { padding: 7rem 0; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--gold) 0%, #FCD34D 48%, var(--gold-dark) 100%);
  padding: 6rem 0;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  top: -320px; right: -150px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  background: rgba(10,43,78,.08);
  border-radius: 50%;
  bottom: -160px; left: -80px;
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--primary); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; }
.cta-banner p { color: rgba(10,43,78,.72); font-size: 1.05rem; margin-top: .75rem; }

/* Buttons need a dark treatment to read on the gold background */
.cta-banner .btn-gold-uni {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 10px 28px -8px rgba(10,43,78,.45);
}
.cta-banner .btn-gold-uni:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.cta-banner .btn-outline-uni { color: var(--primary); border-color: rgba(10,43,78,.35); }
.cta-banner .btn-outline-uni:hover { background: rgba(10,43,78,.08); border-color: var(--primary); color: var(--primary); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--bg-light); padding: 7rem 0; }
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: .5rem;
  -webkit-overflow-scrolling: touch;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  min-width: 360px;
  max-width: 360px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex-shrink: 0;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(245,166,35,.45); }
.testimonial-stars { display: flex; gap: .2rem; margin-bottom: 1.25rem; }
.testimonial-stars i { color: var(--gold); font-size: .85rem; }
.testimonial-quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--accent);
  line-height: .7;
  margin-bottom: 1rem;
  display: block;
  opacity: .4;
}
.testimonial-text { font-size: .93rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1.75rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .875rem; }
.testimonial-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}
.testimonial-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .03em;
  border-color: rgba(255,255,255,.6);
}
.testimonial-name { font-size: .92rem; font-weight: 700; color: var(--text-dark); }
.testimonial-role { font-size: .78rem; color: var(--text-light); margin-top: .15rem; }
.track-controls { display: flex; gap: .6rem; margin-top: 2.5rem; }
.track-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-mid);
  font-size: .9rem;
}
.track-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   NEWS (HOME PREVIEW)
   ============================================================ */
.news-preview { padding: 7rem 0; }

/* ============================================================
   PAGE HERO (BREADCRUMB HEADER)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 9rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(10,43,78,.18);
  border-radius: 50%;
  top: -200px; right: 5%;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(245,158,11,.1);
  border-radius: 50%;
  bottom: -80px; left: 10%;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: .75rem; }
.page-hero .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-hero .breadcrumb-item { font-size: .875rem; color: rgba(255,255,255,.6); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }

/* ============================================================
   COURSE CARDS
   ============================================================ */
.courses-page { padding: 5.5rem 0; background: var(--bg-light); }
.course-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(11,30,59,.05);
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(245,166,35,.45); }
.course-card-img { height: 210px; overflow: hidden; position: relative; }
.course-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.course-card:hover .course-card-img img { transform: scale(1.07); }
.course-faculty-pill {
  position: absolute; bottom: .875rem; left: .875rem;
  background: rgba(11,30,59,.82);
  color: #fff; font-size: .72rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 100px;
  backdrop-filter: blur(4px);
  display: flex; align-items: center; gap: .35rem;
}
.course-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.course-card-body h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: .5rem; }
.course-card-body h4 a { color: var(--text-dark); }
.course-card-body h4 a:hover { color: var(--accent); }
.course-card-body p { font-size: .875rem; color: var(--text-mid); flex: 1; line-height: 1.65; margin-bottom: 1.25rem; }
.course-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; border: 1.5px solid var(--border);
  color: var(--accent); font-size: .84rem; font-weight: 600;
  padding: .6rem 1.25rem; border-radius: 100px;
  transition: var(--transition); width: fit-content; margin-top: auto;
}
.course-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; gap: .7rem; }

/* ============================================================
   EVENT CARDS
   ============================================================ */
.events-page { padding: 5.5rem 0; }
.event-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(11,30,59,.05);
  transition: var(--transition);
  display: flex; flex-direction: column; height: 100%;
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(245,166,35,.45); }
.event-card-img { height: 210px; overflow: hidden; position: relative; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.event-card:hover .event-card-img img { transform: scale(1.07); }
.event-date-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--accent); color: #fff;
  border-radius: 12px; padding: .5rem .875rem; text-align: center; line-height: 1.2;
}
.event-date-badge .day { font-size: 1.5rem; font-weight: 800; }
.event-date-badge .mon { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.event-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.event-card-body h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: .5rem; }
.event-card-body h4 a { color: var(--text-dark); }
.event-card-body h4 a:hover { color: var(--accent); }
.event-card-body p { font-size: .875rem; color: var(--text-mid); flex: 1; line-height: 1.65; margin-bottom: 1rem; }
.event-meta-row {
  display: flex; flex-wrap: wrap; gap: .75rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-light);
}
.event-meta-row span { display: flex; align-items: center; gap: .35rem; }
.event-meta-row i { color: var(--accent); }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-page { padding: 5.5rem 0; background: var(--bg-light); }
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(11,30,59,.05);
  transition: var(--transition);
  height: 100%; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(245,166,35,.45); }
.news-card-img { height: 220px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-card:hover .news-card-img img { transform: scale(1.07); }
.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-date-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; color: var(--text-light); font-weight: 500;
  margin-bottom: .75rem;
}
.news-date-tag i { color: var(--accent); }
.news-card-body h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.4; }
.news-card-body h4 a { color: var(--text-dark); }
.news-card-body h4 a:hover { color: var(--accent); }
.news-card-body p { font-size: .875rem; color: var(--text-mid); flex: 1; margin-bottom: 1.25rem; }
.news-read-more {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--accent); font-weight: 600; font-size: .84rem;
  margin-top: auto; transition: var(--transition);
}
.news-read-more:hover { gap: .75rem; color: var(--accent-hover); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-page { padding: 5.5rem 0; }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-accordion-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: var(--transition);
}
.faq-accordion-item:hover { border-color: rgba(245,166,35,.5); }
.faq-accordion-item.open { border-color: var(--accent); box-shadow: 0 4px 24px rgba(10,43,78,.1); }
.faq-toggle {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.35rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: .98rem; font-weight: 600; color: var(--text-dark);
  transition: var(--transition);
}
.faq-toggle.open { color: var(--accent); }
.faq-chevron {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--text-mid); flex-shrink: 0;
  transition: var(--transition);
}
.faq-toggle.open .faq-chevron { background: rgba(10,43,78,.1); color: var(--accent); transform: rotate(180deg); }
.faq-body { padding: 0 1.5rem 1.35rem; font-size: .94rem; color: var(--text-mid); line-height: 1.75; border-top: 1px solid var(--border); padding-top: 1rem; display: none; }
.faq-body.open { display: block; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-page { padding: 5.5rem 0; background: var(--bg-light); }
.gallery-masonry {
  columns: 3 280px;
  column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: block;
}
.gallery-item img { width: 100%; display: block; transition: var(--transition); }
.gallery-hover {
  position: absolute; inset: 0;
  background: rgba(11,30,59,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-hover i { color: #fff; font-size: 2rem; transform: scale(.7); transition: var(--transition); }
.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-item:hover .gallery-hover i { transform: scale(1); }
.gallery-item:hover img { transform: scale(1.04); }

/* ============================================================
   DETAIL PAGES (Course / Event / News single + custom page)
   ============================================================ */
.detail-page { padding: 5.5rem 0; }
.detail-main { max-width: 800px; }
.detail-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.detail-hero-img img { width: 100%; max-height: 480px; object-fit: cover; }
.detail-meta-bar {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.detail-meta-item {
  display: flex; align-items: center; gap: .45rem;
  font-size: .875rem; color: var(--text-mid);
}
.detail-meta-item i { color: var(--accent); }
.detail-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1.5rem; color: var(--text-dark); }
.detail-body { font-size: 1rem; color: var(--text-mid); line-height: 1.85; }
.detail-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.detail-body h2, .detail-body h3, .detail-body h4 { color: var(--text-dark); margin: 2rem 0 1rem; }
.detail-body p { margin-bottom: 1.25rem; }
.detail-body a { color: var(--accent); }
.detail-body a:hover { color: var(--accent-hover); text-decoration: underline; }
.detail-sidebar { padding-left: 1.5rem; }
@media (max-width: 991px) { .detail-sidebar { padding-left: 0; margin-top: 3rem; } }
.sidebar-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.sidebar-box-title {
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent);
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 2px solid rgba(10,43,78,.15);
}
.info-list { }
.info-list li {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: .75rem 0; border-bottom: 1px solid var(--border); gap: 1rem;
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-list .il-label { font-size: .85rem; color: var(--text-mid); font-weight: 500; }
.info-list .il-value { font-size: .88rem; color: var(--text-dark); font-weight: 600; text-align: right; }

/* Countdown */
.event-countdown { display: flex; gap: .875rem; flex-wrap: wrap; margin: 2rem 0; }
.cd-box {
  background: var(--primary); color: #fff;
  border-radius: var(--radius); padding: 1.25rem 1.5rem; text-align: center; min-width: 78px;
}
.cd-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.cd-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; opacity: .65; margin-top: .35rem; }

/* Share */
.share-row { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2rem 0; }
.share-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.25rem; border-radius: 100px;
  font-size: .84rem; font-weight: 600; transition: var(--transition);
}
.share-pill:hover { transform: translateY(-2px); opacity: .9; }
.share-pill.fb { background: #1877F2; color: #fff; }
.share-pill.tw { background: #1DA1F2; color: #fff; }
.share-pill.li { background: #0A66C2; color: #fff; }

/* ============================================================
   PAGINATION
   ============================================================ */
.modern-pagination { display: flex; justify-content: center; margin-top: 3.5rem; }
.modern-pagination .pagination { gap: .35rem; flex-wrap: wrap; }
.modern-pagination .page-link {
  border-radius: 10px !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text-mid); font-size: .875rem; font-weight: 500;
  padding: .55rem .95rem;
  transition: var(--transition);
  background: #fff;
}
.modern-pagination .page-link:hover { background: var(--accent); border-color: var(--accent) !important; color: #fff; }
.modern-pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent) !important; color: #fff; }
.modern-pagination .page-item.disabled .page-link { opacity: .45; }

/* ============================================================
   BUTTONS (global)
   ============================================================ */
.btn-primary-uni {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent); padding: .85rem 2rem;
  border-radius: 100px; font-weight: 600; font-size: .95rem;
  transition: var(--transition);
}
.btn-primary-uni:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(10,43,78,.35); }
.btn-outline-uni {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.55); padding: .85rem 2rem;
  border-radius: 100px; font-weight: 600; font-size: .95rem;
  transition: var(--transition);
}
.btn-outline-uni:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-gold-uni {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--primary);
  border: 2px solid var(--gold); padding: .85rem 2rem;
  border-radius: 100px; font-weight: 700; font-size: .95rem;
  transition: var(--transition);
}
.btn-gold-uni:hover { background: #D97706; border-color: #D97706; color: #fff; transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.uni-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(10,43,78,.12), transparent 42%),
    radial-gradient(circle at 88% 95%, rgba(245,158,11,.07), transparent 40%),
    var(--bg-dark);
  padding-top: 5.5rem;
  position: relative;
  overflow: hidden;
}
.uni-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10,43,78,.6), rgba(245,158,11,.6), rgba(124,58,237,.5), transparent);
}
.footer-brand-logo { margin-bottom: 1.5rem; }
.footer-brand-logo img { height: 64px; max-width: 100%; width: auto; }
.footer-desc { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.75; max-width: 320px; margin-bottom: 1.75rem; }
.footer-social-links { display: flex; gap: .6rem; }
.footer-social-a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: .88rem;
  transition: var(--transition);
}
.footer-social-a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-col-title {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 1.5rem; padding-bottom: .85rem;
  position: relative;
}
.footer-col-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 3px; border-radius: 2px;
  background: var(--gold);
}
.footer-nav-links li { margin-bottom: .65rem; }
.footer-nav-links a {
  font-size: .88rem; color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: .6rem;
  transition: var(--transition);
}
.footer-nav-links a:hover { color: #fff; padding-left: .35rem; }
.footer-links-chevron a::before {
  content: '\f105'; font-family: 'Font Awesome 5 Pro'; font-weight: 900;
  color: var(--gold); font-size: .7rem;
}

/* Get in Touch */
.footer-touch-row { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.1rem; }
.footer-touch-ic {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(245,158,11,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .9rem; flex-shrink: 0;
}
.footer-touch-text { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.5; }
.footer-touch-text a { color: inherit; }
.footer-touch-text a:hover { color: #fff; }

/* Footer newsletter */
.footer-nl-prompt {
  font-size: .85rem; color: rgba(255,255,255,.7);
  margin: 1.75rem 0 .875rem; display: flex; align-items: center; gap: .55rem;
}
.footer-nl-prompt i { color: var(--gold); }
.footer-nl-form { display: flex; gap: .6rem; }
.footer-nl-form input {
  flex: 1; min-width: 0; padding: .75rem 1.1rem; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06);
  color: #fff; font-size: .85rem; outline: none; font-family: 'Inter',sans-serif;
  transition: border-color .2s;
}
.footer-nl-form input:focus { border-color: var(--gold); }
.footer-nl-form input::placeholder { color: rgba(255,255,255,.35); }
.footer-nl-btn {
  display: flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .75rem 1.5rem; border-radius: 100px; border: none;
  background: var(--gold); color: var(--primary); font-weight: 700; font-size: .85rem;
  cursor: pointer; transition: var(--transition);
}
.footer-nl-btn:hover { background: var(--gold-dark); transform: translateY(-2px); }
.footer-nl-btn i { font-size: .8rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 4rem; padding: 1.75rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copyright { font-size: .82rem; color: rgba(255,255,255,.38); }
.footer-credit { margin-left: .5rem; padding-left: .65rem; border-left: 1px solid rgba(255,255,255,.15); }
.footer-credit-name { color: var(--gold); font-weight: 600; }
.footer-lang .dropdown-toggle {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6); padding: .45rem 1rem;
  border-radius: 100px; font-size: .82rem;
  display: flex; align-items: center; gap: .4rem;
}
.footer-lang .dropdown-toggle::after { border-color: rgba(255,255,255,.4) transparent transparent; }
.footer-lang .dropdown-menu {
  background: #1A2940; border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; min-width: 140px; padding: .5rem;
}
.footer-lang .dropdown-item {
  color: rgba(255,255,255,.65); font-size: .875rem;
  border-radius: 8px; padding: .5rem .875rem;
}
.footer-lang .dropdown-item:hover { background: rgba(10,43,78,.2); color: #fff; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-sr] { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
[data-sr].in-view { opacity: 1; transform: translateY(0); }
[data-sr][data-delay="1"] { transition-delay: .1s; }
[data-sr][data-delay="2"] { transition-delay: .2s; }
[data-sr][data-delay="3"] { transition-delay: .3s; }
[data-sr][data-delay="4"] { transition-delay: .4s; }
[data-sr][data-delay="5"] { transition-delay: .5s; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 767px) {
  .hero-visual { display: none; }
  .hero-content-wrap { padding-top: 6.5rem; padding-bottom: 4rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats-row { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.8rem; }
  .testimonial-card { min-width: 88vw; max-width: 88vw; }
  .section-pad { padding: 4.5rem 0; }
  .gallery-masonry { columns: 2 160px; }
  .mission-grid { grid-template-columns: 1fr; }
  .about-text { padding-left: 0; }
}
@media (max-width: 575px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-eyebrow { font-size: .72rem; }
  .gallery-masonry { columns: 1; }
  .cta-banner { padding: 4rem 0; }
}

/* ============================================================
   E-LEARNING / ONLINE UNIVERSITY ADDITIONS
   ============================================================ */

/* Level badge pills */
.level-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .3rem .8rem; border-radius: 100px;
}
.level-badge.diploma  { background: #EDF4FB; color: #1e4d80; }
.level-badge.bachelor { background: #E3EDF7; color: #0a2b4e; }
.level-badge.master   { background: #06203c; color: #f5c96b; }
.level-badge.online   { background: #FDF3DF; color: #b07708; }

/* ── Program Level Cards (homepage) ─────────────────────── */
.level-cards-section { padding: 0; margin-top: -4rem; position: relative; z-index: 10; }
.level-card {
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem 2.25rem;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease-out, box-shadow .35s ease, border-color .35s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px -18px rgba(15,23,42,.4), inset 0 1px 0 rgba(255,255,255,.18);
  background-size: 250% 250%;
  animation: cardGradientShift 14s ease infinite;
}
@keyframes cardGradientShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
/* decorative glow orbs */
.level-card::before {
  content: '';
  position: absolute; bottom: -70px; right: -70px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  transition: var(--transition);
}
.level-card::after {
  content: '';
  position: absolute; top: -40px; left: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.level-card:hover { border-color: rgba(255,255,255,.35); }
.level-card:hover::before { transform: scale(1.2); background: rgba(255,255,255,.1); }
/* Depth progression within the brand navy — lighter to darker as the
   academic level deepens. Gold stays the single accent (ribbon, links). */
.level-card.diploma-card  { background-image: linear-gradient(120deg,#123c66,#2a6cb0,#1e4d80,#175288); animation-delay: 0s; }
.level-card.bachelor-card { background-image: linear-gradient(120deg,#06203c,#155a8a,#0a2b4e,#113965); animation-delay: -4s; }
.level-card.master-card   { background-image: linear-gradient(120deg,#001226,#0a2b4e,#001A33,#06203c); animation-delay: -8s; }
.level-card.diploma-card:hover  { box-shadow: 0 22px 50px -14px rgba(30,77,128,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.level-card.bachelor-card:hover { box-shadow: 0 22px 50px -14px rgba(10,43,78,.65), inset 0 1px 0 rgba(255,255,255,.25); }
.level-card.master-card:hover   { box-shadow: 0 22px 50px -14px rgba(0,18,38,.7), inset 0 1px 0 rgba(255,255,255,.25); }

/* floating ghost-icon watermark */
.level-card-watermark {
  position: absolute; bottom: -1.25rem; right: -1rem;
  font-size: 9rem; line-height: 1;
  color: rgba(255,255,255,.08);
  z-index: 0; pointer-events: none;
  animation: floatWatermark 7s ease-in-out infinite;
}
@keyframes floatWatermark {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-16px) rotate(8deg); }
}

/* diagonal shine sweep on hover */
.level-card-shine {
  position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg);
  transition: left .85s ease;
  z-index: 2; pointer-events: none;
}
.level-card:hover .level-card-shine { left: 125%; }

/* corner ribbon (e.g. "Most Popular") */
.level-card-badge {
  position: absolute; top: 1.15rem; right: -3rem;
  width: 11rem; padding: .35rem 0;
  background: linear-gradient(135deg,#F59E0B,#FCD34D);
  color: #78350F; font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  z-index: 2;
}

.level-card-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #fff; margin: 0 auto 1.5rem;
  transition: var(--transition);
  position: relative; z-index: 1;
}
/* pulsing sonar ring */
.level-card-icon::before {
  content: '';
  position: absolute; inset: -8px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 26px;
  animation: pulseRing 2.6s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(.92); opacity: .9; }
  80%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.level-card:hover .level-card-icon {
  background: rgba(255,255,255,.22);
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.level-card h3 { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: .6rem; position: relative; z-index: 1; }
.level-card p  { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.level-card-meta {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 1.4rem; margin-top: .5rem;
  position: relative; z-index: 1;
}
.level-card-meta .meta-item { flex: 1; text-align: center; position: relative; }
.level-card-meta .meta-item:not(:last-child)::after {
  content: '';
  position: absolute; top: 2px; right: 0;
  width: 1px; height: calc(100% - 4px);
  background: rgba(255,255,255,.18);
}
.level-card-meta .meta-num  { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.2; }
.level-card-meta .meta-lbl  { font-size: .68rem; color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .08em; margin-top: .15rem; }
.level-card-link {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; font-weight: 700;
  padding: .7rem 1.6rem; border-radius: 100px;
  font-size: .88rem; transition: var(--transition);
  margin-top: 1.75rem; position: relative; z-index: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.level-card-link i { transition: transform .25s; }
.level-card:hover .level-card-link { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.level-card:hover .level-card-link i { transform: translateX(4px); }
.level-card.diploma-card  .level-card-link { color: #1e4d80; }
.level-card.bachelor-card .level-card-link { color: #0a2b4e; }
.level-card.master-card   .level-card-link { color: #001A33; }

/* ── How It Works ────────────────────────────────────────── */
.how-it-works {
  background: var(--bg-light);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
/* soft colourful glow blobs in the corners */
.how-it-works::before,
.how-it-works::after {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .18;
  pointer-events: none;
}
.how-it-works::before { top: -160px; left: -140px; background: radial-gradient(circle, #1e4d80, transparent 70%); }
.how-it-works::after  { bottom: -180px; right: -140px; background: radial-gradient(circle, #F59E0B, transparent 70%); }
.how-it-works .container { position: relative; }

/* brand navy-to-gold divider for this section */
.how-it-works .section-divider.centered {
  width: 64px; height: 5px; border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

/* steps share the brand navy; the gold number badge carries the sequence */
.how-it-works .row > div { --step-c1: #0a2b4e; --step-c2: #2a6cb0; }

.step-item { position: relative; text-align: center; transition: var(--transition); }
.step-item:hover { transform: translateY(-4px); }

/* connecting line between steps (desktop only) */
@media (min-width: 992px) {
  .step-item::after {
    content: '';
    position: absolute; top: 32px; left: calc(50% + 44px);
    width: calc(100% - 88px); height: 2px;
    background: linear-gradient(90deg, var(--step-c1), var(--step-c2));
    opacity: .4;
  }
  .how-it-works .row > div:nth-child(4) .step-item::after { display: none; }
}

.step-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--step-c1), var(--step-c2));
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  margin: 0 auto 1.25rem; position: relative; z-index: 1;
  transition: var(--transition);
  box-shadow: 0 12px 28px -10px var(--step-c1), 0 0 0 6px #fff;
}
.step-circle i { display: inline-block; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.step-item:hover .step-circle {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 18px 36px -10px var(--step-c1), 0 0 0 6px #fff;
}
.step-item:hover .step-circle i { transform: rotate(6deg) scale(1.1); }
.step-num {
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #3a2a05;
  font-size: .65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(15,23,42,.18);
  border: 2px solid #fff;
}
.step-item h5 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; transition: color .25s; }
.step-item:hover h5 { color: var(--step-c1); }
.step-item p  { font-size: .84rem; color: var(--text-mid); }

/* ── Why Online (Apple style) ────────────────────────────── */
.why-online { padding: 6rem 0 7rem; background: #fbfbfd; }
.why-card-wrap { height: 100%; }
.why-card {
  position: relative;
  padding: 2.75rem 2.25rem 2.5rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e5e5ea;
  box-shadow: none;
  height: 100%;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94),
              box-shadow .5s cubic-bezier(.25,.46,.45,.94),
              border-color .5s cubic-bezier(.25,.46,.45,.94);
}
.why-card::before, .why-card::after { display: none; }
.why-card:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: color-mix(in srgb, var(--accent, #0a2b4e), #ffffff 55%);
  box-shadow: 0 20px 60px rgba(0,0,0,.08),
              0 4px 14px rgba(0,0,0,.04);
}
.why-icon {
  width: 72px; height: 72px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; margin-bottom: 1.75rem; color: #fff;
  background: var(--accent, #0a2b4e);
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.why-card:hover .why-icon {
  transform: scale(1.08);
}
.why-card h5 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: .65rem;
  color: #1d1d1f; letter-spacing: -.01em;
  transition: color .4s;
}
.why-card p {
  font-size: .9rem; color: #86868b; margin: 0;
  line-height: 1.75; font-weight: 400;
  transition: color .4s;
}
.why-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 600; color: var(--accent, #0a2b4e);
  margin-top: 1.5rem; opacity: 0; transform: translateY(6px);
  transition: opacity .4s, transform .4s;
}
.why-more i { transition: transform .3s; font-size: .7rem; }
.why-card:hover .why-more { opacity: 1; transform: translateY(0); }
.why-card:hover .why-more i { transform: translateX(3px); }

/* ── Programs section (with tabs) ───────────────────────── */
.programs-section { padding: 7rem 0; background: #fff; }
.level-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  background: #fff; padding: .5rem;
  border-radius: 14px; border: 1px solid var(--border);
  width: fit-content; margin-bottom: 3rem;
}
.level-tab {
  padding: .6rem 1.4rem; border-radius: 10px;
  font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: none; background: transparent; color: var(--text-mid);
  display: flex; align-items: center; gap: .5rem;
}
.level-tab.active { background: var(--accent); color: #fff; }
.level-tab:not(.active):hover { background: var(--bg-light); color: var(--text-dark); }
.level-tab .tab-count {
  background: rgba(0,0,0,.08); color: inherit;
  font-size: .7rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 100px;
  min-width: 22px; text-align: center;
}
.level-tab.active .tab-count { background: rgba(255,255,255,.25); }
.programs-tab-content { display: none; }
.programs-tab-content.active { display: block; }

/* ── Course card level variant ───────────────────────────── */
.course-level-bar {
  height: 4px;
  width: 100%;
}
.course-level-bar.diploma  { background: linear-gradient(90deg,#1e4d80,#2a6cb0); }
.course-level-bar.bachelor { background: linear-gradient(90deg,#0a2b4e,#1e4d80); }
.course-level-bar.master   { background: linear-gradient(90deg,#001A33,#0a2b4e); }

/* ── Accreditation bar ───────────────────────────────────── */
.accreditation-bar {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.accreditation-bar p {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-light); font-weight: 600; margin-bottom: 1.5rem;
}
.accreditation-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 2.5rem; }
.accreditation-logo {
  font-size: .9rem; font-weight: 700; color: var(--text-mid);
  padding: .5rem 1.25rem; border: 1.5px solid var(--border);
  border-radius: 10px; transition: var(--transition);
  display: flex; align-items: center; gap: .5rem;
}
.accreditation-logo:hover { border-color: var(--accent); color: var(--accent); }

/* ── Online badge floating ───────────────────────────────── */
.online-badge-float {
  position: absolute; top: .875rem; left: .875rem;
  background: rgba(5,150,105,.9);
  color: #fff; font-size: .68rem; font-weight: 700;
  padding: .25rem .65rem; border-radius: 100px;
  backdrop-filter: blur(4px);
  display: flex; align-items: center; gap: .3rem;
}
.online-badge-float::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff; animation: pulse-dot 1.5s ease infinite;
}

/* ── Filter tabs on courses listing page ─────────────────── */
.programs-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 74px;
  z-index: 100;
  margin-bottom: 3rem;
}
.filter-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  align-items: center;
}
.filter-tab {
  padding: .55rem 1.25rem; border-radius: 100px;
  font-size: .84rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-mid); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
}
.filter-tab.active, .filter-tab:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.filter-tab .count { font-size: .72rem; opacity: .85; }

/* ── E-learning hero specific overrides ──────────────────── */
.hero-online-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(5,150,105,.2); border: 1px solid rgba(5,150,105,.4);
  color: #34D399; font-size: .75rem; font-weight: 700;
  padding: .35rem .875rem; border-radius: 100px;
  margin-right: .5rem;
}
.hero-online-pill .dot { background: #34D399; }
.hero-program-types {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem;
}
.hero-program-pill {
  padding: .45rem 1rem; border-radius: 100px;
  font-size: .78rem; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85);
  text-decoration: none; transition: var(--transition);
}
.hero-program-pill:hover,
.hero-program-pill.active { background: #fff; color: var(--primary); border-color: #fff; }

/* ── Responsive additions ────────────────────────────────── */
@media (max-width: 991px) {
  .level-cards-section { margin-top: 0; padding: 2rem 0; }
  .step-connector { display: none; }
  .step-item { margin-bottom: 2rem; }
}
@media (max-width: 767px) {
  .level-card { margin-bottom: 1rem; }
  .level-tabs { width: 100%; }
  .level-tab { flex: 1; justify-content: center; }
  .stats-strip .stat-divider { display: none; }
}
