/**
 * AISG v2 — templates & sections styling.
 * Hero, feature/programme cards, stats, trusted logos, newsletter CTA,
 * single-post + sidebar, archive list, news grid, listing header, pagination.
 */

:root {
	--aisg-red: #ae2514;
	--aisg-red-dark: #8f1e10;
	--aisg-orange: #c2410c;
	--aisg-ink: #1f1f1f;
	--aisg-ink-2: #2d2d2d;
	--aisg-grey: #5a5a5a;
	--aisg-grey-light: #7a7a7a;
	--aisg-line: #e6e6e6;
	--aisg-muted-bg: #f6f5f3;
	--aisg-card-bg: #ffffff;
}

/* ===== Layout primitives ===== */
.aisg-container {
	/* Match Kadence's content container EXACTLY so every section's left/right edge
	 * lines up with the header (logo, nav, "I'm a…" bar) + footer. Kadence's
	 * .site-container / contained rows use --global-content-width as the max-width
	 * with the edge padding inside — so use the same var (NOT the calc width, which
	 * already subtracts the padding and left content ~24px inset from the header). */
	max-width: var(--global-content-width, 1290px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
	box-sizing: border-box;
}
/* The V8 design pulled the first nav item left by half its own padding so "Home"
 * sat flush on the content edge. Live does not: its first item keeps the same
 * left padding as every other one, and the nav starts 9px further in. Removed
 * here to match. (The old rule also hard-coded 1.2em, while nav spacing is now
 * 1.5em, so it had drifted out of sync with the padding it was cancelling.) */
.aisg-section {
	padding: 80px 0;
}
.aisg-section--muted { background: var(--aisg-muted-bg); }
.aisg-section--dark { background: var(--aisg-ink); color: #fff; }
.aisg-eyebrow {
	color: var(--aisg-red);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.aisg-section__title {
	font-size: clamp(26px, 3.4vw, 36px);
	line-height: 1.2;
	margin: 0 0 36px;
	color: var(--aisg-ink);
}
.aisg-section--dark .aisg-section__title { color: #fff; }
.aisg-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.aisg-section__head .aisg-section__title { margin: 0; }
.aisg-grid { display: grid; gap: 24px; }
.aisg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.aisg-grid--4 { grid-template-columns: repeat(4, 1fr); }

.aisg-link-more {
	display: inline-block;
	color: var(--aisg-red);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
.aisg-link-more:hover { text-decoration: underline; }

/* Section-header "View all" links (e.g. "View all", "View all products"): lighter
   weight + a touch larger so they read as a calm secondary link beside the heavy
   section titles, not a bold button. Card-level "Learn more"/"Read more"/"Explore"
   links keep the bolder .aisg-link-more weight above. */
.aisg-section__head .aisg-link-more {
	font-weight: 400;
	font-size: 16px;
}

/* Buttons */
.aisg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	font-weight: 600;
	font-size: 15px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	border: 2px solid transparent;
}
.aisg-btn:hover { transform: translateY(-1px); }
.aisg-btn--primary { background: var(--aisg-red); color: #fff; }
.aisg-btn--primary:hover { background: var(--aisg-red-dark); color: #fff; box-shadow: 0 10px 24px rgba(174,37,20,0.24); }
.aisg-btn--outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.aisg-btn--outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ===== Hero ===== */
.aisg-hero {
	position: relative;
	background: var(--aisg-ink) center/cover no-repeat;
	color: #fff;
	padding: 96px 0;
	overflow: hidden;
}
.aisg-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20,18,18,0.92) 0%, rgba(20,18,18,0.72) 45%, rgba(20,18,18,0.35) 100%);
}
.aisg-hero__inner {
	position: relative;
	max-width: var(--global-calc-content-width, 1140px);
	margin: 0 auto;
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
	box-sizing: border-box;
}
.aisg-hero__heading {
	color: #fff;
	font-size: clamp(34px, 6vw, 64px);
	line-height: 1.05;
	margin: 0 0 18px;
	max-width: 16ch;
}
.aisg-hero__subtext {
	color: rgba(255,255,255,0.85);
	font-size: 18px;
	line-height: 1.6;
	max-width: 52ch;
	margin: 0 0 28px;
}
.aisg-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.aisg-btn--outline { border-color: var(--aisg-ink); color: var(--aisg-ink); background: #fff; }
.aisg-btn--outline:hover { background: var(--aisg-ink); color: #fff; }

/* ===== Homepage split hero (light, blended image) — Homepage.png ===== */
.aisg-home-hero {
	position: relative;
	background: #fff;
	overflow: hidden;
}
/* Image bleeds to the right viewport edge with no border/shadow, and fades
 * into the white text area on its left. */
.aisg-home-hero__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 58%;
	background: #fff center / cover no-repeat;
}
.aisg-home-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.92) 10%, rgba(255, 255, 255, 0) 45%);
}
.aisg-home-hero__inner {
	position: relative;
	z-index: 2;
}
.aisg-home-hero__text {
	max-width: 52%;
	padding-top: 88px;
	padding-bottom: 88px;
}
.aisg-home-hero__heading {
	font-size: clamp(36px, 5vw, 60px);
	line-height: 1.04;
	margin: 8px 0 18px;
	color: var(--aisg-ink);
}
.aisg-home-hero__subtext {
	color: var(--aisg-grey);
	font-size: 18px;
	line-height: 1.6;
	max-width: 46ch;
	margin: 0 0 28px;
}
@media (max-width: 900px) {
	.aisg-home-hero__media {
		position: static;
		width: 100%;
		height: 240px;
	}
	.aisg-home-hero__media::after {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #fff 100%);
	}
	.aisg-home-hero__text {
		max-width: none;
		padding-top: 40px;
		padding-bottom: 24px;
	}
}

/* ===== Feature cards ===== */
.aisg-feature-card {
	background: var(--aisg-card-bg);
	border: 1px solid var(--aisg-line);
	border-radius: 10px;
	padding: 30px 28px;
}
.aisg-feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: #fbe9e6;
	color: var(--aisg-red);
	margin-bottom: 18px;
}
.aisg-feature-card__title { font-size: 20px; margin: 0 0 10px; color: var(--aisg-ink); }
.aisg-feature-card__text { color: var(--aisg-grey); line-height: 1.6; margin: 0 0 16px; }

