/* =========================================================================
   WELS School — main stylesheet
   Colour / shape tokens are injected as CSS variables from the Customizer
   (see inc/dynamic-css.php). Fallback values below keep the theme usable
   even before the plugin/customizer run.
   ========================================================================= */

:root {
	--wels-primary: #1f5f5b;
	--wels-primary-dark: #164542;
	--wels-accent: #e8792b;
	--wels-ink: #1e2a2a;
	--wels-muted: #5b6b6a;
	--wels-bg: #ffffff;
	--wels-alt-bg: #f4f1ea;
	--wels-header-bg: #ffffff;
	--wels-topbar-bg: #164542;
	--wels-footer-bg: #12211f;
	--wels-radius: 14px;
	--wels-btn-radius: 14px;
	--wels-base-size: 16px;
	--wels-heading-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wels-body-font: var(--wels-gfont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	--wels-maxw: 1180px;
	--wels-shadow: 0 6px 24px rgba(20, 40, 38, 0.10);
	--wels-shadow-sm: 0 2px 10px rgba(20, 40, 38, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--wels-body-font);
	font-size: var(--wels-base-size);
	line-height: 1.65;
	color: var(--wels-ink);
	background: var(--wels-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wels-primary); text-decoration: none; }
a:hover, a:focus { color: var(--wels-primary-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--wels-heading-font); line-height: 1.2; color: var(--wels-ink); font-weight: 700; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--wels-accent); outline-offset: 2px; }

.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;
}
.wels-skip-link:focus {
	position: fixed; left: 12px; top: 12px; z-index: 1000; width: auto; height: auto;
	clip: auto; padding: 10px 16px; background: #fff; color: var(--wels-primary); border-radius: 8px;
}

