/* Safe The Light Global - "Humanitarian Dignity" design. Change brand colours in :root. */
:root {
	--stl-brand: #168fe9; /* official brand blue: buttons, accents, logo mark */
	--stl-primary: #0f74c2; /* darker shade of the brand for text/links on white (passes contrast) */
	--stl-primary-dark: #0b5a96;
	--stl-sky: #168fe9;
	--stl-sky-light: #52b2fd;
	--stl-navy: #0f172a;
	--stl-muted: #475569;
	--stl-ice: #f0f7fd;
	--stl-soft: #e6f2fc;
	--stl-canvas: #f8fafc;
	--stl-border: #d6e7fa;
	--stl-white: #fff;
	--stl-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--stl-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--stl-shadow: 0 4px 20px -2px rgba(15, 23, 42, .05), 0 2px 6px -1px rgba(22, 143, 233, .04);
	--stl-shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, .08), 0 1px 3px rgba(0, 0, 0, .02);
	--stl-max: 1280px;
	--stl-pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--stl-canvas); color: var(--stl-navy); font-family: var(--stl-sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--stl-primary); }
h1, h2, h3, h4 { font-family: var(--stl-serif); color: var(--stl-navy); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-family: var(--stl-sans); font-weight: 600; }
p { margin: 0 0 1.1rem; }
:focus-visible { outline: 3px solid var(--stl-sky); outline-offset: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto; background: #fff; padding: .6rem 1rem; border-radius: 8px; }
.container { width: 100%; max-width: var(--stl-max); margin-inline: auto; padding-inline: var(--stl-pad); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 8px rgba(0, 0, 0, .05); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }
.site-branding { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.site-branding .custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 48px; width: auto; }
.site-title { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--stl-navy); letter-spacing: -.01em; }
.site-title__mark { width: 34px; height: 34px; color: var(--stl-brand); }
.site-nav .menu { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; }
.header-donate { white-space: nowrap; padding-inline: 1.4rem; }
.site-nav a { display: block; padding: .5rem 0; white-space: nowrap; font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--stl-muted); transition: color .2s; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--stl-primary); }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.site-nav .nav-donate { display: none; }

/* GTranslate can add its own language entry to the menu; the floating selector already covers it. */
.site-nav .menu-item-gtranslate { display: none; }

