/* Our Leadership page: "Meet the Board" + Testimonials.
   Scoped to .wc-team. Uses the site palette:
   red #9F1D21, dark #12151a, soft #f6f7f9, Poppins. */
.wc-team{--wc-red:#9F1D21;--wc-red-dark:#7c1316;--wc-dark:#12151a;--wc-ink:#252a33;--wc-muted:#68707e;--wc-line:#e7e9ed;--wc-soft:#f6f7f9;font-family:'Poppins','Segoe UI',sans-serif}

/* ---- section headings ---- */
.wc-team__intro{text-align:center;max-width:720px;margin:0 auto 56px}
.wc-eyebrow{display:inline-block;color:var(--wc-red);font-size:.8rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;margin-bottom:10px}
.wc-team__intro h2{font-size:2.3rem;line-height:1.2;color:var(--wc-dark);margin:0 0 14px;font-weight:600;text-transform:none}
.wc-team__intro h2::after{content:"";display:block;width:56px;height:4px;border-radius:4px;background:var(--wc-red);margin:16px auto 0}
.wc-team__intro p{color:var(--wc-muted);font-size:1rem;margin:0}

/* ---- team grid + cards: big portrait on top ---- */
.wc-team__grid{display:flex;flex-wrap:wrap;justify-content:center;gap:32px 26px;margin:0;padding:0;list-style:none}
.wc-team__card{position:relative;flex:0 0 calc(25% - 20px);max-width:calc(25% - 20px);display:flex;flex-direction:column;text-align:center;background:#fff;border:1px solid var(--wc-line);border-radius:18px;overflow:hidden;box-shadow:0 2px 10px rgba(18,21,26,.05);transition:transform .3s,box-shadow .3s,border-color .3s}
.wc-team__card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--wc-red);transform:scaleX(0);transform-origin:left;transition:transform .35s}
.wc-team__card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(18,21,26,.14);border-color:#ecc9ca}
.wc-team__card:hover::after{transform:scaleX(1)}
.wc-team__card .wc-team__photo{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;background:linear-gradient(135deg,#f3f4f7,#e6e9ee);color:#b9bfc9;display:flex;align-items:center;justify-content:center;font-size:3.2rem;font-weight:600;letter-spacing:.06em}
.wc-team__card .wc-team__photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%}
.wc-team__name{font-size:1.2rem;line-height:1.25;font-weight:600;color:var(--wc-dark);margin:22px 18px 6px;text-transform:none}
.wc-team__role{font-size:.85rem;line-height:1.45;font-weight:500;color:var(--wc-red);margin:0 18px 18px;min-height:2.5em}
.wc-team__bio-btn{margin:auto auto 26px;display:inline-flex;align-items:center;gap:8px;background:var(--wc-red);color:#fff;border:0;border-radius:999px;padding:10px 22px;font:600 .85rem 'Poppins','Segoe UI',sans-serif;cursor:pointer;transition:background .25s}
.wc-team__card .wc-team__role:last-child{margin-bottom:26px}
.wc-team__bio-btn::after{content:"→";transition:transform .25s}
.wc-team__bio-btn:hover{background:var(--wc-dark)}
.wc-team__bio-btn:hover::after{transform:translateX(4px)}
.wc-team__bio-btn:focus-visible{outline:2px solid var(--wc-dark);outline-offset:3px}

/* ---- biography popup ---- */
.wc-team__modal .modal-content{border:0;border-radius:18px;overflow:hidden;box-shadow:0 24px 70px rgba(18,21,26,.35);font-family:'Poppins','Segoe UI',sans-serif}
.wc-team__modal .modal-header{background:#fff;color:var(--wc-dark);border:0;border-bottom:1px solid var(--wc-line);padding:18px 24px;align-items:center}
.wc-team__modal-id{display:flex;align-items:center;gap:18px}
.wc-team__photo--sm{position:relative;width:96px;height:96px;flex:none;border-radius:12px;overflow:hidden;background:var(--wc-soft);color:var(--wc-red);display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:600;box-shadow:0 4px 12px rgba(18,21,26,.12)}
.wc-team__photo--sm img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%}
.wc-team__modal .modal-title{color:var(--wc-dark);font-size:1.25rem;font-weight:600;margin:0 0 4px;text-transform:none}
.wc-team__modal .wc-team__role{color:var(--wc-red);margin:0;min-height:0;font-size:.85rem}
.wc-team__modal .close{color:var(--wc-dark);opacity:.6;text-shadow:none;font-size:1.6rem;align-self:flex-start;margin:-4px -4px 0 auto}
.wc-team__modal .close:hover{opacity:1}
/* Long bios scroll inside the popup instead of growing it past the screen. */
.wc-team__modal .modal-dialog,.wc-team__modal .modal-dialog.modal-lg{max-width:800px;max-height:min(88vh,640px);margin-top:2rem;margin-bottom:2rem}
.wc-team__modal .modal-content{max-height:min(88vh,640px);display:flex;flex-direction:column}
.wc-team__modal .modal-header{flex:0 0 auto}
.wc-team__modal .modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.wc-team__modal .modal-body{scrollbar-width:thin;scrollbar-color:var(--wc-red) var(--wc-line)}
.wc-team__modal .modal-body::-webkit-scrollbar{width:8px}
.wc-team__modal .modal-body::-webkit-scrollbar-track{background:var(--wc-line);border-radius:8px}
.wc-team__modal .modal-body::-webkit-scrollbar-thumb{background:var(--wc-red);border-radius:8px}
.wc-team__modal .modal-body{padding:20px 24px 24px;color:var(--wc-ink)}
.wc-team__modal .modal-body p{text-align:left;hyphens:manual;-webkit-hyphens:manual;font-size:.98rem;line-height:1.8;margin:0 0 14px}
.wc-team__modal .modal-body p:last-child{margin-bottom:0}

@media (max-width:1100px){.wc-team__card{flex-basis:calc(33.333% - 18px);max-width:calc(33.333% - 18px)}}
@media (max-width:820px){.wc-team__card{flex-basis:calc(50% - 13px);max-width:calc(50% - 13px)}}
@media (max-width:540px){.wc-team__card{flex-basis:100%;max-width:100%}.wc-team__intro h2{font-size:1.8rem}.wc-team__modal .modal-header{padding:20px}.wc-team__modal-id{flex-direction:column;align-items:flex-start;gap:16px}.wc-team__photo--sm{width:84px;height:84px}.wc-team__modal .modal-body{padding:22px 20px 26px}}
@media (prefers-reduced-motion:reduce){.wc-team__card,.wc-team__card::after,.wc-team__bio-btn,.wc-team__bio-btn::after{transition:none}}
