/* ==========================================================================
   Bridge Wellness Center — content components for service pages (.bwc-svc)
   and blog posts (.bwc-post). Hand-maintained; NOT generated by the theme
   editor (custom.css is). Loaded from views/layout.php.
   Brand: teal #23a8a3, navy #004579
   ========================================================================== */

.bwc-svc, .bwc-post {
	--bwc-teal: #23a8a3;
	--bwc-teal-dark: #1b8783;
	--bwc-navy: #004579;
	--bwc-ink: #24323d;
	--bwc-muted: #5b6b77;
	--bwc-soft: #f2f7f8;
	--bwc-line: #dde7ea;
	--bwc-radius: 14px;
	color: var(--bwc-ink);
	font-family: 'Albert Sans', sans-serif;
	font-size: 17px;
	line-height: 1.7;
}

.bwc-svc *, .bwc-post * { box-sizing: border-box; }

#template .bwc-svc h2, #template .bwc-post h2 {
	color: var(--bwc-navy);
	font-family: 'Albert Sans', sans-serif;
	font-size: 30px;
	line-height: 1.25;
	font-weight: 700;
	margin: 0 0 16px;
	text-transform: none;
	letter-spacing: -0.01em;
}
#template .bwc-svc h3, #template .bwc-post h3 {
	color: var(--bwc-navy);
	font-family: 'Albert Sans', sans-serif;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 10px;
	text-transform: none;
}
.bwc-svc p, .bwc-post p { margin: 0 0 16px; }
#template .bwc-svc a:not(.bwc-btn), #template .bwc-post a:not(.bwc-btn) {
	color: var(--bwc-teal-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}
#template .bwc-svc a:not(.bwc-btn):hover, #template .bwc-post a:not(.bwc-btn):hover { color: var(--bwc-navy); }
.bwc-svc ul, .bwc-svc ol, .bwc-post ul, .bwc-post ol { margin: 0 0 18px; padding-left: 22px; }
.bwc-svc li, .bwc-post li { margin-bottom: 6px; }

.bwc-lead { font-size: 20px; line-height: 1.6; color: var(--bwc-ink); }
.bwc-eyebrow {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 13px !important;
	font-weight: 700;
	color: var(--bwc-teal) !important;
	margin-bottom: 8px !important;
}

/* Buttons */
.bwc-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
#template a.bwc-btn {
	display: inline-block;
	background: var(--bwc-teal);
	border: 2px solid var(--bwc-teal);
	color: #fff;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
#template a.bwc-btn:hover { background: var(--bwc-navy); border-color: var(--bwc-navy); color: #fff; }
#template a.bwc-btn.bwc-btn--ghost { background: transparent; color: var(--bwc-navy); border-color: var(--bwc-navy); }
#template a.bwc-btn.bwc-btn--ghost:hover { background: var(--bwc-navy); color: #fff; }

/* Images */
.bwc-svc figure, .bwc-post figure { margin: 0; }
.bwc-svc img, .bwc-post img { max-width: 100%; height: auto; display: block; }
.bwc-figure { margin: 8px 0 28px !important; }
.bwc-figure img, .bwc-hero__media img, .bwc-split__media img {
	width: 100%;
	border-radius: var(--bwc-radius);
	object-fit: cover;
	box-shadow: 0 12px 30px rgba(0, 69, 121, .12);
}
.bwc-figure img { aspect-ratio: 16 / 9; }
.bwc-svc figcaption, .bwc-post figcaption {
	font-size: 12px;
	color: var(--bwc-muted);
	margin-top: 6px;
	text-align: right;
}
#template .bwc-svc figcaption a, #template .bwc-post figcaption a { color: var(--bwc-muted); }

/* Hero */
.bwc-hero {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 44px;
	align-items: center;
	padding: 10px 0 44px;
}
.bwc-hero__media img { aspect-ratio: 4 / 3; }
.bwc-hero h2 { font-size: 36px !important; }

/* Sections */
.bwc-section { padding: 40px 0; border-top: 1px solid var(--bwc-line); }
.bwc-section--alt {
	background: var(--bwc-soft);
	border-top: 0;
	border-radius: var(--bwc-radius);
	padding: 40px 36px;
	margin: 10px 0;
}
.bwc-section--alt + .bwc-section { border-top: 0; }

/* Cards */
.bwc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-top: 22px;
}
.bwc-card {
	background: #fff;
	border: 1px solid var(--bwc-line);
	border-top: 4px solid var(--bwc-teal);
	border-radius: var(--bwc-radius);
	padding: 24px 22px;
	box-shadow: 0 6px 18px rgba(0, 69, 121, .06);
}
.bwc-card p:last-child { margin-bottom: 0; }
.bwc-card .bwc-btns { margin-top: 12px; }

/* Split */
.bwc-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 44px;
	align-items: center;
}
.bwc-split--rev .bwc-split__text { order: 2; }
.bwc-split--rev .bwc-split__media { order: 1; }
.bwc-split__media img { aspect-ratio: 4 / 3; }

