/* =========================================================
   Fresh Start Team – Team page cards + single member page
   (defaults match the Figma design; Elementor Style tab overrides)
   ========================================================= */
.fstm, .fstm-g {
	--fstm-orange: #f16723;
	--fstm-green: #9ecc4e;
	--fstm-green-dark: #7fae2f;
	--fstm-text: #4c4c4c;
	--fstm-line: #ececec;
	--fstm-serif: "Lora", Georgia, "Times New Roman", serif;
	font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--fstm-text);
}
.fstm *, .fstm-g *, .fstm *::before, .fstm-g *::before { box-sizing: border-box; }
.fstm img, .fstm-g img { max-width: 100%; height: auto; }
.fstm-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.fstm.fstm-w { background: transparent; }

/* ---------- Team grid / cards ---------- */
.fstm-g__body { position: relative; }
.fstm-g__grid { --fstm-cols: 3; display: grid; grid-template-columns: repeat(var(--fstm-cols), minmax(0, 1fr)); column-gap: 26px; row-gap: 30px; transition: opacity .2s ease; }
.fstm-g.is-loading .fstm-g__grid { opacity: .45; }
.fstm-g__empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; }
.fstm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); transition: transform .25s ease, box-shadow .25s ease; }
.fstm-card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .08); }
.fstm-card__img { position: relative; display: block; aspect-ratio: 1 / 0.87; overflow: hidden; background: #eee; }
.fstm-g .fstm-card__img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover; object-position: center 25%; display: block; border-radius: 0; transition: transform .4s ease; }
.fstm-card:hover .fstm-card__img img { transform: scale(1.03); }
.fstm-card__body { flex: 1; display: flex; flex-direction: column; padding: 18px 18px 0; }
.fstm-g .fstm-card__name { font-family: "Mulish", sans-serif; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--fstm-text); margin: 0 0 8px; }
.fstm-g .fstm-card__name a { color: inherit; text-decoration: none; }
.fstm-g .fstm-card__name a:hover { color: var(--fstm-orange); }
.fstm-card__role { font-size: 13px; line-height: 1.5; color: var(--fstm-orange); margin: 0 0 14px; text-transform: capitalize; }
.fstm-card__bio { font-size: 13px; line-height: 1.75; margin: 0 0 18px; color: var(--fstm-text); }
.fstm-card__exp { margin: auto 0 14px; font-size: 13px; color: var(--fstm-text); }
.fstm-card__exp strong { font-weight: 700; }
.fstm-g .fstm-card__link { display: block; margin: 0 -18px; padding: 14px 18px 16px; border-top: 1px solid var(--fstm-line); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--fstm-green); text-decoration: none; transition: color .2s ease; }
.fstm-g .fstm-card__link:hover { color: var(--fstm-green-dark); }

