/* Zdakra theme — shares Tutor LMS 4's tokens so the public site and dashboard read as one product. */

:root {
	--z-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--z-bg: #fafafa;
	--z-surface: #fff;
	--z-tint: #f2f7f7;
	--z-text: #0c111d;
	--z-text-2: #344054;
	--z-muted: #667085;
	--z-border: #ececed;
	--z-border-strong: #d0d5dd;
	--z-brand: var(--tutor-brand-600, #0e5e63);
	--z-brand-hover: var(--tutor-brand-700, #0b4b4f);
	--z-brand-soft: var(--tutor-brand-100, #e7f9fa);
	--z-brand-ink: var(--tutor-brand-950, #062a2d);
	--z-accent: #20c4d4;
	--z-radius: 16px;
	--z-radius-sm: 10px;
	--z-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
	--z-shadow-lg: 0 20px 40px -16px rgba(16, 24, 40, .18);
	/* Strong ease-out for UI: fast start, no overshoot (critically damped feel). */
	--z-ease: cubic-bezier(.23, 1, .32, 1);
	/* iOS drawer curve for the mobile sheet. */
	--z-ease-drawer: cubic-bezier(.32, .72, 0, 1);
	--z-header-h: 72px;
	--z-gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--z-header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--z-bg);
	color: var(--z-text);
	font: 400 1rem/1.6 var(--z-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--z-brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--z-brand-soft); color: var(--z-brand-ink); }

.z-skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--z-text); color: #fff; border-radius: 8px; transition: top .2s var(--z-ease); }
.z-skip:focus { top: 12px; }

/* ---------- Type: tracking and leading tighten as size grows ---------- */
.z-display {
	margin: 0 0 16px;
	font-size: clamp(2.25rem, 5.2vw, 4rem);
	line-height: 1.05;
	letter-spacing: -.035em;
	font-weight: 700;
	text-wrap: balance;
}
.z-display--sm { font-size: clamp(2rem, 4vw, 3rem); }
.z-h2 { margin: 0 0 12px; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.z-h3 { margin: 0 0 8px; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }
.z-h4 { margin: 0 0 6px; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em; font-weight: 600; }
.z-lead { margin: 0 0 24px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--z-text-2); max-width: 40em; text-wrap: pretty; }
.z-muted { color: var(--z-muted); }
.z-small { font-size: .875rem; }
.z-center { text-align: center; }
.z-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--z-brand-soft); color: var(--z-brand); font-size: .8125rem; font-weight: 600; letter-spacing: .01em; }
.z-eyebrow--light { background: rgba(255, 255, 255, .14); color: #fff; }
.z-gradient-text { background: linear-gradient(100deg, var(--z-brand) 10%, var(--z-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.z-link { display: inline-flex; align-items: center; gap: 6px; color: var(--z-brand); font-weight: 600; }
.z-link .z-icon { transition: transform .2s var(--z-ease); }
@media (hover: hover) { .z-link:hover .z-icon { transform: translateX(3px); } }

/* ---------- Layout ---------- */
.z-container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--z-gutter); }
.z-narrow { max-width: 820px; }
.z-section { padding-block: clamp(56px, 8vw, 96px); }
.z-section--flush { padding-top: 0; }
.z-section--tint { background: var(--z-tint); }
.z-section-head { margin-bottom: clamp(24px, 4vw, 40px); max-width: 720px; }
.z-row-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.z-row-head .z-section-head { margin-bottom: 0; }
.z-row-head { margin-bottom: clamp(24px, 4vw, 40px); }
.z-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.z-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.z-grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.z-list { display: grid; gap: 12px; }
.z-empty { padding: 48px 0; text-align: center; color: var(--z-muted); }

/* ---------- Buttons: feedback on press, not release ---------- */
.z-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 40px; padding: 8px 16px;
	border: 1px solid transparent; border-radius: var(--z-radius-sm);
	font-size: .9375rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
	cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: background-color .2s var(--z-ease), border-color .2s var(--z-ease), color .2s var(--z-ease), box-shadow .2s var(--z-ease), transform .1s ease-out;
}
.z-btn:active { transform: scale(.97); }
.z-btn--lg { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
.z-btn--block { width: 100%; }
.z-btn--primary { background: var(--z-brand); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .1), inset 0 1px 0 rgba(255, 255, 255, .12); }
.z-btn--primary:hover { background: var(--z-brand-hover); }
.z-btn--ghost { background: var(--z-surface); border-color: var(--z-border-strong); color: var(--z-text); }
.z-btn--ghost:hover { border-color: var(--z-text-2); }
.z-btn--light { background: #fff; color: var(--z-brand-ink); }
.z-btn--light:hover { background: var(--z-brand-soft); }
.z-icon { flex: none; }
.z-icon-btn {
	position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
	border: 1px solid var(--z-border); border-radius: 12px; background: var(--z-surface); cursor: pointer;
	transition: border-color .2s var(--z-ease), transform .1s ease-out;
}
.z-icon-btn:hover { border-color: var(--z-border-strong); }
.z-icon-btn:active { transform: scale(.94); }
.z-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--z-brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.z-pill { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: var(--z-brand-soft); color: var(--z-brand); font-size: .8125rem; font-weight: 600; }

/* ---------- Header: translucent material, content scrolls under ---------- */
.z-header {
	position: sticky; top: 0; z-index: 50; height: var(--z-header-h);
	background: rgba(250, 250, 250, .72);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	transition: box-shadow .3s var(--z-ease), background-color .3s var(--z-ease);
}
.admin-bar .z-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .z-header { top: 46px; } }
/* Scroll edge: a soft shadow appears only once content passes underneath. */
.z-header.is-scrolled { background: rgba(255, 255, 255, .8); box-shadow: 0 1px 0 rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .12); }
.z-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.z-header__logo img { width: 132px; height: auto; }
.z-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.z-avatar img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px var(--z-surface), 0 0 0 3px var(--z-border); }

