/* ─────────────────────────────────────────────────────────
   Single team member (CPT: our_team)  —  /meet-the-team/{slug}/
   Mirrors the live theme structure (.our_team-banner + Gutenberg blocks)
   ───────────────────────────────────────────────────────── */

.ot-single { padding: 48px 48px 64px; background: var(--white); }
.ot-single-inner { max-width: 1200px; margin: 0 auto; }

/* ── BANNER ────────────────────────────────────────── */
.ot-banner {
  background:
    linear-gradient( 130deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(255,44,85,0.45) 100% ),
    url("https://liondigital.com.au/wp-content/uploads/2022/04/team-banner-bg-2.jpg") center / cover no-repeat,
    var(--black);
  border-radius: 10px;
  padding: 28px 40px;
  color: var(--white);
}

.ot-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.ot-banner-photo {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ot-banner-photo img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--white);
}

.ot-banner-text {
  flex: 1;
  min-width: 0;
}

.ot-banner-name {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  margin: 0 0 6px;
}

.ot-banner-role {
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  opacity: 0.92;
}

.ot-banner-contact {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.ot-banner-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.ot-banner-contact a:hover { opacity: 0.8; }
.ot-banner-contact a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--white); }

/* ── CONTENT WRAPPER (Gutenberg renders inside) ───── */
.ot-content {
  padding: 60px 0 0;
  font-size: 18px;
  line-height: 30px;
  color: var(--black);
}

.ot-content p { margin: 0 0 1em; }
.ot-content p:last-child { margin-bottom: 0; }

.ot-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.ot-content a:hover { color: var(--black); }

.ot-content strong { font-weight: 700; }

/* Red inline accent used in the live content */
.ot-content .red-color,
.ot-content span.red-color { color: var(--red); font-weight: 700; }

/* ── Gutenberg columns inside .ot-content ─────────── */
.ot-content .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0 0 28px;
  align-items: flex-start;
}

.ot-content .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Pro paragraph column (red left bar) ──────────── */
.ot-content .pro-paragraph-column .wp-block-column {
  padding: 4px 0 4px 28px;
  position: relative;
  margin-bottom: 12px;
}

.ot-content .pro-paragraph-column .wp-block-column::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--red);
}

/* ── XP section (bullet list + portrait) ──────────── */
.ot-content .xp-section {
  margin: 32px 0;
}

.ot-content .list-column ul {
  padding: 0 20px 0 0;
  margin: 0;
  list-style: none;
}

.ot-content .list-column ul li {
  position: relative;
  padding-left: 28px;
  margin: 0.6em 0;
  line-height: 1.6;
}

.ot-content .list-column ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.ot-content .list-column ul li span.red-color { font-weight: 700; }

.ot-content .xp-section figure { margin: 0; }
.ot-content .xp-section figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ── Simple paragraph (max 820 reading column) ───── */
.ot-content .pro-simple-paragraph {
  max-width: 820px;
  margin-left: 0;
  margin-bottom: 28px;
}

.ot-content .pro-simple-paragraph p {
  font-size: 17px;
  line-height: 1.75;
}

/* ── Client logos row ─────────────────────────────── */
.ot-content .pro-logo-imgs {
  padding: 0 0 28px;
}

.ot-content .pro-logo-imgs .wp-block-column {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 36px;
}

.ot-content .pro-logo-imgs .wp-block-image {
  margin: 0;
  flex: 0 0 auto;
}

.ot-content .pro-logo-imgs img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.22s, opacity 0.22s;
}

.ot-content .pro-logo-imgs img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── EXPERIENCE section ───────────────────────────── */
.ot-content .exp-column h4 {
  color: var(--red);
  font-size: clamp(2rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 28px 0 28px;
  text-transform: uppercase;
}

.ot-content .exp-strctr-column {
  background: #FBFBFB;
  border-radius: 10px;
  padding: 28px 48px;
  margin-top: 0;
}

/* Live blocks duplicate the company list in a second column — hide it. */
.ot-content .exp-strctr-column.wp-block-columns,
.ot-content .exp-strctr-column { display: block; }
.ot-content .exp-strctr-column .wp-block-column { width: 100%; }
.ot-content .exp-strctr-column .wp-block-column:not(:first-child) { display: none; }

.ot-content .exp-strctr-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each <li>:
     "Job title"  +  <span>"Company"<strong>"Location"</strong></span>
   Rendered as three equal columns via outer grid 1fr 2fr, inner grid 1fr 1fr. */
.ot-content .exp-strctr-column li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid #EAEAEA;
  color: var(--red);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
}

.ot-content .exp-strctr-column li:last-child { border-bottom: none; }

.ot-content .exp-strctr-column li::before { display: none; content: none; }

.ot-content .exp-strctr-column li > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  color: #4A4A4A;
  font-weight: 400;
  margin-top: 0;
  font-size: 17px;
}

.ot-content .exp-strctr-column li > span > strong {
  display: inline-block;
  font-weight: 400;
  font-size: 17px;
  color: #4A4A4A;
  margin: 0;
}

@media (max-width: 720px) {
  .ot-content .exp-strctr-column li,
  .ot-content .exp-strctr-column li > span {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ot-content .exp-strctr-column li { padding: 14px 0; }
}

/* ── Generic list/heading fallbacks (non-block) ───── */
.ot-content h2,
.ot-content h3,
.ot-content h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  color: var(--black);
  line-height: 1.2;
}

