:root{
  /* ── Brand palette derived from Jelwan logo (#497EE4) ── */
  --brand:#497EE4;          /* logo blue — primary brand colour */
  --brand-dark:#2b5cb8;     /* darker shade for hover/active */
  --brand-light:#dbeafe;    /* light tint for backgrounds */
  --brand-muted:rgba(73,126,228,.12); /* very light for badges/chips */

  /* Legacy aliases kept for backward compat */
  --blue:#497EE4;
  --green:#16a34a;

  --text:#374151;
  --muted:#6b7280;
  --bg:#f3f4f6;
  --surface:#ffffff;
  --border:#e5e7eb;
  --grad:linear-gradient(135deg,#497EE4,#2b5cb8);
}

*{box-sizing:border-box}
html{font-size:14px}
body{
  margin:0; background:var(--bg);
  color:var(--text);
  font-family:'Tajawal',system-ui,-apple-system,'Segoe UI',Roboto,Arial,'Noto Kufi Arabic',sans-serif;
}

.page-shell{
  max-width:1200px;
  margin-inline:auto;
  display:grid;
  gap:1.5rem;
  padding:1rem;
}

@media(min-width:768px){
  .page-shell{
    padding:1.5rem;
  }
}

/* Links and buttons */
a{color:var(--blue);text-decoration:none}
.btn{
  display:inline-flex;align-items:center;gap:.4rem;
  background:var(--surface);border:1px solid var(--border);
  padding:.6rem .95rem;border-radius:.65rem;cursor:pointer;transition:.12s;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--brand);color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(73,126,228,.22)}
.btn.secondary{background:var(--brand-muted);color:var(--brand-dark);border-color:transparent;box-shadow:0 6px 14px rgba(73,126,228,.12)}
.btn.secondary:hover{background:rgba(73,126,228,.2)}
.btn.danger{background:#dc2626;color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(220,38,38,.22)}
.btn.danger.ghost{background:transparent;color:#dc2626;border-color:rgba(220,38,38,.35);box-shadow:none}
.btn.success{background:var(--green);color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(22,163,74,.22)}
.btn.ghost{background:transparent}
.btn-primary{
  color:#fff;
  background:var(--grad);
  border-color:transparent;
  box-shadow:0 10px 20px rgba(73,126,228,.25);
}
.btn-primary:hover,
.btn-primary:focus{
  color:#fff;
  background:linear-gradient(135deg,var(--brand-dark),#1e4494);
  border-color:transparent;
  box-shadow:0 12px 24px rgba(73,126,228,.32);
}
.btn-primary:disabled,
.btn-primary:disabled:hover{
  color:#fff;
  background:linear-gradient(135deg,rgba(73,126,228,.85),rgba(43,92,184,.85));
  border-color:transparent;
  box-shadow:none;
}
.input, select{
  width:100%;padding:.7rem .8rem;border:1px solid var(--border);
  border-radius:.6rem;background:#fff;
}

/* General layout */
.container{max-width:1200px;margin-inline:auto;padding:1rem}
.header{
  display:flex;align-items:center;justify-content:space-between;
  background:var(--surface);border-bottom:1px solid var(--border);
  padding:.9rem 1rem;position:sticky;top:0;z-index:10;
}
.app-wrapper.no-sidebar .app-main,
.app-wrapper.no-sidebar .app-content,
.app-wrapper.no-sidebar .app-content-header{
  margin-left:0;
}

/* ── Sidebar backdrop (mobile overlay) ── */
.sidebar-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:1040;
  cursor:pointer;
}

/* ── Desktop icon-only: hide nav text inside <p> tags ── */
.sidebar-mini.sidebar-collapse .app-sidebar .nav-link p,
.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-top .brand-image{
  display:none !important;
}
.sidebar-mini.sidebar-collapse .app-sidebar .nav-link{
  justify-content:center;
  padding-inline:.5rem;
}
.sidebar-mini.sidebar-collapse .sidebar-brand{
  justify-content:center;
}
/* ── Submenu items in collapsed mode: reset indent so icon is centered ── */
.sidebar-mini.sidebar-collapse .nav-treeview .nav-link-submenu{
  padding-left:.5rem !important;
}
/* ── Hover-to-expand: when hovering collapsed sidebar, restore full width & text ── */
.sidebar-mini.sidebar-collapse .app-sidebar:hover{
  min-width:var(--lte-sidebar-width, 250px);
  max-width:var(--lte-sidebar-width, 250px);
  transition:min-width .25s ease, max-width .25s ease;
}
.sidebar-mini.sidebar-collapse .app-sidebar:hover .nav-link{
  justify-content:flex-start !important;
  padding-inline:revert !important;
}
.sidebar-mini.sidebar-collapse .app-sidebar:hover .app-sidebar .nav-link p,
.sidebar-mini.sidebar-collapse .app-sidebar:hover .nav-link p{
  display:inline-block !important;
}
.sidebar-mini.sidebar-collapse .app-sidebar:hover .sidebar-brand{
  justify-content:space-between !important;
}
.sidebar-mini.sidebar-collapse .app-sidebar:hover .sidebar-top .brand-image{
  display:block !important;
}
.sidebar-mini.sidebar-collapse .app-sidebar:hover .nav-treeview .nav-link-submenu{
  padding-left:2.5rem !important;
}

/* ── Mobile: full-width main content when sidebar is an overlay ── */
@media(max-width:767.98px){
  .sidebar-expand-md .app-main,
  .sidebar-expand-md .app-content-header{
    margin-left:0 !important;
  }
  /* Ensure sidebar slides with a smooth transition on mobile */
  .sidebar-expand-md .app-sidebar{
    transition:margin-left .28s ease !important;
    z-index:1045;
  }
}

/* ── Desktop: fully hide the sidebar and let content use the full width ── */
@media(min-width:768px){
  .sidebar-hidden-desktop .app-sidebar{
    display:none !important;
  }

  .sidebar-hidden-desktop .app-main,
  .sidebar-hidden-desktop .app-content,
  .sidebar-hidden-desktop .app-content-header,
  .sidebar-hidden-desktop .app-footer{
    margin-left:0 !important;
  }
}
.header-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}
.brand{display:flex;align-items:center;gap:.7rem;font-weight:900}
.brand .logo{
  width:36px;height:36px;border-radius:10px;background:var(--grad);
  box-shadow:0 6px 16px rgba(37,99,235,.25)
}
.brand .wordmark{
  font-size:1.25rem;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent
}
.badge{background:var(--brand);color:#fff;border-radius:.5rem;padding:.15rem .5rem;font-size:.72rem}
.user-info{font-weight:700}

/* Content grid */
.grid{display:grid;gap:1rem}
@media(min-width:980px){.grid{grid-template-columns:280px 1fr}}

.sidebar{
  background:var(--surface);border-inline-start:1px solid var(--border);
  padding:1rem;min-height:calc(100vh - 64px);
}
.nav a{
  display:flex;align-items:center;gap:.6rem;
  padding:.65rem .7rem;border-radius:.7rem;color:var(--text);
}
.nav a.active,.nav a:hover{
  background:rgba(37,99,235,.08);
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.2);
}

.app-sidebar .sidebar-top{
  display:flex;
  flex-direction:column;
  gap:.75rem;
  padding:1.25rem 1rem 0;
  margin-bottom:1.25rem;
}

/* Override AdminLTE dark bg with a brand-tinted navy */
aside.app-sidebar {
  background: #1a2744 !important;
  border-right: 1px solid rgba(73,126,228,.22);
}

/* Logo / brand header area */
aside.app-sidebar .sidebar-top .sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem .85rem;
  border-bottom: 1px solid rgba(73,126,228,.22);
  gap: .5rem;
}
aside.app-sidebar .sidebar-top .sidebar-brand .brand-link {
  display: flex;
  align-items: center;
  flex-grow: 1;
  line-height: 0;
}
aside.app-sidebar .sidebar-top .sidebar-brand .brand-image {
  max-height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(73,126,228,.35));
  transition: filter .25s ease;
}
aside.app-sidebar .sidebar-top .sidebar-brand .brand-image:hover {
  filter: drop-shadow(0 0 14px rgba(73,126,228,.65));
}
/* Sidebar collapse/hide button */
.sidebar-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(73,126,228,.3);
  border-radius: 10px;
  padding: 0;
  background: rgba(73,126,228,.08);
  color: #7ba8f0;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.sidebar-collapse-btn:hover,
.sidebar-collapse-btn:focus-visible {
  background: rgba(73,126,228,.22);
  border-color: rgba(73,126,228,.55);
  color: #c8dcff;
  box-shadow: 0 0 0 3px rgba(73,126,228,.15), 0 4px 12px rgba(73,126,228,.2);
  outline: none;
}
.sidebar-collapse-btn:active {
  background: rgba(73,126,228,.32);
  box-shadow: none;
}

.sidebar-toggle-button{
  display:flex;
  align-items:center;
  gap:.55rem;
  border:0;
  border-radius:.85rem;
  padding:.6rem .85rem;
  font-weight:600;
  color:rgba(168,198,255,.9);
  background:rgba(73,126,228,.14);
  transition:background-color .2s ease,box-shadow .2s ease,color .2s ease;
}

.sidebar-toggle-button:hover,
.sidebar-toggle-button:focus{
  background:rgba(73,126,228,.28);
  color:#fff;
  box-shadow:0 6px 16px rgba(73,126,228,.22);
}

.sidebar-toggle-label{white-space:nowrap;}

