/**
 * KMTC landing page (home_view.php) — rebuilt from the approved canvas design.
 * Self-contained kmtc-* classes so the legacy template CSS can't interfere.
 */
:root {
	--k-maroon: #6D1926;
	--k-maroon-dark: #4A0F18;
	--k-maroon-tint: #F6E9EB;
	--k-gold: #F2B904;
	--k-gold-dark: #B8860B;
	--k-cream: #FFF9E5;
	--k-ink: #241416;
	--k-ink-soft: #5B4A4D;
	--k-line: #E7DCD3;
	--k-surface-2: #FBF7F1;
}

.kmtc-container { max-width: 1180px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
.kmtc-section { padding: 96px 0; background: #fff; }
.kmtc-section--tint { background: var(--k-surface-2); }
.kmtc-section h2, .kmtc-section h4, .kmtc-hero-v2 h1, .kmtc-cta h3 { font-family: 'Open Sans', system-ui, sans-serif; letter-spacing: -0.01em; }
.kmtc-section h2 { font-size: 34px; font-weight: 800; color: var(--k-maroon); margin: 10px 0 0; line-height: 1.2; }
.kmtc-section h4 { font-size: 18px; font-weight: 800; color: var(--k-maroon); margin: 0; }
.kmtc-section p { color: var(--k-ink-soft); line-height: 1.6; margin: 0; }

.kmtc-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--k-gold-dark); }
.kmtc-eyebrow--gold { color: var(--k-gold); }

.kmtc-section-head { margin-bottom: 52px; }
.kmtc-section-head--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.kmtc-section-head p { margin-top: 12px; font-size: 15.5px; }

