/* EM Trust & Reviews. Brand: slate #404E54, orange #F07D00, Lato / Open Sans (from the theme). */
.em-trust, .em-reviews, .em-all-reviews, .em-kind {
	--em-slate: #404E54;
	--em-ink: #333;
	--em-orange: #F07D00;
	--em-line: #E3E6E7;
	--em-muted: #6B777C;
	color: var(--em-slate);
}

/* ---------- Trust band ---------- */
.em-trust { padding: 8px 0; }
.em-eyebrow { text-align: center; text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 700; color: var(--em-orange); margin: 0 0 26px; font-family: Lato, sans-serif; }
.em-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.em-logo { display: block; width: auto !important; max-width: none; opacity: .85; transition: opacity .2s; }
.em-logo:hover { opacity: 1; }
.em-logo--bristol { height: 46px !important; }
.em-logo--brookes { height: 50px !important; }
.em-logo--westminster { height: 38px !important; }
.em-logo--ec { height: 36px !important; }
.em-logo--masterplan { height: 58px !important; }
.em-creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--em-line); }
.em-cred { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--em-line); border-radius: 10px; padding: 12px 20px 12px 12px; text-decoration: none !important; color: var(--em-slate) !important; }
.em-cred:hover { border-color: #cfd5d7; }
.em-cred small { display: block; font-size: 12px; color: var(--em-muted); letter-spacing: .3px; }
.em-cred strong { display: block; font-family: Lato, sans-serif; font-size: 16px; line-height: 1.3; }
.em-cred__book { height: 64px !important; width: auto !important; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.em-cred__g svg { width: 40px; height: 40px; display: block; }
.em-rating { display: flex; align-items: center; gap: 8px; }
.em-rating b { font-family: Lato, sans-serif; font-size: 22px; }
.em-stars { color: #FBBC04; letter-spacing: 1px; font-size: 16px; line-height: 1; }

/* ---------- Hero trust line ---------- */
.em-hero-trust { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 16px 9px 10px; border-radius: 40px; background: rgba(0,0,0,.38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff !important; text-decoration: none !important; font-family: Lato, sans-serif; font-size: 15px; line-height: 1; transition: background-color .2s; }
.em-hero-trust:hover { background: rgba(0,0,0,.55); }
.em-hero-trust__g { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.em-hero-trust__g svg { width: 18px; height: 18px; display: block; }
.em-hero-trust b { font-size: 17px; font-weight: 700; }
.em-hero-trust .em-stars { font-size: 16px; }
.em-hero-trust__count { opacity: .92; }
@media (max-width: 400px) { .em-hero-trust { font-size: 13px; gap: 6px; } .em-hero-trust .em-stars { font-size: 14px; } }

/* ---------- Cards (slider and full page) ---------- */
.em-card { background: #fff; border: 1px solid var(--em-line); border-radius: 12px; padding: 22px; box-shadow: 0 2px 10px rgba(64,78,84,.06); display: flex !important; flex-direction: column; gap: 14px; text-align: left; }
.em-who { display: flex; align-items: center; gap: 12px; }
.em-card .em-avatar { width: 48px !important; height: 48px !important; min-width: 48px; max-width: 48px !important; aspect-ratio: 1 / 1; border-radius: 100% !important; overflow: hidden; object-fit: cover !important; flex: 0 0 48px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.em-card .em-avatar--initials { display: grid; place-items: center; background: var(--em-slate); color: #fff; font-family: Lato, sans-serif; font-weight: 700; font-size: 17px; }
.em-name { font-family: Lato, sans-serif; font-weight: 700; font-size: 16px; color: var(--em-ink); line-height: 1.3; }
.em-org { font-size: 13px; color: var(--em-muted); }
.em-src { font-size: 12px; color: var(--em-muted); display: flex; align-items: center; gap: 5px; }
.em-src svg { width: 14px; height: 14px; }
.em-quote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--em-ink); }
.em-quote p { margin: 0 0 10px; }
.em-more { color: var(--em-orange) !important; font-weight: 600; white-space: nowrap; text-decoration: none !important; }

/* ---------- Slider ---------- */
.em-reviews__title { text-align: center; margin: 0 0 18px; }
.em-threads { text-align: center; margin: 0 auto 30px; max-width: 900px; }
.em-threads__label { font-family: Lato, sans-serif; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--em-orange); font-weight: 700; margin: 0 0 12px; }
.em-threads__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.em-threads__list li { margin: 0; padding: 7px 14px; border-radius: 40px; background: #F4F5F5; border: 1px solid var(--em-line); font-size: 14px; color: var(--em-slate); line-height: 1.3; }
.em-slider { position: relative; padding: 0 64px; }
.em-slider .slick-track { display: flex !important; }
.em-slider .slick-slide { height: inherit !important; margin: 0 12px; }
.em-slider .slick-list { margin: 0 -12px; padding: 4px 0 8px; }
.em-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--em-slate); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; cursor: pointer; box-shadow: 0 2px 8px rgba(64,78,84,.25); transition: background-color .2s, transform .2s; line-height: 0; }
.em-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.em-arrow:hover, .em-arrow:focus-visible { background: var(--em-orange); color: #fff; outline: none; }
.em-arrow:focus-visible { box-shadow: 0 0 0 3px rgba(240,125,0,.35); }
.em-arrow:active { transform: translateY(-50%) scale(.94); }
.em-arrow--prev { left: 0; }
.em-arrow--next { right: 0; }
.em-slider .slick-dots { display: flex !important; justify-content: center; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.em-slider .slick-dots li { margin: 0; }
.em-slider .slick-dots button { font-size: 0; width: 9px; height: 9px; border-radius: 50%; border: 0; background: #cfd5d7; padding: 0; cursor: pointer; }
.em-slider .slick-dots .slick-active button { background: var(--em-orange); }
.em-all { text-align: center; margin-top: 24px; }
.em-btn { display: inline-block; background: #F07D00; color: #fff !important; font-family: Lato, sans-serif; font-size: 17px; padding: 13px 28px; border-radius: var(--em-radius, 6px); text-decoration: none !important; }
.em-btn:hover { background: #d96f00; }

/* Before Slick loads, show the first card only, so the page does not jump. */
.em-slider:not(.slick-initialized) .em-card:nth-child(n+2) { display: none !important; }

/* ---------- Full reviews page ---------- */
.em-all-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; align-items: start; margin-top: 24px; }
.em-card--full { scroll-margin-top: 120px; }
/* Masonry: em-masonry.js sets each card's row span; without JS it stays a plain grid. */
.em-all-reviews.is-masonry { grid-auto-rows: 4px; row-gap: 0; }
.em-all-reviews.is-masonry .em-card--full { align-self: start; }
.em-card--full:target { border-color: var(--em-orange); box-shadow: 0 0 0 3px rgba(240,125,0,.18); }

@media (max-width: 767px) {
	.em-all-reviews { grid-template-columns: 1fr; }
	.em-logos { gap: 22px 30px; }
	.em-logo--bristol { height: 36px !important; }
	.em-logo--brookes { height: 40px !important; }
	.em-logo--westminster { height: 28px !important; }
	.em-logo--ec { height: 28px !important; }
	.em-logo--masterplan { height: 44px !important; }
	.em-cred { width: 100%; }
	.em-slider { padding: 0; }
	.em-slider .slick-slide { margin: 0 8px; }
}

/* ---------- Book feature ([em_book]) ---------- */
.em-book { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; max-width: 980px; margin: 0 auto; }
.em-book__cover img { width: 100% !important; height: auto !important; border-radius: 4px; box-shadow: 0 14px 34px rgba(0,0,0,.22); transform: rotate(-2deg); transition: transform .25s ease; }
.em-book__cover:hover img { transform: rotate(0deg) scale(1.02); }
.em-book__eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 700; color: #F07D00 !important; margin: 0 0 8px; font-family: Lato, sans-serif; }
.em-book__title { font-size: 30px; line-height: 1.25; margin: 0 0 14px; color: #404E54; }
.em-book__body p { font-size: 17px; line-height: 1.65; color: #333; margin: 0 0 22px; }
@media (max-width: 767px) {
	.em-book { grid-template-columns: 1fr; gap: 28px; text-align: center; }
	.em-book__cover { max-width: 200px; margin: 0 auto; }
	.em-book__title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .em-book__cover img { transform: none; transition: none; } }

/* Cover on its own beside text ([em_book_cover]) */
.em-book-cover { max-width: 260px; margin: 0 auto; text-align: center; }
.em-book-cover figcaption { margin-top: 22px; font-family: Lato, sans-serif; font-size: 15px; line-height: 1.5; color: #404E54; }
.em-book-cover figcaption a { color: #F07D00; text-decoration: none; font-weight: 700; }
.em-book-cover figcaption a:hover { text-decoration: underline; }
@media (max-width: 767px) { .em-book-cover { max-width: 200px; margin-top: 12px; } }

/* ---------- "More kind words": quote wall under the named reviews ([em_kind_words]) ---------- */
.em-kind { margin: 64px auto 0; padding-top: 48px; border-top: 1px solid var(--em-line, #E3E6E7); }
.em-kind__title { text-align: center; font-size: 28px; color: #404E54; margin: 0 0 32px; }
.em-kind__wall { column-count: 3; column-gap: 40px; }
.em-kind__quote { break-inside: avoid; margin: 0 0 28px !important; padding: 2px 0 2px 18px !important; border-left: 3px solid #F07D00 !important; background: none !important; font-family: Lato, sans-serif !important; font-size: 16px !important; line-height: 1.65; font-style: italic; color: #4a5559; }
.em-kind__quote p { margin: 0 0 10px; font-size: inherit !important; font-family: Lato, sans-serif !important; font-style: italic; color: inherit; }
.em-kind__quote p:last-child { margin-bottom: 0; }
.em-kind__quote::before, .em-kind__quote::after { content: none !important; }
@media (max-width: 991px) { .em-kind__wall { column-count: 2; } }
@media (max-width: 600px) { .em-kind__wall { column-count: 1; } }
/* Unnamed quotes as cards in the reviews grid ([em_reviews_all kind="yes"]) */
.em-card--kind { border-top: 3px solid #F07D00; }
.em-card--kind .em-quote { font-style: italic; }
.em-src--kind { font-size: 13px; color: #7a868b; margin-top: auto; }
/* [em_kind_words] carousel: grey box, one quote at a time; the box eases to each quote's height */
.em-kind__carousel .slick-list { transition: height .4s ease; }
.em-kind--carousel { border-top: 0; padding-top: 0; margin-top: 64px; }
.em-kind--carousel .em-kind__carousel { position: relative; background: #EFEFEF; border-radius: 12px; padding: 48px 84px; }
.em-kind__carousel .em-kind__quote { border-left: 0 !important; padding: 0 !important; margin: 0 auto !important; max-width: 760px; text-align: center; font-size: 18px !important; color: #404E54; }
.em-kind__carousel .em-kind__quote::before { content: "\201C" !important; display: block; height: 30px; margin: 0 auto 10px; font-family: Lato, sans-serif !important; font-style: normal; font-weight: 400; font-size: 72px; line-height: 1; color: #F07D00; opacity: .85; }
.em-kind__carousel .em-arrow--prev { left: 18px; }
.em-kind__carousel .em-arrow--next { right: 18px; }
.em-kind__carousel:not(.slick-initialized) .em-kind__slide + .em-kind__slide { display: none; }
@media (max-width: 767px) {
	.em-kind--carousel .em-kind__carousel { padding: 36px 20px 76px; }
	.em-kind__carousel .em-arrow { top: auto; bottom: 16px; transform: none; }
	.em-kind__carousel .em-arrow:active { transform: scale(.94); }
	.em-kind__carousel .em-arrow--prev { left: calc(50% - 52px); }
	.em-kind__carousel .em-arrow--next { right: calc(50% - 52px); }
}