/* Checklist */
.bwc-svc ul.bwc-checklist, .bwc-post ul.bwc-checklist {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 8px 24px;
}
.bwc-checklist li { position: relative; padding-left: 30px; margin: 0; }
.bwc-checklist li:before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bwc-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Steps */
.bwc-svc ol.bwc-steps, .bwc-post ol.bwc-steps { list-style: none; counter-reset: bwcstep; padding: 0; }
.bwc-steps li {
	counter-increment: bwcstep;
	position: relative;
	padding: 4px 0 14px 58px;
	margin: 0 0 10px;
	min-height: 44px;
}
.bwc-steps li:before {
	content: counter(bwcstep);
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bwc-navy);
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* FAQ */
.bwc-faq { margin-top: 16px; }
.bwc-faq details {
	border: 1px solid var(--bwc-line);
	border-radius: 10px;
	margin-bottom: 10px;
	background: #fff;
}
.bwc-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 16px 48px 16px 20px;
	font-weight: 700;
	color: var(--bwc-navy);
	position: relative;
}
.bwc-faq summary::-webkit-details-marker { display: none; }
.bwc-faq summary:after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	color: var(--bwc-teal);
	font-weight: 400;
}
.bwc-faq details[open] summary:after { content: "\2212"; }
.bwc-faq details > p, .bwc-faq details > ul { padding: 0 20px; }
.bwc-faq details > p:last-child { padding-bottom: 6px; }

/* Related links */
.bwc-svc ul.bwc-related, .bwc-post ul.bwc-related { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bwc-related li { margin: 0; }
#template .bwc-related a {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid var(--bwc-line);
	border-radius: 999px;
	background: var(--bwc-soft);
	text-decoration: none;
	font-weight: 600;
	color: var(--bwc-navy);
}
#template .bwc-related a:hover { border-color: var(--bwc-teal); color: var(--bwc-teal-dark); }

/* Callouts and CTA */
.bwc-callout {
	border-left: 5px solid var(--bwc-teal);
	background: var(--bwc-soft);
	padding: 18px 22px;
	border-radius: 0 10px 10px 0;
	margin: 26px 0;
}
.bwc-callout p:last-child { margin-bottom: 0; }
.bwc-takeaways {
	background: #fff;
	border: 1px solid var(--bwc-line);
	border-radius: var(--bwc-radius);
	padding: 22px 26px 8px;
	margin: 24px 0 30px;
	box-shadow: 0 6px 18px rgba(0, 69, 121, .06);
}
.bwc-cta {
	background: linear-gradient(135deg, var(--bwc-navy) 0%, #0a5f8f 55%, var(--bwc-teal) 100%);
	color: #fff;
	border-radius: var(--bwc-radius);
	padding: 38px 36px;
	margin: 36px 0 20px;
	text-align: center;
}
#template .bwc-cta h2, #template .bwc-cta h3 { color: #fff; }
.bwc-cta p { color: #fff; }
.bwc-cta .bwc-btns { justify-content: center; }
#template .bwc-cta a:not(.bwc-btn) { color: #fff; }
#template .bwc-cta a.bwc-btn { background: #fff; border-color: #fff; color: var(--bwc-navy); }
#template .bwc-cta a.bwc-btn:hover { background: var(--bwc-teal); border-color: var(--bwc-teal); color: #fff; }
#template .bwc-cta a.bwc-btn.bwc-btn--ghost { background: transparent; border-color: #fff; color: #fff; }
#template .bwc-cta a.bwc-btn.bwc-btn--ghost:hover { background: #fff; color: var(--bwc-navy); }
.bwc-note { font-size: 13px; color: var(--bwc-muted); font-style: italic; }

/* Blog post rhythm */
.bwc-post { max-width: 860px; }
#template .bwc-post h2 { font-size: 27px; margin-top: 36px; }
#template .bwc-post h3 { margin-top: 22px; }
.bwc-post .bwc-cta h3 { margin-top: 0 !important; }

/* ---- Hard resets against theme list/link rules (fix overlapping text) ---- */
#template .bwc-svc li, #template .bwc-post li,
#template .bwc-svc li a, #template .bwc-post li a { text-indent: 0 !important; }
#template .bwc-svc ul.bwc-checklist li, #template .bwc-post ul.bwc-checklist li {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
	background: none !important;
}
#template .bwc-svc ul.bwc-checklist li:before, #template .bwc-post ul.bwc-checklist li:before {
	position: static !important;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 3px 0 0 !important;
	padding: 0 !important;
	float: none !important;
}
#template .bwc-svc ul.bwc-related li, #template .bwc-post ul.bwc-related li {
	padding: 0 !important;
	list-style: none !important;
	background: none !important;
}
#template .bwc-svc ul.bwc-related li:before, #template .bwc-post ul.bwc-related li:before { content: none !important; display: none !important; }
#template .bwc-related a {
	display: inline-flex !important;
	align-items: center;
	white-space: nowrap;
	text-decoration: none !important;
	padding: 10px 20px !important;
	margin: 0 !important;
	line-height: 1.2;
}