/* Buttons */
.kmtc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 8px; font-size: 16px; font-weight: 700; border: 2px solid transparent; white-space: nowrap; text-decoration: none !important; transition: background .2s, color .2s; cursor: pointer; }
.kmtc-btn--gold { background: var(--k-gold); color: var(--k-maroon-dark) !important; }
.kmtc-btn--gold:hover { background: var(--k-gold-dark); }
.kmtc-btn--ghost-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.kmtc-btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.kmtc-btn--primary { background: var(--k-maroon); color: #fff !important; }
.kmtc-btn--primary:hover { background: var(--k-maroon-dark); }
.kmtc-btn--outline { background: transparent; color: var(--k-maroon) !important; border-color: var(--k-maroon); }
.kmtc-btn--outline:hover { background: var(--k-maroon); color: #fff !important; }
.kmtc-btn--dark { background: var(--k-maroon-dark); color: #fff !important; height: 56px; padding: 0 32px; }
.kmtc-btn--dark:hover { background: #2f080f; }

/* Hero */
.kmtc-hero-v2 { position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; border-bottom: 6px solid var(--k-gold); }
.kmtc-hero-v2__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.kmtc-hero-v2__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36,20,22,.96) 0%, rgba(74,15,24,.93) 34%, rgba(74,15,24,.58) 60%, rgba(74,15,24,.14) 82%); }
.kmtc-hero-v2__inner { position: relative; width: 100%; padding-top: 60px; padding-bottom: 60px; }
.kmtc-hero-v2__content { max-width: 620px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.kmtc-hero-v2 h1 { font-size: 46px; line-height: 1.16; font-weight: 800; color: #fff; margin: 0; }
.kmtc-hero-v2__lead { font-size: 17.5px; line-height: 1.65; color: rgba(255,255,255,.85); max-width: 500px; margin: 0; }
.kmtc-hero-v2__become { font-size: 17px; font-weight: 600; color: #fff; margin: 0; min-height: 28px; }
.kmtc-hero-v2__become #example, .kmtc-hero-v2__become #example .typed { color: var(--k-gold) !important; }
.kmtc-hero-v2__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.kmtc-hero-v2__trust { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); }
.kmtc-hero-v2__trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--k-gold); display: inline-block; }

/* Trust strip */
.kmtc-trust { background: #fff; border-bottom: 1px solid var(--k-line); padding: 26px 0; }
.kmtc-trust__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.kmtc-trust__label { font-size: 13px; font-weight: 700; color: var(--k-ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.kmtc-trust__logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; opacity: .85; }
.kmtc-trust__logos img { height: 40px; width: auto; }

/* Steps */
.kmtc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.kmtc-steps::before { content: ''; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 2px; background: var(--k-line); }
.kmtc-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.kmtc-step__num { width: 56px; height: 56px; border-radius: 50%; background: var(--k-maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; border: 6px solid var(--k-surface-2); box-sizing: content-box; width: 44px; height: 44px; }
.kmtc-step h4 { font-size: 17px; }
.kmtc-step p { font-size: 14.5px; }

/* Features */
.kmtc-feature-head { display: flex; align-items: center; gap: 56px; margin-bottom: 64px; }
.kmtc-feature-head__photo { flex: 0 0 42%; width: 42%; max-width: 440px; height: 280px; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 40px rgba(74,15,24,.12); }
.kmtc-feature-head p { margin-top: 16px; max-width: 460px; font-size: 15.5px; }

/* Cards */
.kmtc-cards { display: grid; gap: 28px; }
.kmtc-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kmtc-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kmtc-card { background: #fff; border: 1px solid var(--k-line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-decoration: none !important; }
.kmtc-cards--4 .kmtc-card { padding: 28px; }
.kmtc-card p { font-size: 14.5px; flex-grow: 1; }
.kmtc-cards--4 .kmtc-card h4 { font-size: 16.5px; }
.kmtc-cards--4 .kmtc-card p { font-size: 14px; }
.kmtc-card--link:hover { border-color: var(--k-maroon); box-shadow: 0 12px 30px rgba(74,15,24,.10); }
.kmtc-icon-tile { width: 46px; height: 46px; border-radius: 10px; background: var(--k-maroon-tint); color: var(--k-maroon); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.kmtc-icon-tile--solid { width: 52px; height: 52px; border-radius: 12px; background: var(--k-maroon); color: #fff; font-size: 20px; }
.kmtc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--k-maroon); }

/* Impact band */
.kmtc-impact { background: var(--k-maroon); border-top: 4px solid var(--k-gold); padding: 56px 0; }
.kmtc-impact__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kmtc-impact__grid > div { display: flex; flex-direction: column; align-items: center; gap: 6px; border-right: 1px solid rgba(255,255,255,.18); }
.kmtc-impact__grid > div:last-child { border-right: 0; }
.kmtc-impact__grid strong { font-size: 38px; font-weight: 800; color: #fff; line-height: 1.2; }
.kmtc-impact__grid em { font-style: normal; color: var(--k-gold); }
.kmtc-impact__grid span { font-size: 14px; color: #F1D9DD; font-weight: 600; }

/* Pricing */
.kmtc-pricing-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 28px; margin-bottom: 44px; background: var(--k-surface-2); border: 1px dashed var(--k-line); border-radius: 14px; }
.kmtc-pricing-filter label { display: block; font-size: 13px; font-weight: 700; color: var(--k-ink-soft); margin: 0 0 8px; }
.kmtc-select { width: 100%; height: 46px; border-radius: 8px; border: 1px solid var(--k-line); background: #fff; padding: 0 14px; font-size: 14.5px; color: var(--k-ink); }
.kmtc-cards--pricing { align-items: stretch; }
.kmtc-price { height: 100%; box-sizing: border-box; position: relative; background: #fff; border: 1px solid var(--k-line); border-radius: 14px; padding: 42px 30px 36px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.kmtc-price h4 { font-size: 19px; color: var(--k-gold-dark) !important; min-height: 2.6em; display: flex; align-items: center; justify-content: center; text-align: center; }
.kmtc-price__amt { margin: 10px 0 4px; display: flex; align-items: flex-start; gap: 4px; }
.kmtc-price__amt small { font-size: 14px; color: var(--k-ink-soft); margin-top: 8px; }
.kmtc-price__amt span { font-size: 44px; font-weight: 800; color: var(--k-maroon); line-height: 1.1; }
.kmtc-price__per { font-size: 13.5px; color: var(--k-ink-soft); margin-bottom: 20px; }
.kmtc-price p { font-size: 14px; margin-bottom: 26px; flex-grow: 1; }
.kmtc-price .kmtc-btn { width: 100%; }
.kmtc-price--rec { border: 2px solid var(--k-maroon); box-shadow: 0 20px 40px rgba(109,25,38,.14); }
.kmtc-price--rec h4 { color: var(--k-maroon) !important; }
.kmtc-price__badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--k-gold); color: var(--k-maroon-dark); font-size: 12.5px; font-weight: 800; padding: 7px 18px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }

/* CTA */
.kmtc-cta { background: var(--k-gold); padding: 56px 0; }
.kmtc-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kmtc-cta h3 { font-size: 26px; font-weight: 800; color: var(--k-maroon-dark); max-width: 560px; margin: 0; }

/* Header: maroon utility bar, wordmark, Join Free */
.main-header-wrapper .topbar-one { background: var(--k-maroon) !important; }
.main-header-wrapper .topbar-one p, .main-header-wrapper .topbar-one p i { color: #F1D9DD !important; }
.main-header-wrapper .topbar-one .thm-btn, .main-header-wrapper .topbar-one__right .thm-btn { background: #fff !important; color: var(--k-maroon) !important; }
.main-header-wrapper .topbar-one .search-btn a, .main-header-wrapper .topbar-one__right .search-btn a { background: rgba(255,255,255,.14) !important; color: #fff !important; }
.kmtc-wordmark { display: flex; flex-direction: column; line-height: 1.15; margin-left: 14px; }
.kmtc-wordmark strong { font-size: 18px; font-weight: 800; color: var(--k-maroon); }
.kmtc-wordmark span { font-size: 12px; font-weight: 600; color: var(--k-ink-soft); letter-spacing: .03em; }
.site-header-one__logo .moto { display: inline-flex !important; align-items: center !important; }
.main-nav__navigation-box .kmtc-join-btn { background: var(--k-maroon) !important; color: #fff !important; }

@media (min-width: 1200px) {
	.main-nav__navigation-box > li > a { white-space: nowrap; }
	.main-nav__navigation-box > li { margin-left: 18px !important; }
	.main-nav__navigation-box > li:first-child { margin-left: 0 !important; }
}


/* ===== Navbar redesign: flat white bar, gold rule, clean links, outline/solid buttons ===== */
.site-header-one.site-header-two,
.site-header-one.site-header-two.stricked-menu,
.site-header-one.site-header-two.stricky-fixed {
	background: #fff !important;
	border-bottom: 3px solid var(--k-gold) !important;
	box-shadow: 0 8px 24px rgba(74, 15, 24, .07) !important;
}
.site-header-one.site-header-two .inner-container,
.site-header-one.site-header-two.stricked-menu .inner-container {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 80px;
}
.site-header-one.site-header-two .inner-container::before { display: none !important; }
.site-header-one.site-header-two > .container { max-width: 1240px; }

.site-header-one .main-nav__main-navigation .main-nav__navigation-box { gap: 2px; }
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li {
	padding: 20px 0 !important;
	margin-left: 0 !important;
}
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li::before,
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li::after { display: none !important; }

.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li > a {
	padding: 9px 14px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--k-ink) !important;
	transition: background .2s, color .2s;
}
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li:hover > a,
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li.current > a {
	background: var(--k-maroon-tint);
	color: var(--k-maroon) !important;
}

/* Login (outline) and Join Free (solid) */
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li > a.thm-btn {
	padding: 8px 20px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 700;
	background: transparent !important;
	color: var(--k-maroon) !important;
	border: 2px solid var(--k-maroon);
	box-shadow: none !important;
}
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li:hover > a.thm-btn {
	background: var(--k-maroon) !important;
	color: #fff !important;
}
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li > a.kmtc-join-btn {
	background: var(--k-maroon) !important;
	color: #fff !important;
}
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li:hover > a.kmtc-join-btn {
	background: var(--k-maroon-dark) !important;
	border-color: var(--k-maroon-dark);
}
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li:has(> a.kmtc-join-btn) { margin-left: 16px !important; }
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li:has(> a.kmtc-join-btn) + li { margin-left: 10px !important; }

/* Dropdown panels */
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li > ul {
	background: #fff;
	border: 0 !important;
	border-top: 3px solid var(--k-maroon) !important;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 18px 40px rgba(74, 15, 24, .14);
	padding: 8px;
	min-width: 230px;
}
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li ul > li + li { border: 0; }
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li ul > li > a {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--k-ink) !important;
	background: transparent;
}
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li ul > li:hover > a,
.site-header-one .main-nav__main-navigation .main-nav__navigation-box > li ul > li > a:hover {
	background: var(--k-maroon-tint) !important;
	color: var(--k-maroon) !important;
}

@media (max-width: 1199px) {
	.site-header-one.site-header-two .inner-container { min-height: 68px; }
}

/* Responsive */
@media (max-width: 991px) {
	.kmtc-container { padding: 0 24px; }
	.kmtc-section { padding: 64px 0; }
	.kmtc-cards--3, .kmtc-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kmtc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kmtc-steps::before { display: none; }
	.kmtc-feature-head { flex-direction: column; align-items: flex-start; gap: 28px; }
	.kmtc-feature-head__photo { width: 100%; flex-basis: auto; max-width: 100%; height: 240px; }
	.kmtc-impact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
	.kmtc-impact__grid > div:nth-child(2) { border-right: 0; }
	.kmtc-hero-v2 h1 { font-size: 36px; }
}
@media (max-width: 575px) {
	.kmtc-cards--3, .kmtc-cards--4, .kmtc-steps, .kmtc-pricing-filter { grid-template-columns: 1fr; }
	.kmtc-hero-v2 h1 { font-size: 30px; }
	.kmtc-hero-v2__actions .kmtc-btn { width: 100%; }
	.kmtc-hero-v2 { min-height: 0; }
	.kmtc-trust__inner { flex-direction: column; align-items: flex-start; }
	.kmtc-section h2 { font-size: 28px; }
	.kmtc-cta .kmtc-btn { width: 100%; }
	.kmtc-impact__grid strong { font-size: 30px; }
}

/* ===== Login (student / parent / tutor) ===== */
.kmtc-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 140px); background: var(--k-surface-2); }
.kmtc-auth__aside { position: relative; overflow: hidden; display: flex; align-items: center; }
.kmtc-auth__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.kmtc-auth__scrim { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(36,20,22,.94) 0%, rgba(74,15,24,.88) 55%, rgba(74,15,24,.55) 100%); }
.kmtc-auth__aside-inner { position: relative; padding: 64px; max-width: 560px; color: #fff; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.kmtc-auth__aside h2 { font-family: 'Open Sans', system-ui, sans-serif; font-size: 38px; line-height: 1.2; font-weight: 800; color: #fff; margin: 0; }
.kmtc-auth__points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.kmtc-auth__points li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.88); }
.kmtc-auth__points i { color: var(--k-gold); margin-top: 4px; width: 18px; text-align: center; }

.kmtc-auth__panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.kmtc-auth__card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--k-line); border-radius: 18px; padding: 40px; box-shadow: 0 24px 60px rgba(74,15,24,.10); }
.kmtc-auth__form h1 { font-family: 'Open Sans', system-ui, sans-serif; font-size: 28px; font-weight: 800; color: var(--k-maroon); margin: 0; }
.kmtc-auth__sub { color: var(--k-ink-soft); font-size: 14.5px; margin: 6px 0 26px; }
.kmtc-field { display: block; margin-bottom: 18px; }
.kmtc-field > span:first-child { display: block; font-size: 13px; font-weight: 700; color: var(--k-ink-soft); margin-bottom: 8px; }
.kmtc-field input { width: 100%; height: 50px; border-radius: 10px; border: 1px solid var(--k-line); background: #fff; padding: 0 16px; font-size: 15px; color: var(--k-ink); box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.kmtc-field input:focus { outline: none; border-color: var(--k-maroon); box-shadow: 0 0 0 4px rgba(109,25,38,.12); }
.kmtc-field__pw { position: relative; display: block; }
.kmtc-field__pw input { padding-right: 48px; }
.kmtc-field__toggle { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--k-ink-soft); border-radius: 8px; cursor: pointer; }
.kmtc-field__toggle:hover { background: var(--k-maroon-tint); color: var(--k-maroon); }
.kmtc-auth__row { display: flex; justify-content: flex-end; margin: -6px 0 22px; }
.kmtc-auth__link, .kmtc-auth__alt a { color: var(--k-maroon) !important; font-weight: 700; font-size: 14px; }
.kmtc-auth__link:hover, .kmtc-auth__alt a:hover { text-decoration: underline !important; }
.kmtc-auth__submit { width: 100%; }
.kmtc-auth__alt { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--k-ink-soft); }
.kmtc-auth .alert { border-radius: 10px; font-size: 14px; margin-bottom: 20px; }

@media (max-width: 991px) {
	.kmtc-auth { grid-template-columns: 1fr; }
	.kmtc-auth__aside { min-height: 0; }
	.kmtc-auth__aside-inner { padding: 40px 24px; }
	.kmtc-auth__aside h2 { font-size: 28px; }
	.kmtc-auth__points { display: none; }
	.kmtc-auth__card { padding: 28px 22px; }
}

/* =====================================================================
   Quiz / exam flow: subject → topic → setup (shared)
   ===================================================================== */
.kf-head { background: var(--k-cream); border-bottom: 1px solid var(--k-line); padding: 36px 0 34px; }
.kf-head h1 { font-family: 'Open Sans', system-ui, sans-serif; font-size: 34px; font-weight: 800; color: var(--k-maroon); margin: 8px 0 8px; letter-spacing: -.01em; line-height: 1.2; }
.kf-head p { color: var(--k-ink-soft); font-size: 15.5px; margin: 0; max-width: 620px; }
.kf-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kf-crumbs a, .kf-crumbs span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--k-line); font-size: 13px; font-weight: 600; color: var(--k-ink-soft) !important; }
.kf-crumbs a:hover { border-color: var(--k-maroon); color: var(--k-maroon) !important; }
.kf-crumbs b { color: var(--k-ink); font-weight: 700; }

