body p, body li, dt, body dd, body dl, body address, body label, body pre, body code {
    font-size: unset;
}

/* ==========================================================================
   Member Content — Styles
   ========================================================================== */

/* ------------------------------------
   Container
   ------------------------------------ */
.mc-container {
	padding: 2rem 1rem;
	margin: 0 auto;
}

/* ------------------------------------
   WYSIWYG resets
   ------------------------------------ */
.mc-wysiwyg > *:first-child {
	margin-top: 0;
}
.mc-wysiwyg > *:last-child {
	margin-bottom: 0;
}

/* ------------------------------------
   Notice (empty state)
   ------------------------------------ */
.mc-notice {
	background: #f7f7f7;
	border-left: 4px solid #f79234;
	padding: 1.25rem 1.5rem;
	margin: 1.5rem 0;
	border-radius: 0 4px 4px 0;
	color: #666;
	font-size: 0.95rem;
}
.mc-notice p {
	margin: 0;
}

/* ------------------------------------
   Section titles
   ------------------------------------ */
.mc-section {
	margin-bottom: 2.5rem;
}
.mc-section__title {
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
	color: #333;
}

/* ==========================================================================
   LANDING LAYOUT
   ========================================================================== */
.mc-before-grid,
.mc-after-grid {
	margin-bottom: 2rem;
}

/* Grid — 3 cols desktop, responsive down to 1 */
.mc-landing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}
@media (max-width: 768px) {
	.mc-landing-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 480px) {
	.mc-landing-grid {
		grid-template-columns: 1fr;
	}
}

/* Card */
.mc-landing-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	border-top: 3px solid transparent;
}
.mc-landing-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	border-top-color: #2cace2;
}

.mc-landing-card__image {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	overflow: hidden;
}
.mc-landing-card__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mc-landing-card__body {
	padding: 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.mc-landing-card__title {
	font-size: 1.05rem;
	margin: 0 0 0.5rem;
	line-height: 1.3;
	color: #333;
}
.mc-landing-card:hover .mc-landing-card__title {
	color: #2a6a9e;
}

.mc-landing-card__excerpt {
	font-size: 0.875rem;
	color: #666;
	margin: 0;
	line-height: 1.5;
}

/* Landing card icon — overlaid on image */
.mc-landing-card__image img.mc-landing-card__icon--overlay {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 60px;
	height: 60px;
	padding: 8px;
	background: #fff;
	object-fit: contain;
	border-radius: 4px;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
	z-index: 1;
}

/* Landing card icon — inline when no featured image */
.mc-landing-card__body-icon {
	padding: 1rem 1rem 0;
}
.mc-landing-card__icon--inline {
	width: 48px;
	height: 48px;
	object-fit: contain;
}


/* ==========================================================================
   EDUCATION LAYOUT — Resources
   ========================================================================== */
.mc-resources-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.mc-resource-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	border-top: 3px solid #3ab094;
}
.mc-resource-card * {
	font-size: 14px;
}

.mc-resource-card .mc-resource-card__title {
	font-size: 1.1rem;
	margin: 0 0 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #eee;
	color: #333;
}

.mc-resource-card__content {
	flex: 1;
	font-size: 0.95rem;
	line-height: 1.6;
}

.mc-resource-card__content ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mc-resource-card__content ul li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
}
.mc-resource-card__content ul li:last-child {
	border-bottom: none;
}
.mc-resource-card__content ul li a {
	color: #2a6a9e;
	text-decoration: none;
	transition: color 0.15s ease;
}
.mc-resource-card__content ul li a:hover {
	color: #1d4d73;
	text-decoration: underline;
}

/* ==========================================================================
   EDUCATION LAYOUT — Video Tabs / Accordion
   ========================================================================== */

/* Single video (no tabs) */
.mc-video-single .mc-section__title {
	margin-bottom: 1rem;
}

/* Tabs wrapper — desktop: left tabs + right content */
.mc-tabs-wrapper {
	display: flex;
	gap: 0;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	min-height: 360px;
}