/* Cards: equal height, buttons pinned to bottom */
.bwc-card { display: flex; flex-direction: column; }
.bwc-card .bwc-btns { margin-top: auto; padding-top: 14px; }
/* Text that follows a card grid (e.g. "First visit? Ask about…") */
.bwc-grid + p, .bwc-grid + .bwc-btns {
	margin-top: 26px;
	text-align: center;
}
.bwc-grid + p:not(.bwc-btns) {
	display: table;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	border: 1px dashed var(--bwc-teal);
	border-radius: 999px;
	padding: 10px 24px;
	font-weight: 600;
	color: var(--bwc-navy);
}
.bwc-section--alt > :last-child { margin-bottom: 0; }

.bwc-svc img.bwc-img--top, .bwc-post img.bwc-img--top { object-position: center 20%; }

/* Card icons (FontAwesome 4, already loaded by the theme) */
.bwc-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(35, 168, 163, .12);
	color: var(--bwc-teal);
	font-size: 24px;
	margin-bottom: 14px;
}
.bwc-card { border-top-width: 0; text-align: left; }
.bwc-card:hover { box-shadow: 0 12px 28px rgba(0, 69, 121, .12); transform: translateY(-2px); transition: all .2s; }
.bwc-card p { font-size: 16px; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
	.bwc-hero, .bwc-split { grid-template-columns: 1fr; gap: 26px; }
	.bwc-split--rev .bwc-split__text, .bwc-split--rev .bwc-split__media { order: 0; }
	.bwc-hero__media { order: -1; }
	.bwc-hero h2 { font-size: 30px !important; }
	#template .bwc-svc h2, #template .bwc-post h2 { font-size: 25px; }
	.bwc-section--alt { padding: 30px 20px; }
	.bwc-cta { padding: 30px 20px; }
}
@media (max-width: 560px) {
	.bwc-svc, .bwc-post { font-size: 16px; }
	.bwc-lead { font-size: 18px; }
	#template a.bwc-btn { width: 100%; text-align: center; }
}

/* Blog listing + related thumbnails: one consistent 16:9 frame for every post */
#template li.blog_list figure a.img_cont { display: block; overflow: hidden; }
#template li.blog_list figure a.img_cont img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center 30%;
	display: block;
}