.app-sidebar .nav-link{
  display:flex;align-items:center;gap:.75rem;
  border-radius:.85rem;
  color:rgba(168,198,255,.75);
  font-weight:500;
  letter-spacing:.01em;
  transition:color .2s ease,background-color .2s ease,box-shadow .2s ease;
}
.app-sidebar .nav-link .nav-text{flex:1;}
.app-sidebar .nav-link .nav-icon{
  color:#7ba8f0;
  opacity:.85;
  transition:opacity .2s ease,color .2s ease;
}
.sidebar-toggle-icon{width:1.25rem;height:1.25rem;display:block;flex-shrink:0;}
.navbar-nav .sidebar-header-toggle{
  border:0;
  background:none;
  display:flex;
  align-items:center;
  padding:.5rem .75rem;
  color:inherit;
  cursor:pointer;
}
.navbar-nav .sidebar-header-toggle:focus-visible{
  outline:2px solid rgba(73,126,228,.7);
  outline-offset:2px;
}
.app-sidebar .nav-link:hover,
.app-sidebar .nav-link:focus{
  color:#c8dcff;
  background-color:rgba(73,126,228,.14);
  box-shadow:inset 0 0 0 1px rgba(73,126,228,.2);
}
.app-sidebar .nav-link:hover .nav-icon,
.app-sidebar .nav-link:focus .nav-icon{opacity:1;color:#a8c8ff;}
.app-sidebar .nav-link.active{
  color:#fff;
  background:linear-gradient(135deg,rgba(73,126,228,.95),rgba(45,94,199,.95));
  box-shadow:0 6px 18px rgba(73,126,228,.36);
  position:relative;
}
/* Left border accent on active item */
.app-sidebar .nav-link.active::before{
  content:'';
  position:absolute;
  left:0;
  top:20%;
  height:60%;
  width:3px;
  border-radius:0 3px 3px 0;
  background:#a8c8ff;
}

.app-sidebar .nav-link.active .nav-icon{opacity:1;color:#fff;}

.sidebar-mini.sidebar-collapse .sidebar-toggle-button{justify-content:center;width:100%;}
.sidebar-mini.sidebar-collapse .sidebar-toggle-button .sidebar-toggle-icon{margin-inline:auto;}
.sidebar-mini.sidebar-collapse .sidebar-toggle-label{display:none;}
.sidebar-mini.sidebar-collapse .sidebar-top{align-items:center;}
.sidebar-mini.sidebar-collapse .sidebar-top .brand-link{justify-content:center;}
.sidebar-mini.sidebar-collapse .sidebar-top .brand-text{display:none;}
.sidebar-mini.sidebar-collapse .app-sidebar .nav-link{justify-content:center;}
.sidebar-mini.sidebar-collapse .app-sidebar .nav-link .nav-text{display:none;}

/* Cards and tables */
.card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:1rem;box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.card h2{margin:.2rem 0 1rem;font-size:1.1rem}
.kpi{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.indicator-card__header{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  margin-bottom:1rem;
}

.indicator-card__header h2{
  margin:0;
  font-size:1.1rem;
}

.kpi .tile{
  border:1px solid var(--border);border-radius:12px;padding:1rem;
  background:linear-gradient(0deg, rgba(0,0,0,.02), rgba(0,0,0,0));
  display:grid;
  gap:.2rem;
}
.kpi .title{font-size:.85rem;color:var(--muted)}
.kpi .value{
  font-size:1.7rem;font-weight:900;margin-top:.3rem;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.kpi .caption{
  font-size:.75rem;
  color:var(--muted);
}

.table{width:100%;border-collapse:separate;border-spacing:0}
.table th,.table td{padding:.72rem .85rem;border-bottom:1px solid var(--border);text-align:start}
.table th{font-size:.85rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.table tr:nth-child(even){background:#fafafa}

/* Authentication pages */
.auth-footer{
  font-size:.85rem;
}

/* Page top action bar */
.page-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1rem}
.muted{color:var(--muted);font-size:.9rem;margin-top:.25rem}

.admin-students .page-header{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}
@media(min-width:700px){.admin-students .page-header{flex-direction:row;justify-content:space-between;align-items:flex-end}}

.card-header{display:flex;flex-direction:column;gap:.3rem;margin-bottom:1.1rem}
.card-header h2{margin:0;font-size:1.05rem}

.form-grid{display:grid;gap:1rem}
.student-form {
   width:50%;
}

@media(min-width:720px){.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.input-field{display:flex;flex-direction:column;gap:.35rem}
.input-field span{font-size:.8rem;font-weight:600;color:var(--muted)}
.input-field .input{font-size:.95rem}

.form-actions{display:flex;justify-content:flex-end;margin-top:1.2rem}

/* Management workspace patterns */
.management-page{
  display:flex;
  flex-direction:column;
  gap:2rem;
  padding-bottom:3rem;
}

.management-hero{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.5rem;
}

.management-hero__content{
  display:grid;
  gap:.5rem;
  max-width:640px;
}

.management-hero__content h1{
  margin:0;
  font-size:1.85rem;
}

.management-hero__content h2{
  margin:0;
  font-size:1.05rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
}

.management-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  align-items:center;
  justify-content:flex-end;
}

.management-guidance{
  display:grid;
  gap:.55rem;
  margin:0;
  padding-left:1.25rem;
}

.management-guidance li{
  line-height:1.45;
}

.management-records{
  display:grid;
  gap:1.5rem;
  padding:2rem;
  overflow-x:auto;
}

.management-records__header{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
}

.management-records__header h2{
  margin:0;
}

.management-records__header p{
  margin:.25rem 0 0;
}

.management-records__controls{
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:.75rem;
}

/* ── Records card (unified layout for Students / Users / Schools) ── */
.records-card{
  display:grid;
  gap:1.5rem;
  padding:2rem;
  overflow-x:auto;
}
.records-card__header{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
}
.records-card__header h2{margin:0}
.records-card__header p{margin:.25rem 0 0}
.records-card__controls{
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:.75rem;
}

/* ── Filter bar (inline row of labelled filters) ── */
.filter-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:.75rem;
  padding:.25rem 0;
}
.filter-bar__item{
  display:flex;
  flex-direction:column;
  gap:.3rem;
  min-width:160px;
}
.filter-bar__label{
  font-size:.75rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--muted);
}
.filter-bar__count{
  font-size:.85rem;
  color:var(--muted);
  align-self:center;
  margin-left:auto;
}
.filter-bar__clear{align-self:flex-end}

/* ── Page hero (workspace intro card) ── */
.page-hero{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  padding:1.5rem;
}
.page-hero__content{display:grid;gap:.5rem;max-width:600px}
.page-hero__content h1{margin:0}
.page-hero__content h2{margin:.25rem 0 0;font-size:1rem;color:var(--muted)}
.page-hero__actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.guidance-list{display:grid;gap:.45rem;padding-left:1.25rem;margin:.25rem 0 0}
.guidance-list li{line-height:1.45}

/* ── Student table identity column ── */
.student-table__identity{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.student-table__avatar{
  flex-shrink:0;
  width:2.25rem;
  height:2.25rem;
  border-radius:50%;
  background:var(--brand-muted);
  color:var(--brand-dark);
  font-weight:700;
  font-size:.85rem;
  display:flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}
.student-table__details{display:flex;flex-direction:column;gap:.15rem}
.student-table__name{font-weight:600}
.student-table__meta{font-size:.8rem;color:var(--muted)}
.student-table__badge{
  display:inline-flex;
  align-items:center;
  padding:.25rem .6rem;
  border-radius:.5rem;
  font-size:.78rem;
  font-weight:600;
  background:var(--brand-muted);
  color:var(--brand-dark);
}

.management-empty-state{
  text-align:center;
  padding:2.5rem 1rem;
  color:var(--muted);
  border:1px dashed rgba(82,85,96,.3);
  border-radius:1rem;
  width:100%;
}

.management-empty-state .icon{
  font-size:1.75rem;
  display:block;
  margin-bottom:.75rem;
}

.management-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:720px;
}

.management-table th{
  font-size:.8rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--muted);
  padding:.75rem .95rem;
  border-bottom:1px solid var(--border);
}

.management-table td{
  padding:.85rem .95rem;
  border-bottom:1px solid var(--border);
  vertical-align:middle;
}

.management-table tbody tr{
  transition:background .2s ease;
}

.management-table tbody tr:hover{
  background:rgba(59,130,246,.08);
}

.management-table__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  justify-content:flex-end;
}

.management-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:2.25rem;
  padding:.35rem .75rem;
  border-radius:999px;
  font-size:.8rem;
  font-weight:700;
  background:rgba(59,130,246,.15);
  color:#1d4ed8;
}

.management-pill{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.35rem .65rem;
  border-radius:.6rem;
  font-weight:600;
  font-size:.78rem;
  background:rgba(15,23,42,.08);
  color:#0f172a;
}

.management-pill.success{
  background:rgba(34,197,94,.12);
  color:#166534;
}

.management-pill.danger{
  background:rgba(239,68,68,.12);
  color:#7f1d1d;
}

.management-color-swatch{
  width:1.75rem;
  height:1.75rem;
  border-radius:.5rem;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.management-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1.5rem;
  z-index:5000;
}

.management-modal{
  background:#fff;
  border-radius:1rem;
  box-shadow:0 30px 60px rgba(15,23,42,.22);
  padding:1.75rem;
  width:min(640px,100%);
  display:grid;
  gap:1.25rem;
}

.management-modal__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1.25rem;
}

.management-modal__header h3{
  margin:0;
}

.management-modal__header p{
  margin:.3rem 0 0;
}

.management-modal__actions{
  display:flex;
  justify-content:flex-end;
  gap:.75rem;
}

.management-modal__body{
  display:grid;
  gap:1rem;
}

.management-modal-page--wide{
  align-items:flex-start;
}

.management-modal--wide{
  width:min(960px,100%);
  max-height:90vh;
  overflow-y:auto;
}

.management-modal--wide .management-modal__body{
  gap:1.5rem;
}

.management-modal__error{
  background:rgba(239,68,68,.12);
  color:#7f1d1d;
  border:1px solid rgba(239,68,68,.25);
  padding:.75rem 1rem;
  border-radius:.75rem;
  font-weight:600;
}

.assign-students-modal{
  width:min(1120px,calc(100vw - 2rem));
  height:min(920px,calc(100vh - 2rem));
  max-height:calc(100vh - 2rem);
  padding:1.35rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
  overflow:hidden;
}

.assign-students-modal__header{
  flex:0 0 auto;
}

.assign-students-modal__header h3{
  font-size:clamp(1.55rem,3vw,2.25rem);
  line-height:1.12;
}

