/*
Theme Name: Sadequain Jauhar Academy
Theme URI: https://sjaedu.net/
Author: Sadequain Jauhar Academy
Description: A fast, lightweight block theme for Sadequain Jauhar Academy, Gulistan-e-Jauhar, Karachi. Every page is editable in the WordPress Site Editor.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.12
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sja
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid #2F6FED;
	outline-offset: 2px;
}
.sja-main > * { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Shared pieces ---------- */
.sja-eyebrow {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--crimson);
}
.sja-lead { font-size: 1.1875rem; line-height: 1.6; max-width: 36em; }
.sja-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.sja-section-head { margin-bottom: 2.5rem; }
.sja-section-head > * { max-width: 46em; margin-block: 0; }
.sja-section-head > * + * { margin-top: 0.75rem; }
.wp-block-columns.sja-split { align-items: center; gap: clamp(2rem, 5vw, 3.5rem); }
.wp-block-columns.sja-split.is-top { align-items: flex-start; }
.sja-split .wp-block-column > * { margin-block: 0; }
.sja-split .wp-block-column > * + * { margin-top: 1rem; }
.sja-split .wp-block-column > .sja-eyebrow + * { margin-top: 0.75rem; }
.sja-split .wp-block-column > * + .wp-block-buttons, .sja-split .wp-block-column > * + .sja-more, .sja-split .wp-block-column > * + .wp-block-group, .sja-split .wp-block-column > * + .wp-block-image { margin-top: 1.5rem; }
@media (min-width: 782px) { .wp-block-buttons.sja-end { justify-content: flex-end; } }
.sja-actions { margin-top: 2rem; }
.wp-block-group.sja-features { gap: 2.25rem 2.5rem; }
.wp-block-group.sja-steps, .wp-block-group.sja-cards { gap: 1.5rem; }
.sja-band-white { background: #FFFFFF; border-block: 1px solid var(--wp--preset--color--line); }
.sja-band-sky { background: var(--wp--preset--color--sky); }
.sja-band-ink { background: var(--wp--preset--color--ink); color: #C5CBE0; }
.sja-band-ink h1, .sja-band-ink h2, .sja-band-ink h3 { color: #FFFFFF; }
.sja-band-ink .sja-eyebrow { color: #F3B8C0; }
.sja-band-ink a:not(.wp-block-button__link) { color: #F3B8C0; }
.sja-more a { font-weight: 700; text-decoration: none; }
.sja-more a::after { content: " \2192"; }

/* Buttons */
.wp-block-button .wp-block-button__link { min-height: 3.25rem; display: inline-flex; align-items: center; transition: filter 0.15s ease; }
.wp-block-button .wp-block-button__link:hover { filter: brightness(0.94); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: #FFFFFF;
	color: var(--wp--preset--color--ink);
	border: 1.5px solid #C9D1E3;
	padding: 0.85rem 1.4rem;
}
.sja-band-ink .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: #FFFFFF;
	border-color: #56628C;
}
@media (prefers-reduced-motion: reduce) { .wp-block-button .wp-block-button__link { transition: none; } }

/* Small line icons drawn with CSS masks, so they follow the text colour */
.sja-ic { position: relative; padding-left: 1.75em; }
.sja-ic::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.15em;
	height: 1.15em;
	background: currentColor;
	-webkit-mask: var(--sja-icon) center / contain no-repeat;
	mask: var(--sja-icon) center / contain no-repeat;
}
.sja-ic-pin { --sja-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6.2-6.5-11a6.5 6.5 0 0 1 13 0c0 4.8-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E"); }
.sja-ic-chat { --sja-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.sja-ic-clock { --sja-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.sja-ic-card { --sja-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='12' r='2.5'/%3E%3Cpath d='M14 10h4M14 14h4'/%3E%3C/svg%3E"); }
.sja-ic-alert { --sja-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6'/%3E%3Cpath d='M12 16.5v.5'/%3E%3C/svg%3E"); }
.sja-ic-doc { --sja-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E"); }

.sja-ic-phone { --sja-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.5 4-2 1.5a11 11 0 0 0 6.5 6.5l1.5-2 4 1.5V19a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.sja-ic-mail { --sja-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2'/%3E%3Cpath d='M4 7.5l8 6 8-6'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.sja-topbar { background: var(--wp--preset--color--ink); color: #C5CBE0; font-size: 0.8125rem; }
.sja-topbar-inner { padding-block: 0.5rem; row-gap: 0.25rem; }
.sja-topbar p { margin: 0; }
.sja-topbar a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.sja-topbar a:hover { text-decoration: underline; }
.sja-topbar-links { gap: 0.25rem 1.5rem; }
.sja-topbar-links > p { margin: 0; }
@media (max-width: 600px) { .sja-topbar-mail { display: none; } }
.sja-header { background: #FFFFFF; border-bottom: 1px solid var(--wp--preset--color--line); }
.sja-header-inner { padding-block: 0.875rem; gap: 1.5rem; }
.sja-brand { gap: 0.75rem; flex-shrink: 0; }
.sja-brand .wp-block-image { margin: 0; }
.sja-brand .wp-block-image img { border-radius: 12px; display: block; }
.sja-brand-text { gap: 0.125rem; }
.sja-brand-name { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.1875rem; line-height: 1.1; white-space: nowrap; }
.sja-brand-name a { color: var(--wp--preset--color--ink); text-decoration: none; }
.sja-brand-sub { margin: 0; font-size: 0.75rem; line-height: 1.2; color: var(--wp--preset--color--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.sja-nav .wp-block-navigation-item__content { padding: 0.625rem 0.625rem; border-radius: 8px; color: var(--wp--preset--color--ink); text-decoration: none; white-space: nowrap; }
.sja-nav .wp-block-navigation__container { gap: 0.125rem; }
/* Hover styles only for devices with a real pointer, so a tap on a phone doesn't leave an item looking selected */
@media (hover: hover) {
	.sja-nav .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--sky); }
}
.sja-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--crimson); font-weight: 700; box-shadow: inset 0 -2px 0 var(--wp--preset--color--crimson); border-radius: 0; }
.sja-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem 1.5rem 2rem; --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; }
.sja-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; align-items: stretch; }
.sja-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; gap: 0; width: 100%; }
.sja-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--line); }
.sja-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; box-sizing: border-box; font-family: var(--wp--preset--font-family--display); font-size: 1.375rem; font-weight: 700; padding: 0.875rem 0; border-radius: 0; }
.sja-nav .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content { box-shadow: none; }
.sja-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { background: none; }
@media (hover: hover) {
	.sja-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--crimson); }
}
/* "Apply now" lives in the header on wide screens and at the foot of the menu on small ones */
.sja-nav .sja-nav-apply { display: none; }
.sja-nav .wp-block-navigation__responsive-container.is-menu-open .sja-nav-apply { display: block; border-bottom: 0; margin-top: 1.5rem; }
.sja-nav .wp-block-navigation__responsive-container.is-menu-open .sja-nav-apply .wp-block-navigation-item__content { padding: 0.9rem 1.25rem; border-radius: 12px; background: var(--wp--preset--color--crimson); color: #FFFFFF; font-family: var(--wp--preset--font-family--body); font-size: 1.0625rem; text-align: center; }
.sja-header-cta .wp-block-button__link { min-height: 2.75rem; padding: 0.6rem 1.1rem; font-size: 0.9375rem; white-space: nowrap; }
.sja-header-right { gap: 0.75rem; }
/* Switch to the menu button below 1100px, where the full menu no longer fits */
@media (max-width: 1100px) {
	.wp-block-buttons.sja-header-cta { display: none; }
	.sja-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.sja-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 480px) {
	.sja-brand-sub { display: none; }
	.sja-brand-name { font-size: 1.0625rem; white-space: normal; }
}

/* ---------- Home hero ---------- */
.sja-hero { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.sja-hero .wp-block-columns { align-items: center; gap: clamp(2rem, 5vw, 3.5rem); }
.sja-urdu { margin: 0; font-family: var(--wp--preset--font-family--urdu); font-weight: 600; font-size: 1.75rem; line-height: 2.1; color: var(--wp--preset--color--crimson); text-align: left; }
.sja-hero-title { margin: 0.25rem 0 0; padding-bottom: 0.28em; }
.sja-people { gap: 1.25rem; }
.sja-person { position: relative; margin: 0; padding: 1.25rem 1.25rem 1.25rem 4.75rem; min-height: 4.5rem; display: flex; flex-direction: column; justify-content: center; background: #FFFFFF; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; }
.sja-person::before { content: ""; position: absolute; left: 1.125rem; top: 50%; width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; border-radius: 50%; background: var(--wp--preset--color--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center / 1.375rem no-repeat; }
.sja-person > * { margin: 0; }
.sja-person h3 { font-size: 1.125rem; line-height: 1.3; }
.sja-person .sja-person-role { margin-top: 0.25rem; font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.sja-people-head { margin: 2.25rem 0 1rem; font-size: 1.125rem; }
.sja-motto { margin-top: 1.5rem; padding-left: 1rem; border-left: 4px solid var(--wp--preset--color--crimson); font-family: var(--wp--preset--font-family--display); font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.3; color: var(--wp--preset--color--ink); }
.sja-hero-note { display: flex; align-items: center; gap: 0.75rem; margin: 1.75rem 0 0; font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--wp--preset--color--muted); }
.sja-hero-note::before { content: ""; flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--wp--preset--color--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.5 12.9 17 22l-5-3-5 3 1.5-9.1'/%3E%3C/svg%3E") center / 1.25rem no-repeat; }
mark.sja-stroke {
	background: transparent;
	color: inherit;
	padding: 0;
	position: relative;
	display: inline-block;
	white-space: nowrap;
}
mark.sja-stroke::after {
	content: "";
	position: absolute;
	left: -2%;
	width: 104%;
	bottom: -0.34em;
	height: 0.3em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15 C 60 5, 120 4, 180 9 S 262 17, 296 7' fill='none' stroke='%23B01B2E' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.sja-collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 214px 214px; gap: 1rem; }
.sja-collage .wp-block-image { margin: 0; height: 100%; border-radius: 22px; overflow: hidden; }
.sja-collage .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block; }
.sja-collage .wp-block-image:first-child { grid-row: 1 / 3; }
@media (max-width: 600px) { .sja-collage { grid-template-rows: 150px 150px; } }

/* ---------- Photo slider (home page) ---------- */
.sja-slider { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: var(--wp--preset--color--ink); aspect-ratio: 5 / 4; isolation: isolate; }
.sja-slider__track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sja-slider__track::-webkit-scrollbar { display: none; }
.sja-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.sja-slide__figure { margin: 0; height: 100%; }
.sja-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sja-slide figcaption { position: absolute; inset: auto 0 0 0; padding: 4.5rem 1.25rem 3.75rem; background: linear-gradient(to top, rgba(14, 19, 44, 0.88), rgba(14, 19, 44, 0.45) 55%, transparent); color: #FFFFFF; font-family: var(--wp--preset--font-family--display); font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.sja-slide figcaption a { color: #FFFFFF; text-decoration: none; }
.sja-slide figcaption a::after { content: " \2192"; }
.sja-slide figcaption a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.sja-slide__date { display: block; margin-top: 0.25rem; font-family: var(--wp--preset--font-family--body); font-size: 0.875rem; font-weight: 600; color: #DCE1EF; }
.sja-slider__controls { position: absolute; inset: auto 1.25rem 0.875rem 1.25rem; display: flex; align-items: center; gap: 0.5rem; z-index: 2; }
.sja-slider__dots { display: flex; align-items: center; gap: 0.125rem; margin-right: auto; }
.sja-slider__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.sja-slider__dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.55); transform: translate(-50%, -50%); transition: width 0.25s ease, background-color 0.25s ease; }
.sja-slider__dot[aria-current="true"]::before { width: 22px; background: #FFFFFF; }
.sja-slider__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.92); color: var(--wp--preset--color--ink); cursor: pointer; box-shadow: 0 2px 10px rgba(14, 19, 44, 0.18); }
.sja-slider__btn::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--sja-btn-icon) center / contain no-repeat; mask: var(--sja-btn-icon) center / contain no-repeat; }
.sja-slider__btn:hover { background: #FFFFFF; }
.sja-slider__prev { --sja-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.sja-slider__next { --sja-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.sja-slider__toggle { position: absolute; top: 0.875rem; right: 0.875rem; z-index: 2; width: 36px; height: 36px; --sja-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='6' y='5' width='4' height='14' rx='1'/%3E%3Crect x='14' y='5' width='4' height='14' rx='1'/%3E%3C/svg%3E"); }
.sja-slider__toggle.is-paused { --sja-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E"); }
.sja-slider__toggle::before { width: 14px; height: 14px; }
.sja-slider:not(.is-ready) .sja-slider__controls, .sja-slider:not(.is-ready) .sja-slider__toggle { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .sja-slider__dot::before { transition: none; } }
@media (max-width: 781px) { .sja-slider { aspect-ratio: 4 / 3; } .sja-slide figcaption { font-size: 1.0625rem; padding-bottom: 3.5rem; } }

/* ---------- Events ---------- */
.sja-event-grid { gap: 1.75rem; }
.sja-event-grid > li { margin: 0; }
.sja-event-card { height: 100%; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--wp--preset--color--line); border-radius: 20px; overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.sja-event-card:hover { box-shadow: 0 12px 30px rgba(20, 27, 52, 0.12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .sja-event-card { transition: none; } .sja-event-card:hover { transform: none; } }
.sja-event-card > * { margin: 0; }
.sja-event-card .wp-block-post-featured-image { margin: 0; }
.sja-event-card .wp-block-post-featured-image img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.sja-event-card .sja-event-date { margin: 1.125rem 1.25rem 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--crimson); }
.sja-event-card .wp-block-post-title { margin: 0.375rem 1.25rem 0; font-size: 1.25rem; line-height: 1.3; }
.sja-event-card .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.sja-event-card .wp-block-post-title a:hover { color: var(--wp--preset--color--crimson); }
.sja-event-card .wp-block-post-excerpt { margin: 0.5rem 1.25rem 1.375rem; color: var(--wp--preset--color--text); font-size: 0.9375rem; }
.sja-event-card .wp-block-post-excerpt__excerpt { margin: 0; }
.sja-event-card > :last-child { margin-bottom: 1.375rem; }
.wp-block-post-featured-image.sja-fit-contain { background: var(--wp--preset--color--sky); }
.wp-block-post-featured-image.sja-fit-contain img { object-fit: contain !important; }
.wp-block-post-featured-image.sja-photo.sja-fit-contain { display: flex; justify-content: center; border-radius: 22px; }
.wp-block-post-featured-image.sja-photo.sja-fit-contain img { aspect-ratio: auto; width: auto; max-width: 100%; height: auto; max-height: min(80vh, 760px); border-radius: 0; }
.sja-events-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.sja-events-head > * { margin: 0; }
.sja-events-query .wp-block-query-pagination { margin-top: 2.5rem; gap: 0.5rem; justify-content: center; }
.sja-event-photos { margin-top: 2rem; }

/* ---------- Features (why SJA) ---------- */
.sja-features { gap: 2.25rem 2.5rem; }
.sja-feature { padding-top: 1.375rem; border-top: 1px solid var(--wp--preset--color--line); }
.sja-feature::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	margin-bottom: 0.75rem;
	background: var(--wp--preset--color--rose) var(--sja-feature-icon) center / 22px no-repeat;
}
.sja-feature h3 { margin: 0 0 0.5rem; }
.sja-feature p { margin: 0; }
.sja-fi-chat { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.sja-fi-bulb { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V16h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.sja-fi-chart { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V11'/%3E%3Cpath d='M10 20V5'/%3E%3Cpath d='M16 20v-6'/%3E%3Cpath d='M21 20H3'/%3E%3C/svg%3E"); }
.sja-fi-shapes { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='3.5'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.2'/%3E%3Cpath d='M12 13.5l4 7H8z'/%3E%3C/svg%3E"); }
.sja-fi-heart { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.sja-fi-shield { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }

/* ---------- Photos ---------- */
.sja-photo { margin: 0; border-radius: 22px; overflow: hidden; }
.sja-photo img { width: 100%; border-radius: 22px; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.sja-photo figcaption { margin: 0; padding: 0.75rem 0 0; font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.sja-band-ink .sja-photo figcaption { color: #C5CBE0; }
.sja-band-ink .sja-photo figcaption a { font-weight: 700; text-decoration: none; }
.sja-band-ink .sja-photo figcaption a::after { content: " \2197"; }

/* ---------- Chips ---------- */
.sja-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.625rem; }
.sja-chips li { margin: 0; padding: 0.5rem 0.875rem; border-radius: 999px; background: #FFFFFF; border: 1px solid #D2D9E8; font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--ink); }

/* ---------- Cards ---------- */
.sja-card { background: #FFFFFF; border: 1px solid var(--wp--preset--color--line); border-radius: 20px; padding: clamp(1.375rem, 3vw, 1.875rem); }
.sja-card > * { margin-block: 0; }
.sja-card > * + * { margin-top: 0.875rem; }
.sja-card--soft { background: var(--wp--preset--color--paper); }
.sja-card--raised { box-shadow: 0 1px 2px rgba(27, 35, 64, 0.06), 0 8px 24px rgba(27, 35, 64, 0.06); }
.sja-card--ink { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #DCE1EF; }
.sja-card--ink h2, .sja-card--ink h3 { color: #FFFFFF; }
.sja-cards { gap: 1.5rem; }

/* ---------- Steps ---------- */
.sja-steps { gap: 1.5rem; }
.sja-step > * { margin-block: 0; }
.sja-step > * + * { margin-top: 0.75rem; }
.sja-step-num { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2.75rem; line-height: 1; color: var(--wp--preset--color--crimson); }

/* ---------- Lists ---------- */
.sja-checklist { list-style: none; padding: 0; margin: 0; }
.sja-checklist li { position: relative; padding-left: 1.875rem; margin: 0 0 0.75rem; }
.sja-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.25rem;
	height: 1.25rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sja-ruled { list-style: none; padding: 0; margin: 0; column-gap: 3rem; }
.sja-ruled li { padding: 1rem 0 1rem 1.875rem; border-bottom: 1px solid var(--wp--preset--color--line); position: relative; break-inside: avoid; }
.sja-ruled li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.2em;
	width: 1.25rem;
	height: 1.25rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 900px) { .sja-ruled.is-two-col { columns: 2; } }
.sja-card ul:not(.sja-checklist):not(.sja-chips):not(.sja-hours) { padding-left: 1.25rem; }
.sja-card li + li { margin-top: 0.625rem; }
.sja-iconlist { list-style: none; padding: 0; margin: 0; }
.sja-iconlist li { margin: 0 0 0.875rem; }
.sja-iconlist li.sja-ic { padding-left: 2em; }
.sja-iconlist li.sja-ic::before { color: var(--wp--preset--color--crimson); width: 1.35em; height: 1.35em; top: 0.1em; }
.sja-band-ink .sja-iconlist li.sja-ic::before { color: #F3B8C0; }
.sja-band-ink .sja-iconlist li { color: #FFFFFF; }

/* ---------- Definition style rows ---------- */
.sja-rows > * { margin: 0; padding-block: 1rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.sja-rows > *:last-child { border-bottom: 0; }
.sja-rows h3 { font-size: 1.1875rem; margin-bottom: 0.25rem; padding-bottom: 0; border-bottom: 0; }
.sja-rows h3 + p { padding-top: 0; }

/* ---------- Page heroes ---------- */
.sja-page-hero { padding-block: 3.5rem 4rem; }
.sja-page-hero > * { margin-block: 0; }
.sja-page-hero > * + * { margin-top: 0.875rem; }
.sja-page-hero h1 { font-size: clamp(2.375rem, 4.4vw, 3.625rem); line-height: 1.05; letter-spacing: -0.02em; }
.sja-page-hero .sja-lead { color: #DCE1EF; max-width: 40em; }
.sja-breadcrumb { font-size: 0.875rem; color: #C5CBE0; }
.sja-band-ink .sja-breadcrumb a { color: #C5CBE0; }

/* ---------- Map ---------- */
.sja-mapframe iframe { width: 100%; min-height: 440px; border: 0; border-radius: 22px; display: block; }

/* ---------- Gallery ---------- */
.sja-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 16px; }

/* ---------- Forms (Contact Form 7 and Forminator) ---------- */
.sja-form .wpcf7 input[type="text"], .sja-form .wpcf7 input[type="email"], .sja-form .wpcf7 input[type="tel"], .sja-form .wpcf7 textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 0.875rem;
	border-radius: 10px;
	border: 1.5px solid #C9D1E3;
	background: #FFFFFF;
	font: inherit;
	color: var(--wp--preset--color--ink);
	box-sizing: border-box;
}
.sja-form .wpcf7 input[type="submit"] {
	min-height: 3.25rem;
	padding: 0 1.6rem;
	border: 0;
	border-radius: 12px;
	background: var(--wp--preset--color--crimson);
	color: #FFFFFF;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* ---------- Footer ---------- */
.sja-footer { background: var(--wp--preset--color--night); color: #C5CBE0; font-size: 0.9375rem; }
.sja-footer-inner { padding-block: 4rem 1.75rem; }
.sja-footer-cols { gap: 2rem; }
.sja-footer h2 { margin: 0 0 0.75rem; font-family: var(--wp--preset--font-family--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8F98B8; }
.sja-footer p { margin: 0 0 0.625rem; line-height: 1.5; }
.sja-footer a { color: #E4E8F4; text-decoration: none; }
.sja-footer a:hover { text-decoration: underline; }
.sja-footer-name { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.25rem; color: #FFFFFF; }
.sja-footer .sja-urdu { font-size: 1.25rem; color: #F3B8C0; }
.sja-footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #2C3660; font-size: 0.8125rem; color: #8F98B8; }
.sja-footer-bottom p { margin: 0; }
.sja-footer-bottom .sja-legal-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.sja-footer-bottom .sja-legal-links a { color: #C5CBE0; text-decoration: none; }
.sja-footer-bottom .sja-legal-links a:hover, .sja-footer-bottom .sja-legal-links a:focus-visible { color: #FFFFFF; text-decoration: underline; }

/* ---------- Call to action panel ---------- */
.wp-block-columns.sja-cta { align-items: center; gap: 1.25rem 2.5rem; margin: 0; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 24px; background: var(--wp--preset--color--sky); }
.sja-cta h2 { margin: 0; font-size: clamp(1.625rem, 3vw, 2.125rem); }
.sja-cta p { margin: 0.5rem 0 0; }
@media (min-width: 782px) { .sja-cta .wp-block-buttons { justify-content: flex-end; } }

/* ---------- Cards with headings, bullets and notes ---------- */
.sja-card h2 { font-size: 1.5rem; line-height: 1.2; }
.sja-card li::marker { color: var(--wp--preset--color--crimson); }
.sja-card .wp-block-buttons { margin-top: 1.25rem; }
.sja-span-all { grid-column: 1 / -1; }
.wp-block-group.sja-cards.is-top { align-items: start; }
.sja-card--ink .sja-checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3B8C0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.sja-card--ink a:not(.wp-block-button__link) { color: #F3B8C0; }
@media (min-width: 900px) { .sja-checklist.is-two-col { columns: 2; column-gap: 3rem; } .sja-checklist.is-two-col li { break-inside: avoid; } }
.sja-nowrap { white-space: nowrap; }
.sja-note { margin: 0; padding: 1rem 1.25rem; border-radius: 14px; background: #FFF6F7; border: 1px solid #F3D3D8; color: var(--wp--preset--color--ink); }
.sja-note.sja-ic { padding-left: 3rem; }
.sja-note.sja-ic::before { left: 1.15rem; top: 1.25rem; color: var(--wp--preset--color--crimson); }
.sja-tile::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	margin-bottom: 0.25rem;
	background: var(--wp--preset--color--rose) var(--sja-feature-icon) center / 22px no-repeat;
}
.sja-fi-pin { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6.2-6.5-11a6.5 6.5 0 0 1 13 0c0 4.8-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E"); }
.sja-fi-doc { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.sja-fi-laptop { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='11' rx='1.5'/%3E%3Cpath d='M2 19h20'/%3E%3C/svg%3E"); }

.sja-fi-phone { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.5 4-2 1.5a11 11 0 0 0 6.5 6.5l1.5-2 4 1.5V19a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.sja-fi-mail { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2'/%3E%3Cpath d='M4 7.5l8 6 8-6'/%3E%3C/svg%3E"); }
.sja-fi-clock { --sja-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

/* ---------- Activities ---------- */
.sja-activity { background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: 1.5rem; }
.sja-activity > * { margin-block: 0; }
.sja-activity > * + * { margin-top: 0.5rem; }
.sja-activity h3 { font-size: 1.1875rem; }
.sja-activity.is-ink { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #DCE1EF; }
.sja-activity.is-ink h3 { color: #FFFFFF; }

/* ---------- Rows (how we teach) ---------- */
.sja-rows > .sja-row > * { margin: 0; }
.sja-rows > .sja-row > * + * { margin-top: 0.25rem; }

/* ---------- Contact ---------- */
.sja-contact-card h2 { margin: 0; font-size: 1.25rem; }
.sja-contact-card p { margin: 0; }
.sja-contact-card .sja-more { margin-top: 0.25rem; }
.sja-hours { list-style: none; margin: 0.75rem 0 1rem; padding: 0; border-top: 1px solid var(--wp--preset--color--line); }
.sja-hours li { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.625rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.sja-hours li strong { color: var(--wp--preset--color--ink); font-weight: 600; }
.sja-contact-card .sja-hours { margin: 0.25rem 0 0; font-size: 0.9375rem; }
.sja-contact-card .sja-hours li { padding: 0.375rem 0; }
.sja-card .sja-hours li + li { margin-top: 0; }
.sja-contact-card .sja-landmark { margin-top: -0.25rem; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.sja-mapframe { margin: 0; }
.sja-mapframe iframe { background: #DCE3F0; }
.sja-form-card h2 { font-size: 1.5rem; }
.sja-form .wpcf7 label { display: block; font-weight: 600; color: var(--wp--preset--color--ink); }
.sja-form .wpcf7 select { width: 100%; min-height: 3rem; padding: 0.5rem 0.75rem; border-radius: 10px; border: 1.5px solid #C9D1E3; background: #FFFFFF; font: inherit; color: var(--wp--preset--color--ink); }
.sja-form .wpcf7 textarea { min-height: 9rem; }
.sja-form .wpcf7 p { margin: 0 0 1rem; }
.sja-form .wpcf7-not-valid-tip { font-size: 0.875rem; color: var(--wp--preset--color--crimson-dark); }
.sja-form .wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: 10px; }

/* Forminator (careers form): match the site's buttons and fields */
.sja-form .forminator-ui.forminator-custom-form .forminator-button-submit,
.sja-form .forminator-ui.forminator-custom-form[data-design="material"] .forminator-button-submit {
	min-height: 3.25rem;
	padding: 0 1.6rem;
	border: 0;
	border-radius: 12px;
	background-color: var(--wp--preset--color--crimson);
	box-shadow: none;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}
.sja-form .forminator-ui.forminator-custom-form .forminator-button-submit:hover,
.sja-form .forminator-ui.forminator-custom-form[data-design="material"] .forminator-button-submit:hover { background-color: var(--wp--preset--color--crimson-dark); box-shadow: none; }
.sja-form .forminator-ui.forminator-custom-form { font-family: inherit; }

/* ---------- Gallery page ---------- */
/* Photo on top at a 3:2 crop with the caption underneath. Core's gallery styles give every caption
   flex-basis 100%, which in current browsers squeezes the photo to nothing once the caption sits
   below it, so both sizes are set here. The !important rules beat a Bluehost plugin stylesheet that
   centres and narrows every image caption with !important. */
.sja-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex-grow: 0; justify-content: flex-start; }
.sja-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img { flex: 0 0 auto; height: auto; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sja-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) figcaption { position: static; flex: 0 0 auto; align-self: stretch; margin: 0.5rem 0 0 !important; max-width: none !important; padding: 0; background: none; backdrop-filter: none; color: var(--wp--preset--color--text); font-size: 0.875rem; font-weight: 600 !important; text-align: left; text-shadow: none; max-height: none; overflow: visible; }
.sja-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):has(figcaption)::before { content: none; }
.sja-photo.wp-block-image figcaption { margin-inline: 0 !important; max-width: none !important; }

/* ---------- Principal's message ---------- */
.sja-principal > * { margin-block: 0; }
.sja-principal .sja-eyebrow + * { margin-top: 1rem; }
.sja-principal > .sja-more { margin-top: 1.5rem; }
.wp-block-quote.sja-pullquote { margin-inline: 0; padding: 0 0 0 1.5rem; border: 0; border-left: 4px solid var(--wp--preset--color--crimson); }
.wp-block-quote.sja-pullquote p { margin: 0; max-width: 32em; font-family: var(--wp--preset--font-family--display); font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2rem); font-weight: 600; line-height: 1.3; color: var(--wp--preset--color--ink); text-wrap: balance; }
.wp-block-quote.sja-pullquote cite { display: block; margin-top: 1rem; font-size: 0.9375rem; font-style: normal; font-weight: 600; color: var(--wp--preset--color--muted); }
.sja-letter > * { margin-block: 0; }
.sja-letter > * + * { margin-top: 1.1rem; }
.sja-letter p { font-size: 1.0625rem; line-height: 1.75; }
.sja-letter .sja-signoff { margin-top: 1.75rem; font-weight: 600; color: var(--wp--preset--color--ink); }

/* ---------- Single posts and archives ---------- */
.sja-meta { font-size: 0.9375rem; color: #C5CBE0; }
.sja-prose > * + * { margin-top: 1.25rem; }
.sja-prose img { border-radius: 16px; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.sja-hero .wp-block-columns { gap: 2rem; }
	.sja-urdu { font-size: 1.5rem; }
	.sja-page-hero { padding-block: 2.5rem 3rem; }
}

/* 1.0.4: 25 years badge on the hero photos */
.sja-hero-media { position: relative; }
.sja-badge { position: absolute; z-index: 3; top: -1.25rem; left: -1.25rem; width: 6.75rem; height: 6.75rem; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; text-align: center; border-radius: 50%; border: 3px solid #FFFFFF; background: var(--wp--preset--color--crimson); color: #FFFFFF; box-shadow: 0 12px 26px rgba(142, 20, 36, 0.32); transform: rotate(-8deg); }
.sja-badge strong { font-family: var(--wp--preset--font-family--display); font-size: 2.375rem; font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; }
.sja-badge span { max-width: 5.25rem; font-size: 0.625rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 781px) { .sja-badge { top: -0.875rem; left: -0.375rem; width: 5.25rem; height: 5.25rem; } .sja-badge strong { font-size: 1.875rem; } .sja-badge span { max-width: 4.25rem; font-size: 0.5rem; } }

/* 1.0.4: at a glance numbers */
.sja-stats-band { padding-block: clamp(2.25rem, 4.5vw, 3.25rem); }
.wp-block-group.sja-stats { gap: 1.75rem 2.5rem; }
.sja-stat { margin: 0; padding-left: 1.125rem; border-left: 3px solid #F3B8C0; }
.sja-stat > * { margin: 0; }
.sja-stat .sja-stat-num { font-family: var(--wp--preset--font-family--display); font-size: clamp(2.375rem, 4.6vw, 3.375rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.sja-stat .sja-stat-label { margin-top: 0.5rem; max-width: 15rem; font-size: 0.9375rem; line-height: 1.45; color: #C5CBE0; }

/* 1.0.4: Houses */
.wp-block-group.sja-houses { gap: 1.25rem; }
.sja-house { --house: #2F6FDB; --house-soft: #EAF1FD; position: relative; margin: 0; padding: 5.25rem 1.5rem 1.625rem; border: 1px solid var(--wp--preset--color--line); border-top: 6px solid var(--house); border-radius: 20px; background: linear-gradient(180deg, var(--house-soft) 0%, #FFFFFF 75%); }
.sja-house::before { content: ""; position: absolute; top: 1.375rem; left: 1.5rem; width: 2.875rem; height: 2.875rem; background: var(--house); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='black'%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9'/%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9' transform='rotate(60 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9' transform='rotate(120 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9' transform='rotate(180 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9' transform='rotate(240 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9' transform='rotate(300 20 20)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='black'%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9'/%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9' transform='rotate(60 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9' transform='rotate(120 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9' transform='rotate(180 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9' transform='rotate(240 20 20)'/%3E%3Cellipse cx='20' cy='10' rx='5.5' ry='9' transform='rotate(300 20 20)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.sja-house::after { content: ""; position: absolute; top: calc(1.375rem + 1.4375rem - 0.4375rem); left: calc(1.5rem + 1.4375rem - 0.4375rem); width: 0.875rem; height: 0.875rem; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
.sja-house > * { margin: 0; }
.sja-house h3 { font-size: 1.3125rem; line-height: 1.25; }
.sja-house .sja-house-line { margin-top: 0.5rem; color: var(--wp--preset--color--muted); }
.sja-house.is-bluebells { --house: #2F6FDB; --house-soft: #EAF1FD; }
.sja-house.is-carnation { --house: #D62839; --house-soft: #FDECEE; }
.sja-house.is-daffodil { --house: #23905A; --house-soft: #E7F5EC; }
.sja-house.is-sunflower { --house: #E9A100; --house-soft: #FFF5DA; }

/* 1.0.4: FAQ */
.sja-faq-section .sja-section-head { margin-bottom: 1.5rem; }
.sja-faq { margin: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.sja-faq-section .sja-section-head + .sja-faq { border-top: 1px solid var(--wp--preset--color--line); }
.sja-faq summary { position: relative; padding: 1.125rem 3rem 1.125rem 0; list-style: none; cursor: pointer; font-family: var(--wp--preset--font-family--display); font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--wp--preset--color--ink); }
.sja-faq summary::-webkit-details-marker { display: none; }
.sja-faq summary::after { content: ""; position: absolute; top: 50%; right: 0.25rem; width: 1.75rem; height: 1.75rem; margin-top: -0.875rem; border-radius: 50%; background: var(--wp--preset--color--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B01B2E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 0.875rem no-repeat; transition: transform 0.2s ease; }
.sja-faq[open] summary::after { transform: rotate(45deg); }
.sja-faq summary:hover { color: var(--wp--preset--color--crimson); }
.sja-faq summary:focus-visible { outline: 2px solid var(--wp--preset--color--crimson); outline-offset: 4px; border-radius: 6px; }
.sja-faq > p { margin: 0 0 1.25rem; max-width: 46rem; }

/* 1.0.4: sections fade in as you scroll (only below the first screen, never with reduced motion) */
.sja-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sja-reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sja-reveal { opacity: 1; transform: none; transition: none; } .sja-faq summary::after { transition: none; } }
@media (max-width: 600px) { .wp-block-group.sja-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.5rem 1.25rem; } .sja-stat .sja-stat-label { font-size: 0.875rem; } }
@media print { .sja-reveal { opacity: 1 !important; transform: none !important; } }
.sja-contact-card a[href^="tel:"], footer .wp-block-column p a { display: inline-block; padding-block: 0.1875rem; }
a[href^="mailto:"] { overflow-wrap: break-word; }

/* 1.0.9: announcement strip, set under School details > Announcement */
.sja-notice { background: var(--wp--preset--color--rose); color: var(--wp--preset--color--ink); border-bottom: 1px solid #F3C9D0; font-size: 0.9375rem; line-height: 1.45; }
.sja-notice p { max-width: 1200px; margin: 0 auto; padding: 0.625rem 24px; text-align: center; text-wrap: balance; }
.sja-notice__text { font-weight: 600; }
.sja-notice a { margin-left: 0.25rem; color: var(--wp--preset--color--crimson-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; white-space: nowrap; }
.sja-notice a::after { content: " \2192"; }
.sja-notice.is-urgent { background: var(--wp--preset--color--crimson); border-bottom-color: var(--wp--preset--color--crimson-dark); color: #FFFFFF; }
.sja-notice.is-urgent a { color: #FFFFFF; }
.sja-notice a:focus-visible { outline-color: currentColor; }
@media print { .sja-notice { display: none; } }

/* 1.0.9: comments from parents on the home page, shown once there are some */
.wp-block-group.sja-voices { gap: 1.25rem; }
.wp-block-quote.sja-voice { margin: 0; padding: 1.375rem 1.5rem 1.5rem; border: 1px solid var(--wp--preset--color--line); border-radius: 20px; background: #FFFFFF; }
.wp-block-quote.sja-voice::before { content: "\201C"; display: block; height: 1.75rem; font-family: var(--wp--preset--font-family--display); font-size: 3.25rem; font-weight: 700; line-height: 1; color: var(--wp--preset--color--crimson); }
.wp-block-quote.sja-voice p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--wp--preset--color--ink); }
.wp-block-quote.sja-voice cite { display: block; margin-top: 0.875rem; font-size: 0.875rem; font-style: normal; font-weight: 600; color: var(--wp--preset--color--muted); }

/* 1.0.9: book a visit section on the Apply page */
.sja-enquiry-intro .sja-checklist { margin-top: 1.25rem; }
.sja-form-card .wp-block-buttons { margin-top: 1rem; }

/* 1.0.9: key dates, set under School details > Key dates */
.sja-dates { margin: 0 0 3rem; }
.sja-dates[hidden] { display: none; }
.sja-dates .sja-eyebrow { margin: 0 0 1rem; font-family: inherit; line-height: 1.4; }
.sja-dates__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 0.875rem; margin: 0; padding: 0; list-style: none; }
.sja-date { display: flex; align-items: center; gap: 0.875rem; margin: 0; padding: 0.875rem 1rem; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; background: #FFFFFF; }
.sja-date__badge { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 12px; background: var(--wp--preset--color--rose); color: var(--wp--preset--color--crimson-dark); line-height: 1; }
.sja-date__day { font-family: var(--wp--preset--font-family--display); font-size: 1.5rem; font-weight: 700; }
.sja-date__month { margin-top: 0.125rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sja-date__text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.sja-date__title { font-weight: 700; color: var(--wp--preset--color--ink); line-height: 1.35; }
.sja-date__title a { color: inherit; }
.sja-date__when { font-size: 0.875rem; color: var(--wp--preset--color--muted); }

/* 1.0.10: online registration on the Apply page */
#register, #enquiry { scroll-margin-top: 1rem; }
.sja-paper { margin-top: 1.75rem; }
.sja-paper h3 { margin: 0; font-size: 1.1875rem; }
.sja-paper p { margin: 0.375rem 0 0; }
.sja-paper .wp-block-buttons { margin-top: 1rem; }
.sja-reg-card .sja-enq-done { margin: 0; }
.sja-reg-card .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* 1.0.11: board results, set under School details > Home page */
.sja-results-layout .sja-section-head .sja-more { margin-top: 1.25rem; }
.sja-results-layout.is-single .sja-results { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
	.sja-results-layout.is-single { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
	.sja-results-layout.is-single .sja-section-head { margin-bottom: 0; }
}
.sja-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); gap: 1.25rem; }
.sja-result { margin: 0; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--wp--preset--color--line); border-radius: 20px; background: #FFFFFF; }
.sja-result__head h3 { margin: 0; font-size: 1.25rem; }
.sja-result__nums { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin: 1rem 0 1.25rem; }
.sja-result__nums p { display: flex; flex-direction: column; margin: 0; }
.sja-result__nums strong { font-family: var(--wp--preset--font-family--display); font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--wp--preset--color--crimson); font-variant-numeric: tabular-nums; }
.sja-result__nums span { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--muted); }
.sja-bars { display: grid; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.sja-bar { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; gap: 0.75rem; margin: 0; }
.sja-bar__label { font-weight: 700; color: var(--wp--preset--color--ink); }
.sja-bar__track { height: 0.875rem; border-radius: 999px; background: var(--wp--preset--color--sky); overflow: hidden; }
.sja-band-sky .sja-bar__track { background: #DCE3F0; }
.sja-bar__fill { display: block; width: var(--w, 0%); height: 100%; border-radius: inherit; background: var(--wp--preset--color--ink); }
.sja-bar:first-child .sja-bar__fill { background: var(--wp--preset--color--crimson); }
.sja-bar__num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--wp--preset--color--ink); }
.sja-result.sja-reveal .sja-bar__fill { width: 0; transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.sja-result.sja-reveal.is-revealed .sja-bar__fill { width: var(--w, 0%); }
@media (prefers-reduced-motion: reduce) { .sja-result.sja-reveal .sja-bar__fill { width: var(--w, 0%); transition: none; } }
@media print { .sja-result .sja-bar__fill { width: var(--w, 0%) !important; } }

/* 1.0.11: school video, loaded only when someone presses play */
.sja-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: var(--wp--preset--color--ink); }
.sja-video img, .sja-video iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.sja-video__play { position: absolute; inset: 0; display: block; }
.sja-video__play img { transition: transform 0.4s ease; }
.sja-video__play:hover img { transform: scale(1.02); }
.sja-video__button { position: absolute; top: 50%; left: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: var(--wp--preset--color--crimson); box-shadow: 0 8px 24px rgba(20, 26, 51, 0.35); }
.sja-video__button::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 0.75rem 0 0.75rem 1.25rem; border-color: transparent transparent transparent #FFFFFF; }
.sja-video__play:focus-visible { outline: 3px solid #2F6FED; outline-offset: 3px; }

/* 1.0.11: downloads for parents, set under School details > Downloads */
.sja-downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 0.875rem; margin: 0; padding: 0; list-style: none; }
.sja-download { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; padding: 1rem 1.125rem; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; background: #FFFFFF; }
.sja-download a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-weight: 700; text-decoration: none; color: var(--wp--preset--color--ink); }
.sja-download a:hover .sja-download__title { text-decoration: underline; text-underline-offset: 0.18em; }
.sja-download__kind { flex: 0 0 auto; padding: 0.125rem 0.5rem; border-radius: 6px; background: var(--wp--preset--color--rose); color: var(--wp--preset--color--crimson-dark); font-size: 0.75rem; letter-spacing: 0.04em; }
.sja-download__note { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.sja-downloads-aside { margin-top: 1.75rem; }
.sja-downloads-aside h3 { margin: 0 0 0.75rem; font-size: 1.125rem; }
.sja-downloads-aside .sja-downloads { grid-template-columns: minmax(0, 1fr); gap: 0.625rem; }

/* 1.0.11: a parent's comment beside the registration form, and the share link */
.sja-voice-aside { margin-top: 1.75rem; }
.sja-voice-aside .wp-block-quote.sja-voice { background: #FFFFFF; }
.sja-voices-more { margin-top: 2rem; }

/* 1.0.12: examination boards, at the top of the home page and with the results */
.sja-new { display: inline-block; padding: 0.1875rem 0.5rem; border-radius: 999px; background: var(--wp--preset--color--crimson); color: #FFFFFF; font-size: 0.6875rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.sja-affil { margin: 1.75rem 0 0; }
.sja-affil__label { margin: 0 0 0.625rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.sja-affil__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr)); gap: 0.625rem; max-width: 36rem; margin: 0; padding: 0; list-style: none; }
.sja-affil__list li { margin: 0; }
.sja-affil__item { display: flex; align-items: center; gap: 0.75rem; height: 100%; padding: 0.5rem 0.875rem 0.5rem 0.5rem; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: #FFFFFF; color: var(--wp--preset--color--ink); text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.sja-affil__item:hover { border-color: #B9C2D8; box-shadow: 0 8px 20px -14px rgba(27, 35, 64, 0.5); }
.sja-affil__item.is-new { border-color: #EDB9C1; }
.sja-affil__logo { flex: 0 0 auto; display: grid; place-items: center; width: 3rem; height: 2.75rem; }
.sja-affil__logo img { display: block; max-width: 100%; max-height: 100%; }
.sja-affil__text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.sja-affil__short { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-weight: 700; line-height: 1.3; }
.sja-affil__name { font-size: 0.8125rem; line-height: 1.35; color: var(--wp--preset--color--muted); }
@media (max-width: 599px) {
	/* On phones the two boards sit side by side with their short names. The full names stay for screen readers and show further down the page. */
	.sja-affil { margin-bottom: 0.75rem; }
	.sja-affil__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
	.sja-affil__item { gap: 0.5rem; padding: 0.375rem 0.625rem 0.375rem 0.375rem; border-radius: 12px; }
	.sja-affil__logo { width: 2.5rem; height: 2.25rem; }
	.sja-affil__short { gap: 0.375rem; }
	.sja-affil__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

#boards { scroll-margin-top: 1.5rem; }
.sja-section-head > .sja-boards { margin-top: 1.75rem; }
.sja-boards__title { margin: 0 0 0.75rem; font-size: 1.0625rem; }
.sja-boards__list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.sja-board { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 0.875rem 1.125rem 0.875rem 0.875rem; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; background: #FFFFFF; }
.sja-board.is-new { border-color: #EDB9C1; box-shadow: inset 4px 0 0 var(--wp--preset--color--crimson); }
.sja-board__logo { flex: 0 0 auto; display: grid; place-items: center; width: 4.25rem; height: 3.5rem; }
.sja-board__logo img { display: block; max-width: 100%; max-height: 100%; }
.sja-board__text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; min-width: 0; }
.sja-board__text strong { color: var(--wp--preset--color--ink); line-height: 1.35; }
.sja-board__note { font-size: 0.9375rem; line-height: 1.5; color: var(--wp--preset--color--muted); }
.sja-results-layout.is-boards-only .sja-boards__list { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.sja-results-layout.is-boards-only > .sja-more { margin-top: 1.5rem; }
.sja-result__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.sja-result__board { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.25rem 0.75rem 0.25rem 0.375rem; border-radius: 999px; background: var(--wp--preset--color--sky); font-size: 0.8125rem; font-weight: 700; color: var(--wp--preset--color--ink); }
.sja-result__board img { display: block; max-width: 1.875rem; max-height: 1.5rem; }
