/**
 * Nine Exams — the entire exam module's styling.
 *
 * Tokens recovered from the old Elementor Default Kit (see
 * recovered/00-design-tokens.json), so the rebuilt pages match what students saw before
 * without anyone redesigning anything.
 */

:root {
	--nx-primary: #365f91;
	--nx-cyan: #00a0e3;
	--nx-white: #ffffff;
	--nx-ink: #141515;
	--nx-muted: #6b7280;
	--nx-bg: #f8f8f8;
	--nx-line: #dfe3ea;
	--nx-error: #c62828;
	--nx-ok: #0f9d58;
	--nx-warn: #7a5c00;
	--nx-warn-bg: #fff8e1;
	--nx-warn-line: #ffe69c;

	--nx-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--nx-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--nx-radius: 8px;
	--nx-gap: 20px;
	--nx-max: 880px;

	--nx-phone: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1l-2.3 2.2z"/></svg>');
}

.nx { font-family: var(--nx-body); color: var(--nx-ink); line-height: 1.6; }
.nx *, .nx *::before, .nx *::after { box-sizing: border-box; }

/* ---------- Header ---------- */

.nx-header {
	position: sticky; top: 0; z-index: 999;
	display: flex; align-items: center; gap: var(--nx-gap);
	padding: 10px 30px; background: var(--nx-white);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.nx-header__logo img { display: block; max-height: 48px; width: auto; }
.nx-header__spacer { flex: 1; }

.nx-bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--nx-gap); padding: 6px 30px;
	background: var(--nx-primary); color: var(--nx-white);
	font-family: var(--nx-head); font-weight: 600; font-size: 18px;
}
/*
 * The helpline.
 *
 * Deliberately NOT scrolled like the notice above it. That marquee carries a changing
 * announcement; this is a fixed action, and a tap target that slides away is one nobody can
 * hit — WCAG 2.5.5 on target size, and 2.2.2 which wants a pause control for anything
 * auto-moving beyond five seconds. Contact details want to sit in the same place every time.
 *
 * Marked up as a real tel: link because iOS Safari otherwise auto-detects the number and
 * wraps it in its own anchor with its own colour — a dark blue that vanished against this
 * dark blue bar, so the number was invisible on iPhones while fine on every desktop.
 */
.nx-bar__help { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.nx .nx-bar__tel,
.nx .nx-bar__tel:link,
.nx .nx-bar__tel:visited {
	display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
	color: var(--nx-white); font-weight: 700; text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .45);
}
.nx .nx-bar__tel::before {
	content: ""; width: 14px; height: 14px; flex: none;
	background: currentColor;
	-webkit-mask: var(--nx-phone) center / contain no-repeat;
	mask: var(--nx-phone) center / contain no-repeat;
}
.nx .nx-bar__tel:hover,
.nx .nx-bar__tel:focus { color: var(--nx-white); border-bottom-color: var(--nx-white); }
.nx-bar__meta { font-weight: 400; opacity: .85; }

/* ---------- Notice marquee ---------- */

.nx-marquee {
	overflow: hidden; white-space: nowrap;
	padding: 10px 0; background: var(--nx-warn-bg); color: var(--nx-warn);
	border-top: 1px solid var(--nx-warn-line); border-bottom: 1px solid var(--nx-warn-line);
}
.nx-marquee__inner {
	display: inline-block; padding-left: 100%;
	animation: nx-scroll 80s linear infinite;
}
.nx-marquee__text {
	display: inline-block; padding-right: 4rem;
	font-size: clamp(12px, 2.2vw, 14px); font-weight: 600;
}
@keyframes nx-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
	.nx-marquee { white-space: normal; }
	.nx-marquee__inner { padding-left: 0; animation: none; display: block; padding: 0 20px; }
	.nx-marquee__text ~ .nx-marquee__text { display: none; }
}

/* ---------- Layout ---------- */

