/* ==========================================================================
   Program page v2 (templates/single-program.php). Loaded on single program
   pages only, after contact-skills.css, so it reuses its tokens and buttons.
   ========================================================================== */

:root {
	--cs-navy-deep: #061B31;
	--cs-teal-light: #5CC6CE;
	--cs-sticky-top: 0px;
}
body.admin-bar { --cs-sticky-top: 32px; }
@media (max-width: 782px) { body.admin-bar { --cs-sticky-top: 0px; } }

body.single-program,
body.tax-program_category,
body.post-type-archive-program,
body.error404 { overflow-x: clip; }

/* Astra adds top/bottom spacing around the content area (padding or margin
   on .site-content, its .ast-container, #primary or .site-main depending on
   the container layout). The hero should sit directly under the header and
   the CTA band directly on the footer, so remove it on program pages only. */
body.single-program .site-content,
body.single-program .site-content > .ast-container,
body.single-program #primary,
body.single-program .site-main,
body.single-program .cs-program--v2.ast-article-single,
body.tax-program_category .site-content,
body.tax-program_category .site-content > .ast-container,
body.tax-program_category #primary,
body.tax-program_category .site-main,
body.post-type-archive-program .site-content,
body.post-type-archive-program .site-content > .ast-container,
body.post-type-archive-program #primary,
body.post-type-archive-program .site-main,
body.error404 .site-content,
body.error404 .site-content > .ast-container,
body.error404 #primary,
body.error404 .site-main {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
/* Astra's "separate container" layout also pads and boxes the article
   itself (the .ast-article-single class it adds via post_class). */
body.single-program .cs-program--v2.ast-article-single {
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}

/* Astra wraps templates in a (sometimes flex) .ast-container; take the
   full row, then let bleed sections break out to the viewport edges. */
.cs-program--v2 { width: 100%; flex: 1 1 100%; min-width: 0; }
/* The <main> landmark wrapping these templates sits in Astra's flex
   .ast-container; it must take the full row or the full-bleed sections
   are measured from a narrow box and shift sideways. */
.cs-main { display: block; width: 100%; flex: 1 1 100%; min-width: 0; max-width: none; }
/* Margin-based breakout (not left:50%) so it also works on the sticky bar. */
.cs-bleed { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); box-sizing: border-box; }