.wels-container { max-width: var(--wels-maxw); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Buttons ---------- */
.wels-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: var(--wels-btn-radius); border: 2px solid transparent;
	font-weight: 600; font-size: 0.95rem; line-height: 1; cursor: pointer;
	text-decoration: none; transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.wels-btn:hover, .wels-btn:focus { text-decoration: none; transform: translateY(-1px); }
.wels-btn-primary { background: var(--wels-primary); color: #fff; }
.wels-btn-primary:hover, .wels-btn-primary:focus { background: var(--wels-primary-dark); color: #fff; }
.wels-btn-accent { background: var(--wels-accent); color: #fff; }
.wels-btn-accent:hover, .wels-btn-accent:focus { filter: brightness(0.93); color: #fff; }
.wels-btn-outline { background: transparent; color: var(--wels-primary); border-color: var(--wels-primary); }
.wels-btn-outline:hover, .wels-btn-outline:focus { background: var(--wels-primary); color: #fff; }
.wels-btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.wels-btn-ghost:hover, .wels-btn-ghost:focus { background: rgba(255,255,255,.25); color: #fff; }
.wels-btn-link { background: none; border: 0; color: var(--wels-primary); padding: 6px 2px; font-weight: 600; }
.wels-btn-link:hover, .wels-btn-link:focus { text-decoration: underline; }
.wels-btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.wels-link { font-weight: 600; }

/* ---------- Sections ---------- */
.wels-section { padding: clamp(44px, 7vw, 84px) 0; background: var(--wels-bg); position: relative; }
/* Explicit alternating backgrounds (order-independent) */
.wels-journey, .wels-facilities, .wels-kg, .wels-faculty, .wels-notices, .wels-downloads, .wels-contact { background: var(--wels-alt-bg); }
.wels-stats, .wels-payfee { background: var(--wels-primary); }
.wels-section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.wels-section-title { font-size: clamp(1.5rem, 3.2vw, 2.15rem); margin: 0 0 .3em; position: relative; }
.wels-section-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--wels-accent); border-radius: 3px; margin: 14px auto 0; }
.wels-section-sub { color: var(--wels-muted); margin: 0; font-size: 1.05rem; }
.wels-section-cta { text-align: center; margin-top: clamp(24px, 4vw, 40px); }

/* ---------- Top bar ---------- */
.wels-topbar { background: var(--wels-topbar-bg); color: rgba(255,255,255,.92); font-size: 0.85rem; }
.wels-topbar a { color: rgba(255,255,255,.92); }
.wels-topbar a:hover { color: #fff; text-decoration: none; }
.wels-topbar-inner { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.wels-topbar-left { display: flex; align-items: center; }
.wels-topbar-right { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; justify-content: flex-end; }
.wels-topbar-right li { display: inline-flex; align-items: center; gap: 6px; }
.wels-topbar-right .dashicons { font-size: 16px; width: 16px; height: 16px; }
.wels-topbar-aff { font-weight: 600; letter-spacing: .02em; }
.wels-topbar-link a { opacity: .85; }
.wels-topbar-social { display: inline-flex; }
.wels-topbar-social .wels-social-row { gap: 8px; }
.wels-topbar-social .wels-social {
	width: 24px; height: 24px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.92);
}
.wels-topbar-social .wels-social svg { width: 14px; height: 14px; }
.wels-topbar-social .wels-social:hover, .wels-topbar-social .wels-social:focus { background: rgba(255,255,255,.28); color: #fff; }

/* ---------- Header (two-tier: brand strip + nav bar) ---------- */
.wels-site-header { background: var(--wels-header-bg); position: sticky; top: 0; z-index: 200; box-shadow: 0 1px 0 rgba(20,40,38,.08); transition: box-shadow .25s ease; }
.wels-site-header.is-shrunk { box-shadow: var(--wels-shadow); }

.wels-header-inner { display: flex; align-items: center; gap: 20px 28px; padding-top: 16px; padding-bottom: 16px; transition: padding .25s ease; }
.wels-site-header.is-shrunk .wels-header-inner { padding-top: 9px; padding-bottom: 9px; }

.wels-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wels-branding .custom-logo-link { display: inline-flex; flex: 0 0 auto; line-height: 0; }
.wels-branding .custom-logo { width: auto; height: 60px; max-width: 260px; object-fit: contain; transition: height .25s ease; }
.wels-site-header.is-shrunk .wels-branding .custom-logo { height: 44px; }
.wels-branding-text { display: flex; flex-direction: column; min-width: 0; }
.wels-site-name { font-family: var(--wels-heading-font); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--wels-ink); letter-spacing: -0.01em; line-height: 1.15; }
a.wels-site-name:hover { text-decoration: none; color: var(--wels-primary); }
.wels-site-sub { font-size: 0.8rem; color: var(--wels-muted); }

.wels-header-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.wels-branding { margin-right: auto; }

/* ---- Header layout: two rows (stacked) ---- */
.wels-header-stacked .wels-header-inner { flex-wrap: wrap; }
.wels-header-stacked .wels-branding { margin-right: auto; }
.wels-header-stacked .wels-primary-nav {
	order: 3; flex-basis: 100%;
	margin: 12px -20px -16px; padding: 0 20px;
	border-top: 1px solid rgba(20,40,38,.08);
}
.wels-header-stacked.is-shrunk .wels-primary-nav { margin-top: 6px; margin-bottom: -9px; }
.wels-header-stacked .wels-primary-nav { justify-content: flex-start; }
.wels-header-stacked.wels-nav-center .wels-primary-nav { justify-content: center; }
.wels-header-stacked.wels-nav-right  .wels-primary-nav { justify-content: flex-end; }

/* ---- Header layout: single row (inline) ---- */
.wels-header-inline .wels-primary-nav { margin-left: auto; }
.wels-header-inline .wels-header-right { margin-left: 0; }
.wels-header-inline .wels-menu > .wels-menu-item > a { padding: 12px 14px; }

.wels-site-header.is-shrunk .wels-menu > .wels-menu-item > a { padding-top: 11px; padding-bottom: 11px; }
.wels-primary-nav { display: flex; }
.wels-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; }
.wels-menu > .wels-menu-item > a { padding: 15px 16px; }
.wels-menu a {
	display: flex; align-items: center; gap: 6px; padding: 12px 16px;
	color: var(--wels-ink); font-weight: 600; font-size: 0.94rem; border-radius: 8px;
	position: relative; transition: color .18s ease, background .18s ease;
}
.wels-menu > .wels-menu-item > a::after {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
	background: var(--wels-accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
	transition: transform .22s ease;
}
.wels-menu > .wels-menu-item > a:hover::after,
.wels-menu > .wels-menu-item.current-menu-item > a::after,
.wels-menu > .wels-menu-item.current-menu-ancestor > a::after { transform: scaleX(1); }
.wels-menu a:hover, .wels-menu .current-menu-item > a, .wels-menu .current-menu-ancestor > a { color: var(--wels-primary); text-decoration: none; }
.wels-menu-item { position: relative; }
.wels-sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%;
	min-width: 230px; background: #fff; border-radius: 12px; box-shadow: var(--wels-shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 50;
	border: 1px solid rgba(20,40,38,.06);
}
.wels-sub-menu .wels-sub-menu { left: 100%; top: -9px; }
.wels-menu-item:hover > .wels-sub-menu, .wels-menu-item:focus-within > .wels-sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.wels-sub-menu a { padding: 10px 12px; font-weight: 500; border-radius: 7px; }
.wels-sub-menu a:hover { background: rgba(31,95,91,.08); }
.wels-submenu-toggle { display: none; }

.wels-caret { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .6; }

.wels-header-actions { display: flex; align-items: center; gap: 10px; }
.wels-header-actions-header .wels-btn { padding: 9px 16px; font-size: 0.85rem; }
.wels-header-actions-mobile { flex-direction: column; align-items: stretch; margin-top: 20px; }
.wels-header-actions-mobile .wels-btn { width: 100%; }

/* ---------- Mobile nav toggle ---------- */
.wels-nav-toggle {
	display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
	position: relative; border-radius: 8px; margin-left: auto;
}
.wels-nav-toggle-bar, .wels-nav-toggle-bar::before, .wels-nav-toggle-bar::after {
	content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--wels-ink); transition: .2s ease;
}
.wels-nav-toggle-bar { top: 21px; }
.wels-nav-toggle-bar::before { top: -7px; }
.wels-nav-toggle-bar::after { top: 7px; }
body.wels-nav-open .wels-nav-toggle-bar { background: transparent; }
body.wels-nav-open .wels-nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
body.wels-nav-open .wels-nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* ---------- Mobile off-canvas ---------- */
.wels-mobile-nav { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.wels-mobile-nav.is-open { visibility: visible; }
.wels-mobile-nav-overlay { position: absolute; inset: 0; background: rgba(10,20,19,.5); opacity: 0; transition: opacity .25s ease; }
.wels-mobile-nav.is-open .wels-mobile-nav-overlay { opacity: 1; }
.wels-mobile-nav-panel {
	position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
	background: #fff; padding: 64px 22px 40px; overflow-y: auto;
	transform: translateX(100%); transition: transform .28s ease; box-shadow: -12px 0 40px rgba(0,0,0,.18);
	z-index: 1;
}
.wels-mobile-nav.is-open .wels-mobile-nav-panel { transform: translateX(0); }
.wels-mobile-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; background: #f1f1f1; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.wels-menu-mobile { flex-direction: column; align-items: stretch; gap: 0; }
.wels-menu-mobile .wels-menu-item { border-bottom: 1px solid #eee; }
.wels-menu-mobile a { padding: 14px 6px; font-size: 1rem; }
.wels-menu-mobile .wels-sub-menu {
	position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
	padding: 0 0 8px 16px; min-width: 0; display: none;
}
.wels-menu-mobile .wels-menu-item.is-expanded > .wels-sub-menu { display: block; }
.wels-menu-mobile .wels-submenu-toggle {
	display: block; position: absolute; right: 0; top: 6px; width: 40px; height: 40px;
	background: transparent; border: 0; cursor: pointer; color: var(--wels-ink);
}
.wels-menu-mobile .wels-menu-item.is-expanded > .wels-submenu-toggle .wels-caret { transform: rotate(-135deg); margin-top: 2px; }

/* ---------- Hero slider ---------- */
.wels-hero { position: relative; overflow: hidden; background: #0c1a19; }
.wels-hero-track { position: relative; height: clamp(360px, 60vh, 620px); }
.wels-slide {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	opacity: 0; transition: opacity .7s ease; display: flex; align-items: flex-end;
}
.wels-slide.is-active { opacity: 1; }
.wels-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,17,0) 30%, rgba(8,18,17,.72) 100%); }
.wels-slide-caption { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(44px, 7vw, 84px); color: #fff; }
.wels-slide-caption h2 { color: #fff; font-size: clamp(1.7rem, 4.6vw, 3.1rem); margin: 0 0 .35em; max-width: 20ch; text-shadow: 0 2px 24px rgba(0,0,0,.4); line-height: 1.12; }
.wels-slide-caption p { font-size: clamp(1rem, 2vw, 1.28rem); max-width: 48ch; margin: 0 0 1.3em; opacity: 0; transform: translateY(16px); transition: opacity .6s ease .35s, transform .6s ease .35s; }
.wels-slide-caption .wels-btn { opacity: 0; transform: translateY(16px); transition: opacity .6s ease .5s, transform .6s ease .5s; }
.wels-slide.is-active .wels-slide-caption p,
.wels-slide.is-active .wels-slide-caption .wels-btn { opacity: 1; transform: none; }

/* Headline word-by-word reveal */
.wels-slide-caption h2 .wels-word {
	display: inline-block; opacity: 0; transform: translateY(28px) rotate(1.5deg);
	transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1);
}
.wels-slide.is-active .wels-slide-caption h2 .wels-word { opacity: 1; transform: none; }

/* Autoplay progress bar */
.wels-hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); z-index: 3; }
.wels-hero-progress-bar { display: block; height: 100%; background: var(--wels-accent); transform: scaleX(0); transform-origin: left; }
.wels-hero-progress-bar.is-running { animation: wels-hero-progress var(--wels-hero-int, 6000ms) linear forwards; }
.wels-hero.is-paused .wels-hero-progress-bar.is-running { animation-play-state: paused; }
@keyframes wels-hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Curved divider where the hero meets the page */
.wels-hero::after {
	content: ""; position: absolute; left: -4%; right: -4%; bottom: -1px; height: 54px; z-index: 4;
	background: var(--wels-bg);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	pointer-events: none;
}
.wels-hero-nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.22);
	color: #fff; font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(3px);
}
.wels-hero-nav:hover { background: rgba(255,255,255,.4); }
.wels-hero-prev { left: 16px; }
.wels-hero-next { right: 16px; }
.wels-hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.wels-hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.wels-hero-dot.is-active { background: #fff; width: 26px; border-radius: 6px; }

/* ---------- About ---------- */
.wels-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.wels-about-media img { border-radius: var(--wels-radius); box-shadow: var(--wels-shadow); width: 100%; object-fit: cover; }
.wels-about .wels-section-head { text-align: left; margin: 0 0 20px; }
.wels-about .wels-section-title::after { margin-left: 0; }
.wels-about-text { color: var(--wels-muted); font-size: 1.05rem; }

/* ---------- Statistics band ---------- */
.wels-stats { background: var(--wels-primary); color: #fff; padding: clamp(32px, 4vw, 52px) 0; }
.wels-stats-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px 20px;
	text-align: center;
}
.wels-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.wels-stat + .wels-stat::before {
	content: ""; position: absolute; left: -10px; top: 12%; bottom: 12%; width: 1px; background: rgba(255,255,255,.22);
}
.wels-stat-icon img { width: 40px; height: 40px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 4px; }
.wels-stat-number { font-family: var(--wels-heading-font); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1; display: inline-flex; align-items: baseline; gap: 2px; }
.wels-stat-affix { font-size: .6em; font-weight: 700; opacity: .85; }
.wels-stat-label { font-size: .95rem; opacity: .9; letter-spacing: .01em; }

.wels-kg-intro { text-align: center; max-width: 640px; margin: -18px auto 28px; color: var(--wels-muted); font-size: 1.05rem; }
.wels-kg-grid-preview { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wels-kg-grid-preview .wels-kg-card { text-align: center; }
.wels-kg-grid-preview .wels-kg-card .wels-card-media img { height: 150px; }
.wels-kg-grid-preview .wels-kg-card .wels-card-title { margin: 14px 16px 18px; font-size: 1rem; }

/* ---------- Our Journey — timeline ---------- */
.wels-journey { background: var(--wels-alt-bg); }
.wels-timeline { list-style: none; margin: 0 auto; padding: 8px 0; position: relative; max-width: 960px; }

/* Centre line + scroll-fill */
.wels-tl-line {
	position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%);
	background: rgba(20,40,38,.12); border-radius: 3px;
}
.wels-tl-progress {
	position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 3px;
	background: linear-gradient(var(--wels-primary), var(--wels-accent));
	transition: height .12s linear;
}

.wels-tl-item { position: relative; width: 50%; padding: 16px 44px 34px; box-sizing: border-box; }
.wels-tl-item.is-left  { left: 0;   text-align: right; }
.wels-tl-item.is-right { left: 50%; text-align: left; }

/* Marker on the line */
.wels-tl-dot {
	position: absolute; top: 30px; width: 18px; height: 18px; border-radius: 50%; z-index: 2;
	background: var(--wels-accent); border: 4px solid var(--wels-alt-bg);
	box-shadow: 0 0 0 2px var(--wels-accent);
}
.wels-tl-item.is-left  .wels-tl-dot { right: -9px; }
.wels-tl-item.is-right .wels-tl-dot { left: -9px; }

.wels-tl-card {
	background: #fff; border-radius: var(--wels-radius); box-shadow: var(--wels-shadow-sm);
	padding: 22px 24px; display: inline-block; text-align: left; max-width: 420px;
	border: 1px solid rgba(20,40,38,.06); position: relative; overflow: hidden;
}
/* Large faint year watermark */
.wels-tl-ghost {
	position: absolute; top: -14px; right: 14px; font-family: var(--wels-heading-font);
	font-weight: 800; font-size: 4.2rem; line-height: 1; color: var(--wels-primary);
	opacity: .06; pointer-events: none; letter-spacing: -.02em;
}
.wels-tl-year { position: relative; display: inline-block; font-weight: 800; color: var(--wels-primary); font-size: .8rem; letter-spacing: .06em; margin-bottom: 6px; text-transform: uppercase; }
.wels-tl-year::after { content: ""; display: block; width: 26px; height: 3px; background: var(--wels-accent); border-radius: 2px; margin-top: 6px; }
.wels-tl-item.is-left .wels-tl-year::after { margin-left: auto; }
.wels-tl-title { font-size: 1.14rem; margin: 0 0 8px; }
.wels-tl-media { margin: 12px 0; border-radius: 10px; overflow: hidden; }
.wels-tl-media img { width: 100%; height: 170px; object-fit: cover; display: block; }
.wels-tl-text { color: var(--wels-muted); font-size: .95rem; }

/* Slide-in from alternating sides (JS opts in via .wels-tl-anim) */
.wels-timeline.wels-tl-anim .wels-tl-card { opacity: 0; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.wels-timeline.wels-tl-anim .wels-tl-item.is-left  .wels-tl-card { transform: translateX(28px); }
.wels-timeline.wels-tl-anim .wels-tl-item.is-right .wels-tl-card { transform: translateX(-28px); }
.wels-timeline.wels-tl-anim .wels-tl-item.is-in .wels-tl-card { opacity: 1; transform: none; }
.wels-timeline.wels-tl-anim .wels-tl-item .wels-tl-dot { transition: transform .3s ease; }
.wels-timeline.wels-tl-anim .wels-tl-item.is-in .wels-tl-dot { transform: scale(1.15); }

/* ---------- Card grid (academics / facilities / activities / kindergarten) ---------- */
.wels-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(18px, 3vw, 30px); }
.wels-card {
	background: var(--wels-bg); border: 1px solid rgba(20,40,38,.08); border-radius: var(--wels-radius);
	overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--wels-shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease; color: var(--wels-ink);
}
a.wels-card:hover, a.wels-card:focus { transform: translateY(-4px); box-shadow: var(--wels-shadow); text-decoration: none; }
.wels-card-media img { width: 100%; height: 190px; object-fit: cover; }
.wels-card-icon { padding: 22px 22px 0; }
.wels-card-title { font-size: 1.12rem; margin: 18px 20px 8px; }
.wels-card-text { margin: 0 20px 20px; color: var(--wels-muted); font-size: 0.95rem; }
.wels-alt-bg .wels-card, .wels-journey .wels-card, .wels-facilities .wels-card, .wels-kg .wels-card { background: #fff; }

/* ---------- Leadership ---------- */
.wels-leader-grid {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
	gap: clamp(20px, 3vw, 32px);
}
.wels-leader-card {
	flex: 1 1 300px; max-width: 380px;
	display: flex; flex-direction: column;
	background: #fff; border-radius: var(--wels-radius); box-shadow: var(--wels-shadow-sm);
	padding: 26px; text-align: center; border: 1px solid rgba(20,40,38,.07);
}
.wels-leader-body { display: flex; flex-direction: column; flex: 1; }
.wels-leader-card .wels-leader-more { align-self: center; margin-top: auto; }
/* exactly 2 cards: give them a comfortable width, centred side by side */
.wels-leader-grid:has(.wels-leader-card:nth-child(2):last-child) .wels-leader-card { flex-basis: 340px; max-width: 420px; }
.wels-leader-photo {
	width: 128px; height: 128px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden;
	background: var(--wels-alt-bg); display: flex; align-items: center; justify-content: center;
	border: 4px solid rgba(31,95,91,.14);
}
.wels-leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wels-leader-initials { font-size: 2.6rem; font-weight: 700; color: var(--wels-primary); }
.wels-leader-name { font-size: 1.15rem; margin: 0 0 2px; }
.wels-leader-role { color: var(--wels-accent); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.wels-leader-short { color: var(--wels-muted); font-size: 0.96rem; margin: 0 0 12px; }

/* ---------- Faculty table ---------- */
.wels-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(20,40,38,.12); border-radius: var(--wels-radius); }
.wels-table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
.wels-table th, .wels-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(20,40,38,.1); font-size: 0.95rem; }
.wels-table thead th { background: var(--wels-primary); color: #fff; font-weight: 600; white-space: nowrap; }
.wels-table tbody tr:nth-child(even) { background: var(--wels-alt-bg); }
.wels-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Gallery ---------- */
.wels-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* Homepage mosaic: first tile is a 2×2 feature on wider screens. */
.wels-gallery-mosaic { grid-auto-rows: 1fr; }
.wels-gallery-mosaic .wels-gallery-item { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
	.wels-gallery-mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(0, 1fr); }
	.wels-gallery-mosaic .wels-gallery-item { aspect-ratio: auto; }
	.wels-gallery-mosaic .wels-gallery-item.is-featured { grid-column: span 2; grid-row: span 2; }
}

.wels-gallery-item {
	position: relative; display: flex; flex-direction: column;
	border-radius: var(--wels-radius); overflow: hidden; background: var(--wels-alt-bg);
	box-shadow: var(--wels-shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
	min-height: 190px; text-decoration: none;
}
.wels-gallery-grid:not(.wels-gallery-mosaic) .wels-gallery-item { aspect-ratio: 4 / 3.35; }
.wels-gallery-item:hover, .wels-gallery-item:focus-visible { transform: translateY(-4px); box-shadow: var(--wels-shadow); text-decoration: none; }
.wels-gallery-media { position: relative; flex: 1; overflow: hidden; display: block; min-height: 0; }
.wels-gallery-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.wels-gallery-item:hover .wels-gallery-media img, .wels-gallery-item:focus-visible .wels-gallery-media img { transform: scale(1.06); }
.wels-gallery-media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(12,26,25,0) 45%, rgba(12,26,25,.35) 100%);
	opacity: 0; transition: opacity .25s ease;
}
.wels-gallery-item:hover .wels-gallery-media::after, .wels-gallery-item:focus-visible .wels-gallery-media::after { opacity: 1; }

.wels-gallery-overlay {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	color: #fff; opacity: 0; transform: scale(.8); transition: opacity .25s ease, transform .25s ease;
}
.wels-gallery-overlay svg { background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.7); border-radius: 50%; padding: 12px; backdrop-filter: blur(2px); }
.wels-gallery-item:hover .wels-gallery-overlay, .wels-gallery-item:focus-visible .wels-gallery-overlay { opacity: 1; transform: scale(1); }

