/* NINSS home page — builds on ninss-program.css (.np base: buttons, headings, icons, reveal) */

/* Hero with crossfading photos */
.nh-hero {
	position: relative;
	min-height: min(88vh, 760px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--np-navy-deep);
	color: #fff;
	padding: 96px 0 150px;
	isolation: isolate;
}
.nh-slides { position: absolute; inset: 0; z-index: -2; margin: 0; padding: 0; list-style: none; }
.nh-slides li {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.4s ease;
}
.nh-slides li.is-active { opacity: 1; }
.nh-slides img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transform: scale(1.08);
}
.nh-slides li.is-active img { animation: nh-zoom 9s ease-out forwards; }
@keyframes nh-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.nh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(20, 25, 66, .94) 0%, rgba(26, 33, 85, .82) 42%, rgba(26, 33, 85, .35) 75%, rgba(26, 33, 85, .2) 100%),
		linear-gradient(0deg, rgba(20, 25, 66, .7), transparent 40%);
}
.nh-hero > .np-wrap { width: 100%; }
.nh-hero-content { max-width: 640px; }
.nh-hero h1 {
	color: #fff !important;
	font-size: clamp(36px, 5.4vw, 64px) !important;
	font-weight: 800 !important;
	line-height: 1.05 !important;
	margin: 0 0 20px !important;
}
.nh-hero h1 small {
	display: block;
	font-family: "Roboto", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--np-sky);
	margin-bottom: 18px;
	line-height: 1.4;
}
.nh-hero h1 em { font-style: normal; color: var(--np-sky); }
.nh-hero-text { font-size: 18px; color: #d9ddf5; max-width: 560px; margin-bottom: 32px !important; }
.nh-dots {
	position: absolute;
	right: max(20px, calc((100vw - 1200px) / 2 + 20px));
	bottom: 132px;
	display: flex;
	gap: 8px;
}
.np .nh-dot {
	appearance: none;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0 !important;
	border-radius: 999px;
	background: rgba(255, 255, 255, .45) !important;
	cursor: pointer;
	transition: width .35s, background .35s;
}
.np .nh-dot.is-active { width: 30px; background: #fff !important; }
.np .nh-dot:focus-visible { outline: 3px solid var(--np-sky); outline-offset: 3px; }

/* Recognition bar */
.nh-trust { position: relative; z-index: 2; margin-top: -84px; }
.nh-trust-box {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 24px 50px rgba(26, 33, 85, .16);
	overflow: hidden;
}
.nh-trust-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 26px;
	position: relative;
}
.nh-trust-item + .nh-trust-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 22%;
	bottom: 22%;
	width: 1px;
	background: rgba(39, 49, 113, .12);
}
.nh-trust-item img {
	flex: 0 0 64px;
	width: 64px !important;
	height: 64px !important;
	object-fit: contain;
}
.nh-trust-item small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--np-red); }
.nh-trust-item strong { display: block; font-size: 16px; color: var(--np-navy); line-height: 1.3; }
.nh-trust-item span { font-size: 13px; color: var(--np-muted); }