.z-nav { display: flex; align-items: center; gap: 2px; }
.z-nav__link {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px;
	border: 0; border-radius: 10px; background: none; cursor: pointer;
	color: var(--z-text-2); font-size: .9375rem; font-weight: 500;
	transition: background-color .2s var(--z-ease), color .2s var(--z-ease);
}
.z-nav__link:hover, .z-nav__link[aria-expanded="true"] { background: rgba(16, 24, 40, .05); color: var(--z-text); }
.z-nav__link .z-icon { width: 16px; height: 16px; transition: transform .2s var(--z-ease); }
.z-nav__link[aria-expanded="true"] .z-icon { transform: rotate(180deg); }

/* Dropdown grows from its trigger, not from the centre of the page. */
.z-menu { position: relative; }
.z-menu__panel {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; padding: 8px;
	display: grid; gap: 2px;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(24px);
	backdrop-filter: saturate(180%) blur(24px);
	border: 1px solid var(--z-border); border-radius: 14px; box-shadow: var(--z-shadow-lg);
	transform-origin: top left;
	opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98);
	transition: opacity .18s var(--z-ease), transform .25s var(--z-ease), visibility 0s linear .25s;
}
.z-menu.is-open .z-menu__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.z-menu__label { padding: 6px 10px 4px; color: var(--z-muted); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.z-menu__item { padding: 8px 10px; border-radius: 8px; font-size: .9375rem; transition: background-color .15s var(--z-ease); }
.z-menu__item:hover { background: var(--z-brand-soft); color: var(--z-brand); }
.z-menu__all { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 10px; border-top: 1px solid var(--z-border); color: var(--z-brand); font-weight: 600; font-size: .9375rem; }
.z-menu__all .z-icon { width: 16px; height: 16px; }

.z-show-sm { display: none; }
@media (max-width: 960px) {
	.z-nav, .z-hide-sm { display: none; }
	.z-show-sm { display: inline-grid; }
}

/* ---------- Mobile sheet: enters from the right, leaves to the right ---------- */
.z-sheet { position: fixed; inset: 0; z-index: 90; }
.z-sheet[hidden] { display: none; }
.z-sheet__scrim { position: absolute; inset: 0; background: rgba(12, 17, 29, .32); opacity: 0; transition: opacity .3s var(--z-ease); }
.z-sheet__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
	display: flex; flex-direction: column; gap: 4px; padding: 16px 20px max(20px, env(safe-area-inset-bottom));
	background: var(--z-surface); box-shadow: -24px 0 48px -24px rgba(16, 24, 40, .3);
	overflow-y: auto; overscroll-behavior: contain;
	transform: translateX(100%); transition: transform .45s var(--z-ease-drawer);
	touch-action: pan-y;
}
.z-sheet.is-open .z-sheet__scrim { opacity: 1; }
.z-sheet.is-open .z-sheet__panel { transform: none; }
/* While dragging, the panel follows the finger 1:1 with no transition. */
.z-sheet.is-dragging .z-sheet__panel, .z-sheet.is-dragging .z-sheet__scrim { transition: none; }
.z-sheet__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.z-sheet__link { padding: 12px 8px; border-radius: 10px; font-size: 1.0625rem; font-weight: 500; }
.z-sheet__link:active { background: var(--z-brand-soft); }
.z-sheet__cta { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; }

