/* ==========================================================================
   Local 109 Member Hub — homepage redesign (Option 2a)
   Enqueue from the child theme functions.php, only on the front page.
   Design tokens per MemberHub brand guide:
   navy #001123, red #C42420, bg #F7FAFC, Poppins (headings), Open Sans (body)
   ========================================================================== */

#local109-home {
	--l109-navy: #001123;
	--l109-navy-secondary: #0B2540;
	--l109-red: #C42420;
	--l109-bg-light: #F7FAFC;
	--l109-bg-news: #EEF1F5;
	--l109-border: #E2E8F0;
	--l109-border-dashed: #CBD5E0;
	--l109-text-body: #4A5568;
	--l109-text-muted: #718096;
	--l109-text-heading: #1A202C;
	--l109-font-heading: 'Poppins', sans-serif;
	--l109-font-body: 'Open Sans', sans-serif;

	font-family: var(--l109-font-body);
	color: var(--l109-text-heading);
	background: var(--l109-bg-light);
}

#local109-home a {
	text-decoration: none;

}

/* ---------------- Hero ---------------- */
.l109-hero {
	position: relative;
	height: 420px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--l109-navy-secondary);
}

.l109-hero__slides {
	position: absolute;
	inset: 0;
}

.l109-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #EDEFF2;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.l109-hero__slide.is-active {
	opacity: 1;
}

.l109-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(0, 17, 35, .8), rgba(0, 17, 35, .8) 55%, rgba(0, 17, 35, .2));
	pointer-events: none;
}

.l109-hero__content {
	position: relative;
	z-index: 1;
	padding: 0 60px;
	max-width: 600px;
}

.l109-hero__content h1 {
	color: #fff;
	font-family: var(--l109-font-heading);
	font-weight: 700;
	font-size: 36px;
	line-height: 1.15;
	margin: 0 0 16px;
}

.l109-hero__content p {
	color: rgba(255, 255, 255, .88);
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 24px;
}

.l109-btn {
	display: inline-block;
	background: var(--l109-red);
	color: #fff !important;
	font-family: var(--l109-font-body);
	font-weight: 700;
	font-size: 13.5px;
	padding: 13px 26px;
	border-radius: 2px;
}

.l109-hero__dots {
	position: absolute;
	bottom: 16px;
	right: 16px;
	display: flex;
	gap: 6px;
	z-index: 2;
}

.l109-hero__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .4);
	transition: background .3s ease;
}

.l109-hero__dot.is-active {
	background: var(--l109-red);
}

/* ---------------- Announcement bar ---------------- */
.l109-announce {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--l109-navy);
	padding: 13px 40px;
}

.l109-announce__icon {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--l109-red);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: var(--l109-font-heading);
	font-weight: 700;
	font-size: 14px;
}

.l109-announce__text {
	color: #fff;
	font-size: 13px;
	flex: 1;
	line-height: 1.4;
	margin: 0;
}

.l109-announce__link {
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	flex: none;
}

.l109-announce__dismiss {
	flex: none;
	background: none;
	border: none;
	color: rgba(255, 255, 255, .7);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 4px;
}

.l109-announce.is-dismissed {
	display: none;
}

/* ---------------- Quick links ---------------- */
.l109-quicklinks {
	padding: 52px 40px;
	background: var(--l109-bg-light);
}

.l109-eyebrow {
	font-family: var(--l109-font-heading);
	font-weight: 600;
	font-size: 12.5px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--l109-navy);
	margin: 0 0 20px;
}

.l109-ql-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.l109-ql-card {
	background: #fff;
	border: 1px solid var(--l109-border);
	border-radius: 4px;
	padding: 20px 18px;
	transition: box-shadow .2s ease, transform .2s ease;
}

.l109-ql-card:hover,
.l109-ql-card:focus-visible {
	box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
}

.l109-ql-icon {
	width: 30px;
	height: 30px;
	color: var(--l109-navy);
	margin-bottom: 12px;
}

.l109-ql-card h3 {
	font-family: var(--l109-font-heading);
	font-weight: 600;
	font-size: 15px;
	margin: 0 0 7px;
	color: var(--l109-text-heading);
}

.l109-ql-card p {
	font-size: 12.5px;
	color: var(--l109-text-body);
	margin: 0;
	line-height: 1.5;
}