.cs-program--v2 .cs-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 999px; font-size: 16px; text-decoration: none; will-change: transform; }
.cs-program--v2 .cs-btn--primary { box-shadow: 0 10px 30px -12px rgba(245, 165, 36, 0.8); }
.cs-btn--glass { color: var(--cs-white); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cs-btn--glass:hover,
.cs-btn--glass:focus-visible { color: var(--cs-white); background: rgba(255, 255, 255, 0.16); border-color: var(--cs-white); }
.cs-program--v2 a:focus-visible,
.cs-program--v2 button:focus-visible,
.cs-program--v2 summary:focus-visible { outline: 3px solid var(--cs-amber); outline-offset: 3px; }

/* ---------- Hero ---------- */
.cs-phero { position: relative; isolation: isolate; overflow: hidden; color: var(--cs-white); background: var(--cs-navy-deep) center / cover no-repeat; padding: 110px 0 100px; }
.cs-phero__bg { position: absolute; inset: -10% 0; z-index: -2; background: inherit; background-size: cover; background-position: center; }
.cs-phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 27, 49, 0.95) 0%, rgba(6, 27, 49, 0.87) 45%, rgba(11, 42, 74, 0.6) 75%, rgba(14, 124, 134, 0.5) 100%); }
.cs-phero__grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 56px; align-items: center; }
.cs-crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; font-size: 14px; color: var(--cs-slate-on-navy); }
.cs-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.cs-crumbs a { color: var(--cs-slate-on-navy); text-decoration: none; }
.cs-crumbs a:hover { color: var(--cs-white); }
.cs-ptags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.cs-ptag { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--cs-white); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); }
.cs-ptag:hover { color: var(--cs-white); background: rgba(255, 255, 255, 0.2); }
.cs-ptag--cat { background: var(--cs-teal); border-color: var(--cs-teal); }
.cs-phero__title { color: var(--cs-white); font-size: clamp(36px, 5vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.cs-phero__title .w { display: inline-block; }
.cs-phero__lede { color: var(--cs-slate-on-navy); font-size: 19px; line-height: 1.6; max-width: 36em; margin: 22px 0 0; }
.cs-phero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cs-orb { position: relative; height: 360px; perspective: 1200px; }
.cs-orb__card { position: absolute; inset: 30px 20px; border-radius: 32px; display: grid; place-items: center; color: var(--cs-white); background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8); transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(8deg); }
.cs-orb__card svg { width: 140px; height: 140px; transform: translateZ(90px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }
.cs-orb__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(245, 165, 36, 0.4); transform: rotateX(70deg); }
.cs-fact { position: absolute; z-index: 2; padding: 12px 16px; border-radius: 16px; font-size: 13px; line-height: 1.35; color: var(--cs-slate-on-navy); background: rgba(6, 27, 49, 0.75); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cs-fact b { display: block; color: var(--cs-white); font-size: 15px; }
.cs-fact--1 { left: -10px; top: 8px; }
.cs-fact--2 { right: -6px; bottom: 14px; }
@media (max-width: 960px) {
	.cs-phero__grid { grid-template-columns: 1fr; }
	.cs-orb { height: 290px; max-width: 420px; }
	.cs-orb__card svg { width: 104px; height: 104px; }
}
@media (max-width: 640px) {
	.cs-orb { display: none; }
	.cs-phero { padding: 64px 0 56px; }
}

/* ---------- Section bar ---------- */
.cs-snav { position: sticky; top: var(--cs-sticky-top); z-index: 40; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--cs-border); }
.cs-snav__in { display: flex; gap: 6px; height: 60px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.cs-snav__in::-webkit-scrollbar { display: none; }
.cs-snav a { flex: none; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--cs-slate); transition: background 0.2s, color 0.2s; }
.cs-snav a:hover { color: var(--cs-navy); }
.cs-snav a.is-active { background: var(--cs-navy); color: var(--cs-white); }
.cs-snav__bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--cs-teal), var(--cs-amber)); transform-origin: left; transform: scaleX(0); }

/* ---------- Body ---------- */
.cs-pbody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; padding-top: 72px; padding-bottom: 100px; }
.cs-psec { margin-bottom: 64px; scroll-margin-top: calc(var(--cs-sticky-top) + 90px); }
.cs-pcontent { font-size: 17px; line-height: 1.7; color: var(--cs-ink); }
.cs-pcontent h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; }
.cs-pcontent h3 { font-size: 21px; font-weight: 700; margin: 32px 0 14px; }
/* Space above a sub-heading that follows cards, chips or a timeline.
   Scoped under the template class so theme heading/list margins can't win. */
.cs-program--v2 .cs-pcontent .cs-checklist,
.cs-program--v2 .cs-pcontent .cs-chips,
.cs-program--v2 .cs-pcontent .cs-timeline { margin-bottom: 40px; }
.cs-program--v2 .cs-pcontent .cs-psec > h3 { margin-top: 40px; }
.cs-pcontent p { margin: 0 0 16px; }
.cs-psec:first-child > h2 + p { font-family: var(--cs-font-heading); font-size: 20px; font-weight: 500; line-height: 1.55; color: var(--cs-navy); }
.cs-pcontent ul:not([class]) { margin: 0 0 20px; padding-left: 22px; }
.cs-pcontent ul:not([class]) li { margin-bottom: 8px; }
.cs-pcontent ul:not([class]) li::marker { color: var(--cs-teal); }

.cs-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0 0 20px; padding: 0; }
.cs-checklist li { position: relative; padding: 18px 18px 18px 64px; border-radius: 18px; background: var(--cs-mist); border: 1px solid var(--cs-border); line-height: 1.5; transition: border-color 0.25s, transform 0.25s; }
.cs-checklist li:hover { border-color: var(--cs-teal); transform: translateY(-3px); }
.cs-checklist li::before { content: ""; position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 10px; background: var(--cs-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 640px) { .cs-checklist { grid-template-columns: 1fr; } }

.cs-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 20px; padding: 0; }
.cs-chips li { padding: 12px 18px; border-radius: 14px; background: var(--cs-white); border: 1px solid var(--cs-border); font-weight: 600; font-size: 15px; line-height: 1.45; color: var(--cs-navy); box-shadow: 0 6px 16px -12px rgba(11, 42, 74, 0.4); }