/* ---------- Hero ---------- */
.z-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.z-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
.z-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.z-hero__media img { width: 100%; border-radius: 24px; box-shadow: var(--z-shadow-lg); }
@media (max-width: 860px) { .z-hero__grid { grid-template-columns: 1fr; } }

.z-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; max-width: 560px; }
.z-stat { display: flex; flex-direction: column-reverse; }
.z-stat dt { color: var(--z-muted); font-size: .875rem; line-height: 1.45; text-wrap: balance; }
.z-stat dd { margin: 0 0 2px; font-size: 1.5rem; white-space: nowrap; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.z-logos { padding-bottom: 8px; }
.z-logos__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px clamp(32px, 6vw, 72px); padding-block: 24px; border-block: 1px solid var(--z-border); }
.z-logos__row img { height: 40px; width: auto; opacity: .85; transition: opacity .3s var(--z-ease); }
.z-logos__row img:hover { opacity: 1; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Cards ---------- */
.z-card {
	background: var(--z-surface); border: 1px solid var(--z-border); border-radius: var(--z-radius);
	padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--z-shadow);
}
a.z-card, .z-course, .z-post { transition: transform .25s var(--z-ease), box-shadow .25s var(--z-ease), border-color .25s var(--z-ease); }
@media (hover: hover) {
	a.z-card:hover, .z-course:hover, .z-post:hover { transform: translateY(-2px); box-shadow: var(--z-shadow-lg); border-color: var(--z-border-strong); }
}
a.z-card:active, .z-course:active, .z-post:active { transform: scale(.985); transition-duration: .1s; }

.z-course, .z-post { display: flex; flex-direction: column; overflow: hidden; background: var(--z-surface); border: 1px solid var(--z-border); border-radius: var(--z-radius); box-shadow: var(--z-shadow); }
.z-post { padding: 0; }
.z-course__media, .z-post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--z-tint); }
.z-course__media img, .z-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--z-ease); }
@media (hover: hover) { .z-course:hover .z-course__media img, .z-post:hover .z-post__media img { transform: scale(1.03); } }
.z-course__body, .z-post__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.z-course__meta { display: flex; justify-content: space-between; gap: 8px; font-size: .8125rem; }
.z-stars { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.z-stars svg { color: #f5a524; }
.z-course__title, .z-post__title { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.z-course__price { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--z-border); font-weight: 700; color: var(--z-brand); }

.z-cat { position: relative; display: flex; flex-direction: column; gap: 4px; }
.z-cat__name { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; padding-right: 32px; }
.z-cat__arrow { position: absolute; right: 20px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--z-brand-soft); color: var(--z-brand); transition: transform .3s var(--z-ease), background-color .3s var(--z-ease), color .3s var(--z-ease); }
.z-cat__arrow .z-icon { width: 16px; height: 16px; }
@media (hover: hover) { .z-cat:hover .z-cat__arrow { background: var(--z-brand); color: #fff; transform: translateX(2px); } }

.z-feature__dot { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--z-brand-soft); color: var(--z-brand); }
.z-feature p { margin: 0; }

.z-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; }
.z-number { display: flex; flex-direction: column-reverse; }
.z-number dt { color: var(--z-muted); }
.z-number dd { margin: 0 0 4px; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -.03em; color: var(--z-brand); font-variant-numeric: tabular-nums; }

.z-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.z-person__img { width: 96px; height: 96px; margin-bottom: 12px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--z-brand-soft); }
.z-person__name { font-weight: 600; font-size: 1.0625rem; }

