/* ==========================================================================
   King TAS College of Nursing & Allied Health Sciences
   Global stylesheet — design tokens + reusable components
   ========================================================================== */

:root {
  /* Brand palette (derived from the college admission artwork) */
  --primary: #075db8;
  --primary-dark: #06478a;
  --primary-darker: #10233f;
  --primary-soft: #e8f1fb;
  --secondary: #d71919;
  --secondary-dark: #b21212;
  --accent: #e63946;

  --dark: #10233f;
  --text: #334155;
  --muted-text: #64748b;
  --light: #f6f9fc;
  --white: #ffffff;
  --border: #e5e7eb;

  --shadow-sm: 0 4px 14px rgba(16, 35, 63, 0.06);
  --shadow: 0 15px 40px rgba(16, 35, 63, 0.08);
  --shadow-lg: 0 26px 60px rgba(16, 35, 63, 0.14);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --transition: all 0.3s ease;

  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", serif;

  --topbar-h: 42px;
}

/* ---------- Base ---------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-brand {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Utilities ----------------------------------------------------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.bg-light-soft { background: var(--light); }
.bg-brand-soft { background: var(--primary-soft); }
.bg-brand-dark { background: var(--primary-darker); color: #cfe0f2; }
.bg-brand-dark h1, .bg-brand-dark h2, .bg-brand-dark h3, .bg-brand-dark h4 { color: #fff; }
.text-brand { color: var(--primary) !important; }
.text-brand-red { color: var(--secondary) !important; }
.text-soft { color: var(--muted-text); }
.fw-600 { font-weight: 600; }
.rounded-brand { border-radius: var(--radius); }
.shadow-brand { box-shadow: var(--shadow); }
.lead-text { font-size: 1.05rem; color: var(--muted-text); }
.urdu { font-family: var(--font-urdu); line-height: 2.4; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: .42rem .9rem; border-radius: 999px;
}
.eyebrow.eyebrow-light { background: rgba(255,255,255,.12); color: #fff; }
.eyebrow.eyebrow-red { background: rgba(215,25,25,.1); color: var(--secondary); }

.section-header { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 1rem 0 .75rem; }
.section-header p { color: var(--muted-text); margin: 0; }
.section-header.text-start { margin-left: 0; text-align: left; }

.divider-line {
  width: 64px; height: 4px; border-radius: 4px; margin-top: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.section-header .divider-line { margin: 1rem auto 0; }
.section-header.text-start .divider-line { margin-left: 0; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 10px;
  padding: .72rem 1.5rem;
  transition: var(--transition);
  border-width: 2px;
}
.btn-brand { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(7,93,184,.28); }
.btn-brand-red { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.btn-brand-red:hover, .btn-brand-red:focus { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(215,25,25,.26); }
.btn-outline-brand { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-outline-light-brand { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light-brand:hover, .btn-outline-light-brand:focus { background: #fff; color: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost-brand { color: var(--dark); border-color: transparent; }
.btn-ghost-brand:hover { color: var(--primary); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .45rem .95rem; font-size: .85rem; }

/* ---------- Top bar ------------------------------------------------------- */
.topbar {
  background: var(--primary-darker);
  color: #c9d9ec;
  font-size: 1rem;
  padding: .8rem 0;
}
.topbar a { color: #c9d9ec; }
.topbar a:hover { color: #fff; }
.topbar .topbar-item { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; padding: .15rem 0; }
.topbar .topbar-item i { font-size: 1.15rem; }
.topbar .divider { opacity: .3; margin: 0 1.1rem; }
.admission-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--secondary); color: #fff; border-radius: 999px;
  padding: .35rem 1.1rem; font-weight: 600; font-size: .92rem;
}
.admission-pill .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.topbar .social-links a {
  width: 38px; height: 38px; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.1);
}
.topbar .social-links a:hover { background: var(--primary); color: #fff; }

/* ---------- Navbar -------------------------------------------------------- */
.site-navbar {
  background: #fff;
  box-shadow: 0 2px 18px rgba(16,35,63,.07);
  padding: .55rem 0;
  transition: var(--transition);
}
.site-navbar.is-stuck { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; box-shadow: 0 6px 24px rgba(16,35,63,.12); }
body.nav-stuck { padding-top: 78px; }

.navbar-brand-block { display: flex; align-items: center; gap: .7rem; }
.navbar-brand-block img { width: 48px; height: 48px; object-fit: contain; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; color: var(--dark); line-height: 1.15; }
.brand-sub { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-text); }