/* Author box (blog posts) */
.bwc-author {
	display: flex;
	gap: 20px;
	align-items: center;
	border: 1px solid var(--bwc-line);
	border-radius: var(--bwc-radius);
	padding: 22px 24px;
	margin: 30px 0 10px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 69, 121, .06);
}
.bwc-post .bwc-author img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 96px;
}
.bwc-author p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; }
.bwc-author .bwc-author__name { font-weight: 700; color: var(--bwc-navy); font-size: 18px; margin-bottom: 2px; }
.bwc-author .bwc-author__role { color: var(--bwc-teal-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
@media (max-width: 560px) { .bwc-author { flex-direction: column; text-align: center; } }

/* Team cards (Meet the Team) */
.bwc-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 22px; }
.bwc-team__card { background: #fff; border: 1px solid var(--bwc-line); border-radius: var(--bwc-radius); overflow: hidden; box-shadow: 0 6px 18px rgba(0, 69, 121, .06); display: flex; flex-direction: column; }
.bwc-svc .bwc-team__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.bwc-team__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bwc-team__body .bwc-btns { margin-top: auto; padding-top: 10px; }
.bwc-team__role { color: var(--bwc-teal-dark); font-size: 13px !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 8px !important; }

/* ==========================================================================
   Modern header navigation (desktop). Overrides theme nav visuals only.
   ========================================================================== */
@media (min-width: 1001px) {
	#ficc_header { box-shadow: 0 2px 18px rgba(0, 69, 121, .07); }

	/* top-level links */
	#template #ficc_header_navigation > ul > li { margin-left: 2px; }
	#template #ficc_header_navigation > ul > li > a {
		font-family: 'Albert Sans', sans-serif;
		font-size: 16px;
		font-weight: 600;
		color: #1d2f3d;
		letter-spacing: .01em;
		padding: 30px 12px;
	}
	#template #ficc_header_navigation > ul > li > a span { position: relative; }
	#template #ficc_header_navigation > ul > li > a span:after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -8px;
		height: 2px;
		border-radius: 2px;
		background: #23a8a3;
		transform: scaleX(0);
		transform-origin: center;
		transition: transform .25s ease;
	}
	#template #ficc_header_navigation > ul > li:hover > a,
	#template #ficc_header_navigation > ul > li.selected > a { color: #004579; }
	#template #ficc_header_navigation > ul > li:hover > a span:after,
	#template #ficc_header_navigation > ul > li.selected > a span:after { transform: scaleX(1); }

	/* chevrons */
	#template .style_nav_dropdown > ul > li.multimenu > a:after {
		font-size: 14px;
		padding-left: 6px;
		top: 0;
		color: #8aa4b4;
		display: inline-block;
		transition: transform .25s ease, color .2s;
	}
	#template .style_nav_dropdown > ul > li.multimenu:hover > a:after { transform: rotate(180deg); color: #23a8a3; }

	/* dropdown panel */
	#template #ficc_header_navigation ul ul {
		background: #fff !important;
		min-width: 260px;
		padding: 10px !important;
		border-radius: 14px;
		border: 1px solid #e3ecef;
		box-shadow: 0 18px 40px rgba(0, 45, 80, .16) !important;
		margin-top: 10px !important;
		transition: opacity .2s ease, visibility .2s ease, margin .2s ease;
	}
	#template #ficc_header_navigation > ul > li:hover > ul { margin-top: 0 !important; }
	#template #ficc_header_navigation > ul > li > ul:before {
		content: "";
		position: absolute;
		top: -6px;
		left: 28px;
		width: 12px;
		height: 12px;
		background: #fff;
		border-left: 1px solid #e3ecef;
		border-top: 1px solid #e3ecef;
		transform: rotate(45deg);
	}
	#template #ficc_header_navigation ul ul li { display: block; margin: 0; }
	#template #ficc_header_navigation ul ul a {
		font-family: 'Albert Sans', sans-serif;
		font-size: 15px;
		font-weight: 500;
		line-height: 1.35;
		color: #1d2f3d !important;
		background: transparent !important;
		border: 0 !important;
		border-radius: 9px;
		padding: 11px 14px !important;
		white-space: nowrap;
		transition: background .15s, color .15s, padding .15s;
	}
	#template #ficc_header_navigation ul ul li:hover > a,
	#template #ficc_header_navigation ul ul li.selected > a {
		background: rgba(35, 168, 163, .10) !important;
		color: #004579 !important;
		padding-left: 18px !important;
	}
	#template #ficc_header_navigation ul ul ul { left: calc(100% + 10px); top: -10px; }

	/* header CTA button */
	#template #column_3 a.button {
		white-space: nowrap;
		padding: 13px 26px;
		border-radius: 999px;
		font-weight: 700;
		font-size: 15px;
		line-height: 1.2;
		box-shadow: 0 6px 16px rgba(35, 168, 163, .28);
		transition: transform .15s, box-shadow .15s, background .15s;
	}
	#template #column_3 a.button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 69, 121, .25); }

	/* social icons */
	#template .header-social a { transition: color .15s, transform .15s; }
	#template .header-social a:hover { transform: translateY(-1px); }
}

/* Header row: flex layout so nav, CTA and social icons never collide */
@media (min-width: 1001px) {
	#template #ficc_header_bottom #columns {
		display: flex !important;
		align-items: center;
		gap: 0;
		width: 100%;
	}
	#template #ficc_header_bottom #columns > .layout_block { float: none !important; display: block !important; }
	#template #ficc_header_bottom #columns_1 { flex: 0 0 auto; width: auto !important; }
	#template #ficc_header_bottom #column_2 { flex: 1 1 auto; width: auto !important; display: flex; justify-content: flex-end; align-items: center; }
	#template #ficc_header_bottom #column_3 { flex: 0 0 auto; width: auto !important; margin-left: 22px; }
	#template #ficc_header_bottom #column_4 { flex: 0 0 auto; width: auto !important; margin-left: 18px; }
	#template #ficc_header_button-1661846751 { padding: 0 !important; }
	#template #ficc_header_button-1661846751 p { margin: 0 !important; }
	#template .header-social ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
	#template .header-social li br { display: none; }
}
@media (min-width: 1001px) and (max-width: 1300px) {
	#template #ficc_header_navigation > ul > li > a { padding: 30px 8px; font-size: 15px; }
	#template #column_3 a.button { padding: 11px 18px; font-size: 14px; }
	#template #ficc_header_bottom #column_3 { margin-left: 12px; }
}

/* Team headshot collage (Meet the Team hero) */
.bwc-svc figure.bwc-collage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.bwc-svc figure.bwc-collage img {
	width: 100%;
	aspect-ratio: 4 / 5 !important;
	object-fit: cover;
	object-position: center 22%;
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(0, 69, 121, .12);
}
.bwc-svc figure.bwc-collage img:nth-child(2), .bwc-svc figure.bwc-collage img:nth-child(4) { transform: translateY(18px); }

/* Centered page intro (no image) */
.bwc-intro { max-width: 820px; margin: 0 auto; padding: 10px 0 36px; text-align: center; }
.bwc-intro .bwc-btns { justify-content: center; }