.nx-main { max-width: var(--nx-max); margin: 0 auto; padding: 32px 20px 80px; }
.nx-h1 { font-family: var(--nx-head); font-size: 28px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
.nx-sub { color: var(--nx-muted); margin: 0 0 28px; }

/* ---------- Progress ---------- */

.nx-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 28px; padding: 0; }
.nx-steps__item {
	flex: 1; padding: 9px 8px 11px; border-top: 3px solid var(--nx-line);
	font-size: 12.5px; color: var(--nx-muted);
}
.nx-steps__item--done { border-top-color: var(--nx-ok); color: var(--nx-ink); }
.nx-steps__item--current { border-top-color: var(--nx-primary); color: var(--nx-primary); font-weight: 600; }
.nx-steps__n { display: block; font-family: var(--nx-head); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Fields ---------- */

.nx-field { margin-bottom: 22px; }
.nx-field[hidden] { display: none; }

.nx-label {
	display: block; margin-bottom: 6px;
	font-family: var(--nx-head); font-weight: 600; font-size: 13.5px;
	letter-spacing: .02em; text-transform: uppercase; color: var(--nx-ink);
}
.nx-req { color: var(--nx-error); }
.nx-help { margin: 0 0 8px; font-size: 13px; color: var(--nx-muted); }

.nx-input {
	width: 100%; padding: 11px 13px; font: inherit; font-size: 15px;
	background: var(--nx-white); color: var(--nx-ink);
	border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
}
.nx-input:focus-visible { outline: 2px solid var(--nx-cyan); outline-offset: 1px; border-color: var(--nx-cyan); }

.nx-field--error .nx-input { border-color: var(--nx-error); }
.nx-error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--nx-error); }

/* Document uploads */
.nx-input--file { padding: 9px 10px; cursor: pointer; }
.nx-input--file::file-selector-button {
	margin-right: 12px; padding: 7px 12px; font: inherit; font-size: 13.5px; font-weight: 600;
	color: var(--nx-primary); background: var(--nx-bg); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); cursor: pointer;
}
.nx-file__status { margin: 0 0 8px; padding: 9px 12px; font-size: 13.5px; border-radius: var(--nx-radius); background: #eaf7f0; border-left: 4px solid var(--nx-ok); }
.nx-file__preview { display: block; max-width: 160px; max-height: 200px; margin: 0 0 8px; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); background: var(--nx-white); }
.nx-file__limit { margin-top: 6px; margin-bottom: 0; }
.nx-input--date { max-width: 260px; }

.nx-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.nx-radio {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 14px; border: 1px solid var(--nx-line);
	border-radius: var(--nx-radius); background: var(--nx-white);
	cursor: pointer; font-size: 14.5px;
}
.nx-radio:has(input:checked) { border-color: var(--nx-primary); background: #eef3f9; font-weight: 600; }
.nx-radio:has(input:focus-visible) { outline: 2px solid var(--nx-cyan); outline-offset: 1px; }

/* ---------- Exam chooser ---------- */

.nx-exam {
	padding: 18px 20px; margin-bottom: 14px;
	border: 1px solid var(--nx-line); border-radius: 10px; background: var(--nx-white);
}
.nx-exam__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nx-exam__name { font-family: var(--nx-head); font-size: 16px; font-weight: 700; margin: 0; }
.nx-exam__fee { font-family: var(--nx-head); font-size: 18px; font-weight: 700; color: var(--nx-primary); }
.nx-exam__info { margin: 10px 0; font-size: 14px; color: var(--nx-muted); }
.nx-radios--exam { margin-top: 12px; }
.nx-radio--apply:has(input:checked) { border-color: var(--nx-ok); background: #eaf7f0; }
.nx-radio--skip:has(input:checked) { border-color: var(--nx-muted); background: var(--nx-bg); }

/*
 * An examination still waiting for an answer. The border alone is not enough — it is the one
 * cue a red-green colourblind reader loses — so the tinted ground and the message under the
 * choices carry it too.
 */
.nx-exam--error { border-color: var(--nx-error); border-width: 2px; padding: 17px 19px; background: #fdecea; }
.nx-exam--error .nx-exam__name { color: #7f1d1d; }

.nx-total {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding: 16px 20px; margin-top: 8px;
	background: var(--nx-primary); color: var(--nx-white); border-radius: 10px;
}
.nx-total__label { font-family: var(--nx-head); font-weight: 600; }
.nx-total__value { font-family: var(--nx-head); font-size: 24px; font-weight: 700; }

/* ---------- Review ---------- */

.nx-review__group { padding: 18px 20px; margin-bottom: 14px; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--nx-white); }
.nx-review__title { font-family: var(--nx-head); font-size: 15px; margin: 0 0 12px; }
.nx-review__list { margin: 0; }
.nx-review__row { display: flex; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--nx-line); font-size: 14px; }
.nx-review__row dt { flex: 0 0 46%; margin: 0; color: var(--nx-muted); }
.nx-review__row dd { flex: 1; margin: 0; font-weight: 600; }
.nx-review__edit { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--nx-primary); }

/* The correction window reuses the review card as a form section, so the last field's own
   bottom margin would double the card's padding and leave the group looking lopsided. */
.nx .nx-review__group .nx-field:last-child { margin-bottom: 0; }

/* ---------- Landing ---------- */

.nx-h2 { font-family: var(--nx-head); font-size: 20px; font-weight: 700; margin: 34px 0 14px; }
.nx-cta { margin: 0 0 32px; }
.nx-cta .nx-btn { margin: 0 10px 10px 0; }
.nx-cta .nx-help { margin-top: 4px; }

/* ---------- Payment ---------- */

.nx-pay { margin-top: 8px; }
.nx-pay__status { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--nx-muted); }
.nx-pay__status--error { color: var(--nx-error); font-weight: 600; }