.kf-steps { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; padding: 0; margin: 0 0 22px; }
.kf-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--k-ink-soft); padding: 5px 14px 5px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--k-line); }
.kf-steps li span { width: 22px; height: 22px; border-radius: 50%; background: #F0E9E4; color: var(--k-ink-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.kf-steps li.is-active { border-color: var(--k-maroon); color: var(--k-maroon); }
.kf-steps li.is-active span { background: var(--k-maroon); color: #fff; }
.kf-steps li.is-done span { background: #2E7D32; color: #fff; }
.kf-steps li.is-done { color: var(--k-ink); }

.kf-body { background: var(--k-surface-2); padding: 36px 0 72px; min-height: 420px; }
.kf-body label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--k-ink-soft); margin: 0 0 8px; display: block; }

.kf-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: #fff; border: 1px solid var(--k-line); border-radius: 16px; padding: 20px 22px; margin-bottom: 28px; box-shadow: 0 1px 2px rgba(74,15,24,.04), 0 10px 28px rgba(74,15,24,.04); }
.kf-filters small { display: block; margin-top: 6px; font-size: 12.5px; color: #8a7a7d; }
.kf-body select, .kf-body .form-select, .kf-body input[type=text].form-control { width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--k-line) !important; background: #fff; padding: 0 14px; font-size: 15px; color: var(--k-ink); font-family: inherit; }
.kf-body select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236D1926' stroke-width='2' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.kf-body select:focus, .kf-body input.form-control:focus { outline: none; border-color: var(--k-maroon) !important; box-shadow: 0 0 0 4px rgba(109,25,38,.12); }
.kf-body select:disabled { background-color: #FBF7F1; color: var(--k-ink-soft); cursor: not-allowed; }

.kf-resume { display: flex; align-items: center; gap: 16px; background: var(--k-maroon-dark); color: #fff; border-radius: 16px; padding: 18px 22px; margin-bottom: 20px; flex-wrap: wrap; }
.kf-resume__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); color: var(--k-gold); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.kf-resume__text { flex: 1; min-width: 200px; display: flex; flex-direction: column; line-height: 1.35; }
.kf-resume__text strong { font-size: 16px; color: #fff !important; }
.kf-resume__text span { font-size: 13.5px; color: rgba(255,255,255,.72); }
.kf-resume .kmtc-btn { background: var(--k-gold); color: var(--k-maroon-dark) !important; height: 46px; }

/* Subject cards */
#subjects.row { margin-left: -8px; margin-right: -8px; }
#subjects > [class*="col-"] { padding: 0 8px; margin-bottom: 16px; }
.ks-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--k-line); border-radius: 16px; overflow: hidden; position: relative; text-decoration: none !important; transition: transform .18s, box-shadow .18s, border-color .18s; box-shadow: 0 1px 2px rgba(74,15,24,.04); }
.ks-card:hover { transform: translateY(-3px); border-color: var(--k-maroon); box-shadow: 0 16px 36px rgba(74,15,24,.12); }
.ks-card__img { display: block; height: 130px; background-size: cover; background-position: center; background-color: #F6E9EB; }
.ks-card__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.ks-card__body strong { font-size: 15.5px; font-weight: 800; color: var(--k-maroon); line-height: 1.3; }
.ks-card__body small { font-size: 12.5px; color: #8a7a7d; font-weight: 600; }
.ks-card__go { position: absolute; right: 12px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; background: #F6E9EB; color: var(--k-maroon); display: flex; align-items: center; justify-content: center; font-size: 12px; transition: background .18s, color .18s; }
.ks-card:hover .ks-card__go { background: var(--k-maroon); color: #fff; }
.ks-skel { height: 100%; min-height: 210px; background: #fff; border: 1px solid var(--k-line); border-radius: 16px; overflow: hidden; }
.ks-skel span { display: block; height: 130px; background: linear-gradient(90deg, #F3ECE6 25%, #FAF6F2 50%, #F3ECE6 75%); background-size: 200% 100%; animation: ksShimmer 1.3s infinite; }
.ks-skel i { display: block; height: 12px; margin: 14px 16px 0; border-radius: 6px; background: #F3ECE6; }
.ks-skel i + i { width: 40%; margin-top: 10px; }
@keyframes ksShimmer { to { background-position: -200% 0; } }
.ks-empty { background: #fff; border: 1px dashed var(--k-line); border-radius: 16px; padding: 40px 20px; }

@media (max-width: 767px) {
	.kf-head { padding: 26px 0 24px; }
	.kf-head h1 { font-size: 26px; }
	.kf-head p { font-size: 14.5px; }
	.kf-filters { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
	.ks-card__img { height: 96px; }
	.ks-card__body { padding: 12px 12px 14px; }
	.ks-card__go { display: none; }
	.kf-steps li { font-size: 12px; padding-right: 10px; }
	.kf-resume .kmtc-btn { width: 100%; }
	.kf-body { padding: 24px 0 56px; }
}

/* Topics */
.ks-card__body strong { font-family: 'Open Sans', system-ui, sans-serif; }
.kt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.kt-search { position: relative; flex: 1; min-width: 240px; max-width: 460px; }
.kt-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8a7a7d; pointer-events: none; }
.kt-search input { padding-left: 42px !important; }
.kt-count { font-size: 13.5px; font-weight: 700; color: #8a7a7d; }
.kt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kt-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--k-line); border-radius: 14px; text-decoration: none !important; color: var(--k-ink) !important; transition: border-color .18s, box-shadow .18s, transform .18s; }
.kt-item:hover { border-color: var(--k-maroon); box-shadow: 0 10px 26px rgba(74,15,24,.10); transform: translateY(-1px); }
.kt-item__num { width: 34px; height: 34px; border-radius: 10px; background: #F6E9EB; color: var(--k-maroon); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kt-item__name { flex: 1; font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.kt-item > i { color: #C9BCBE; font-size: 12px; transition: color .18s, transform .18s; }
.kt-item:hover > i { color: var(--k-maroon); transform: translateX(3px); }
@media (max-width: 767px) { .kt-list { grid-template-columns: 1fr; } .kt-search { max-width: none; } .kt-item { padding: 12px 14px; } }

/* Quiz setup */
.ko-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ko-card { background: #fff; border: 1px solid var(--k-line); border-radius: 16px; padding: 24px 26px; box-shadow: 0 1px 2px rgba(74,15,24,.04), 0 10px 28px rgba(74,15,24,.04); margin-bottom: 20px; }
.ko-card h2 { font-family: 'Open Sans', system-ui, sans-serif; font-size: 17px; font-weight: 800; color: var(--k-ink); margin: 0 0 18px; }
.ko-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ko-fields--more { margin-top: 18px; }
.ko-field small { display: block; margin-top: 6px; font-size: 12.5px; color: #8a7a7d; }
.ko-field select[multiple] { height: 132px; padding: 8px; background-image: none; }
.ko-more { padding: 0; overflow: hidden; }
.ko-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 26px; }
.ko-more summary::-webkit-details-marker { display: none; }
.ko-more summary span { font-size: 15px; font-weight: 800; color: var(--k-ink); }
.ko-more summary small { flex: 1; font-size: 13px; color: #8a7a7d; }
.ko-more summary i { color: var(--k-maroon); transition: transform .2s; }
.ko-more[open] summary i { transform: rotate(180deg); }
.ko-more .ko-fields { padding: 0 26px 24px; margin: 0; }
.ko-summary { position: sticky; top: 100px; margin-bottom: 0; }
.ko-summary dl { margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.ko-summary dt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a7a7d; }
.ko-summary dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--k-ink); }
.ko-start { width: 100%; }
.ko-start i { margin-left: 4px; }
.ko-change { display: block; text-align: center; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--k-maroon) !important; }
#teacher-table { width: 100%; margin-top: 10px; }
@media (max-width: 991px) { .ko-grid { grid-template-columns: 1fr; } .ko-summary { position: static; } }
@media (max-width: 575px) { .ko-fields { grid-template-columns: 1fr; } .ko-card { padding: 20px 18px; } .ko-more summary { padding: 16px 18px; flex-wrap: wrap; } .ko-more summary small { order: 3; flex-basis: 100%; } .ko-more .ko-fields { padding: 0 18px 20px; } }

/* =====================================================================
   The quiz itself
   ===================================================================== */
.kq-section { background: var(--k-surface-2); padding: 28px 0 72px; }
.kq-topbar { background: #fff; border: 1px solid var(--k-line); border-radius: 16px; padding: 16px 20px 14px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(74,15,24,.04), 0 10px 28px rgba(74,15,24,.04); }
.kq-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kq-topbar__title { display: flex; flex-direction: column; line-height: 1.25; }
.kq-topbar__title span { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--k-gold-dark); }
.kq-topbar__title strong { font-size: 18px; font-weight: 800; color: var(--k-maroon); }
.kq-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.kq-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--k-surface-2); border: 1px solid var(--k-line); font-size: 13px; font-weight: 700; color: var(--k-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kq-pill i { color: var(--k-maroon); }
.kq-pill--warn { background: #FFF3C4; border-color: #F2D77A; color: #7A5A00; }
.kq-pill--warn i { color: #B8860B; }
.kq-pill--count { background: var(--k-maroon); border-color: var(--k-maroon); color: #fff; }
.kq-pill--count i { color: var(--k-gold); }
.kq-progress { height: 6px; border-radius: 999px; background: #F0E9E4; margin-top: 14px; overflow: hidden; }
.kq-progress__bar { height: 100%; background: var(--k-maroon); border-radius: 999px; transition: width .35s ease; }
.kq-sub { display: block; margin-top: 8px; color: #8a7a7d; font-size: 12.5px; }

.kq-main .content { padding: 0; }
.kq-card { background: #fff; border: 1px solid var(--k-line); border-radius: 18px; padding: 28px 30px 26px; box-shadow: 0 1px 2px rgba(74,15,24,.04), 0 10px 28px rgba(74,15,24,.04); }
.kq-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.kq-qnum { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a7a7d; }
.kq-tag { font-size: 12px; font-weight: 700; color: var(--k-maroon); background: #F6E9EB; border-radius: 999px; padding: 4px 12px; }
.kq-question { font-size: 19px; line-height: 1.6; font-weight: 600; color: var(--k-ink); }
.kq-question p { margin: 0 0 .6em; }
.kq-figure { margin: 16px 0 4px; }
.kq-figure img { max-width: 100%; max-height: 360px; border-radius: 12px; }
.kq-desc { color: var(--k-ink-soft); margin: 12px 0 0; }
.kq-hint { font-size: 12.5px; font-weight: 700; color: #8a7a7d; letter-spacing: .04em; text-transform: uppercase; margin: 22px 0 10px; }

.kq-options { display: grid; gap: 10px; }
.kq-option { position: relative; margin: 0; }
.kq-option input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; z-index: 2; }
.kq-option label { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; min-height: 58px; border: 1.5px solid var(--k-line); border-radius: 14px; background: #fff; font-size: 16px; font-weight: 600; color: var(--k-ink); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.kq-option:hover label { border-color: #D8C6C9; background: #FDFBF9; }
.kq-option__letter { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: #F6E9EB; color: var(--k-maroon); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; transition: background .15s, color .15s; }
.kq-option__text { flex: 1; line-height: 1.45; }
.kq-option__img { max-height: 64px; border-radius: 8px; margin-left: auto; }
.kq-option input:checked + label { border-color: var(--k-maroon); background: #FBF3F4; box-shadow: 0 0 0 3px rgba(109,25,38,.12); }
.kq-option input:checked + label .kq-option__letter { background: var(--k-maroon); color: #fff; }
.kq-option input:focus-visible + label { box-shadow: 0 0 0 3px rgba(242,185,4,.55); }

.kq-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.kq-actions__next { margin-left: auto; display: block; }
.kq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 12px; font-size: 15px; font-weight: 700; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: background .18s, color .18s, border-color .18s; }
.kq-btn--ghost { background: #fff; border-color: var(--k-line); color: var(--k-ink); }
.kq-btn--ghost:hover { border-color: var(--k-maroon); color: var(--k-maroon); }
.kq-btn--primary { background: var(--k-maroon); color: #fff; }
.kq-btn--primary:hover { background: var(--k-maroon-dark); }
.kq-by { margin: 14px 2px 0; font-size: 12.5px; color: #8a7a7d; }

/* Reading-passage questions inherit the same surface */
.kq-main .passage-card { border-radius: 14px; }
.kq-main .blank-choice { border-radius: 12px; }

@media (max-width: 767px) {
	.kq-section { padding: 16px 0 40px; }
	.kq-topbar { padding: 14px 14px 12px; border-radius: 14px; margin-bottom: 14px; }
	.kq-topbar__title strong { font-size: 16px; }
	.kq-pill { font-size: 12px; padding: 6px 10px; }
	.kq-card { padding: 20px 16px 18px; border-radius: 16px; }
	.kq-question { font-size: 17px; }
	.kq-option label { padding: 12px 12px; min-height: 56px; font-size: 15.5px; }
	.kq-actions { position: sticky; bottom: 0; margin: 16px -16px -18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--k-line); border-radius: 0 0 16px 16px; z-index: 30; backdrop-filter: blur(6px); }
	.kq-actions .kq-btn { height: 52px; padding: 0 18px; }
	.kq-actions__next { flex: 1; }
	.kq-actions__next .kq-btn { width: 100%; }
	.kq-btn--ghost span { display: none; }
}

/* Popups on marketing/flow pages (finish quiz, not enough questions) */
.modal-backdrop.show { opacity: .55; background: #241416; }
.modal-content { border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(36,20,22,.28); overflow: hidden; }
.modal-header { border-bottom: 1px solid #F3ECE6; padding: 18px 24px; background: #fff; }
.modal-title { font-family: 'Open Sans', system-ui, sans-serif; font-size: 18px; font-weight: 800; color: var(--k-maroon); }
.modal-header .close { opacity: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--k-surface-2); color: var(--k-ink-soft); font-size: 20px; line-height: 1; padding: 0; margin: 0; text-shadow: none; }
.modal-body { padding: 22px 24px; color: var(--k-ink-soft); }
.modal-footer { border-top: 1px solid #F3ECE6; padding: 14px 24px; gap: 10px; background: #FDFBF9; }
.modal-footer .btn { border-radius: 10px; font-weight: 700; padding: 10px 20px; }
.modal-footer .btn-primary, .modal-footer .btn-success { background: var(--k-maroon) !important; border-color: var(--k-maroon) !important; color: #fff !important; }
.modal-footer .btn-secondary, .modal-footer .btn-default { background: #fff !important; border: 1px solid var(--k-line) !important; color: var(--k-ink) !important; }

/* Quiz: neutralise the template's custom-checkbox styling and container gutters */
.kq-options .kq-option label { display: flex !important; align-items: center; padding: 14px 16px !important; }
.kq-options .kq-option label::before, .kq-options .kq-option label::after { display: none !important; content: none !important; }
.kq-options .kq-option input.confirm-switch { opacity: 0 !important; position: absolute !important; }
.kq-section .row { margin-left: 0; margin-right: 0; }
.kq-main, .kq-main .content, .kq-main .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
@media (max-width: 767px) { .kq-options .kq-option label { padding: 12px 12px !important; } }
.modal-content .modal-header .modal-title { color: var(--k-maroon) !important; font-size: 18px; margin: 0; }
.modal-content .modal-header { background: #fff !important; }
.modal-content .modal-body p { margin: 0; font-size: 15.5px; line-height: 1.6; }

/* ===== Flow pages: CTA + footer ===== */
.kx-cta { background: var(--k-cream); border-top: 1px solid #F0E3B8; padding: 44px 0; }
.kx-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.kx-cta h3 { font-size: 26px; font-weight: 800; color: var(--k-maroon); margin: 6px 0 8px; line-height: 1.25; }
.kx-cta p { margin: 0; color: var(--k-ink-soft); font-size: 15px; max-width: 520px; }
.kx-cta .kmtc-btn { background: var(--k-maroon); color: #fff !important; flex-shrink: 0; }
.kx-cta .kmtc-btn:hover { background: var(--k-maroon-dark); }
.kx-foot { background: var(--k-maroon-dark); color: rgba(255,255,255,.78); font-size: 14.5px; }
.kx-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.kx-foot__brand img { height: 72px; width: auto; display: block; margin-bottom: 18px; background: #fff; border-radius: 12px; padding: 6px; }
.kx-foot__brand p { line-height: 1.7; max-width: 340px; margin: 0 0 20px; }
.kx-foot__social { display: flex; gap: 10px; }
.kx-foot__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff !important; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.kx-foot__social a:hover { background: var(--k-gold); color: var(--k-maroon-dark) !important; }
.kx-foot__col h4 { color: var(--k-gold) !important; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin: 4px 0 18px; }
.kx-foot__col a { display: block; color: rgba(255,255,255,.82) !important; padding: 6px 0; transition: color .2s, transform .2s; }
.kx-foot__col a:hover { color: #fff !important; transform: translateX(3px); }
.kx-foot__news p { margin: 0 0 14px; }
.kx-foot .mc-form { display: flex; position: relative; margin: 0; }
.kx-foot .mc-form input { flex: 1; min-width: 0; height: 46px; border: 0; border-radius: 10px 0 0 10px; padding: 0 14px; font-size: 14px; background: #fff; color: var(--k-ink); }
.kx-foot .mc-form button { position: static; width: 48px; height: 46px; border: 0; border-radius: 0 10px 10px 0; background: var(--k-gold); color: var(--k-maroon-dark); cursor: pointer; }
.kx-foot__bar { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; }
.kx-foot__bar .kmtc-container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kx-foot__bar a { color: rgba(255,255,255,.82) !important; margin-left: 20px; }
.kx-foot__bar a:hover { color: var(--k-gold) !important; }
@media (max-width: 991px) { .kx-foot__grid { grid-template-columns: 1fr 1fr; gap: 36px; } .kx-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 575px) {
	.kx-cta { padding: 32px 0; } .kx-cta h3 { font-size: 21px; } .kx-cta .kmtc-btn { width: 100%; }
	.kx-foot__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 44px; }
	.kx-foot__news { grid-column: 1 / -1; }
	.kx-foot__bar a:first-child { margin-left: 0; }
}
.kx-foot .mc-form button { position: static !important; width: 48px !important; height: 46px !important; background: var(--k-gold) !important; color: var(--k-maroon-dark) !important; border-radius: 0 10px 10px 0 !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kx-foot .mc-form input { height: 46px !important; box-shadow: none !important; }
.kx-foot .mc-form button { transform: none !important; top: auto !important; right: auto !important; }

/* ===== Inner marketing pages (about, learners, faqs, videos, contact) ===== */
.kmtc-btn--ghost { background: transparent; color: var(--k-maroon) !important; border-color: var(--k-maroon); }
.kmtc-btn--ghost:hover { background: var(--k-maroon-tint); }
.kp-hero { position: relative; background-size: cover; background-position: center; padding: 72px 0 68px; color: #fff; isolation: isolate; }
.kp-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(74,15,24,.94) 0%, rgba(74,15,24,.82) 55%, rgba(74,15,24,.6) 100%); z-index: -1; }
.kp-hero h1 { font-size: 44px; font-weight: 800; color: #fff !important; margin: 10px 0 12px; letter-spacing: -.01em; line-height: 1.15; }
.kp-hero p { font-size: 17px; color: rgba(255,255,255,.85); max-width: 600px; margin: 0; line-height: 1.6; }
.kp-crumbs { font-size: 13.5px; margin-bottom: 22px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 10px; }
.kp-crumbs a { color: #fff !important; opacity: .85; } .kp-crumbs a:hover { opacity: 1; }
.kp-section { padding: 84px 0; background: #fff; }
.kp-section--tint { background: var(--k-surface-2); }
.kp-band { background: var(--k-maroon-dark); color: #fff; }
.kp-band h2, .kp-band .kp-head p { color: #fff !important; }
.kp-head { margin-bottom: 36px; max-width: 640px; }
.kp-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kp-head h2, .kp-split__text h2, .kp-contact__form h2 { font-size: 32px; font-weight: 800; color: var(--k-maroon); margin: 8px 0 14px; line-height: 1.25; letter-spacing: -.01em; }
.kp-head p, .kp-split__text p { color: var(--k-ink-soft); font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.kp-center { text-align: center; margin-top: 44px; }
.kp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.kp-split__media { position: relative; }
.kp-split__media img { width: 100%; height: 440px; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 48px rgba(74,15,24,.14); display: block; }
.kp-badge { position: absolute; left: -18px; bottom: 28px; background: var(--k-gold); color: var(--k-maroon-dark); border-radius: 14px; padding: 14px 20px; display: flex; flex-direction: column; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.kp-badge strong { font-size: 16px; font-weight: 800; } .kp-badge span { font-size: 13px; font-weight: 600; }
.kp-checks { list-style: none; padding: 0; margin: 18px 0 0; }
.kp-checks li { position: relative; padding: 8px 0 8px 34px; color: var(--k-ink); font-size: 15.5px; line-height: 1.55; }
.kp-checks li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--k-maroon-tint); color: var(--k-maroon); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.kp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.kp-cards { display: grid; gap: 24px; }
.kp-cards--2 { grid-template-columns: repeat(2, 1fr); }
.kp-cards--3 { grid-template-columns: repeat(3, 1fr); }
.kp-card { background: #fff; border: 1px solid var(--k-line); border-radius: 16px; padding: 30px; box-shadow: 0 6px 18px rgba(74,15,24,.05); }
.kp-card h3 { font-size: 20px; font-weight: 800; color: var(--k-maroon); margin: 16px 0 8px; }
.kp-card p { color: var(--k-ink-soft); margin: 0; line-height: 1.7; font-size: 15.5px; }
.kp-card a { color: var(--k-maroon); font-weight: 700; word-break: break-word; }
.kp-card__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--k-maroon-tint); color: var(--k-maroon); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.kp-values { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kp-values li { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 20px 22px; font-size: 17px; font-weight: 700; }
.kp-values i { width: 42px; height: 42px; border-radius: 12px; background: var(--k-gold); color: var(--k-maroon-dark); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.kp-faq { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.kp-acc { background: #fff; border: 1px solid var(--k-line); border-radius: 14px; margin-bottom: 12px; transition: box-shadow .2s, border-color .2s; }
.kp-acc[open] { border-color: var(--k-maroon); box-shadow: 0 8px 22px rgba(74,15,24,.08); }
.kp-acc summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16.5px; font-weight: 700; color: var(--k-ink); }
.kp-acc summary::-webkit-details-marker { display: none; }
.kp-acc summary i { color: var(--k-maroon); font-size: 14px; flex-shrink: 0; transition: transform .2s; }
.kp-acc[open] summary i { transform: rotate(45deg); }
.kp-acc__body { padding: 0 24px 22px; color: var(--k-ink-soft); line-height: 1.75; font-size: 15.5px; }
.kp-faq__aside { position: sticky; top: 110px; }
.kp-faq__aside .kmtc-btn { margin-top: 20px; }
.kp-empty { color: var(--k-ink-soft); background: var(--k-surface-2); border: 1px dashed var(--k-line); border-radius: 14px; padding: 36px; text-align: center; }
.kp-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.kp-video { background: #fff; border: 1px solid var(--k-line); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(74,15,24,.05); }
.kp-video__frame { position: relative; aspect-ratio: 16/9; background: #1c0a0e; }
.kp-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kp-video h3 { font-size: 16px; font-weight: 700; color: var(--k-ink); margin: 0; padding: 16px 20px 18px; line-height: 1.4; }
.kp-contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin-top: 32px; align-items: stretch; }
.kp-contact__form { background: #fff; border: 1px solid var(--k-line); border-radius: 18px; padding: 36px; box-shadow: 0 6px 18px rgba(74,15,24,.05); }
.kp-contact__form h2 { margin-top: 0; font-size: 26px; }
.kp-contact__map { border-radius: 18px; overflow: hidden; min-height: 420px; border: 1px solid var(--k-line); }
.kp-contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.kp-form label { display: block; font-size: 13px; font-weight: 700; color: var(--k-ink-soft); margin-bottom: 16px; }
.kp-form input, .kp-form textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid var(--k-line); border-radius: 10px; background: #fff; padding: 0 14px; height: 48px; font-size: 15px; color: var(--k-ink); box-sizing: border-box; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
.kp-form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.kp-form input:focus, .kp-form textarea:focus { outline: none; border-color: var(--k-maroon); box-shadow: 0 0 0 4px rgba(109,25,38,.12); }
.kp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kp-form .kmtc-btn { margin-top: 4px; }
@media (max-width: 991px) {
	.kp-hero { padding: 52px 0 48px; } .kp-hero h1 { font-size: 34px; }
	.kp-section { padding: 56px 0; }
	.kp-split, .kp-faq, .kp-contact { grid-template-columns: 1fr; gap: 36px; }
	.kp-split__media img { height: 320px; } .kp-badge { left: 14px; }
	.kp-cards--3, .kp-videos, .kp-values { grid-template-columns: 1fr 1fr; }
	.kp-faq__aside { position: static; }
}
@media (max-width: 575px) {
	.kp-hero h1 { font-size: 28px; } .kp-hero p { font-size: 15.5px; }
	.kp-head h2, .kp-split__text h2 { font-size: 25px; }
	.kp-cards--2, .kp-cards--3, .kp-videos, .kp-values, .kp-form__row { grid-template-columns: 1fr; }
	.kp-contact__form { padding: 24px 20px; } .kp-contact__map, .kp-contact__map iframe { min-height: 300px; }
	.kp-actions .kmtc-btn { width: 100%; }
	.kp-acc summary { padding: 16px 18px; font-size: 15.5px; } .kp-acc__body { padding: 0 18px 18px; }
}
.kp-badge strong, .kp-badge span { color: var(--k-maroon-dark) !important; }
.kp-form { background: transparent !important; padding: 0 !important; }

/* Slim footer for focused flows (subject/topic/setup/login) */
.kx-slim { background: #fff; border-top: 1px solid var(--k-line); padding: 18px 0; }
.kx-slim__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.kx-slim__brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.kx-slim__brand img { height: 38px; width: auto; }
.kx-slim__brand span { display: flex; flex-direction: column; font-weight: 800; font-size: 14px; color: var(--k-maroon) !important; line-height: 1.2; }
.kx-slim__brand small { font-weight: 600; font-size: 11.5px; color: var(--k-ink-soft); }
.kx-slim__links { display: flex; gap: 22px; flex-wrap: wrap; }
.kx-slim__links a { font-size: 13.5px; font-weight: 600; color: var(--k-ink-soft) !important; }
.kx-slim__links a:hover { color: var(--k-maroon) !important; }
.kx-slim__copy { font-size: 12.5px; color: var(--k-ink-soft); }
@media (max-width: 767px) { .kx-slim__in { flex-direction: column; text-align: center; gap: 14px; } .kx-slim__links { justify-content: center; gap: 16px; } }

/* ===== Student registration wizard ===== */
.kr .kmtc-auth__card.kr__card { max-width: 620px; }
.kr__have { color: rgba(255,255,255,.85); font-size: 15px; margin: 8px 0 0; }
.kr__have a { color: var(--k-gold) !important; font-weight: 700; }
.kr__steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 12px; }
.kr__steps li { display: flex; align-items: center; gap: 8px; flex: 1; color: var(--k-ink-soft); font-size: 13px; font-weight: 700; }
.kr__steps li span { width: 28px; height: 28px; border-radius: 50%; background: #F1E9E2; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; transition: all .2s; }
.kr__steps li em { font-style: normal; }
.kr__steps li.is-active { color: var(--k-maroon); } .kr__steps li.is-active span { background: var(--k-maroon); color: #fff; }
.kr__steps li.is-done span { background: var(--k-gold); color: var(--k-maroon-dark); }
.kr__bar { height: 4px; background: #F1E9E2; border-radius: 4px; margin-bottom: 28px; overflow: hidden; }
.kr__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--k-maroon), var(--k-gold)); border-radius: 4px; transition: width .35s ease; }
.kr__step { display: none; } .kr__step.is-active { display: block; animation: krIn .3s ease; }
@keyframes krIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.kr__step h1 { font-size: 26px; font-weight: 800; color: var(--k-maroon); margin: 0; }
.kr__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.kr__full { grid-column: 1 / -1; }
.kr .kmtc-field span b { color: #C0392B; }
.kr .kmtc-field select { width: 100%; height: 50px; border-radius: 10px; border: 1px solid var(--k-line); background: #fff; padding: 0 14px; font-size: 15px; color: var(--k-ink); box-sizing: border-box; }
.kr .kmtc-field select:focus { outline: none; border-color: var(--k-maroon); box-shadow: 0 0 0 4px rgba(109,25,38,.12); }
.kr .is-invalid { border-color: #C0392B !important; box-shadow: 0 0 0 4px rgba(192,57,43,.12) !important; }
.kr__meter { display: block; height: 4px; background: #F1E9E2; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.kr__meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.kr small { color: var(--k-ink-soft); font-size: 12.5px; }
.kr__guardian { background: var(--k-cream); border: 1px solid #F0E3B8; border-radius: 14px; padding: 16px 18px 2px; margin-top: 6px; }
.kr__guardian strong { display: block; color: var(--k-maroon); font-size: 14.5px; } .kr__guardian small { display: block; margin: 2px 0 14px; }
.kr__err { color: #C0392B; font-size: 14px; font-weight: 600; min-height: 20px; margin: 4px 0 0; }
.kr__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.kr__nav .kmtc-btn { height: 50px; }
@media (max-width: 575px) {
	.kr__grid { grid-template-columns: 1fr; }
	.kr__steps li em { display: none; } .kr__steps li.is-active em { display: inline; }
	.kr .kmtc-auth__card.kr__card { padding: 24px 18px; }
	.kr__nav .kmtc-btn { flex: 1; padding: 0 12px; }
}

/* ===== Registration: payment + OTP screens ===== */
.kx-page { background: var(--k-surface-2); padding: 56px 0 72px; min-height: 60vh; }
.kx-center { display: flex; align-items: flex-start; justify-content: center; padding-left: 16px; padding-right: 16px; }
.kx-card { background: #fff; border: 1px solid var(--k-line); border-radius: 18px; padding: 32px; box-shadow: 0 16px 40px rgba(74,15,24,.07); }
.kx-card h1, .kx-card h2 { color: var(--k-maroon); font-weight: 800; }
.kx-badge { display: inline-block; background: var(--k-gold); color: var(--k-maroon-dark); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; margin-bottom: 14px; }
.kx-pay { max-width: 980px; }
.kx-pay__head { margin-bottom: 28px; } .kx-pay__head h1 { font-size: 34px; font-weight: 800; color: var(--k-maroon); margin: 8px 0; } .kx-pay__head p { color: var(--k-ink-soft); margin: 0; }
.kx-pay__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.kx-pay h2 { font-size: 21px; margin: 0 0 10px; }
.kx-pay__stk { background: var(--k-maroon-dark); border-color: var(--k-maroon-dark); color: rgba(255,255,255,.85); }
.kx-pay__stk h2 { color: #fff; } .kx-pay__stk strong { color: var(--k-gold) !important; font-size: inherit !important; font-family: inherit !important; }
.kx-pay__amount { background: rgba(255,255,255,.08); border-radius: 14px; padding: 16px 20px; margin: 20px 0; display: flex; flex-direction: column; }
.kx-pay__amount small { color: rgba(255,255,255,.65); font-size: 12.5px; } .kx-pay__amount b { font-size: 30px; color: #fff; font-weight: 800; }
.kx-pay__stk .kmtc-btn { width: 100%; background: var(--k-gold); color: var(--k-maroon-dark) !important; }
.kx-pay__steps { padding-left: 20px; margin: 0 0 24px; color: var(--k-ink-soft); line-height: 1.9; font-size: 15px; }
.kx-pay__steps b { color: var(--k-ink); font-family: inherit; font-size: inherit !important; }
.kx-pay .kx-copy { background: var(--k-maroon-tint); color: var(--k-maroon) !important; border-radius: 6px; padding: 2px 8px; font-size: 14px !important; }
.kx-otp { width: 100%; max-width: 440px; text-align: center; padding: 40px 32px; }
.kx-otp__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--k-maroon-tint); color: var(--k-maroon); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.kx-otp h1 { font-size: 26px; margin: 0 0 8px; } .kx-otp p { color: var(--k-ink-soft); font-size: 15px; }
.kx-otp__code { width: 100%; height: 60px; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .4em; border: 1px solid var(--k-line); border-radius: 12px; margin: 14px 0 20px; box-sizing: border-box; color: var(--k-ink); }
.kx-otp__code:focus { outline: none; border-color: var(--k-maroon); box-shadow: 0 0 0 4px rgba(109,25,38,.12); }
.kx-otp__help { margin: 22px 0 0; font-size: 13.5px; } .kx-otp__help a { color: var(--k-maroon) !important; font-weight: 700; }
@media (max-width: 767px) { .kx-pay__grid { grid-template-columns: 1fr; } .kx-page { padding: 32px 0 48px; } .kx-pay__head h1 { font-size: 27px; } .kx-card { padding: 24px 20px; } }
.kr__steps li em { white-space: nowrap; }
@media (max-width: 575px) { .kr__steps li { flex: 0 0 auto; } .kr__steps li.is-active { flex: 1 1 auto; } .kr__steps { justify-content: space-between; } }