/* Submenus: dropdown on desktop (hover, keyboard focus or the arrow button), accordion on phones */
.site-nav .menu-item-has-children { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.submenu-toggle { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; position: relative; flex-shrink: 0; }
.submenu-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -6px 0 0 -4px; border: solid var(--stl-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s, border-color .2s; }
.submenu-toggle:hover::before, .submenu-toggle[aria-expanded="true"]::before { border-color: var(--stl-primary); }
.submenu-toggle[aria-expanded="true"]::before { transform: rotate(225deg); margin-top: -2px; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: .5rem; }
@media (min-width: 1241px) {
	.site-nav .menu > li > .sub-menu {
		position: absolute; top: calc(100% - 2px); left: -.75rem; min-width: 270px; z-index: 70;
		background: #fff; border: 1px solid var(--stl-border); border-radius: 16px; box-shadow: var(--stl-shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
	}
	.site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu, .site-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.site-nav .sub-menu a { padding: .6rem .9rem; border-radius: 10px; white-space: normal; }
	.site-nav .sub-menu a:hover { background: var(--stl-ice); }
	.site-nav .sub-menu .sub-menu { display: none; }
}

.lang-switch { display: flex; align-items: center; background: var(--stl-soft); border-radius: 999px; padding: 4px; margin: 0; list-style: none; }
.lang-switch li { list-style: none; }
.lang-switch a { display: block; padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--stl-muted); text-transform: uppercase; }
.lang-switch .current-lang a { background: #fff; color: var(--stl-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--stl-ice); border: 0; border-radius: 50%; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--stl-primary); border-radius: 2px; position: relative; content: ""; transition: transform .2s, top .2s; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

@media (max-width: 1240px) {
	.nav-toggle { display: inline-flex; }
	.site-header .header-donate { display: none; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--stl-border); box-shadow: var(--stl-shadow-lg); padding: .5rem var(--stl-pad) 1.5rem; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li { border-bottom: 1px solid var(--stl-soft); }
	.site-nav a { padding: .95rem 0; font-size: 1rem; white-space: normal; }
	.site-nav .menu-item-has-children > a { flex: 1; }
	.submenu-toggle { width: 44px; height: 44px; }
	.site-nav .sub-menu { display: none; flex: 0 0 100%; margin: 0 0 .75rem; padding: 0 0 0 1rem; border-left: 2px solid var(--stl-soft); }
	.site-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding: .7rem 0; font-size: .9375rem; font-weight: 500; }
	.site-nav .nav-donate { display: flex; width: 100%; margin-top: 1.25rem; padding: .9rem 1.5rem; font-size: 1rem; color: #fff; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Buttons ---------- */
.stl-btn, .wp-block-button__link, .wpcf7-submit, .button {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	background: var(--stl-brand); color: #fff !important; border: 0; border-radius: 999px;
	padding: .85rem 1.9rem; font: 700 1rem/1.2 var(--stl-sans); text-decoration: none; cursor: pointer;
	box-shadow: var(--stl-shadow); transition: background .2s, transform .2s, box-shadow .2s;
}
.stl-btn:hover, .wp-block-button__link:hover, .wpcf7-submit:hover, .button:hover { background: var(--stl-primary); transform: translateY(-1px); box-shadow: 0 8px 22px -6px rgba(22, 143, 233, .45); }
.wp-block-button.is-style-outline .wp-block-button__link, .stl-btn--ghost { background: #fff; color: var(--stl-primary) !important; box-shadow: var(--stl-shadow); border: 1.5px solid transparent; }
.wp-block-button.is-style-outline .wp-block-button__link:hover, .stl-btn--ghost:hover { background: var(--stl-soft); }
.stl-btn--soft { background: var(--stl-soft); color: var(--stl-primary) !important; box-shadow: none; }
.stl-btn--soft:hover { background: #d3e4fe; }
.stl-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.wp-block-buttons { gap: 1rem; }
.stl-btn-note { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

/* ---------- Sections ---------- */
.entry-content > * { margin-block: 0; }
.stl-section { padding-block: clamp(3.5rem, 7vw, 6rem); padding-inline: max(var(--stl-pad), calc((100% - var(--stl-max)) / 2 + var(--stl-pad))); position: relative; overflow: hidden; }
.stl-section--canvas { background: var(--stl-canvas); }
.stl-section--ice { background: var(--stl-ice); }
.stl-section--soft { background: var(--stl-soft); }
.stl-section--white { background: #fff; }
.stl-section--dark { background: var(--stl-navy); color: #e2e8f0; }
.stl-section--dark h2, .stl-section--dark h3 { color: #fff; }
.stl-section--blue { background: linear-gradient(135deg, var(--stl-brand), var(--stl-primary)); color: #fff; }
.stl-section--blue h2, .stl-section--blue h3, .stl-section--blue p { color: #fff; }
.stl-section--blue .wp-block-button__link { background: #fff; color: var(--stl-primary) !important; }
.stl-section--blue .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .7); box-shadow: none; }
.stl-section--center { text-align: center; }
.stl-section--center > * { margin-inline: auto; }
.stl-narrow { max-width: 820px; }
.stl-lead { font-size: 1.125rem; line-height: 1.75; color: var(--stl-muted); }
.stl-section--blue .stl-lead { color: #dbeafe; }
.stl-muted { color: var(--stl-muted); }
.stl-italic { font-family: var(--stl-serif); font-style: italic; }

.stl-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .9rem !important; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--stl-primary); }
.stl-eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.stl-section--blue .stl-eyebrow, .stl-section--dark .stl-eyebrow { color: var(--stl-sky-light); }
.stl-section--center .stl-eyebrow { justify-content: center; }

.stl-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .95rem; border-radius: 999px; background: var(--stl-soft); color: var(--stl-primary); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 1rem; }
.stl-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stl-sky); }
.stl-lead + .stl-pill, p + .stl-pill { margin-top: .5rem; }
.stl-pill + .wp-block-shortcode, .stl-pill + .stl-grid { margin-top: 1.5rem; }
.wp-block-shortcode { margin-top: 1.5rem; }

/* Photos (empty Image blocks render as soft placeholders until the client uploads) */
.stl-photo { margin: 0; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, var(--stl-soft), var(--stl-ice)); box-shadow: var(--stl-shadow-lg); min-height: 280px; }
.stl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stl-photo img:not([src]), .stl-photo img[src=""] { display: none; }
.stl-photo--empty { display: flex; align-items: center; justify-content: center; color: var(--stl-sky-light); }
.stl-photo--empty svg { width: 64px; height: 64px; opacity: .45; }
.stl-photo--tall { aspect-ratio: 4 / 5; }
.stl-photo--wide { aspect-ratio: 4 / 3; }
.stl-photo--square { aspect-ratio: 1; }
.wp-block-image.stl-photo img { height: 100%; }

/* Columns on the grid */
.stl-cols { gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: center; margin: 0; }
.stl-cols--top { align-items: flex-start; }
.stl-cols--tight { gap: 1.5rem !important; }

/* Hero */
.stl-hero { background: var(--stl-canvas); padding-block: clamp(2.5rem, 6vw, 5rem); }
.stl-hero::before { content: ""; position: absolute; top: -140px; right: -80px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--stl-soft), var(--stl-ice) 55%, transparent 72%); opacity: .8; pointer-events: none; }
.stl-hero > * { position: relative; }
.stl-hero h1 { margin-bottom: .6rem; }
.stl-hero .stl-tagline { font-family: var(--stl-serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--stl-primary); margin-bottom: 1.25rem; }
.stl-page-hero { text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem); background: linear-gradient(180deg, var(--stl-ice), var(--stl-canvas)); }
.stl-page-hero .stl-lead { max-width: 720px; margin-inline: auto; }
.stl-page-hero .stl-subtitle { font-family: var(--stl-serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--stl-primary); margin-bottom: 1.25rem; }
.stl-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin-top: 2rem; }
.stl-chip { margin: 0 !important; padding: .85rem 1rem; background: #fff; border-radius: 14px; box-shadow: var(--stl-shadow); font-size: .8125rem; font-weight: 700; color: var(--stl-navy); display: flex; align-items: center; gap: .65rem; }
.stl-chip::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--stl-sky); }

