/* ==========================================================================
   Inner-page components: cards, embeds (calendar, store, audio, forms), videos, schedules,
   notices, flyers, stats, step cards, quotes, rating, mini CTA.
   ========================================================================== */

/* ---------- Cards ---------- */
.nj-cards { display: grid; gap: 16px; }
.nj-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nj-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nj-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 36px 40px 40px; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); border-top: 3px solid var(--nj-ink); }
.nj-card .wp-block-buttons { margin-top: auto !important; padding-top: 8px; }
.nj-card--dark { background: var(--nj-ink); border-color: var(--nj-ink); border-top-color: var(--nj-red); color: rgb(255 255 255 / .78); }
.nj-card--dark :is(h2, h3) { color: #fff; }
.nj-card--dark .is-style-nj-outline .wp-block-button__link.nj-btn { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .5); }
.nj-card--dark .is-style-nj-outline .wp-block-button__link.nj-btn:hover { background: #fff; color: var(--nj-ink); }
.nj-link-card h3 { text-transform: none; }
.nj-warning { font-size: 14px; font-weight: 600; color: var(--nj-red-700); padding: 12px 16px; border-left: 3px solid var(--nj-red); background: var(--nj-red-50); }
@media (max-width: 1023px) { .nj-cards--3 { grid-template-columns: 1fr 1fr; } .nj-cards--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 781px) { .nj-cards--2, .nj-cards--3 { grid-template-columns: 1fr; } .nj-card { padding: 28px 24px; } }

/* ---------- Embeds (calendar, store, audio course, student forms) ---------- */
.nj-frame { position: relative; overflow: hidden; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); border-top: 3px solid var(--nj-ink); }
.nj-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.nj-frame--calendar { height: 760px; padding: 16px; }
/* Cross-origin embeds cannot report their height: frames are sized to the measured content height of each
   embed per width (2026-11-20), so the page scrolls instead of the frame cutting a row in half. */
.nj-frame--store { height: 3120px; }
.nj-frame--audio { height: 1010px; max-width: 1000px !important; }
.nj-frame--forms { height: 820px; }
@media (max-width: 1023px) { .nj-frame--store { height: 6060px; } }
@media (max-width: 781px) {
	.nj-frame--calendar { height: 640px; padding: 8px; }
	.nj-frame--forms { height: 760px; }
}
@media (max-width: 600px) {
	.nj-frame--store { height: 4720px; }
	.nj-frame--audio { height: 1280px; }
}

/* ---------- Lite YouTube ---------- */
.nj-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.nj-yt { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.nj-yt__play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--nj-r-media); overflow: hidden; background: var(--nj-ink); cursor: pointer; }
.nj-yt__play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s var(--nj-ease), opacity .3s; }
.nj-yt__play:hover img { transform: scale(1.04); opacity: 1; }
.nj-yt__icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: var(--nj-r-btn); background: var(--nj-red-600); }
.nj-yt__icon::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid #fff; border-block: 11px solid transparent; }
.nj-yt__time { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 2px; background: rgb(0 0 0 / .7); color: #fff; font-size: 12px; font-weight: 600; }
.nj-yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--nj-r-media); display: block; }
.nj-yt figcaption { font-family: var(--nj-display); font-size: 18px; font-weight: 500; color: var(--nj-ink); text-transform: capitalize; }

