
:root {
  --navy:        #0b1f4b;
  --navy2:       #162c6e;
  --blue:        #1a56db;
  --blue-light:  #3b76f6;
  --teal:        #059669;
  --teal-light:  #10b981;
  --gold:        #f59e0b;
  --gold-dark:   #d97706;
  --red:         #ef4444;
  --white:       #ffffff;
  --off-white:   #f8faff;
  --surface:     #f1f5fd;
  --border:      #dde3f0;
  --border2:     #e8edf8;
  --text-head:   #0d1b3e;
  --text-body:   #374151;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(11,31,75,.07);
  --shadow-md:   0 4px 20px rgba(11,31,75,.10);
  --shadow-lg:   0 10px 40px rgba(11,31,75,.14);
  --header-h:    64px;
  --footer-mob:  68px;
  --font:        'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

h1,h2,h3,h4,h5,h6 { color: var(--text-head); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-body); }


.container     { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-xl  { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.section-pad   { padding: 64px 0; }
.section-pad-sm{ padding: 40px 0; }
.text-center   { text-align: center; }
.text-muted    { color: var(--text-muted); }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.gap-16        { gap: 16px; }
.flex-wrap     { flex-wrap: wrap; }
.mt-4  { margin-top: 4px;  } .mt-8  { margin-top: 8px;  }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; } .mb-40 { margin-bottom: 40px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.sec-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 6px; }
.sec-title { font-size: clamp(1.3rem,3vw,1.8rem); font-weight: 800; color: var(--text-head); line-height: 1.25; }
.sec-title span { color: var(--blue); }
.sec-sub  { font-size: .88rem; color: var(--text-muted); margin-top: 5px; }
.sec-link { font-size: .82rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.sec-link:hover { color: var(--navy); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
}
.badge-blue  { background: rgba(26,86,219,.1);  color: var(--blue); }
.badge-teal  { background: rgba(5,150,105,.1);  color: var(--teal); }
.badge-gold  { background: rgba(245,158,11,.12); color: var(--gold-dark); }
.badge-red   { background: rgba(239,68,68,.1);  color: var(--red); }
.badge-navy  { background: var(--navy); color: #fff; }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .18s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover  { background: var(--navy); }
.btn-outline  { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover  { background: var(--blue); color: #fff; }
.btn-white    { background: #fff; color: var(--navy); }
.btn-white:hover    { background: var(--surface); }
.btn-teal     { background: var(--teal); color: #fff; }
.btn-teal:hover     { background: var(--teal-light); }
.btn-gold     { background: var(--gold); color: #fff; }
.btn-gold:hover     { background: var(--gold-dark); }
.btn-sm  { padding: 7px 14px; font-size: .8rem; }
.btn-lg  { padding: 14px 28px; font-size: .96rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: 8px; }

.form-group { margin-bottom: 16px; }
.form-label { font-size: .78rem; font-weight: 600; color: var(--text-head); margin-bottom: 5px; display: block; }
.form-control {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 10px 13px;
  font-size: .88rem; color: var(--text-body);
  background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #c5d3ef; }


.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; font-weight: 800;
}
.logo-text { font-size: 1.15rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.logo-text span { color: var(--blue); }
.logo-tagline { font-size: .62rem; color: var(--text-muted); font-weight: 400; }

/* Header search */
.header-search {
  flex: 1; max-width: 420px;
  display: flex; border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden; background: var(--surface);
}
.header-search input {
  flex: 1; border: none; background: transparent;
  padding: 0 14px; font-size: .85rem; outline: none; color: var(--text-body);
  height: 40px;
}
.header-search button {
  background: var(--blue); border: none; padding: 0 14px;
  color: #fff; cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.header-search button:hover { background: var(--navy); }

/* Desktop nav */
.header-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a {
  display: block; padding: 8px 12px;
  font-size: .84rem; font-weight: 500; color: var(--text-body);
  border-radius: 7px; transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-list a:hover, .nav-list a.active {
  background: rgba(26,86,219,.08); color: var(--blue); font-weight: 600;
}
.nav-list .nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 8px 16px; border-radius: 7px; font-weight: 600;
}
.nav-list .nav-cta:hover { background: var(--navy); }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--text-head);
  padding: 4px; flex-shrink: 0;
}

.mob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1099;
}
.mob-overlay.open { display: block; }
.mob-sidebar {
  position: fixed; top: 0; left: 0;
  width: 280px; height: 100%; z-index: 1100;
  background: var(--white); overflow-y: auto;
  transform: translateX(-110%); transition: transform .26s ease;
  display: flex; flex-direction: column;
}
.mob-sidebar.open { transform: translateX(0); }
.mob-sidebar-head {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  padding: 20px 18px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.mob-sidebar-head .logo-text { color: #fff; }
.mob-sidebar-head .logo-text span { color: #7eb3ff; }
.mob-close {
  background: rgba(255,255,255,.1); border: none;
  color: #fff; width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.mob-nav-section { padding: 12px 0; border-bottom: 1px solid var(--border2); }
.mob-nav-section-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  padding: 6px 18px 8px;
}
.mob-nav-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: .88rem;
  color: var(--text-body); border-left: 3px solid transparent;
  transition: all .15s;
}
.mob-nav-list a:hover, .mob-nav-list a.active {
  background: rgba(26,86,219,.06); color: var(--blue);
  border-left-color: var(--blue); font-weight: 600;
}
.mob-nav-list a i { font-size: 1rem; width: 20px; color: var(--blue); opacity: .8; }
.mob-enq-strip {
  margin: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  padding: 16px; color: #fff;
}
.mob-enq-strip p { font-size: .78rem; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.mob-enq-strip .btn { width: 100%; justify-content: center; }


.site-footer {
  background: #060f26;
  color: rgba(255,255,255,.65);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand .logo-text { color: #fff; font-size: 1.2rem; }
.footer-brand .logo-text span { color: #7eb3ff; }
.footer-brand p {
  font-size: .82rem; line-height: 1.75;
  color: rgba(255,255,255,.5); margin: 12px 0 18px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: .9rem;
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-col h4 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #fff; margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: .82rem; color: rgba(255,255,255,.5); transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  padding: 16px 0; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .76rem; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }

.mob-footer-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 10px 14px 12px;
  box-shadow: 0 -3px 18px rgba(11,31,75,.1);
}
.mob-footer-inner { display: flex; gap: 9px; align-items: center; }
.mfb-wa {
  width: 46px; height: 46px; background: #25D366; border: none;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; text-decoration: none; flex-shrink: 0;
  transition: background .15s;
}
.mfb-wa:hover { background: #1fad56; }
.mfb-call {
  width: 46px; height: 46px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--navy); text-decoration: none; flex-shrink: 0;
  transition: border-color .15s;
}
.mfb-call:hover { border-color: var(--blue); color: var(--blue); }
.mfb-enq {
  flex: 1; height: 46px; background: var(--blue); color: #fff;
  border: none; border-radius: 10px; font-weight: 700; font-size: .88rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 7px; transition: background .15s;
}
.mfb-enq:hover { background: var(--navy); }

.breadcrumb-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 9px 0; font-size: .78rem;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .cur { color: var(--text-muted); }


.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #1e3a8a 100%);
  padding: 56px 0 44px; color: #fff; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb .sep,
.page-hero .breadcrumb .cur { color: rgba(255,255,255,.4); }
.page-hero h1 { color: #fff; margin: 16px 0 10px; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: .92rem; max-width: 580px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85); font-size: .75rem; font-weight: 600;
  padding: 5px 13px; border-radius: 20px;
}


.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162c6e 50%, #1e3a8a 100%);
  min-height: 500px; display: flex; align-items: center;
  padding: 60px 0; position: relative; overflow: hidden;
}
.home-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #7eb3ff; font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 20px; margin-bottom: 18px;
}
.home-hero h1 { color: #fff; font-size: clamp(1.9rem,5vw,3rem); margin-bottom: 14px; }
.home-hero h1 span { color: var(--gold); }
.home-hero p { color: rgba(255,255,255,.65); font-size: 1rem; max-width: 520px; margin-bottom: 28px; }
.hero-search-box {
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; padding: 6px 6px 6px 16px;
  display: flex; align-items: center; gap: 8px; max-width: 520px;
}
.hero-search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: .9rem; height: 40px;
}
.hero-search-box input::placeholder { color: rgba(255,255,255,.45); }
.hero-stats { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat-num {
  font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1;
}
.hero-stat-num span { color: var(--gold); }
.hero-stat-label { font-size: .76rem; color: rgba(255,255,255,.55); margin-top: 3px; }
.hero-img-wrap { position: relative; z-index: 1; }
.hero-img-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 20px;
  max-width: 360px; margin: 0 auto;
}
.hero-img-card img { border-radius: 10px; width: 100%; height: 200px; object-fit: cover; }
.hero-floating-badge {
  position: absolute; top: -10px; right: -10px;
  background: var(--gold); color: var(--navy); border-radius: 10px;
  padding: 8px 14px; font-size: .78rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
}

.filter-bar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 160px; }
.filter-group label { font-size: .74rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.filter-group select,
.filter-group input { border: 1.5px solid var(--border); border-radius: 7px; padding: 9px 11px; font-size: .85rem; background: var(--surface); outline: none; }
.filter-group select:focus,
.filter-group input:focus { border-color: var(--blue); }
.filter-btn { flex-shrink: 0; align-self: flex-end; }

.course-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  height: 100%;
}
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #c5d3ef; }
.course-card-img {
  height: 160px; background: linear-gradient(135deg, var(--navy), var(--blue));
  position: relative; overflow: hidden; flex-shrink: 0;
}
.course-card-img img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.course-card-img .cc-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold); color: var(--navy);
  font-size: .65rem; font-weight: 700; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 20px;
}
.course-card-img .cc-dur {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 5px;
}
.course-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.course-level { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); }
.course-name { font-size: .96rem; font-weight: 700; color: var(--text-head); line-height: 1.35; }
.course-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.course-meta-item { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--text-muted); }
.course-meta-item i { font-size: .8rem; color: var(--blue); }
.course-card-footer {
  padding: 12px 16px; border-top: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.course-fee { font-size: .82rem; color: var(--text-muted); }
.course-fee strong { font-size: 1rem; color: var(--teal); font-weight: 800; }

.uni-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.uni-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #c5d3ef; }
.uni-card-cover {
  height: 120px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--blue-light));
}
.uni-card-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.uni-logo-wrap {
  position: absolute; bottom: -20px; left: 16px;
  width: 52px; height: 52px;
  background: var(--white); border: 2px solid var(--border);
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.uni-card-body { padding: 28px 16px 14px; }
.uni-name { font-size: .96rem; font-weight: 700; color: var(--text-head); margin-bottom: 4px; }
.uni-location { font-size: .76rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.uni-stats { display: flex; gap: 14px; }
.uni-stat { text-align: center; }
.uni-stat-num { font-size: .96rem; font-weight: 800; color: var(--navy); }
.uni-stat-lbl { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.uni-card-footer {
  padding: 10px 16px 14px; display: flex; gap: 8px;
}
.uni-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 16px 14px; }
.uni-tag {
  font-size: .7rem; background: var(--surface);
  color: var(--text-muted); padding: 3px 9px; border-radius: 20px;
  border: 1px solid var(--border);
}

.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5); align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: modalIn .22s ease;
}
@keyframes modalIn {
  from { transform: scale(.94) translateY(12px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  padding: 20px 22px 16px; color: #fff;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-header h3 { font-size: 1rem; color: #fff; margin-bottom: 3px; }
.modal-header p  { font-size: .76rem; color: rgba(255,255,255,.5); }
.modal-close {
  background: rgba(255,255,255,.1); border: none;
  color: #fff; width: 30px; height: 30px; border-radius: 7px;
  cursor: pointer; font-size: 1rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 22px; }
.modal-course-strip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 18px;
}
.modal-course-strip .mcs-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; flex-shrink: 0;
}
.mcs-name { font-size: .85rem; font-weight: 600; color: var(--text-head); }
.mcs-uni  { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.modal-note {
  font-size: .72rem; color: var(--text-muted);
  text-align: center; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.modal-note i { color: var(--teal); }


.tab-nav {
  display: block; gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px; overflow-x: auto;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 18px; font-size: .84rem; font-weight: 600;
  color: var(--text-muted); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-btn:hover  { color: var(--blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.sticky-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.enq-sidebar-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.enq-sidebar-head {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  padding: 18px 20px; color: #fff;
}
.enq-sidebar-head h4 { color: #fff; font-size: .96rem; margin-bottom: 4px; }
.enq-sidebar-head p  { font-size: .76rem; color: rgba(255,255,255,.55); }
.enq-sidebar-body { padding: 20px; }
.phone-row {
  display: flex; border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.phone-prefix {
  background: var(--surface); padding: 10px 12px;
  font-size: .84rem; color: var(--text-muted);
  border-right: 1px solid var(--border);
}
.phone-row input {
  flex: 1; border: none; outline: none;
  padding: 10px 12px; font-size: .88rem;
}
.sidebar-trust {
  display: flex; gap: 16px; margin-top: 14px;
  justify-content: center; flex-wrap: wrap;
}
.trust-item { text-align: center; font-size: .7rem; color: var(--text-muted); }
.trust-item i { display: block; font-size: 1.1rem; color: var(--teal); margin-bottom: 3px; }

/* Stats bar */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat-cell {
  padding: 24px 20px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-num  { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-num span { color: var(--blue); }
.stat-label{ font-size: .78rem; color: var(--text-muted); margin-top: 5px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  min-width: 36px; height: 36px; border: 1.5px solid var(--border);
  background: var(--white); border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem; color: var(--text-body); cursor: pointer;
  text-decoration: none; transition: all .15s;
}
.page-btn:hover { background: rgba(26,86,219,.07); border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.page-btn.disabled { opacity: .38; pointer-events: none; }

/* Toast */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 22px;
  border-radius: 8px; font-size: .86rem; font-weight: 600;
  opacity: 0; transition: all .3s; z-index: 3000; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Alert box */
.alert {
  padding: 12px 16px; border-radius: 8px;
  font-size: .84rem; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.alert-success { background: rgba(5,150,105,.1); color: var(--teal); border: 1px solid rgba(5,150,105,.2); }
.alert-error   { background: rgba(239,68,68,.08); color: var(--red); border: 1px solid rgba(239,68,68,.15); }

/* Info list (detail page) */
.info-list { display: flex; flex-direction: column; gap: 0; }
.info-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border2);
  font-size: .86rem;
}
.info-row:last-child { border-bottom: none; }
.info-row .info-key { min-width: 140px; color: var(--text-muted); font-weight: 500; }
.info-row .info-val { color: var(--text-head); font-weight: 600; }

/* Highlight box */
.highlight-box {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 8px; padding: 16px 18px;
  font-size: .86rem; color: var(--text-body);
}

/* Section BG alternate */
.bg-white   { background: var(--white); }
.bg-surface { background: var(--surface); }
.bg-navy    { background: var(--navy); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }


.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-align: center;
  padding: 28px 20px 20px; transition: box-shadow .2s;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; font-weight: 800;
}
.team-name { font-size: .96rem; font-weight: 700; color: var(--text-head); }
.team-role { font-size: .78rem; color: var(--text-muted); margin-top: 3px; }

.contact-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: box-shadow .2s;
}
.contact-box:hover { box-shadow: var(--shadow-sm); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(26,86,219,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--blue);
}
.contact-box h4 { font-size: .9rem; margin-bottom: 4px; }
.contact-box p, .contact-box a {
  font-size: .84rem; color: var(--text-muted);
}
.contact-box a:hover { color: var(--blue); }

@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  /* layout */
  .detail-layout        { grid-template-columns: 1fr; }
  .sticky-sidebar       { position: static; }
  .uni-detail-layout    { grid-template-columns: 1fr; }

  /* grids */
  .grid-4               { grid-template-columns: repeat(2, 1fr); }
  .grid-3               { grid-template-columns: repeat(2, 1fr); }

  /* footer */
  .footer-grid          { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* stats */
  .stats-row            { grid-template-columns: repeat(2, 1fr); }
  .stats-row .stat-cell:nth-child(2) { border-right: none; }

  /* home hero two-column â†’ stack */
  .home-hero-grid       { grid-template-columns: 1fr !important; }
  .hero-img-wrap        { display: none; }
}

@media (max-width: 768px) {

  .hamburger            { display: block; }
  .header-nav           { display: none; }
  .header-search        { max-width: 220px; }

  body                  { padding-bottom: var(--footer-mob); }
  .mob-footer-bar       { display: block; }


  .section-pad          { padding: 40px 0; }
  .section-pad-sm       { padding: 28px 0; }

  .home-hero            { padding: 40px 0; min-height: auto; }
  .home-hero h1         { font-size: 1.7rem; }
  .home-hero p          { font-size: .9rem; }
  .hero-search-box      { flex-wrap: wrap; }
  .hero-search-box input{ min-width: 0; }
  .hero-stats           { gap: 18px; }
  .hero-img-wrap        { display: none; }
  .page-hero            { padding: 36px 0 28px; }
  .page-hero h1         { font-size: 1.5rem; }

  .grid-2               { grid-template-columns: 1fr; }
  .grid-3               { grid-template-columns: repeat(2, 1fr); }
  .grid-4               { grid-template-columns: repeat(2, 1fr); }

  .courses-grid         { grid-template-columns: repeat(2, 1fr) !important; }

  .stream-grid          { grid-template-columns: repeat(2, 1fr) !important; }

  .uni-grid             { grid-template-columns: repeat(2, 1fr) !important; }

  .why-grid             { grid-template-columns: repeat(2, 1fr) !important; }


  .stats-row            { grid-template-columns: repeat(2, 1fr); }
  .stats-row .stat-cell:nth-child(2) { border-right: none; }

  .filter-bar           { flex-direction: column; gap: 10px; }
  .filter-group         { min-width: 100%; width: 100%; }
  .filter-group select,
  .filter-group input   { width: 100%; }
  .filter-btn           { width: 100%; }
  .filter-btn .btn      { width: 100%; justify-content: center; }

  .detail-layout        { grid-template-columns: 1fr; }
  .sticky-sidebar       { position: static; }
  .enq-sidebar-card     { margin-bottom: 24px; }

  .uni-detail-layout    { grid-template-columns: 1fr; }

  .footer-grid          { grid-template-columns: 1fr; gap: 24px; }


  .tab-nav              { overflow-x: auto; -webkit-overflow-scrolling: touch; }


  .modal-box            { max-height: 95vh; }
  .modal-body .grid-2   { grid-template-columns: 1fr; }


  .uni-card-cover       { height: 100px; }


  .breadcrumb           { font-size: .74rem; }


  .cta-banner           { flex-direction: column; text-align: center; }
  .cta-banner .btn      { width: 100%; justify-content: center; }


  .sec-head             { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 640px) {
  .grid-3               { grid-template-columns: repeat(2, 1fr); }
  .courses-grid         { grid-template-columns: repeat(2, 1fr) !important; }
  .uni-grid             { grid-template-columns: repeat(2, 1fr) !important; }

  .header-search        { max-width: 160px; }
  .header-search input  { font-size: .8rem; }
}


@media (max-width: 480px) {
  /* â”€â”€ header â”€â”€ */
  .header-search        { display: none; }          /* search hidden, use sidebar */
  .logo-tagline         { display: none; }


  .grid-2,
  .grid-3,
  .grid-4               { grid-template-columns: 1fr; }
  .courses-grid         { grid-template-columns: 1fr !important; }
  .stream-grid          { grid-template-columns: repeat(2, 1fr) !important; } /* keep 2-col streams */
  .uni-grid             { grid-template-columns: 1fr !important; }
  .why-grid             { grid-template-columns: 1fr !important; }


  .home-hero            { padding: 32px 0; }
  .home-hero h1         { font-size: 1.45rem; }
  .hero-eyebrow         { font-size: .7rem; }
  .hero-stats           { gap: 14px; }
  .hero-stat-num        { font-size: 1.3rem; }
  .hero-search-box      { padding: 5px; }


  .course-card-img      { height: 130px; }
  .course-card-body     { padding: 12px; gap: 6px; }
  .course-name          { font-size: .88rem; }
  .course-card-footer   { padding: 10px 12px; }


  .stats-row            { grid-template-columns: repeat(2, 1fr); }
  .stat-cell            { padding: 16px 10px; }
  .stat-num             { font-size: 1.35rem; }
  .stat-cell:nth-child(4) { border-right: none; }

  .page-hero            { padding: 28px 0 20px; }
  .page-hero h1         { font-size: 1.25rem; }
  .hero-pills           { gap: 6px; }
  .hero-pill            { font-size: .7rem; padding: 4px 10px; }


  .sec-title            { font-size: 1.2rem; }

  .tab-btn              { padding: 9px 13px; font-size: .8rem; }


  .detail-layout        { gap: 16px; }


  .info-row             { flex-direction: column; gap: 4px; }
  .info-row .info-key   { min-width: unset; color: var(--text-muted); font-size: .78rem; }
  .info-row .info-val   { font-size: .88rem; }


  .modal-body           { padding: 16px; }
  .modal-header         { padding: 16px 16px 12px; }
  .modal-course-strip   { flex-direction: row; }


  .contact-box          { flex-direction: column; gap: 10px; padding: 20px; }


  .footer-social a      { width: 30px; height: 30px; }
  .footer-bottom        { flex-direction: column; text-align: center; gap: 4px; }


  .mob-footer-inner     { gap: 7px; }
  .mfb-wa, .mfb-call   { width: 40px; height: 40px; font-size: .9rem; }
  .mfb-enq              { height: 40px; font-size: .82rem; }


  .uni-card-cover       { height: 90px; }

  .pagination           { gap: 3px; }
  .page-btn             { min-width: 32px; height: 32px; font-size: .78rem; }

  .course-highlights    { grid-template-columns: repeat(2, 1fr) !important; }

  .enq-sidebar-card     { order: -1; }           /* put above tabs on mobile */
  .sidebar-trust        { gap: 10px; }
}

@media (max-width: 360px) {
  .container, .container-xl { padding: 0 14px; }
  .home-hero h1   { font-size: 1.25rem; }
  .btn-lg         { padding: 11px 18px; font-size: .85rem; }
  .stream-grid    { grid-template-columns: repeat(2, 1fr) !important; }
  .course-name    { font-size: .84rem; }
  .hero-search-box .btn { padding: 10px 14px; font-size: .82rem; }
}

@media (max-width: 768px) {
  .course-detail-related { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 480px) {
  .course-detail-related { grid-template-columns: 1fr !important; }
  /* uni courses grid â†’ 1 col on mobile */
  .uni-courses-grid      { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {

  .uni-detail-courses-grid { grid-template-columns: 1fr !important; }
}