/* Tab navigation — vertical sidebar on desktop */
.mc-tabs-nav {
	display: flex;
	flex-direction: column;
	flex: 0 0 30%;
	max-width: 30%;
	background: #f9f9f9;
	border-right: 1px solid #e5e5e5;
}

.mc-tab-btn {
	display: block;
	width: 100%;
	padding: 1rem 1.25rem;
	border: none;
	border-bottom: 1px solid #e5e5e5;
	background: transparent;
	text-align: left;
	font-size: 0.95rem;
	cursor: pointer;
	color: #555;
	transition: background 0.15s ease, color 0.15s ease;
}
.mc-tab-btn:last-child {
	border-bottom: none;
}
.mc-tab-btn:hover {
	background: #f0f0f0;
}
.mc-tab-btn.is-active {
	background: #fff;
	color: #111;
	font-weight: 600;
	border-right: 3px solid #2cace2;
	margin-right: -1px;
}

/* Tab content area */
.mc-tabs-content {
	flex: 1;
	min-width: 0;
}

/* Tab panels */
.mc-tab-panel {
	display: none;
	padding: 1.5rem;
	height: 100%;
}
.mc-tab-panel.is-active {
	display: block;
}

/* Accordion buttons — hidden on desktop */
.mc-accordion-btn {
	display: none;
}

/* Responsive video wrapper */
.mc-video-responsive {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: 4px;
}
.mc-video-responsive iframe,
.mc-video-responsive video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.mc-video-responsive--self {
	background: #000;
}

/* Tab / Accordion — Prev / Next navigation */
.mc-tab-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	gap: 1rem;
}
.mc-tab-nav__btn {
	background: none;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0.5rem 1.25rem;
	font-size: 0.9rem;
	color: #555;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.mc-tab-nav__btn:hover {
	border-color: #2cace2;
	color: #2a6a9e;
}
.mc-tab-nav__btn--next {
	margin-left: auto;
}
/* ------------------------------------
   Mobile: Accordion mode
   ------------------------------------ */
@media (max-width: 768px) {
	/* Hide desktop tab nav */
	.mc-tabs-nav {
		display: none;
	}

	.mc-tabs-wrapper {
		flex-direction: column;
		min-height: auto;
	}

	.mc-tabs-content {
		display: flex;
		flex-direction: column;
	}

	/* Show accordion buttons */
	.mc-accordion-btn {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 1rem 1.25rem;
		border: none;
		border-bottom: 1px solid #e5e5e5;
		background: #f9f9f9;
		text-align: left;
		font-size: 0.95rem;
		cursor: pointer;
		color: #555;
		transition: background 0.15s ease;
	}
	.mc-accordion-btn:hover {
		background: #f0f0f0;
	}
	.mc-accordion-btn.is-active {
		background: #fff;
		color: #111;
		font-weight: 600;
		border-left: 3px solid #2cace2;
	}

	.mc-accordion-icon {
		transition: transform 0.2s ease;
		flex-shrink: 0;
	}
	.mc-accordion-btn.is-active .mc-accordion-icon {
		transform: rotate(180deg);
	}

	.mc-tab-panel {
		padding: 1rem;
	}
}

/* ==========================================================================
   EDUCATION LAYOUT — Quiz
   ========================================================================== */
.mc-quiz-section {
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	border-top: 3px solid #c7db55;
}

/* ==========================================================================
   GENERAL LAYOUT
   ========================================================================== */
.mc-general-content {
	max-width: 1200px;
}

/* ==========================================================================
   Hero — Breadcrumb + Title + Featured Image
   ========================================================================== */
body.single-member-content {
	background: #fff !important;
}

.mc-hero {
	padding: 0;
	background: #f79233;
	overflow: visible;
	margin-bottom: 0;
}
.mc-hero.mc-hero--has-image {
	margin-bottom: 6rem;
}

.mc-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
	min-height: 135px;
}
.mc-hero.mc-hero--has-image .mc-hero__inner {
	min-height: 235px;
}