/* ===== Programme cards ===== */
.aisg-programme-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--aisg-card-bg);
	border: 1px solid var(--aisg-line);
	border-top: 3px solid var(--aisg-red);
	border-radius: 8px;
	overflow: hidden;
	padding: 0;
}
.aisg-programme-card__media { display: block; width: 100%; aspect-ratio: 3 / 2; background: #eee center / cover no-repeat; }
.aisg-programme-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 24px; }
.aisg-programme-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	margin-bottom: 16px;
	color: var(--aisg-red);
	background: #fbeae7;
}
.aisg-programme-card__icon .aisg-icon { width: 24px; height: 24px; }
.aisg-programme-card__icon.aisg-tone-red { background: #fbeae7; color: #ae2514; }
.aisg-programme-card__icon.aisg-tone-blue { background: #e7eef9; color: #2a5fb0; }
.aisg-programme-card__icon.aisg-tone-green { background: #e6f3ee; color: #2f7d5b; }
.aisg-programme-card__icon.aisg-tone-amber { background: #fdeee6; color: #d2691e; }
.aisg-programme-card__icon.aisg-tone-violet { background: #efeafb; color: #7c5cdb; }
.aisg-programme-card__icon.aisg-tone-pink { background: #fbe7f0; color: #c2407c; }
.aisg-programme-card__title { font-size: 18px; font-weight: 700; margin: 0 0 10px; color: var(--aisg-ink); }
.aisg-programme-card__text { color: var(--aisg-grey); line-height: 1.55; font-size: 15px; margin: 0 0 14px; }
.aisg-programme-card__body .aisg-link-more { margin-top: auto; }

/* ===== Stats ===== */
.aisg-stats__title { text-align: center; }
.aisg-stats__grid { text-align: center; }
.aisg-stat { display: flex; flex-direction: column; gap: 6px; }
.aisg-stat__number { font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: #fff; line-height: 1; }
.aisg-stat__label { color: rgba(255,255,255,0.75); font-size: 15px; }

/* ===== Trusted logos ===== */
.aisg-trusted { padding: 44px 0; }
.aisg-trusted__label {
	text-align: center;
	color: var(--aisg-grey-light);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 22px;
}
.aisg-trusted__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
}
.aisg-trusted__logo { display: inline-flex; align-items: center; }
.aisg-trusted__logo img { max-height: 46px; width: auto; filter: grayscale(1); opacity: 0.8; }
.aisg-trusted__name { font-weight: 700; color: var(--aisg-grey-light); font-size: 18px; letter-spacing: 0.04em; }

/* ===== Newsletter CTA ===== */
.aisg-newsletter-cta { background: var(--aisg-muted-bg); }
.aisg-newsletter-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}
.aisg-newsletter-cta__title { margin: 0 0 6px; font-size: 26px; color: var(--aisg-ink); }
.aisg-newsletter-cta__text p { margin: 0; color: var(--aisg-grey); }
/* The sign-up button shortcode reuses the footer button styling. */
.aisg-newsletter-cta .aisg-footer-signup .wp-block-button__link,
.aisg-sidebar .aisg-footer-signup .wp-block-button__link {
	background: var(--aisg-red);
	color: #fff;
	border-radius: 4px;
	padding: 14px 32px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	display: inline-block;
}

/* ===== Post cards ===== */
/* Base card chrome (border/radius/shadow/hover are layered by the active skin;
   these rules give a complete card even with the "default" skin). */
.aisg-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--aisg-line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16,21,28,0.04);
}
.aisg-post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	width: 100%;
	overflow: hidden;
	background: #f0eeec;
	border-radius: 0;
}
.aisg-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Refined neutral placeholder (replaces the old flat red/terracotta gradient). */
.aisg-post-card__media.is-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f5f3f2 0%, #e7e3e1 100%);
}
.aisg-post-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px 22px 22px; }
.aisg-post-card__title {
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.aisg-post-card__title a { color: var(--aisg-ink); text-decoration: none; }
.aisg-post-card__title a:hover { color: var(--aisg-red); }
.aisg-post-card__excerpt {
	color: var(--aisg-grey);
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.aisg-post-card .aisg-link-more { margin-top: auto; }

/* List style (archive): proper horizontal card — media fills the left column
   edge-to-edge, generous body padding, larger type, CTA pinned to the bottom. */
.aisg-post-list { display: flex; flex-direction: column; gap: 28px; }
.aisg-post-card--list {
	flex-direction: row;
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 0;
	align-items: stretch;
	height: auto;
}
.aisg-post-card--list .aisg-post-card__media {
	height: 100%;
	min-height: 230px;
	aspect-ratio: auto;
	border-radius: 0;
}
.aisg-post-card--list .aisg-post-card__media img { height: 100%; }
.aisg-post-card--list .aisg-post-card__body { padding: 28px 32px; }
.aisg-post-card--list .aisg-post-card__title { font-size: 22px; line-height: 1.28; -webkit-line-clamp: 2; }
.aisg-post-card--list .aisg-post-card__excerpt { font-size: 16px; line-height: 1.6; -webkit-line-clamp: 3; }

/* ===== Listing header ===== */
.aisg-listing-header { padding: 56px 0 28px; background: #fff; }
.aisg-listing-header--red {
	background: var(--aisg-red);
	color: #fff;
	padding: 64px 0 32px;
}
.aisg-listing-header--red .aisg-eyebrow,
.aisg-listing-header--red .aisg-listing-header__title,
.aisg-listing-header--red .aisg-listing-header__desc { color: #fff; }
.aisg-listing-header__title { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; color: var(--aisg-ink); }
.aisg-listing-header__desc { max-width: 60ch; color: var(--aisg-grey); margin: 0 0 22px; }
.aisg-listing-header--red .aisg-listing-header__desc { color: rgba(255,255,255,0.85); }

/* Filter pills */
.aisg-filter-pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0 20px; }
.aisg-pill {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 999px;
	border: 1px solid var(--aisg-line);
	background: #fff;
	color: var(--aisg-grey);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.aisg-pill.is-active, .aisg-pill:hover { background: var(--aisg-red); border-color: var(--aisg-red); color: #fff; }
.aisg-listing-header--red .aisg-pill { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); color: #fff; }
.aisg-listing-header--red .aisg-pill.is-active, .aisg-listing-header--red .aisg-pill:hover { background: #fff; color: var(--aisg-red); }

/* ===== Listing + sidebar layout ===== */
.aisg-listing { padding: 40px 0 64px; }
.aisg-listing__layout,
.aisg-single__layout {
	display: grid;
	grid-template-columns: minmax(0,1fr) 320px;
	gap: 48px;
	align-items: start;
}

/* ===== Single post ===== */
.aisg-single { padding: 40px 0 64px; }
.aisg-single__cat { color: var(--aisg-red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.aisg-single__title { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 8px 0 14px; }
.aisg-single__excerpt { font-size: 18px; line-height: 1.6; color: var(--aisg-grey); margin: 0 0 18px; max-width: 60ch; }
.aisg-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	color: var(--aisg-grey-light);
	font-size: 14px;
	border-bottom: 1px solid var(--aisg-line);
	padding-bottom: 18px;
}
.aisg-single__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.aisg-single__meta .aisg-icon { width: 16px; height: 16px; color: var(--aisg-red); }
.aisg-single__meta-sep { color: var(--aisg-line); }
.aisg-single__share { display: inline-flex; gap: 8px; align-items: center; margin-left: auto; }
.aisg-single__share-label { color: var(--aisg-grey); }
.aisg-share-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--aisg-line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--aisg-grey);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.aisg-share-btn:hover { background: var(--aisg-red); border-color: var(--aisg-red); color: #fff; }
.aisg-single__featured { margin: 24px 0; }
.aisg-single__featured img { width: 100%; height: auto; border-radius: 10px; }
.aisg-single__content { font-size: 17px; line-height: 1.75; color: #333; }
.aisg-single__content blockquote {
	border-left: 4px solid var(--aisg-red);
	background: var(--aisg-muted-bg);
	margin: 26px 0;
	padding: 20px 24px;
	font-style: italic;
	border-radius: 0 8px 8px 0;
}
.aisg-single__tags { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aisg-single__tags-label { font-weight: 700; color: var(--aisg-ink); margin-right: 4px; }
.aisg-single__tags a {
	display: inline-block;
	padding: 5px 14px;
	background: #fff;
	border: 1px solid var(--aisg-line);
	border-radius: 999px;
	font-size: 13px;
	color: var(--aisg-grey);
	text-decoration: none;
}
.aisg-single__tags a:hover { border-color: var(--aisg-red); color: var(--aisg-red); }

/* Prev / next post navigation */
.aisg-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 36px 0 8px;
	border-top: 1px solid var(--aisg-line);
	padding-top: 24px;
}
.aisg-post-nav__next { text-align: right; }
.aisg-post-nav a { text-decoration: none; display: block; }
.aisg-post-nav__label {
	display: block;
	color: var(--aisg-red);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}
.aisg-post-nav__title { color: var(--aisg-ink); font-weight: 600; line-height: 1.35; }
.aisg-post-nav a:hover .aisg-post-nav__title { color: var(--aisg-red); }

/* ===== Sidebar widgets ===== */
.aisg-sidebar { display: flex; flex-direction: column; gap: 28px; }
.aisg-widget { background: #fff; border: 1px solid var(--aisg-line); border-radius: 10px; padding: 22px; }
.aisg-widget--about { background: var(--aisg-muted-bg); }
.aisg-widget__title {
	font-size: 17px;
	margin: 0 0 16px;
	padding-bottom: 12px;
	color: var(--aisg-ink);
	border-bottom: 1px solid var(--aisg-line);
	position: relative;
}
.aisg-widget__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 42px;
	height: 2px;
	background: var(--aisg-red);
}
.aisg-widget p { color: var(--aisg-grey); font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.aisg-widget ul { list-style: none; margin: 0; padding: 0; }
.aisg-widget--categories li { padding: 7px 0; border-bottom: 1px solid var(--aisg-line); }
.aisg-widget--categories a { color: var(--aisg-ink); text-decoration: none; }
.aisg-widget--categories a:hover { color: var(--aisg-red); }
.aisg-recent-list li { margin-bottom: 14px; }
.aisg-recent-item { display: flex; gap: 12px; text-decoration: none; }
.aisg-recent-item__thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.aisg-recent-item__date { display: block; font-size: 11px; color: var(--aisg-grey-light); text-transform: uppercase; letter-spacing: 0.06em; }
.aisg-recent-item__title { color: var(--aisg-ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.aisg-recent-item:hover .aisg-recent-item__title { color: var(--aisg-red); }
.aisg-widget--newsletter { background: #fbeae7; border-color: #f4d2cc; text-align: left; }
.aisg-widget__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--aisg-red);
	margin-bottom: 12px;
}
.aisg-widget--newsletter .aisg-footer-signup,
.aisg-widget--newsletter .wp-block-buttons { width: 100%; }
.aisg-widget--newsletter .aisg-footer-signup .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

/* ===== Pagination ===== */
.aisg-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.aisg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--aisg-line);
	border-radius: 6px;
	color: var(--aisg-ink);
	text-decoration: none;
	font-weight: 600;
}
.aisg-pagination .page-numbers.current,
.aisg-pagination .page-numbers:hover { background: var(--aisg-red); border-color: var(--aisg-red); color: #fff; }

/* ===== Homepage: What we do (pillars) ===== */
.aisg-center { text-align: center; }
.aisg-section__sub {
	color: var(--aisg-grey);
	font-size: 18px;
	margin: 0 0 40px;
}
.aisg-pillars .aisg-section__title.aisg-center { margin-bottom: 12px; }
.aisg-pillars__grid { gap: 20px; }
.aisg-pillar-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 28px 28px 26px;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(16,21,28,0.04);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.aisg-pillar-card:hover {
	box-shadow: 0 16px 38px rgba(16,21,28,0.10);
	transform: translateY(-4px);
}
.aisg-pillar-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	margin-bottom: 18px;
	color: var(--aisg-red);
	background: #fbeae7;
}
.aisg-pillar-card__icon .aisg-icon { width: 26px; height: 26px; }
.aisg-pillar-card__icon.aisg-tone-red { background: #fbeae7; color: #ae2514; }
.aisg-pillar-card__icon.aisg-tone-violet { background: #efeafb; color: #7c5cdb; }
.aisg-pillar-card__icon.aisg-tone-blue { background: #e7eef9; color: #2a5fb0; }
.aisg-pillar-card__icon.aisg-tone-amber { background: #fdeee6; color: #d2691e; }
.aisg-pillar-card__icon.aisg-tone-green { background: #e6f3ee; color: #2f7d5b; }
.aisg-pillar-card__icon.aisg-tone-pink { background: #fbe7f0; color: #c2407c; }
.aisg-pillar-card__title { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--aisg-ink); }
.aisg-pillar-card__text { color: var(--aisg-grey); line-height: 1.55; margin: 0 0 18px; }
.aisg-pillar-card .aisg-link-more { margin-top: auto; }
/* Image-mode pillar card: 3:2 image on top, content below. */
.aisg-pillar-card--image { padding: 0; overflow: hidden; }
.aisg-pillar-card--image .aisg-pillar-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: #eee center / cover no-repeat;
}
.aisg-pillar-card--image .aisg-pillar-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 24px 24px;
}
.aisg-pillar-card--image .aisg-pillar-card__body .aisg-link-more { margin-top: auto; }

/* ===== Homepage: "What we do" — Programmes layout (adapted from aisingapore.org) =====
   Each row: an icon + red label aside beside a bold lead and checkmark bullets. */
/* Smooth in-page scrolling + offset the Programmes anchor below the sticky header. */
html { scroll-behavior: smooth; }
#aisg-programmes { scroll-margin-top: 110px; }
.aisg-pillars--programmes .aisg-section__title.aisg-center {
	color: var(--aisg-red);
	font-size: clamp(30px, 3.6vw, 44px);
	margin-bottom: 52px;
}
.aisg-prog-list {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 46px;
}
.aisg-prog {
	display: grid;
	grid-template-columns: 264px 1fr;
	gap: 40px;
	align-items: start;
}
.aisg-prog__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 16px;
	padding-top: 0;
}
/* icon + label on one line, top-aligned with the lead on the right */
.aisg-prog__head { display: flex; align-items: flex-start; gap: 12px; }
.aisg-prog__icon { display: inline-flex; color: var(--aisg-red); flex: 0 0 auto; margin-top: 2px; }
.aisg-prog__icon .aisg-icon { width: 36px; height: 36px; stroke-width: 1.6; }
.aisg-prog__label {
	margin: 0;
	color: var(--aisg-red);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}
.aisg-prog__label a { color: inherit; text-decoration: none; }
.aisg-prog__label a:hover { text-decoration: underline; }
/* "Learn more" pill under each pillar — a clear click affordance. */
.aisg-prog__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 4px;
	padding: 7px 16px;
	border: 1.5px solid var(--aisg-red, #ae2514);
	border-radius: 999px;
	background: #fff;
	color: var(--aisg-red, #ae2514);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.aisg-prog__cta-arrow { transition: transform 0.18s ease; }
.aisg-prog__cta:hover {
	background: var(--aisg-red, #ae2514);
	color: #fff;
	box-shadow: 0 8px 18px rgba(174, 37, 20, 0.24);
	transform: translateY(-1px);
}
.aisg-prog__cta:hover .aisg-prog__cta-arrow { transform: translateX(3px); }
.aisg-prog__body { padding-top: 2px; }
.aisg-prog__lead {
	margin: 0 0 18px;
	color: var(--aisg-ink);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.4;
}
.aisg-prog__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}
.aisg-prog__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--aisg-grey);
	font-size: 17px;
	line-height: 1.5;
}
.aisg-prog__list .aisg-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--aisg-red);
	stroke-width: 1.8;
}
@media (max-width: 768px) {
	.aisg-pillars--programmes .aisg-section__title.aisg-center { margin-bottom: 36px; }
	.aisg-prog-list { gap: 34px; }
	.aisg-prog { grid-template-columns: 1fr; gap: 14px; }
	.aisg-prog__aside { flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; padding-top: 0; }
	.aisg-prog__icon .aisg-icon { width: 40px; height: 40px; }
	.aisg-prog__label { font-size: 20px; }
	.aisg-prog__lead { font-size: 19px; }
}

/* Programmes two-column layout: list (left) + content sidebar (right). */
.aisg-prog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 56px;
	align-items: start;
}
.aisg-prog-main { min-width: 0; }
.aisg-prog-layout .aisg-prog-list { max-width: none; margin: 0; }
.aisg-prog-aside { display: flex; flex-direction: column; gap: 16px; }
/* Editorial group headings — an accent marker + uppercase label + trailing rule. */
.aisg-prog-aside__heading {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--aisg-red, #ae2514);
}
.aisg-prog-aside__heading::before {
	content: "";
	flex: 0 0 auto;
	width: 24px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--aisg-red, #ae2514), #d8432e);
}
.aisg-prog-aside__heading::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: linear-gradient(90deg, rgba(174, 37, 20, 0.28), rgba(174, 37, 20, 0));
}
.aisg-prog-aside__heading--upcoming { margin-top: 16px; padding-top: 18px; border-top: 1px dashed #e7d6d2; }
.aisg-side-card {
	position: relative;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 21, 28, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.aisg-side-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--aisg-red, #ae2514), #d8432e);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.28s ease;
	z-index: 2;
}
.aisg-side-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(16, 21, 28, 0.13);
	border-color: #eccfc8;
}
.aisg-side-card:hover::before { transform: scaleX(1); }
.aisg-side-card--accent {
	background: linear-gradient(165deg, #fff 0%, #fdeeeb 100%);
	border-color: #f3d6d0;
}
.aisg-side-card--accent::before { transform: scaleX(1); }
.aisg-side-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	background: #ece7e4 center / cover no-repeat;
	transition: transform 0.45s ease;
}
.aisg-side-card:hover .aisg-side-card__media { transform: scale(1.05); }
.aisg-side-card__body { padding: 20px 20px 22px; }
.aisg-side-card__title { color: var(--aisg-ink, #14181d); font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0 0 8px; }
.aisg-side-card--accent .aisg-side-card__title { color: var(--aisg-red); }
.aisg-side-card__text { color: var(--aisg-grey); font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.aisg-side-card__btn { width: 100%; justify-content: center; }
/* Featured tile. */
.aisg-side-feature {
	border: 1px solid #ececec;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}
.aisg-side-feature__media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--aisg-red, #ae2514), #6f1a0e) center / cover no-repeat;
}
.aisg-side-feature__body { padding: 18px 20px 22px; }
.aisg-side-feature__title { font-size: 17px; font-weight: 700; color: var(--aisg-ink); margin: 0 0 8px; }
.aisg-side-feature__text { color: var(--aisg-grey); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
@media (max-width: 980px) {
	.aisg-prog-layout { grid-template-columns: 1fr; gap: 44px; max-width: 760px; margin: 0 auto; }
	.aisg-prog-aside { width: 100%; max-width: 560px; margin: 0 auto; }
}

/* ===== Homepage: Latest from AISG ===== */
.aisg-latest-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(16,21,28,0.04);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.aisg-latest-card:hover { box-shadow: 0 16px 38px rgba(16,21,28,0.10); transform: translateY(-4px); }
.aisg-latest-card__media { display: block; height: 184px; background: #eee center / cover no-repeat; }
.aisg-tone-green .aisg-latest-card__media { background-color: #e6f3ee; }
.aisg-tone-blue .aisg-latest-card__media { background-color: #e7eef9; }
.aisg-tone-red .aisg-latest-card__media { background-color: #fbeae7; }
.aisg-latest-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.aisg-latest-card__cat { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 999px; padding: 0.28em 0.75em; margin-bottom: 12px; }
.aisg-tone-green .aisg-latest-card__cat { color: #2f7d5b; background: #e6f3ee; }
.aisg-tone-blue .aisg-latest-card__cat { color: #2a5fb0; background: #e7eef9; }
.aisg-tone-red .aisg-latest-card__cat { color: var(--aisg-red); background: #fbeae7; }
.aisg-latest-card__title { display: block; color: var(--aisg-ink); font-size: 18px; font-weight: 700; line-height: 1.35; }
.aisg-latest-card:hover .aisg-latest-card__title { color: var(--aisg-red); }
/* Latest carousel (shown when more than 3 items) */
.aisg-latest__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc( ( 100% - 48px ) / 3 );
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	scrollbar-width: thin;
}
.aisg-latest__track > .aisg-latest-card { scroll-snap-align: start; }
.aisg-latest__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.aisg-latest__arrow {
	width: 42px;
	height: 42px;
	border: 1px solid var(--aisg-line);
	border-radius: 50%;
	background: #fff;
	color: var(--aisg-ink);
	font-size: 16px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.aisg-latest__arrow:hover { border-color: var(--aisg-red); color: var(--aisg-red); }
@media ( max-width: 900px ) {
	.aisg-latest__track { grid-auto-columns: 85%; }
}

/* ===== Homepage: Backed by ===== */
.aisg-backed { text-align: center; }
.aisg-backed__label { color: var(--aisg-grey-light); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 20px; }
.aisg-backed__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.aisg-backed__pill { background: #fff; border: 1px solid #ececec; border-radius: 999px; padding: 9px 18px; color: var(--aisg-grey); font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px rgba(16,21,28,0.04); }

/* ===== Homepage: closing CTA ===== */
.aisg-join-cta__title { color: #fff; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 0 0 20px; }
.aisg-join-cta__sub { color: rgba(255,255,255,0.75); font-size: 18px; line-height: 1.6; margin: 0 0 40px; }
.aisg-join-cta__buttons { display: flex; gap: 22px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
/* Match the hero CTA treatment: not-bold + roomy. */
.aisg-join-cta__buttons .aisg-btn { font-weight: 500; padding: 16px 34px; min-width: 240px; justify-content: center; }
.aisg-btn--orange { background: var(--aisg-orange, #c2410c); color: #fff; }
.aisg-btn--orange:hover { background: #a8350a; color: #fff; }

/* ===== Blank canvas ===== */
.aisg-blank-canvas__main { min-height: 100vh; }

.aisg-empty { padding: 40px 0; color: var(--aisg-grey); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.aisg-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.aisg-listing__layout, .aisg-single__layout { grid-template-columns: 1fr; }
}
@media (max-width: 781px) {
	.aisg-grid--3 { grid-template-columns: 1fr; }
	/* List card stacks media over body on small screens. */
	.aisg-post-card--list { grid-template-columns: 1fr; }
	.aisg-post-card--list .aisg-post-card__media { min-height: 0; aspect-ratio: 16 / 10; }
	.aisg-post-card--list .aisg-post-card__media img { height: 100%; }
	.aisg-post-card--list .aisg-post-card__body { padding: 22px 24px; }
	.aisg-section { padding: 48px 0; }
	.aisg-hero { padding: 64px 0; }
	.aisg-newsletter-cta__inner { flex-direction: column; align-items: flex-start; }
}

/* ===========================================================================
   Header search drawer (Kadence #search-drawer) — clean, centered overlay.
   ======================================================================== */
#search-drawer .drawer-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 24px;
}
/* Close (X) — a tidy circular icon button, not a big red blob. */
#search-drawer .drawer-header {
	position: absolute;
	top: 20px;
	right: 24px;
	padding: 0;
	border: 0;
	min-height: 0;
}
#search-drawer .search-toggle-close {
	width: 48px !important;
	height: 48px !important;
	min-width: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba( 255, 255, 255, .12 ) !important;
	color: #fff !important;
	border: 1px solid rgba( 255, 255, 255, .28 ) !important;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
#search-drawer .search-toggle-close:hover {
	background: var(--aisg-red, #ae2514) !important;
	border-color: var(--aisg-red, #ae2514) !important;
}
#search-drawer .search-toggle-close svg { width: 22px; height: 22px; }

/* The search form: input + button on one row, centered, comfortable width. */
#search-drawer .search-form {
	display: flex;
	gap: 12px;
	width: min( 720px, 92vw );
	align-items: stretch;
	margin: 0;
}
#search-drawer .search-field {
	flex: 1 1 auto;
	min-width: 0;
	height: 60px;
	padding: 0 24px !important;
	font-size: 18px;
	border-radius: 999px !important;
	border: 1px solid #fff !important;
	background: #fff;
	color: #14181d;
	box-shadow: 0 18px 50px -18px rgba( 0, 0, 0, .55 );
}
#search-drawer .search-field:focus {
	outline: none;
	border-color: #fff !important;
	box-shadow: 0 0 0 3px rgba( 174, 37, 20, .4 ), 0 18px 50px -18px rgba( 0, 0, 0, .55 );
}
/* Submit — a proper pill sized for its label (no more clipped "Searc"). */
#search-drawer .search-submit {
	flex: 0 0 auto;
	white-space: nowrap !important;
	width: auto !important;
	min-width: 0 !important;
	height: 60px;
	padding: 0 36px !important;
	border-radius: 999px !important;
	border: none !important;
	background: var(--aisg-red, #ae2514) !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .01em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: visible !important;
}
#search-drawer .search-submit:hover { background: #8f1e10 !important; }
/* Kadence prints a separate magnifying-glass overlay that collided with the
   "Search" label — hide it so the button shows just its text. */
#search-drawer .kadence-search-icon-wrap { display: none !important; }
/* Solid dark backdrop so the page behind doesn't bleed through the overlay. */
#search-drawer .drawer-overlay { background: rgba( 10, 12, 16, .96 ) !important; }

@media ( max-width: 600px ) {
	#search-drawer .search-form { flex-direction: column; }
	#search-drawer .search-submit { height: 52px; }
}

/* ===== Default WordPress search form (404 page, search results, widgets) =====
   Kadence's get_search_form() prints a text "Search" submit PLUS a separate
   magnifier overlay (.kadence-search-icon-wrap); on skins without their own search
   styling they collide into a red blob. Give it a clean field + red button and
   hide the duplicate overlay. Low specificity on purpose: #search-drawer and the
   modern-corporate skin keep their own (more specific) rules. */
.search-form {
	display: flex;
	gap: 10px;
	align-items: stretch;
	flex-wrap: wrap;
}
/* The field is wrapped in a <label> (inline by default) — make it a flex box so
   the field can actually grow to fill (otherwise it stays cramped in the sidebar). */
.search-form label { display: flex; flex: 1 1 auto; min-width: 0; margin: 0; }
.search-form .search-field {
	flex: 1 1 auto;
	width: 100%;
	height: 52px;
	padding: 0 18px;
	font-size: 16px;
	border: 1px solid var( --aisg-line, #e7e7ea );
	border-radius: 8px;
	background: #fff;
	color: var( --aisg-ink, #1f1f1f );
}
.search-form .search-field:focus {
	outline: none;
	border-color: var( --aisg-red, #ae2514 );
	box-shadow: 0 0 0 3px rgba( 174, 37, 20, .18 );
}
/* Kadence makes .search-submit an absolutely-positioned, transparent 50px overlay
   (the magnifier shows instead); a skin's input[type=submit] styling then repaints
   it red, leaving a clipped "Search" blob. Override it into a real text button —
   needs the [type=submit] attribute selector + !important to beat Kadence (0,3,0)
   and the skin's button rule. */
.search-form .search-submit[type="submit"] {
	position: static !important;
	inset: auto !important;
	flex: 0 0 auto;
	width: auto !important;
	min-width: 0;
	height: 52px;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var( --aisg-red, #ae2514 ) !important;
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	cursor: pointer;
	overflow: visible !important;
	box-shadow: none !important;
	transition: background .15s ease;
}
.search-form .search-submit[type="submit"]:hover,
.search-form .search-submit[type="submit"]:focus {
	background: #8f1e10 !important;
	color: #fff !important;
}
/* Hide Kadence's duplicate magnifier overlay (the text button is enough). */
.search-form .kadence-search-icon-wrap { display: none !important; }

/* ===== core/search BLOCK (sidebar / widget search) — brand-styled =====
   The sidebar widget uses the block search (.wp-block-search__input/__button).
   Make the label a quiet eyebrow (matching the other sidebar widget headings) and
   merge the field + button into ONE seamless rounded bar (no clunky two-box look). */
.wp-block-search__label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var( --aisg-grey, #6b6b72 );
	margin: 0 0 10px;
}
.wp-block-search .wp-block-search__inside-wrapper {
	display: flex;
	align-items: stretch;
	gap: 0;
	border: 1px solid var( --aisg-line, #e7e7ea );
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.wp-block-search .wp-block-search__inside-wrapper:focus-within {
	border-color: var( --aisg-red, #ae2514 );
	box-shadow: 0 0 0 3px rgba( 174, 37, 20, .15 );
}
.wp-block-search .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	min-height: 0;
	margin: 0;
	padding: 0 14px;
	font-size: 15px;
	line-height: 1.4;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var( --aisg-ink, #1f1f1f );
	box-sizing: border-box;
}
.wp-block-search .wp-block-search__input:focus { outline: none; box-shadow: none; }
.wp-block-search .wp-block-search__button {
	flex: 0 0 auto;
	height: 46px;
	min-height: 0;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: var( --aisg-red, #ae2514 );
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s ease;
}
.wp-block-search .wp-block-search__button:hover,
.wp-block-search .wp-block-search__button:focus { background: #8f1e10; color: #fff; }
.wp-block-search .wp-block-search__button svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== Homepage: Popular Videos carousel ===== */
.aisg-vidcar__nav { display: flex; gap: 8px; }
.aisg-vidcar__arrow {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid #e2e2e2;
	background: #fff;
	color: var(--aisg-ink, #1f1f1f);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.aisg-vidcar__arrow:hover { background: var(--aisg-red, #ae2514); color: #fff; border-color: var(--aisg-red, #ae2514); }
.aisg-vidcar__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 6px 4px 20px;
	margin: 0 -4px;
	scrollbar-width: none; /* arrows handle navigation — hide the bar */
	-webkit-overflow-scrolling: touch;
}
.aisg-vidcar__track::-webkit-scrollbar { display: none; }
.aisg-vidcar__card { flex: 0 0 380px; max-width: 84vw; scroll-snap-align: start; }
.aisg-vidcar .aisg-video-card__title { text-align: left; font-size: 16px; font-weight: 500; margin-top: 12px; }
.aisg-video-card__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 16px; }
.aisg-video-card--noimg .aisg-video-card__media { background: radial-gradient( circle at 30% 18%, rgba( 174, 37, 20, .35 ), transparent 60% ), linear-gradient( 135deg, #14181d, #2b2b2b ); }
.aisg-vidcar__more { margin-top: 4px; }
@media ( max-width: 600px ) { .aisg-vidcar__card { flex-basis: 300px; } }
/* Dark, sleek treatment for the Popular Videos band. */
.aisg-vidcar { background: #14181d; }
.aisg-vidcar .aisg-section__title { color: #fff; }
.aisg-vidcar .aisg-video-card__title { color: #e7e9ec; }
.aisg-vidcar .aisg-video-card:hover .aisg-video-card__title { color: #fff; }
.aisg-vidcar .aisg-video-card__media { box-shadow: 0 14px 34px rgba( 0, 0, 0, .5 ); }
.aisg-vidcar__arrow { background: transparent; border-color: rgba( 255, 255, 255, .28 ); color: #fff; }
.aisg-vidcar__arrow:hover { background: #fff; color: #14181d; border-color: #fff; }
.aisg-vidcar__track::-webkit-scrollbar-thumb { background: rgba( 255, 255, 255, .22 ); }
.aisg-vidcar .aisg-vidcar__more { color: #c9ccd2; font-weight: 500; }
.aisg-vidcar .aisg-vidcar__more:hover { color: #fff; }

/* ===== Homepage: Newsroom — busy "news desk" (featured lead + headline list, tinted panel) ===== */
.aisg-newsroom--desk { background: #f5f1ef; } /* full-width tinted band (not a contained panel) */
.aisg-newsroom__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.aisg-newsroom__heading { display: flex; align-items: center; gap: 14px; }
.aisg-newsroom__heading .aisg-section__title { margin: 0; }
.aisg-newsroom__live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--aisg-red, #ae2514); }
.aisg-newsroom__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aisg-red, #ae2514); box-shadow: 0 0 0 0 rgba( 174, 37, 20, .5 ); animation: aisg-news-pulse 1.8s ease-out infinite; }
@keyframes aisg-news-pulse { 0% { box-shadow: 0 0 0 0 rgba( 174, 37, 20, .5 ); } 70% { box-shadow: 0 0 0 7px rgba( 174, 37, 20, 0 ); } 100% { box-shadow: 0 0 0 0 rgba( 174, 37, 20, 0 ); } }
@media ( prefers-reduced-motion: reduce ) { .aisg-newsroom__dot { animation: none; } }
.aisg-newsroom__layout { display: grid; grid-template-columns: 1.12fr 1fr; gap: 36px; align-items: start; }
/* Featured lead. */
.aisg-news-lead { display: flex; flex-direction: column; }
.aisg-news-lead__media { display: block; aspect-ratio: 16 / 9; background: #e3e1de center / cover no-repeat; border-radius: 8px; overflow: hidden; transition: opacity .2s ease; }
.aisg-news-lead:hover .aisg-news-lead__media { opacity: .92; }
.aisg-news-lead__body { padding-top: 16px; }
.aisg-news-lead__title { font-size: clamp( 22px, 2.3vw, 27px ); font-weight: 800; line-height: 1.22; letter-spacing: -.01em; margin: 7px 0 10px; }
.aisg-news-lead__title a { color: var(--aisg-ink, #1f1f1f); text-decoration: none; }
.aisg-news-lead__title a:hover { color: var(--aisg-red, #ae2514); }
.aisg-news-lead__excerpt { color: var(--aisg-grey, #5a5a5a); font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
/* Headline list. */
.aisg-news-list { display: flex; flex-direction: column; }
.aisg-news-item { display: grid; grid-template-columns: 104px 1fr; gap: 15px; align-items: start; padding: 16px 0; border-top: 1px solid #e4ddd8; }
.aisg-news-item:first-child { padding-top: 0; border-top: 0; }
.aisg-news-item:last-child { padding-bottom: 0; }
.aisg-news-item__media { display: block; aspect-ratio: 16 / 10; background: #e3e1de center / cover no-repeat; border-radius: 6px; overflow: hidden; transition: opacity .2s ease; }
.aisg-news-item:hover .aisg-news-item__media { opacity: .92; }
.aisg-news-item__title { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 4px 0 5px; }
.aisg-news-item__title a { color: var(--aisg-ink, #1f1f1f); text-decoration: none; }
.aisg-news-item__title a:hover { color: var(--aisg-red, #ae2514); }
/* Shared small category + date labels (lead + list). */
.aisg-news-card__cat, .aisg-news-item__cat { display: inline-block; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aisg-red, #ae2514); }
.aisg-news-card__cat { font-size: 11px; }
.aisg-news-item__cat { font-size: 10.5px; }
.aisg-news-card__date, .aisg-news-item__date { display: block; color: #8a8a8a; }
.aisg-news-card__date { font-size: 13px; }
.aisg-news-item__date { font-size: 12px; }
@media ( max-width: 900px ) { .aisg-newsroom__layout { grid-template-columns: 1fr; gap: 28px; } }
@media ( max-width: 480px ) { .aisg-news-item { grid-template-columns: 84px 1fr; gap: 12px; } }

/* ===== Guided "I am a…" persona router ===== */
.aisg-persona__grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 20px;
	margin-top: 44px;
}
.aisg-persona__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	width: 100%;
	padding: 28px 24px 24px;
	background: var( --aisg-card-bg, #fff );
	border: 1px solid var( --aisg-line );
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba( 16, 21, 28, .06 );
	text-decoration: none;
	color: var( --aisg-ink );
	font: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* Lock the surface colour: Kadence styles bare <button>s with an orange hover —
   keep the card white (higher specificity + !important beats Kadence). */
.aisg-persona__grid .aisg-persona__card,
.aisg-persona__grid .aisg-persona__card:hover,
.aisg-persona__grid .aisg-persona__card:focus,
.aisg-persona__grid .aisg-persona__card:focus-visible {
	background: var( --aisg-card-bg, #fff ) !important;
	color: var( --aisg-ink );
}
.aisg-persona__card:hover {
	transform: translateY( -4px );
	box-shadow: 0 16px 36px rgba( 16, 21, 28, .12 );
	border-color: #e7c3bc;
}
/* Branded micro-interaction: the icon medallion fills red on hover. */
.aisg-persona__card:hover .aisg-persona__icon { background: var( --aisg-red ); color: #fff; }
.aisg-persona__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	border-radius: 12px;
	background: #fbeae7;
	color: var( --aisg-red );
	transition: background .18s ease, color .18s ease;
}
.aisg-persona__icon .aisg-icon { width: 24px; height: 24px; }
.aisg-persona__label { font-size: 18px; font-weight: 800; color: var( --aisg-ink ); line-height: 1.25; }
.aisg-persona__desc { font-size: 14px; color: var( --aisg-grey ); line-height: 1.5; }
.aisg-persona__more { margin-top: 12px; color: var( --aisg-red ); font-weight: 700; font-size: 18px; transition: transform .18s ease; }
.aisg-persona__card:hover .aisg-persona__more { transform: translateX( 5px ); }
@media ( max-width: 980px ) { .aisg-persona__grid { grid-template-columns: repeat( 2, 1fr ); } }
@media ( max-width: 560px ) { .aisg-persona__grid { grid-template-columns: 1fr; } }

/* ===== Newsroom — full-bleed image-card carousel (brand-tinted overlay) ===== */
.aisg-newsrail { position: relative; margin-top: 8px; }
.aisg-newsrail__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 6px 2px 14px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.aisg-newsrail__track::-webkit-scrollbar { display: none; }
.aisg-newscard {
	position: relative;
	flex: 0 0 300px;
	height: 430px;
	border-radius: 16px;
	overflow: hidden;
	scroll-snap-align: start;
	display: block;
	text-decoration: none;
	background-color: #2c0b06;
	background-image: linear-gradient( 160deg, rgba( 174, 37, 20, .55 ), rgba( 44, 11, 6, .92 ) );
	background-size: cover;
	background-position: center;
	box-shadow: 0 10px 30px rgba( 16, 21, 28, .16 );
	transition: transform .22s ease, box-shadow .22s ease;
}
.aisg-newscard:hover { transform: translateY( -5px ); box-shadow: 0 22px 50px rgba( 16, 21, 28, .26 ); }
.aisg-newscard__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( 180deg, rgba( 174, 37, 20, .10 ) 0%, rgba( 143, 30, 16, .32 ) 44%, rgba( 18, 10, 8, .92 ) 100% );
}
.aisg-newscard__body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 26px 24px; color: #fff; }
.aisg-newscard__cat {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: rgba( 255, 255, 255, .82 );
}
.aisg-newscard__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.2; color: #fff; }
.aisg-newscard__excerpt { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba( 255, 255, 255, .9 ); }

/* Newsroom rail using the News-page post-card design (image-top white cards,
   date·category, title, excerpt, "Read more"). Fixed-width carousel items. */
.aisg-newsrail--cards .aisg-newsrail__track { align-items: stretch; }
.aisg-newsrail--cards .aisg-newsrail__track > .aisg-post-card {
	flex: 0 0 330px;
	max-width: 88vw;
	scroll-snap-align: start;
}
.aisg-newsrail__arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 5;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var( --aisg-line );
	background: #fff;
	color: var( --aisg-ink );
	font-size: 22px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba( 16, 21, 28, .18 );
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.aisg-newsrail__arrow:hover { background: var( --aisg-red ); color: #fff; border-color: var( --aisg-red ); }
.aisg-newsrail__arrow--prev { left: calc( var( --global-content-edge-padding, 1.5rem ) - 23px ); }
.aisg-newsrail__arrow--next { right: calc( var( --global-content-edge-padding, 1.5rem ) - 23px ); }
@media ( max-width: 600px ) {
	.aisg-newscard { flex-basis: 80vw; height: 400px; }
	.aisg-newsrail__arrow { display: none; }
}

/* ===== Homepage: Our Logo & Brand ===== */
.aisg-brand__layout {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: 56px;
	align-items: center;
	margin-top: 56px;
}
.aisg-brand__points {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 32px;
}
.aisg-brand__icon { display: flex; flex-direction: column; align-items: flex-start; color: var( --aisg-ink ); }
.aisg-brand__icon .aisg-icon { width: 40px; height: 40px; stroke-width: 1.5; }
.aisg-brand__icon::after { content: ""; width: 54px; height: 2px; background: var( --aisg-red ); margin-top: 16px; }
.aisg-brand__text { color: var( --aisg-grey ); font-size: 15px; line-height: 1.6; margin: 18px 0 0; }
.aisg-brand__logo { display: flex; align-items: center; justify-content: center; }
.aisg-brand__logo img, .aisg-brand__logo-img { max-width: 100%; height: auto; }
@media ( max-width: 900px ) {
	.aisg-brand__layout { grid-template-columns: 1fr; gap: 40px; }
	.aisg-brand__points { grid-template-columns: 1fr; gap: 28px; }
	.aisg-brand__logo { order: -1; }
}