/* ---------- Final exam ---------- */
.nj-badge { display: inline-block; padding: 6px 12px; border-radius: var(--nj-r-btn); background: var(--nj-red-600); color: #fff; font-family: var(--nj-body); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.nj-notice { max-width: 760px !important; padding: 28px 32px; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); border-left: 4px solid var(--nj-red); font-size: 18px; color: var(--nj-ink); }

/* ---------- FAQ page ---------- */
.nj-faq-wrap { display: flex; flex-direction: column; gap: 16px; }
.nj-faq--page { max-width: 960px; }

/* ---------- Syllabus schedules ---------- */
.nj-schedules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nj-schedule { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; padding: 16px; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); border-top: 3px solid var(--nj-ink); }
.nj-schedule__media { border-radius: var(--nj-r-media); overflow: hidden; min-height: 240px; }
.nj-schedule__media .wp-block-image, .nj-schedule__media img { width: 100%; height: 100%; object-fit: cover; }
.nj-schedule__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 16px 16px 0; }
.nj-schedule__when { font-size: 20px !important; line-height: 1.35; }
.nj-schedule__body .wp-block-buttons { margin-top: auto !important; }
@media (max-width: 1100px) { .nj-schedules { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .nj-schedule { grid-template-columns: 1fr; } .nj-schedule__body { padding: 0 8px 8px; } }

/* ---------- Flyers (/blank) ---------- */
.nj-flyers { display: grid; grid-template-columns: 1.33fr 1fr; gap: 16px; align-items: center; }
.nj-flyer { border-radius: var(--nj-r-card); overflow: hidden; background: #fff; border: var(--nj-hair); }
.nj-flyer img { display: block; width: 100%; height: auto; } /* flyers carry text: never crop */
@media (max-width: 781px) { .nj-flyers { grid-template-columns: 1fr; } }
.nj-subscribe { max-width: none !important; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px 48px; padding: 40px; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); border-top: 3px solid var(--nj-red); }
@media (max-width: 781px) { .nj-subscribe { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; } }

/* ---------- Landing page pieces ---------- */
.nj-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border: var(--nj-hair); border-top: var(--nj-rule); border-radius: var(--nj-r-card); }
.nj-stat { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px; border-left: var(--nj-hair); }
.nj-stat:first-child { border-left: 0; }
.nj-stat__value { font-family: var(--nj-display); font-size: 38px; font-weight: 500; letter-spacing: -.02em; line-height: 1; color: var(--nj-ink); font-feature-settings: "lnum"; }
.nj-stat:first-child .nj-stat__value { color: var(--nj-red-600); }
.nj-stat__label { font-size: 14px; }
@media (max-width: 900px) { .nj-stats { grid-template-columns: 1fr 1fr; } .nj-stat:nth-child(odd) { border-left: 0; } .nj-stat:nth-child(n+3) { border-top: var(--nj-hair); } }
@media (max-width: 480px) { .nj-stats { grid-template-columns: 1fr; } .nj-stat { border-left: 0; } .nj-stat + .nj-stat { border-top: var(--nj-hair); } }

.nj-step-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.nj-step-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 0 0; border-top: var(--nj-rule); }
.nj-step-card h3 { font-weight: 500; }
.nj-step-card__num { font-family: var(--nj-display); font-size: 40px; font-weight: 500; line-height: 1; color: var(--nj-red-600); margin-bottom: 8px !important; font-feature-settings: "lnum"; }
@media (max-width: 1024px) { .nj-step-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .nj-step-cards { grid-template-columns: 1fr; gap: 24px; } }