/* Cards */
.stl-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.stl-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .stl-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .stl-grid--3 { grid-template-columns: repeat(2, 1fr); } .stl-grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .stl-grid--3, .stl-grid--2, .stl-grid--5 { grid-template-columns: 1fr; } }
.stl-grid > *, .stl-steps > * { margin-block: 0 !important; }
.stl-card { background: #fff; border-radius: 24px; padding: 2rem; box-shadow: var(--stl-shadow); border: 1px solid var(--stl-border); }
.stl-card--ice { background: var(--stl-ice); border-color: transparent; }
.stl-card h3, .stl-card h4 { font-size: 1.25rem; }
.stl-card p:last-child { margin-bottom: 0; }
.stl-card__num { font-family: var(--stl-serif); font-size: 2rem; color: var(--stl-sky); margin: 0 0 .5rem; font-weight: 700; }
.stl-card ul, .stl-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.stl-card li, .stl-list li { margin-bottom: .45rem; }
.stl-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: var(--stl-soft); color: var(--stl-primary); align-items: center; justify-content: center; flex-shrink: 0; }
.stl-icon svg { width: 24px; height: 24px; }

/* Program cards (shortcode) */
.stl-program-card { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--stl-shadow); transition: box-shadow .3s, transform .3s; }
.stl-program-card:hover { box-shadow: var(--stl-shadow-lg); transform: translateY(-3px); }
.stl-program-card__media { position: relative; height: 210px; background: linear-gradient(135deg, var(--stl-soft), var(--stl-ice)); overflow: hidden; }
.stl-program-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.stl-program-card:hover .stl-program-card__media img { transform: scale(1.05); }
.stl-program-card__icon { position: absolute; top: 1rem; left: 1rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; color: var(--stl-primary); box-shadow: var(--stl-shadow); }
.stl-program-card__icon svg { width: 20px; height: 20px; }
.stl-program-card__media--empty .stl-program-card__icon { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; }
.stl-program-card__media--empty .stl-program-card__icon svg { width: 30px; height: 30px; }
.stl-program-card__label { position: absolute; bottom: .75rem; right: 1rem; padding: .25rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--stl-primary); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stl-program-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.stl-program-card h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.stl-program-card h3 a { color: inherit; text-decoration: none; }
.stl-program-card__sub { color: var(--stl-primary); font-weight: 600; font-size: .875rem; margin-bottom: .75rem; }
.stl-program-card__text { color: var(--stl-muted); font-size: .875rem; flex: 1; }
.stl-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .875rem; text-decoration: none; color: var(--stl-primary); transition: gap .2s; }
.stl-more:hover { gap: .7rem; }
.stl-more svg { width: 16px; height: 16px; }

