/* ==========================================================================
   ICM theme styles
   Layout: white header, deep-ink hero bands carrying the logo's twin-bar
   motif, calm white/mist sections, red kept for the one main action.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--blue: #3E4095;        /* sampled from the ICM logo */
	--blue-deep: #2D2F78;
	--blue-tint: #ECEDF8;
	--ink: #14152B;         /* the brand "black" */
	--ink-2: #1F2140;
	--ink-3: #0D0E1F;
	--red: #D7263D;         /* accent: main actions and small markers only */
	--red-deep: #B81D31;
	--paper: #FFFFFF;
	--mist: #F5F6FA;
	--line: #E3E5EE;
	--text: #1E2035;
	--muted: #5A5D75;
	--on-ink-muted: #B7B9D3;

	--f-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
	--f-body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;

	--wrap: 1280px;
	--gutter: 16px;
	--read: 760px;
	--radius: 10px;
	--header-h: 76px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
/* Anything hidden with the "hidden" attribute stays hidden, even when a
   component rule gives it a display value (e.g. filtered course cards). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* 3. Shared pieces --------------------------------------------------------- */
/* Twin slanted bars from the dot of the logo's "i". */
.bars { display: inline-flex; gap: 3px; transform: skewX(-38deg); flex: none; }
.bars i { display: block; width: 4px; height: 12px; background: currentColor; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 12.5px/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.eyebrow .bars { color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1.1 var(--f-body); padding: 15px 22px; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer; text-align: center; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.arrow { display: inline-block; transition: transform .15s; }
a:hover .arrow { transform: translateX(3px); }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* 4. Top bar --------------------------------------------------------------- */
.topbar { background: var(--ink); color: var(--on-ink-muted); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: var(--on-ink-muted); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar-contact, .topbar-links { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.topbar-links .social { padding: 2px; }
@media (max-width: 600px) { .topbar-links a:not(.social) { display: none; } .topbar-contact a:nth-child(2) span { display: none; } }

/* 5. Header and menu ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(8px); } }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header > .wrap { display: flex; align-items: center; gap: 36px; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 48px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { padding: 12px 18px; font-size: 14.5px; white-space: nowrap; }

.primary-nav .menu, .primary-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--text); }

/* Desktop menu */
@media (min-width: 1121px) {
	.primary-nav { margin-right: auto; }
	.primary-nav .menu { display: flex; align-items: center; gap: 2px; }
	.primary-nav li { position: relative; }
	.primary-nav .menu > li > a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 6px; font: 500 15px/1 var(--f-body); white-space: nowrap; }
	.primary-nav .menu > li > a:hover, .primary-nav .menu > li:focus-within > a, .primary-nav .menu > li:hover > a { background: var(--mist); color: var(--blue); }
	.primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a, .primary-nav .menu > .current_page_item > a { color: var(--blue); }
	.primary-nav .menu > .current-menu-item > a::before, .primary-nav .menu > .current-menu-ancestor > a::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); border-radius: 2px; }
	.primary-nav .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }

	.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 250px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 48px -20px rgba(20,21,43,.35); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .15s, transform .15s, visibility 0s .15s; margin-top: 6px; }
	.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .15s, transform .15s, visibility 0s; }
	.primary-nav .sub-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 6px; font: 500 14.5px/1.3 var(--f-body); }
	.primary-nav .sub-menu a:hover, .primary-nav .sub-menu li:focus-within > a { background: var(--mist); color: var(--blue); }
	.primary-nav .sub-menu .current-menu-item > a { color: var(--blue); }
	.primary-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); }
	.primary-nav .sub-menu .sub-menu { top: -9px; left: 100%; margin: 0 0 0 8px; }
	.primary-nav .sub-menu .sub-menu::before { top: 0; bottom: 0; left: -10px; right: auto; width: 10px; height: auto; }
	/* Keep the last items' dropdowns on screen */
	.primary-nav .menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
	.primary-nav .menu > li:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: 100%; margin: 0 8px 0 0; }

	.submenu-toggle, .menu-toggle { display: none; }
}

/* Small-screen menu */
.menu-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 14px; font: 600 14px/1 var(--f-body); color: var(--ink); cursor: pointer; }
.menu-toggle-icon { display: grid; gap: 4px; width: 18px; }
.menu-toggle-icon i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle-icon i:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
	.menu-toggle { display: inline-flex; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(20,21,43,.35); max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px)); }
	.menu-open .primary-nav { display: block; }
	.primary-nav li { position: relative; border-bottom: 1px solid var(--line); }
	.primary-nav .sub-menu li:last-child { border-bottom: 0; }
	.primary-nav a { display: block; padding: 14px 52px 14px 0; font: 600 16px/1.3 var(--f-body); }
	.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--blue); }
	.primary-nav .sub-menu { display: none; padding: 0 0 8px 16px; border-left: 2px solid var(--blue-tint); margin-bottom: 12px; }
	.primary-nav .sub-menu a { font-weight: 500; font-size: 15px; padding-block: 10px; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.submenu-toggle { position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
	.submenu-toggle:hover { background: var(--mist); }
	.submenu-toggle span { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
	.is-open > .submenu-toggle span { transform: translateY(2px) rotate(-135deg); }
	.sub-menu .submenu-toggle { top: 0; }
}
@media (max-width: 480px) {
	.header-cta { display: none; }
	.brand img { height: 42px; }
	.site-header > .wrap { min-height: 68px; }
	:root { --header-h: 68px; }
}

/* 6. Hero bands ------------------------------------------------------------ */
.hero, .page-hero, .cta-band, .purpose { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before { /* the twin-bar motif, enlarged */
	content: ""; position: absolute; z-index: -1; right: -6%; top: -30%; width: 46%; height: 170%;
	background: linear-gradient(90deg, var(--blue) 0 38%, transparent 38% 54%, var(--blue) 54% 92%, transparent 92%);
	transform: skewX(-38deg); opacity: .55;
}
.hero::after, .page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 80% at 15% 0%, rgba(62,64,149,.45), transparent 70%); }

.hero .wrap { padding-block: 104px 112px; }
.hero-copy { max-width: 720px; }
.hero .eyebrow, .page-hero .eyebrow, .purpose .eyebrow { color: var(--on-ink-muted); }
.hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; font-weight: 800; margin: 22px 0 0; letter-spacing: -0.03em; }
.hero h1 em, .page-hero h1 em { font-style: normal; background: linear-gradient(transparent 78%, var(--red) 78% 92%, transparent 92%); }
.hero .lede { color: var(--on-ink-muted); font-size: 18.5px; line-height: 1.6; margin: 22px 0 0; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 900px) { .hero .wrap { padding-block: 64px 72px; } .hero::before, .page-hero::before { width: 80%; right: -40%; opacity: .35; } }