.cs-timeline { position: relative; list-style: none; margin: 0 0 24px; padding: 0 0 0 40px; }
.cs-timeline::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: var(--cs-border); }
.cs-timeline::after { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--cs-teal), var(--cs-amber)); transform-origin: top; transform: scaleY(var(--cs-tl, 1)); }
.cs-timeline > li { position: relative; margin-bottom: 12px; }
.cs-timeline > li::before { content: ""; position: absolute; z-index: 1; left: -33px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--cs-white); border: 3px solid var(--cs-teal); }
.cs-timeline details { border-radius: 16px; border: 1px solid var(--cs-border); background: var(--cs-white); transition: border-color 0.25s, box-shadow 0.25s; }
.cs-timeline details[open] { border-color: var(--cs-teal); box-shadow: 0 20px 40px -30px rgba(11, 42, 74, 0.5); }
.cs-timeline summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 20px; font-family: var(--cs-font-heading); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--cs-navy); }
.cs-timeline summary::-webkit-details-marker { display: none; }
.cs-timeline summary::after { content: ""; flex: none; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--cs-slate); border-bottom: 2px solid var(--cs-slate); transform: rotate(45deg); transition: transform 0.25s; }
.cs-timeline details[open] summary::after { transform: rotate(225deg); }
.cs-pcontent .cs-timeline details > ul { margin: 0; padding: 0 20px 16px 40px; color: var(--cs-slate); }
.cs-pcontent .cs-timeline details > ul li { margin-bottom: 6px; }

.cs-pvideos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: -24px 0 64px; }
.cs-yt { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--cs-navy); box-shadow: 0 30px 60px -36px rgba(11, 42, 74, 0.7); }
.cs-yt__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; display: grid; place-items: center; }
.cs-yt__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-yt__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(6, 27, 49, 0.5), rgba(14, 124, 134, 0.3)); }
.cs-yt__play { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--cs-amber); color: var(--cs-navy); box-shadow: 0 0 0 12px rgba(245, 165, 36, 0.25); transition: transform 0.25s, box-shadow 0.25s; }
.cs-yt__btn:hover .cs-yt__play { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(245, 165, 36, 0.2); }
.cs-yt__play svg { width: 28px; height: 28px; margin-left: 4px; }
.cs-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Sidebar ---------- */
.cs-pside { position: sticky; top: calc(var(--cs-sticky-top) + 84px); display: grid; gap: 16px; }
.cs-scard { position: relative; overflow: hidden; padding: 28px; border-radius: 24px; background: var(--cs-navy); color: var(--cs-white); }
.cs-scard::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 124, 134, 0.6), transparent); pointer-events: none; }
.cs-scard > * { position: relative; z-index: 1; }
.cs-scard__title { font-family: var(--cs-font-heading); font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--cs-white); margin: 0 0 10px; }
.cs-scard__text { color: var(--cs-slate-on-navy); font-size: 15px; line-height: 1.55; margin: 0 0 20px; }
.cs-scard__facts { list-style: none; margin: 0 0 22px; padding: 0; }
.cs-scard__facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--cs-slate-on-navy); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cs-scard__facts b { color: var(--cs-white); font-weight: 600; text-align: right; }
.cs-scard .cs-btn { width: 100%; }
.cs-scard .cs-btn + .cs-btn { margin-top: 10px; }
.cs-tmini { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--cs-mist); border: 1px solid var(--cs-border); text-decoration: none; transition: border-color 0.2s; }
.cs-tmini:hover { border-color: var(--cs-teal); }
.cs-tmini__badge { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--cs-font-heading); font-weight: 800; color: var(--cs-white); background: linear-gradient(160deg, var(--cs-navy), var(--cs-teal)); }
.cs-tmini b { display: block; color: var(--cs-navy); font-size: 15px; }
.cs-tmini span span { color: var(--cs-slate); font-size: 13px; }
@media (max-width: 1000px) {
	.cs-pbody { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; }
	.cs-pside { position: static; }
}