/* Text column */
.mc-hero__text {
	flex: 1;
	min-width: 0;
}

/* Breadcrumb */
.mc-breadcrumb {
	font-size: 0.85rem;
	margin-bottom: 0.75rem;
	color: #000;
}
.mc-breadcrumb a {
	color: #000;
	text-decoration: none;
	transition: color 0.15s ease;
}
.mc-breadcrumb a:hover {
	color: #000;
	text-decoration: underline;
}
.mc-breadcrumb__sep {
	display: inline-block;
	margin: 0 0.4rem;
	color: #ccc;
}
.mc-breadcrumb span:not(.mc-breadcrumb__sep) {
	opacity: 0.7;
}

/* Title */
.mc-hero__title {
	font-size: 2.25rem;
	line-height: 1.2;
	margin: 0;
	color: #000;
}

/* Media column */
.mc-hero__media {
	flex: 0 0 45%;
	max-width: 45%;
	margin-bottom: -6rem;
}
.mc-hero__image-wrap {
	position: relative;
}
.mc-hero__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.mc-hero__icon {
	position: absolute;
	bottom: -20px;
	left: -20px;
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	padding: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {

	.mc-hero.mc-hero--has-image {
		margin-bottom: 2rem;
	}
	.mc-hero__inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.mc-hero__media {
		flex: none;
		max-width: 100%;
		width: 100%;
		margin-bottom: -2rem;
	}
	.mc-hero__title {
		font-size: 1.75rem;
	}
	.mc-hero__icon {
		width: 56px;
		height: 56px;
		bottom: -14px;
		left: -10px;
	}
}

/* ==========================================================================
   PROGRAM LAYOUT
   ========================================================================== */

/* Introduction — left border accent */
.mc-program-intro {
	margin-bottom: 2rem;
	font-size: 1.1rem;
	line-height: 1.6;
	color: #444;
	border-left: 4px solid #2cace2;
	padding: 1rem 1.25rem;
	background: #f9fbfc;
	border-radius: 0 4px 4px 0;
}
.mc-program-intro p {
	margin: 0;
}

/* Body — clearfix for float */
.mc-program-body {
	margin-bottom: 2.5rem;
}
.mc-program-body::after {
	content: "";
	display: table;
	clear: both;
}

/* Floated aside: callout + image side by side */
.mc-program-aside {
	float: right;
	width: 50%;
	display: flex;
	margin: 0 0 1.5rem 2rem;
	gap: 0;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	border-top: 3px solid #2cace2;
}

/* Callout box */
.mc-callout-box {
	flex: 1;
	background: #fff;
	padding: 1.25rem;
}
.mc-callout-box--with-image {
	border-radius: 0;
}
.mc-callout-box__title {
	font-size: 1.125rem !important;
	font-weight: 700;
	margin: 0 0 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #eee;
	color: #333;
}
.mc-callout-box__content {
	font-size: 0.9rem;
	line-height: 1.5;
	color: #444;
}
.mc-callout-box__content ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mc-callout-box__content ul li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
	font-weight: 600;
	color: #333;
}
.mc-callout-box__content ul li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.mc-callout-box__content a {
	color: #2a6a9e;
	text-decoration: underline;
}
.mc-callout-box__content p {
	margin: 0 0 0.75rem;
}
.mc-callout-box__content > *:last-child {
	margin-bottom: 0;
}

/* Accent image — sits beside callout */
.mc-program-aside__image {
	flex: 0 0 45%;
	min-height: 100%;
}
.mc-program-aside__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Image only, no callout */
.mc-program-aside__image--solo {
	flex: 1;
	border-radius: 6px;
	overflow: hidden;
}

/* Left: details — text wraps around the float */
.mc-program-details {
	line-height: 1.7;
}

/* Form section */
.mc-program-form {
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	border-top: 3px solid #f79234;
}

/* After form */
.mc-program-after-form {
	padding-top: 1rem;
}