/* ---------------- Three-column news/events ---------------- */
.l109-threecol {
	padding: 52px 40px;
	background: var(--l109-bg-news);
}

.l109-threecol__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	align-items: start;
}

.l109-col-head {
	font-family: var(--l109-font-heading);
	font-weight: 600;
	font-size: 14px;
	color: var(--l109-navy);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 14px;
	padding-bottom: 9px;
	border-bottom: 3px solid var(--l109-red);
	display: inline-block;
}

.l109-news-card {
	display: block;
	background: #fff;
	border: 1px solid var(--l109-border);
	border-radius: 4px;
	padding: 14px 16px;
	margin-bottom: 10px;
}

.l109-news-date {
	font-size: 10.5px;
	color: var(--l109-text-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 5px;
}

.l109-news-card h4 {
	font-family: var(--l109-font-heading);
	font-weight: 600;
	font-size: 13.5px;
	margin: 0 0 5px;
	color: var(--l109-text-heading);
	line-height: 1.35;
}

.l109-news-card p {
	font-size: 12px;
	color: var(--l109-text-body);
	margin: 0;
	line-height: 1.5;
}

.l109-ext-item {
	display: block;
	background: #F4F5F7;
	border: 1px dashed var(--l109-border-dashed);
	border-radius: 4px;
	padding: 11px 13px;
	margin-bottom: 9px;
}

.l109-ext-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 700;
	font-size: 9px;
	letter-spacing: .06em;
	color: var(--l109-text-body);
	background: var(--l109-border);
	padding: 2px 6px;
	border-radius: 3px;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.l109-ext-item h4 {
	font-weight: 600;
	font-size: 12.5px;
	margin: 0 0 3px;
	color: var(--l109-text-heading);
	line-height: 1.35;
}

.l109-ext-meta {
	font-size: 10.5px;
	color: var(--l109-text-muted);
}

.l109-event-row {
	display: flex;
	gap: 11px;
	align-items: center;
	padding: 9px 0;
	border-bottom: 1px solid var(--l109-border);
}

.l109-event-date {
	background: var(--l109-navy);
	color: #fff;
	font-family: var(--l109-font-heading);
	font-weight: 600;
	font-size: 10px;
	padding: 5px 7px;
	border-radius: 3px;
	text-align: center;
	line-height: 1.15;
	flex: none;
	min-width: 38px;
}

.l109-event-title {
	font-size: 12.5px;
	color: var(--l109-text-heading);
	font-weight: 600;
}

.l109-safety-feat {
	margin-top: 13px;
	background: #fff;
	border: 1px solid var(--l109-border);
	border-left: 4px solid var(--l109-red);
	border-radius: 4px;
	padding: 13px 15px;
}

.l109-safety-feat .l109-tag {
	font-weight: 700;
	font-size: 9.5px;
	letter-spacing: .05em;
	color: var(--l109-red);
	text-transform: uppercase;
	margin-bottom: 5px;
	display: block;
}

.l109-safety-feat h4 {
	font-family: var(--l109-font-heading);
	font-weight: 600;
	font-size: 13px;
	margin: 0 0 5px;
	color: var(--l109-text-heading);
}

.l109-safety-feat a {
	font-size: 12px;
	color: var(--l109-navy);
	font-weight: 700;
}

/* ---------------- Temporary "under construction" placeholder ---------------- */
.l109-under-construction {
	background: #fff;
	border: 1px solid var(--l109-border);
	border-left: 4px solid var(--l109-red);
	border-radius: 4px;
	padding: 13px 15px;
}

.l109-under-construction .l109-tag {
	font-weight: 700;
	font-size: 9.5px;
	letter-spacing: .05em;
	color: var(--l109-red);
	text-transform: uppercase;
	margin-bottom: 5px;
	display: block;
}

.l109-under-construction p:last-child {
	font-size: 12.5px;
	color: var(--l109-text-body);
	line-height: 1.5;
	margin: 0;
}

/* ---------------- Photo of the Week ---------------- */
.l109-potw {
	background: var(--l109-navy);
	padding: 44px 40px;
	display: flex;
	justify-content: center;
}

.l109-potw__card {
	width: 520px;
	max-width: 100%;
	background: #fff;
	padding: 14px 14px 20px;
	border-radius: 2px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.l109-potw__image {
	background: #EDEFF2 no-repeat center / cover;
	border-radius: 2px;
	height: 340px;
}

.l109-potw__eyebrow {
	text-align: center;
	font-weight: 700;
	font-size: 10.5px;
	letter-spacing: .08em;
	color: var(--l109-red);
	text-transform: uppercase;
	margin: 16px 0 8px;
}

.l109-potw__card h3 {
	text-align: center;
	font-family: var(--l109-font-heading);
	font-weight: 600;
	font-size: 17px;
	color: var(--l109-navy);
	margin: 0 0 8px;
}

.l109-potw__quote {
	text-align: center;
	font-size: 12.5px;
	color: var(--l109-text-body);
	line-height: 1.5;
	margin: 0 0 8px;
}

.l109-potw__attribution {
	text-align: center;
	font-size: 11.5px;
	color: var(--l109-text-muted);
	margin: 0;
}

.l109-potw__attribution a {
	color: var(--l109-navy);
	font-weight: 700;
}

/* ---------------- Empty state ---------------- */
.l109-empty {
	font-size: 12.5px;
	color: var(--l109-text-muted);
}

/* ---------------- Know Your CBA — video thumbnail cards ----------------
   .l109-cba-card extends the base .l109-news-card (same border/radius/
   padding/margin — see above), just adding a thumbnail block above the
   title when a lesson post has a YouTube Embed block. Falls back to
   plain excerpt text (inherited from .l109-news-card p) when a post has
   no video yet. Used on both the homepage column and the
   /category/know-your-cba/ listing page. */
.l109-cba-card__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: var(--l109-navy);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 3px;
	overflow: hidden;
	margin: -14px -16px 10px;
	width: calc(100% + 32px); /* bleeds to the card's outer edge, like .l109-potw__image does inside its own padded card */
}

/* Fallback for browsers without aspect-ratio support (older Safari/iOS) */
@supports not (aspect-ratio: 16 / 9) {
	.l109-cba-card__thumb {
		height: 0;
		padding-top: 56.25%; /* 9 / 16 */
	}
}

.l109-cba-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(196, 36, 32, 0.9); /* var(--l109-red) at 90% */
	color: #fff;
	font-size: 13px;
	line-height: 1;
	pointer-events: none; /* the whole card is already the link */
}