.assign-students-modal__error{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.assign-students-modal__filters{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(280px,1.15fr);
  gap:.85rem 1.25rem;
  align-items:end;
  padding:0 .25rem;
}

.assign-students-modal__field{
  min-width:0;
}

.assign-students-modal__field span{
  color:#334155;
  font-size:.9rem;
  font-weight:700;
}

.assign-students-modal__field .input{
  width:100%;
  min-height:44px;
  font-size:1rem;
}

.assign-students-modal__checkbox{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:0 0 .55rem;
  color:#334155;
  font-size:.95rem;
  font-weight:600;
}

.assign-students-modal__checkbox input,
.assign-students-modal__table input[type="checkbox"]{
  width:1.1rem;
  height:1.1rem;
  cursor:pointer;
}

.assign-students-modal__list{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:.8rem;
  background:#fff;
  box-shadow:0 14px 35px rgba(15,23,42,.08);
}

.assign-students-modal__state,
.assign-students-modal__empty{
  flex:1 1 auto;
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  text-align:center;
}

.assign-students-modal__state{
  gap:.75rem;
  font-weight:600;
}

.assign-students-modal__empty{
  flex-direction:column;
  gap:.25rem;
}

.assign-students-modal__empty p{
  margin:0;
  color:#1f2937;
  font-weight:700;
}

.assign-students-modal__selection-banner{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.7rem .85rem;
  background:#eff6ff;
  border-bottom:1px solid #bfdbfe;
  color:#1e3a8a;
  font-size:.92rem;
  font-weight:700;
}

.assign-students-modal__selection-banner.selected{
  background:#ecfdf5;
  border-bottom-color:#bbf7d0;
  color:#166534;
}

.assign-students-modal__selection-banner .btn{
  min-height:38px;
  padding:.45rem .85rem;
  white-space:normal;
}

.assign-students-modal__table-wrap{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
}

.assign-students-modal__table{
  min-width:860px;
}

.assign-students-modal__table th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f8fafc;
  padding:.6rem .75rem;
  text-align:left;
  white-space:nowrap;
}

.assign-students-modal__table td{
  padding:.62rem .75rem;
  text-align:left;
}

.assign-students-modal__table tbody tr.is-selected{
  background:#ecfdf5;
}

.assign-students-modal__table tbody tr.is-selected:hover{
  background:#dcfce7;
}

.assign-students-modal__table .student-name{
  color:#111827;
  font-weight:700;
}

.assign-students-modal__table .student-id{
  color:#475569;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:.9rem;
}

.assign-students-modal__load-more{
  flex:0 0 auto;
  padding:.65rem .85rem;
  border-top:1px solid #e2e8f0;
  background:#fff;
  text-align:center;
}

.assign-students-modal__load-more .btn{
  min-height:38px;
}

.assign-students-modal__actions{
  flex:0 0 auto;
  justify-content:flex-start;
  padding:0 .25rem;
  margin-top:.15rem;
}

.management-modal-page{
  min-height:100vh;
  background:var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2rem 1rem;
}

.icon-button{
  background:transparent;
  border:none;
  padding:.35rem;
  border-radius:.6rem;
  cursor:pointer;
  transition:background .12s ease;
}

.icon-button:hover{
  background:rgba(15,23,42,.08);
}

.management-subtitle{
  font-size:.85rem;
  color:var(--muted);
  margin-top:.35rem;
}

@media(max-width:768px){
  .management-table{
    min-width:100%;
  }

  .management-modal{
    padding:1.25rem;
  }

  .assign-students-modal{
    width:calc(100vw - 1rem);
    height:calc(100vh - 1rem);
    padding:1rem;
  }

  .assign-students-modal__filters{
    grid-template-columns:1fr;
    gap:.75rem;
  }

  .assign-students-modal__checkbox{
    padding:.1rem 0;
  }

  .assign-students-modal__selection-banner{
    align-items:stretch;
    flex-direction:column;
  }

  .assign-students-modal__table{
    min-width:780px;
  }

  .assign-students-modal__actions{
    flex-wrap:wrap;
  }
}

.upload-tile{border:1px dashed var(--border);border-radius:14px;padding:1rem;display:flex;align-items:center;gap:1rem;cursor:pointer;position:relative;overflow:hidden;background:rgba(37,99,235,.04)}
.upload-tile input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
.upload-tile .icon{font-size:1.6rem}

.icon{display:inline-flex;align-items:center;justify-content:center}

.table-scroll{overflow:auto;border:1px solid var(--border);border-radius:12px}
.data-table{width:100%;border-collapse:collapse;font-size:.92rem}
.data-table thead{background:rgba(37,99,235,.06)}
.data-table th,.data-table td{padding:.75rem .85rem;text-align:left;border-bottom:1px solid var(--border)}
.data-table th{font-size:.75rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.data-table tbody tr:nth-child(even){background:#fafafa}
.data-table small{display:block;font-weight:400;color:var(--muted);margin-top:.2rem}

@media(max-width:768px){
  .table thead,
  .data-table thead{display:none}

  .table tbody,
  .data-table tbody{display:grid;gap:1rem}

  .table tr,
  .data-table tr{
    display:grid;
    gap:.75rem;
    padding:1rem;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--surface);
    box-shadow:0 12px 24px rgba(15,23,42,.06);
  }

  .table tr:nth-child(even),
  .data-table tr:nth-child(even){background:var(--surface)}

  .table td,
  .data-table td{
    display:grid;
    grid-template-columns:minmax(0,140px) minmax(0,1fr);
    gap:.35rem;
    padding:0;
    border:none;
    text-align:left;
  }

  .table td::before,
  .data-table td::before{
    content:attr(data-label);
    font-size:.72rem;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--muted);
  }

  .table td[data-label=""],
  .data-table td[data-label=""]{
    grid-template-columns:1fr;
  }

  .table td[data-label=""]::before,
  .data-table td[data-label=""]::before{content:"";display:none}

  .table td[colspan],
  .data-table td[colspan]{grid-template-columns:1fr}

  .table td[colspan]::before,
  .data-table td[colspan]::before{content:"";display:none}

  .table td[data-label="Actions"],
  .data-table td[data-label="Actions"]{grid-template-columns:1fr}

  .table td[data-label="Actions"]::before,
  .data-table td[data-label="Actions"]::before{margin-bottom:.25rem}

  .table td[data-label="Actions"] > *,
  .data-table td[data-label="Actions"] > *{width:100%}

  .table td[data-label="Actions"] > * + *,
  .data-table td[data-label="Actions"] > * + *{margin-top:.5rem}

  .table td > .btn,
  .data-table td > .btn{justify-content:center}

  .table td input,
  .data-table td input,
  .table td select,
  .data-table td select{width:100%}
}

.empty-state{display:flex;gap:.8rem;align-items:center;justify-content:center;text-align:left;padding:2rem}
.empty-state .icon{font-size:1.4rem}
.empty-state p{margin:.25rem 0 0}

/* Marketing layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

body[data-page="marketing"],
.marketing-layout{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:var(--text);background:var(--bg);}

.marketing-layout{min-height:100vh;display:flex;flex-direction:column;}
.marketing-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid #ececec;}
.marketing-header__inner{position:relative;width:min(1180px,calc(100% - 48px));margin:0 auto;min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px;}
.marketing-brand{display:flex;align-items:center;gap:.8rem;font-weight:800;color:var(--text);text-decoration:none;}
.marketing-logo{width:188px;height:auto;display:block;}
.marketing-wordmark{font-size:1.25rem;font-weight:800;color:#0d1b2a;letter-spacing:-.01em;}
.marketing-menu-toggle{display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:44px;height:44px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;cursor:pointer;padding:0;}
.marketing-menu-toggle span{display:block;width:18px;height:2px;background:#1f2937;border-radius:2px;}
.marketing-nav{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:28px;justify-content:center;white-space:nowrap;}
.marketing-nav__link{padding:0;color:#1f2937;font-size:14px;font-weight:600;text-decoration:none;}
.marketing-nav__link.active{color:var(--blue);text-decoration:underline;text-underline-offset:6px;background:transparent;}
.marketing-nav__link:hover{color:var(--blue);background:transparent;}
.marketing-header-actions{display:flex;align-items:center;justify-content:flex-end;}
.marketing-login-btn{background:linear-gradient(180deg, #5b86ef, #3b6fe6);color:#fff;border:none;border-radius:10px;padding:11px 24px;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 8px 18px rgba(75,125,232,.25);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;}

@media (max-width:900px){
  .marketing-header__inner{width:calc(100% - 24px);min-height:72px;gap:12px;}
  .marketing-logo{width:156px;}
  .marketing-menu-toggle{display:inline-flex;}
  .marketing-nav{display:none;position:absolute;left:0;right:0;top:calc(100% - 1px);transform:none;flex-direction:column;align-items:stretch;gap:0;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 16px 28px rgba(15,23,42,.12);padding:8px;z-index:70;}
  .marketing-nav.is-open{display:flex;}
  .marketing-nav__link{display:block;padding:12px 14px;border-radius:10px;font-size:15px;}
  .marketing-nav__link.active{text-decoration:none;background:#edf3ff;}
  .marketing-header-actions{margin-left:auto;}
  .marketing-login-btn{padding:9px 16px;font-size:13px;border-radius:9px;}
}

.marketing-main{flex:1;max-width:1200px;margin:auto;padding:2rem 1.25rem;display:flex;flex-direction:column;gap:1.5rem;}
.marketing-main--about{max-width:1280px;padding:0;gap:0;}
.marketing-footer{
  background:#0f172a;color:#cbd5e1;
  border-top:none;margin-top:2rem;
}
.marketing-footer__grid{
  max-width:1200px;margin:auto;
  padding:3.5rem 1.5rem 2.5rem;
  display:grid;gap:2.5rem;
  grid-template-columns:1fr;
}
@media(min-width:640px){
  .marketing-footer__grid{grid-template-columns:repeat(2,1fr);}
}
@media(min-width:960px){
  .marketing-footer__grid{grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem;}
}
.marketing-footer__brand-col p{
  font-size:.88rem;line-height:1.65;color:#94a3b8;
  margin:.75rem 0 1rem;max-width:280px;
}
.marketing-footer__brand-link{display:inline-block;}
.marketing-footer__logo{height:36px;filter:brightness(0) invert(1);}
.marketing-footer__social{
  display:flex;gap:.75rem;
}
.marketing-footer__social a{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.08);color:#94a3b8;
  transition:background .18s,color .18s;
}
.marketing-footer__social a:hover{background:rgba(255,255,255,.18);color:#fff;}
.marketing-footer__col h4{
  font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:#e2e8f0;margin:0 0 .9rem;
}
.marketing-footer__col ul{
  list-style:none;padding:0;margin:0;
  display:flex;flex-direction:column;gap:.5rem;
}
.marketing-footer__col ul li a{
  font-size:.88rem;color:#94a3b8;
  transition:color .16s;
}
.marketing-footer__col ul li a:hover{color:#fff;}
.marketing-footer__bottom{
  max-width:1200px;margin:auto;
  padding:.9rem 1.5rem;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;flex-wrap:wrap;align-items:center;
  justify-content:space-between;gap:.6rem;
  font-size:.8rem;color:#64748b;
}
.marketing-footer__links{display:flex;gap:1rem;flex-wrap:wrap;}
.marketing-footer__links a{font-size:.8rem;color:#64748b;}
.marketing-footer__links a:hover{color:#cbd5e1;}

/* Footer markup used by MarketingLayout (matches provided HTML structure) */
.marketing-layout .footer{
  background:#fff;
  padding:36px 0 18px;
}

