/* ==========================================================================
   MT - Client Stories
   Dark testimonials: header + rating summary, featured story slider, review grid.
   ========================================================================== */

.elementor-widget-mtfe-client-stories { width: 100%; }

.mtfe-cs {
    --cs-text: #FFFFFF;
    --cs-muted: #B9B4C6;
    --cs-card: #1A1529;
    --cs-accent: #2340D8;
    --cs-gold: #FFB800;

    position: relative;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 25px;
    box-sizing: border-box;
    color: var(--cs-text);
    isolation: isolate;
}
.mtfe-cs::before, .mtfe-cs::after {   /* soft glows */
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.mtfe-cs::before { width: 420px; height: 420px; left: -120px; top: 80px; background: var(--cs-accent); opacity: 0.28; }
.mtfe-cs::after  { width: 360px; height: 360px; right: -80px; bottom: -40px; background: var(--cs-gold); opacity: 0.12; }

/* header */
.mtfe-cs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 48px; }
.mtfe-cs__eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--cs-gold); }
.mtfe-cs .mtfe-cs__title { margin: 14px 0 0; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; color: var(--cs-text); }
.mtfe-cs .mtfe-cs__title em { font-style: normal; font-size: inherit; color: var(--cs-gold); }

.mtfe-cs__summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px 14px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.mtfe-cs__score { font-size: 44px; line-height: 1; font-weight: 800; }
.mtfe-cs__summary-body { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--cs-muted); max-width: 170px; line-height: 1.35; }
.mtfe-cs__faces { display: inline-flex; }
.mtfe-cs .mtfe-cs__faces img { width: 38px; height: 38px; margin-left: -12px; border-radius: 50%; border: 3px solid #0E0A18; object-fit: cover; }
.mtfe-cs .mtfe-cs__faces img:first-child { margin-left: 0; }

.mtfe-cs__stars { color: var(--cs-gold); letter-spacing: 3px; font-size: 15px; line-height: 1; }

/* body */
.mtfe-cs__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }

/* featured slider */
.mtfe-cs__featured { position: relative; min-height: 560px; border-radius: 28px; overflow: hidden; background: var(--cs-card); }
.mtfe-cs__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.mtfe-cs__slide.is-active { opacity: 1; visibility: visible; }
.mtfe-cs .mtfe-cs__slide img.mtfe-cs__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.04); transition: transform 7s ease; }
.mtfe-cs .mtfe-cs__slide.is-active img.mtfe-cs__photo { transform: scale(1); }
.mtfe-cs__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 10, 24, 0) 25%, rgba(14, 10, 24, 0.55) 55%, rgba(14, 10, 24, 0.95)); }
.mtfe-cs__tag { position: absolute; left: 22px; top: 22px; z-index: 2; padding: 7px 14px; border-radius: 20px; background: var(--cs-gold); color: #191326; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mtfe-cs__panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 30px 84px; }
.mtfe-cs .mtfe-cs__quote { margin: 14px 0 20px; padding: 0; border: 0; font-size: 22px; line-height: 1.45; font-weight: 600; color: var(--cs-text); quotes: none; }
.mtfe-cs .mtfe-cs__quote::before, .mtfe-cs .mtfe-cs__quote::after { content: none; }

.mtfe-cs__nav { position: absolute; left: 30px; right: 30px; bottom: 24px; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.mtfe-cs .mtfe-cs__arrow {
    width: 42px; height: 42px; margin: 0; padding: 0; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(14, 10, 24, 0.4); color: #FFFFFF;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.mtfe-cs .mtfe-cs__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mtfe-cs .mtfe-cs__arrow:hover, .mtfe-cs .mtfe-cs__arrow:focus-visible { background: var(--cs-gold); border-color: var(--cs-gold); color: #191326; }
.mtfe-cs__dots { display: flex; gap: 8px; }
.mtfe-cs .mtfe-cs__dot { width: 10px; height: 10px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width 0.3s ease, background-color 0.3s ease; }
.mtfe-cs .mtfe-cs__dot.is-active { width: 28px; background: var(--cs-gold); }
.mtfe-cs .mtfe-cs__arrow:focus-visible, .mtfe-cs .mtfe-cs__dot:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* person */
.mtfe-cs__person { display: flex; align-items: center; gap: 12px; }
.mtfe-cs .mtfe-cs__person img.mtfe-cs__avatar, .mtfe-cs__avatar--empty { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.85); flex: none; background: var(--cs-accent); }
.mtfe-cs__person span { display: flex; flex-direction: column; line-height: 1.3; }
.mtfe-cs__person strong { font-size: 16px; color: var(--cs-text); }
.mtfe-cs__person em { font-style: normal; font-size: 13px; color: var(--cs-muted); }

/* review grid */
.mtfe-cs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mtfe-cs__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px 28px 26px;
    border-radius: 24px;
    background: var(--cs-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.mtfe-cs__card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.mtfe-cs__mark { position: absolute; right: 22px; top: -6px; font-size: 110px; line-height: 1; font-weight: 800; color: rgba(255, 255, 255, 0.06); pointer-events: none; }
.mtfe-cs__text { margin: 0; flex: 1; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.mtfe-cs__card .mtfe-cs__person { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mtfe-cs__card.is-highlight { background: var(--cs-accent); border-color: transparent; }
.mtfe-cs__card.is-highlight .mtfe-cs__text { color: #FFFFFF; }
.mtfe-cs__card.is-highlight .mtfe-cs__mark { color: rgba(255, 255, 255, 0.14); }
.mtfe-cs__card.is-highlight .mtfe-cs__person em { color: rgba(255, 255, 255, 0.8); }
.mtfe-cs__card.is-highlight .mtfe-cs__person { border-top-color: rgba(255, 255, 255, 0.25); }

@media (prefers-reduced-motion: reduce) {
    .mtfe-cs__slide, .mtfe-cs .mtfe-cs__slide img.mtfe-cs__photo, .mtfe-cs__card { transition: none; }
}

@media (max-width: 1100px) {
    .mtfe-cs__body { grid-template-columns: minmax(0, 1fr); }
    .mtfe-cs__featured { min-height: 520px; }
}
@media (max-width: 767px) {
    .mtfe-cs { padding: 0 15px; }
    .mtfe-cs .mtfe-cs__title, body .mtfe-cs h2.mtfe-cs__title { font-size: 36px !important; }
    .mtfe-cs__head { margin-bottom: 32px; }
    .mtfe-cs__summary { width: 100%; box-sizing: border-box; }
    .mtfe-cs__score { font-size: 36px; }
    .mtfe-cs__featured { min-height: 540px; border-radius: 22px; }
    .mtfe-cs__panel { padding: 22px 20px 76px; }
    .mtfe-cs .mtfe-cs__quote { font-size: 18px; }
    .mtfe-cs__nav { left: 20px; right: 20px; bottom: 20px; }
    .mtfe-cs__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .mtfe-cs__card { padding: 24px 22px 22px; }
}

/* theme overrides: the theme centres figcaptions and forces figure { margin-bottom: 30px !important } */
.mtfe-cs figure.mtfe-cs__slide { margin: 0 !important; }
.mtfe-cs .mtfe-cs__panel, .mtfe-cs .mtfe-cs__panel * { text-align: left !important; }
.mtfe-cs__slide::after { background: linear-gradient(180deg, rgba(14, 10, 24, 0) 15%, rgba(14, 10, 24, 0.7) 48%, rgba(14, 10, 24, 0.97) 78%); }
.mtfe-cs .mtfe-cs__quote { font-size: 21px; }
@media (max-width: 480px) { .mtfe-cs__faces { display: none; } }