.page-hero .wrap { padding-block: 64px 60px; }
.page-hero::before { width: 32%; right: -2%; opacity: .45; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; font-weight: 800; margin: 16px 0 0; max-width: 20em; letter-spacing: -0.025em; }
.page-hero-intro { color: var(--on-ink-muted); font-size: 17.5px; max-width: 40em; margin-top: 16px; }
.page-hero-intro p { margin: 0; }
.page-hero-meta { color: var(--on-ink-muted); font-size: 14.5px; margin: 16px 0 0; }
@media (max-width: 720px) { .page-hero .wrap { padding-block: 44px 40px; } }

/* 7. Homepage sections ----------------------------------------------------- */
.trust { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.trust a { padding: 26px 24px 26px 0; display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.trust a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.trust a:hover strong { color: var(--blue); }
.trust strong { display: block; font: 700 15.5px/1.3 var(--f-display); color: var(--ink); transition: color .15s; }
.trust small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.trust .bars { color: var(--blue); margin-top: 4px; }
@media (max-width: 860px) { .trust .wrap { grid-template-columns: repeat(2, minmax(0,1fr)); } .trust a:nth-child(3) { padding-left: 0; border-left: 0; } .trust a:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .trust .wrap { grid-template-columns: 1fr; } .trust a, .trust a + a { padding-left: 0; border-left: 0; } .trust a + a { border-top: 1px solid var(--line); } }

.section { padding-block: 96px; }
.section.mist { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head h2, .split-copy h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; margin: 14px 0 0; font-weight: 800; }
.section-head p { color: var(--muted); max-width: 36em; margin: 0; font-size: 17px; }
.section-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 720px) { .section { padding-block: 64px; } .section-head { margin-bottom: 32px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split-copy p { color: var(--muted); font-size: 17px; margin: 18px 0 0; max-width: 34em; }
.split-copy h2 { margin-bottom: 6px; }
.split-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.split-media { margin: 0; position: relative; }
.split-media::before { content: ""; position: absolute; z-index: 0; right: -18px; bottom: -18px; width: 62%; height: 70%; background: var(--blue-tint); border-radius: 14px; }
.split-media img { position: relative; z-index: 1; display: block; width: 100%; border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } .split-media::before { right: -8px; bottom: -8px; } }

.link-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.link-cards a { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.link-cards a:hover { border-color: var(--blue); box-shadow: 0 18px 40px -24px rgba(62,64,149,.45); transform: translateY(-2px); color: var(--text); }
.ico { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.link-cards h3 { font-size: 19px; margin: 8px 0 0; }
.link-cards p { color: var(--muted); font-size: 15px; margin: 0; }
.link-cards .more { margin-top: auto; padding-top: 8px; color: var(--blue); font-weight: 600; font-size: 14.5px; }
@media (max-width: 1040px) { .link-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 540px) { .link-cards { grid-template-columns: 1fr; } }

.events-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.row-links { border-top: 1px solid var(--line); }
.row-links a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.row-links a:hover { color: var(--text); }
.row-links a:hover strong { color: var(--blue); }
.row-links strong { display: block; font: 700 18px/1.3 var(--f-display); color: var(--ink); transition: color .15s; }
.row-links small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.row-links .arrow { color: var(--blue); font-size: 18px; }
.feature-card { background: var(--blue); color: #fff; border-radius: 14px; overflow: hidden; position: relative; isolation: isolate; }
.feature-card figure { margin: 0; }
.feature-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-body { padding: 30px 28px 32px; position: relative; }
.feature-body::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 160px; height: 220px; background: linear-gradient(90deg, rgba(255,255,255,.1) 0 40%, transparent 40% 58%, rgba(255,255,255,.1) 58%); transform: skewX(-38deg); }
.feature-card .eyebrow { color: #D6D7F3; }
.feature-card .eyebrow .bars { color: #fff; }
.feature-card h3 { color: #fff; font-size: 24px; line-height: 1.2; margin: 14px 0 0; }
.feature-card p { color: #D6D7F3; margin: 12px 0 24px; font-size: 15.5px; }
@media (max-width: 900px) { .events-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row-links a { grid-template-columns: auto minmax(0,1fr); } .row-links .arrow { display: none; } }

.purpose { background: var(--ink); }
.purpose::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -20%; width: 120px; height: 140%; background: linear-gradient(90deg, var(--blue) 0 38%, transparent 38% 60%, var(--blue) 60%); transform: translateX(-50%) skewX(-38deg); opacity: .35; }
.purpose .wrap { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 48px 140px; padding-block: 88px; }
.purpose p { color: #fff; font: 600 clamp(21px, 2.2vw, 27px)/1.4 var(--f-display); letter-spacing: -0.01em; margin: 18px 0 0; text-wrap: pretty; }
@media (max-width: 860px) { .purpose .wrap { grid-template-columns: 1fr; padding-block: 64px; } .purpose::before { display: none; } }

.cta-band::before { content: ""; position: absolute; z-index: -1; left: -60px; top: -40%; width: 260px; height: 180%; background: linear-gradient(90deg, var(--blue) 0 38%, transparent 38% 56%, var(--blue) 56%); transform: skewX(-38deg); opacity: .5; }
.cta-band { border-top: 1px solid var(--ink-2); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: 72px; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; max-width: 18em; font-weight: 800; margin: 0; }
.cta-band p { color: var(--on-ink-muted); margin: 12px 0 0; font-size: 17px; max-width: 36em; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 900px) { .cta-band .wrap > div:first-child { padding-left: 120px; } }

/* 8. Post cards ------------------------------------------------------------ */
.news { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px 28px; }
.post-card-link { display: flex; flex-direction: column; gap: 10px; color: var(--text); height: 100%; }
.post-card-link:hover { color: var(--text); }
.post-card-link:hover h3 { color: var(--blue); }
.thumb { aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--radius); background: var(--blue-tint); position: relative; overflow: hidden; margin-bottom: 6px; }
.thumb::before { content: ""; position: absolute; inset: -20% 10% -20% 45%; background: linear-gradient(90deg, rgba(62,64,149,.3) 0 38%, transparent 38% 56%, rgba(62,64,149,.3) 56%); transform: skewX(-38deg); }
.thumb img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card-link:hover .thumb img { transform: scale(1.03); }
.post-card .cat { font: 600 12.5px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.post-card h3 { font-size: 19.5px; line-height: 1.3; margin: 0; transition: color .15s; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.post-card time { font-size: 13.5px; color: var(--muted); margin-top: auto; }
@media (max-width: 900px) { .news { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; gap: 36px; } }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-numbers.dots { border: 0; }

/* 9. Page content ---------------------------------------------------------- */
.main { padding-block: 64px 96px; }
.main-flush { padding-block: 0; }
.entry { max-width: var(--read); margin: 0 auto; }
.entry.is-wide, .entry.is-full { max-width: none; }
.icm-builder-page .main:not(.main-flush) { padding-block: 48px 72px; }
.entry-image { margin: 0 0 40px; }
.entry-image img { display: block; width: 100%; border-radius: 14px; }

.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.75em; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.35em; margin-top: 1.6em; }
.entry-content h4 { font-size: 1.12em; margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content ul li::marker { color: var(--red); }
.entry-content a:not(.btn):not(.wp-block-button__link):not(.elementor-button) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(62,64,149,.4); }
.entry-content a:not(.btn):not(.wp-block-button__link):not(.elementor-button):hover { text-decoration-color: currentColor; }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--red); font: 500 1.15em/1.6 var(--f-display); color: var(--ink); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.entry-content img { border-radius: 6px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); margin-top: 8px; }
/* Tables: always the full column width (fixed widths pasted from Word are
   ignored), cells wrap instead of scrolling, numbers line up on the right. */
.entry-content table { width: 100% !important; height: auto !important; max-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; font-size: 15.5px; line-height: 1.5; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-block: 8px 1.6em; }
.entry-content th, .entry-content td { width: auto !important; padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.entry-content tr:last-child > td, .entry-content tr:last-child > th { border-bottom: 0; }
.entry-content td p { margin: 0; text-align: inherit !important; }
.entry-content td strong { font-weight: inherit; }
.entry-content th, .entry-content thead td,
.entry-content tbody > tr:first-child:not(:has(> td:not(:has(> strong)))) > td { background: var(--mist); color: var(--ink); font-weight: 600; font-size: 14px; }
.entry-content td:first-child { color: var(--ink); font-weight: 600; }
.entry-content td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.entry-content tbody > tr:not(:first-child) > td:last-child:not(:only-child) { font-weight: 600; color: var(--ink); }
.entry-content tbody > tr:not(:first-child):hover > td { background: rgba(62, 64, 149, .035); }
@media (max-width: 600px) {
	.entry-content table { font-size: 14px; }
	.entry-content th, .entry-content td { padding: 11px 10px; }
}
.entry-content pre { background: var(--mist); padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 0 0 1em; } }
.entry:not(.is-wide):not(.is-full) .alignwide { margin-left: calc((var(--read) - min(1216px, 100vw - 2 * var(--gutter))) / 2); margin-right: calc((var(--read) - min(1216px, 100vw - 2 * var(--gutter))) / 2); max-width: none; }
.entry:not(.is-wide):not(.is-full) .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (max-width: 824px) { .entry:not(.is-wide):not(.is-full) .alignwide { margin-left: 0; margin-right: 0; } }

/* Builder content: let builders control their own spacing */
.entry.is-wide .entry-content, .entry.is-full .entry-content { font-size: 16px; line-height: 1.65; }
.entry.is-wide .entry-content > *, .entry.is-full .entry-content > * { margin-bottom: 0; }
.elementor .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

.page-links { margin-top: 32px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.entry-tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a { font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); }

.post-navigation { max-width: var(--read); margin: 56px auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); height: 100%; }
.post-navigation a:hover { border-color: var(--blue); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-label { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-navigation .nav-title { font: 700 16px/1.35 var(--f-display); color: var(--ink); }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: auto; } }

.empty-state { max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: 20px; justify-items: center; }
.empty-state h2 { margin: 0; }
.empty-state p { margin: 0; color: var(--muted); }
.quick-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.quick-links a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14.5px; }
.quick-links a:hover { border-color: var(--blue); }
.search-again { max-width: 640px; margin: 0 auto 48px; }

/* 10. Forms (theme, Gravity Forms, Contact Form 7, Ninja Forms) ------------ */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], select, textarea) {
	font: 400 16px/1.4 var(--f-body); color: var(--ink); background: var(--paper);
	border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; max-width: 100%;
	transition: border-color .15s, box-shadow .15s;
}
:where(input, select, textarea):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
:where(textarea) { min-height: 140px; }
:where(label) { font-weight: 600; color: var(--ink); }
:where(input[type="submit"], button[type="submit"], .button, .gform_button, .wpcf7-submit, .nf-form-content input[type="button"], .nf-form-content input[type="submit"]) {
	display: inline-flex; align-items: center; justify-content: center; font: 600 15px/1.1 var(--f-body);
	padding: 15px 24px; border-radius: 8px; border: 0; background: var(--blue); color: #fff; cursor: pointer;
	transition: background .15s;
}
:where(input[type="submit"], button[type="submit"], .button, .gform_button, .wpcf7-submit, .nf-form-content input[type="button"], .nf-form-content input[type="submit"]):hover { background: var(--blue-deep); color: #fff; }

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]), .wpcf7 select, .wpcf7 textarea { width: 100%; }
.wpcf7-not-valid-tip, .gform_wrapper .validation_message, .nf-error-msg { color: var(--red-deep); font-size: 14px; }
.wpcf7 form .wpcf7-response-output { border-radius: 8px; padding: 12px 16px; margin: 20px 0 0; }
.gform_wrapper .gfield_label { font-weight: 600; color: var(--ink); }
.gform_wrapper .gfield_required { color: var(--red); }
.gform_wrapper .gsection { border-bottom-color: var(--line); }
.gform_wrapper div.validation_error { border-color: var(--red); color: var(--red-deep); border-radius: 8px; }
.nf-form-content .nf-field-container { margin-bottom: 20px; }
.nf-form-content .ninja-forms-req-symbol, .ninja-forms-req-symbol { color: var(--red); }

.search-form { display: flex; gap: 8px; width: 100%; }
.search-form .search-field { flex: 1; min-width: 0; }
.search-form .btn { flex: none; }

/* 11. Comments ------------------------------------------------------------- */
.comments { max-width: var(--read); margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: 14px; color: var(--muted); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.comment-author img { border-radius: 50%; }
.comment-form { display: grid; gap: 16px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; }
.comment-form label { display: block; margin-bottom: 6px; }

/* 12. Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink-3); color: var(--on-ink-muted); font-size: 14.5px; }
.site-footer .wrap { padding-block: 64px 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-logo { display: inline-block; line-height: 0; }
.foot-logo img { height: 54px; width: auto; display: block; }
.foot-brand p { margin: 18px 0 0; max-width: 30em; line-height: 1.6; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #2A2C4C; border-radius: 8px; color: var(--on-ink-muted); }
.foot-social a:hover { border-color: #fff; color: #fff; }
.foot-heading { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-ink-muted); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.6; margin-bottom: 14px; }
.foot-contact a { color: #fff; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #262845; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* 12b. Older classic-editor content ----------------------------------------
   Pasted colours, justified text and floated photos from the old site,
   brought in line with the theme. See also inc/content.php. */
.entry-content [style*="color"]:not(a):not(.btn):not(.form-card *) { color: inherit !important; }
.entry-content [style*="justify"], .entry-content [align="justify" i] { text-align: left !important; }
.entry-content [align="justify" i] { display: block; }
.entry-content .icm-subhead { font-size: 1.3em; font-weight: 800; color: var(--ink); margin: 1.8em 0 .6em; }
.entry-content > .icm-subhead:first-child, .entry-content > div:first-child + .icm-subhead { margin-top: 0; }
.entry-content h3 > strong, .entry-content h2 > strong { font-weight: inherit; }
.entry-content hr { clear: both; }
.entry-content > div[align] { clear: both; }
.entry-content img.alignleft, .entry-content img.alignright { border-radius: 10px; }
.entry-content img.alignleft { margin: .35em 1.75em 1em 0; }
.entry-content img.alignright { margin: .35em 0 1em 1.75em; }
@media (max-width: 600px) {
	.entry-content img.alignleft, .entry-content img.alignright { float: none; display: block; margin: 0 0 1em; max-width: 220px; }
}
/* Buttons pasted as inline-styled links (e.g. Annual Conference). */
.entry-content a[style*="background"] { display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; height: auto !important; margin-top: 8px !important; padding: 15px 24px !important; background: var(--blue) !important; border-radius: 8px !important; color: #fff !important; font: 600 15px/1.1 var(--f-body) !important; text-decoration: none !important; }
.entry-content a[style*="background"]:hover { background: var(--blue-deep) !important; }
.entry-content a[style*="background"] br { display: none; }
.entry-content a[style*="background"] span { margin: 0 !important; }

/* The Social Media Buttons Toolbar plugin's icons duplicate the header and
   footer links (and relied on Sydney's scripts). Deactivate the plugin to
   remove them completely. */
.sxc-follow-buttons { display: none !important; }

/* 12c. FAQ accordion (Squelch Tabs and Accordions, jQuery UI) ---------------- */
.squelch-taas-accordion.ui-accordion { border-top: 1px solid var(--line); margin-bottom: 1.6em; font-family: var(--f-body); }
.squelch-taas-accordion > p:empty { display: none; }
.squelch-taas-accordion.ui-accordion .ui-accordion-header {
	position: relative; margin: 0; padding: 20px 52px 20px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
	background: none; color: var(--ink); font: 700 18px/1.4 var(--f-display); letter-spacing: -0.01em; cursor: pointer;
}
.squelch-taas-accordion.ui-accordion .ui-accordion-header a { color: inherit; text-decoration: none !important; padding: 0; display: block; }
.squelch-taas-accordion.ui-accordion .ui-accordion-header:hover { color: var(--blue); }
.squelch-taas-accordion.ui-accordion .ui-accordion-header .ui-icon { display: none; }
.squelch-taas-accordion.ui-accordion .ui-accordion-header::before,
.squelch-taas-accordion.ui-accordion .ui-accordion-header::after { content: ""; position: absolute; right: 14px; top: 50%; width: 14px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .2s; }
.squelch-taas-accordion.ui-accordion .ui-accordion-header::after { transform: rotate(90deg); }
.squelch-taas-accordion.ui-accordion .ui-accordion-header.ui-state-active { color: var(--blue); border-bottom-color: transparent; }
.squelch-taas-accordion.ui-accordion .ui-accordion-header.ui-state-active::after { transform: rotate(0deg); }
.squelch-taas-accordion.ui-accordion .ui-accordion-header.ui-state-focus { outline: 3px solid var(--red); outline-offset: 2px; }
.squelch-taas-accordion.ui-accordion .ui-accordion-content {
	padding: 0 52px 22px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none;
	color: var(--muted); font-size: 16.5px; line-height: 1.7; height: auto !important;
}
.squelch-taas-accordion.ui-accordion .ui-accordion-content p { margin: 0 0 .8em; text-align: left !important; }
.squelch-taas-accordion.ui-accordion .ui-accordion-content > :last-child { margin-bottom: 0; }

/* 12d. Gravity Forms 2.0 (its own stylesheets load first, so these are firmer) */
.gform_wrapper { margin: 24px 0 0 !important; max-width: 100% !important; }
.gform_wrapper .gform_heading { margin-bottom: 8px; }
.gform_wrapper h3.gform_title { font: 800 24px/1.25 var(--f-display) !important; color: var(--ink); margin: 0 0 4px !important; }
.gform_wrapper .gform_description { color: var(--muted); }
.gform_wrapper ul.gform_fields li.gfield { padding-right: 0 !important; margin-top: 18px !important; }
.gform_wrapper .top_label .gfield_label, .gform_wrapper legend.gfield_label { font: 600 15px/1.4 var(--f-body) !important; color: var(--ink); margin-bottom: 6px !important; }
.gform_wrapper .gfield_required { color: var(--red) !important; margin-left: 3px; }
.gform_wrapper .ginput_complex label, .gform_wrapper .gfield_description, .gform_wrapper .instruction { font-size: 13px !important; color: var(--muted); padding-top: 4px !important; }
.gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
.gform_wrapper select,
.gform_wrapper textarea {
	font: 400 16px/1.4 var(--f-body) !important; color: var(--ink) !important; background: var(--paper) !important;
	border: 1.5px solid var(--line) !important; border-radius: 8px !important; padding: 12px 14px !important; box-shadow: none !important;
	transition: border-color .15s, box-shadow .15s;
}
.gform_wrapper select { padding-right: 36px !important; }
.gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]):focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus { outline: none !important; border-color: var(--blue) !important; box-shadow: 0 0 0 4px var(--blue-tint) !important; }
.gform_wrapper textarea { min-height: 150px; }
.gform_wrapper input[type="radio"], .gform_wrapper input[type="checkbox"] { accent-color: var(--blue); width: 18px; height: 18px; }
.gform_wrapper .gfield_radio li label, .gform_wrapper .gfield_checkbox li label { font-size: 15px; }
.gform_wrapper .gform_footer { padding: 8px 0 0 !important; margin: 24px 0 0 !important; }
.gform_wrapper .gform_footer input[type="submit"], .gform_wrapper .gform_page_footer input[type="submit"], .gform_wrapper .gform_page_footer input[type="button"] {
	font: 600 15px/1.1 var(--f-body) !important; padding: 15px 28px !important; border: 0 !important; border-radius: 8px !important;
	background: var(--blue) !important; color: #fff !important; cursor: pointer; width: auto !important;
}
.gform_wrapper .gform_footer input[type="submit"]:hover { background: var(--blue-deep) !important; }
.gform_wrapper div.validation_error { border: 1.5px solid var(--red) !important; background: rgba(215,38,61,.06); color: var(--red-deep) !important; border-radius: 8px; padding: 14px 16px !important; font-size: 15px !important; }
.gform_wrapper li.gfield.gfield_error { background: none !important; border: 0 !important; }
.gform_wrapper li.gfield_error input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]), .gform_wrapper li.gfield_error textarea { border-color: var(--red) !important; }
.gform_wrapper .validation_message { color: var(--red-deep) !important; font-size: 13.5px; }
.gform_confirmation_message { background: var(--blue-tint); color: var(--blue-deep); padding: 18px 20px; border-radius: 10px; font-weight: 500; }