.mc-program-form .gform_wrapper.gravity-theme input[type=color],
.mc-program-form .gform_wrapper.gravity-theme input[type=date],
.mc-program-form .gform_wrapper.gravity-theme input[type=datetime-local],
.mc-program-form .gform_wrapper.gravity-theme input[type=datetime],
.mc-program-form .gform_wrapper.gravity-theme input[type=email],
.mc-program-form .gform_wrapper.gravity-theme input[type=month],
.mc-program-form .gform_wrapper.gravity-theme input[type=number],
.mc-program-form .gform_wrapper.gravity-theme input[type=password],
.mc-program-form .gform_wrapper.gravity-theme input[type=search],
.mc-program-form .gform_wrapper.gravity-theme input[type=tel],
.mc-program-form .gform_wrapper.gravity-theme input[type=text],
.mc-program-form .gform_wrapper.gravity-theme input[type=time],
.mc-program-form .gform_wrapper.gravity-theme input[type=url],
.mc-program-form .gform_wrapper.gravity-theme input[type=week],
.mc-program-form .gform_wrapper.gravity-theme select,
.mc-program-form .gform_wrapper.gravity-theme textarea {
    font-size: 16px;
    border: 1px solid #DDD;
}
.gform_wrapper.gravity-theme .field_description_below .gfield_consent_description, .gform_wrapper.gravity-theme .gfield_consent_description {
    font-size: 14px;
}

.gfield_consent_description *:first-child {
    margin-top: 0;
}

.gform_wrapper.gravity-theme .gfield_consent_description ul {
    list-style: auto;
    padding-left: 32px;
}

	.mc-program-form .gform_wrapper.gravity-theme .ginput_container_consent {
		display: flex;
		align-items: flex-start;
		gap: 0.75rem;
		background: #f9fbfc;
		border: 1px solid #e5e5e5;
		border-left: 3px solid #f79234;
		border-radius: 0 4px 4px 0;
		padding: 1rem 1.25rem;
	}

	/* Custom checkbox */
	.mc-program-form .gform_wrapper.gravity-theme .ginput_container_consent input[type="checkbox"] {
		-webkit-appearance: none;
		appearance: none;
		width: 22px;
		height: 22px;
		min-width: 22px;
		border: 2px solid #bbb;
		border-radius: 3px;
		background: #fff;
		cursor: pointer;
		position: relative;
		margin-top: 0.1rem;
		transition: all 0.15s ease;
	}
	.mc-program-form .gform_wrapper.gravity-theme .ginput_container_consent input[type="checkbox"]:checked {
		background: #2a6a9e;
		border-color: #2a6a9e;
	}
	.mc-program-form .gform_wrapper.gravity-theme .ginput_container_consent input[type="checkbox"]:checked::after {
		content: "✓";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
		font-size: 0.75rem;
		font-weight: 700;
	}

	/* Consent label */
	.mc-program-form .gform_wrapper.gravity-theme .ginput_container_consent .gfield_consent_label {
		font-size: 0.9rem;
		font-weight: 600;
		color: #333;
		line-height: 1.5;
		cursor: pointer;
		margin: 0;
	}



/* Responsive */
@media (max-width: 768px) {
	.mc-program-aside {
		float: none;
		width: 100%;
		margin: 0 0 1.5rem 0;
	}
	.mc-program-aside__image {
		flex: 0 0 40%;
	}
}
@media (max-width: 480px) {
	.mc-program-aside {
		flex-direction: column;
	}
	.mc-program-aside__image {
		flex: none;
		max-height: 200px;
	}
}

/* ==========================================================================
   Member Content — Section Navigation
   ========================================================================== */