.marketing-layout .footer .container{
  width:min(var(--container), calc(100% - 48px));
  margin:0 auto;
}

.marketing-layout .footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:26px;
  padding-bottom:28px;
  border-bottom:1px solid #ececec;
}

.marketing-layout .footer h5{
  margin:0 0 18px;
  font-size:15px;
}

.marketing-layout .footer p,
.marketing-layout .footer li,
.marketing-layout .footer a{
  color:#6b7280;
  font-size:13px;
  line-height:1.8;
  text-decoration:none;
}

.marketing-layout .footer ul{
  list-style:none;
  padding:0;
  margin:0;
}

.marketing-layout .socials{
  display:flex;
  gap:10px;
  margin-top:18px;
}

.marketing-layout .socials span{
  width:30px;
  height:30px;
  border-radius:50%;
  border:1px solid #dbe1ea;
  display:grid;
  place-items:center;
  font-size:12px;
  color:#4b5563;
}

.marketing-layout .footer-bottom{
  padding-top:14px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  color:#9ca3af;
  font-size:12px;
}

.marketing-layout .footer-links{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

/* Marketing home styles moved from Home.razor inline <style> block. */
.marketing-layout .home-page{
  --primary:#4b7de8;
  --primary-dark:#2458d3;
  --secondary:#16a34a;
  --text:#18233d;
  --muted:#6b7280;
  --light:#f3f4f6;
  --white:#ffffff;
  --border:#e5e7eb;
  --card:#fafafa;
  --navy:#07142f;
  --navy-2:#091a3d;
  --shadow:0 10px 25px rgba(0,0,0,.08);
  --radius:22px;
  --container:1180px;
  margin:0 auto;
  background:#f5f6f8;
}

.marketing-layout .home-page .container{
  width:min(var(--container), calc(100% - 48px));
  margin:0 auto;
}

.marketing-layout .home-page .hero{
  padding:46px 0 52px;
  background:#f5f6f8;
}

.marketing-layout .home-page .hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:40px;
  align-items:center;
}

.marketing-layout .home-page .badge{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:#eef3ff;
  color:var(--primary);
  font-size:11px;
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
  margin-bottom:18px;
}

.marketing-layout .home-page .hero h1{
  margin:0 0 20px;
  font-size:64px;
  line-height:1.12;
  letter-spacing:-1.4px;
  font-weight:800;
  max-width:760px;
}

.marketing-layout .home-page .hero h1 .accent{
  color:var(--primary);
}

.marketing-layout .home-page .hero p{
  margin:0 0 28px;
  color:var(--muted);
  font-size:16px;
  line-height:1.8;
  max-width:560px;
}

.marketing-layout .home-page .hero-actions{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}

.marketing-layout .home-page .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 24px;
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  transition:.2s ease;
}

.marketing-layout .home-page .btn-primary{
  background:linear-gradient(180deg, #5b86ef, #3b6fe6);
  color:#fff;
  box-shadow:0 10px 20px rgba(75,125,232,.25);
}

.marketing-layout .home-page .btn-secondary{
  color:#1f2937;
  background:#fff;
  border:1px solid var(--border);
}

.marketing-layout .home-page .hero-visual{
  display:flex;
  justify-content:center;
  align-items:center;
}

.marketing-layout .home-page .student-card{
  position:relative;
  width:560px;
  max-width:100%;
  height:430px;
}

.marketing-layout .home-page .student-photo{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}

.marketing-layout .home-page .section-block{
  background:#f8f8f9;
  border-radius:30px;
  padding:40px 32px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);
  margin-bottom:34px;
}

.marketing-layout .home-page .section-title{
  text-align:center;
  font-size:28px;
  font-weight:800;
  margin:4px 0 34px;
  letter-spacing:-.5px;
}

.marketing-layout .home-page .what-grid{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:40px;
  align-items:center;
}

.marketing-layout .home-page .what-text h3{
  margin:0 0 16px;
  font-size:20px;
  line-height:1.3;
}

.marketing-layout .home-page .what-text p{
  color:#374151;
  line-height:1.85;
  font-size:14px;
  margin:0 0 22px;
  max-width:520px;
}

.marketing-layout .home-page .what-text .strong{
  font-weight:800;
  color:#111827;
  margin-top:8px;
}

.marketing-layout .home-page .feature-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.marketing-layout .home-page .feature-list li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  color:#445166;
  font-size:14px;
  line-height:1.7;
}

.marketing-layout .home-page .check{
  width:20px;
  height:20px;
  flex:0 0 20px;
  border-radius:50%;
  border:2px solid var(--primary);
  position:relative;
  margin-top:2px;
}

.marketing-layout .home-page .check::after{
  content:"";
  position:absolute;
  left:5px;
  top:2px;
  width:6px;
  height:9px;
  border-right:2px solid var(--primary);
  border-bottom:2px solid var(--primary);
  transform:rotate(45deg);
}

.marketing-layout .home-page .chart-box{
  position:relative;
  min-height:340px;
  border:2px solid rgba(80,128,232,.18);
  border-radius:26px;
  background:linear-gradient(180deg,#f8fbff,#f2f5fb);
  padding:54px 28px 70px;
  overflow:visible;
  box-shadow:var(--shadow);
}

.marketing-layout .home-page .pill{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  background:linear-gradient(90deg, #3d6edc, #69b6ef);
  color:#fff;
  padding:10px 24px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  box-shadow:0 10px 20px rgba(59,111,230,.18);
}

.marketing-layout .home-page .pill.top{top:-14px}

.marketing-layout .home-page .pill.bottom{
  bottom:10px;
  font-size:12px;
  padding:10px 18px;
}

.marketing-layout .home-page .grid-lines{
  position:absolute;
  inset:56px 20px 56px;
  background:
      linear-gradient(to bottom, transparent 19%, rgba(180,199,236,.4) 20%, transparent 20.5%, transparent 39%, rgba(180,199,236,.4) 40%, transparent 40.5%, transparent 59%, rgba(180,199,236,.4) 60%, transparent 60.5%, transparent 79%, rgba(180,199,236,.4) 80%, transparent 80.5%);
  border-radius:18px;
}

.marketing-layout .home-page .bars{
  position:absolute;
  left:120px;
  right:36px;
  bottom:62px;
  height:170px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}

.marketing-layout .home-page .bar{
  flex:1;
  border-radius:10px;
  background:linear-gradient(180deg,#79b9ef,#1f73ea);
  box-shadow:0 10px 18px rgba(59,111,230,.16);
}

.marketing-layout .home-page .bar:nth-child(1){height:82px; opacity:.72}
.marketing-layout .home-page .bar:nth-child(2){height:122px; opacity:.82}
.marketing-layout .home-page .bar:nth-child(3){height:148px; opacity:.92}
.marketing-layout .home-page .bar:nth-child(4){height:172px}

.marketing-layout .home-page .line-svg{
  position:absolute;
  inset:46px 22px 44px;
  width:calc(100% - 44px);
  height:calc(100% - 90px);
  pointer-events:none;
}

.marketing-layout .home-page .why-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:22px;
}

.marketing-layout .home-page .info-card{
  background:#fafafa;
  border:1px solid #ededed;
  border-radius:18px;
  padding:20px 18px 18px;
  min-height:150px;
}

.marketing-layout .home-page .info-card-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.marketing-layout .home-page .icon{
  width:28px;
  height:28px;
  border-radius:8px;
  background:#eef3ff;
  color:var(--primary);
  display:grid;
  place-items:center;
  font-size:14px;
  font-weight:800;
  flex:0 0 28px;
}

.marketing-layout .home-page .info-card h4{
  margin:0;
  font-size:16px;
}

.marketing-layout .home-page .info-card p{
  margin:0;
  font-size:14px;
  line-height:1.7;
  color:#5b6578;
}

.marketing-layout .home-page .assessment{
  background:
      radial-gradient(circle at 85% 18%, rgba(18,125,197,.22), transparent 18%),
      linear-gradient(180deg, #06122b, #081735 65%, #07142f);
  color:#fff;
  padding:60px 0 54px;
}

.marketing-layout .home-page .assessment .section-title{
  color:#fff;
  margin-bottom:12px;
  font-size:44px;
  line-height:1.1;
}

.marketing-layout .home-page .assessment-sub{
  text-align:center;
  color:rgba(255,255,255,.9);
  max-width:860px;
  margin:0 auto 34px;
  line-height:1.8;
  font-size:16px;
}

.marketing-layout .home-page .area-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:28px;
  margin-top:12px;
}

.marketing-layout .home-page .area-card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:22px 24px;
  text-align:center;
  min-height:164px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.marketing-layout .home-page .area-card h4{
  margin:0 0 10px;
  color:#4f86ff;
  font-size:32px;
}

.marketing-layout .home-page .area-card p{
  margin:0;
  color:rgba(255,255,255,.9);
  line-height:1.65;
  font-size:15px;
  max-width:360px;
  margin-inline:auto;
}

.marketing-layout .home-page .assessment-action{
  text-align:center;
  margin-top:28px;
}

@media (max-width:1100px){
  .marketing-layout .home-page .hero h1{font-size:50px}
  .marketing-layout .home-page .assessment .section-title{font-size:36px}
  .marketing-layout .home-page .area-card h4{font-size:26px}
}

@media (max-width:900px){
  .marketing-layout .home-page .hero-grid,
  .marketing-layout .home-page .what-grid,
  .marketing-layout .home-page .why-grid,
  .marketing-layout .home-page .area-grid{
    grid-template-columns:1fr;
  }

  .marketing-layout .home-page .hero-grid{
    gap:24px;
  }

  .marketing-layout .home-page .student-card{
    width:100%;
    max-width:560px;
    height:auto;
    aspect-ratio:5 / 4;
  }

  .marketing-layout .home-page .hero{
    padding:24px 0 30px;
  }

  .marketing-layout .home-page .hero h1{
    font-size:40px;
    max-width:100%;
  }

  .marketing-layout .home-page .hero p{
    margin-bottom:22px;
    max-width:100%;
  }

  .marketing-layout .home-page .section-block{
    padding:30px 22px;
    border-radius:24px;
    margin-bottom:24px;
  }

  .marketing-layout .home-page .assessment{
    padding:44px 0 40px;
  }
}

@media (max-width:600px){
  .marketing-layout .home-page .container{
    width:min(var(--container), calc(100% - 28px));
  }

  .marketing-layout .home-page .badge{
    font-size:10px;
    margin-bottom:14px;
  }

  .marketing-layout .home-page .hero h1{
    font-size:32px;
    line-height:1.18;
    letter-spacing:-.8px;
    margin-bottom:16px;
  }

  .marketing-layout .home-page .hero p{
    font-size:15px;
    line-height:1.65;
    margin-bottom:18px;
  }

  .marketing-layout .home-page .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    gap:10px;
  }

  .marketing-layout .home-page .btn{
    width:100%;
    padding:13px 16px;
  }

  .marketing-layout .home-page .student-card{
    aspect-ratio:1 / 1;
  }

  .marketing-layout .home-page .section-block{
    padding:24px 16px;
    border-radius:20px;
    margin-bottom:18px;
  }

  .marketing-layout .home-page .section-title{font-size:24px}
  .marketing-layout .home-page .assessment .section-title{font-size:30px}

  .marketing-layout .home-page .what-text h3{
    font-size:18px;
    margin-bottom:12px;
  }

  .marketing-layout .home-page .feature-list{
    gap:10px;
  }

  .marketing-layout .home-page .chart-box{
    min-height:300px;
    padding:50px 16px 64px;
  }

  .marketing-layout .home-page .pill{
    white-space:normal;
    text-align:center;
    width:calc(100% - 28px);
  }

  .marketing-layout .home-page .bars{
    left:64px;
    right:20px;
    gap:12px;
  }

  .marketing-layout .home-page .assessment{
    padding:36px 0 34px;
  }

  .marketing-layout .home-page .assessment-sub{
    font-size:14px;
    line-height:1.7;
    margin-bottom:22px;
  }
}

@media (max-width:900px){
  .marketing-layout .footer-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:600px){
  .marketing-layout .footer .container{
    width:min(var(--container), calc(100% - 28px));
  }
}

.marketing-hero{display:grid;gap:1.5rem;padding:2rem;border-radius:1.25rem;background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(22,163,74,.08));box-shadow:0 25px 60px rgba(37,99,235,.15);}
.marketing-hero__content h1{font-size:2.75rem;margin:.5rem 0;}
.marketing-hero__content p{font-size:1.05rem;color:var(--muted);}
.marketing-hero__actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1rem;}
.marketing-hero__visual{display:flex;align-items:center;justify-content:center;}
.marketing-hero__visual-card{width:100%;max-width:360px;height:220px;border-radius:1.25rem;background:var(--grad);box-shadow:0 30px 60px rgba(37,99,235,.35);}