.z-role { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.z-role p { margin: 0; }

/* ---------- Bands ---------- */
.z-band {
	position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; overflow: hidden;
	padding: clamp(32px, 5vw, 56px); border-radius: 24px;
	background: radial-gradient(120% 140% at 0% 0%, var(--z-brand) 0%, var(--z-brand-ink) 100%); color: #fff;
}
.z-band p { color: rgba(255, 255, 255, .82); margin: 0 0 24px; max-width: 36em; }
.z-band__media { width: 100%; border-radius: 16px; }
.z-band--soft { grid-template-columns: 1fr; background: var(--z-brand-soft); color: var(--z-text); text-align: center; justify-items: center; }
.z-band--soft p { color: var(--z-text-2); margin-inline: auto; }
@media (max-width: 760px) { .z-band { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.z-page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 48px); text-align: center; }
.z-page-hero .z-display, .z-page-hero .z-lead { margin-inline: auto; max-width: 820px; }
.z-mosaic { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; align-items: end; }
.z-mosaic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; }
.z-mosaic img:nth-child(2) { aspect-ratio: 1; }
@media (max-width: 640px) { .z-mosaic { grid-template-columns: 1fr 1fr; } .z-mosaic img:nth-child(2) { grid-column: 1 / -1; order: -1; } }

.z-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.z-split--form { align-items: start; grid-template-columns: 1.3fr 1fr; }
.z-split__media { width: 100%; border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; }
.z-split__copy { display: grid; gap: 24px; }
.z-split__copy p { margin: 0; color: var(--z-text-2); }
@media (max-width: 860px) { .z-split, .z-split--form { grid-template-columns: 1fr; } }

.z-contact { display: flex; gap: 16px; align-items: flex-start; }
.z-contact .z-feature__dot { margin: 0; }
.z-contact p { margin: 0; }

/* FAQ: native details, animated where the browser supports it. */
.z-faq { display: grid; gap: 12px; margin-bottom: 32px; }
.z-faq__item { background: var(--z-surface); border: 1px solid var(--z-border); border-radius: 14px; box-shadow: var(--z-shadow); transition: border-color .25s var(--z-ease); interpolate-size: allow-keywords; }
.z-faq__item[open] { border-color: var(--z-border-strong); }
.z-faq__item summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.z-faq__item summary::-webkit-details-marker { display: none; }
.z-faq__icon { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--z-brand-soft); }
.z-faq__icon::before, .z-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 2px; background: var(--z-brand); transition: transform .3s var(--z-ease); }
.z-faq__icon::after { transform: rotate(90deg); }
.z-faq__item[open] .z-faq__icon::after { transform: rotate(0deg); }
.z-faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--z-ease), content-visibility .35s allow-discrete; }
.z-faq__item[open]::details-content { block-size: auto; }
.z-faq__answer { padding: 0 20px 18px; color: var(--z-text-2); }
.z-faq__answer p { margin: 0; }

/* Forms */
.z-form { display: grid; gap: 16px; }
.z-form .z-h3 { margin-bottom: 4px; }
.z-field { display: grid; gap: 6px; margin: 0; }
.z-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .z-field-row { grid-template-columns: 1fr; } }
.z-label { font-size: .875rem; font-weight: 500; color: var(--z-text-2); }
.z-input {
	width: 100%; min-height: 44px; padding: 10px 14px;
	border: 1px solid var(--z-border-strong); border-radius: var(--z-radius-sm); background: var(--z-surface);
	font: inherit; font-size: 16px; color: var(--z-text);
	transition: border-color .2s var(--z-ease), box-shadow .2s var(--z-ease);
}
textarea.z-input { resize: vertical; }
.z-input:focus { outline: none; border-color: var(--z-brand); box-shadow: 0 0 0 4px var(--z-brand-soft); }
/* Clipped rather than pushed off-screen, which would add a sideways scroll in right-to-left pages. */
.z-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.z-notice { margin: 0; padding: 10px 14px; border-radius: var(--z-radius-sm); font-size: .9375rem; }
.z-notice.is-ok { background: #ecfdf3; color: #067647; }
.z-notice.is-error { background: #fef3f2; color: #b42318; }

/* Prose (legal pages, posts) */
.z-prose { font-size: 1.0625rem; line-height: 1.7; color: var(--z-text-2); }
.z-prose h2 { margin: 2em 0 .5em; color: var(--z-text); font-size: 1.375rem; line-height: 1.3; letter-spacing: -.015em; }
.z-prose h3 { margin: 1.5em 0 .35em; color: var(--z-text); font-size: 1.0625rem; }
.z-prose > :first-child { margin-top: 0; }
.z-prose p { margin: 0 0 1em; }
.z-prose a { color: var(--z-brand); text-decoration: underline; text-underline-offset: 3px; }
.z-single__media img { width: 100%; margin: 24px 0 32px; border-radius: 20px; }

/* Default pages wrap Tutor's login, registration, cart and checkout. */
.z-page__inner { max-width: 1100px; }
.z-page__title { margin-bottom: 24px; }
.z-page__content > :first-child { margin-top: 0; }

.z-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.z-pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--z-border); border-radius: 10px; background: var(--z-surface); font-weight: 500; }
.z-pagination .current { background: var(--z-brand); border-color: var(--z-brand); color: #fff; }

/* ---------- Footer ---------- */
.z-footer { margin-top: clamp(32px, 6vw, 64px); padding-top: clamp(48px, 6vw, 72px); background: var(--z-surface); border-top: 1px solid var(--z-border); }
.z-footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.z-footer__brand img { width: 132px; height: auto; margin-bottom: 12px; }
.z-footer__brand > p { margin: 0 0 24px; max-width: 32em; }
.z-footer__col { display: flex; flex-direction: column; gap: 10px; }
.z-footer__col a { color: var(--z-text-2); transition: color .2s var(--z-ease); }
.z-footer__col a:hover { color: var(--z-brand); }
.z-footer__title { margin: 0 0 4px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--z-muted); }
.z-footer__bottom { padding-block: 24px; border-top: 1px solid var(--z-border); color: var(--z-muted); font-size: .875rem; }
.z-newsletter { display: grid; gap: 8px; max-width: 420px; }
.z-newsletter__row { display: flex; gap: 8px; }
.z-newsletter__row .z-input { flex: 1; min-width: 0; }
@media (max-width: 900px) { .z-footer__top { grid-template-columns: 1fr 1fr; } .z-footer__brand { grid-column: 1 / -1; } }