/* 12e. Membership application form card ------------------------------------ */
.form-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; margin: 48px 0 0; padding: 30px 32px; background: var(--mist); border: 1px solid var(--line); border-radius: 14px; position: relative; overflow: hidden; isolation: isolate; }
.form-card::after { content: ""; position: absolute; z-index: -1; right: -30px; top: -40px; width: 120px; height: 200px; background: linear-gradient(90deg, var(--blue-tint) 0 38%, transparent 38% 58%, var(--blue-tint) 58%); transform: skewX(-38deg); }
.form-card-doc { width: 92px; }
.form-card-sheet { position: relative; display: grid; align-content: start; gap: 7px; width: 92px; height: 118px; padding: 26px 14px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 6px 20px 6px 6px; box-shadow: 0 16px 30px -18px rgba(20,21,43,.35); transform: rotate(-4deg); }
.form-card-sheet::before { content: ""; position: absolute; top: -1px; right: -1px; width: 20px; height: 20px; background: linear-gradient(225deg, var(--mist) 50%, var(--blue-tint) 50%); border-bottom-left-radius: 4px; }
.form-card-sheet i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.form-card-sheet i:nth-child(2) { width: 75%; }
.form-card-sheet i:nth-child(4) { width: 55%; }
.form-card-sheet b { position: absolute; left: -10px; bottom: 16px; background: var(--red); color: #fff; font: 800 12px/1 var(--f-display); letter-spacing: .06em; padding: 6px 9px; border-radius: 4px; }
.form-card-body { display: grid; gap: 10px; justify-items: start; }
.entry-content .form-card h2, .form-card h2 { font-size: 23px; line-height: 1.25; margin: 2px 0 0; color: var(--ink); }
.entry-content .form-card p, .form-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 46em; }
.form-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 8px; }
.form-card-meta { font: 600 12.5px/1 var(--f-body); letter-spacing: .08em; color: var(--muted); }
.entry-content .form-card a.text-link { text-decoration: none; }
.entry.is-wide .form-card, .entry.is-full .form-card { max-width: var(--read); margin-left: auto; margin-right: auto; }
.entry.is-full .form-card { margin-bottom: 64px; }
@media (max-width: 560px) {
	.form-card { grid-template-columns: 1fr; padding: 26px 22px; gap: 22px; }
	.form-card-doc { width: 78px; }
	.form-card-sheet { width: 78px; height: 100px; padding-top: 22px; }
}