/* Loader + pagination */
.fstm-g__loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 0; }
.fstm-g__loader[hidden] { display: none !important; }
.fstm-g__loader--overlay { position: absolute; inset: 0; z-index: 5; justify-content: flex-start; padding-top: min(160px, 20%); background: rgba(255, 255, 255, .55); }
.fstm-g__loader.is-inline { position: static; background: transparent; padding: 24px 0; }
.fstm-g__loader img { width: 48px; height: auto; }
.fstm-g__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.fstm-g .fstm-g__pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid #e6e6e6; border-radius: 6px; background: #fff; color: var(--fstm-text); font-size: 14px; font-weight: 600; text-decoration: none; transition: .2s ease; }
.fstm-g .fstm-g__pages .prev, .fstm-g .fstm-g__pages .next { padding: 0 16px; }
.fstm-g .fstm-g__pages a.page-numbers:hover, .fstm-g .fstm-g__pages .current { background: var(--fstm-orange); border-color: var(--fstm-orange); color: #fff; }
.fstm-g .fstm-g__pages .dots { border-color: transparent; background: transparent; min-width: 20px; }
.fstm-g .fstm-g__pages .is-disabled { opacity: .45; }
.fstm-g__more-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.fstm-g .fstm-g__more { padding: 14px 32px; border: 2px solid var(--fstm-orange); border-radius: 6px; background: var(--fstm-orange); color: #fff; font: 700 13px/1.2 "Mulish", sans-serif; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.fstm-g .fstm-g__more:hover { background: #d9561a; border-color: #d9561a; }
.fstm-g .fstm-g__more[hidden], .fstm-g__more--infinite { display: none !important; }
.fstm-g__no-more { width: 100%; text-align: center; margin: 0; font-size: 13px; color: #8a8a8a; }
.fstm-g__sentinel { display: block; height: 1px; }

/* ---------- Single member ---------- */
.fstm-hero { background: linear-gradient(180deg, #f8fcee 0%, #fdfefa 100%); padding: 40px 0 60px; }
.fstm-hero__grid { display: grid; grid-template-columns: minmax(0, var(--fstm-media-w, 40%)) minmax(0, 1fr); gap: 50px; align-items: start; }
.fstm .fstm-hero__media img { display: block; width: 100%; aspect-ratio: 1 / 0.97; object-fit: cover; object-position: center 25%; border-radius: 14px; }
.fstm-hero__text { padding-top: 28px; }
.fstm-bc { font-size: 11.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fstm-green); margin: 0 0 12px; }
.fstm .fstm-bc a, .fstm-bc span { color: var(--fstm-green); text-decoration: none; margin-right: 3px; }
.fstm .fstm-bc a:hover { color: var(--fstm-green-dark); }
.fstm .fstm-hero__name { font-family: var(--fstm-serif); font-weight: 400; font-size: 46px; line-height: 1.2; color: var(--fstm-text); margin: 0 0 18px; }
.fstm-hero__role { font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--fstm-orange); margin: 0 0 16px; }
.fstm-hero__exp { font-size: 13px; margin: 0 0 24px; }
.fstm-hero__exp strong { font-weight: 700; }
.fstm .fstm-quote { position: relative; margin: 0; padding: 18px 20px; background: #f8f8f8; border: 1px solid #ededed; border-radius: 8px; font-family: "Mulish", sans-serif; font-weight: 400; font-style: normal; quotes: none; box-shadow: none; }
.fstm .fstm-quote::before, .fstm .fstm-quote::after { content: none !important; display: none !important; }
.fstm .fstm-quote p { margin: 0 0 10px; padding: 0; font-family: "Mulish", sans-serif; font-size: 13px; font-weight: 400; font-style: italic; line-height: 1.7; letter-spacing: 0; color: var(--fstm-text); }
.fstm .fstm-quote cite { display: block; margin: 0; font-family: "Mulish", sans-serif; font-size: 13px; font-style: normal; font-weight: 600; color: var(--fstm-orange); }

.fstm-content { padding: 60px 0 70px; background: #fff; }
.fstm-content__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.fstm .fstm-about__title { font-family: var(--fstm-serif); font-weight: 400; font-size: 34px; line-height: 1.2; color: var(--fstm-text); margin: 0 0 22px; }
.fstm-about__text { font-size: 13.5px; line-height: 1.75; }
.fstm-about__text p { margin: 0 0 14px; }
.fstm-about__text a { color: var(--fstm-orange); }
.fstm-qual { background: #fff; border: 1px solid #ededed; border-radius: 10px; padding: 22px 22px 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, .03); }
.fstm .fstm-qual__title { font-family: "Mulish", sans-serif; font-size: 17px; font-weight: 500; color: var(--fstm-text); margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid var(--fstm-line); }
.fstm-qual__list { list-style: none; margin: 0; padding: 0; }
.fstm-qual__list li { position: relative; padding: 0 0 14px 26px; font-size: 13px; line-height: 1.65; }
.fstm-qual__list li:last-child { padding-bottom: 0; }
.fstm-qual__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #f7a37a; color: var(--fstm-orange); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f16723' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/10px no-repeat; }

.fstm-el-empty { padding: 18px; margin: 10px 0; border: 1px dashed #c9c9c9; border-radius: 6px; background: #fafafa; color: #777; font: 13px/1.5 sans-serif; text-align: center; }

/* Full width when the theme boxes the content */
body.fstm-page { overflow-x: clip; }
body.fstm-el-page .fstm-el > .elementor > .elementor-section,
body.fstm-el-page .fstm-el > .elementor > .e-con,
body.fstm-page .fstm-single > section,
.elementor-section.fstm-fullwidth, .e-con.fstm-fullwidth {
	width: 100vw !important; max-width: 100vw !important; left: auto !important;
	margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
}
body:has(.fstm-fullwidth) { overflow-x: clip; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.fstm-g__grid { --fstm-cols: 2; }
	.fstm .fstm-hero__name { font-size: 38px; }
	.fstm-hero__grid, .fstm-content__grid { gap: 32px; }
}
@media (max-width: 767px) {
	.fstm-wrap { padding: 0 16px; }
	.fstm-g__grid { --fstm-cols: 1; }
	.fstm-hero { padding: 24px 0 40px; }
	.fstm-hero__grid, .fstm-content__grid { grid-template-columns: 1fr; }
	.fstm-hero__text { padding-top: 0; }
	.fstm .fstm-hero__name { font-size: 32px; }
	.fstm-content { padding: 40px 0 50px; }
	.fstm .fstm-about__title { font-size: 28px; }
}