/* Program full rows */
.stl-program-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.stl-program-row:nth-child(even) { grid-template-columns: 7fr 5fr; }
.stl-program-row:nth-child(even) .stl-program-row__media { order: 2; }
.stl-program-row__media { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, var(--stl-soft), var(--stl-ice)); box-shadow: var(--stl-shadow-lg); display: flex; align-items: center; justify-content: center; color: var(--stl-primary); }
.stl-program-row__media img { width: 100%; height: 100%; object-fit: cover; }
.stl-program-row__media svg { width: 72px; height: 72px; opacity: .6; }
.stl-program-row__num { font-weight: 700; letter-spacing: .14em; font-size: .75rem; color: var(--stl-primary); text-transform: uppercase; margin-bottom: .5rem; }
.stl-program-row__slogan { font-family: var(--stl-serif); font-style: italic; font-size: 1.25rem; color: var(--stl-primary); margin-bottom: 1rem; }
.stl-vision { margin-top: 1.25rem; padding: 1rem 1.25rem; border-left: 4px solid var(--stl-sky-light); background: var(--stl-ice); border-radius: 0 14px 14px 0; font-size: .9375rem; }
.stl-vision strong { color: var(--stl-primary); }
@media (max-width: 860px) {
	.stl-program-row, .stl-program-row:nth-child(even) { grid-template-columns: 1fr; }
	.stl-program-row:nth-child(even) .stl-program-row__media { order: 0; }
}

/* Quote / founder */
.stl-quote { position: relative; background: #fff; border-radius: 24px; padding: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem) clamp(2.25rem, 5vw, 3.5rem); box-shadow: var(--stl-shadow); overflow: hidden; }
.stl-quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--stl-sky-light); }
.stl-quote h3 { margin-bottom: 1.25rem; }
.stl-quote blockquote, .stl-quote .stl-quote__text { font-family: var(--stl-serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.55; margin: 0 0 1.25rem; padding: 0; border: 0; }
.stl-quote__who { font-weight: 700; margin: 0; }
.stl-quote__role { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stl-primary); margin: 0; }
.stl-signature { font-family: var(--stl-serif); font-style: italic; font-size: 1.75rem; color: var(--stl-primary); margin: 2rem 0 .25rem; }

