/* ============================================================
   Home page sections — matches designs/home-page-sections/*.png
   Blocks 2, 3 (buttons), 4, 5, 6 (latest news), 8
   ============================================================ */

:root {
	--hp-heading: #2f6b91;   /* medium blue section headings */
	--hp-teal: #3a7d9c;      /* email + testimonials band */
	--hp-lavender: #eceef3;  /* community section background */
	--hp-body: #444444;
}

/* ---------- Block 2: Community Stats ---------- */
.community-stats {
	padding: 64px 0;
	background: var(--hp-lavender);
}
.community-stats__title {
	margin: 0 0 16px;
	text-align: center;
	font-size: 34px;
	font-weight: 700;
	color: var(--hp-heading);
}
.community-stats__intro {
	max-width: 920px;
	margin: 0 auto 40px;
}
.community-stats__intro p { margin: 0 0 14px; color: var(--hp-body); line-height: 1.6; font-size: 16px; }
.community-stats__intro p:first-child {
	text-align: center;
	font-weight: 700;
	color: #1a1a1a;
	font-size: 17px;
}
.community-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.stat-card {
	background: #ffffff;
	border-radius: 10px;
	padding: 26px 28px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.stat-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.stat-card__number {
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
	color: var(--hp-heading);
}
.stat-card__icon { width: 42px; height: 42px; object-fit: contain; margin-top: 8px; }
.stat-card__desc { font-family: 'Lato', sans-serif; font-size: 16px; line-height: 1.55; color: var(--hp-body); }
.stat-card__desc p { margin: 0; font-size: 16px; }

/* ---------- Block 3: Partner buttons ---------- */
.partner-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
	margin-top: 32px;
}
.partner-button {
	display: inline-block;
	padding: 15px 40px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff !important;        /* beat the theme's link color */
	background: var(--hp-teal);
	text-decoration: none !important;
	transition: opacity 0.15s;
}
.partner-button:hover { opacity: 0.9; color: #ffffff !important; }

/* Dynamic logo ticker (full width, ~8 across on desktop, continuous scroll) */
.partners-ticker { width: 100%; }
.partners-ticker .owl-item { display: flex; align-items: center; }
.partners-ticker__item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
}
.partners-ticker__item img {
	max-height: 90px;
	max-width: 100%;
	object-fit: contain;
}

/* ---------- Block 4: Email Signup Band ---------- */
.email-signup { padding: 44px 0; }
.email-signup__band {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	padding: 56px;
	border-radius: 18px;
	background: var(--hp-teal);
	color: #ffffff;
	overflow: hidden;
}
/* Legibility scrim when a background image is used (keeps white text readable). */
.email-signup__band.has-bg-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(36, 90, 120, 0.45);
	border-radius: inherit;
}
.email-signup__band.has-bg-image > * { position: relative; z-index: 1; }