.l109-cba-card:hover .l109-cba-card__play {
	background: var(--l109-red);
}

/* ==========================================================================
   Know Your CBA listing page (/category/know-your-cba/)
   category-know-your-cba.php reuses the .l109-news-card / .l109-cba-card
   styles above for each lesson; these rules are just for the page's own
   header/intro and the grid layout around those cards.
   ========================================================================== */
#local109-cba-index {
	background: var(--l109-bg-light);
}

.l109-cba-index__header {
	padding: 52px 40px 32px;
	max-width: 780px;
}

.l109-cba-index__header h1 {
	font-family: var(--l109-font-heading);
	font-weight: 700;
	font-size: 28px;
	color: var(--l109-navy);
	margin: 6px 0 14px;
}

.l109-cba-index__intro {
	font-size: 13.5px;
	color: var(--l109-text-body);
	line-height: 1.6;
	margin: 0;
}

.l109-cba-index__list {
	padding: 0 40px 52px;
}

.l109-cba-index__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 781px) {
	.l109-cba-index__header,
	.l109-cba-index__list {
		padding-left: 20px;
		padding-right: 20px;
	}

	.l109-cba-index__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Responsive — mobile (matches design-doc 390px reference)
   ========================================================================== */
@media (max-width: 781px) {

	.l109-hero {
		height: 300px;
	}

	.l109-hero__overlay {
		background: rgba(0, 17, 35, .5);
	}

	.l109-hero__content {
		padding: 0 20px;
		max-width: 100%;
	}

	.l109-hero__content h1 {
		font-size: 22px;
		margin-bottom: 12px;
	}

	.l109-hero__content p {
		font-size: 13px;
		margin-bottom: 18px;
	}

	.l109-btn {
		font-size: 12px;
		padding: 11px 20px;
	}

	.l109-announce {
		padding: 12px 16px;
		flex-wrap: wrap;
	}

	.l109-quicklinks,
	.l109-threecol {
		padding: 30px 20px;
	}

	.l109-ql-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.l109-threecol__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.l109-potw {
		padding: 28px 20px;
	}

	.l109-potw__card {
		width: 100%;
	}

	.l109-potw__image {
		height: 200px;
	}
}