/* Long-form letter */
.stl-letter { max-width: 760px; margin-inline: auto; }
.stl-letter p { font-size: 1.0625rem; line-height: 1.85; }
.stl-letter .stl-pull { font-family: var(--stl-serif); font-style: italic; font-size: 1.5rem; line-height: 1.5; color: var(--stl-primary); border-left: 4px solid var(--stl-sky-light); padding-left: 1.25rem; margin-block: 2rem; }

/* Steps / principles */
.stl-steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stl-step { counter-increment: step; background: #fff; border-radius: 20px; padding: 1.75rem; box-shadow: var(--stl-shadow); }
.stl-step::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--stl-primary); color: #fff; font-weight: 700; margin-bottom: 1rem; }
.stl-step h4 { margin-bottom: .5rem; }
.stl-step p { color: var(--stl-muted); font-size: .9375rem; margin: 0; }

/* Long legal text (privacy policy) */
.stl-legal { max-width: 780px; margin-inline: auto; }
.stl-legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 2.5rem 0 .75rem; }
.stl-legal h3 { font-size: 1.15rem; font-family: var(--stl-sans); margin: 1.5rem 0 .5rem; }
.stl-legal p, .stl-legal li { font-size: 1.0625rem; line-height: 1.8; }
.stl-legal ul { padding-left: 1.3rem; margin: 0 0 1.25rem; }
.stl-legal li { margin-bottom: .4rem; }

/* Notice */
.stl-notice { background: var(--stl-soft); border: 1px solid var(--stl-border); border-radius: 18px; padding: 1.25rem 1.5rem; }
.stl-notice p:last-child { margin: 0; }
.stl-notice--center { text-align: center; }

/* Contact details */
.stl-contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.stl-contact-list li { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; }