/* ---------- Dashboard ---------- */

.nx-status {
	display: inline-block; padding: 2px 10px; border-radius: 999px;
	font-family: var(--nx-head); font-size: 12.5px; font-weight: 700;
	letter-spacing: .03em; text-transform: uppercase;
	background: var(--nx-bg); color: var(--nx-muted);
}
.nx-status--paid { background: #eaf7f0; color: #0b6b3d; }
.nx-status--awaiting { background: var(--nx-warn-bg); color: var(--nx-warn); }
.nx-status--pending { background: var(--nx-bg); color: var(--nx-muted); }

.nx-next { margin: 0; padding-left: 20px; font-size: 14.5px; }
.nx-next li { margin-bottom: 8px; }

/* =====================================================================
 * Landing page
 *
 * The page is an examination SEASON, not a product list: a calendar first, a catalogue
 * second. "When do these happen and which do I need?" is the question families arrive with,
 * and nine paragraphs cannot answer it.
 *
 * Written for the audience the old page named in its own words — households where whoever
 * fills this in may not be comfortable with a computer. So: large type, obvious controls,
 * nothing that has to be discovered, and no interaction whose affordance is a hover state.
 *
 * Every selector here is `.nx`-prefixed. The active theme styles bare a, button, h1–h6,
 * summary and table, and an element+pseudo-class selector outranks a plain class no matter
 * which stylesheet loads last.
 * ================================================================== */

.nx { --nx-navy: #14243d; }

/*
 * The form pages are deliberately narrow — a single column of fields is easier to complete.
 * The landing page is a catalogue of nine and needs the width to show three across; at 880px
 * it collapses to two columns and reads as a list.
 */
.nx .nx-main--wide { max-width: 1160px; }

/* ---------- Hero ---------- */

.nx .nx-hero {
	display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
	margin: 0 0 34px; padding: 40px 38px;
	background: linear-gradient(150deg, var(--nx-navy) 0%, #24406a 62%, var(--nx-primary) 100%);
	border-radius: 18px; color: var(--nx-white);
	box-shadow: 0 18px 40px -26px rgba(20, 36, 61, .8);
}
.nx .nx-hero__eyebrow {
	margin: 0 0 10px; font-family: var(--nx-head); font-size: 12px; font-weight: 700;
	letter-spacing: .18em; text-transform: uppercase; color: var(--nx-cyan);
}
.nx .nx-hero__title {
	margin: 0 0 14px; font-family: var(--nx-head); font-weight: 800;
	font-size: clamp(30px, 4.4vw, 46px); line-height: 1.04; letter-spacing: -.025em;
	color: var(--nx-white);
}
.nx .nx-hero__title-accent { color: var(--nx-cyan); }
.nx .nx-hero__lead {
	margin: 0 0 24px; max-width: 46ch; font-size: 17px; line-height: 1.55;
	color: rgba(255, 255, 255, .84);
}
.nx .nx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nx .nx-hero__note {
	margin: 16px 0 0; max-width: 46ch; font-size: 14px; line-height: 1.5;
	color: rgba(255, 255, 255, .68);
}
.nx .nx-hero__note--closed {
	padding: 12px 15px; border-radius: var(--nx-radius);
	background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .9);
}

/* ---------- Video ---------- */

.nx .nx-video { position: relative; }
.nx .nx-video__play {
	display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
	position: relative; border-radius: 14px; overflow: hidden; line-height: 0;
	box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .7);
}
.nx .nx-video__poster { display: block; width: 100%; height: auto; }
.nx .nx-video__icon {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 66px; height: 66px; border-radius: 50%; background: var(--nx-white);
	transition: transform .18s ease, background-color .18s ease;
}
.nx .nx-video__icon::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	transform: translate(-40%, -50%);
	border-style: solid; border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent var(--nx-primary);
}
.nx .nx-video__play:hover .nx-video__icon { transform: translate(-50%, -50%) scale(1.08); background: var(--nx-cyan); }
.nx .nx-video__play:hover .nx-video__icon::after { border-left-color: var(--nx-white); }
.nx .nx-video__play:focus-visible { outline: 3px solid var(--nx-cyan); outline-offset: 3px; }
.nx .nx-video__label {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 14px;
	font-family: var(--nx-head); font-size: 14px; font-weight: 600; line-height: 1.3;
	color: var(--nx-white); text-align: left;
	background: linear-gradient(to top, rgba(10, 20, 34, .82), transparent);
}
.nx .nx-video__frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; display: block; }