.mc-section-nav {
	background: #222;
}
.mc-section-nav__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding-top: 0;
	padding-bottom: 0;
}
.mc-section-nav__link {
	display: block;
	padding: 0.75rem 1.25rem;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	border-bottom: 3px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.mc-section-nav__link:hover {
	color: #fff;
	border-bottom-color: rgba(247, 146, 51, 0.5);
}
.mc-section-nav__link.is-active {
	color: #000;
	background: #f79233;
	border-bottom-color: #f79233;
}

/* Responsive */
@media (max-width: 768px) {
	.mc-section-nav__inner {
		justify-content: space-between;
	}
	.mc-section-nav__link {
		white-space: nowrap;
		flex-shrink: 0;
	}
}


/* ==========================================================================
   Gravity Forms — Quiz Styling Overrides
   ========================================================================== */

/* Question spacing */
.mc-quiz-section .gform_wrapper.gravity-theme .gfield:not(:last-child) {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #eee;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gfield:last-of-type {
	border-bottom: none;
}

/* Question label */
.mc-quiz-section .gform_wrapper.gravity-theme .gfield_label,
.mc-quiz-section .gform_wrapper.gravity-theme legend.gfield_label {
	font-size: 1.05rem;
	font-weight: 700;
	color: #333;
	display: block;
	width: 100%;
	float: none;
	padding: 0 0 0.5rem;
	margin-bottom: 0;
	line-height: 1.4;
}

/* Required text */
.mc-quiz-section .gform_wrapper.gravity-theme .gfield_required {
	color: #999;
	font-size: 0.8rem;
}

/* Radio options */
.mc-quiz-section .gform_wrapper.gravity-theme .gfield_radio {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0.25rem 0 0;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gfield_radio .gchoice {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0;
}

/* Custom radio styling */
.mc-quiz-section .gform_wrapper.gravity-theme .gfield_radio .gfield-choice-input {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid #bbb;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	transition: border-color 0.15s ease;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gfield_radio .gfield-choice-input:checked {
	border-color: #2a6a9e;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gfield_radio .gfield-choice-input:checked::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 8px;
	height: 8px;
	background: #2a6a9e;
	border-radius: 50%;
}

/* Answer labels */
.mc-quiz-section .gform_wrapper.gravity-theme .gfield_radio .gchoice label {
	font-size: 0.95rem;
	color: #333;
	font-weight: 500;
	cursor: pointer;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gfield_radio .gchoice label.gquiz-correct-choice {
	color: #1a7a3a;
	font-weight: 700;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gfield_radio .gchoice label.gquiz-incorrect-choice {
	color: #c02b0a;
	font-weight: 700;
}

/* Answer indicator icons */
.mc-quiz-section .gform_wrapper.gravity-theme .gquiz-indicator {
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-left: 0.25rem;
}

/* Explanation — speech bubble with arrow pointing up */
.mc-quiz-section .gform_wrapper.gravity-theme .gquiz-answer-explanation {
	position: relative;
	background: #f5f5f5;
	border-radius: 4px;
	padding: 1rem 1.25rem;
	margin-top: 1.25rem;
	font-size: 0.85rem;
	line-height: 1.6;
	color: #555;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gquiz-answer-explanation::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 24px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #f5f5f5;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gquiz-answer-explanation b {
	display: block;
	margin-bottom: 0.35rem;
	color: #333;
	font-size: 0.9rem;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gquiz-answer-explanation p {
	margin: 0.35rem 0 0;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gquiz-answer-explanation p:last-child {
	margin-bottom: 0;
}

/* Submit button */
.mc-quiz-section .gform_wrapper.gravity-theme .gform_footer {
	padding-top: 1.5rem;
	margin-top: 0;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gform_footer input[type="submit"],
.mc-quiz-section .gform_wrapper.gravity-theme .gform_footer .gform_button {
	background: #f79234;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.75rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.mc-quiz-section .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:hover,
.mc-quiz-section .gform_wrapper.gravity-theme .gform_footer .gform_button:hover {
	background: #e07d1e;
}

/* Program form buttons */
.mc-program-form .gform_wrapper.gravity-theme .gform_footer input[type="submit"],
.mc-program-form .gform_wrapper.gravity-theme .gform_footer .gform_button {
	background: #f79234;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.75rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.mc-program-form .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:hover,
.mc-program-form .gform_wrapper.gravity-theme .gform_footer .gform_button:hover {
	background: #e07d1e;
}

/* ==========================================================================
   Gravity Forms — Quiz Results Styling
   ========================================================================== */

/* Results container */
.mc-quiz-section .gquiz-container {
	padding: 0;
}

/* Each result question */
.mc-quiz-section .gquiz-field {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #eee;
}
.mc-quiz-section .gquiz-field:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Remove the trailing <br> gravity forms adds */
.mc-quiz-section .gquiz-field br:last-child {
	display: none;
}

/* Question label */
.mc-quiz-section .gquiz-field-label {
	font-size: 1.05rem;
	font-weight: 700;
	color: #333;
	line-height: 1.4;
	margin-bottom: 0.5rem;
}

/* Answer list */
.mc-quiz-section .gquiz-field-choice ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.mc-quiz-section .gquiz-field-choice ul li {
	padding: 0.35rem 0;
	font-size: 0.95rem;
	color: #666;
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

/* Correct answer text */
.mc-quiz-section .gquiz-field-choice ul li.gquiz-correct-choice {
	color: #333;
	font-weight: 600;
}

/* User got it right */
.mc-quiz-section .gquiz-field-choice ul li.gquiz-correct-response {
	color: #1a7a3a;
	font-weight: 700;
}

/* User got it wrong */
.mc-quiz-section .gquiz-field-choice ul li.gquiz-incorrect-response {
	color: #c02b0a;
	font-weight: 700;
}

/* Check / X icons */
.mc-quiz-section .gquiz-field-choice ul li img {
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

/* Explanation — same speech bubble as the form version */
.mc-quiz-section .gquiz-answer-explanation {
	position: relative;
	background: #f5f5f5;
	border-radius: 4px;
	padding: 1rem 1.25rem;
	margin-top: 1.25rem;
	font-size: 0.85rem;
	line-height: 1.6;
	color: #555;
}
.mc-quiz-section .gquiz-answer-explanation::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 24px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #f5f5f5;
}
.mc-quiz-section .gquiz-answer-explanation b {
	display: block;
	margin-bottom: 0.35rem;
	color: #333;
	font-size: 0.9rem;
}
.mc-quiz-section .gquiz-answer-explanation p {
	margin: 0.35rem 0 0;
}
.mc-quiz-section .gquiz-answer-explanation p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Frailty Report – AVOID Framework
   ========================================================================== */

/* ---------- Brand accent colors (borders/accents only) ---------- */
:root {
    --fr-color-A: #c7db55;  /* Activity – green */
    --fr-color-V: #2cace2;  /* Vaccinate – blue */
    --fr-color-O: #f79234;  /* Optimize – orange */
    --fr-color-I: #3ab094;  /* Interact – teal */
    --fr-color-D: #4b8ecc;  /* Diet – blue */
    --fr-color-S: #4e6c8d;  /* Other – blue-gray */

    /* Resource icon colors – darker shades for legibility */
    --fr-icon-education: #2e7d32;   /* dark green */
    --fr-icon-programs:  #1565c0;   /* dark blue */
    --fr-icon-community: #b71c1c;   /* dark red */
}

/* ---------- Legend (key strip) ---------- */
.frailty-report__legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.65rem 1rem;
}

.frailty-report__legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1rem;
    color: #333;
}

.frailty-report__legend-item .frailty-report__type-icon {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}

/* Color-coded legend icons */
.frailty-report__legend-item--education  .frailty-report__type-icon { fill: var(--fr-icon-education); }
.frailty-report__legend-item--programs   .frailty-report__type-icon { fill: var(--fr-icon-programs); }
.frailty-report__legend-item--community  .frailty-report__type-icon { fill: var(--fr-icon-community); }

/* ---------- Section (one per AVOID group) ---------- */
.frailty-report__section {
    margin-bottom: 1rem;
}

.frailty-report__section + .frailty-report__section {
    margin-top: 2.5rem;
}

/* ---------- Section header ---------- */
.frailty-report__section-header {
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #ddd;
}

/* Colored border per group */
.frailty-report__section--A .frailty-report__section-header { border-bottom-color: var(--fr-color-A); }
.frailty-report__section--V .frailty-report__section-header { border-bottom-color: var(--fr-color-V); }
.frailty-report__section--O .frailty-report__section-header { border-bottom-color: var(--fr-color-O); }
.frailty-report__section--I .frailty-report__section-header { border-bottom-color: var(--fr-color-I); }
.frailty-report__section--D .frailty-report__section-header { border-bottom-color: var(--fr-color-D); }
.frailty-report__section--S .frailty-report__section-header { border-bottom-color: var(--fr-color-S); }

/* ---------- AVOID Badge (colored circle with white letter) ---------- */
.frailty-report__avoid-badge {
	width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
    line-height: 1;
}

.frailty-report__avoid-badge--A { background-color: var(--fr-color-A); }
.frailty-report__avoid-badge--V { background-color: var(--fr-color-V); }
.frailty-report__avoid-badge--O { background-color: var(--fr-color-O); }
.frailty-report__avoid-badge--I { background-color: var(--fr-color-I); }
.frailty-report__avoid-badge--D { background-color: var(--fr-color-D); }
.frailty-report__avoid-badge--S { background-color: var(--fr-color-S); }

/* ---------- Section title ---------- */
.frailty-report__section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.2;
}

/* ---------- Item (one per category) ---------- */
.frailty-report__item {
    position: relative;
    padding: 20px 20px 20px 50px;
	min-height: 100px;
}

/* Zebra striping – odd items get subtle gray background */
.frailty-report__item:nth-child(odd) {
    background: #f7f7f7;
}

/* ---------- Item icon – large, absolute-positioned on left edge ---------- */
.frailty-report__item-icon {
    position: absolute;
    left: 0;
    top: 20px;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 1250px) {
    .frailty-report__item-icon {
    transform: none;
    left: 20px;
    }
    .frailty-report__item {
    padding-left: 100px;
    }
}

/* ---------- Item header (label row) ---------- */
.frailty-report__item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.frailty-report__item-label {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
}

/* ---------- Item body ---------- */

/* Passed items: pass message inline with header on desktop */
.frailty-report__item--passed {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 1rem;
}

.frailty-report__item--passed .frailty-report__item-body {
    display: flex;
    align-items: center;
}

/* Failed items: resources below header, full width */
.frailty-report__item--failed .frailty-report__item-body {
    margin-top: 0.5rem;
}

/* ---------- Pass message ---------- */
.frailty-report__pass-message {
    margin: 0;
    font-style: italic;
    font-size: 1rem;
    color: #555;
}

/* ---------- Resources (3-column grid, fixed positions) ---------- */
.frailty-report__resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Empty resource columns still occupy grid space */
.frailty-report__resource--empty {
    min-height: 1px;
}

/* ---------- Single resource column ---------- */
.frailty-report__resource {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.frailty-report__resource-icon {
    flex-shrink: 0;
    line-height: 0;
    padding-top: 0;
}

.frailty-report__resource-icon .frailty-report__type-icon {
    width: 1.1em;
    height: 1.1em;
}

/* Color-coded resource icons */
.frailty-report__resource--education  .frailty-report__type-icon { fill: var(--fr-icon-education); }
.frailty-report__resource--programs   .frailty-report__type-icon { fill: var(--fr-icon-programs); }
.frailty-report__resource--community  .frailty-report__type-icon { fill: var(--fr-icon-community); }

.frailty-report__resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 1rem;
}

.frailty-report__resource-links a {
    color: #1a5c8a;
    text-decoration: none;
}

.frailty-report__resource-links a:hover,
.frailty-report__resource-links a:focus {
    text-decoration: underline;
    color: #0e3d5c;
}

/* ---------- Responsive ---------- */

/* Tablet: resources to 2 columns */
@media (max-width: 768px) {
    .frailty-report__resources {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Mobile: stack everything */
@media (max-width: 480px) {
    .frailty-report__item {
        padding-left: 3rem;
    }

    .frailty-report__item-icon {
        width: 40px;
        height: 40px;
        left: -4px;
    }

    .frailty-report__item--passed {
        display: block;
    }

    .frailty-report__item--passed .frailty-report__item-body {
        margin-top: 0.25rem;
    }

    .frailty-report__resources {
        grid-template-columns: 1fr;
    }

    .frailty-report__legend {
        gap: 1rem;
    }
}

/* ==========================================================================
   Member Events Shortcode — CSS
   ========================================================================== */

/* --- Event Block --- */
.member-event:not(:last-child) {
	margin-bottom: 2.5rem;
	padding-bottom: 2.5rem;
	border-bottom: 2px solid #f79233;
}

.member-event__title {
	margin-bottom: 0.5rem;
}

.member-event__details {
	margin-bottom: 1rem;
}

/* --- Registration Notice --- */
.member-event__registration {
	background: #f5f5f5;
	border-left: 4px solid #0073aa;
	padding: 0.75rem 1rem;
	margin-bottom: 1.5rem;
	font-size: 1rem;
}

.member-event__registration p {
	margin: 0;
}

/* --- Schedule Grid (replaces <table>) --- */
.member-event__schedule {
	margin-top: 1rem;
}

.member-event__schedule-header {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
	font-weight: 700;
	border-bottom: 2px solid currentColor;
	padding-bottom: 0.5rem;
	margin-bottom: 0.25rem;
}

.member-event__schedule-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #ddd;
}

.member-event__schedule-col {
	display: flex;
	flex-direction: column;
	font-size: 1rem;
}

/* Day & Time stacked */
.member-event__day {
	font-weight: 600;
}

.member-event__time {
	font-size: 1rem;
}

/* Location stacked */
.member-event__town {
	font-weight: 600;
}

.member-event__location,
.member-event__address {
	font-size: 1rem;
}

/* --- Responsive: stack columns on narrow screens --- */
@media (max-width: 600px) {
	.member-event__schedule-header {
		display: none;
	}

	.member-event__schedule-row {
		grid-template-columns: 1fr;
		gap: 0.5rem;
		padding: 1rem 0;
	}

	.member-event__schedule-col::before {
		content: attr(data-label);
		font-weight: 700;
		margin-bottom: 0.125rem;
	}
}

.member-event__schedule-row:last-child {
    border-bottom: 0;
}

/* --- View Details Button (simple mode) --- */
.member-event__button {
	display: inline-block;
	padding: 0.625rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	background: #0073aa;
	color: #fff;
	transition: background 0.2s ease;
}

.member-event__button:hover,
.member-event__button:focus {
	background: #005a87;
	color: #fff;
}

/* =================================
   PROFILE LAYOUT
   ================================= */

/* --- Assessment shortcode --- */
.mc-profile-assessment {
	margin-bottom: 2rem;
}

/* --- Two-column layout --- */
.mc-profile-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.mc-profile-columns__left,
.mc-profile-columns__right {
	min-width: 0;
}

/* --- Divider --- */
.mc-divider {
	border: none;
	border-top: 5px dashed #ddd;
	margin: 5rem 0;
}

/* --- Resources grid (within left column) --- */
.mc-profile-columns .mc-resources-grid {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* --- Member info --- */
.mc-profile-info__title {
	margin-bottom: 1rem;
}

.mc-profile-info__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mc-profile-info__list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
}

.mc-profile-info__list li:last-child {
	border-bottom: none;
}

/* --- Form section within profile --- */
.mc-profile-form {
	margin: 0;
}

/* --- Responsive: stack columns on mobile --- */
@media (max-width: 768px) {
	.mc-profile-columns {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

.mc-profile-columns .cfn-registration-form_wrapper.gform_wrapper.gravity-theme {
    margin: 0;
}