/* News cards */
.stl-news-card { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--stl-shadow); }
.stl-news-card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--stl-soft), var(--stl-ice)); display: block; overflow: hidden; }
.stl-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.stl-news-card:hover .stl-news-card__media img { transform: scale(1.05); }
.stl-news-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.stl-news-card__date { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stl-primary); margin-bottom: .5rem; }
.stl-news-card h3 { font-size: 1.25rem; }
.stl-news-card h3 a { color: inherit; text-decoration: none; }
.stl-news-card p { color: var(--stl-muted); font-size: .875rem; flex: 1; }
.stl-empty { text-align: center; padding: 3rem 1.5rem; background: #fff; border: 1px dashed var(--stl-border); border-radius: 24px; color: var(--stl-muted); }

/* Single post / program */
.stl-single { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.stl-single__head { max-width: 820px; margin-inline: auto; padding-inline: var(--stl-pad); text-align: center; }
.stl-single__meta { color: var(--stl-primary); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stl-single__image { max-width: 1000px; margin: 2rem auto; padding-inline: var(--stl-pad); }
.stl-single__image img { border-radius: 24px; width: 100%; }
.stl-single .entry-content > * { max-width: 760px; margin-inline: auto; padding-inline: var(--stl-pad); }
.stl-single .entry-content p { font-size: 1.0625rem; line-height: 1.8; margin-block: 0 1.25rem; }
.entry-content > :not(.stl-section):not(.alignfull) { max-width: 820px; margin-inline: auto; padding-inline: var(--stl-pad); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.pagination, .nav-links { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.page-numbers { padding: .5rem .9rem; border-radius: 999px; background: #fff; text-decoration: none; box-shadow: var(--stl-shadow); font-weight: 600; }
.page-numbers.current { background: var(--stl-primary); color: #fff; }

/* ---------- Contact Form 7 ---------- */
.wpcf7 form { max-width: 760px; }
.wpcf7 form p { margin: 0 0 1.1rem; }
.wpcf7 label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea {
	display: block; width: 100%; min-height: 48px; padding: .75rem 1rem; margin-top: .35rem; background: #fff; border: 1px solid var(--stl-border);
	border-radius: 12px; font: 400 1rem var(--stl-sans); color: var(--stl-navy); transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 0; border-color: var(--stl-sky); box-shadow: 0 0 0 4px rgba(22, 143, 233, .15); }
.wpcf7 ::placeholder { color: #64748b; }
.wpcf7-list-item { margin: 0; display: block; }
.wpcf7-acceptance label { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; font-size: .875rem; color: var(--stl-muted); }
.wpcf7-acceptance input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--stl-primary); flex-shrink: 0; }
.wpcf7-not-valid-tip { color: #b91c1c; font-size: .8125rem; margin-top: .3rem; display: block; }
.wpcf7 form .wpcf7-response-output { margin: 1.25rem 0 0; padding: .9rem 1.1rem; border-width: 1px; border-radius: 12px; font-size: .9375rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #15803d; background: #f0fdf4; color: #14532d; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: #b91c1c; background: #fef2f2; color: #7f1d1d; }
.wpcf7-spinner { margin-left: .75rem; }
.stl-form-card { background: #fff; border: 1px solid var(--stl-border); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--stl-shadow-lg); }
.stl-hp { position: absolute !important; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--stl-navy); color: #cbd5e1; font-size: .9375rem; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { font-family: var(--stl-sans); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--stl-sky-light); margin-bottom: 1rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.site-footer .menu li { margin-bottom: .6rem; }
.site-footer .site-title { color: #fff; margin-bottom: 1rem; }
.site-footer .site-title__mark { color: var(--stl-sky-light); }
.site-footer .custom-logo { filter: brightness(0) invert(1); }
.site-footer__tagline { font-family: var(--stl-serif); font-style: italic; font-size: 1.25rem; color: #fff; margin: 0 0 1rem; }
.site-footer__social { display: flex; gap: .6rem; margin-top: 1rem; }
.site-footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.site-footer__social a:hover { background: var(--stl-primary); text-decoration: none; }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem 4.5rem; font-size: .8125rem; color: #94a3b8; } /* extra bottom room so a floating language button never covers the copyright line */
.site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
@media (max-width: 960px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
	.stl-section { padding-block: 3rem; }
	.site-header__inner { min-height: 68px; gap: .5rem; }
	.site-title { font-size: 1rem; }
	.lang-switch a { min-height: 32px; display: flex; align-items: center; padding: .3rem .75rem; }
	.wp-block-buttons { flex-direction: column; align-items: stretch; gap: .75rem; }
	.wp-block-buttons .wp-block-button { width: 100%; }
	.wp-block-button__link, .stl-btn { width: 100%; justify-content: center; text-align: center; }
	.stl-photo { min-height: 0; border-radius: 20px; }
	.stl-photo--wide, .stl-photo--square { aspect-ratio: 16 / 11; }
	.stl-photo--tall { aspect-ratio: 4 / 5; max-height: 460px; }
	.stl-card, .stl-step { padding: 1.35rem; border-radius: 20px; }
	.stl-program-card__media { height: 170px; }
	.stl-program-card__body { padding: 1.25rem; }
	.stl-quote { padding: 1.5rem 1.25rem 1.5rem 1.75rem; border-radius: 20px; }
	.stl-form-card { padding: 1.25rem; border-radius: 20px; }
	.wpcf7-submit { width: 100%; }
	.stl-chips { grid-template-columns: 1fr; margin-top: 1.5rem; }
	.stl-page-hero { padding-block: 2.5rem 2rem; }
	.stl-letter p { font-size: 1rem; line-height: 1.75; }
	.stl-letter .stl-pull { font-size: 1.25rem; }
	.stl-vision { padding: .85rem 1rem; }
	.site-footer__inner { gap: 2rem; padding-block: 2.5rem; }
	.site-footer__bottom .container { flex-direction: column; }
	.stl-single__image { margin-block: 1.25rem; }
}
@media (max-width: 380px) {
	.site-title span { max-width: 9.5rem; line-height: 1.15; }
	h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