/* ---------- Facts strip ---------- */

.nx .nx-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1px; margin: 0 0 42px; padding: 0;
	background: var(--nx-line); border: 1px solid var(--nx-line); border-radius: 14px;
	overflow: hidden;
}
.nx .nx-fact { margin: 0; padding: 18px 20px; background: var(--nx-white); }
.nx .nx-fact dt {
	margin: 0 0 5px; font-family: var(--nx-head); font-size: 11.5px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; color: var(--nx-muted);
}
.nx .nx-fact dd {
	margin: 0; font-family: var(--nx-head); font-size: 25px; font-weight: 800;
	letter-spacing: -.02em; color: var(--nx-primary);
}
.nx .nx-fact--urgent dd { color: #b3421f; }

/* ---------- Season rail ---------- */

.nx .nx-season { margin: 0 0 46px; }
.nx .nx-season__head { margin-bottom: 20px; }
.nx .nx-h2 {
	margin: 0 0 6px; font-family: var(--nx-head); font-weight: 800;
	font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -.02em; color: var(--nx-ink);
}
.nx .nx-season__sub { margin: 0; max-width: 62ch; font-size: 15px; color: var(--nx-muted); }

/*
 * The season chart.
 *
 * One row per examination, months as the axis. The first attempt inverted this — a column
 * per month listing its exams — and every problem followed from that: BITSAT appeared under
 * both May and June so a repeat read as a bug, April held six entries against June's one so
 * the columns were violently ragged, and a multi-month exam was duplicated rather than shown
 * as a range. The exam is the entity; the month is one of its attributes.
 *
 * Six fixed columns including an empty February, so no column is ever sized by its
 * neighbour's content and the axis reads as a calendar rather than five arbitrary labels.
 */

.nx .nx-gantt {
	border: 1px solid var(--nx-line); border-radius: 14px; overflow: hidden;
	background: var(--nx-white);
}
.nx .nx-gantt__head,
.nx .nx-gantt__row {
	display: grid;
	/* Wide enough for the longest end label plus its padding — 'APPLY YOURSELF' needs ~141px
	   at this size, and a narrower track makes it overflow and sit flush to the border. */
	grid-template-columns: 164px repeat(6, minmax(0, 1fr)) 158px;
	align-items: center;
}
.nx .nx-gantt__head {
	background: #f3f6fa; border-bottom: 1px solid var(--nx-line);
}
.nx .nx-gantt__month {
	grid-row: 1; grid-column: var(--c); padding: 9px 0; text-align: center;
	font-family: var(--nx-head); font-size: 11.5px; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase; color: var(--nx-muted);
}
.nx .nx-gantt__corner { grid-row: 1; }

.nx .nx-gantt__row { min-height: 52px; border-bottom: 1px solid var(--nx-line); }
.nx .nx-gantt__row:last-child { border-bottom: 0; }
.nx .nx-gantt__row:hover { background: #f8fbfd; }

.nx a.nx-gantt__name,
.nx a.nx-gantt__name:link,
.nx a.nx-gantt__name:visited {
	grid-row: 1; grid-column: 1; padding: 0 8px 0 18px; text-decoration: none;
	font-family: var(--nx-head); font-size: 14px; font-weight: 700; line-height: 1.25;
	color: var(--nx-ink);
}
.nx a.nx-gantt__name:hover,
.nx a.nx-gantt__name:focus { color: var(--nx-primary); text-decoration: underline; }

/*
 * The bars are decoration for a sighted reader; this sentence is the actual content. Kept in
 * the accessibility tree at every width and simply revealed on small screens, so the chart
 * degrades to a readable list instead of needing a second copy of the same facts.
 */
.nx .nx-gantt__when {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.nx .nx-gantt__cell {
	grid-row: 1; grid-column: var(--c); height: 100%;
	border-left: 1px solid #eef2f7;
}

.nx a.nx-gantt__bar,
.nx a.nx-gantt__bar:link,
.nx a.nx-gantt__bar:visited {
	grid-row: 1; grid-column: var(--s) / var(--e);
	height: 22px; margin: 0 5px; border-radius: 6px; position: relative; z-index: 1;
	background: linear-gradient(100deg, var(--nx-primary), #4a7ab5);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
	transition: transform .14s ease, filter .14s ease;
}
.nx a.nx-gantt__bar:hover { filter: brightness(1.12); transform: scaleY(1.14); }

/* A different fill, not a dashed outline — dashes read as "disabled", not "different". */
.nx .nx-gantt__row--info a.nx-gantt__bar,
.nx .nx-gantt__row--info a.nx-gantt__bar:link {
	background: repeating-linear-gradient( 135deg, #cdd6e2 0 5px, #dde3ec 5px 10px );
	box-shadow: none;
}
.nx .nx-gantt__row--info a.nx-gantt__name,
.nx .nx-gantt__row--info a.nx-gantt__name:link { color: var(--nx-muted); font-weight: 600; }

.nx .nx-gantt__end {
	grid-row: 1; grid-column: 8; padding: 0 20px 0 12px; text-align: right;
	display: flex; justify-content: flex-end; align-items: center; min-width: 0;
}
.nx .nx-gantt__fee {
	font-family: var(--nx-head); font-size: 16px; font-weight: 800; color: var(--nx-primary);
	white-space: nowrap;
}
/* A row showing a range ("₹4,800 – ₹5,800") is twice as wide as one showing a single fee. */
@media (max-width: 700px) {
	.nx .nx-gantt__fee { font-size: 14px; }
}
/* One line, always. Wrapping made two rows taller than the other seven and broke the grid. */
.nx .nx-gantt__direct {
	display: inline-block; white-space: nowrap;
	font-family: var(--nx-head); font-size: 10.5px; font-weight: 700;
	letter-spacing: .05em; text-transform: uppercase; color: var(--nx-muted);
}

/* ---------- Exam cards ---------- */

.nx .nx-catalogue { margin: 0 0 46px; }
.nx .nx-cards {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
	gap: 18px; align-items: start; margin-top: 22px;
}
.nx .nx-card {
	background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: 14px;
	overflow: hidden; transition: box-shadow .18s ease, border-color .18s ease;
}
.nx .nx-card:hover { border-color: #c3d3e4; box-shadow: 0 14px 30px -22px rgba(20, 36, 61, .55); }
.nx .nx-card[open] { border-color: var(--nx-primary); box-shadow: 0 16px 34px -24px rgba(20, 36, 61, .6); }

/* summary{display:list-item} in the theme reset would otherwise show a marker. */
.nx .nx-card__summary { display: block; cursor: pointer; list-style: none; }
.nx .nx-card__summary::-webkit-details-marker { display: none; }
.nx .nx-card__summary::marker { content: ""; }
.nx .nx-card:focus-within { outline: 2px solid var(--nx-cyan); outline-offset: 2px; }

.nx .nx-card__media {
	position: relative; aspect-ratio: 16 / 9; overflow: hidden;
	background: linear-gradient(140deg, #22395c, var(--nx-primary));
	display: grid; place-items: center;
}
.nx .nx-card__image { width: 100%; height: 100%; object-fit: cover; display: block; }
/*
 * Shown only until a photograph is uploaded. The exam's own code, not an abbreviation of it —
 * "BITSAT" reads as a placeholder waiting for an image, "BI" reads as a bug.
 */
.nx .nx-card__monogram {
	font-family: var(--nx-head); font-size: clamp(20px, 3.4vw, 28px); font-weight: 800;
	letter-spacing: .12em; color: rgba(255, 255, 255, .3); text-transform: uppercase;
}
/*
 * The pill holds a sentence now ("Applied via a separate JEE Main Application Drive"),
 * not two words, so it wraps and is held back from the right edge of the image.
 */
.nx .nx-card__tag {
	position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px);
	padding: 4px 10px; border-radius: 14px;
	font-family: var(--nx-head); font-size: 10.5px; font-weight: 700; line-height: 1.5;
	letter-spacing: .07em; text-transform: uppercase;
	background: rgba(10, 20, 34, .74); color: var(--nx-white);
}

.nx .nx-card__text { padding: 16px 18px 18px; }
.nx .nx-card__name {
	margin: 0 0 3px; font-family: var(--nx-head); font-size: 17px; font-weight: 800;
	letter-spacing: -.01em; line-height: 1.25; color: var(--nx-ink);
}
.nx .nx-card__inst { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: var(--nx-muted); }
.nx .nx-card__meta {
	display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0;
	padding-top: 12px; border-top: 1px solid var(--nx-line);
}
.nx .nx-card__fee {
	font-family: var(--nx-head); font-size: 20px; font-weight: 800; color: var(--nx-primary);
}
.nx .nx-card__when { font-size: 13px; color: var(--nx-muted); }
.nx .nx-card__more {
	display: inline-block; margin-top: 12px; font-family: var(--nx-head);
	font-size: 13px; font-weight: 700; color: var(--nx-cyan);
}
.nx .nx-card__more::after { content: " →"; }
.nx .nx-card[open] .nx-card__more { display: none; }

.nx .nx-card__body { padding: 0 18px 18px; font-size: 14.5px; line-height: 1.6; }
.nx .nx-card__body p { margin: 0 0 10px; }
.nx .nx-card__body p:last-child { margin-bottom: 0; }
.nx .nx-card__note {
	margin-top: 12px; padding: 10px 13px; border-radius: 8px;
	background: var(--nx-bg); color: var(--nx-muted); font-size: 13.5px;
}
.nx .nx-card--info .nx-card__media { background: linear-gradient(140deg, #3c4653, #55606f); }

/* ---------- Closing call to action ---------- */

.nx .nx-close {
	padding: 34px 32px; margin: 0 0 26px; text-align: center;
	background: var(--nx-bg); border: 1px solid var(--nx-line); border-radius: 16px;
}
.nx .nx-close__title {
	margin: 0 0 8px; font-family: var(--nx-head); font-weight: 800;
	font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; color: var(--nx-ink);
}
.nx .nx-close__text { margin: 0 auto 20px; max-width: 56ch; font-size: 15px; color: var(--nx-muted); }
.nx .nx-close .nx-hero__actions { justify-content: center; }

.nx .nx-advisory {
	margin: 20px auto 0; max-width: 62ch; padding: 11px 16px; font-size: 14px;
	background: var(--nx-warn-bg); color: var(--nx-warn);
	border: 1px solid var(--nx-warn-line); border-radius: var(--nx-radius);
}

/* ---------- Landing: small screens ---------- */

@media (max-width: 860px) {
	.nx .nx-hero { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; }
	.nx .nx-hero__media { order: -1; }

	/*
	 * A 2x2 grid of facts looks tidy in a mockup and falls apart on a phone: every label
	 * wraps to two lines, "31 Dec 2027" breaks across lines, and the shortest cell leaves a
	 * hole because the grid forces equal heights. Four compact rows instead — label left,
	 * value right — which fits any label at any width and has no dead space by construction.
	 */
	.nx .nx-facts { grid-template-columns: 1fr; border-radius: 12px; }
	.nx .nx-fact {
		display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
		padding: 13px 16px;
	}
	.nx .nx-fact dt { margin: 0; flex: 1; letter-spacing: .06em; }
	.nx .nx-fact dd { font-size: 20px; white-space: nowrap; text-align: right; }
	/*
	 * A six-column chart cannot survive a phone. Below this width every row becomes a plain
	 * line — name, months, price — using the sentence that was already in the markup for
	 * screen readers. Nothing is duplicated and nothing is hidden from anyone.
	 */
	.nx .nx-gantt__head { display: none; }
	.nx .nx-gantt__cell,
	.nx a.nx-gantt__bar { display: none; }
	.nx .nx-gantt__row { grid-template-columns: 1fr auto; padding: 13px 16px; min-height: 0; }
	.nx a.nx-gantt__name { grid-column: 1; padding: 0; display: block; }
	.nx .nx-gantt__when {
		position: static; width: auto; height: auto; margin: 3px 0 0; clip: auto;
		overflow: visible; white-space: normal; display: block;
		font-family: var(--nx-body); font-size: 13px; font-weight: 400; color: var(--nx-muted);
	}
	.nx .nx-gantt__end { grid-column: 2; padding: 0; }
	.nx .nx-close { padding: 26px 20px; }

	/*
	 * The notice keeps scrolling at every width. It carries a deadline, and movement is what
	 * makes a deadline read as one — which is the case where motion is earned rather than
	 * decorative. Only prefers-reduced-motion stops it, and that is a request from the
	 * visitor rather than a guess on our part.
	 *
	 * Tighter and a little quicker here: the same travel across a narrower viewport takes
	 * proportionally longer to come round, and a notice nobody waits for is a notice nobody
	 * reads.
	 */
	.nx-marquee { padding: 8px 0; }
	.nx-marquee__inner { animation-duration: 42s; }
	.nx-marquee__text { padding-right: 2.5rem; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.nx .nx-card, .nx .nx-video__icon, .nx a.nx-chip { transition: none; }
	.nx .nx-video__play:hover .nx-video__icon { transform: translate(-50%, -50%); }
}

/* ---------- Buttons ---------- */

.nx-actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; flex-wrap: wrap; }

/*
 * Every state is written out explicitly, and the module's own container class is repeated
 * for weight. Themes style bare `a`, `button` and `input[type=…]` selectors, and an
 * element+pseudo-class selector like `button:hover` (0,1,1) beats a plain `.nx-btn` (0,1,0).
 * Hello Elementor's reset does exactly that — `button:hover { background-color:#c36 }` — so
 * every button in this module turned pink on hover until these rules existed. Load order
 * cannot fix a specificity loss, so specificity is what is fixed here.
 */
.nx .nx-btn,
.nx .nx-btn:link,
.nx .nx-btn:visited {
	display: inline-block; padding: 12px 26px; font: inherit; font-size: 15px; font-weight: 600;
	border: 0; border-radius: var(--nx-radius); cursor: pointer; text-align: center;
	background-color: var(--nx-primary); color: var(--nx-white); text-decoration: none;
	transition: background-color .15s ease;
}
.nx .nx-btn:hover,
.nx .nx-btn:focus,
.nx .nx-btn:active {
	background-color: var(--nx-cyan); color: var(--nx-white); filter: none; text-decoration: none;
}
.nx .nx-btn:focus-visible { outline: 2px solid var(--nx-primary); outline-offset: 2px; }

.nx .nx-btn--secondary,
.nx .nx-btn--secondary:link,
.nx .nx-btn--secondary:visited {
	background-color: var(--nx-white); color: var(--nx-ink); border: 1px solid var(--nx-line);
}
.nx .nx-btn--secondary:hover,
.nx .nx-btn--secondary:focus {
	background-color: var(--nx-bg); color: var(--nx-primary); border-color: var(--nx-cyan);
}

.nx .nx-btn--cyan,
.nx .nx-btn--cyan:link,
.nx .nx-btn--cyan:visited { background-color: var(--nx-cyan); color: var(--nx-white); }
.nx .nx-btn--cyan:hover,
.nx .nx-btn--cyan:focus { background-color: var(--nx-primary); color: var(--nx-white); }

/* The primary action, sized so it reads as the one thing to do on the page. */
.nx .nx-btn--lg,
.nx .nx-btn--lg:link,
.nx .nx-btn--lg:visited {
	padding: 15px 32px; font-size: 16.5px; background-color: var(--nx-cyan);
	box-shadow: 0 10px 24px -12px rgba(0, 160, 227, .9);
}
.nx .nx-btn--lg:hover,
.nx .nx-btn--lg:focus { background-color: var(--nx-white); color: var(--nx-navy); }

/* Secondary action ON the dark hero — an outline, so it cannot compete with the primary. */
.nx .nx-btn--ghost,
.nx .nx-btn--ghost:link,
.nx .nx-btn--ghost:visited {
	background-color: transparent; color: var(--nx-white);
	border: 1px solid rgba(255, 255, 255, .38); box-shadow: none;
}
.nx .nx-btn--ghost:hover,
.nx .nx-btn--ghost:focus {
	background-color: rgba(255, 255, 255, .12); color: var(--nx-white);
	border-color: var(--nx-white);
}

.nx .nx-btn[disabled],
.nx .nx-btn[disabled]:hover { opacity: .55; cursor: not-allowed; background-color: var(--nx-primary); }

/* ---------- Holding the theme off ---------- */

/*
 * Ordinary links, excluding buttons — :not(.nx-btn) keeps this from repainting button text
 * the same colour as its own background.
 */
.nx a:not(.nx-btn) { color: var(--nx-primary); text-decoration: underline; }
.nx a:not(.nx-btn):hover,
.nx a:not(.nx-btn):focus { color: var(--nx-cyan); }

/* Themes style `input[type=text]` (0,1,1), which outranks a plain `.nx-input` (0,1,0). */
.nx .nx-input,
.nx input[type="text"].nx-input,
.nx input[type="email"].nx-input,
.nx input[type="tel"].nx-input,
.nx input[type="password"].nx-input,
.nx select.nx-input,
.nx textarea.nx-input {
	width: 100%; padding: 11px 13px; font: inherit; font-size: 15px;
	background-color: var(--nx-white); color: var(--nx-ink);
	border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
}
.nx .nx-input:focus,
.nx .nx-input:focus-visible {
	outline: 2px solid var(--nx-cyan); outline-offset: 1px; border-color: var(--nx-cyan);
}
.nx .nx-field--error .nx-input { border-color: var(--nx-error); }
.nx .nx-exam--error { border-color: var(--nx-error); border-width: 2px; background: #fdecea; }

/*
 * Show password. The shell around the input is created by the script, so none of this
 * applies until the enhancement has run — a page without JavaScript keeps a plain,
 * full-width password box. The padding sits here, below the theme-outranking block
 * above, because that block sets `padding` outright and would otherwise win.
 */
.nx .nx-password { position: relative; display: block; }
.nx .nx-password .nx-input { padding-right: 78px; }
.nx .nx-password__toggle {
	position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
	padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 600;
	color: var(--nx-primary); background: var(--nx-bg);
	border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
	cursor: pointer;
}
.nx .nx-password__toggle:hover { background: #eef3f9; }
.nx .nx-password__toggle:focus-visible { outline: 2px solid var(--nx-cyan); outline-offset: 1px; }

/* Themes also style bare tables; the review and exam lists are plain divs but dl/dt/dd are not. */
.nx table { background: transparent; }

/* ---------- Notices ---------- */

.nx-notice { padding: 13px 16px; margin-bottom: 20px; border-radius: var(--nx-radius); border-left: 4px solid var(--nx-primary); background: var(--nx-bg); font-size: 14.5px; }
.nx-notice--error { border-left-color: var(--nx-error); background: #fdecea; color: #7f1d1d; }
.nx-notice--ok { border-left-color: var(--nx-ok); background: #eaf7f0; }
.nx-notice--saved { border-left-color: var(--nx-cyan); }
.nx-notice--warn { border-left-color: var(--nx-warn-line); background: var(--nx-warn-bg); color: var(--nx-warn); }

/* A help line that carries a deadline, not a hint. */
.nx-help--strong { margin-top: 14px; font-size: 14.5px; color: var(--nx-ink); }

/* ---------- Footer ---------- */

.nx-footer { padding: 26px 20px; text-align: center; font-size: 13.5px; color: var(--nx-muted); border-top: 1px solid var(--nx-line); }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
	.nx-header, .nx-bar { padding-left: 20px; padding-right: 20px; }

	/*
	 * Stacked and centred rather than left-aligned. Left-alignment is right for prose — which
	 * is why every paragraph on the site keeps it — but a two-line chrome strip left-aligned
	 * reads as a ragged pile with no rhythm. Centring a short utility line reads as deliberate.
	 */
	.nx-bar {
		flex-direction: column; align-items: center; text-align: center;
		gap: 9px; padding-top: 11px; padding-bottom: 12px; font-size: 15px;
	}
	.nx-bar__help { flex-direction: column; align-items: center; gap: 5px; font-size: 13px; }

	/* The facility name is the landing page's own H1, directly below. Saying it twice in
	   two hundred vertical pixels wastes the scarcest space on the page. A greeting is
	   different information and stays. */
	.nx-bar__title--facility { display: none; }

	/* A real target: 44px is the accessibility floor, and a parent is tapping this in a hurry. */
	.nx .nx-bar__tel,
	.nx .nx-bar__tel:link,
	.nx .nx-bar__tel:visited {
		min-height: 44px; padding: 8px 20px; font-size: 17px;
		border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
		background: rgba(255, 255, 255, .1);
	}
	.nx .nx-bar__tel:hover,
	.nx .nx-bar__tel:focus { background: rgba(255, 255, 255, .2); }
	.nx-bar__meta { font-size: 12.5px; }
	.nx-steps__item { font-size: 0; padding-bottom: 6px; }
	.nx-steps__n { font-size: 10px; }
	.nx-review__row { flex-direction: column; gap: 2px; }
	.nx-review__row dt { flex: none; }
	.nx-actions .nx-btn { flex: 1; text-align: center; }
}