.nj-lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 16px; color: var(--nj-stone); }
.nj-lp-actions.nj-center { justify-content: center; }
.nj-lp-actions a { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: var(--nj-r-btn); text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color .32s var(--nj-ease-io), color .32s; }
.nj-lp-actions a:first-child { background: var(--nj-red-600); color: #fff; }
.nj-lp-actions a:first-child:hover { background: var(--nj-ink); }
.nj-lp-actions a + a, .nj-lp-actions a:only-of-type:not(:first-child) { background: transparent; color: var(--nj-ink); box-shadow: inset 0 0 0 1.5px var(--nj-ink); }
.nj-lp-actions a:not(:first-child):hover { background: var(--nj-ink); color: #fff; }

.nj-rating { display: flex; flex-direction: column; gap: 4px; }
.nj-rating__value { font-family: var(--nj-display); font-size: 60px; font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--nj-ink); }
.nj-rating__value::after { content: ""; display: block; width: 96px; height: 16px; margin-top: 12px; background: #E8A400; -webkit-mask: var(--nj-star) 0 0 / 19.5px 16px repeat-x; mask: var(--nj-star) 0 0 / 19.5px 16px repeat-x; }
.nj-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nj-quote { display: flex; flex-direction: column; gap: 20px; padding: 28px 30px 30px; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); border-top: 3px solid var(--nj-ink); }
.nj-quote::before { content: "\201C" / ""; font-family: var(--nj-display); font-size: 64px; line-height: .6; color: var(--nj-red); height: 28px; }
.nj-quote__text { font-family: var(--nj-display); font-size: 19px; line-height: 1.45; letter-spacing: -.005em; color: var(--nj-ink); font-weight: 400; }
.nj-quote__who { margin-top: auto !important; font-size: 14px; }
@media (max-width: 900px) { .nj-quotes { grid-template-columns: 1fr; } }

/* ---------- Landing hero: photo card, copy, form card ---------- */
.nj-lp-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	grid-template-areas: "copy form" "media form";
	gap: 24px 48px;
	max-width: calc(var(--nj-wide) + 2 * var(--nj-gutter));
	margin: 0 auto;
	padding: 48px var(--nj-gutter) 64px;
	align-items: start;
}
.nj-lp-hero__copy { grid-area: copy; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.nj-lp-hero__media { grid-area: media; border-radius: var(--nj-r-card); overflow: hidden; aspect-ratio: 16 / 9; }
.nj-lp-hero__media .wp-block-image, .nj-lp-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.nj-lp-form { grid-area: form; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; padding: 30px 32px 32px; border-radius: var(--nj-r-card); background: #fff; border: 1.5px solid var(--nj-ink); border-top: 5px solid var(--nj-red); }
.nj-lp-form .fluentform { margin-top: 8px; }
.nj-lp-hero .is-style-nj-check li { color: var(--nj-ink); font-weight: 500; }
.nj-lp-hero .nj-proof { padding-top: 16px; }
.nj-lp-hero .nj-proof strong { font-family: var(--nj-display); font-size: 20px; font-weight: 500; margin-right: 6px; }
@media (max-width: 1100px) { .nj-lp-hero { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 24px 32px; } .nj-lp-hero .nj-display { font-size: 48px !important; line-height: 1.04 !important; } }
@media (max-width: 899px) {
	.nj-lp-hero { grid-template-columns: 1fr; grid-template-areas: "copy" "form" "media"; }
	.nj-lp-form { position: static; padding: 24px 20px; }
}

/* --------------------------------------------------------------------------
   Password lock screen (Student Videos)
   -------------------------------------------------------------------------- */
.nj-locked { padding: 48px var(--nj-frame) calc(var(--nj-section) / 2); }
.nj-locked__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	max-width: 1120px;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--nj-r-card);
	overflow: hidden;
	border: var(--nj-hair);
	border-top: 3px solid var(--nj-ink);
}
.nj-locked__media { position: relative; min-height: 520px; background: var(--nj-ink); }
.nj-locked__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nj-locked__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(21 21 21 / 0) 45%, rgb(21 21 21 / .7)); }
.nj-locked__badge {
	position: absolute; z-index: 1; left: 24px; bottom: 24px;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 16px 10px 10px; border-radius: var(--nj-r-btn);
	background: #fff;
	font-size: 14px; font-weight: 600; color: var(--nj-ink);
}
.nj-locked__icon {
	width: 28px; height: 28px; border-radius: 2px; background: var(--nj-red-600); position: relative;
}
.nj-locked__icon::before {
	content: ""; position: absolute; inset: 6px; background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nj-locked__body { display: flex; flex-direction: column; justify-content: center; padding: 64px 56px; }
.nj-locked__body > * { margin: 0; }
.nj-locked__title { margin-top: 16px; font-size: 48px; line-height: 1.06; letter-spacing: -.02em; }
.nj-locked__lead { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--nj-muted); max-width: 44ch; }
.nj-locked__form { margin-top: 32px; }
.nj-locked__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--nj-ink); }
.nj-locked__row { display: flex; gap: 8px; }
.nj-locked__input {
	flex: 1; min-width: 0; height: 56px; padding: 0 18px;
	font: inherit; font-size: 16px; color: var(--nj-ink);
	background: #fff; border: 1px solid var(--nj-ink); border-radius: var(--nj-r-btn);
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.nj-locked__input:hover { border-color: var(--nj-ink); }
.nj-locked__input:focus { outline: none; background: #fff; border-color: var(--nj-red-600); box-shadow: 0 0 0 3px rgb(230 76 80 / .2); }
.nj-locked__input[aria-invalid="true"] { border-color: var(--nj-red-600); background: #fff; }
.nj-locked__row .nj-btn { min-height: 56px; flex-shrink: 0; border: 0; cursor: pointer; }
.nj-locked__error { margin: 12px 0 0; font-size: 14px; font-weight: 500; color: var(--nj-red-700); }
.nj-locked__help { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--nj-line); font-size: 14px; color: var(--nj-muted); }
.nj-locked__help a { color: var(--nj-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--nj-red); text-underline-offset: 3px; }
@media (max-width: 900px) {
	.nj-locked { padding: 24px var(--nj-gutter) calc(var(--nj-section) / 2); }
	.nj-locked__card { grid-template-columns: minmax(0, 1fr); }
	.nj-locked__media { min-height: 240px; aspect-ratio: 16 / 9; }
	.nj-locked__body { padding: 40px 24px; }
	.nj-locked__title { font-size: 40px; }
}
@media (max-width: 480px) {
	.nj-locked__row { flex-direction: column; }
	.nj-locked__input { flex: none; width: 100%; }
	.nj-locked__row .nj-btn { justify-content: center; width: 100%; }
}

/* LP action rows on phones: one consistent stack (buttons full width, the "Questions first?" text centred) */
@media (max-width: 600px) {
	.nj-lp-actions { flex-direction: column; align-items: stretch; text-align: center; }
	.nj-lp-actions a { justify-content: center; }
}