.site-navbar .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--dark);
  padding: .55rem .78rem !important;
  position: relative;
  font-size: 1.08rem;
}
.site-navbar .nav-link::after {
  content: ""; position: absolute; left: .78rem; right: .78rem; bottom: .28rem;
  height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform .28s ease;
}
.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after { transform: scaleX(1); }
.site-navbar .nav-link.active { color: var(--primary); }
.site-navbar .dropdown-toggle::after { margin-left: .35rem; }

.site-navbar .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: .5rem;
  min-width: 250px;
}
.site-navbar .dropdown-item {
  border-radius: 8px; padding: .5rem .75rem; font-size: 1rem; color: var(--text);
}
.site-navbar .dropdown-item:hover, .site-navbar .dropdown-item:focus { background: var(--primary-soft); color: var(--primary-dark); }
.dropdown-header { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); font-weight: 700; }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; font-size: .78rem; font-weight: 600; padding: .25rem .7rem; color: var(--muted-text);
}
.lang-switch button.active { background: var(--primary); color: #fff; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1080;
}

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--primary-darker);
  color: #dbe7f5;
  overflow: hidden;
  padding: 96px 0 104px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .32;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,35,63,.94) 12%, rgba(16,35,63,.72) 55%, rgba(7,93,184,.45) 100%);
}
.hero > .container { position: relative; z-index: 3; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  letter-spacing: -.5px;
  margin: 1.1rem 0 1rem;
}
.hero p.hero-text { font-size: 1.06rem; color: #cbdcef; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.4rem; }
.hero-fact { display: flex; align-items: center; gap: .65rem; color: #cbdcef; font-size: .92rem; }
.hero-fact i { color: #7fb3ea; font-size: 1.15rem; }

.hero-card {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.hero-card h3 { font-size: 1.15rem; }
.hero-card .list-check li { display: flex; gap: .6rem; padding: .32rem 0; font-size: .92rem; }
.hero-card .list-check i { color: var(--primary); margin-top: .25rem; }

/* Decorative medical shapes */
.hero-shape { position: absolute; border-radius: 50%; z-index: 2; pointer-events: none; }
.hero-shape.s1 { width: 240px; height: 240px; background: rgba(7,93,184,.28); top: -60px; right: 8%; filter: blur(2px); animation: float-slow 12s ease-in-out infinite; }
.hero-shape.s2 { width: 140px; height: 140px; background: rgba(215,25,25,.18); bottom: 8%; left: 4%; animation: float-slow 15s ease-in-out infinite reverse; }
.hero-ecg { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; opacity: .35; pointer-events: none; }

/* ---------- Page hero (inner pages) --------------------------------------- */
.page-hero {
  position: relative;
  background: var(--primary-darker);
  color: #cbdcef;
  padding: 62px 0 54px;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 80% 0%, rgba(7,93,184,.55), transparent 70%);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: .6rem; }
.page-hero p { max-width: 640px; margin: 0; color: #b9cee6; }
.breadcrumb-brand { margin-top: 1.1rem; margin-bottom: 0; font-size: .88rem; }
.breadcrumb-brand .breadcrumb-item, .breadcrumb-brand a { color: #a9c3e0; }
.breadcrumb-brand a:hover { color: #fff; }
.breadcrumb-brand .breadcrumb-item.active { color: #fff; }
.breadcrumb-brand .breadcrumb-item + .breadcrumb-item::before { color: #6f8cae; }

/* ---------- Cards --------------------------------------------------------- */
.card-brand {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
}
.card-brand:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe0f5; }

.icon-badge {
  width: 54px; height: 54px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); font-size: 1.5rem;
  transition: var(--transition);
}
.card-brand:hover .icon-badge { background: var(--primary); color: #fff; }
.icon-badge.red { background: rgba(215,25,25,.1); color: var(--secondary); }
.card-brand:hover .icon-badge.red { background: var(--secondary); color: #fff; }

.media-frame { position: relative; overflow: hidden; background: var(--light); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.card-brand:hover .media-frame img { transform: scale(1.06); }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

.badge-brand {
  background: var(--primary); color: #fff; font-weight: 600; font-size: .72rem;
  letter-spacing: .04em; padding: .35rem .7rem; border-radius: 999px;
}
.badge-brand-red { background: var(--secondary); }
.badge-soft { background: var(--primary-soft); color: var(--primary-dark); }
.badge-float { position: absolute; top: 12px; left: 12px; z-index: 2; }

.program-card .meta-row { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted-text); }
.program-card .meta-row i { color: var(--primary); }
.placeholder-note { font-size: .78rem; color: var(--muted-text); font-style: italic; }

/* Stat / highlight cards */
.stat-card { text-align: center; padding: 2rem 1.25rem; }
.stat-card .counter { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-card h3 { font-size: 1.05rem; margin: .85rem 0 .35rem; }
.stat-card p { font-size: .9rem; color: var(--muted-text); margin: 0; }

/* Feature list */
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { display: flex; gap: .65rem; padding: .38rem 0; }
.list-check li i { color: var(--primary); margin-top: .3rem; flex-shrink: 0; }

/* ---------- Filters ------------------------------------------------------- */
.filter-bar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow-sm);
}
.filter-chip {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 999px; padding: .4rem 1rem; font-size: .86rem; font-weight: 600;
  transition: var(--transition);
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-field { position: relative; }
.search-field i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted-text); }
.search-field input { padding-left: 2.5rem; }

.form-control, .form-select {
  border-radius: 10px; border: 1px solid var(--border); padding: .7rem .9rem; font-size: .95rem;
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(7,93,184,.14); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--dark); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--secondary); }
.invalid-feedback { font-size: .8rem; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted-text); }
.empty-state i { font-size: 2.5rem; color: #b9c6d6; }

/* Skeleton loaders */
.skeleton-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #f7fafd 50%, #eef2f7 75%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
.skeleton-img { height: 180px; }
.skeleton-line { height: 12px; border-radius: 6px; margin: .6rem 1rem; }

/* ---------- Timeline ------------------------------------------------------ */
.timeline { position: relative; padding-left: 0; list-style: none; margin: 0; }
.timeline::before { content: ""; position: absolute; left: 26px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 1.6rem 74px; }
.timeline-step {
  position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 16px;
  background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.timeline-item.is-visible .timeline-step { background: var(--primary); color: #fff; }
.timeline-item h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.timeline-item p { margin: 0; color: var(--muted-text); font-size: .93rem; }

/* ---------- Accordion ----------------------------------------------------- */
.accordion-brand .accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm) !important; margin-bottom: .75rem; overflow: hidden; }
.accordion-brand .accordion-button { font-family: var(--font-heading); font-weight: 600; color: var(--dark); background: #fff; padding: 1rem 1.15rem; }
.accordion-brand .accordion-button:not(.collapsed) { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }
.accordion-brand .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(7,93,184,.14); }
.accordion-brand .accordion-body { color: var(--muted-text); font-size: .95rem; }

/* ---------- CTA ----------------------------------------------------------- */
.cta-band {
  background: var(--primary-darker);
  color: #cbdcef;
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 90% 20%, rgba(7,93,184,.6), transparent 70%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band.cta-red { background: linear-gradient(120deg, #8f1010, var(--secondary)); }
.cta-band.cta-red::before { background: radial-gradient(500px 260px at 85% 10%, rgba(255,255,255,.18), transparent 70%); }

/* Admissions banner */
.admissions-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: var(--radius-lg); padding: 2.25rem;
  position: relative; overflow: hidden;
}
.admissions-banner h2 { color: #fff; }
.admissions-banner .banner-icon { font-size: 3.4rem; opacity: .35; }

/* ---------- Gallery ------------------------------------------------------- */
.gallery-grid { column-count: 3; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; position: relative; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.gallery-item img { width: 100%; display: block; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .caption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(16,35,63,.85)); color: #fff;
  font-size: .85rem; opacity: 0; transform: translateY(10px); transition: var(--transition);
}
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }

/* ---------- News / events ------------------------------------------------- */
.news-card .news-meta { font-size: .8rem; color: var(--muted-text); display: flex; gap: 1rem; flex-wrap: wrap; }
.news-card h3 { font-size: 1.07rem; }
.event-date {
  min-width: 70px; text-align: center; background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 12px; padding: .6rem .4rem; font-family: var(--font-heading); line-height: 1.1;
}
.event-date .day { font-size: 1.5rem; font-weight: 700; display: block; }
.event-date .mon { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }

.notice-row {
  display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; transition: var(--transition);
}
.notice-row:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.notice-row .file-icon { font-size: 1.6rem; color: var(--secondary); }

/* ---------- Faculty ------------------------------------------------------- */
.faculty-card .media-frame { aspect-ratio: 1 / 1; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.faculty-avatar { font-size: 3.4rem; color: var(--primary); }

/* ---------- Testimonials -------------------------------------------------- */
.testimonial-card { padding: 1.75rem; }
.testimonial-card .quote-mark { font-size: 2rem; color: var(--primary); opacity: .35; }

/* ---------- Sticky sidebar ------------------------------------------------ */
.sticky-side { position: sticky; top: 100px; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--primary-darker); color: #a7bdd7; padding-top: 68px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.site-footer a { color: #a7bdd7; font-size: .92rem; }
.site-footer a:hover { color: #fff; padding-left: 3px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.footer-brand { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.footer-brand span { color: #fff; font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
.footer-contact li { display: flex; gap: .65rem; font-size: .92rem; }
.footer-contact i { color: #6ea8e5; margin-top: .3rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; margin-right: .4rem;
}
.footer-social a:hover { background: var(--primary); color: #fff; padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 0; font-size: .85rem; }
.footer-bottom a { font-size: .85rem; }

/* ---------- Floating actions --------------------------------------------- */
.floating-actions {
  position: fixed; right: 18px; bottom: 90px; z-index: 1040;
  display: flex; flex-direction: column; gap: .6rem;
}
.floating-actions a {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; box-shadow: var(--shadow); transition: var(--transition);
}
.floating-actions a:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.fab-whatsapp { background: #25d366; }
.fab-call { background: var(--primary); }
.fab-apply { background: var(--secondary); font-size: .72rem !important; font-weight: 700; font-family: var(--font-heading); }

.back-to-top {
  position: fixed; right: 18px; bottom: 24px; z-index: 1040;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); }

.mobile-action-bar { display: none; }

/* ---------- Multi-step form ---------------------------------------------- */
.stepper { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.stepper .step {
  flex: 1 1 120px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted-text);
  padding-top: 2.6rem; position: relative;
}
.stepper .step::before {
  content: attr(data-step); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--light); color: var(--muted-text);
  display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid var(--border);
  transition: var(--transition);
}
.stepper .step.active::before { background: var(--primary); color: #fff; border-color: var(--primary); }
.stepper .step.done::before { content: "\2713"; background: #16a34a; color: #fff; border-color: #16a34a; }
.stepper .step.active { color: var(--primary); }

.form-step { display: none; }
.form-step.active { display: block; animation: fade-up .4s ease both; }

.upload-drop {
  border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 2rem 1rem; text-align: center;
  background: var(--light); transition: var(--transition); cursor: pointer;
}
.upload-drop:hover, .upload-drop.dragover { border-color: var(--primary); background: var(--primary-soft); }
.upload-list li { font-size: .86rem; display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--border); }

.review-table th { width: 42%; font-weight: 600; color: var(--dark); font-size: .88rem; }
.review-table td { font-size: .88rem; color: var(--muted-text); }

.demo-note {
  background: #fffaf0; border: 1px solid #f6e2b8; color: #8a6314;
  border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .85rem;
}

/* ---------- Map / contact ------------------------------------------------- */
.map-placeholder {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 340px;
  background: var(--light); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem;
}
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); line-height: 0; }
.contact-tile { display: flex; gap: 1rem; padding: 1.25rem; }
.contact-tile i { font-size: 1.4rem; color: var(--primary); }

/* ---------- 404 ----------------------------------------------------------- */
.error-code { font-family: var(--font-heading); font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 700; color: var(--primary); line-height: 1; }

/* ---------- RTL scaffolding ---------------------------------------------- */
html[dir="rtl"] body { text-align: right; font-family: var(--font-urdu); }
html[dir="rtl"] .timeline::before { left: auto; right: 26px; }
html[dir="rtl"] .timeline-item { padding: 0 74px 1.6rem 0; }
html[dir="rtl"] .timeline-step { left: auto; right: 0; }
html[dir="rtl"] .floating-actions { right: auto; left: 18px; }
html[dir="rtl"] .back-to-top { right: auto; left: 18px; }
html[dir="rtl"] .badge-float { left: auto; right: 12px; }

/* ---------- CEO message (home page) -------------------------------------- */
.ceo-photo { position: relative; max-width: 360px; margin: 0 auto; }
.ceo-photo::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: 0;
  border: 3px solid var(--secondary); border-radius: var(--radius-lg);
}
.ceo-photo img {
  position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--primary-soft);
}
.ceo-message .quote-mark { display: block; font-size: 3.2rem; line-height: 1; color: var(--primary); opacity: .25; margin-bottom: .25rem; }
.ceo-message .ceo-text { font-size: 1.05rem; color: var(--text); }
.ceo-signoff { border-left: 4px solid var(--secondary); padding-left: 1rem; margin-top: 1.5rem; }
.ceo-signoff .ceo-name { font-family: var(--font-heading); font-weight: 700; color: var(--dark); font-size: 1.15rem; margin: 0; }
.ceo-signoff .ceo-role { color: var(--muted-text); font-size: .92rem; margin: 0; }
@media (max-width: 575.98px) {
  .ceo-photo { max-width: 280px; }
  .ceo-photo::before { inset: 12px -10px -12px 10px; }
}

/* ---------- Auto-calculated percentage (admission form) ------------------- */
#percentage[readonly] { background-color: var(--primary-soft); font-weight: 600; color: var(--dark); cursor: default; }

/* ---------- CEO message box (home page) ---------------------------------- */
.ceo-box {
  display: flex; align-items: stretch; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--secondary);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.ceo-box-photo { flex: 0 0 300px; background: var(--primary-soft); }
.ceo-box-photo img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: top; }
.ceo-box-body { flex: 1 1 0; min-width: 0; padding: 2.25rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.ceo-box-quote { font-size: 3rem; line-height: 1; color: var(--primary); opacity: .25; margin: 0 0 .25rem; }
.ceo-box-text { font-size: 1.02rem; line-height: 1.75; color: var(--text); margin: 0 0 1.5rem; overflow-wrap: anywhere; }
.ceo-box-text p { margin: 0 0 1rem; }
.ceo-box-text p:first-child { font-family: var(--font-heading); font-size: 1.12rem; font-weight: 500; color: var(--dark); }
.ceo-box-text p:last-child { margin-bottom: 0; }
.ceo-box-sign { border-left: 4px solid var(--secondary); padding-left: 1rem; }
.ceo-box-sign .ceo-name { font-family: var(--font-heading); font-weight: 700; color: var(--dark); font-size: 1.25rem; margin: 0; }
.ceo-box-sign .ceo-role { color: var(--muted-text); font-size: .92rem; margin: 0; }
@media (max-width: 991.98px) {
  .ceo-box-photo { flex-basis: 220px; }
  .ceo-box-body { padding: 1.75rem; }
}
@media (max-width: 767.98px) {
  .ceo-box { flex-direction: column; }
  .ceo-box-photo { flex: none; }
  .ceo-box-photo img { min-height: 0; height: 260px; object-position: top; }
  .ceo-box-body { padding: 1.25rem 1.1rem 1.5rem; }
  .ceo-box-quote { font-size: 2.4rem; }
  .ceo-box-text { font-size: .97rem; line-height: 1.7; }
  .ceo-box-text p:first-child { font-size: 1.02rem; }
}