.email-signup__text { flex: 1 1 360px; }
.email-signup__heading { margin: 0 0 16px; font-size: 44px; font-weight: 700; color: #ffffff; }
.email-signup__body { font-size: 19px; line-height: 1.45; color: rgba(255, 255, 255, 0.95); }
.email-signup__body p { margin: 0; }
.email-signup__form { flex: 1 1 360px; }

/* Embedded Formidable form laid out as three rows:
   Row 1: First Name | Last Name   Row 2: Email   Row 3: Sign Up.
   Set First & Last Name to 1/2 width in the Formidable form builder so they
   share the top row; all other fields default to full width. */
.email-signup__form .frm_fields_container,
.email-signup__form .frm_form_fields > fieldset {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.email-signup__form .frm_form_field { flex: 1 1 100%; margin: 0 !important; }
.email-signup__form .frm_form_field.frm_half,
.email-signup__form .frm_form_field.frm6 { flex: 1 1 calc(50% - 7px); }
.email-signup__form label,
.email-signup__form .frm_primary_label { color: #ffffff; font-weight: 600; margin-bottom: 6px; }

/* Inputs and the submit button share radius/height so they match. */
.email-signup__form input[type="text"],
.email-signup__form input[type="email"],
.email-signup__form button,
.email-signup__form input[type="submit"] {
	width: 100%;
	border: 0;
	border-radius: 8px;
	padding: 16px 20px;
	font-size: 16px;
	line-height: 1.4;
	box-sizing: border-box;
}
.email-signup__form input[type="text"],
.email-signup__form input[type="email"] { background: #ffffff; color: #333333; }
.email-signup__form .frm_submit { flex: 1 1 100%; margin: 0 !important; }
.email-signup__form button,
.email-signup__form input[type="submit"] {
	font-weight: 600;
	color: #ffffff;
	background: #235a78;
	cursor: pointer;
}
.email-signup__form button:hover,
.email-signup__form input[type="submit"]:hover { background: #1d4d68; }

/* ---------- Block 5: Highlights Carousel ---------- */
.highlights { padding: 60px 0; }
.highlight-slide {
	display: flex;
	align-items: center;
	gap: 56px;
	flex-wrap: wrap;
}
.highlight-slide__copy { flex: 1 1 320px; }
.highlight-slide__eyebrow {
	display: block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hp-heading);
	margin-bottom: 12px;
}
.highlight-slide__title { margin: 0 0 18px; font-size: 46px; font-weight: 700; line-height: 1.1; color: #1a1a1a; }
.highlight-slide__body { font-size: 16px; line-height: 1.6; color: var(--hp-body); margin-bottom: 20px; }
.highlight-slide__link { display: inline-block; font-size: 15px; color: #1a1a1a; text-decoration: underline; }
.highlight-slide__image { flex: 1 1 380px; }
/* Downward-biased shadow (negative spread) so it doesn't bleed left/right. */
.highlight-slide__image img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 14px 22px -10px rgba(0, 0, 0, 0.22); }
/* The section + slide are solid white (matches the design and prevents any
   ancestor background/gradient showing through the otherwise-transparent slide).
   Only the image casts a shadow. */
.highlights { background: #ffffff; }
.highlights .highlights__carousel,
.highlights .owl-stage-outer,
.highlights .owl-stage,
.highlights .owl-item,
.highlight-slide { box-shadow: none; background: #ffffff; }

/* ---------- Block 6: Latest News ---------- */
.latest-news { padding: 60px 0; }
.latest-news__title {
	margin: 0 0 14px;
	text-align: center;
	font-size: 34px;
	font-weight: 700;
	color: var(--hp-heading);
}
.latest-news__intro {
	max-width: 760px;
	margin: 0 auto 40px;
	text-align: center;
	font-size: 16px;
	line-height: 1.6;
	color: var(--hp-body);
}
.latest-news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.latest-news-card__image img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	margin-bottom: 18px;
}
.latest-news-card__title { margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.3; color: #1a1a1a; }
.latest-news-card__title a { color: inherit; text-decoration: none; }
.latest-news-card__body { font-size: 14px; line-height: 1.55; color: var(--hp-body); }

/* ---------- Block 8: Testimonials Carousel ---------- */
.testimonials {
	padding: 64px 0;
	background: var(--hp-teal);
	color: #ffffff;
	text-align: center;
}
.testimonials__title { margin: 0 0 10px; font-size: 30px; font-weight: 700; color: #ffffff; }
.testimonials__subtitle { margin: 0 0 40px; font-size: 18px; color: rgba(255, 255, 255, 0.92); }
.testimonial-slide {
	display: flex;
	align-items: center;
	gap: 48px;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 1000px;
	margin: 0 auto;
	text-align: left;
}
.testimonial-slide__logo {
	flex: 0 0 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: #ffffff;
}
.testimonial-slide__logo img { max-width: 140px; max-height: 140px; object-fit: contain; }
.testimonial-slide__content { flex: 1 1 380px; }
.testimonial-slide__quote {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	font-size: 17px;
	line-height: 1.6;
	color: #ffffff;
}
.testimonial-slide__quote p { margin: 0 0 8px; }
.testimonial-slide__quote p:first-child { font-style: italic; font-size: 22px; }
.testimonial-slide__name { font-size: 15px; color: rgba(255, 255, 255, 0.95); }
.testimonials__button {
	display: inline-block;
	margin-top: 40px;
	padding: 15px 40px;
	border-radius: 30px;
	background: #ffffff;
	color: var(--hp-heading);
	font-weight: 600;
	text-decoration: none;
}

/* ---------- Shared: Owl Carousel dots ---------- */
.highlights .owl-dots,
.testimonials .owl-dots { text-align: center; margin-top: 24px; }
.highlights .owl-dot span,
.testimonials .owl-dot span {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin: 0 5px;
	border-radius: 50%;
	background: transparent;
	border: 2px solid #c4ccd3;
}
.highlights .owl-dot.active span { background: var(--hp-heading); border-color: var(--hp-heading); }
.testimonials .owl-dot span { border-color: rgba(255, 255, 255, 0.6); }
.testimonials .owl-dot.active span { background: #ffffff; border-color: #ffffff; }

/* Highlights dots: more space below the image, centered under the right image. */
.highlights .owl-dots { margin-top: 40px; }
@media (min-width: 992px) { .highlights .owl-dots { padding-left: 50%; } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.community-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.latest-news__grid { grid-template-columns: 1fr; gap: 28px; }
	.email-signup__band { padding: 36px; }
	.email-signup__heading { font-size: 34px; }
	.testimonial-slide { text-align: center; }
}
@media (max-width: 600px) {
	.community-stats__grid { grid-template-columns: 1fr; }
	.highlight-slide { gap: 24px; }
	.email-signup__form .frm_form_field.frm_half,
	.email-signup__form .frm_form_field.frm6 { flex: 1 1 100%; }
}