/* Portrait bio sections (people photos) */
.bwc-split.bwc-split--portrait { grid-template-columns: 5fr 7fr; align-items: start; }
.bwc-split--rev.bwc-split--portrait { grid-template-columns: 7fr 5fr; }
.bwc-split--portrait .bwc-split__media img {
	aspect-ratio: 4 / 5 !important;
	object-fit: cover;
	object-position: center 12% !important;
}
@media (max-width: 900px) {
	.bwc-split.bwc-split--portrait, .bwc-split--rev.bwc-split--portrait { grid-template-columns: 1fr; }
	.bwc-split--portrait .bwc-split__media { max-width: 420px; }
}
.bwc-hero.bwc-hero--portrait { grid-template-columns: 7fr 5fr; }
.bwc-hero--portrait .bwc-hero__media img { aspect-ratio: 4 / 5 !important; object-position: center 12% !important; }
@media (max-width: 900px) { .bwc-hero.bwc-hero--portrait { grid-template-columns: 1fr; } .bwc-hero--portrait .bwc-hero__media { max-width: 420px; } }

/* Nav: left-aligned next to logo; chevron spacing that survives rotation */
@media (min-width: 1001px) {
	#template #ficc_header_bottom #column_2 { justify-content: flex-start !important; padding-left: 40px; }
	#template #ficc_header_navigation { text-align: left !important; }
	#template #ficc_header_bottom #column_3 { margin-left: auto !important; }
	#template .style_nav_dropdown > ul > li.multimenu > a:after {
		padding-left: 0 !important;
		margin-left: 7px;
		transform-origin: 50% 55%;
	}
}
@media (min-width: 1001px) and (max-width: 1300px) {
	#template #ficc_header_bottom #column_2 { padding-left: 20px; }
}

/* Dropdowns open under their item, text aligned with the nav label; header never wraps */
@media (min-width: 1001px) {
	#template #ficc_header_bottom #columns { flex-wrap: nowrap !important; }
	#template #ficc_header_navigation > ul { white-space: nowrap; }
	#template #ficc_header_navigation > ul > li > ul {
		left: -12px !important;   /* nav link padding 12 = panel padding 10 + item padding 14 - 12 */
		right: auto !important;
		white-space: normal;
	}
	#template #ficc_header_navigation > ul > li > ul:before { left: 26px; }
	#template #ficc_header_navigation > ul > li.lastmenu > ul { left: auto !important; right: -12px !important; }
	#template #ficc_header_navigation > ul > li.lastmenu > ul:before { left: auto; right: 26px; }
	#template #ficc_header_navigation ul ul li:hover > a,
	#template #ficc_header_navigation ul ul li.selected > a { padding-left: 14px !important; }
}
@media (min-width: 1001px) and (max-width: 1300px) {
	#template #ficc_header_navigation > ul > li > ul { left: -16px !important; } /* link padding 8 */
}

/* Testimonials: collapsible long reviews */
.testimonial_description details.bwc-more { margin-top: -4px; }
.testimonial_description details.bwc-more summary {
	cursor: pointer;
	list-style: none;
	display: inline-block;
	color: #1b8783;
	font-weight: 700;
	font-size: 15px;
	margin: 4px 0 8px;
}
.testimonial_description details.bwc-more summary::-webkit-details-marker { display: none; }
.testimonial_description details.bwc-more summary:after { content: " \25BE"; }
.testimonial_description details.bwc-more[open] summary { font-size: 0; margin: 0; }
.testimonial_description details.bwc-more[open] summary:after { content: "Show less \25B4"; font-size: 15px; display: block; margin-top: 6px; }
.testimonial_description details.bwc-more[open] { display: flex; flex-direction: column-reverse; }

/* Benefit tiles (icon + short label) */
.bwc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 18px; }
.bwc-tile {
	display: flex; align-items: center; gap: 14px;
	background: #fff; border: 1px solid var(--bwc-line); border-radius: 12px;
	padding: 16px 18px; box-shadow: 0 4px 14px rgba(0, 69, 121, .05);
	font-weight: 600; color: var(--bwc-navy); line-height: 1.3;
}
.bwc-tile__icon {
	flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(35, 168, 163, .12); color: var(--bwc-teal); font-size: 19px;
}
@media (max-width: 1000px) { .bwc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bwc-tiles { grid-template-columns: 1fr; } }

/* Numbered pillars (5 Essentials) */
html { scroll-behavior: smooth; }
.bwc-svc [id] { scroll-margin-top: 130px; }
.bwc-pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 24px 0 8px; }
#template a.bwc-pillar {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--bwc-line); border-radius: var(--bwc-radius);
	padding: 26px 20px 22px; text-decoration: none !important; color: var(--bwc-ink);
	box-shadow: 0 6px 18px rgba(0, 69, 121, .06); overflow: hidden;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
