/**
 * Homepage (2026 redesign) styles.
 * Scoped under #homepage to avoid bleeding into the rest of the theme.
 */

/* The legacy compiled bundle adds #content-wrapper { margin-bottom: 240px }
   which was designed around the old overlap hero. On the new homepage it
   just renders as a giant blue void below the last section. Reset it. */
.home #content-wrapper { margin-bottom: 0; }

/* Hero slider mobile copy size — the legacy bundle only scales <p> inside
   the content box. But some slides have copy pasted from Microsoft Teams,
   which wraps text in <span data-teams="true"> and can carry inline font
   styles. Force every descendant of .slider-text to match the same size
   so all slides look identical on mobile regardless of source markup. */
@media (max-width: 768px) {
	.home .home-banner-content-box .slider-text,
	.home .home-banner-content-box .slider-text * { font-size: 14px !important; }
}
@media (max-width: 420px) {
	.home .home-banner-content-box .slider-text,
	.home .home-banner-content-box .slider-text * { font-size: 12px !important; }
}

/* ---------- Hero arrows ---------- */
.hp-hero { position: relative; }
.hp-hero .slick-list,
.hp-hero .slick-track { height: 100%; }

.hp-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #333;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}
.hp-hero__arrow:hover,
.hp-hero__arrow:focus { background: #fff; transform: translateY(-50%) scale(1.06); outline: none; }
.hp-hero__arrow svg { width: 20px; height: 20px; }
.hp-hero__arrow--prev { left: 20px; }
.hp-hero__arrow--prev svg { transform: rotate(180deg); }
.hp-hero__arrow--next { right: 20px; }

@media (min-width: 768px) {
	.hp-hero__arrow { width: 52px; height: 52px; }
	.hp-hero__arrow--prev { left: 30px; }
	.hp-hero__arrow--next { right: 30px; }
}

/* ---------- Section: Note from Hank ---------- */
.hp-note { padding: 90px 0; background: #fff; }
.hp-note__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 50px;
	align-items: start;
}
.hp-note__photo { text-align: center; }
.hp-note__photo img {
	width: 100%;
	max-width: 340px;
	height: auto;
	display: block;
	margin: 0 auto;
}
.hp-note__heading {
	font-size: 36px;
	line-height: 1.15;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1a1a1a;
}
.hp-note__body { font-size: 16px; line-height: 1.7; color: #4a4a4a; }
.hp-note__body p { margin: 0 0 1em; }

@media (min-width: 768px) {
	.hp-note__inner {
		grid-template-columns: 340px 1fr;
		gap: 80px;
		align-items: start;
	}
	.hp-note__heading { font-size: 44px; }
}

/* ---------- Section: Our Work ---------- */
.hp-work { padding: 40px 0 100px; background: #fff; }
.hp-work__header { margin-bottom: 40px; }
.hp-work__heading {
	font-size: 40px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1a1a1a;
}
.hp-work__intro { font-size: 16px; line-height: 1.6; color: #5a5a5a; max-width: 640px; margin: 0; }

.hp-work__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: stretch;
}
@media (min-width: 768px) {
	.hp-work__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Accordion */
.hp-work__accordion { display: flex; flex-direction: column; gap: 16px; }
.hp-work__panel {
	border-radius: 10px;
	background: #16a199;
	color: #fff;
	overflow: hidden;
	transition: background 0.25s ease;
}
.hp-work__panel.is-open { background: #1e92d6; }
.hp-work__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: transparent;
	border: none;
	color: inherit;
	padding: 22px 26px;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
}
/* Kill the Bootstrap `button:focus { outline: 5px auto -webkit-focus-ring-color }`
   rule — it draws a light-blue box around the toggle that looks like a divider
   line between the header and the body. Keyboard users get a visible ring via
   :focus-visible below. */
.hp-work__toggle:focus,
.hp-work__toggle:focus-within,
.hp-work__toggle:active {
	outline: none;
	box-shadow: none;
}
.hp-work__toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
	border-radius: 10px;
}
.hp-work__icon {
	position: relative;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	flex: 0 0 auto;
}
.hp-work__icon::before,
.hp-work__icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
}
.hp-work__icon::before { width: 12px; height: 2px; }
.hp-work__icon::after { width: 2px; height: 12px; transition: transform 0.2s ease, opacity 0.2s ease; }
.hp-work__panel.is-open .hp-work__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.hp-work__body { padding: 0 26px 22px; font-size: 15px; line-height: 1.6; color: #e5e5e5; }
.hp-work__body p { margin: 0 0 14px; }
.hp-work__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.hp-work__link:hover,
.hp-work__link:focus {
	color: #fff;
	text-decoration: none;
}
.hp-work__link::after {
	content: '\2192';            /* → */
	display: inline-block;
	font-size: 1.05em;
	line-height: 1;
	transition: transform 0.2s ease;
}
.hp-work__link:hover::after,
.hp-work__link:focus::after {
	transform: translateX(4px);
}

/* Image column */
.hp-work__media {
	position: relative;
	min-height: 320px;
	border-radius: 10px;
	overflow: hidden;
	background: #eee;
}
.hp-work__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.35s ease;
}
.hp-work__image.is-active { opacity: 1; }

/* ---------- Section: Articles ---------- */
.hp-articles { padding: 90px 0; background: #16a199; color: #fff; }
.hp-articles__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 40px;
}
.hp-articles__heading { font-size: 40px; font-weight: 700; margin: 0 0 12px; color: #fff; }
.hp-articles__intro { font-size: 16px; line-height: 1.5; margin: 0; color: rgba(255, 255, 255, 0.92); max-width: 560px; }

.hp-articles__view-all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	color: #16a199;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease;
}
.hp-articles__view-all:hover { transform: translateY(-1px); color: #1a1a1a; }
.hp-articles__view-all-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: #16a199;
	color: #fff;
	font-size: 14px;
}

.hp-articles__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media (min-width: 900px) {
	.hp-articles__grid { grid-template-columns: 2fr 1fr; }
}

.hp-articles__card {
	display: flex;
	align-items: flex-end;
	background-color: #888;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-decoration: none;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.2s ease;
}
.hp-articles__card:hover { transform: translateY(-2px); color: #fff; text-decoration: none; }
.hp-articles__card--featured { min-height: 420px; padding: 30px; }
.hp-articles__card--featured .hp-articles__card-title { font-size: 30px; line-height: 1.2; }

.hp-articles__small-col { display: flex; flex-direction: column; gap: 24px; }
.hp-articles__card--small { min-height: 198px; padding: 22px; }
.hp-articles__card--small .hp-articles__card-title { font-size: 22px; line-height: 1.25; }

.hp-articles__card-title { margin: 0; font-weight: 700; color: #fff; }

/* =====================================================================
   Section: Podcasts ("Conversations That Matter")

   Native CSS scroll-snap carousel. No slick — it kept producing ghost
   height and cropped aspect ratios. Three cards visible via CSS grid-like
   flex sizing; arrows scroll by one card via JS.
   ===================================================================== */

.hp-podcasts { padding: 70px 0; background: #1e92d6; color: #fff; }

.hp-podcasts__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 32px;
}
.hp-podcasts__heading { margin: 0 0 12px; font-size: 40px; font-weight: 700; line-height: 1.1; color: #fff; }
.hp-podcasts__intro { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.92); }
.hp-podcasts__view-all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	background: #fff;
	color: #1e92d6;
	font-weight: 700;
	border-radius: 999px;
	text-decoration: none;
}
.hp-podcasts__view-all:hover,
.hp-podcasts__view-all:focus { color: #0f6ea8; text-decoration: none; }
.hp-podcasts__view-all-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: #1e92d6;
	color: #fff;
	font-size: 14px;
}

/* Carousel = arrow + scrollable track + arrow, laid out in a row. */
.hp-podcasts__carousel {
	position: relative;
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	gap: 12px;
	align-items: center;
}

/* Scroll track. 3 cards visible; snap one-at-a-time. */
.hp-podcasts__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;               /* Firefox */
	-ms-overflow-style: none;            /* IE/Edge */
	padding-bottom: 4px;                  /* breathing room for focus rings */
}
.hp-podcasts__track::-webkit-scrollbar { display: none; }

/* Each card. Flex-basis locks to 1/3 of the track (minus gaps). */
.hp-podcasts__card {
	flex: 0 0 calc((100% - 40px) / 3);   /* 3 visible, accounting for 2 × 20px gaps */
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	color: #fff;
	text-decoration: none;
}
.hp-podcasts__card:hover,
.hp-podcasts__card:focus { color: #fff; text-decoration: none; }
.hp-podcasts__card:hover .hp-podcasts__art { transform: translateY(-2px); }

/* Cover art. Span + background-image so the theme's global <img> rules
   can't touch it. 16:9 via aspect-ratio with padding-top fallback. */
.hp-podcasts__art {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #0b5a82;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 6px;
	transition: transform 0.2s ease;
}
@supports not (aspect-ratio: 1) {
	.hp-podcasts__art { height: 0; padding-top: 56.25%; }
}

.hp-podcasts__title {
	display: block;
	margin: 14px 0 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

/* Arrow buttons — full grid cells, no absolute positioning. */
.hp-podcasts__arrow {
	align-self: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #1e92d6;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
}
.hp-podcasts__arrow:hover { background: #f4f4f4; }
.hp-podcasts__arrow[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Responsive: 2 cards on tablet, 1 on mobile. */
@media (max-width: 992px) {
	.hp-podcasts__card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
	.hp-podcasts__card { flex-basis: 100%; }
}