.section-foot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.pdf-link svg { flex: none; }
.foot-pdf span { font: 700 10.5px/1 var(--f-body); letter-spacing: .06em; color: #fff; background: var(--red); padding: 3px 5px; border-radius: 3px; margin-left: 4px; vertical-align: 2px; }
.foot-bottom-links { display: inline-flex; gap: 22px; flex-wrap: wrap; }

/* 12f. Courses: catalogue, cards and course page ---------------------------- */
.btn-sm { padding: 11px 16px; font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

/* Next course highlight */
.next-course { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--ink); color: #fff; border-radius: 14px; padding: 26px 30px; margin-bottom: 40px; position: relative; overflow: hidden; isolation: isolate; }
.next-course::after { content: ""; position: absolute; z-index: -1; right: 18%; top: -40%; width: 120px; height: 180%; background: linear-gradient(90deg, var(--blue) 0 38%, transparent 38% 58%, var(--blue) 58%); transform: skewX(-38deg); opacity: .45; }
.next-course-date { display: grid; justify-items: center; align-content: center; width: 84px; height: 92px; background: #fff; color: var(--ink); border-radius: 10px; font-variant-numeric: tabular-nums; line-height: 1; gap: 4px; }
.next-course-date span { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.next-course-date span:last-child { color: var(--muted); letter-spacing: .04em; }
.next-course-date b { font: 800 34px/1 var(--f-display); }
.next-course .eyebrow { color: var(--on-ink-muted); }
.next-course h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; margin: 10px 0 0; }
.next-course h2 a { color: #fff; }
.next-course h2 a:hover { color: #D6D7F3; }
.next-course-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 10px 0 0; color: var(--on-ink-muted); font-size: 14.5px; }
.next-course-meta span + span::before { content: "·"; margin: 0 10px; opacity: .6; }
.next-course-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .next-course { grid-template-columns: auto minmax(0, 1fr); } .next-course-actions { grid-column: 1 / -1; } }
@media (max-width: 520px) { .next-course { grid-template-columns: 1fr; padding: 24px 22px; gap: 18px; } .next-course-date { width: 72px; height: 80px; } }

/* Search and filters */
.catalogue-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; align-items: end; padding: 22px; background: var(--mist); border-radius: 14px; }
.catalogue-search { position: relative; grid-column: 1 / -1; }
.catalogue-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.catalogue-search input { width: 100%; padding: 15px 16px 15px 46px; font-size: 16.5px; border-radius: 10px; background: var(--paper); }
.catalogue-filters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.filter-field { display: grid; gap: 6px; min-width: 0; }
.filter-field label { font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filter-field select { width: 100%; padding-right: 36px; background-color: var(--paper); appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A5D75' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.filters-toggle { display: none; align-items: center; gap: 8px; font: 600 14.5px/1 var(--f-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.filters-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; }
.topic-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { font: 600 14px/1 var(--f-body); color: var(--text); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: border-color .15s, background .15s, color .15s; }
.topic-chip span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.topic-chip:hover { border-color: var(--blue); color: var(--blue); }
.topic-chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.topic-chip[aria-pressed="true"] span { color: rgba(255,255,255,.75); }
@media (max-width: 860px) { .catalogue-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.catalogue-tools { padding: 16px; }
	.catalogue-search { grid-column: 1; }
	.filters-toggle { display: inline-flex; }
	.catalogue-filters, .topic-chips { display: none; }
	.catalogue-tools.is-open .catalogue-filters { display: grid; grid-template-columns: 1fr; }
	.catalogue-tools.is-open .topic-chips { display: flex; }
}

.catalogue-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.catalogue-status p { margin: 0; color: var(--muted); font-size: 15px; }
.clear-filters { background: none; border: 0; padding: 0; cursor: pointer; font: 600 15px/1.2 var(--f-body); color: var(--blue); }
.course-empty { padding: 48px 0 24px; }

/* Course cards
   Each topic has its own colour (--accent for text and marks, --tint for the
   card's header band). Topics get their number from icm_topic_class(). */
.topic-0, .topic-1 { --accent: #3E4095; --tint: #ECEDF8; } /* ICM blue */
.topic-2 { --accent: #0E7A71; --tint: #E2F3F0; }            /* teal */
.topic-3 { --accent: #7B3F91; --tint: #F3E9F6; }            /* plum */
.topic-4 { --accent: #A85A0C; --tint: #FCEFDF; }            /* amber */
.topic-5 { --accent: #C21F37; --tint: #FBE8EA; }            /* ICM red */
.topic-6 { --accent: #1E4F7A; --tint: #E3EDF6; }            /* navy */

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; box-shadow: 0 1px 2px rgba(20,21,43,.04); transition: border-color .2s, box-shadow .2s, transform .2s; }
.course-card:hover { border-color: var(--accent); box-shadow: 0 22px 44px -26px rgba(20,21,43,.35); transform: translateY(-3px); }

.cc-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--tint); isolation: isolate; overflow: hidden; }
.cc-head::after { /* the logo's twin bars, faint */ content: ""; position: absolute; z-index: -1; right: -18px; top: -30px; width: 74px; height: 150px; background: linear-gradient(90deg, var(--accent) 0 36%, transparent 36% 60%, var(--accent) 60%); transform: skewX(-38deg); opacity: .12; transition: opacity .2s; }
.course-card:hover .cc-head::after { opacity: .2; }
.cc-date { flex: none; display: grid; justify-items: center; align-content: center; gap: 3px; width: 66px; min-height: 72px; padding: 8px 4px; background: var(--paper); border-radius: 10px; box-shadow: 0 8px 18px -10px rgba(20,21,43,.35); text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.cc-month { font: 700 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cc-day { font: 800 22px/1 var(--f-display); color: var(--ink); white-space: nowrap; }
.cc-day.is-range { font-size: 16px; }
.cc-year { font: 500 11px/1 var(--f-body); color: var(--muted); }
.cc-head-text { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.course-topic { font: 700 11.5px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.course-badge { font: 600 11.5px/1 var(--f-body); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.badge-upcoming { background: #E3F3EA; color: #1F7A4D; }
.badge-now { background: var(--blue-tint); color: var(--blue-deep); }
.badge-past { background: var(--mist); color: var(--muted); border: 1px solid var(--line); }
.cc-head .badge-upcoming, .cc-head .badge-now, .cc-head .badge-past { background: var(--paper); }

.cc-body { display: grid; gap: 8px; align-content: start; padding: 18px 20px 0; }
.course-card h3 { font-size: 18px; line-height: 1.35; margin: 0; }
.course-card h3 a { color: var(--ink); }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.course-card:hover h3 a { color: var(--accent); }
.course-summary { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cc-foot { margin-top: auto; display: grid; gap: 14px; padding: 16px 20px 18px; }
.cc-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.cc-meta > span:not(.screen-reader-text) + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px; border-radius: 50%; background: var(--line); vertical-align: middle; }
.cc-fee { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.course-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.course-actions a { position: relative; z-index: 1; } /* above the whole-card link */
.course-actions .text-link { color: var(--accent); }

/* Past courses step back so upcoming ones stand out. */
.course-card.is-past { box-shadow: none; }
.course-card.is-past .cc-head { background: var(--mist); }
.course-card.is-past .cc-head::after { opacity: .06; }
.course-card.is-past .cc-date { box-shadow: none; border: 1px solid var(--line); }
.course-card.is-past .cc-month, .course-card.is-past .cc-day { color: var(--muted); }
.course-card.is-past h3 a { color: var(--text); }
.course-card.is-past .cc-fee { color: var(--text); }

/* Divider between upcoming and past courses (added by courses.js). */
.grid-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; margin: 20px 0 0; }
.grid-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid-divider h3 { margin: 0; font-size: 19px; }
.grid-divider p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; max-width: 46em; }

/* Topic dots on the filter buttons */
.topic-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.topic-chip[aria-pressed="true"]:not([data-topic=""]) { background: var(--accent); border-color: var(--accent); }
.topic-chip[aria-pressed="true"] .topic-dot { background: #fff; }
.topic-chip:hover:not([aria-pressed="true"]) { border-color: var(--accent, var(--blue)); color: var(--accent, var(--blue)); }

@media (max-width: 1040px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; gap: 18px; } .grid-divider { flex-direction: column; align-items: flex-start; gap: 10px; } .grid-divider::after { width: 100%; flex: none; } }
@media (prefers-reduced-motion: reduce) { .course-card:hover { transform: none; } }

.catalogue-help { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; margin-top: 56px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 14px; }
.catalogue-help h2 { font-size: 21px; margin: 0; }
.catalogue-help p { margin: 6px 0 0; color: var(--muted); }
.catalogue-help-links { display: flex; flex-wrap: wrap; gap: 10px; }
.catalogue-help-links a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 14.5px; }
.catalogue-help-links a:hover { border-color: var(--blue); }

/* Course page */
.course-hero .wrap { padding-block: 44px 0; }
.course-back { display: inline-flex; gap: 8px; align-items: center; color: var(--on-ink-muted); font-size: 14.5px; font-weight: 600; margin-bottom: 26px; }
.course-back:hover { color: #fff; }
.course-hero h1 { max-width: 24em; }
.course-keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.course-keyfacts div { padding: 20px 20px 26px 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
.course-keyfacts div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.course-keyfacts dt { font: 600 11.5px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
.course-keyfacts dd { margin: 0; color: #fff; font: 600 16px/1.4 var(--f-display); }
.course-keyfacts small { font: 400 13px/1 var(--f-body); color: var(--on-ink-muted); }
/* On desktop the registration panel overlaps the bottom of the title band,
   so the facts stop where the panel's column begins (panel 380px + 56px gap). */
@media (min-width: 1001px) { .course-keyfacts { margin-right: 436px; } }
@media (min-width: 1001px) and (max-width: 1240px) { .course-keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .course-keyfacts div:nth-child(3) { padding-left: 0; border-left: 0; } .course-keyfacts div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); } }
@media (max-width: 860px) { .course-keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .course-keyfacts div:nth-child(3) { padding-left: 0; border-left: 0; } .course-keyfacts div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); } }
@media (max-width: 480px) { .course-keyfacts { grid-template-columns: 1fr; } .course-keyfacts div, .course-keyfacts div + div { padding: 16px 0; border-left: 0; } .course-keyfacts div + div { border-top: 1px solid rgba(255,255,255,.14); } }

.course-main { padding-bottom: 0; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding-bottom: 88px; }
.course-body > h2 { font-size: 24px; margin: 0 0 16px; }
.course-body > h2 + .entry-content { margin-bottom: 44px; }
.course-body > .session-list + .brochure-link, .course-body > .entry-content + .brochure-link { margin-top: 32px; }
.session-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.session { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; flex-wrap: wrap; }
.session + .session { border-top: 1px solid var(--line); }
.session-date { font: 700 16.5px/1.3 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.session-state { font: 600 12px/1 var(--f-body); padding: 6px 9px; border-radius: 999px; background: #E3F3EA; color: #1F7A4D; }
.session.is-now .session-state { background: var(--blue-tint); color: var(--blue-deep); }
.session.is-past { background: var(--mist); }
.session.is-past .session-date { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-color: rgba(90,93,117,.4); }
.session.is-past .session-state { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.brochure-link { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.brochure-link:hover { border-color: var(--blue); color: var(--text); }
.brochure-link strong { display: block; color: var(--ink); font-family: var(--f-display); }
.brochure-link small { display: block; color: var(--muted); font-size: 14px; }
.brochure-icon { display: grid; place-items: center; width: 44px; height: 52px; border-radius: 4px 12px 4px 4px; background: var(--red); color: #fff; font: 800 11px/1 var(--f-display); letter-spacing: .06em; }
.brochure-link .arrow { color: var(--blue); }

.register-panel { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; justify-items: start; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -32px rgba(20,21,43,.35); margin-top: -96px; }
.admin-bar .register-panel { top: calc(var(--header-h) + 56px); }
.register-panel h2 { font-size: 22px; margin: 0; }
.register-facts { margin: 0; width: 100%; display: grid; gap: 0; border-top: 1px solid var(--line); }
.register-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.register-facts dt { color: var(--muted); font-size: 14.5px; }
.register-facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.register-facts small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.register-btn { width: 100%; }
.register-note { margin: 0; color: var(--muted); font-size: 15px; }
.register-brochure { font-size: 14.5px; }
.register-block { width: 100%; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; justify-items: start; }
.register-block h3 { font: 600 12px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.account-line { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.copy-btn { font: 600 13.5px/1 var(--f-body); color: var(--blue); background: var(--blue-tint); border: 0; border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.copy-btn:hover { background: #DFE0F3; }
.copy-btn.is-done { background: #E3F3EA; color: #1F7A4D; }
.enquiry-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.enquiry-links a { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1000px) {
	.course-layout { grid-template-columns: 1fr; gap: 40px; }
	.register-panel { position: static; margin-top: 0; order: -1; width: 100%; }
}

/* 12g. Contact Us page (page-contact-us.php) -------------------------------- */
.contact-page .wrap { display: grid; gap: 56px; }
.contact-form-card { max-width: var(--read); width: 100%; margin: 0 auto; padding: 36px 40px 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -36px rgba(20,21,43,.35); }
.contact-form-card h2 { font-size: 26px; margin: 0; }
.contact-form-note { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.contact-form-card .gform_heading { display: none; } /* the card has its own heading */
.contact-form-card .gform_wrapper { margin-top: 8px !important; }
.contact-ways { max-width: var(--read); width: 100%; margin: 0 auto; display: grid; gap: 20px; }
.contact-ways h2 { font-size: 22px; margin: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: grid; gap: 8px; align-content: start; padding: 24px 22px; background: var(--mist); border-radius: var(--radius); }
.contact-card .ico { background: var(--paper); margin-bottom: 6px; }
.contact-card h3 { font-size: 17px; margin: 0; }
.contact-card p, .contact-card address { margin: 0; font-style: normal; color: var(--text); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.contact-card a { font-weight: 600; }
.contact-card-note { color: var(--muted) !important; font-size: 14px !important; }
@media (max-width: 760px) {
	.contact-form-card { padding: 26px 20px 28px; }
	.contact-cards { grid-template-columns: 1fr; }
}

/* 13. Placeholder pages (Coming soon, 404) ---------------------------------- */
.placeholder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.placeholder-copy { display: grid; gap: 22px; justify-items: start; max-width: 560px; }
.placeholder-copy .search-form { max-width: 480px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--f-body); color: var(--blue-deep); background: var(--blue-tint); padding: 9px 14px; border-radius: 999px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(215,38,61,.5); animation: icm-pulse 2.4s ease-out infinite; }
@keyframes icm-pulse { 0% { box-shadow: 0 0 0 0 rgba(215,38,61,.45); } 70% { box-shadow: 0 0 0 10px rgba(215,38,61,0); } 100% { box-shadow: 0 0 0 0 rgba(215,38,61,0); } }
.placeholder-message { font-size: 18px; line-height: 1.7; color: var(--text); }
.placeholder-message p { margin: 0 0 .8em; }
.placeholder-message > :last-child { margin-bottom: 0; }
.placeholder-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.placeholder-contact { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 4px 0 0; padding-top: 20px; border-top: 1px solid var(--line); width: 100%; color: var(--muted); font-size: 15px; }
.placeholder-contact span { display: inline-flex; align-items: center; gap: 8px; }
.placeholder-contact svg { color: var(--blue); }
.helpful-links { background: var(--mist); border-radius: 14px; padding: 28px 28px 12px; }
.helpful-links h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-family: var(--f-body); font-weight: 600; }
.helpful-links .row-links { border-top: 0; }
.helpful-links .row-links a { padding: 16px 0; }
.helpful-links .row-links a:last-child { border-bottom: 0; }
.helpful-links .ico { background: var(--paper); }
.helpful-links strong { font-size: 16px; }
@media (max-width: 900px) { .placeholder { grid-template-columns: 1fr; gap: 40px; } }

/* 14. Maintenance page (stand-alone, see inc/placeholders.php) -------------- */
.maintenance-body { background: var(--ink); }
.maintenance { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.maintenance::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -25%; width: 44%; height: 160%; background: linear-gradient(90deg, var(--blue) 0 38%, transparent 38% 54%, var(--blue) 54% 92%, transparent 92%); transform: skewX(-38deg); opacity: .5; }
.maintenance::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 70% at 10% 10%, rgba(62,64,149,.5), transparent 70%); }
.maintenance-inner { align-self: center; width: 100%; max-width: var(--wrap); margin: 0 auto; padding-block: 64px; display: grid; gap: 22px; justify-items: start; }
.maintenance-logo { height: 56px; width: auto; margin-bottom: 18px; }
.maintenance .eyebrow { color: var(--on-ink-muted); }
.maintenance h1 { color: #fff; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 0; max-width: 12em; }
.maintenance-message { color: var(--on-ink-muted); font-size: 18.5px; line-height: 1.6; max-width: 34em; margin: 0; }
.maintenance-contact { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; }
.maintenance-contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; border: 1.5px solid rgba(255,255,255,.3); border-radius: 8px; padding: 13px 18px; font-weight: 600; }
.maintenance-contact a:hover { border-color: #fff; color: #fff; }
.maintenance-foot { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-block: 24px; color: var(--on-ink-muted); font-size: 13.5px; border-top: 1px solid var(--ink-2); }
@media (max-width: 900px) { .maintenance::before { width: 80%; right: -45%; opacity: .3; } }

/* 15. Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.btn:hover, .link-cards a:hover { transform: none; }
}