.ot-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.ot-content h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.ot-content h4 { font-size: 1.05rem; }

.ot-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── "Leo professional references" callout in the body ─── */
.ot-content .Leo-professional-references {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 0;
  padding: 18px 28px 18px 60px;
  background: #FBFBFB;
  border-radius: 10px;
  border-left: 6px solid var(--red);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.ot-content .Leo-professional-references::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/></svg>") center / contain no-repeat;
}

.ot-content .Leo-professional-references:hover {
  background: var(--red);
  color: var(--white);
  border-left-color: var(--black);
}

.ot-content .Leo-professional-references:hover::before {
  background: var(--white);
}

/* Make the whole paragraph clickable as a jump to the refs section */
.ot-content .Leo-professional-references a { color: inherit; text-decoration: none; }

/* ── PROFESSIONAL REFERENCES SLIDER ─────────────── */
.ot-refs {
  margin-top: 48px;
  padding: 56px 0 0;
  border-top: 1px solid var(--rule);
}

.ot-refs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.ot-refs-heading-text { max-width: 720px; min-width: 0; }

.ot-refs-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}

.ot-refs-h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: var(--black);
}

.ot-refs-h2 em { font-style: italic; color: var(--red); font-weight: 900; }

/* Canonical review-heading style — uppercase, no italic, no period. */
.ot-refs-h2--upper { text-transform: uppercase; letter-spacing: -0.01em; }
.ot-refs-h2--upper em { font-style: normal; }

/* Nav arrows — match the lp-cases-arrow style used elsewhere */
.ot-refs-nav {
  display: inline-flex;
  gap: 10px;
  flex-shrink: 0;
}

.ot-refs-arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D8D8D8;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ot-refs-arrow svg { width: 18px; height: 18px; }

.ot-refs-arrow:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.ot-refs-arrow:focus-visible {
  outline: 3px solid rgba(255,44,85,0.4);
  outline-offset: 2px;
}

/* Single-column track — one card visible at a time */
.ot-refs-track {
  list-style: none;
  padding: 4px;
  margin: 0 -4px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ot-refs-track::-webkit-scrollbar { display: none; }

.ot-ref {
  position: relative;
  padding: 56px 56px 48px;
  background: #FBFBFB;
  border: 1px solid var(--rule);
  scroll-snap-align: start;
  min-height: 240px;
}

.ot-ref-mark {
  position: absolute;
  top: 18px;
  left: 28px;
  font-size: 96px;
  line-height: 1;
  color: var(--red);
  font-family: Georgia, serif;
  font-weight: 700;
  opacity: 0.18;
  pointer-events: none;
}

.ot-ref-body { font-size: 17px; line-height: 1.75; color: var(--black); position: relative; z-index: 1; }
.ot-ref-body p { margin: 0 0 1em; }
.ot-ref-body p:last-child { margin-bottom: 0; }

.ot-ref-body strong {
  display: block;
  font-weight: 700;
  margin-top: 16px;
  color: var(--black);
}

.ot-ref-body em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* Counter under the slider */
.ot-refs-counter {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-align: center;
}

.ot-refs-counter [data-ot-refs-current] { color: var(--red); }

@media (max-width: 720px) {
  .ot-refs-header { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ot-ref { padding: 44px 28px 32px; }
  .ot-ref-mark { font-size: 64px; top: 10px; left: 20px; }
}

/* ── BOTTOM CTA ────────────────────────────────────── */
.ot-cta {
  padding: 88px 48px 96px;
  background: var(--black);
  color: var(--white);
}

.ot-cta-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.ot-cta-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}

.ot-cta-h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--white);
}

.ot-cta-h2 em {
  font-style: italic;
  color: var(--red);
  font-weight: 900;
}

.ot-cta-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin: 0 0 36px;
}

.ot-cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.ot-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s, transform 0.22s, color 0.22s;
  box-shadow: 0 10px 26px rgba(255,44,85,0.22);
}

.ot-cta-btn svg { width: 14px; height: 14px; transition: transform 0.22s; }

.ot-cta-btn:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.ot-cta-btn:hover svg { transform: translateX(4px); }

.ot-cta-btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: none;
}

.ot-cta-btn--ghost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ── MOBILE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .ot-banner-inner { gap: 28px; }
  .ot-banner-photo { width: 180px; }
  .ot-banner-photo img { width: 180px; height: 180px; }
  .ot-content .wp-block-columns { gap: 24px; }
  .ot-content .exp-strctr-column { padding: 28px 24px; }
}

@media (max-width: 640px) {
  .ot-single { padding: 24px 16px 48px; }
  .ot-banner { padding: 24px; border-radius: 8px; }
  .ot-banner-inner { flex-direction: column; align-items: flex-start; }
  .ot-banner-photo { width: 140px; }
  .ot-banner-photo img { width: 140px; height: 140px; }
  .ot-content { padding-top: 40px; }
  .ot-content .wp-block-columns { flex-direction: column; }
  .ot-content .pro-logo-imgs .wp-block-column { gap: 18px 24px; justify-content: center; }
  .ot-cta { padding: 56px 24px 64px; }
  .ot-cta-actions { width: 100%; flex-direction: column; }
  .ot-cta-btn { width: 100%; justify-content: center; }
}