/* ---------- Related + CTA ---------- */
.cs-prelated { background: var(--cs-mist); padding: 90px 0; }
.cs-prelated h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 36px; }
.cs-prelated .cs-card { border-radius: 22px; transform-style: preserve-3d; }
.cs-pcta { background: var(--cs-navy-deep); color: var(--cs-white); text-align: center; padding: 100px 0; }
.cs-pcta h2 { color: var(--cs-white); font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; max-width: 14em; margin: 0 auto 18px; }
.cs-pcta p { color: var(--cs-slate-on-navy); max-width: 32em; margin: 0 auto 32px; }

/* ---------- Mobile enquiry bar ---------- */
.cs-mbar { display: none; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 90; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(6, 27, 49, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); transform: translateY(160%); transition: transform 0.35s ease; }
.cs-mbar.is-on { transform: none; }
.cs-mbar__title { flex: 1; color: var(--cs-white); font-size: 14px; font-weight: 600; line-height: 1.3; }
.cs-program--v2 .cs-mbar .cs-btn { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1000px) { .cs-mbar { display: flex; right: 84px; } }

@media (prefers-reduced-motion: reduce) {
	.cs-program--v2 *, .cs-program--v2 *::before, .cs-program--v2 *::after { transition: none !important; }
}

/* ==========================================================================
   Category pages (templates/taxonomy-program_category.php). The wrapper is
   .cs-program--v2.cs-catpage, so the hero/buttons/CTA above apply here too.
   ========================================================================== */

.cs-catstats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 24px 0 0; padding: 0; }
.cs-catstats li { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--cs-slate-on-navy); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.cs-catstats b { color: var(--cs-white); }

.cs-catbar { position: sticky; top: var(--cs-sticky-top); z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--cs-border); }
.cs-catbar__in { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.cs-catbar__chips { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.cs-catbar__chips::-webkit-scrollbar { display: none; }
.cs-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--cs-border); background: var(--cs-white); color: var(--cs-slate); font: 600 14px/1.2 var(--cs-font-body); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.cs-chip span { font-size: 12px; padding: 2px 7px; border-radius: 999px; background: var(--cs-mist); color: var(--cs-slate); }
.cs-chip:hover { border-color: var(--cs-teal); color: var(--cs-navy); }
.cs-chip.is-active { background: var(--cs-navy); border-color: var(--cs-navy); color: var(--cs-white); }
.cs-chip.is-active span { background: rgba(255, 255, 255, 0.18); color: var(--cs-white); }
.cs-catbar__search { flex: none; position: relative; display: flex; align-items: center; }
.cs-catbar__search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--cs-slate); pointer-events: none; }
.cs-catbar__search input { box-sizing: border-box; width: 240px; height: 44px; padding: 0 16px 0 40px; border-radius: 999px; border: 1px solid var(--cs-border); background: var(--cs-mist); font-size: 15px; color: var(--cs-ink); }
.cs-catbar__search input:focus { outline: 3px solid var(--cs-amber); outline-offset: 2px; background: var(--cs-white); }
@media (max-width: 760px) {
	.cs-catbar__in { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 10px; }
	.cs-catbar__search input { width: 100%; }
}

.cs-catlist__body { padding-top: 56px; padding-bottom: 100px; }
.cs-catlist__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.cs-catlist__head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.cs-catlist__count { margin: 0; color: var(--cs-slate); font-size: 15px; }
.cs-catlist__count span { font-weight: 700; color: var(--cs-navy); }
.cs-catlist__empty { padding: 40px; border-radius: 20px; background: var(--cs-mist); text-align: center; color: var(--cs-slate); }