.wels-gallery-count {
	position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 9px; border-radius: 999px; background: rgba(12,26,25,.62); color: #fff;
	font-size: 0.78rem; font-weight: 700; line-height: 1; backdrop-filter: blur(2px);
}
.wels-gallery-count .dashicons { font-size: 14px; width: 14px; height: 14px; }

.wels-gallery-tag {
	position: absolute; top: 10px; left: 10px; max-width: calc(100% - 70px);
	padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--wels-primary-dark);
	font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.3;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.wels-gallery-info {
	flex: 0 0 auto; height: 3rem; padding: 0 15px; background: var(--wels-bg);
	display: flex; align-items: center;
	border-top: 3px solid var(--wels-accent);
}
.wels-gallery-title {
	font-family: var(--wels-heading-font); font-weight: 700; font-size: 0.98rem; color: var(--wels-ink);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.wels-gallery-mosaic .wels-gallery-item.is-featured .wels-gallery-info { height: 3.4rem; }
.wels-gallery-mosaic .wels-gallery-item.is-featured .wels-gallery-title { font-size: 1.2rem; }

.wels-gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.wels-gallery-filter button { padding: 9px 18px; border: 1px solid rgba(20,40,38,.16); background: var(--wels-bg); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.88rem; color: var(--wels-ink); transition: .15s ease; }
.wels-gallery-filter button:hover { border-color: var(--wels-primary); color: var(--wels-primary); }
.wels-gallery-filter button.is-active { background: var(--wels-primary); color: #fff; border-color: var(--wels-primary); }
.wels-gallery-item.is-hidden { display: none; }

@media (max-width: 560px) {
	.wels-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.wels-gallery-item { min-height: 150px; }
	.wels-gallery-mosaic .wels-gallery-item.is-featured { grid-column: span 2; }
}

/* ---------- Notices (auto scroller) ---------- */
.wels-notice-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.wels-notice-viewport::-webkit-scrollbar { display: none; }
.wels-notice-track { list-style: none; margin: 0; padding: 4px; display: flex; gap: 20px; }
.wels-notice-card {
	flex: 0 0 calc((100% - 40px) / 3); background: #fff; border-radius: var(--wels-radius);
	box-shadow: var(--wels-shadow-sm); padding: 22px; border-top: 4px solid var(--wels-accent);
	display: flex; flex-direction: column; min-height: 190px;
}
.wels-notice-date { font-size: 0.8rem; color: var(--wels-muted); font-weight: 600; }
.wels-notice-title { font-size: 1.05rem; margin: 6px 0 8px; }
.wels-notice-text { color: var(--wels-muted); font-size: 0.92rem; margin: 0 0 14px; overflow-wrap: anywhere; }
.wels-notice-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Testimonials (auto scroller) ---------- */
.wels-tm-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.wels-tm-viewport::-webkit-scrollbar { display: none; }
.wels-tm-track { list-style: none; margin: 0; padding: 4px; display: flex; gap: 22px; }
.wels-tm-card { flex: 0 0 min(420px, 82vw); background: #fff; border-radius: var(--wels-radius); box-shadow: var(--wels-shadow-sm); padding: 28px; }
.wels-tm-quote { font-size: 1.05rem; font-style: italic; color: var(--wels-ink); margin: 0 0 18px; position: relative; padding-top: 14px; }
.wels-tm-quote::before { content: "\201C"; position: absolute; top: -14px; left: -4px; font-size: 3rem; color: var(--wels-accent); font-family: Georgia, serif; line-height: 1; }
.wels-tm-person { display: flex; align-items: center; gap: 12px; }
.wels-tm-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.wels-tm-person strong { display: block; }
.wels-tm-person em { font-style: normal; color: var(--wels-muted); font-size: 0.88rem; }

/* ---------- Downloads ---------- */
.wels-download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.wels-download-item {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: #fff; border: 1px solid rgba(20,40,38,.1); border-radius: var(--wels-radius); padding: 16px 20px;
}
.wels-download-meta { display: flex; align-items: center; gap: 14px; }
.wels-download-meta .dashicons { color: var(--wels-primary); font-size: 26px; width: 26px; height: 26px; }
.wels-download-meta em { display: block; font-style: normal; color: var(--wels-muted); font-size: 0.85rem; }
.wels-badge-pending { font-size: 0.8rem; font-weight: 600; color: #b42318; background: #fdecec; padding: 5px 10px; border-radius: 6px; }

/* ---------- Admissions / Pay Fee ---------- */
.wels-admissions-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.wels-admissions-inner .wels-section-title::after { margin-inline: auto; }
.wels-admissions-text { color: var(--wels-muted); font-size: 1.05rem; margin-bottom: 22px; }
.wels-admissions-btn { margin: 4px 8px; }
.wels-payfee { background: var(--wels-primary); }
.wels-payfee .wels-section-title, .wels-payfee p { color: #fff; }
.wels-payfee-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wels-payfee-inner h2 { margin: 0 0 6px; }
.wels-payfee-inner p { margin: 0; opacity: .9; }

/* ---------- Contact ---------- */
.wels-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.wels-contact .wels-section-head { text-align: left; margin: 0 0 20px; }
.wels-contact .wels-section-title::after { margin-left: 0; }
.wels-contact-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.wels-contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--wels-muted); }
.wels-contact-list .dashicons { color: var(--wels-primary); flex: 0 0 auto; }
.wels-contact-map { border-radius: var(--wels-radius); overflow: hidden; box-shadow: var(--wels-shadow-sm); aspect-ratio: 4/3; background: var(--wels-alt-bg); }
.wels-contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Social ---------- */
.wels-social-row { display: flex; gap: 10px; }
.wels-social {
	width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: rgba(31,95,91,.1); color: var(--wels-primary); transition: .15s ease;
}
.wels-social:hover, .wels-social:focus { background: var(--wels-primary); color: #fff; }
.wels-site-footer .wels-social { background: rgba(255,255,255,.1); color: #fff; }
.wels-site-footer .wels-social:hover, .wels-site-footer .wels-social:focus { background: var(--wels-accent); color: #fff; }

/* ---------- Footer ---------- */
.wels-site-footer { background: var(--wels-footer-bg); color: rgba(255,255,255,.78); margin-top: 0; }
.wels-site-footer a { color: rgba(255,255,255,.82); }
.wels-site-footer a:hover { color: #fff; }
.wels-footer-grid {
	display: grid; grid-template-columns: 1.5fr 1.1fr 1.3fr; gap: 32px 48px;
	padding: clamp(36px, 4.5vw, 56px) 20px;
	align-items: start;
}
.wels-footer-grid:has(.wels-footer-extra) { grid-template-columns: repeat(4, 1fr); }
.wels-footer-title { color: #fff; font-size: 1rem; margin: 0 0 14px; letter-spacing: .01em; }
.wels-footer-name { font-weight: 700; color: #fff; font-size: 1.1rem; margin: 10px 0 4px; }
.wels-footer-tagline { font-size: 0.9rem; margin: 0 0 16px; max-width: 34ch; }
.wels-footer-logo .custom-logo { height: 52px; width: auto; margin-bottom: 4px; }
.wels-footer-links ul, .wels-footer-menu { list-style: none; margin: 0; padding: 0; }
/* Two tidy columns so the list never elongates the footer */
.wels-footer-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.wels-footer-menu li { margin: 0; }
.wels-footer-menu a { display: inline-block; padding: 3px 0; font-size: 0.92rem; }
.wels-footer-menu a:hover { padding-left: 4px; transition: padding .15s ease; }
.wels-footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.wels-footer-about .wels-social-row { margin-top: 16px; }
.wels-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.wels-footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; font-size: 0.85rem; }
.wels-footer-bottom-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wels-credit { margin: 0; }
.wels-staff-login { opacity: .8; }

/* ---------- Back to top ---------- */
.wels-back-to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 250; width: 46px; height: 46px;
	border: 0; border-radius: 50%; background: var(--wels-primary); color: #fff; font-size: 20px;
	cursor: pointer; box-shadow: var(--wels-shadow); opacity: 0; transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease;
}
.wels-back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.wels-back-to-top:hover { background: var(--wels-primary-dark); }

/* ---------- Modal (leadership read more) ---------- */
.wels-modal, .wels-lightbox { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; }
.wels-modal[hidden], .wels-lightbox[hidden] { display: none; }
.wels-modal-overlay { position: absolute; inset: 0; background: rgba(10,20,19,.6); }
.wels-modal-panel {
	position: relative; z-index: 2; background: #fff; border-radius: var(--wels-radius); max-width: 720px;
	width: calc(100% - 32px); max-height: 88vh; overflow-y: auto; padding: 32px; box-shadow: var(--wels-shadow);
}
.wels-modal-close, .wels-lightbox-close {
	position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: #f0f0f0; font-size: 24px; line-height: 1; cursor: pointer; z-index: 5;
}
.wels-modal-body { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; }
.wels-modal-photo img { width: 180px; height: 220px; object-fit: cover; object-position: top center; border-radius: var(--wels-radius); }
.wels-modal-role { color: var(--wels-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 0.85rem; margin: 0 0 14px; }

/* ---------- Lightbox ---------- */
.wels-lightbox { background: rgba(6,12,11,.92); }
.wels-lightbox-figure { margin: 0; max-width: 92vw; max-height: 82vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wels-lightbox-figure img { max-width: 92vw; max-height: 74vh; width: auto; height: auto; border-radius: 8px; }
.wels-lightbox-figure figcaption { color: rgba(255,255,255,.85); font-size: 0.9rem; text-align: center; }
.wels-lightbox-prev, .wels-lightbox-next {
	position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 0;
	border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 30px; cursor: pointer;
}
.wels-lightbox-prev { left: 14px; } .wels-lightbox-next { right: 14px; }
.wels-lightbox-prev:hover, .wels-lightbox-next:hover { background: rgba(255,255,255,.32); }

/* ---------- Admission pop-up ---------- */
.wels-popup-panel { padding: 0; max-width: 480px; overflow: hidden; border-radius: var(--wels-radius); }
.wels-popup-panel .wels-modal-close { background: rgba(255,255,255,.9); }
.wels-popup-link, .wels-popup-img { display: block; width: 100%; height: auto; }
.wels-lightbox-counter { position: absolute; top: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 0.85rem; }

/* ---------- Pages ---------- */
.wels-page-header { background: var(--wels-alt-bg); padding: clamp(30px, 5vw, 56px) 0; border-bottom: 1px solid rgba(20,40,38,.08); }
.wels-page-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0; }
.wels-page-body { padding-top: clamp(30px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.wels-page-body h2 { margin-top: 1.6em; }
.wels-single-thumb { margin: 0 0 24px; border-radius: var(--wels-radius); overflow: hidden; }
.wels-single-meta { color: var(--wels-muted); font-size: 0.9rem; }
.wels-eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: 0.8rem; font-weight: 700; color: var(--wels-accent); margin: 0 0 6px; }

.wels-notice-page-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wels-notice-row {
	display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: center;
	background: #fff; border: 1px solid rgba(20,40,38,.1); border-radius: var(--wels-radius); padding: 16px 20px;
}
.wels-notice-row time { color: var(--wels-muted); font-size: 0.85rem; font-weight: 600; }
.wels-notice-row p { margin: 4px 0 0; color: var(--wels-muted); font-size: 0.9rem; }

.wels-post-list { display: grid; gap: 22px; }
.wels-post-card { display: grid; grid-template-columns: 260px 1fr; gap: 22px; background: #fff; border: 1px solid rgba(20,40,38,.1); border-radius: var(--wels-radius); overflow: hidden; }
.wels-post-thumb img { height: 100%; object-fit: cover; }
.wels-post-body { padding: 22px 24px; }
.wels-post-title { margin: 0 0 6px; font-size: 1.25rem; }

/* ---------- Search / comments ---------- */
.wels-search-form { display: flex; gap: 8px; margin: 16px 0; }
.wels-search-field { flex: 1; padding: 12px 14px; border: 1px solid rgba(20,40,38,.2); border-radius: var(--wels-btn-radius); font-size: 1rem; }
.wels-comments { margin-top: 40px; }
.wels-comment-list { list-style: none; padding: 0; }
.wels-comment-list ol { list-style: none; }

/* ---------- Utilities ---------- */
.wels-page-full .wels-page-body { max-width: var(--wels-maxw); margin: 0 auto; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
	/* Below this the desktop menu is replaced by the mobile off-canvas menu */
	.wels-primary-nav { display: none; }
	.wels-nav-toggle { display: block; }
	.wels-header-stacked .wels-header-inner { flex-wrap: nowrap; }
	.wels-header-inner { justify-content: space-between; }
	.wels-notice-card { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 640px) {
	.wels-header-actions-header { display: none; }
}

@media (max-width: 780px) {
	/* Tree collapses to a single trunk on the left, branches to the right */
	.wels-timeline { max-width: 560px; }
	.wels-tl-line { left: 9px; transform: none; }
	.wels-tl-item, .wels-tl-item.is-left, .wels-tl-item.is-right {
		width: 100%; left: 0; text-align: left; padding: 8px 0 30px 34px;
	}
	.wels-tl-item.is-left .wels-tl-dot, .wels-tl-item.is-right .wels-tl-dot { left: 1px; right: auto; }
	.wels-tl-item.is-left .wels-tl-year::after { margin-left: 0; }
	.wels-timeline.wels-tl-anim .wels-tl-item.is-left .wels-tl-card,
	.wels-timeline.wels-tl-anim .wels-tl-item.is-right .wels-tl-card { transform: translateX(20px); }
	.wels-tl-card { max-width: none; }
}

@media (max-width: 900px) {
	.wels-about-grid, .wels-contact-grid { grid-template-columns: 1fr; }
	.wels-about-media { order: -1; }
	.wels-footer-grid { grid-template-columns: 1.3fr 1fr; }
	.wels-post-card { grid-template-columns: 1fr; }
	.wels-post-thumb img { max-height: 220px; width: 100%; }
	.wels-modal-body { grid-template-columns: 1fr; text-align: center; }
	.wels-modal-photo img { margin: 0 auto; }
}

@media (max-width: 680px) {
	.wels-topbar-link { display: none; }
	.wels-topbar-inner { justify-content: center; }
	.wels-topbar-left { display: none; }
	.wels-topbar-right { margin: 0 auto; justify-content: center; }
	.wels-notice-card { flex-basis: 86vw; }
	.wels-tm-card { flex-basis: 86vw; }
	.wels-footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.wels-footer-bottom-inner { justify-content: center; text-align: center; }
	.wels-notice-row { grid-template-columns: 1fr; }
	.wels-payfee-inner { flex-direction: column; text-align: center; }
	.wels-download-item { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   Motion — scroll reveal + hero Ken Burns
   ========================================================================= */
/* Only elements the script has "armed" (below the fold) start hidden, so a
   slow or blocked script can never leave content invisible. */
.wels-js .wels-reveal.is-armed {
	opacity: 0; transform: translateY(24px);
	transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1);
}
.wels-js .wels-reveal.is-armed.is-in { opacity: 1; transform: none; }

/* Hero: subtle slow zoom on the active slide's image layer */
.wels-slide::before {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background-image: inherit; background-size: cover; background-position: center;
	transform: scale(1.001);
}
.wels-slide::after { z-index: 1; }
.wels-slide-caption { z-index: 2; }
.wels-slide.is-active::before { animation: wels-kenburns 9s ease-out both; }
@keyframes wels-kenburns { from { transform: scale(1.02); } to { transform: scale(1.11); } }

/* Buttons get a soft press feedback */
.wels-btn:active { transform: translateY(0) scale(.98); }

/* Card media zoom already handled; add a gentle shadow grow on card hover */
.wels-card:hover { box-shadow: var(--wels-shadow); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
	.wels-slide { transition: none; }
	.wels-js .wels-reveal.is-armed { opacity: 1 !important; transform: none !important; }
	.wels-slide.is-active::before { animation: none; }
}

/* =========================================================================
   Style presets — structural differences beyond colour/font/shape.
   Colour, heading font, radius and button shape come from the preset via
   CSS variables (inc/dynamic-css.php). These blocks handle card treatment,
   hero caption and section-title styling per preset.
   ========================================================================= */

/* ---- Classic: framed cards, formal hero, centred title rule ---- */
.wels-preset-classic .wels-card { box-shadow: none; border: 1px solid rgba(20,40,38,.16); }
.wels-preset-classic .wels-card:hover { box-shadow: 0 4px 18px rgba(20,40,38,.10); }
.wels-preset-classic .wels-tl-card,
.wels-preset-classic .wels-leader-card,
.wels-preset-classic .wels-notice-card,
.wels-preset-classic .wels-tm-card { box-shadow: none; border: 1px solid rgba(20,40,38,.16); }
.wels-preset-classic .wels-section-title { letter-spacing: 0; }
.wels-preset-classic .wels-section-title::after { width: 44px; height: 2px; }
.wels-preset-classic .wels-slide-caption h2 { border-top: 2px solid rgba(255,255,255,.5); padding-top: .35em; display: inline-block; }
.wels-preset-classic .wels-btn { text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }

/* ---- Warm: soft pillowy cards, centred hero caption ---- */
.wels-preset-warm .wels-card,
.wels-preset-warm .wels-tl-card,
.wels-preset-warm .wels-leader-card,
.wels-preset-warm .wels-notice-card,
.wels-preset-warm .wels-tm-card { border: 0; box-shadow: 0 14px 34px rgba(80,50,30,.12); }
.wels-preset-warm .wels-card:hover { box-shadow: 0 20px 44px rgba(80,50,30,.18); }
.wels-preset-warm .wels-section-title::after { width: 64px; height: 5px; }
.wels-preset-warm .wels-slide-caption { text-align: center; }
.wels-preset-warm .wels-slide-caption h2,
.wels-preset-warm .wels-slide-caption p { margin-left: auto; margin-right: auto; }
.wels-preset-warm .wels-hero-progress-bar { height: 4px; }

/* ---- Editorial: minimal cards, hero caption bar, hard-left title bar ---- */
.wels-preset-editorial .wels-card,
.wels-preset-editorial .wels-tl-card,
.wels-preset-editorial .wels-leader-card,
.wels-preset-editorial .wels-notice-card,
.wels-preset-editorial .wels-tm-card {
	border: 0; border-top: 3px solid var(--wels-ink); box-shadow: none; border-radius: 0;
}
.wels-preset-editorial .wels-card-title,
.wels-preset-editorial .wels-tl-title { font-size: 1.22rem; letter-spacing: -.01em; }
.wels-preset-editorial .wels-section-title { text-align: left; }
.wels-preset-editorial .wels-section-head { text-align: left; max-width: none; }
.wels-preset-editorial .wels-section-title::after { margin-left: 0; width: 40px; height: 5px; background: var(--wels-accent); }
.wels-preset-editorial .wels-section-sub { max-width: 60ch; }
.wels-preset-editorial .wels-slide { align-items: stretch; }
.wels-preset-editorial .wels-slide-caption {
	align-self: flex-end; background: rgba(20,20,20,.82); padding-top: clamp(24px,4vw,44px);
}
.wels-preset-editorial .wels-slide::after { display: none; }
.wels-preset-editorial .wels-slide-caption h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); }
.wels-preset-editorial .wels-btn { text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; }
