/* WOT Home Slider. Text left / image right (stacked ≤900px). Text aligns with the header + content column:
   gutter = (W − min(1290px, 86% W)) ÷ 2 on desktop, where W = slider width; 40px tablet; 20px phone.
   (No container queries: container-type made Elementor's flex parent mis-measure the slider's height.) */
.wot-hs {
  --hs-navy: #0d0d3a; --hs-btn: #050522; --hs-gold: #d4ae5f; --hs-panel: #f8f8f8;
  --hs-h: clamp(520px, 75vh, 720px);
  --hs-controls: 44px;
  position: relative; width: 100%; overflow: hidden;
  background: var(--hs-panel); color: var(--hs-navy); font-family: inherit;
}
.wot-hs *, .wot-hs *::before, .wot-hs *::after { box-sizing: border-box; }
.wot-hs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* all slides share one grid cell, so the slider is as tall as its tallest slide and nothing jumps */
.wot-hs-slides { display: grid; }
.wot-hs-slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; min-height: var(--hs-h);
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.wot-hs-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.wot-hs--slide .wot-hs-slide .wot-hs-text-inner { transform: translateX(28px); transition: transform .6s ease; }
.wot-hs--slide .wot-hs-slide.is-active .wot-hs-text-inner { transform: none; }

.wot-hs-text { display: flex; align-items: center; background: var(--hs-panel);
  padding: 64px 56px 64px max(calc(100% - 645px), 14%); }
.wot-hs--controls .wot-hs-text { padding-bottom: calc(64px + var(--hs-controls) + 24px); }
.wot-hs-text-inner { max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.wot-hs .wot-hs-kicker { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: var(--hs-navy); }
.wot-hs .wot-hs-heading { margin: 0; font-family: inherit; font-size: clamp(36px, 3.6vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--hs-navy); }
.wot-hs .wot-hs-copy { margin: 0; font-size: clamp(18px, 1.7vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--hs-gold); }
.wot-hs .wot-hs-btn { display: inline-flex; align-items: center; min-height: 54px; margin-top: 6px; padding: 0 30px; background: var(--hs-btn); color: #fff;
  border: 1px solid var(--hs-gold); border-radius: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1; text-decoration: none; transition: background .2s, color .2s; }
.wot-hs .wot-hs-btn:hover, .wot-hs .wot-hs-btn:focus-visible { background: var(--hs-gold); color: var(--hs-navy); }

.wot-hs-media { position: relative; overflow: hidden; background: #dfe3e8; }
.wot-hs .wot-hs-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border: 0; border-radius: 0; }

/* controls: bottom of the text panel, aligned with the text */
.wot-hs-controls { position: absolute; z-index: 2; left: max(calc(50% - 645px), 7%); bottom: 40px; display: flex; align-items: center; gap: 6px; }
html body .wot-hs button { font: inherit; margin: 0; padding: 0; min-width: 0; min-height: 0; border-radius: 50%; box-shadow: none; text-transform: none; letter-spacing: normal; cursor: pointer; line-height: 1; }
html body .wot-hs .wot-hs-arrow { display: grid; place-items: center; width: var(--hs-controls); height: var(--hs-controls); background: transparent; color: var(--hs-navy); border: 1px solid rgba(13, 13, 58, .3); font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
html body .wot-hs .wot-hs-arrow:hover, html body .wot-hs .wot-hs-arrow:focus { background: var(--hs-navy); color: #fff; border-color: var(--hs-navy); }
.wot-hs-dots { display: flex; align-items: center; margin: 0 6px; }
html body .wot-hs .wot-hs-dot { position: relative; width: 26px; height: var(--hs-controls); background: none; border: 0; border-radius: 0; }
html body .wot-hs .wot-hs-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 5px; background: rgba(13, 13, 58, .28); transition: width .25s, margin .25s, background .25s; }
html body .wot-hs .wot-hs-dot:hover::before { background: rgba(13, 13, 58, .55); }
html body .wot-hs .wot-hs-dot[aria-current=true]::before { width: 22px; margin-left: -11px; background: var(--hs-gold); }
html body .wot-hs .wot-hs-dot:hover, html body .wot-hs .wot-hs-dot:focus { background: none; }
.wot-hs-pause { margin-left: 8px; }
.wot-hs-pause .fa-play, .wot-hs-pause.is-paused .fa-pause { display: none; }
.wot-hs-pause.is-paused .fa-play { display: inline-block; }
.wot-hs :focus-visible { outline: 2px solid var(--hs-gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- small laptop / landscape tablet: still side by side */
@media (max-width: 1024px) {
  .wot-hs { --hs-gutter: 40px; --hs-h: clamp(460px, 62vh, 600px); }
  .wot-hs-text { padding-right: 36px; padding-left: var(--hs-gutter); }
  .wot-hs-controls { left: var(--hs-gutter); }
  .wot-hs .wot-hs-btn { min-height: 50px; padding: 0 26px; }
}
/* ---------------------------------------------------------------- portrait tablet & phone: text above image */
@media (max-width: 900px) {
  .wot-hs { --hs-img-h: min(100vw * 10 / 16, 52vh); }
  .wot-hs-slide { grid-template-columns: 1fr; grid-template-rows: 1fr auto; min-height: 0; }
  /* slides share the tallest slide's height; centring keeps shorter slides balanced (no gap above the image) */
  .wot-hs-text { align-items: center; padding: 40px var(--hs-gutter); }
  .wot-hs--controls .wot-hs-text { padding-bottom: calc(40px + var(--hs-controls) + 20px); }
  .wot-hs-text-inner { gap: 16px; max-width: 640px; }
  .wot-hs-media { height: var(--hs-img-h); }
  /* controls sit at the bottom of the text panel, just above the image */
  .wot-hs-controls { bottom: calc(var(--hs-img-h) + 24px); }
}
@media (max-width: 767px) {
  .wot-hs { --hs-gutter: 20px; --hs-controls: 44px; }
  .wot-hs .wot-hs-heading { font-size: clamp(30px, 8.6vw, 38px); }
  .wot-hs .wot-hs-copy { font-size: 18px; }
  html body .wot-hs .wot-hs-dot { width: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .wot-hs-slide, .wot-hs-text-inner, .wot-hs .wot-hs-dot::before { transition: none !important; }
}
