/* ==========================================================================
   Arapick theme styles
   Ported from the Arapick design. Colors and fonts read the theme.json presets,
   so changing them in Site Editor > Styles flows through.
   Loaded after core's global styles (see functions.php), so these rules win ties.
   ========================================================================== */

:root {
	--brand: var(--wp--preset--color--navy, #1B2A4E);
	--brand-700: var(--wp--preset--color--navy-deep, #121E39);
	--brand-600: var(--wp--preset--color--navy-soft, #26375F);
	--brand-100: var(--wp--preset--color--navy-100, #E6EAF3);
	--brand-050: var(--wp--preset--color--navy-050, #F2F4FA);
	--accent: var(--wp--preset--color--gold, #E3A72B);
	--accent-600: var(--wp--preset--color--gold-600, #CC9322);
	--accent-100: var(--wp--preset--color--gold-100, #F8E7C2);
	--ink: var(--wp--preset--color--ink, #182444);
	--muted: var(--wp--preset--color--muted, #5B6685);
	--bg: var(--wp--preset--color--paper, #F7F9FC);
	--surface: var(--wp--preset--color--white, #FFFFFF);
	--line: var(--wp--preset--color--line, #E5E9F1);
	--line-strong: #D2DAE7;

	--shadow-sm: 0 1px 2px rgba(16, 26, 49, .05), 0 1px 3px rgba(16, 26, 49, .06);
	--shadow-md: 0 6px 20px rgba(16, 26, 49, .08), 0 2px 6px rgba(16, 26, 49, .05);
	--shadow-lg: 0 20px 48px rgba(16, 26, 49, .14), 0 6px 16px rgba(16, 26, 49, .08);

	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 24px;
	--r-xl: 32px;
	--r-pill: 999px;

	--font: var(--wp--preset--font-family--jakarta, "Plus Jakarta Sans", system-ui, sans-serif);
	--font-ar: var(--wp--preset--font-family--plex-arabic, "IBM Plex Sans Arabic", system-ui, sans-serif);

	--wrap: 1200px;
	--gutter: clamp(20px, 5vw, 56px);
	--header-h: 76px;
	--arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[dir="rtl"] body { font-family: var(--font-ar); }
img, svg, video { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Our sections set their own spacing: drop core's flow-layout margins. */
.wp-site-blocks > *,
:where(.wp-site-blocks) .is-layout-flow > *,
:where(.wp-site-blocks) .is-layout-constrained > * { margin-block: 0; }
:where(.wp-site-blocks) figure { margin: 0; }

.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;
}
.skip-link:focus { clip: auto; }
.hp-field { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-family: var(--font); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
h1.display { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2.display { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3.display { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
html[dir="rtl"] .display { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.3; }
.display em { font-style: normal; color: var(--accent); }

.eyebrow {
	display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
	font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--brand); background: var(--brand-100); padding: .5rem .85rem; border-radius: var(--r-pill);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .88rem; }
.eyebrow.on-dark { background: rgba(255, 255, 255, .12); color: #fff; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { margin-inline: auto; margin-bottom: 1.1rem; }
.mt-2 { margin-top: 1.4rem !important; }
.mt-3 { margin-top: 2rem !important; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section.is-tinted { background: var(--brand-050); }
.sec-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px) !important; }
.center.sec-head { margin-inline: auto; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.grid-2.is-centered { align-items: center; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .8rem; }
.wp-block-buttons.ap-center, .ap-center { justify-content: center; }
.wp-block-button__link, .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
	border: 1.5px solid transparent; border-radius: var(--r-pill); white-space: nowrap; cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn { padding: 1rem 1.5rem; }
.btn--primary, .wp-block-button:not([class*="is-style-"]) .wp-block-button__link {
	background: var(--accent); color: #3a2600; box-shadow: 0 6px 16px rgba(227, 167, 43, .34);
}
.btn--primary:hover, .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover {
	background: var(--accent-600); color: #3a2600; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(227, 167, 43, .4);
}
.wp-block-button.is-style-dark .wp-block-button__link { background: var(--brand); color: #fff; }
.wp-block-button.is-style-dark .wp-block-button__link:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: var(--surface); color: var(--brand); border-color: var(--line-strong); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.wp-block-button.is-small .wp-block-button__link { padding: .65rem 1.05rem; font-size: .92rem; }
.wp-block-button.has-arrow .wp-block-button__link::after {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
}
html[dir="rtl"] .wp-block-button.has-arrow .wp-block-button__link::after { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .wp-block-button__link:hover, .btn:hover { transform: none !important; } }

/* ---------- header ---------- */
.site-header-wrap { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60; }
.site-header {
	background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-header-wrap.is-scrolled .site-header { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .98); }
.site-header .container { max-width: 100%; }
.nav { display: flex; align-items: center; gap: 1.1rem; height: var(--header-h); }
.wp-block-image.brand { flex: none; display: flex; align-items: center; }
.wp-block-image.brand a { display: block; }
.wp-block-image.brand img { height: 38px; width: auto; display: block; }

.nav__links { margin-inline-start: .4rem; }
.nav__links .wp-block-navigation__container { gap: .25rem; }
.nav__links .wp-block-navigation-item__content { padding: .5rem .65rem !important; border-radius: var(--r-sm); font-weight: 600; font-size: .96rem; color: var(--ink); transition: background-color .15s ease, color .15s ease; }
.nav__links .wp-block-navigation-item__content:hover,
.nav__links .current-menu-item > .wp-block-navigation-item__content { background: var(--brand-050); color: var(--brand); }
.nav__links .only-mobile { display: none; }

.nav__actions { display: flex; align-items: center; gap: .75rem; margin-inline-start: auto; }
.nav__buttons { gap: .75rem; flex-wrap: nowrap; }
.nav__buttons .login-link .wp-block-button__link { padding: .65rem 1.05rem; font-size: .92rem; }
.nav__buttons .cta-link .wp-block-button__link { background: #EDBE5C; }
.nav__actions .lang-toggle { margin-inline-start: 1.5rem; }

.nav__burger {
	display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
	background: var(--surface); place-items: center; cursor: pointer;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
	content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, background-color .2s ease;
}
.nav__burger span::before { transform: translateY(-6px); }
.nav__burger span::after { transform: translateY(4px); }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: rotate(45deg); }
body.menu-open .nav__burger span::after { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 1120px) {
	.nav__burger { display: grid; }
	.nav__buttons .login-link { display: none; }
	.nav__actions .lang-toggle { margin-inline-start: 0; }
	.nav__links {
		position: fixed; inset-inline: 0; top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px)); z-index: 55; margin: 0;
		background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
		transform: translateY(-120%); visibility: hidden; transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .28s;
	}
	body.menu-open .nav__links { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.4, 0, .2, 1); }
	.nav__links .wp-block-navigation__container { flex-direction: column; align-items: stretch; gap: .2rem; width: 100%; padding: 1rem var(--gutter) 1.6rem; }
	.nav__links .wp-block-navigation-item { border-bottom: 1px solid var(--line); }
	.nav__links .wp-block-navigation-item:last-child { border-bottom: 0; }
	.nav__links .wp-block-navigation-item__content { display: block; padding: .9rem .4rem !important; }
	.nav__links .only-mobile { display: block; }
}
@media (max-width: 520px) { .nav__buttons .cta-link { display: none; } }

/* ---------- language switch ---------- */
.lang-toggle { display: inline-flex; flex: none; background: var(--brand-100); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.lang-toggle > a, .lang-toggle > span {
	display: inline-grid; place-items: center; min-width: 2rem; padding: .4rem .7rem; border-radius: var(--r-pill);
	font-weight: 700; font-size: .85rem; line-height: 1; color: var(--brand); text-decoration: none;
}
.lang-toggle [lang="ar"] { font-family: var(--font-ar); }
.lang-toggle [lang="en"] { font-family: var(--font); }
.lang-toggle > [aria-current] { background: var(--surface); box-shadow: var(--shadow-sm); }
.lang-toggle > a:hover { background: rgba(255, 255, 255, .55); }
.nav .lang-toggle > a, .nav .lang-toggle > span { padding: .3rem .5rem; font-size: .75rem; min-width: 1.8rem; min-height: 1.6rem; }

/* ---------- hero image (home) ---------- */
.wp-block-image.hero img {
	display: block; width: 100%; height: clamp(372px, 49.6vw, 638px);
	object-fit: cover; object-position: center 40%;
}
@media (max-width: 900px) { .wp-block-image.hero img { height: auto; aspect-ratio: 1920 / 820; object-position: center; } }

/* ---------- hero band (inner pages) ---------- */
.hero-band { position: relative; overflow: hidden; background: linear-gradient(160deg, #1F3057, var(--brand-700)); color: #fff; }
.hero-band::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 80% at 85% 10%, rgba(227, 167, 43, .18), transparent 55%), radial-gradient(50% 70% at 5% 100%, rgba(255, 255, 255, .05), transparent 55%);
}
html[dir="rtl"] .hero-band::after { transform: scaleX(-1); }
.hero-band > * { position: relative; z-index: 1; }
.hero-band .display, .hero-band .lead { color: #fff; }
.hero-band .lead { opacity: .86; margin-top: 1rem; }
.hero-actions { margin-top: 2rem !important; }

/* ---------- cards, stats, steps ---------- */
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: clamp(22px, 2.4vw, 30px); box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; margin-bottom: 1rem; }
.card__ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

.stats-card { border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(150deg, #1F3057, var(--brand-700)); color: #fff; padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); text-align: center; }
.stats--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.stat span { color: rgba(255, 255, 255, .75); font-weight: 600; font-size: .95rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 28px); counter-reset: step; }
@media (max-width: 840px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step__num {
	counter-increment: step; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff;
	display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; box-shadow: var(--shadow-md); margin-bottom: 1rem;
}
.step__num::before { content: counter(step); }
.step:nth-child(3) .step__num { background: var(--accent); color: #3a2600; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- info card, forms ---------- */
.info-card { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-md); }
.info-card h3, .info-card .display { color: #fff; margin-bottom: .4rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.info-card .info-row:first-of-type { border-top: 0; }
.info-row .i { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: var(--accent); }
.info-row .i svg { width: 22px; height: 22px; }
.info-row b { display: block; }
.info-row span, .info-row a { color: rgba(255, 255, 255, .72); font-size: .95rem; }
.info-row a:hover { color: #fff; }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea {
	width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
	background: var(--surface); font: inherit; color: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 167, 43, .18); }
.field textarea { min-height: 140px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.form-msg { padding: .9rem 1.1rem; border-radius: var(--r-md); font-weight: 600; }
.form-msg.is-ok { background: #E7F7EE; color: #145C34; }
.form-msg.is-error { background: #FDECEC; color: #8A1C1C; }
html[dir="rtl"] input[dir="ltr"] { text-align: right; }

/* ---------- checklist (list block style) ---------- */
.is-style-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.is-style-ticks li { position: relative; padding-inline-start: 32px; }
.is-style-ticks li::before {
	content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--accent-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l3.8 3.8L18 8' fill='none' stroke='%231B2A4E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.is-style-ticks.ap-inline { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; font-size: .95rem; color: var(--brand); }

/* ---------- dark section ---------- */
.section--dark { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--brand), var(--brand-700)); color: #fff; }
.section--dark .display { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .8); }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(40px, 5.5vw, 68px); }
.cta-card {
	position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; text-align: center; box-shadow: var(--shadow-lg);
	padding: clamp(36px, 5vw, 64px);
	background: radial-gradient(90% 140% at 88% 8%, rgba(227, 167, 43, .24), transparent 55%), linear-gradient(150deg, var(--brand), var(--brand-700));
}
.cta-card .ar-ghost {
	position: absolute; inset-inline-end: -2%; inset-block-start: -30%; font-family: var(--font-ar); color: rgba(255, 255, 255, .07);
	font-size: 16rem; font-weight: 700; line-height: 1.6; direction: rtl; user-select: none; pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h2, .cta-card .display { color: #fff; margin: 0 auto 1rem; }
.cta-card p { color: rgba(255, 255, 255, .85); max-width: 48ch; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-reassure { list-style: none; padding: 0; margin: 1.3rem 0 0 !important; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .82); }
.cta-reassure li { display: inline-flex; align-items: center; gap: .35rem; }
.cta-reassure li::before { content: ""; width: 15px; height: 15px; flex: none; background: var(--accent); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }

/* ---------- reviews ---------- */
.reviews { padding-block: clamp(44px, 6vw, 84px); background: linear-gradient(180deg, var(--brand-050), var(--bg)); }
.reviews .center .display { margin: 0 0 .8rem; }
.reviews .center .lead { margin-inline: auto; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 1.1rem; }
.review__stars { color: var(--accent-600); font-size: 1.05rem; letter-spacing: 2px; }
.review__quote { font-size: 1.08rem; line-height: 1.55; color: var(--ink); margin: 0; }
.review__who { display: flex; align-items: center; gap: .85rem; margin-top: auto; }
.review__who .av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font); }
.review__who b { display: block; font-size: .98rem; }
.review__who span { display: block; font-size: .86rem; color: var(--muted); }
.review__who .learning { margin-inline-start: auto; font-family: var(--font-ar); font-size: .9rem; color: var(--brand); background: var(--brand-050); border: 1px solid var(--line); padding: .3rem .6rem; border-radius: var(--r-pill); }

.reviews-marquee { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); }
.marquee { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
html[dir="rtl"] .marquee .review { direction: rtl; }
.marquee__track { display: flex; align-items: stretch; gap: clamp(16px, 2vw, 22px); width: max-content; animation: marquee-x 60s linear infinite; will-change: transform; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review--m { width: clamp(300px, 82vw, 358px); flex: none; }
@media (prefers-reduced-motion: reduce) {
	.marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
	.marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
	.marquee__track > .dup { display: none; }
}
@media (max-width: 768px) {
	.marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
	.marquee::-webkit-scrollbar { display: none; }
	.marquee__track { animation: none; }
	.marquee__track > .dup { display: none; }
	.review--m { scroll-snap-align: center; width: min(84vw, 320px); }
	.marquee.is-auto { scroll-snap-type: none; scroll-behavior: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
	.marquee.is-auto .marquee__track > .dup { display: flex; }
}

/* ---------- reveal on scroll (armed by JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- mobile sticky booking bar ---------- */
.mobile-cta {
	position: fixed; inset-inline: 0; bottom: 0; z-index: 65; display: none; align-items: center; gap: .9rem;
	padding: .7rem clamp(16px, 4vw, 20px) calc(.7rem + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
	border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(16, 26, 49, .1);
	transform: translateY(112%); transition: transform .3s ease;
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; }
@media (max-width: 768px) { .mobile-cta { display: flex; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-block: clamp(36px, 4.5vw, 52px) 2rem; }
.footer a { color: inherit; text-decoration: none; }
.footer-news { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; padding-bottom: 2.4rem; margin-bottom: 2.4rem !important; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-news h3 { color: #fff; font-weight: 700; font-size: 1.35rem; margin-bottom: .4rem !important; letter-spacing: -.01em; }
.footer-news p { font-size: .94rem; max-width: 46ch; }
.news-form { display: flex; flex-wrap: wrap; gap: .6rem; flex: 1; min-width: min(100%, 280px); max-width: 440px; }
.news-form input[type="email"] {
	flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: .85rem 1rem; border-radius: var(--r-pill);
	border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff;
}
.news-form input::placeholder { color: rgba(255, 255, 255, .5); }
.news-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.news-form .btn { flex: none; }
.news-ok { color: #7fe3b0; font-weight: 600; font-size: .95rem; margin: 0; }
.news-error { flex-basis: 100%; order: 3; color: #ffb4b4; font-size: .88rem; margin: 0; }

.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 980px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer__top { grid-template-columns: 1fr; } }
.footer .wp-block-image.brand { margin-bottom: 1rem; }
.footer__blurb { font-size: .95rem; max-width: 34ch; margin-bottom: 1.3rem !important; }
.footer__social.wp-block-social-links { gap: .6rem; margin: 0; padding: 0; }
.footer__social .wp-social-link { background: rgba(255, 255, 255, .08) !important; color: #fff !important; transition: background-color .16s ease; }
.footer__social .wp-social-link:hover { background: var(--brand) !important; transform: none; }
.footer__social .wp-social-link a { width: 40px; height: 40px; padding: 0 !important; display: grid; place-items: center; }
.footer__social .wp-social-link svg { width: 18px; height: 18px; }
.footer__col h4 { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 1rem !important; letter-spacing: 0; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer__col a { font-size: .95rem; transition: color .15s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; flex-wrap: wrap; font-size: .88rem; }
.footer__bottom .lang-toggle { background: rgba(255, 255, 255, .08); }
.footer__bottom .lang-toggle > a, .footer__bottom .lang-toggle > span { color: #fff; }
.footer__bottom .lang-toggle > [aria-current] { background: rgba(255, 255, 255, .16); box-shadow: none; }
.footer__bottom .lang-toggle > a:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 768px) {
	.footer__social .wp-social-link a { width: 44px; height: 44px; }
	.footer__col a { display: inline-block; padding-block: .35rem; }
	.footer__bottom .lang-toggle > a, .footer__bottom .lang-toggle > span { padding: .6rem .95rem; }
	body:has(.mobile-cta) .footer { padding-bottom: 6rem; }
}

/* ---------- text pages (page.html, single.html, index.html) ---------- */
.prose-page { padding-block: clamp(40px, 6vw, 80px); padding-inline: var(--gutter); }
.prose-page > .wp-block-post-title { margin-bottom: 1.5rem; }
.prose > * + * { margin-block-start: 1.2em !important; }
.prose h2, .prose h3 { margin-block-start: 1.8em !important; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.post-card { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.post-card .wp-block-post-title { font-size: 1.5rem; }

/* ==========================================================================
   Home sections (.ap-scope): what we offer, how it works, tutor deck
   ========================================================================== */
.ap-scope {
	--navy: var(--brand); --navy-deep: var(--brand-700); --navy-soft: var(--brand-600);
	--gold: var(--accent); --gold-600: var(--accent-600); --gold-pale: var(--accent-100); --gold-ink: #8A5F0E;
	--paper: var(--bg); --white: var(--surface); --navy-text: var(--brand);
	--r-sm: 12px; --r-md: 20px; --r-lg: 28px;
	--shadow: 0 1px 2px rgba(18, 30, 57, .06), 0 18px 40px -18px rgba(18, 30, 57, .28);
	--gutter: clamp(1rem, 4vw, 2rem);
	--sec: clamp(4.5rem, 9vw, 8rem);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--spring: cubic-bezier(.34, 1.45, .5, 1);
	--leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1660 158 124 156'%3E%3Cpath d='M1760.4 166.8C1758.1 168.8 1752.5 172.4 1747.9 174.6C1743.3 176.9 1734.5 181.2 1728.4 184.3C1690.1 203.2 1666.7 234.8 1664.7 270.6C1664.1 281.5 1668 303.8 1671.1 307.7C1673.3 310.3 1691 307.5 1708.5 301.8C1742.4 290.6 1770.1 263.8 1776.9 235.8C1779.7 224 1777 199.8 1771.4 186C1768.4 178.7 1766.1 169.9 1766 165.8C1766 162.2 1765.4 162.3 1760.4 166.8Z'/%3E%3C/svg%3E");
	font-size: 16px; line-height: 1.65; color: var(--ink);
}
html[dir="rtl"] .ap-scope { line-height: 1.8; }
html[dir="rtl"] .ap-scope :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.ap-scope :is(h1, h2, h3, h4, h5, h6) { color: var(--ink); }
.ap-scope p, .ap-scope h2, .ap-scope h3, .ap-scope ul { margin: 0; }
.ap-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ap-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.ap-scope .wp-block-button__link, .ap-btn {
	min-height: 50px; padding: .85rem 1.6rem; font-weight: 800; font-size: 1rem; line-height: 1.2;
}
.ap-scope .wp-block-button:not([class*="is-style-"]) .wp-block-button__link { color: var(--navy-deep); box-shadow: none; }
.ap-scope .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover { color: var(--navy-deep); box-shadow: none; transform: translateY(-1px); }
.ap-scope .wp-block-button.is-style-dark .wp-block-button__link:hover { background: var(--navy-soft); box-shadow: none; transform: translateY(-1px); }
.ap-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; border-radius: var(--r-pill);
	border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.ap-btn--gold { background: var(--gold); color: var(--navy-deep); }
.ap-btn--gold:hover { background: var(--gold-600); color: var(--navy-deep); }
@media (hover: hover) and (pointer: fine) { .ap-btn:hover { transform: translateY(-1px); } }

.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ap-chips li { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 12px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--navy-text); }
.ap-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: var(--r-pill); background: var(--gold-pale); color: var(--navy-deep); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.ap-badge .ap-icon { color: var(--gold-600); width: 14px; height: 14px; }

.ap-sec { padding-block: var(--sec); }
.ap-sec--white { background: var(--white); }
.ap-sec__head { max-width: 900px; margin-inline: auto; margin-block-end: clamp(2rem, 4vw, 3.5rem) !important; text-align: center; }
.ap-sec__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.ap-sec__lead { margin: 1rem auto 0 !important; font-size: 1.125rem; color: var(--muted); max-width: 40em; }
.ap-sec__lead strong { color: var(--ink); }
.ap-sec__head .is-style-ticks { margin-block-start: 1.25rem !important; justify-content: center; }
.ap-sec .wp-block-buttons.ap-center { margin-block-start: clamp(2rem, 4vw, 3rem) !important; }
.ap-offer + .ap-how { padding-block-start: 0; }
.ap-how .eyebrow { margin-block-end: 1.1rem !important; }

/* what we offer: three pick cards */
.ap-pickcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.5rem); }
.ap-pickcard {
	position: relative; display: flex; flex-direction: column; padding: 12px 12px 24px; border-radius: var(--r-lg);
	background: var(--white); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18, 30, 57, .05);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.ap-pickcard__img {
	position: relative; display: grid !important; place-items: center; height: 264px; margin: 0 0 1.25rem !important; overflow: hidden;
	border-radius: calc(var(--r-lg) - 8px); background: linear-gradient(160deg, rgba(227, 167, 43, .2), rgba(227, 167, 43, .05));
}
.ap-pickcard__img img {
	display: block; width: min(212px, 80%); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px;
	box-shadow: 0 20px 34px -18px rgba(18, 30, 57, .5); transform: rotate(-2.5deg); transition: transform .5s var(--spring);
}
.ap-pickcard:nth-child(2) .ap-pickcard__img img { transform: rotate(2.5deg); }
.ap-pickcard__img.is-book img { width: auto; height: min(224px, 86%); aspect-ratio: 200 / 286; object-fit: contain; border-radius: 6px; transform: rotate(-3deg); }
.ap-pickcard::after {
	content: ""; position: absolute; z-index: 2; inset-block-start: 2px; inset-inline-end: 26px; width: 22px; height: 28px; background: var(--gold);
	-webkit-mask: var(--leaf) center / contain no-repeat; mask: var(--leaf) center / contain no-repeat;
	filter: drop-shadow(0 4px 8px rgba(227, 167, 43, .45)); opacity: 0; transform: translate(-10px, -18px) rotate(-35deg);
	transition: opacity .25s var(--ease), transform .55s var(--spring); pointer-events: none;
}
.ap-pickcard__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 10px; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.02em; }
.ap-pickcard__title a { color: inherit; text-decoration: none; }
.ap-pickcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ap-pickcard__title::after {
	content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
	background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23121E39' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
	transition: transform .3s var(--spring);
}
html[dir="rtl"] .ap-pickcard__title::after { transform: scaleX(-1); }
.ap-pickcard__text { margin-block-start: .45rem !important; padding-inline: 10px; color: var(--muted); font-size: .97rem; }
.ap-pickcard:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.ap-pickcard__title a:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
	.ap-pickcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
	.ap-pickcard:hover .ap-pickcard__img img { transform: rotate(0) scale(1.04); }
	.ap-pickcard:hover::after { opacity: 1; transform: none; }
	.ap-pickcard:hover .ap-pickcard__title::after { transform: translateX(3px); }
	html[dir="rtl"] .ap-pickcard:hover .ap-pickcard__title::after { transform: scaleX(-1) translateX(3px); }
}
@media (max-width: 760px) {
	.ap-pickcards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.ap-pickcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 10px 14px 10px 10px; }
	.ap-pickcard__img { grid-row: 1 / span 2; height: 112px; margin: 0 !important; border-radius: 16px; }
	.ap-pickcard__img img { width: 88px; border-radius: 12px; }
	.ap-pickcard__img.is-book img { height: 96px; }
	.ap-pickcard__title { align-self: end; padding: 0; font-size: 1.05rem; }
	.ap-pickcard__title::after { width: 24px; height: 24px; background-size: 13px; }
	.ap-pickcard__text { align-self: start; margin-block-start: .2rem !important; padding: 0; font-size: .88rem; line-height: 1.45; }
	.ap-pickcard::after { inset-block-start: -6px; inset-inline-end: auto; inset-inline-start: 88px; }
}

/* how it works: three picks + the travelling leaf */
.ap-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.ap-steps::before {
	content: ""; position: absolute; inset-block-start: 27px; inset-inline: 28px; height: 2px; border-radius: 2px;
	background: repeating-linear-gradient(to right, var(--navy-text) 0 10px, transparent 10px 18px); opacity: .35;
}
.ap-step { position: relative; }
.ap-step__num {
	position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--white); border: 2px solid var(--navy-text); color: var(--navy-text); font-weight: 800; font-size: 1.15rem; font-family: var(--font);
	transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .45s var(--spring);
}
.ap-step:first-child .ap-step__num { background: var(--navy); color: #fff; }
.ap-step:first-child .ap-step__num::after {
	content: ""; position: absolute; inset-block-start: -14px; inset-inline-end: -2px; width: 15px; height: 19px;
	background: var(--gold); -webkit-mask: var(--leaf) center / contain no-repeat; mask: var(--leaf) center / contain no-repeat;
}
.ap-steps.is-live .ap-step__num::after { display: none; }
.ap-steps.is-live .ap-step:not(.is-reached) .ap-step__num { transform: scale(.88); }
.ap-steps.is-live .ap-step.is-reached .ap-step__num { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 0 0 6px rgba(227, 167, 43, .22); }
.ap-step__title { margin-block-start: 1.4rem !important; font-size: 1.35rem; letter-spacing: -.02em; }
.ap-step__text { margin-block-start: .5rem !important; color: var(--muted); max-width: 26em; }
@media (max-width: 860px) {
	.ap-steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.ap-steps::before {
		inset-block: 28px; inset-inline-start: 27px; inset-inline-end: auto; width: 2px; height: auto;
		background: repeating-linear-gradient(to bottom, var(--navy-text) 0 10px, transparent 10px 18px);
	}
	.ap-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 1.1rem; }
	.ap-step__num { grid-row: 1 / span 2; }
	.ap-step__title { margin-block-start: .7rem !important; }
}
.ap-route__fill, .ap-route__leaf { position: absolute; left: 0; top: 0; pointer-events: none; }
.ap-route__fill { background: linear-gradient(90deg, var(--gold-600), var(--gold)); border-radius: 3px; }
.ap-route__leaf {
	z-index: 3; width: 26px; height: 33px; background: var(--gold);
	-webkit-mask: var(--leaf) center / contain no-repeat; mask: var(--leaf) center / contain no-repeat;
	filter: drop-shadow(0 4px 10px rgba(227, 167, 43, .55));
}

/* tutors: a dealt hand of three cards */
.ap-tutors--deck {
	--fan: 1; --gap: clamp(1rem, 2.4vw, 1.75rem);
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; padding-block: 24px 30px;
}
html[dir="rtl"] .ap-tutors--deck { --fan: -1; }
.ap-tutor {
	position: relative; display: flex; flex-direction: column; padding: 12px 12px 18px; border-radius: var(--r-lg);
	background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 50px -34px rgba(18, 30, 57, .5);
	transform: translateY(var(--drop, 0px)) rotate(calc(var(--tilt, 0deg) * var(--fan))); transform-origin: 50% 120%;
	transition: transform .6s var(--spring), box-shadow .35s var(--ease);
}
.ap-tutor.is-top { border: 2px solid var(--navy-text); }
.ap-tutor::after {
	content: ""; position: absolute; z-index: 3; inset-block-start: -15px; inset-inline-end: 24px; width: 24px; height: 30px; background: var(--gold);
	-webkit-mask: var(--leaf) center / contain no-repeat; mask: var(--leaf) center / contain no-repeat;
	filter: drop-shadow(0 4px 8px rgba(227, 167, 43, .45)); opacity: 0; transform: translate(-12px, -22px) rotate(-35deg);
	transition: opacity .25s var(--ease), transform .55s var(--spring); pointer-events: none;
}
.ap-tutor__ribbon {
	position: absolute; z-index: 2; inset-block-start: 0; inset-inline-start: 28px; transform: translateY(-50%);
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: var(--r-pill);
	background: var(--gold); color: var(--navy-deep); font-size: .78rem; font-weight: 800;
}
.ap-tutor__ribbon .ap-leaf { width: 11px; height: 14px; fill: var(--navy-deep); }
.ap-tutor__media {
	position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
	background: radial-gradient(120% 85% at 50% 118%, rgba(227, 167, 43, .42), rgba(227, 167, 43, 0) 62%), linear-gradient(180deg, var(--navy-deep), var(--navy));
}
.ap-tutor__letter { font-family: var(--font); font-weight: 800; font-size: 4.6rem; line-height: 1; letter-spacing: -.03em; color: var(--gold-pale); text-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
html[dir="rtl"] .ap-tutor__letter { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; font-size: 6rem; padding-block-end: .15em; }
.ap-tutor__body { flex: 1; padding: 16px 8px 0; }
.ap-tutor__body > * { margin: 0; }
.ap-tutor__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-block-start: 4px !important; }
.ap-tutor__name { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.ap-tutor__role { margin-block-start: .3rem !important; color: var(--muted); font-size: .95rem; }
.ap-tutor__speaks { display: flex; align-items: center; gap: 6px; margin-block-start: .55rem !important; font-size: .9rem; }
.ap-tutor__speaks .ap-icon { color: var(--muted); }
.ap-tutor__body .ap-chips { margin-block-start: .8rem; }
.ap-tutor__bio { margin-block-start: .8rem !important; color: var(--muted); font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-tutor__side {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px;
	margin: 16px 8px 0; padding: 14px 0 0; border-block-start: 1px solid var(--line);
}
.ap-tutor__side > p { margin: 0; }
.ap-tutor__rating { grid-column: 1; display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.ap-tutor__rating .ap-icon { color: var(--gold); }
.ap-tutor__rating b { font-size: 1.2rem; color: var(--ink); }
.ap-tutor__lessons { grid-column: 1; font-size: .88rem; color: var(--muted); }
.ap-tutor__price { grid-column: 2; grid-row: 1 / span 2; text-align: end; color: var(--muted); font-size: .9rem; }
.ap-tutor__price b { font-size: 1.7rem; letter-spacing: -.02em; color: var(--ink); margin-inline-end: 4px; }
.ap-tutor__actions { grid-column: 1 / -1; display: grid; gap: 8px; margin-block-start: 12px; }
.ap-tutor__actions .ap-btn { min-height: 44px; padding-block: .6rem; font-size: .93rem; }
@media (min-width: 901px) {
	.ap-tutor:nth-child(3n+1) { --tilt: -2deg; --drop: 20px; }
	.ap-tutor:nth-child(3n+2) { z-index: 1; }
	.ap-tutor:nth-child(3n) { --tilt: 2deg; --drop: 20px; }
	.ap-tutor:focus-within { --tilt: 0deg; --drop: -12px; z-index: 2; box-shadow: 0 40px 60px -30px rgba(18, 30, 57, .55); }
	.ap-tutor:focus-within::after { opacity: 1; transform: none; }
	.ap-tutors--deck.is-stacked .ap-tutor { transition: none; }
	.ap-tutors--deck.is-stacked .ap-tutor:nth-child(1) { transform: translateX(calc((100% + var(--gap)) * var(--fan))) rotate(calc(-7deg * var(--fan))) scale(.94); }
	.ap-tutors--deck.is-stacked .ap-tutor:nth-child(2) { transform: translateY(12px) scale(.94); }
	.ap-tutors--deck.is-stacked .ap-tutor:nth-child(3) { transform: translateX(calc((100% + var(--gap)) * var(--fan) * -1)) rotate(calc(5deg * var(--fan))) scale(.94); }
	.ap-tutors--deck.is-dealt .ap-tutor { transition: transform 1s var(--spring), box-shadow .35s var(--ease); }
	.ap-tutors--deck.is-dealt .ap-tutor:nth-child(1) { transition-delay: .1s; }
	.ap-tutors--deck.is-dealt .ap-tutor:nth-child(3) { transition-delay: .2s; }
}
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
	.ap-tutor:hover { --tilt: 0deg; --drop: -12px; z-index: 2; box-shadow: 0 40px 60px -30px rgba(18, 30, 57, .55); }
	.ap-tutor:hover::after { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
	.ap-tutors--deck {
		display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-inline: calc(var(--gutter) * -1); padding: 20px var(--gutter) 28px; scroll-padding-inline: var(--gutter); gap: 14px;
	}
	.ap-tutors--deck::-webkit-scrollbar { display: none; }
	.ap-tutor { flex: 0 0 min(84%, 340px); scroll-snap-align: start; padding: 10px 10px 16px; }
	.ap-tutor__letter { font-size: 3.6rem; }
	html[dir="rtl"] .ap-tutor__letter { font-size: 4.6rem; }
}

/* cards rise in when scrolled into view (JS adds .ap-rv only below the fold) */
.ap-rv { opacity: 0; transform: translateY(24px); }
.ap-rv:not(.is-in) { transition: none !important; }
.ap-rv.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }

/* ==========================================================================
   Shared UI used by the header and the student area
   ========================================================================== */
.btn--navy { background: var(--brand); color: #fff; }
.btn--navy:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--surface); color: var(--brand); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); transform: translateY(-1px); }
.btn--danger { background: #B42318; color: #fff; }
.btn--danger:hover { background: #912018; color: #fff; }
.btn--text { background: none; border: 0; padding: .6rem .4rem; color: var(--muted); font-weight: 700; }
.btn--text:hover { color: #B42318; }
.btn--sm { padding: .65rem 1.05rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
button.btn { font: inherit; font-weight: 700; }

.avatar {
	flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: linear-gradient(160deg, var(--brand-600), var(--brand-700)); color: var(--accent-100);
	font-family: var(--font); font-weight: 800; font-size: .9rem; letter-spacing: -.01em;
}
html[dir="rtl"] .avatar { font-family: var(--font-ar); }
.avatar--lg { width: 64px; height: 64px; font-size: 1.3rem; }

.pill {
	display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: var(--r-pill);
	background: var(--brand-050); border: 1px solid var(--line); color: var(--brand); font-size: .78rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
button.pill { cursor: pointer; font-family: inherit; }
.pill--gold { background: var(--accent-100); border-color: transparent; color: #7A520B; }
.pill--ok, .pill--confirmed, .pill--completed { background: #E7F7EE; border-color: transparent; color: #145C34; }
.pill--requested { background: var(--accent-100); border-color: transparent; color: #7A520B; }
.pill--cancelled { background: #FDECEC; border-color: transparent; color: #8A1C1C; }
.rating__star { color: var(--accent-600); }

.app-user { position: relative; display: flex; align-items: center; gap: .6rem; }
.app-user summary { list-style: none; cursor: pointer; border-radius: 50%; }
.app-user summary::-webkit-details-marker { display: none; }
.app-user summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.app-user__link { font-weight: 700; color: var(--brand); padding: .5rem .4rem; }
.app-user__menu {
	position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 70; min-width: 220px; padding: .5rem;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); display: grid;
}
.app-user__menu a { padding: .6rem .7rem; border-radius: var(--r-sm); font-weight: 600; font-size: .94rem; }
.app-user__menu a:hover { background: var(--brand-050); color: var(--brand); }
.app-user__name { margin: 0 0 .3rem; padding: .5rem .7rem .7rem; border-bottom: 1px solid var(--line); font-weight: 700; }
.app-user__name span { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
body.logged-in .nav__links .only-mobile { display: none !important; }
@media (max-width: 1120px) { .nav__actions div.app-user.login-link { display: none; } }

/* ---------- website support chat (assets/js/support-chat.js) ---------- */
.chatw { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chatw__launcher { position: relative; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(16, 26, 49, .3); transition: transform .16s ease; }
.chatw__launcher:hover { transform: translateY(-2px); }
.chatw__dot { position: absolute; top: 6px; inset-inline-end: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.chatw__panel { width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.chatw__panel[hidden] { display: none; }
.chatw__head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: 14px 16px; background: linear-gradient(150deg, var(--brand), var(--brand-700)); color: #fff; }
.chatw__head div { display: grid; }
.chatw__head span { font-size: .8rem; opacity: .8; }
.chatw__close { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chatw__log { flex: 1 1 auto; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); min-height: 90px; }
.chatw__msg { max-width: 82%; align-self: flex-start; }
.chatw__msg p { margin: 0; padding: .6rem .85rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; white-space: pre-wrap; unicode-bidi: plaintext; }
.chatw__msg.is-mine { align-self: flex-end; }
.chatw__msg.is-mine p { background: var(--brand); border-color: var(--brand); color: #fff; }
.chatw__foot { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 12px; border-top: 1px solid var(--line); }
.chatw__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chatw__chips button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 99px; padding: .35rem .7rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--brand); }
.chatw__start { display: grid; gap: 7px; }
.chatw__start span { font-size: .8rem; color: var(--muted); }
.chatw__start input, .chatw__start textarea, .chatw__compose textarea { width: 100%; padding: .6rem .8rem; border: 1.5px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: .92rem; resize: none; }
.chatw__start button, .chatw__compose button { border: 0; border-radius: 99px; padding: .65rem 1rem; background: var(--accent); color: #3a2600; font: inherit; font-weight: 800; cursor: pointer; }
.chatw__compose { display: flex; gap: 8px; align-items: flex-end; }
.chatw__compose textarea { flex: 1; }
@media (max-width: 768px) {
	body:has(.mobile-cta.is-visible) .chatw, body:has(.app-nav) .chatw { bottom: 84px; }
}
@media print { .chatw { display: none; } }