.cs-lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cs-lcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; background: var(--cs-white); border: 1px solid var(--cs-border); color: inherit; text-decoration: none; box-shadow: 0 20px 40px -36px rgba(11, 42, 74, 0.45); transition: border-color 0.25s, box-shadow 0.25s; transform-style: preserve-3d; will-change: transform; }
.cs-lcard:hover { color: inherit; border-color: var(--cs-teal); box-shadow: 0 30px 60px -36px rgba(11, 42, 74, 0.55); }
.cs-lcard[hidden] { display: none; }
.cs-lcard__top { display: flex; align-items: center; justify-content: space-between; }
.cs-lcard__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cs-mist); color: var(--cs-teal); transform: translateZ(30px); }
.cs-lcard__icon svg { width: 28px; height: 28px; }
.cs-lcard__badge { padding: 5px 11px; border-radius: 999px; background: var(--cs-amber); color: var(--cs-navy); font-size: 12px; font-weight: 700; }
.cs-program--v2 .cs-lcard h3 { font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--cs-navy); margin: 4px 0 0; }
.cs-program--v2 .cs-lcard p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--cs-slate); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-lcard__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cs-lcard__tag { padding: 4px 10px; border-radius: 999px; background: var(--cs-mist); font-size: 12px; font-weight: 600; color: var(--cs-slate); }
.cs-lcard__more { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--cs-teal); }
.cs-lcard:hover .cs-lcard__more { color: var(--cs-teal-hover); }

.cs-catothers__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.cs-otile { position: relative; isolation: isolate; overflow: hidden; flex: 0 0 250px; height: 170px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-radius: 20px; color: var(--cs-white); text-decoration: none; background: var(--cs-navy) center / cover no-repeat; transition: transform 0.3s; }
.cs-otile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(11, 42, 74, 0.9), rgba(14, 124, 134, 0.72)); }
.cs-otile:hover { color: var(--cs-white); transform: translateY(-4px); }
.cs-otile svg { width: 40px; height: 40px; color: var(--cs-white); }
.cs-otile b { display: block; font-family: var(--cs-font-heading); font-size: 16px; line-height: 1.3; }
.cs-otile small { font-size: 13px; color: var(--cs-teal-light); }

/* ---------- Programs archive (templates/archive-program.php) ---------- */
.cs-catbar__select { flex: none; }
.cs-catbar__select select { box-sizing: border-box; height: 44px; padding: 0 36px 0 16px; border-radius: 999px; border: 1px solid var(--cs-border); background: var(--cs-white); font: 600 14px var(--cs-font-body); color: var(--cs-navy); cursor: pointer; }
.cs-catbar__select select:focus { outline: 3px solid var(--cs-amber); outline-offset: 2px; }
.cs-archpage .cs-catlist__body > .cs-catlist__count { margin: 0 0 8px; }
.cs-lgroup { margin-top: 44px; }
.cs-lgroup[hidden] { display: none; }
.cs-lgroup__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.cs-program--v2 .cs-lgroup__head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; color: var(--cs-navy); margin: 0; }
.cs-lgroup__link { font-size: 14px; font-weight: 700; color: var(--cs-teal); text-decoration: none; border-bottom: 2px solid currentColor; }
.cs-lgroup__link:hover { color: var(--cs-teal-hover); }
@media (max-width: 760px) { .cs-catbar__select select { width: 100%; margin-bottom: 8px; } }
/* Hint that the chip row scrolls sideways when it overflows. */
.cs-archpage .cs-catbar__chips { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 40px; }

/* ---------- 404 page (templates/404.php) ---------- */
.cs-404__code { margin: 0 0 6px; font-family: var(--cs-font-heading); font-size: clamp(64px, 10vw, 120px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--cs-amber); }
.cs-404__search { display: flex; gap: 10px; margin-top: 30px; max-width: 520px; }
.cs-404__search input[type="search"] { box-sizing: border-box; flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); color: var(--cs-white); font: 16px var(--cs-font-body); }
.cs-404__search input[type="search"]::placeholder { color: var(--cs-slate-on-navy); }
.cs-404__search input[type="search"]:focus { outline: 3px solid var(--cs-amber); outline-offset: 2px; background: rgba(255, 255, 255, 0.16); }
.cs-404__search .cs-btn { flex: none; border: 0; cursor: pointer; }
.cs-404__links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 24px 0 0; padding: 0; }
.cs-404__links a { color: var(--cs-white); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--cs-amber); padding-bottom: 2px; }
.cs-404__links a:hover { color: var(--cs-amber); }
@media (max-width: 540px) { .cs-404__search { flex-direction: column; } .cs-404__search input[type="search"] { flex: none; width: 100%; } .cs-404__search .cs-btn { width: 100%; } }