.marketing-grid,.marketing-grid-three{display:grid;gap:1rem;}
.marketing-grid-three{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.marketing-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.marketing-card{gap:1rem;}
.marketing-list{padding-left:1.2rem;color:var(--muted);}
.marketing-panel{display:flex;flex-direction:column;align-items:center;gap:.8rem;}
.marketing-panel__visual{width:100%;height:220px;border-radius:1.2rem;background:var(--grad);box-shadow:0 20px 50px rgba(37,99,235,.2);}
.marketing-panel__placeholder{width:100%;height:220px;border-radius:1.2rem;border:1px dashed var(--border);display:flex;align-items:center;justify-content:center;color:var(--muted);}
.marketing-panel__actions{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center;}
.marketing-report-preview{width:100%;margin:0;border:1px solid var(--border);border-radius:1rem;overflow:hidden;background:#fff;display:flex;flex-direction:column;}
.marketing-report-preview__frame{display:block;width:100%;height:360px;border:0;}
.marketing-report-preview__caption{padding:.6rem .8rem;border-top:1px solid var(--border);font-size:.9rem;color:var(--muted);background:rgba(15,23,42,.02);}
.marketing-report-preview__actions{padding:0 .8rem .8rem;display:flex;justify-content:center;flex-wrap:wrap;gap:.6rem;}
.marketing-section{background:var(--surface);padding:1.5rem;border-radius:1rem;box-shadow:0 15px 35px rgba(15,23,42,.08);}
.marketing-section__split{display:grid;gap:1rem;align-items:start;}
.marketing-section__media{
  margin:0;
  border:1px solid var(--border);
  border-radius:1rem;
  padding:.75rem;
  background:rgba(15,23,42,.02);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
}
.marketing-section__media img{
  display:block;
  width:100%;
  max-width:420px;
  max-height:320px;
  object-fit:contain;
  border-radius:.8rem;
}
.marketing-section__header{margin-top:1rem;color:var(--muted);}
.marketing-metrics{display:flex;gap:1.5rem;flex-wrap:wrap;margin-top:1rem;}
.metric-value{display:block;font-size:2.2rem;font-weight:700;}
.metric-label{color:var(--muted);}

/* About page (about.html adaptation) */
.marketing-layout .about-v2-page{width:100%;background:#f5f6f8;min-height:100vh;}
.marketing-layout .about-v2-container{width:min(1120px,calc(100% - 64px));margin:0 auto;}

.marketing-layout .about-v2-top{padding:72px 0 76px;}
.marketing-layout .about-v2-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:start;}
.marketing-layout .about-v2-text-block{margin-bottom:74px;}
.marketing-layout .about-v2-text-block:last-child{margin-bottom:0;}
.marketing-layout .about-v2-text-block h2{margin:0 0 18px;font-size:22px;line-height:1.3;font-weight:800;position:relative;padding-left:18px;color:#17233c;}
.marketing-layout .about-v2-text-block h2::before{content:"\2022";position:absolute;left:0;top:-1px;font-size:24px;line-height:1;color:#4f86e8;}
.marketing-layout .about-v2-text-block.mission h2::before{color:#2ecf8f;}
.marketing-layout .about-v2-text-block p{margin:0;max-width:530px;color:#55627a;font-size:15px;line-height:2;}

.marketing-layout .about-v2-collage{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start;margin-top:8px;}
.marketing-layout .about-v2-photo{overflow:hidden;border-radius:14px;box-shadow:0 12px 30px rgba(16,24,40,.08);background:#e9edf4;}
.marketing-layout .about-v2-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.marketing-layout .about-v2-photo.tall{height:395px;}
.marketing-layout .about-v2-photo.small{height:260px;margin-top:36px;}

.marketing-layout .about-v2-divider{height:1px;background:#edf1f6;width:100%;}

.marketing-layout .about-v2-approach{padding:62px 0 76px;text-align:center;}
.marketing-layout .about-v2-section-title{margin:0 0 18px;font-size:58px;line-height:1.08;font-weight:800;letter-spacing:-1px;color:#111b34;}
.marketing-layout .about-v2-section-subtitle{max-width:700px;margin:0 auto 48px;color:#5f6c83;font-size:16px;line-height:1.7;}

.marketing-layout .about-v2-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;text-align:left;}
.marketing-layout .about-v2-card{background:#fcfcfd;border:1px solid #e8edf4;border-radius:16px;padding:28px 20px 24px;min-height:275px;box-shadow:0 6px 18px rgba(16,24,40,.03);}
.marketing-layout .about-v2-icon{width:40px;height:40px;border-radius:9px;display:grid;place-items:center;margin-bottom:22px;font-size:16px;font-weight:800;}
.marketing-layout .about-v2-icon.blue{background:#edf4ff;color:#4f86e8;}
.marketing-layout .about-v2-icon.green{background:#ecfbf5;color:#27c987;}
.marketing-layout .about-v2-card h3{margin:0 0 16px;font-size:16px;font-weight:800;color:#17233c;}
.marketing-layout .about-v2-card p{margin:0;color:#5f6c83;font-size:14px;line-height:1.9;max-width:255px;}

.marketing-layout .about-v2-cta-section{padding:58px 0 88px;}
.marketing-layout .about-v2-cta-box{max-width:860px;margin:0 auto;background:linear-gradient(135deg,#203a63 0%,#14364a 100%);border-radius:28px;padding:54px 32px;text-align:center;color:#fff;box-shadow:0 18px 40px rgba(9,28,51,.22);}
.marketing-layout .about-v2-cta-box h2{margin:0 0 18px;font-size:54px;line-height:1.02;letter-spacing:-1px;font-weight:800;color:#fff;}
.marketing-layout .about-v2-cta-box p{max-width:640px;margin:0 auto 24px;color:rgba(255,255,255,.88);font-size:15px;line-height:1.8;}
.marketing-layout .about-v2-cta-btn{display:inline-flex;align-items:center;justify-content:center;min-width:178px;padding:14px 24px;border-radius:10px;background:#fff;color:#0f172a;text-decoration:none;font-size:14px;font-weight:800;box-shadow:0 10px 20px rgba(255,255,255,.12);}

.marketing-layout .about-v2-bottom-space{height:120px;background:#f0f1f3;border-top:1px solid #ebeff5;}

/* Reporting System page (HTML reference adaptation) */
.marketing-layout .reporting-page{width:100%;background:#1f1f22;padding:0;border-radius:18px;overflow:hidden;}
.marketing-layout .reporting-shell{background:#f6f7f9;min-height:100vh;}
.marketing-layout .rp-container{width:min(1120px,calc(100% - 56px));margin:0 auto;}

.marketing-layout .rp-hero{padding:42px 0 0;text-align:center;background:#f6f7f9;}
.marketing-layout .rp-hero h1{margin:0 0 16px;font-size:64px;line-height:1.1;font-weight:800;letter-spacing:-1.2px;color:#17233c;}
.marketing-layout .rp-hero h1 span{color:#4f86e8;}
.marketing-layout .rp-hero p{margin:0 auto 28px;max-width:980px;font-size:17px;line-height:1.7;color:#55627a;}

.marketing-layout .rp-pdf-preview{position:relative;width:100%;height:460px;background:#d9d9d9;overflow:hidden;margin:0;border-top:1px solid #cfd6e1;border-bottom:1px solid #cfd6e1;}
.marketing-layout .rp-pdf-frame{display:block;width:100%;height:100%;border:0;background:#fff;}

.marketing-layout .rp-hero-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;padding:34px 0 40px;}
.marketing-layout .rp-btn{display:inline-flex;align-items:center;justify-content:center;min-width:190px;padding:14px 22px;border-radius:10px;text-decoration:none;font-size:14px;font-weight:700;transition:.2s ease;}
.marketing-layout .rp-btn-primary{background:linear-gradient(180deg,#5f95ef,#4c84e8);color:#fff;box-shadow:0 10px 20px rgba(79,134,232,.2);}
.marketing-layout .rp-btn-outline{background:#fff;color:#101828;border:2px solid #4f86e8;}

.marketing-layout .rp-section{padding:68px 0;}
.marketing-layout .rp-section-soft{background:#eef3f9;}
.marketing-layout .rp-section-title{text-align:center;margin:0 0 10px;font-size:44px;line-height:1.15;font-weight:800;letter-spacing:-.8px;color:#17233c;}
.marketing-layout .rp-section-subtitle{text-align:center;margin:0 auto 40px;max-width:760px;color:#667085;font-size:15px;line-height:1.8;}

.marketing-layout .rp-process-wrap{position:relative;margin-top:8px;}
.marketing-layout .rp-process-line{position:absolute;left:8%;right:8%;top:24px;border-top:2px dashed #cfe0f5;z-index:0;}
.marketing-layout .rp-process-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.marketing-layout .rp-process-step{text-align:center;padding:0 20px;}
.marketing-layout .rp-step-icon{width:52px;height:52px;margin:0 auto 16px;border-radius:50%;border:3px solid #4f86e8;background:#fff;color:#4f86e8;display:grid;place-items:center;font-size:20px;font-weight:800;box-shadow:0 6px 14px rgba(79,134,232,.08);}
.marketing-layout .rp-process-step h3{margin:0 0 10px;font-size:16px;font-weight:800;color:#17233c;}
.marketing-layout .rp-process-step p{margin:0 auto;max-width:270px;color:#5f6c83;font-size:14px;line-height:1.75;}

.marketing-layout .rp-report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.marketing-layout .rp-report-card{background:#f2f4f7;border:1px solid #e9edf3;border-radius:14px;padding:18px 18px 16px;min-height:180px;}
.marketing-layout .rp-report-icon{width:38px;height:38px;border-radius:8px;background:#e7eef8;color:#4f86e8;display:grid;place-items:center;font-size:16px;font-weight:800;margin-bottom:14px;}
.marketing-layout .rp-report-card h3{margin:0 0 10px;font-size:16px;line-height:1.35;font-weight:800;color:#17233c;}
.marketing-layout .rp-report-card p{margin:0;color:#667085;font-size:13.5px;line-height:1.75;}

.marketing-layout .rp-views-grid{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;}
.marketing-layout .rp-views-grid h2{margin:0 0 30px;font-size:42px;line-height:1.15;font-weight:800;letter-spacing:-.7px;color:#17233c;}
.marketing-layout .rp-check-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:26px;}
.marketing-layout .rp-check-list li{display:flex;align-items:flex-start;gap:14px;font-size:18px;line-height:1.7;font-weight:700;color:#17233c;}
.marketing-layout .rp-check-mark{width:24px;height:24px;flex:0 0 24px;border-radius:50%;background:#bfe9cf;color:#1d7f4a;display:grid;place-items:center;font-size:14px;margin-top:4px;font-weight:800;}

.marketing-layout .rp-image-frame{background:#e9eff6;border:1px solid #d7e1ec;border-radius:24px;padding:28px;box-shadow:0 14px 34px rgba(16,24,40,.08);}
.marketing-layout .rp-image-frame img{width:100%;display:block;border-radius:12px;object-fit:cover;min-height:360px;max-height:420px;}

.marketing-layout .rp-credibility h2{margin:0 0 28px;font-size:42px;line-height:1.15;font-weight:800;letter-spacing:-.7px;color:#17233c;}
.marketing-layout .rp-credibility-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:22px;max-width:460px;}
.marketing-layout .rp-credibility-list li{display:flex;align-items:center;gap:14px;font-size:18px;font-weight:700;color:#17233c;}
.marketing-layout .rp-cred-icon{width:36px;height:36px;border-radius:8px;background:#eaf0f8;color:#4f86e8;display:grid;place-items:center;font-size:16px;font-weight:800;flex:0 0 36px;}

.marketing-layout .rp-cta-area{padding:68px 0 76px;}
.marketing-layout .rp-cta-box{max-width:920px;margin:0 auto;background:linear-gradient(135deg,#5b97ec,#4f86e8);border-radius:18px;text-align:center;color:#fff;padding:48px 26px;box-shadow:0 18px 40px rgba(79,134,232,.22);}
.marketing-layout .rp-cta-box h2{margin:0 0 14px;font-size:48px;line-height:1.1;font-weight:800;letter-spacing:-.9px;color:#fff;}
.marketing-layout .rp-cta-box p{margin:0 auto 24px;max-width:700px;color:rgba(255,255,255,.9);font-size:16px;line-height:1.8;}
.marketing-layout .rp-cta-btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 26px;min-width:220px;background:#fff;color:#2f6fe0;border-radius:10px;text-decoration:none;font-weight:800;font-size:14px;box-shadow:0 12px 20px rgba(0,0,0,.08);}

@media (max-width:1100px){
  .marketing-layout .rp-hero h1{font-size:52px;}
  .marketing-layout .rp-section-title,
  .marketing-layout .rp-views-grid h2,
  .marketing-layout .rp-credibility h2,
  .marketing-layout .rp-cta-box h2{font-size:36px;}
  .marketing-layout .rp-report-grid{grid-template-columns:repeat(3,1fr);}
}

@media (max-width:900px){
  .marketing-layout .rp-process-grid,
  .marketing-layout .rp-report-grid,
  .marketing-layout .rp-views-grid{grid-template-columns:1fr;}

  .marketing-layout .rp-process-line{display:none;}
  .marketing-layout .rp-hero h1{font-size:42px;}
  .marketing-layout .rp-pdf-preview{height:320px;}
}

@media (max-width:640px){
  .marketing-layout .rp-container{width:min(1120px,calc(100% - 28px));}
  .marketing-layout .rp-hero{padding-top:28px;}
  .marketing-layout .rp-hero h1{font-size:34px;}
  .marketing-layout .rp-hero p{font-size:15px;}
  .marketing-layout .rp-section-title,
  .marketing-layout .rp-views-grid h2,
  .marketing-layout .rp-credibility h2,
  .marketing-layout .rp-cta-box h2{font-size:30px;}
  .marketing-layout .rp-report-grid{grid-template-columns:1fr;}
  .marketing-layout .rp-check-list li,
  .marketing-layout .rp-credibility-list li{font-size:16px;}
  .marketing-layout .rp-cta-box{padding:38px 20px;}
}

@media (max-width:1024px){
  .marketing-layout .about-v2-grid,
  .marketing-layout .about-v2-cards{grid-template-columns:1fr;}

  .marketing-layout .about-v2-section-title{font-size:46px;}
  .marketing-layout .about-v2-cta-box h2{font-size:42px;}
}

@media (max-width:720px){
  .marketing-layout .about-v2-container{width:min(1120px,calc(100% - 28px));}
  .marketing-layout .about-v2-top{padding:36px 0 44px;}
  .marketing-layout .about-v2-collage{grid-template-columns:1fr;}
  .marketing-layout .about-v2-photo.tall,
  .marketing-layout .about-v2-photo.small{height:240px;margin-top:0;}
  .marketing-layout .about-v2-section-title{font-size:34px;}
  .marketing-layout .about-v2-section-subtitle{font-size:15px;}
  .marketing-layout .about-v2-cta-box{padding:38px 20px;}
  .marketing-layout .about-v2-cta-box h2{font-size:32px;}
  .marketing-layout .about-v2-bottom-space{height:70px;}
}

.marketing-form{display:grid;gap:.75rem;margin-top:1rem;}
.marketing-form__actions{display:flex;gap:.6rem;justify-content:flex-end;flex-wrap:wrap;}
.alert{padding:.75rem 1rem;border-radius:.65rem;margin-top:1rem;}
.alert-success{background:rgba(22,163,74,.12);color:#065f46;}
.alert-danger{background:rgba(220,38,38,.12);color:#7f1d1d;}

.marketing-faq__list{display:grid;gap:.75rem;margin-top:.75rem;}
.faq-q{font-weight:600;}
.faq-a{color:var(--muted);}

.eyebrow{text-transform:uppercase;letter-spacing:.2em;font-weight:600;color:var(--blue);font-size:.85rem;}
.marketing-link{color:var(--blue);font-weight:600;}
.marketing-plan{display:flex;flex-direction:column;gap:.8rem;}
.marketing-plan__header h3{margin-bottom:.25rem;}
.marketing-plan__header p{font-weight:700;font-size:1.3rem;}

@media(min-width:900px){
    .marketing-hero{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;}
    .two-col{grid-template-columns:repeat(2,minmax(0,1fr));}
    .marketing-section__split{grid-template-columns:minmax(0,1.35fr) minmax(300px,.95fr);}
    .marketing-report-preview__frame{height:440px;}
}

.html-editor{border:1px solid var(--border,#d1d5db);border-radius:10px;background:#fff;display:flex;flex-direction:column;gap:.35rem;}
.html-editor__toolbar{display:flex;gap:.35rem;padding:.5rem .75rem 0;flex-wrap:wrap;align-items:center;}
.html-editor__btn{border:1px solid transparent;background:transparent;color:#1e293b;border-radius:6px;padding:.25rem .4rem;line-height:1;font-size:.95rem;cursor:pointer;}
.html-editor__btn:hover:not(:disabled){background:rgba(37,99,235,.12);border-color:rgba(37,99,235,.3);}
.html-editor__btn:disabled{opacity:.4;cursor:not-allowed;}
.html-editor__select{border:1px solid #cbd5e1;border-radius:6px;padding:.24rem .4rem;font-size:.85rem;background:#fff;color:#0f172a;min-width:120px;}
.html-editor__divider{width:1px;background:#e5e7eb;margin:0 .25rem;}
.html-editor__surface{padding:.75rem;min-height:200px;border-radius:0 0 10px 10px;outline:none;font-size:.95rem;line-height:1.6;cursor:text;}
.html-editor__source{padding:.75rem;min-height:200px;border:none;border-radius:0 0 10px 10px;outline:none;font-size:.9rem;line-height:1.5;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;resize:vertical;color:#0f172a;}
.html-editor__surface[data-placeholder]:empty:before{content:attr(data-placeholder);color:#94a3b8;pointer-events:none;user-select:none;}
.html-editor[data-disabled=true] .html-editor__surface{background:#f1f5f9;color:#94a3b8;}
.html-editor[data-disabled=true] .html-editor__source{background:#f1f5f9;color:#94a3b8;}
.html-editor.input-validation-error,.html-editor.invalid{border-color:#f87171;}
/* Student exam passage: enforce plain flow for rich HTML imported from Word editors. */
.exam-section .section-body,
.exam-section .section-body * {
  position: static !important;
  float: none !important;
  inset: auto !important;
  transform: none !important;
}

.exam-section .section-body table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed;
}

.exam-section .section-body th,
.exam-section .section-body td {
  border: 1px solid #d7dde9 !important;
  padding: 0.35rem 0.45rem !important;
  vertical-align: top;
}

.exam-section .section-body img {
  display: block !important;
  clear: both !important;
  margin-top: 0.75rem !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ═══════════════════════════════════════════════
   HOME PAGE
   ─────────────────────────────────────────────*/

/* ── Hero ── */
.home-hero{
  position:relative;overflow:hidden;
  display:grid;gap:2.5rem;
  padding:3.5rem 2rem 4rem;
  border-radius:1.5rem;
  background:#ffffff;
  box-shadow:none;
}
@media(min-width:900px){
  .home-hero{grid-template-columns:1fr 1fr;align-items:center;padding:4rem 3rem;}
}

/* keep orb divs in markup but make them invisible */
.home-hero__orb{display:none;}

.home-eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  background:#fff;color:#475569;
  border:1px solid #d1d5db;
  border-radius:999px;padding:.35rem 1rem;width:fit-content;
  font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  margin-bottom:1.25rem;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.home-eyebrow__star{
  width:7px;height:7px;border-radius:50%;
  background:var(--blue);flex-shrink:0;display:inline-block;
  font-size:0;/* hide the ✦ text, show dot instead */
}

.home-hero__heading{
  font-size:clamp(2.4rem,5.5vw,3.8rem);font-weight:900;
  line-height:1.15;color:#0d1b2a;margin:.25rem 0 1.25rem;
  letter-spacing:-.02em;
}
.home-hero__accent{
  color:#2563eb;
  background:none;
  -webkit-background-clip:unset;background-clip:unset;
}
.home-hero__sub{
  font-size:1.04rem;color:var(--muted);line-height:1.7;
  max-width:520px;margin:0;
}
.home-hero__cta{
  display:flex;flex-wrap:wrap;gap:.85rem;margin-top:1.75rem;
}
.home-btn-primary{
  display:inline-flex;align-items:center;gap:.5rem;
  background:#2563eb;color:#fff;border:none;
  padding:.8rem 1.6rem;border-radius:.85rem;
  font-weight:700;font-size:1rem;
  box-shadow:0 8px 20px rgba(37,99,235,.3);
  transition:background .18s,transform .18s,box-shadow .18s;
  text-decoration:none;
}
.home-btn-primary:hover{
  color:#fff;background:#1d4ed8;
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(37,99,235,.38);
}
.home-btn-ghost{
  display:inline-flex;align-items:center;gap:.5rem;
  background:#fff;color:#0d1b2a;
  border:1.5px solid #d1d5db;
  padding:.78rem 1.4rem;border-radius:.85rem;
  font-weight:700;font-size:1rem;
  box-shadow:none;
  transition:border-color .18s,color .18s;
  text-decoration:none;
}
.home-btn-ghost:hover{
  color:var(--blue);border-color:var(--blue);
}

.home-hero__stats{
  display:flex;flex-wrap:wrap;gap:1.5rem;
  margin-top:2rem;padding-top:1.5rem;
  border-top:1px solid rgba(15,23,42,.1);
}
.home-hero__stat{
  display:flex;flex-direction:column;gap:.15rem;
}
.home-hero__stat strong{
  font-size:1.2rem;font-weight:900;color:#0f172a;
}
.home-hero__stat span{
  font-size:.75rem;color:var(--muted);font-weight:600;
}

/* Hero image */
.home-hero__visual{
  display:flex;align-items:center;justify-content:center;
}
.home-hero__img-wrap{
  position:relative;width:100%;max-width:571px;
  display:flex;align-items:flex-end;justify-content:center;
}
/* Blue organic blob behind the image */
.home-hero__blob{
  display:none;
}
/* Illustration floats above the blob */
.home-hero__img{
  position:relative;z-index:1;
  display:block;width:100%;height:auto;
  object-fit:contain;object-position:center;
  border-radius:0;
  filter:none;

/* ── What We Do ── */
.home-whatdo{
  background:#f3f4f6;
  border:1px solid #d9dde4;
  border-radius:2rem;
  box-shadow:0 10px 26px rgba(15,23,42,.08);
  padding:3rem 2.75rem 3.2rem;
  display:flex;
  flex-direction:column;
  gap:2.25rem;
}
.home-whatdo__title{
  margin:0;
  text-align:center;
  color:#0f172a;
  font-size:clamp(2rem,3vw,2.9rem);
  font-weight:800;
  letter-spacing:-.01em;
}
.home-whatdo__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,1fr);
  gap:2.1rem;
  align-items:center;
}
.home-whatdo__content{
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.home-whatdo__heading{
  margin:0;
  color:#0f172a;
  font-size:clamp(1.95rem,2.8vw,2.75rem);
  font-weight:800;
  line-height:1.2;
  max-width:18ch;
}
.home-whatdo__text{
  margin:0;
  color:#1f2937;
  font-size:1rem;
  line-height:1.68;
  max-width:56ch;
}
.home-whatdo__lead{
  margin:.65rem 0 0;
  color:#111827;
  font-size:1rem;
  font-weight:700;
  line-height:1.5;
}
.home-whatdo__list{
  list-style:none;
  margin:.15rem 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:.75rem;
}
.home-whatdo__list li{
  display:flex;
  align-items:flex-start;
  gap:.65rem;
  color:#334155;
  font-size:1rem;
  line-height:1.55;
}
.home-whatdo__list svg{
  width:1.28rem;
  height:1.28rem;
  color:#3b82f6;
  flex-shrink:0;
  margin-top:.14rem;
}
.home-whatdo__visual{
  margin:0;
  width:100%;
}
.home-whatdo__image{
  display:block;
  width:100%;
  height:auto;
}
@media(max-width:1040px){
  .home-whatdo{
    padding:2.5rem 1.5rem 2.6rem;
    border-radius:1.4rem;
  }
  .home-whatdo__grid{
    grid-template-columns:1fr;
    gap:1.5rem;
  }
  .home-whatdo__heading{max-width:none;}
}
}
/* Decorative rings */
.home-hero__ring{
  display:none;
}

/* ── What We Do (rebuilt) ── */
.home-what-rebuild{
  background:var(--surface);
  padding:1.5rem;
  border-radius:1rem;
  box-shadow:0 15px 35px rgba(15,23,42,.08);
}
.home-what-rebuild__title{
  margin:.25rem 0 1.25rem;
  text-align:center;
  font-size:clamp(2rem,3.2vw,3rem);
  font-weight:900;
  color:#0f172a;
}
.home-what-rebuild__grid{
  display:grid;
  gap:2rem;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.95fr);
  align-items:start;
}
.home-what-rebuild__content{
  display:flex;
  flex-direction:column;
  gap:.7rem;
}
.home-what-rebuild__heading{
  font-size:clamp(2.2rem,3.2vw,3.1rem);
  font-weight:800;
  line-height:1.12;
  letter-spacing:-.01em;
  color:#0f172a;
  margin:.1rem 0 .4rem;
  max-width:12ch;
}
.home-what-rebuild__text{
  color:#6b7280;
  font-size:1rem;
  line-height:1.6;
  margin:0;
  max-width:58ch;
}
.home-what-rebuild__list{
  list-style:none;
  padding:0;
  margin:.5rem 0 0;
  display:flex;
  flex-direction:column;
  gap:.5rem;
}
.home-what-rebuild__list li{
  display:flex;
  align-items:center;
  gap:.55rem;
  font-weight:600;
  color:#334155;
  font-size:1.1rem;
  line-height:1.35;
}
.home-what-rebuild__list svg{
  flex-shrink:0;
  width:18px;
  height:18px;
  color:#3b82f6;
  stroke:currentColor;
  stroke-width:2.2;
}
.home-what-rebuild__visual{
  margin:0;
  width:100%;
  max-width:560px;
  justify-self:end;
  margin-top:.6rem;
}
.home-what-rebuild__image{
  display:block;
  width:100%;
  height:auto;
}
@media(max-width:1024px){
  .home-what-rebuild__grid{
    grid-template-columns:1fr;
    gap:1.5rem;
  }
  .home-what-rebuild__visual{max-width:100%;justify-self:stretch;}
  .home-what-rebuild__heading{max-width:none;font-size:clamp(1.8rem,6vw,2.5rem);}
  .home-what-rebuild__list li{font-size:1rem;}
}

/* ── Section tag ── */
.home-section-tag{
  display:inline-block;padding:.3rem .85rem;border-radius:999px;
  background:rgba(22,163,74,.12);color:#166534;
  font-size:.73rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  width:fit-content;
}

/* ── Features ── */
.home-features-section{
  display:flex;flex-direction:column;gap:2rem;
  padding:2.5rem 2rem;
  background:var(--surface);border:1px solid var(--border);
  border-radius:1.25rem;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.home-features-section .home-features-header h2{
  font-size:clamp(1.6rem,3.5vw,2.2rem);font-weight:900;
  color:#0f172a;margin:0;
  text-align:center;
}
.home-steps-section{
  display:flex;flex-direction:column;gap:2rem;
  padding:2.5rem 2rem;
  border-radius:1.25rem;
}
.home-features-header{
  display:flex;flex-direction:column;gap:.6rem;max-width:680px;
}
.home-features-header h2{
  font-size:clamp(1.45rem,3vw,2.1rem);font-weight:900;
  color:#0f172a;margin:.15rem 0;line-height:1.22;
}
.home-features-header p{color:var(--muted);font-size:1rem;line-height:1.65;margin:0;}

.home-features-grid{
  display:grid;gap:1rem;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}
.home-feature-card{
  background:var(--bg);border:1px solid var(--border);
  border-radius:1rem;padding:1.4rem;
  display:flex;flex-direction:column;gap:.55rem;
  transition:box-shadow .2s,transform .2s;
}
.home-feature-card:hover{
  box-shadow:0 12px 32px rgba(37,99,235,.1);transform:translateY(-3px);
}
.home-feature-card__icon{
  width:46px;height:46px;border-radius:.75rem;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;margin-bottom:.35rem;
}
.home-feature-card__icon--blue{background:rgba(37,99,235,.1);color:#2563eb;}
.home-feature-card__icon--green{background:rgba(22,163,74,.1);color:#16a34a;}
.home-feature-card__icon--yellow{background:rgba(202,138,4,.1);color:#a16207;}
.home-feature-card__icon--purple{background:rgba(124,58,237,.1);color:#7c3aed;}
.home-feature-card h3{font-size:.98rem;font-weight:800;color:#0f172a;margin:0;}
.home-feature-card p{font-size:.88rem;color:var(--muted);line-height:1.65;margin:0;}

/* ── Assessment Areas (dark section) ── */
.home-areas-section{
  border-radius:1.5rem;overflow:hidden;
  background:linear-gradient(160deg,#0f172a 0%,#1e3a8a 60%,#1a2e5a 100%);
  padding:3.5rem 2rem;
  box-shadow:0 24px 60px rgba(15,23,42,.28);
}
.home-areas__inner{
  max-width:800px;margin:auto;
  display:flex;flex-direction:column;align-items:center;
  gap:1.25rem;text-align:center;
}
.home-areas__inner h2{
  font-size:clamp(1.6rem,3.5vw,2.25rem);font-weight:900;
  color:#fff;margin:0;line-height:1.2;
}
.home-areas__sub{
  font-size:1rem;color:rgba(255,255,255,.72);line-height:1.65;margin:0;
  max-width:600px;
}
.home-areas-grid{
  display:grid;gap:1rem;width:100%;
  grid-template-columns:1fr;
}
@media(min-width:640px){
  .home-areas-grid{grid-template-columns:1fr 1fr;}
}
.home-area-card{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-radius:1rem;padding:1.5rem;
  text-align:left;display:flex;flex-direction:column;gap:.6rem;
  transition:background .2s;
}
.home-area-card:hover{background:rgba(255,255,255,.12);}
.home-area-card__title{
  font-size:1.15rem;font-weight:800;
  color:var(--blue);margin:0;
  background:linear-gradient(135deg,#60a5fa,#34d399);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.home-area-card p{font-size:.9rem;color:rgba(255,255,255,.72);line-height:1.65;margin:0;}
.home-btn-areas{
  display:inline-flex;align-items:center;
  background:rgba(37,99,235,.85);color:#fff;
  border:1px solid rgba(255,255,255,.2);
  padding:.75rem 1.75rem;border-radius:.85rem;
  font-weight:700;font-size:.95rem;
  box-shadow:0 8px 24px rgba(37,99,235,.3);
  transition:background .18s,transform .18s;text-decoration:none;
  margin-top:.5rem;
}
.home-btn-areas:hover{background:var(--blue);color:#fff;transform:translateY(-2px);}

/* ── Steps ── */
.home-steps{
  display:grid;gap:1.5rem;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
}
.home-step{
  display:flex;flex-direction:column;gap:.55rem;
  padding:1.4rem;background:var(--surface);
  border:1px solid var(--border);border-radius:1rem;
  transition:box-shadow .2s,transform .2s;
}
.home-step:hover{
  box-shadow:0 12px 32px rgba(37,99,235,.1);transform:translateY(-3px);
}
.home-step__num{
  width:44px;height:44px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--grad);color:#fff;
  font-size:1.1rem;font-weight:900;
  box-shadow:0 8px 20px rgba(37,99,235,.28);
  flex-shrink:0;
}
.home-step h3{font-size:.98rem;font-weight:800;color:#0f172a;margin:0;}
.home-step p{font-size:.88rem;color:var(--muted);line-height:1.65;margin:0;}

/* ── Grades visual ── */
.home-grades-visual{
  display:flex;flex-direction:column;gap:.75rem;
  background:var(--surface);border:1px solid var(--border);
  border-radius:1rem;padding:1.5rem;
  box-shadow:0 6px 18px rgba(15,23,42,.06);
}
.home-grades-visual__label{
  font-size:.73rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);margin:0;
}
.home-grades-grid{
  display:flex;flex-wrap:wrap;gap:.5rem;
}
.home-grade-pill{
  padding:.45rem .9rem;border-radius:.7rem;
  background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(22,163,74,.08));
  border:1.5px solid rgba(37,99,235,.16);
  color:#1d4ed8;font-weight:700;font-size:.85rem;
  transition:background .15s,transform .15s;
  display:inline-block;
}
.home-grade-pill:hover{
  background:linear-gradient(135deg,rgba(37,99,235,.16),rgba(22,163,74,.16));
  transform:translateY(-1px);
}

/* ── CTA ── */
.home-cta{
  position:relative;overflow:hidden;
  border-radius:1.5rem;
  background:linear-gradient(135deg,#15803d 0%,#1d4ed8 55%,#1e3a8a 100%);
  box-shadow:0 28px 64px rgba(29,78,216,.32);
}
.home-cta__inner{
  position:relative;z-index:1;
  max-width:640px;margin:auto;
  padding:4rem 2rem;
  display:flex;flex-direction:column;align-items:center;
  gap:1rem;text-align:center;
}
.home-cta__inner h2{
  font-size:clamp(1.5rem,3.5vw,2.1rem);font-weight:900;
  color:#fff;line-height:1.22;margin:0;
}
.home-cta__inner p{
  font-size:1rem;color:rgba(255,255,255,.82);line-height:1.6;margin:0;
}
.home-cta__actions{
  display:flex;flex-wrap:wrap;gap:.85rem;justify-content:center;margin-top:.5rem;
}
.home-btn-white{
  display:inline-flex;align-items:center;gap:.5rem;
  background:#fff;color:#1d4ed8;border:none;
  padding:.75rem 1.4rem;border-radius:.85rem;
  font-weight:700;font-size:.97rem;
  box-shadow:0 8px 20px rgba(0,0,0,.14);
  transition:transform .18s,box-shadow .18s;text-decoration:none;
}
.home-btn-white:hover{color:#1d4ed8;transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.2);}
.home-btn-outline-white{
  display:inline-flex;align-items:center;gap:.5rem;
  background:transparent;color:#fff;
  border:2px solid rgba(255,255,255,.5);
  padding:.73rem 1.3rem;border-radius:.85rem;
  font-weight:700;font-size:.97rem;
  transition:border-color .18s,background .18s,transform .18s;text-decoration:none;
}
.home-btn-outline-white:hover{
  color:#fff;border-color:#fff;
  background:rgba(255,255,255,.1);transform:translateY(-2px);
}
.home-cta__email{
  font-size:.85rem;color:rgba(255,255,255,.7);margin-top:.25rem;
}
.home-cta__email a{color:#fff;font-weight:700;text-decoration:underline;}

/* ── Mobile sidebar backdrop ── */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1039;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}


/* Mobile sidebar backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1039;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}

/* ── Pagination Bar ── */
.pagination-bar {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.pagination-bar button {
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 .55rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: .12s;
  font-size: .85rem;
}
.pagination-bar button:hover:not(:disabled) {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
}
.pagination-bar button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.pagination-bar button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.pagination-bar .pagination-ellipsis {
  padding: 0 .3rem;
  color: var(--muted);
  line-height: 2.2rem;
}
.pagination-info {
  margin-left: auto;
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Metrics row (4-col grid used on school dashboard) ── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .metrics-row { grid-template-columns: 1fr; }
}

/* ── Analytics nav icon (brand colours, no Bootstrap bg-* needed) ── */
.analytics-nav-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.1rem;
  background: var(--brand);
}
.analytics-nav-icon--blue    { background: #497EE4; }
.analytics-nav-icon--green   { background: #16a34a; }
.analytics-nav-icon--orange  { background: #ea580c; }
.analytics-nav-icon--teal    { background: #0d9488; }
.analytics-nav-icon--purple  { background: #7c3aed; }
.analytics-nav-icon--red     { background: #dc2626; }

/* ── HTML editor pane (AdminSettings) ── */
.html-editor-pane {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.html-editor-code {
  flex: 1;
  min-height: 280px;
  font-family: 'Cascadia Code', 'Fira Mono', monospace;
  font-size: .85rem;
  line-height: 1.5;
}

/* ── Inline status messages (AdminSettings, forms) ── */
p.success-note {
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: .5rem;
  padding: .55rem .85rem;
  font-size: .87rem;
}
p.error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: .5rem;
  padding: .55rem .85rem;
  font-size: .87rem;
}

/* ── PDF report iframe ── */
iframe.pdf-frame,
.pdf-preview-frame {
  min-height: 600px;
  width: 100%;
  border: none;
}

/* ── Table overflow wrapper ── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