/* ---------- Scroll reveal: opacity + small rise, staggered by --i ---------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .7s var(--z-ease), transform .8s var(--z-ease);
	transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Reduced motion: keep fades and colour feedback, drop movement. */
@media (prefers-reduced-motion: reduce) {
	.js [data-reveal] { transform: none; transition: opacity .2s ease; transition-delay: 0s; }
	.z-btn:active, .z-icon-btn:active, a.z-card:active, .z-course:active, .z-post:active { transform: none; }
	a.z-card:hover, .z-course:hover, .z-post:hover,
	.z-course:hover .z-course__media img, .z-post:hover .z-post__media img,
	.z-cat:hover .z-cat__arrow, .z-link:hover .z-icon { transform: none !important; }
	.z-menu__panel { transform: none; }
	.z-sheet__panel { transform: none; opacity: 0; transition: opacity .2s ease; }
	.z-sheet.is-open .z-sheet__panel { opacity: 1; }
	.z-faq__item::details-content { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
	.z-header, .z-menu__panel { background: var(--z-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
	:root { --z-border: #98a2b3; --z-border-strong: #475467; --z-muted: #344054; }
}

/* ---------- Right-to-left (Dari, Pashto) ---------- */
[dir="rtl"] .z-skip { left: auto; right: 16px; }
[dir="rtl"] .z-badge { right: auto; left: -5px; }
[dir="rtl"] .z-header__actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .z-menu__panel { left: auto; right: 0; transform-origin: top right; }
[dir="rtl"] .z-sheet__panel { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .z-sheet.is-open .z-sheet__panel { transform: none; }
[dir="rtl"] .z-cat__name { padding-right: 0; padding-left: 32px; }
[dir="rtl"] .z-cat__arrow { right: auto; left: 20px; }
/* Arrows point the way you read. `scale` composes with the hover nudge, which runs the other way too. */
[dir="rtl"] .z-link .z-icon, [dir="rtl"] .z-menu__all .z-icon, [dir="rtl"] .z-btn .z-icon, [dir="rtl"] .z-cat__arrow .z-icon { scale: -1 1; }
@media (hover: hover) {
	[dir="rtl"] .z-link:hover .z-icon { transform: translateX(3px); }
	[dir="rtl"] .z-cat:hover .z-cat__arrow { transform: translateX(-2px); }
}
[dir="rtl"] body { line-height: 1.8; }
@media (prefers-reduced-motion: reduce) { [dir="rtl"] .z-sheet__panel { transform: none; } }

/* Language switcher placement */
.z-sheet__langs { margin: 16px 0 4px; }
.z-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Footer credit line */
.z-footer__credit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.z-footer__dot { opacity: .5; }
.z-heart { display: inline-block; vertical-align: -2px; color: #e5484d; margin-inline: 1px; }