#template a.bwc-pillar:before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--bwc-teal), var(--bwc-navy)); }
#template a.bwc-pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 69, 121, .14); border-color: var(--bwc-teal); }
.bwc-pillar__num { position: absolute; top: 12px; right: 16px; font-size: 34px; font-weight: 800; color: rgba(0, 69, 121, .08); line-height: 1; }
.bwc-pillar__icon {
	width: 58px; height: 58px; border-radius: 16px; margin-bottom: 16px;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--bwc-teal), #1b8783); color: #fff; font-size: 26px;
	box-shadow: 0 8px 18px rgba(35, 168, 163, .3);
}
#template .bwc-pillar h3 { font-size: 20px; margin: 0 0 8px; }
.bwc-pillar p { font-size: 15px; line-height: 1.55; color: var(--bwc-muted); margin: 0 0 14px; }
.bwc-pillar__more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--bwc-teal-dark); }
@media (max-width: 1100px) { .bwc-pillars { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .bwc-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .bwc-pillars { grid-template-columns: 1fr; } }

/* ===================== Homepage sections ===================== */
.bwc-home { max-width: 1230px; margin: 0 auto; padding: 0 15px; }
.bwc-home .bwc-section { border-top: 0; padding: 60px 0; }
.bwc-home .bwc-section > .bwc-eyebrow, .bwc-home .bwc-section > h2, .bwc-home .bwc-section > .bwc-lead { text-align: center; }
.bwc-home .bwc-section > .bwc-lead { max-width: 720px; margin: 0 auto 10px; }
#template .bwc-home .bwc-section > h2 { font-size: 36px; }
.bwc-home .bwc-split .bwc-split__text h2 { text-align: left; }

/* H1 on home welcome block */
#template h1.bwc-home-h1 {
	font-family: 'Albert Sans', sans-serif;
	color: #004579; font-size: 40px; line-height: 1.2; font-weight: 700;
	margin: 0 0 20px; text-transform: none;
}
#template h1.bwc-home-h1 span { display: block; color: #23a8a3; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }

/* proof strip */
.bwc-proof {
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border: 1px solid var(--bwc-line); border-radius: var(--bwc-radius);
	box-shadow: 0 14px 34px rgba(0, 69, 121, .10);
	margin: 28px auto 10px; position: relative; z-index: 5; max-width: 1100px;
}
.bwc-proof > div { padding: 22px 18px; text-align: center; border-left: 1px solid var(--bwc-line); }
.bwc-proof > div:first-child { border-left: 0; }
.bwc-proof strong { display: block; color: var(--bwc-navy); font-size: 22px; font-weight: 800; }
.bwc-proof span { color: var(--bwc-muted); font-size: 14px; }

/* service / post cards */
.bwc-hgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.bwc-hgrid--3 { grid-template-columns: repeat(3, 1fr); }
#template a.bwc-hcard {
	display: flex; flex-direction: column; background: #fff; text-decoration: none !important;
	border: 1px solid var(--bwc-line); border-radius: var(--bwc-radius); overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 69, 121, .06); color: var(--bwc-ink);
	transition: transform .2s, box-shadow .2s;
}
#template a.bwc-hcard:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 69, 121, .14); }
.bwc-svc .bwc-hcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: 0; box-shadow: none; }
.bwc-hcard--post img { aspect-ratio: 16 / 9 !important; }
.bwc-hcard__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; position: relative; }
.bwc-hcard .bwc-card__icon { position: absolute; top: -27px; left: 18px; background: #fff; box-shadow: 0 6px 14px rgba(0, 69, 121, .15); margin: 0; }
.bwc-hcard strong { display: block; color: var(--bwc-navy); font-size: 19px; line-height: 1.3; margin: 18px 0 6px; }
.bwc-hcard--post strong { margin-top: 0; font-size: 18px; }
.bwc-hcard__body > span:not(.bwc-card__icon) { font-size: 15px; line-height: 1.55; color: var(--bwc-muted); }
.bwc-hcard em { margin-top: auto; padding-top: 12px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--bwc-teal-dark); }

/* slide second button */
#template #ficc_slider a.button.bwc-slide-ghost { background: transparent; border: 2px solid #fff; color: #fff; margin-left: 10px; }
#template #ficc_slider a.button.bwc-slide-ghost:hover { background: #fff; color: #004579; }

@media (max-width: 1000px) {
	.bwc-hgrid { grid-template-columns: repeat(2, 1fr); }
	.bwc-hgrid--3 { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
	.bwc-proof { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
	.bwc-proof > div:nth-child(3) { border-left: 0; }
	.bwc-proof > div:nth-child(n+3) { border-top: 1px solid var(--bwc-line); }
	#template h1.bwc-home-h1 { font-size: 30px; }
	#template .bwc-home .bwc-section > h2 { font-size: 28px; }
	#template #ficc_slider a.button.bwc-slide-ghost { margin: 10px 0 0; }
}
@media (max-width: 520px) { .bwc-hgrid { grid-template-columns: 1fr; } }

/* ===================== Homepage round 2 ===================== */
/* Hero slider: text in lower third, gradient for legibility, arrows mid-height, dots above proof strip */
#template #ficc_slider .featured_img_overlay {
	background: linear-gradient(180deg, rgba(0,20,40,0) 35%, rgba(0,20,40,.55) 78%, rgba(0,20,40,.7) 100%);
}
#template #ficc_slider .featured_img_overlay h2 { font-family: 'Albert Sans', sans-serif !important; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
#template #ficc_slider .featured_img_overlay h4 { font-family: 'Albert Sans', sans-serif !important; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
#template #ficc_slider .bx-prev, #template #ficc_slider .bx-next {
	top: 50% !important; bottom: auto !important; transform: translateY(-50%); margin-top: 0 !important;
}
#template #ficc_slider .bx-prev { left: 30px !important; }
#template #ficc_slider .bx-next { right: 30px !important; left: auto !important; }
#template #ficc_slider .content_slider_pager, #template #ficc_slider .bx-pager { bottom: 70px !important; }

