:root {
  --nsdm-blue:#173f93;
  --nsdm-blue-dark:#102f70;
  --nsdm-blue-soft:#eef4ff;
  --nsdm-red:#b8141d;
  --nsdm-gold:#e9bf22;
  --nsdm-green:#2f9b62;
  --nsdm-amber:#f1b83b;
  --nsdm-violet:#6b5bd6;
  --nsdm-cyan:#1e91a8;
  --nsdm-text:#18233a;
  --nsdm-muted:#607087;
  --nsdm-border:#d8e1ee;
  --nsdm-bg:#f5f8fc;
  --nsdm-radius:16px;
  --nsdm-shadow:0 14px 38px rgba(16,47,112,.10);
  --nsdm-container:1220px;
  --nsdm-nav-height:52px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at top left,rgba(23,63,147,.08),transparent 28rem),
    linear-gradient(180deg,#f7fbff 0%,#f5f8fc 46%,#fffaf0 100%);
  color:var(--nsdm-text);
  font-family:"Segoe UI",Arial,Helvetica,sans-serif;
  line-height:1.55;
}
img{display:block;max-width:100%;height:auto}
a{color:var(--nsdm-blue)}
[hidden]{display:none!important}
.nsdm-container{width:min(var(--nsdm-container),calc(100% - 32px));margin-inline:auto}
.nsdm-skip-link{position:fixed;z-index:9999;top:8px;left:8px;transform:translateY(-160%);padding:10px 14px;border-radius:7px;background:#fff;color:#111;font-weight:700}
.nsdm-skip-link:focus{transform:translateY(0)}

.nsdm-topbar{background:linear-gradient(90deg,#9f1017,var(--nsdm-red));color:#fff}
.nsdm-topbar__inner{min-height:38px;display:flex;justify-content:center;align-items:center;gap:8px 12px;flex-wrap:wrap;text-align:center;font-size:14px;font-weight:700}
.nsdm-topbar a{color:#fff;text-decoration:none}
.nsdm-topbar a:hover{text-decoration:underline}
.nsdm-masthead{background:#fff;border-bottom:1px solid var(--nsdm-border)}
.nsdm-masthead__image{width:100%;max-height:230px;object-fit:contain;object-position:center}
.nsdm-nav{position:sticky;top:0;z-index:950;background:var(--nsdm-blue);box-shadow:0 9px 24px rgba(16,47,112,.18)}
.nsdm-nav__inner{position:relative}
.nsdm-menu{margin:0;padding:0;display:flex;justify-content:center;align-items:stretch;list-style:none;flex-wrap:wrap}
.nsdm-menu a{min-height:52px;display:flex;align-items:center;padding:0 16px;color:#fff;font-size:15px;font-weight:700;text-decoration:none}
.nsdm-menu a:hover,.nsdm-menu a:focus-visible,.nsdm-menu a[aria-current="page"]{background:var(--nsdm-blue-dark)}
.nsdm-menu-toggle{display:none}

.nsdm-page-head{background:linear-gradient(135deg,rgba(23,63,147,.98),rgba(16,47,112,.96));color:#fff}
.nsdm-page-head__inner{padding-block:42px}
.nsdm-breadcrumb{margin:0 0 12px;display:flex;flex-wrap:wrap;gap:7px;color:rgba(255,255,255,.75);font-size:14px}
.nsdm-breadcrumb a{color:#fff;text-decoration:none}
.nsdm-breadcrumb a:hover{text-decoration:underline}
.nsdm-page-head h1{margin:0;max-width:980px;font-size:clamp(32px,5vw,54px);line-height:1.1}
.nsdm-page-head p{max-width:760px;margin:13px 0 0;color:rgba(255,255,255,.84);font-size:17px}

.nsdm-course-search-sticky{
  position:sticky;
  top:var(--nsdm-nav-height);
  z-index:900;
  padding:12px 0;
  background:rgba(245,248,252,.92);
  border-bottom:1px solid rgba(216,225,238,.9);
  backdrop-filter:blur(12px);
}
.nsdm-search-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:end;
  padding:14px 16px;
  border:1px solid #cbd8ec;
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 28px rgba(16,47,112,.09);
}
.nsdm-global-search span{display:block;margin-bottom:7px;color:var(--nsdm-blue-dark);font-size:12px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.nsdm-global-search input{
  width:100%;
  min-height:52px;
  padding:12px 15px;
  border:1px solid #b9c8df;
  border-radius:12px;
  background:#fff;
  color:var(--nsdm-text);
  font:inherit;
  font-size:16px;
}
.nsdm-search-meta{display:flex;align-items:center;gap:13px;white-space:nowrap}
.nsdm-search-meta strong{color:#53627a}
.nsdm-clear-search{
  min-height:42px;
  padding:8px 14px;
  border:1px solid var(--nsdm-blue);
  border-radius:10px;
  background:#fff;
  color:var(--nsdm-blue);
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.nsdm-clear-search:hover{background:var(--nsdm-blue);color:#fff}

.nsdm-main{padding-block:42px 64px}
.nsdm-panel{margin-bottom:24px;padding:clamp(20px,3vw,32px);border:1px solid var(--nsdm-border);border-radius:var(--nsdm-radius);background:rgba(255,255,255,.96);box-shadow:var(--nsdm-shadow)}
.nsdm-panel--intro{background:linear-gradient(145deg,#fff,#f1f6ff)}
.nsdm-panel h2,.nsdm-panel h3{margin:0 0 8px;color:var(--nsdm-blue-dark);font-size:clamp(22px,3vw,30px)}
.nsdm-panel__intro{margin:0 0 22px;color:var(--nsdm-muted)}
.nsdm-listing-head{display:flex;justify-content:space-between;align-items:end;gap:24px}
.nsdm-quick-stats{display:flex;gap:10px;flex-wrap:wrap}
.nsdm-quick-stats span{padding:8px 12px;border-radius:999px;background:#e5edfb;color:var(--nsdm-blue-dark);font-size:13px;font-weight:800}
.nsdm-count{padding:6px 10px;border-radius:999px;background:#e5edfb;color:var(--nsdm-blue-dark);font-size:13px;font-weight:750}
.nsdm-button{display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:9px 16px;border:1px solid var(--nsdm-blue);border-radius:9px;background:var(--nsdm-blue);color:#fff!important;font-weight:800;text-decoration:none;transition:transform .18s ease,background-color .18s ease}
.nsdm-button:hover,.nsdm-button:focus-visible{transform:translateY(-1px);background:var(--nsdm-blue-dark);text-decoration:none}
.nsdm-button--small{min-height:38px;padding:8px 13px;font-size:14px}
.nsdm-mini-link{display:inline-flex;align-items:center;min-height:34px;padding:6px 11px;border-radius:999px;background:#fff;color:var(--nsdm-blue);font-size:13px;font-weight:800;text-decoration:none}
.nsdm-mini-link:hover{text-decoration:underline}

.nsdm-section-title{
  display:flex;
  align-items:center;
  gap:14px;
  margin:46px 0 18px;
}
.nsdm-section-title::after{content:"";height:2px;flex:1;background:linear-gradient(90deg,#cbd8ec,transparent)}
.nsdm-section-title span,.nsdm-part-chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 18px;
  border-radius:999px;
  background:var(--nsdm-blue);
  color:#fff;
  font-size:13px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.nsdm-section-title h2{margin:0;color:var(--nsdm-blue-dark);font-size:clamp(30px,4vw,44px);line-height:1.12}
.nsdm-division-category .nsdm-section-title span{background:#1d55b5}
.nsdm-division-school .nsdm-section-title span{background:#2f9b62}
.nsdm-division-specialised .nsdm-section-title span{background:#bd7a12}

.nsdm-panel--category{background:linear-gradient(145deg,#fff,#edf4ff)}
.nsdm-panel--school{background:linear-gradient(145deg,#fff,#edf9f1)}
.nsdm-panel--specialised{background:linear-gradient(145deg,#fff,#fff6df)}

.nsdm-table-wrap{overflow:visible;border:1px solid var(--nsdm-border);border-radius:12px;background:#fff}
.nsdm-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border-radius:12px;overflow:hidden}
.nsdm-table th,.nsdm-table td{padding:14px 16px;border-bottom:1px solid var(--nsdm-border);text-align:left;vertical-align:middle;overflow-wrap:anywhere}
.nsdm-table th{background:var(--nsdm-blue);color:#fff;font-size:13px;letter-spacing:.035em;text-transform:uppercase}
.nsdm-table tbody tr:nth-child(even){background:#f5f8ff}
.nsdm-table tbody tr:nth-child(odd){background:#fff}
.nsdm-table tbody tr:hover{background:#edf4ff}
.nsdm-table tbody tr:last-child td{border-bottom:0}
.nsdm-table__count{text-align:center!important;font-weight:800}
.nsdm-link-strong{color:var(--nsdm-blue-dark);font-weight:850;text-decoration:none}
.nsdm-link-strong:hover{text-decoration:underline}
.nsdm-summary-row:nth-child(1){background:linear-gradient(90deg,#f4f8ff,#fff)}
.nsdm-summary-row:nth-child(2){background:linear-gradient(90deg,#f2fbf5,#fff)}
.nsdm-summary-row:nth-child(3){background:linear-gradient(90deg,#fff7e5,#fff)}
.nsdm-empty{margin-top:18px;padding:18px;border:1px dashed #acbad1;border-radius:10px;background:#f9fbff;color:var(--nsdm-muted);text-align:center}

.nsdm-course-group{
  scroll-margin-top:calc(var(--nsdm-nav-height) + 100px);
  margin:26px 0;
  padding:clamp(18px,2.6vw,28px);
  border:1px solid var(--nsdm-border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--nsdm-shadow);
}
.nsdm-group-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.nsdm-group-heading h3{margin:10px 0 4px;color:var(--nsdm-blue-dark);font-size:clamp(24px,3vw,34px);line-height:1.15}
.nsdm-group-heading p{margin:0;color:var(--nsdm-muted)}
.nsdm-group-tone-0{background:linear-gradient(145deg,#fff,#f2f7ff)}
.nsdm-group-tone-1{background:linear-gradient(145deg,#fff,#f2fbf5)}
.nsdm-group-tone-2{background:linear-gradient(145deg,#fff,#fff8e6)}
.nsdm-group-tone-3{background:linear-gradient(145deg,#fff,#f5f2ff)}
.nsdm-group-tone-4{background:linear-gradient(145deg,#fff,#effbff)}
.nsdm-group-tone-5{background:linear-gradient(145deg,#fff,#fff1f2)}
.nsdm-group-tone-1 .nsdm-part-chip{background:var(--nsdm-green)}
.nsdm-group-tone-2 .nsdm-part-chip{background:#bd7a12}
.nsdm-group-tone-3 .nsdm-part-chip{background:var(--nsdm-violet)}
.nsdm-group-tone-4 .nsdm-part-chip{background:var(--nsdm-cyan)}
.nsdm-group-tone-5 .nsdm-part-chip{background:var(--nsdm-red)}

.nsdm-search{min-width:260px}
.nsdm-search span{display:block;margin-bottom:6px;font-size:13px;font-weight:750}
.nsdm-search input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--nsdm-border);border-radius:9px;font:inherit}
.nsdm-result-count{color:var(--nsdm-muted);font-size:14px}

.nsdm-course-card{display:grid;grid-template-columns:1.55fr .85fr;gap:24px}
.nsdm-course-code{display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;border-radius:999px;background:var(--nsdm-gold);color:#15234a;font-size:14px;font-weight:850;letter-spacing:.045em}
.nsdm-course-title{margin:16px 0 12px;color:var(--nsdm-blue-dark);font-size:clamp(29px,4vw,43px);line-height:1.15}
.nsdm-course-description{margin:0;color:var(--nsdm-muted);font-size:17px}
.nsdm-course-facts{margin:0;display:grid;gap:12px}
.nsdm-course-facts div{padding:14px 16px;border:1px solid var(--nsdm-border);border-radius:11px;background:var(--nsdm-blue-soft)}
.nsdm-course-facts dt{margin-bottom:4px;color:var(--nsdm-muted);font-size:12px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}
.nsdm-course-facts dd{margin:0;color:var(--nsdm-blue-dark);font-weight:800}
.nsdm-section-heading{margin:0 0 18px!important;color:var(--nsdm-blue-dark);font-size:27px!important}

.nsdm-footer{background:var(--nsdm-blue);color:#fff}
.nsdm-footer__grid{display:grid;grid-template-columns:1.25fr .8fr .9fr 1fr;gap:34px;padding-block:46px}
.nsdm-footer h2{margin:0 0 15px;font-size:19px;color:#fff}
.nsdm-footer p,.nsdm-footer address{margin:0;color:rgba(255,255,255,.86);font-size:14px;line-height:1.65}
.nsdm-footer address{font-style:normal}
.nsdm-footer__logo{width:92px;margin-bottom:15px;padding:6px;border-radius:10px;background:#fff}
.nsdm-footer ul{margin:0;padding:0;display:grid;gap:8px;list-style:none}
.nsdm-footer a{color:rgba(255,255,255,.9);text-decoration:none}
.nsdm-footer a:hover{text-decoration:underline}
.nsdm-footer__qr{width:110px;margin-top:13px;padding:6px;border-radius:8px;background:#fff}
.nsdm-footer__bottom{border-top:1px solid rgba(255,255,255,.15);background:var(--nsdm-blue-dark)}
.nsdm-footer__bottom-inner{min-height:56px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.nsdm-footer__bottom p{font-size:13px}

@media(max-width:960px){
  .nsdm-course-card{grid-template-columns:1fr}
  .nsdm-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nsdm-menu a{padding-inline:12px;font-size:14px}
  .nsdm-search-card{grid-template-columns:1fr}
  .nsdm-search-meta{justify-content:space-between}
}
@media(max-width:720px){
  :root{--nsdm-nav-height:48px}
  .nsdm-container{width:min(100% - 20px,var(--nsdm-container))}
  .nsdm-topbar__inner{min-height:auto;padding:7px 0;font-size:13px}
  .nsdm-masthead__image{max-height:none;height:auto;object-fit:contain;object-position:center}
  .nsdm-nav{position:sticky;top:0}
  .nsdm-menu-toggle{width:100%;min-height:48px;display:flex;justify-content:space-between;align-items:center;border:0;background:var(--nsdm-blue);color:#fff;font:inherit;font-weight:800;cursor:pointer}
  .nsdm-menu-toggle__bars,.nsdm-menu-toggle__bars:before,.nsdm-menu-toggle__bars:after{width:22px;height:2px;display:block;background:currentColor;content:""}
  .nsdm-menu-toggle__bars{position:relative}
  .nsdm-menu-toggle__bars:before{position:absolute;top:-7px}
  .nsdm-menu-toggle__bars:after{position:absolute;top:7px}
  .nsdm-menu{display:none;padding-block:8px}
  .nsdm-menu.is-open{display:block}
  .nsdm-menu a{min-height:44px;padding:10px 4px;border-bottom:1px solid rgba(255,255,255,.12)}
  .nsdm-page-head__inner{padding-block:28px}
  .nsdm-page-head h1{font-size:30px}
  .nsdm-main{padding-block:28px 44px}
  .nsdm-panel{padding:16px}
  .nsdm-listing-head{display:block}
  .nsdm-quick-stats{margin-top:14px}
  .nsdm-course-search-sticky{padding:8px 0}
  .nsdm-search-card{padding:10px;border-radius:14px}
  .nsdm-global-search input{min-height:46px;font-size:15px}
  .nsdm-search-meta{gap:10px;white-space:normal;align-items:center}
  .nsdm-clear-search{min-height:38px;padding:7px 12px}
  .nsdm-section-title{align-items:flex-start;gap:10px;margin:34px 0 15px;flex-wrap:wrap}
  .nsdm-section-title::after{display:none}
  .nsdm-section-title h2{width:100%;font-size:30px}
  .nsdm-group-heading{display:block}
  .nsdm-mini-link{margin-top:12px}
  .nsdm-course-group{padding:14px;scroll-margin-top:120px}
  .nsdm-table-wrap{border:0;background:transparent}
  .nsdm-table{display:block;width:100%;border-radius:0;background:transparent}
  .nsdm-table thead{display:none}
  .nsdm-table tbody{display:block}
  .nsdm-table tr{display:block;margin:0 0 13px;border:1px solid var(--nsdm-border);border-radius:14px;background:#fff!important;box-shadow:0 8px 20px rgba(16,47,112,.07);overflow:hidden}
  .nsdm-table td{display:grid;grid-template-columns:122px minmax(0,1fr);gap:10px;align-items:start;width:100%;padding:11px 13px;border-bottom:1px solid #edf1f8;overflow-wrap:anywhere}
  .nsdm-table td:last-child{border-bottom:0}
  .nsdm-table td::before{content:attr(data-label);color:#5b6980;font-size:12px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
  .nsdm-table__count{text-align:left!important}
  .nsdm-button{width:100%;min-height:40px}
  .nsdm-course-facts{gap:10px}
  .nsdm-footer__grid{grid-template-columns:1fr}
  .nsdm-footer__bottom-inner{min-height:72px;flex-direction:column;justify-content:center;gap:3px;text-align:center}
}
@media(max-width:420px){
  .nsdm-table td{grid-template-columns:1fr;gap:4px}
  .nsdm-search-meta{display:grid;grid-template-columns:1fr auto;width:100%}
  .nsdm-search-meta strong{align-self:center;font-size:13px}
}


/* Fix 2: sticky search stays directly below the blue menu and has no visible total-count text. */
.nsdm-course-search-sticky {
  position: sticky !important;
  top: var(--nsdm-nav-height) !important;
  z-index: 940 !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  background: rgba(245, 248, 252, .96) !important;
  border-bottom: 1px solid rgba(216, 225, 238, .95) !important;
}

.nsdm-search-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
}

.nsdm-search-meta {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: end !important;
  white-space: nowrap !important;
}

#result-count {
  display: none !important;
}

@media (max-width: 720px) {
  .nsdm-course-search-sticky {
    top: var(--nsdm-nav-height) !important;
    padding: 8px 0 !important;
  }

  .nsdm-search-card {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .nsdm-search-meta {
    justify-content: stretch !important;
    width: 100% !important;
  }

  .nsdm-clear-search {
    width: 100% !important;
  }
}


/* Fix 3: static top search, division color system, compact course facts, detail-page navigation */

/* The search bar is static at the top of content. It scrolls away normally. */
.nsdm-course-search-sticky,
.nsdm-course-search-static {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  margin: 0 !important;
  padding: 14px 0 !important;
  background: linear-gradient(180deg, #f5f8fc, #eef4ff) !important;
  border-bottom: 1px solid rgba(216, 225, 238, .95) !important;
  backdrop-filter: none !important;
}

.nsdm-search-card {
  box-shadow: 0 10px 26px rgba(16, 47, 112, .08) !important;
}

/* Course division summary: three clear but mild color rows */
.nsdm-table--summary tbody tr:nth-child(1),
.nsdm-row-category {
  background: linear-gradient(90deg, #eef5ff 0%, #ffffff 100%) !important;
  border-left: 6px solid #3d73d8;
}

.nsdm-table--summary tbody tr:nth-child(2),
.nsdm-row-school {
  background: linear-gradient(90deg, #effaf3 0%, #ffffff 100%) !important;
  border-left: 6px solid #35a46b;
}

.nsdm-table--summary tbody tr:nth-child(3),
.nsdm-row-specialised {
  background: linear-gradient(90deg, #fff5df 0%, #ffffff 100%) !important;
  border-left: 6px solid #d49320;
}

/* Division panels and summary tables */
.nsdm-division-category .nsdm-section-title span,
.nsdm-course-group--category .nsdm-part-chip {
  background: #2459b7 !important;
}

.nsdm-division-school .nsdm-section-title span,
.nsdm-course-group--school .nsdm-part-chip {
  background: #2f9b62 !important;
}

.nsdm-division-specialised .nsdm-section-title span,
.nsdm-course-group--specialised .nsdm-part-chip {
  background: #bd7a12 !important;
}

.nsdm-panel--category,
.nsdm-course-group--category {
  background: linear-gradient(145deg, #ffffff, #eef5ff) !important;
  border-color: #bfd2f2 !important;
}

.nsdm-panel--school,
.nsdm-course-group--school {
  background: linear-gradient(145deg, #ffffff, #effaf3) !important;
  border-color: #c3e5cf !important;
}

.nsdm-panel--specialised,
.nsdm-course-group--specialised {
  background: linear-gradient(145deg, #ffffff, #fff5df) !important;
  border-color: #f0d59c !important;
}

.nsdm-panel--category .nsdm-table th,
.nsdm-course-group--category .nsdm-table th {
  background: #2459b7 !important;
}

.nsdm-panel--school .nsdm-table th,
.nsdm-course-group--school .nsdm-table th {
  background: #2f9b62 !important;
}

.nsdm-panel--specialised .nsdm-table th,
.nsdm-course-group--specialised .nsdm-table th {
  background: #bd7a12 !important;
}

.nsdm-course-group--category .nsdm-table tbody tr:nth-child(even) {
  background: #f3f7ff !important;
}

.nsdm-course-group--school .nsdm-table tbody tr:nth-child(even) {
  background: #f2fbf5 !important;
}

.nsdm-course-group--specialised .nsdm-table tbody tr:nth-child(even) {
  background: #fff8e9 !important;
}

/* Course detail page: make right-side facts compact in one row below the title. */
.nsdm-course-card {
  display: block !important;
}

.nsdm-course-facts {
  margin-top: 24px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.nsdm-course-facts div {
  min-height: 92px;
}

.nsdm-page-division-category-courses .nsdm-course-facts div {
  background: linear-gradient(145deg, #eef5ff, #ffffff) !important;
  border-color: #bfd2f2 !important;
}

.nsdm-page-division-school-courses .nsdm-course-facts div {
  background: linear-gradient(145deg, #effaf3, #ffffff) !important;
  border-color: #c3e5cf !important;
}

.nsdm-page-division-specialised-courses .nsdm-course-facts div {
  background: linear-gradient(145deg, #fff5df, #ffffff) !important;
  border-color: #f0d59c !important;
}

/* Previous / Next / Return buttons */
.nsdm-course-nav-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}

.nsdm-course-nav-buttons--bottom {
  margin-top: 26px;
  margin-bottom: 0;
}

.nsdm-nav-button {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #bfd2f2;
  border-radius: 11px;
  background: #ffffff;
  color: var(--nsdm-blue-dark) !important;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 7px 18px rgba(16, 47, 112, .07);
}

.nsdm-nav-button:hover,
.nsdm-nav-button:focus-visible {
  background: var(--nsdm-blue) !important;
  color: #ffffff !important;
  border-color: var(--nsdm-blue) !important;
}

.nsdm-nav-button--category {
  background: #eef5ff;
}

.nsdm-nav-button--main {
  background: #fff8e6;
  border-color: #f0d59c;
}

.nsdm-nav-button--disabled {
  color: #9ba8bd !important;
  background: #f3f5f9;
  cursor: not-allowed;
}

.nsdm-nav-button--disabled:hover {
  color: #9ba8bd !important;
  background: #f3f5f9 !important;
  border-color: #d8e1ee !important;
}

@media (max-width: 980px) {
  .nsdm-course-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .nsdm-course-nav-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nsdm-course-search-sticky,
  .nsdm-course-search-static {
    padding: 10px 0 !important;
  }

  .nsdm-course-facts {
    grid-template-columns: 1fr !important;
    margin-top: 18px !important;
  }

  .nsdm-course-facts div {
    min-height: 0;
  }

  .nsdm-course-nav-buttons {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 14px 0 22px;
  }

  .nsdm-nav-button {
    min-height: 42px;
    justify-content: center;
  }
}


/* Fix 4: cleaner homepage-style menu, footer color dividers, mobile subject cards, WA button, mild animations */

/* Homepage-like multi-row menu */
.nsdm-nav {
  position: relative !important;
  top: auto !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(16, 47, 112, .07) !important;
  border-bottom: 1px solid #d8e1ee !important;
}

.nsdm-menu {
  justify-content: flex-start !important;
  gap: 8px 22px !important;
  padding: 18px 0 !important;
}

.nsdm-menu > li > a,
.nsdm-menu a {
  min-height: 34px !important;
  padding: 5px 0 !important;
  color: #050b18 !important;
  background: transparent !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

.nsdm-menu a:hover,
.nsdm-menu a:focus-visible,
.nsdm-menu a[aria-current="page"] {
  color: var(--nsdm-blue) !important;
  text-decoration: none !important;
  background: transparent !important;
}

.nsdm-menu-icon {
  display: inline-flex;
  margin-right: 5px;
  color: #c5121d;
  font-weight: 900;
}

.nsdm-menu li:first-child .nsdm-menu-icon {
  color: #e7bd24;
}

/* Static search, compact top area */
.nsdm-course-search-sticky,
.nsdm-course-search-static {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  padding: 12px 0 !important;
  background: linear-gradient(180deg, #f7fbff, #eef4ff) !important;
}

/* Subtle animations only */
@keyframes nsdmFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nsdm-panel,
.nsdm-course-group {
  animation: nsdmFadeUp .32s ease both;
}

.nsdm-table tbody tr,
.nsdm-button,
.nsdm-nav-button {
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nsdm-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(16, 47, 112, .06);
  }
}

/* More distinct but still professional button colors */
.nsdm-button--category {
  background: #2459b7 !important;
  border-color: #2459b7 !important;
}

.nsdm-button--school {
  background: #2f9b62 !important;
  border-color: #2f9b62 !important;
}

.nsdm-button--specialised {
  background: #bd7a12 !important;
  border-color: #bd7a12 !important;
}

.nsdm-button--category:hover,
.nsdm-button--category:focus-visible {
  background: #173f93 !important;
  border-color: #173f93 !important;
}

.nsdm-button--school:hover,
.nsdm-button--school:focus-visible {
  background: #237348 !important;
  border-color: #237348 !important;
}

.nsdm-button--specialised:hover,
.nsdm-button--specialised:focus-visible {
  background: #915c0d !important;
  border-color: #915c0d !important;
}

/* Course detail cards with medium color presence */
.nsdm-course-facts div:nth-child(1) {
  background: linear-gradient(145deg, #e2edff, #ffffff) !important;
  border-color: #91b0ee !important;
  box-shadow: inset 5px 0 0 #2459b7;
}

.nsdm-course-facts div:nth-child(2) {
  background: linear-gradient(145deg, #e5f7ec, #ffffff) !important;
  border-color: #91d8ad !important;
  box-shadow: inset 5px 0 0 #2f9b62;
}

.nsdm-course-facts div:nth-child(3) {
  background: linear-gradient(145deg, #eee9ff, #ffffff) !important;
  border-color: #b6a8ef !important;
  box-shadow: inset 5px 0 0 #6b5bd6;
}

.nsdm-course-facts div:nth-child(4) {
  background: linear-gradient(145deg, #fff0cf, #ffffff) !important;
  border-color: #e8c06e !important;
  box-shadow: inset 5px 0 0 #bd7a12;
}

/* Cleaner course navigation colors */
.nsdm-nav-button--prev,
.nsdm-nav-button--next {
  background: #eef5ff !important;
  border-color: #bfd2f2 !important;
}

.nsdm-nav-button--category {
  background: #effaf3 !important;
  border-color: #c3e5cf !important;
}

.nsdm-nav-button--main {
  background: #fff5df !important;
  border-color: #f0d59c !important;
}

/* Fix mobile subject table blank/gap issue */
@media (max-width: 720px) {
  .nsdm-subject-table tr {
    padding: 0 !important;
    margin-bottom: 12px !important;
    border-radius: 14px !important;
  }

  .nsdm-subject-table td {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 10px 12px !important;
    text-align: left !important;
  }

  .nsdm-subject-table td::before {
    content: attr(data-label) !important;
    color: #5b6980 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
  }

  .nsdm-subject-table td:nth-child(1),
  .nsdm-subject-table td:nth-child(2),
  .nsdm-subject-table td:nth-child(3) {
    justify-items: stretch !important;
  }

  .nsdm-subject-table td strong,
  .nsdm-subject-table td {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* Footer: 4 aligned color-divided columns */
.nsdm-footer {
  background: linear-gradient(135deg, #173f93, #143780) !important;
}

.nsdm-footer__grid {
  align-items: stretch !important;
  gap: 22px !important;
}

.nsdm-footer-card {
  position: relative;
  padding: 22px 22px 22px 26px !important;
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .10);
  min-height: 100%;
}

.nsdm-footer-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 999px;
}

.nsdm-footer-card--about::before {
  background: #e7bd24;
}

.nsdm-footer-card--courses::before {
  background: #62a0ff;
}

.nsdm-footer-card--links::before {
  background: #56d389;
}

.nsdm-footer-card--contact::before {
  background: #ffb44c;
}

.nsdm-footer h2 {
  margin-bottom: 14px !important;
}

.nsdm-footer__logo {
  margin-bottom: 18px !important;
}

/* Floating WhatsApp */
.nsdm-whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  min-width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff !important;
  font-size: 0;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.nsdm-whatsapp-float::before {
  content: "☎";
  font-size: 28px;
  line-height: 1;
}

.nsdm-whatsapp-float:hover,
.nsdm-whatsapp-float:focus-visible {
  transform: translateY(-2px);
  background: #1ebe5a;
}

@media (max-width: 960px) {
  .nsdm-menu {
    gap: 6px 16px !important;
  }

  .nsdm-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .nsdm-nav {
    background: var(--nsdm-blue) !important;
  }

  .nsdm-menu-toggle {
    background: var(--nsdm-blue) !important;
    color: #fff !important;
  }

  .nsdm-menu {
    background: var(--nsdm-blue) !important;
    padding: 8px 0 !important;
  }

  .nsdm-menu a {
    color: #fff !important;
    padding: 10px 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
  }

  .nsdm-menu a:hover,
  .nsdm-menu a:focus-visible,
  .nsdm-menu a[aria-current="page"] {
    color: #fff !important;
    background: rgba(255, 255, 255, .10) !important;
  }

  .nsdm-menu-icon {
    color: #ffd53d !important;
  }

  .nsdm-course-facts div {
    box-shadow: inset 4px 0 0 currentColor;
  }

  .nsdm-footer__grid {
    grid-template-columns: 1fr !important;
  }

  .nsdm-footer-card {
    padding: 20px 18px 20px 24px !important;
  }

  .nsdm-whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 54px;
    min-width: 54px;
    height: 54px;
    padding: 0;
  }
}

/* Fix 5: compact mobile tables, no card blocks, no horizontal scrollbar */
@media (max-width: 720px) {
  body {
    overflow-x: hidden !important;
  }

  .nsdm-main {
    padding-bottom: 112px !important;
  }

  .nsdm-panel,
  .nsdm-course-group {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .nsdm-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
    border: 1px solid var(--nsdm-border) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
  }

  .nsdm-table,
  .nsdm-subject-table {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  .nsdm-table thead,
  .nsdm-subject-table thead {
    display: table-header-group !important;
  }

  .nsdm-table tbody,
  .nsdm-subject-table tbody {
    display: table-row-group !important;
  }

  .nsdm-table tr,
  .nsdm-subject-table tr {
    display: table-row !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .nsdm-table th,
  .nsdm-table td,
  .nsdm-subject-table th,
  .nsdm-subject-table td {
    display: table-cell !important;
    width: auto !important;
    padding: 8px 6px !important;
    border-right: 1px solid #e0e7f1 !important;
    border-bottom: 1px solid #e0e7f1 !important;
    vertical-align: top !important;
    text-align: left !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: auto !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    justify-items: stretch !important;
  }

  .nsdm-table th,
  .nsdm-subject-table th {
    padding: 8px 5px !important;
    color: #ffffff !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
  }

  .nsdm-table td::before,
  .nsdm-subject-table td::before {
    display: none !important;
    content: none !important;
  }

  .nsdm-table th:last-child,
  .nsdm-table td:last-child,
  .nsdm-subject-table th:last-child,
  .nsdm-subject-table td:last-child {
    border-right: 0 !important;
  }

  .nsdm-table tbody tr:last-child td,
  .nsdm-subject-table tbody tr:last-child td {
    border-bottom: 0 !important;
  }

  .nsdm-table td strong,
  .nsdm-subject-table td strong,
  .nsdm-link-strong {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  .nsdm-table__count {
    text-align: center !important;
    font-weight: 850 !important;
  }

  .nsdm-button,
  .nsdm-button--small {
    width: auto !important;
    min-height: 30px !important;
    padding: 5px 8px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  /* Top division summary table: Part, Count, Details */
  .nsdm-table--summary th:nth-child(1),
  .nsdm-table--summary td:nth-child(1) {
    width: 38% !important;
  }

  .nsdm-table--summary th:nth-child(2),
  .nsdm-table--summary td:nth-child(2) {
    width: 24% !important;
  }

  .nsdm-table--summary th:nth-child(3),
  .nsdm-table--summary td:nth-child(3) {
    width: 38% !important;
  }

  /* Group tables: S.No, Category/School/Specialised, Count, Details */
  .nsdm-panel .nsdm-table:not(.nsdm-table--summary):not(.nsdm-subject-table) th:nth-child(1),
  .nsdm-panel .nsdm-table:not(.nsdm-table--summary):not(.nsdm-subject-table) td:nth-child(1) {
    width: 36px !important;
    text-align: center !important;
  }

  .nsdm-panel .nsdm-table:not(.nsdm-table--summary):not(.nsdm-subject-table) th:nth-child(3),
  .nsdm-panel .nsdm-table:not(.nsdm-table--summary):not(.nsdm-subject-table) td:nth-child(3) {
    width: 45px !important;
    text-align: center !important;
  }

  .nsdm-panel .nsdm-table:not(.nsdm-table--summary):not(.nsdm-subject-table) th:nth-child(4),
  .nsdm-panel .nsdm-table:not(.nsdm-table--summary):not(.nsdm-subject-table) td:nth-child(4) {
    width: 66px !important;
    text-align: center !important;
  }

  /* Detailed course list tables: S.No, Code, Course Name, Duration. Details button is hidden because course name is already clickable. */
  .nsdm-course-group .nsdm-table th:nth-child(1),
  .nsdm-course-group .nsdm-table td:nth-child(1) {
    width: 34px !important;
    text-align: center !important;
  }

  .nsdm-course-group .nsdm-table th:nth-child(2),
  .nsdm-course-group .nsdm-table td:nth-child(2) {
    width: 68px !important;
  }

  .nsdm-course-group .nsdm-table th:nth-child(4),
  .nsdm-course-group .nsdm-table td:nth-child(4) {
    width: 58px !important;
  }

  .nsdm-course-group .nsdm-table th:nth-child(5),
  .nsdm-course-group .nsdm-table td:nth-child(5) {
    display: none !important;
  }

  /* Individual course subject tables */
  .nsdm-subject-table th:nth-child(1),
  .nsdm-subject-table td:nth-child(1) {
    width: 36px !important;
    text-align: center !important;
  }

  .nsdm-subject-table th:nth-child(2),
  .nsdm-subject-table td:nth-child(2) {
    width: 86px !important;
  }

  .nsdm-subject-table th:nth-child(3),
  .nsdm-subject-table td:nth-child(3) {
    width: auto !important;
  }

  .nsdm-top-float {
    right: 12px !important;
    bottom: 76px !important;
    min-width: 48px !important;
    width: 48px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .20) !important;
  }

  .nsdm-whatsapp-float {
    right: 12px !important;
    bottom: 14px !important;
    min-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
  }
}

@media (max-width: 390px) {
  .nsdm-table th,
  .nsdm-table td,
  .nsdm-subject-table th,
  .nsdm-subject-table td {
    padding: 7px 4px !important;
    font-size: 11.5px !important;
  }

  .nsdm-table th,
  .nsdm-subject-table th {
    font-size: 9.5px !important;
  }

  .nsdm-course-group .nsdm-table th:nth-child(1),
  .nsdm-course-group .nsdm-table td:nth-child(1) {
    width: 30px !important;
  }

  .nsdm-course-group .nsdm-table th:nth-child(2),
  .nsdm-course-group .nsdm-table td:nth-child(2) {
    width: 62px !important;
  }

  .nsdm-course-group .nsdm-table th:nth-child(4),
  .nsdm-course-group .nsdm-table td:nth-child(4) {
    width: 52px !important;
  }

  .nsdm-subject-table th:nth-child(1),
  .nsdm-subject-table td:nth-child(1) {
    width: 32px !important;
  }

  .nsdm-subject-table th:nth-child(2),
  .nsdm-subject-table td:nth-child(2) {
    width: 78px !important;
  }
}