/* Programmes */
.nh-programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nh-program {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px;
	border-radius: 22px;
	background: #fff;
	color: var(--np-ink) !important;
	box-shadow: 0 12px 30px rgba(26, 33, 85, .08);
	overflow: hidden;
	transition: transform .35s, box-shadow .35s;
}
.nh-program::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: #eef1fb;
	transition: transform .5s;
	z-index: 0;
}
.nh-program > * { position: relative; z-index: 1; }
.nh-program:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(26, 33, 85, .16); }
.nh-program:hover::after { transform: scale(1.4); }
.nh-program:focus-visible { outline: 3px solid var(--np-sky); outline-offset: 3px; }
.nh-program-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.nh-abbr {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: var(--np-navy);
	letter-spacing: -.01em;
}
.nh-tag {
	font-size: 12px;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
	background: #fff;
	color: var(--np-navy);
	box-shadow: inset 0 0 0 1.5px rgba(39, 49, 113, .15);
	white-space: nowrap;
}
.nh-program h3 { font-size: 18px; margin-bottom: 8px !important; }
.nh-program p { font-size: 14.5px; color: var(--np-muted); margin-bottom: 18px !important; }
.nh-meta { list-style: none; margin: auto 0 18px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.nh-meta li { display: flex; gap: 8px; align-items: baseline; }
.nh-meta b { color: var(--np-navy); min-width: 74px; font-weight: 600; }
.nh-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--np-red); }
.nh-more svg { transition: transform .3s; }
.nh-program:hover .nh-more svg { transform: translateX(4px); }
.nh-program.is-feature {
	grid-row: span 2;
	background: radial-gradient(500px 300px at 100% 0%, #3a4aa8, transparent 70%), linear-gradient(160deg, var(--np-navy-deep), var(--np-navy));
	color: #c9cfee !important;
}
.nh-program.is-feature::after { background: rgba(255, 255, 255, .06); width: 220px; height: 220px; right: -70px; top: -70px; }
.nh-program.is-feature .nh-abbr, .nh-program.is-feature h3 { color: #fff; }
.nh-program.is-feature .nh-abbr { font-size: 44px; }
.nh-program.is-feature p { color: #c9cfee; font-size: 15.5px; }
.nh-program.is-feature .nh-tag { background: var(--np-red); color: #fff; box-shadow: none; }
.nh-program.is-feature .nh-meta b { color: #fff; }
.nh-program.is-feature .nh-more { color: #fff; }
/* Last card: help choosing */
.nh-program.is-help { background: #f6f9f8; box-shadow: inset 0 0 0 2px rgba(39, 49, 113, .12); justify-content: center; }
.nh-program.is-help::after { display: none; }
.nh-program.is-help .np-icon { margin-bottom: 14px; }
.nh-feature-img {
	margin: 4px 0 22px;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}
.nh-feature-img img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; transition: transform .8s; }
.nh-program.is-feature:hover .nh-feature-img img { transform: scale(1.05); }

/* Why NINSS */
.nh-why { background: #fff; }
.nh-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.nh-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 200px; gap: 14px; }
.nh-collage figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; }
.nh-collage figure:nth-child(1) { grid-row: span 2; }
.nh-collage figure:nth-child(4) { grid-column: 2; grid-row: 2 / span 2; }
.nh-collage img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; transition: transform .8s; }
.nh-collage figure:hover img { transform: scale(1.06); }
.nh-collage figcaption {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: var(--np-navy);
	font-size: 12.5px;
	font-weight: 700;
}
.nh-features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.nh-features li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.nh-features .np-icon { margin: 0; }
.nh-features strong { display: block; color: var(--np-navy); font-size: 16.5px; margin-bottom: 2px; }
.nh-features span { font-size: 14.5px; color: var(--np-muted); }

/* Clinical training */
.nh-clinical {
	background: radial-gradient(700px 400px at 0% 100%, #3a4aa8, transparent 70%), linear-gradient(135deg, var(--np-navy-deep), var(--np-navy));
	color: #d3d8f3;
}
.nh-clinical .np-title { color: #fff; }
.nh-clinical .np-lead { color: #c9cfee; }
.nh-clinical-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.nh-hospitals { display: grid; gap: 16px; }
.nh-hospital {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .07);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
	transition: background .3s, transform .3s;
}
.nh-hospital:hover { background: rgba(255, 255, 255, .12); transform: translateX(6px); }
.nh-hospital .np-icon { margin: 0; flex: 0 0 52px; width: 52px; height: 52px; background: #fff; color: var(--np-red); }
.nh-hospital strong { display: block; color: #fff; font-size: 17px; line-height: 1.3; }
.nh-hospital span { font-size: 14px; }

/* Campus life strip */
.nh-life { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; grid-template-rows: 190px 190px; gap: 14px; }
.nh-life a:first-child { grid-row: span 2; }
.nh-life a:nth-child(4) { grid-column: span 2; }
.nh-life-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.nh-life-head a { font-weight: 700; color: var(--np-red) !important; }

/* Testimonial */
.nh-quote {
	position: relative;
	max-width: 860px;
	margin: 0 auto;
	text-align: center;
	padding: 56px 48px 44px;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(26, 33, 85, .1);
}
.nh-quote::before {
	content: "\201C";
	position: absolute;
	top: -34px;
	left: 50%;
	transform: translateX(-50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--np-red);
	color: #fff;
	font: 800 64px/1.15 Georgia, serif;
	box-shadow: 0 12px 26px rgba(200, 16, 46, .35);
}
.nh-quote blockquote { margin: 0; padding: 0; border: 0; }
.nh-quote blockquote p { font-size: clamp(18px, 2.2vw, 23px); line-height: 1.6; color: var(--np-navy); font-weight: 500; }
.nh-quote figcaption { margin-top: 20px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--np-muted); }

/* Contact + admissions */
.nh-contact { background: #fff; }
.nh-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: stretch; }
.nh-contact .np-cta-box { grid-template-columns: 1fr; gap: 24px; height: 100%; align-content: start; }
.nh-map {
	border-radius: 28px;
	overflow: hidden;
	min-height: 420px;
	box-shadow: 0 18px 44px rgba(26, 33, 85, .12);
	background: #e6eeec;
}
.nh-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* Attendance (keeps #ninss-attendance from ninss-fixes.css; this restyles it to match) */
.np #ninss-attendance { padding: 0 0 96px; }
.nh-attend {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 24px;
	align-items: start;
	padding: 32px;
	border-radius: 24px;
	background: rgba(255, 255, 255, .7);
	box-shadow: inset 0 0 0 1px rgba(39, 49, 113, .1);
}
.nh-attend .np-icon { margin: 0; width: 56px; height: 56px; }
.np #ninss-attendance h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.np #ninss-attendance p { color: var(--np-ink); font-size: 15.5px; margin-bottom: 10px; }
.np #ninss-attendance p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 1024px) {
	.nh-trust-box { grid-template-columns: 1fr; }
	.nh-trust-item + .nh-trust-item::before { left: 24px; right: 24px; top: 0; bottom: auto; width: auto; height: 1px; }
	.nh-programs { grid-template-columns: 1fr 1fr; }
	.nh-program.is-feature { grid-column: span 2; grid-row: auto; }
	.nh-feature-img { aspect-ratio: 21 / 9; }
	.nh-why-grid, .nh-clinical-grid, .nh-contact-grid { grid-template-columns: 1fr; gap: 36px; }
	.nh-life { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 180px 180px; }
	.nh-life a:first-child { grid-row: auto; grid-column: span 2; }
	.nh-life a:nth-child(4) { grid-column: auto; }
}
@media (max-width: 767px) {
	.nh-hero { min-height: 0; padding: 64px 0 132px; }
	.nh-hero::before { background: linear-gradient(180deg, rgba(20, 25, 66, .75), rgba(20, 25, 66, .92)); }
	.nh-hero-text { font-size: 16px; }
	.nh-dots { right: 16px; bottom: 106px; }
	.nh-trust { margin-top: -72px; }
	.nh-trust-item { padding: 18px 20px; }
	.nh-trust-item img { flex-basis: 52px; width: 52px !important; height: 52px !important; }
	.nh-programs { grid-template-columns: 1fr; }
	.nh-program.is-feature { grid-column: auto; }
	.nh-feature-img { aspect-ratio: 16 / 10; }
	.nh-collage { grid-template-rows: 150px 120px 150px; gap: 10px; }
	.nh-life { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
	.nh-life a:first-child { grid-column: span 2; }
	.nh-life a:nth-child(5) { display: none; }
	.nh-quote { padding: 48px 22px 32px; }
	.nh-attend { grid-template-columns: 1fr; padding: 24px; }
	.np #ninss-attendance { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	.nh-slides li { transition: none; }
	.nh-slides li.is-active img { animation: none; transform: none; }
}