/* Condition cards */
#template #life-changing_care_arthritis_list > .layout_block { padding: 0 8px; }
#template a.bwc-cond {
	display: flex; flex-direction: column; align-items: flex-start; height: 100%; text-align: left;
	background: #fff; border: 1px solid #dde7ea; border-radius: 14px; padding: 24px 22px;
	text-decoration: none !important; box-shadow: 0 6px 18px rgba(0,69,121,.06);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
#template a.bwc-cond:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,69,121,.13); border-color: #23a8a3; }
.bwc-cond__icon {
	width: 54px; height: 54px; border-radius: 14px; margin-bottom: 16px;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #23a8a3, #1b8783); color: #fff; font-size: 24px;
	box-shadow: 0 8px 18px rgba(35,168,163,.28);
}
#template a.bwc-cond strong { font-family: 'Albert Sans', sans-serif; font-size: 19px; color: #004579; line-height: 1.3; margin-bottom: 8px; }
#template .bwc-cond__text { font-family: 'Albert Sans', sans-serif; font-size: 15px; line-height: 1.55; color: #5b6b77; margin-bottom: 14px; }
#template .bwc-cond__more { margin-top: auto; font-family: 'Albert Sans', sans-serif; font-weight: 700; font-size: 14px; color: #1b8783; }
#template #life-changing_care_arthritis_list { display: flex; align-items: stretch; }
@media (max-width: 1000px) { #template #life-changing_care_arthritis_list { flex-wrap: wrap; justify-content: center; } #template #life-changing_care_arthritis_list > .layout_block { width: 50% !important; margin-bottom: 16px; } }
@media (max-width: 560px) { #template #life-changing_care_arthritis_list > .layout_block { width: 100% !important; } }

/* Chiropractic / Wellness split sections */
#template section.bwc-hsplit { font-family: 'Albert Sans', sans-serif; }
#template section.bwc-hsplit h3 { font-family: 'Albert Sans', sans-serif !important; color: #004579 !important; font-size: 36px !important; font-weight: 800; line-height: 1.2; margin: 0 0 16px !important; }
#template section.bwc-hsplit p { color: #24323d; font-size: 17px; line-height: 1.7; }
#template section.bwc-hsplit .bwc-eyebrow { margin-bottom: 8px !important; }
#template ul.bwc-hlist { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
#template ul.bwc-hlist li { position: relative; padding: 0 0 0 30px !important; margin: 0; color: #24323d; font-weight: 600; }
#template ul.bwc-hlist li:before {
	content: "" !important; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; padding: 0 !important;
	background: #23a8a3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.bwc-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
#template .bwc-pills a {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
	background: #fff; border: 1px solid #dde7ea; color: #004579 !important; font-weight: 600; font-size: 15px;
	text-decoration: none !important; box-shadow: 0 3px 10px rgba(0,69,121,.06); transition: all .15s;
}
#template .bwc-pills a i { color: #23a8a3; }
#template .bwc-pills a:hover { border-color: #23a8a3; transform: translateY(-1px); }
#template section.bwc-hsplit .bwc-btns { margin-top: 6px; }
@media (max-width: 560px) { #template ul.bwc-hlist { grid-template-columns: 1fr; } #template section.bwc-hsplit h3 { font-size: 28px !important; } }

/* Why Bridge */
.bwc-why { align-items: center; }
.bwc-why .bwc-split__media img { aspect-ratio: 4 / 5 !important; object-position: center 35% !important; }
.bwc-svc ul.bwc-why__list { list-style: none; padding: 0; margin: 22px 0; }
.bwc-why__list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.bwc-why__list li > span { flex: 0 0 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(35,168,163,.12); color: #23a8a3; font-size: 19px; }
.bwc-why__list strong { color: #004579; display: block; }
.bwc-why__tag { font-style: italic; color: #1b8783; font-weight: 600; }

/* Reviews */
.bwc-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.bwc-svc figure.bwc-review {
	display: flex; flex-direction: column; margin: 0; background: #fff; border: 1px solid var(--bwc-line);
	border-radius: var(--bwc-radius); padding: 26px 24px 22px; box-shadow: 0 6px 18px rgba(0,69,121,.06); position: relative;
}
.bwc-review:before { content: "\201C"; position: absolute; top: 4px; right: 20px; font-size: 80px; line-height: 1; color: rgba(35,168,163,.15); font-family: Georgia, serif; }
.bwc-review__stars { color: #f4b63f; letter-spacing: 2px; font-size: 18px; margin-bottom: 12px; }
.bwc-review blockquote { margin: 0 0 18px; padding: 0; border: 0; font-style: normal; font-size: 16px; line-height: 1.65; color: var(--bwc-ink); }
.bwc-svc .bwc-review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 15px; color: var(--bwc-ink); }
.bwc-review__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bwc-navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.bwc-review figcaption strong { display: block; color: var(--bwc-navy); }
.bwc-review figcaption em { font-style: normal; font-size: 13px; color: var(--bwc-muted); }
@media (max-width: 1000px) { .bwc-reviews__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bwc-reviews__grid { grid-template-columns: 1fr; } }

/* ===================== Homepage round 3 fixes ===================== */
@media (max-width: 1000px) { #template #ficc_slider td.bwc-slide-td { padding-bottom: 40px !important; } }
#template #ficc_slider .bx-pager, #template #ficc_slider .content_slider_pager { z-index: 6; }

/* Conditions: kill the theme's own column card so there is only one outline, add color */
#template #life-changing_care_arthritis_list > .layout_block {
	border: 0 !important; box-shadow: none !important; background: none !important; padding: 0 10px !important; border-radius: 0 !important;
}
#template #life-changing_care_arthritis_list > .layout_block:hover { box-shadow: none !important; transform: none !important; }
#template a.bwc-cond { background: linear-gradient(180deg, #eef8f7 0%, #ffffff 70%); border-color: #cfe6e4; border-top: 4px solid #23a8a3; }

/* Buttons inside the theme's homepage sections (theme link rules were overriding) */
#template section.bwc-hsplit a.bwc-btn,
#template section.bwc-hsplit a.bwc-btn:visited {
	background: #23a8a3 !important; border: 2px solid #23a8a3 !important; color: #fff !important;
	padding: 13px 26px !important; border-radius: 999px !important; text-transform: none !important; font-size: 16px !important;
}
#template section.bwc-hsplit a.bwc-btn.bwc-btn--ghost {
	background: transparent !important; border-color: #004579 !important; color: #004579 !important;
}
#template section.bwc-hsplit a.bwc-btn:hover { background: #004579 !important; border-color: #004579 !important; color: #fff !important; }

/* Balanced headings, no one-word orphans */
.bwc-svc h1, .bwc-svc h2, .bwc-svc h3, #template h1.bwc-home-h1, #template section.bwc-hsplit h3 { text-wrap: balance; }

/* Why Bridge photo: square crop centered on the faces */
.bwc-why .bwc-split__media img { aspect-ratio: 1 / 1 !important; object-position: 60% 75% !important; }

/* Conditions: bolder, more color */
#template #life-changing_care_arthritis_list, #template #life-changing_care_arthritis_list * { opacity: 1 !important; filter: none !important; }
#template a.bwc-cond {
	background: #fff !important; border: 1px solid #d3e6ea !important; border-top: 0 !important;
	box-shadow: 0 10px 26px rgba(0,69,121,.10) !important; position: relative; overflow: hidden; padding-top: 30px !important;
}
#template a.bwc-cond:before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #23a8a3, #004579); }
#template .bwc-cond__icon { background: linear-gradient(135deg, #2cc3bb 0%, #23a8a3 45%, #004579 100%) !important; box-shadow: 0 10px 22px rgba(0,69,121,.25) !important; }
#template a.bwc-cond strong { color: #004579 !important; }
#template .bwc-cond__text { color: #3e4f5c !important; }
#template .bwc-cond__more { color: #1b8783 !important; }
#template a.bwc-cond:hover { background: #f3fbfa !important; }
/* no lonely last words in card text */
.bwc-hcard__body > span, .bwc-cond__text, .bwc-card p, .bwc-pillar p { text-wrap: pretty; }

/* Theme sets the wellness block text to white; force readable colors */
#template section.bwc-hsplit .bwc-eyebrow { color: #23a8a3 !important; }
#template section.bwc-hsplit, #template section.bwc-hsplit p, #template section.bwc-hsplit li { color: #24323d; }

/* Checklist: inline-safe layout (links inside items must flow with the text) */
#template .bwc-svc ul.bwc-checklist li, #template .bwc-post ul.bwc-checklist li {
	display: block !important;
	position: relative !important;
	padding: 0 0 0 34px !important;
	margin: 0 0 6px !important;
}
#template .bwc-svc ul.bwc-checklist li:before, #template .bwc-post ul.bwc-checklist li:before {
	position: absolute !important;
	left: 0 !important;
	top: 3px !important;
	margin: 0 !important;
}
#template .bwc-svc ul.bwc-checklist { gap: 10px 28px; }
