/*
 * Hilive Homepage — 2026-10 compact services and real video-review thumbnails.
 * Presentation only; the main Programs cards stay visually dominant.
 */
.hilive-home-v3 .hl-services-v3 {
  padding:clamp(58px,6vw,79px) 0 clamp(57px,6vw,79px);
  background:#f2f4f5;
}
.hilive-home-v3 .hl-services-v3__head{
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:25px;
  margin-bottom:22px;
}
.hilive-home-v3 .hl-services-v3__head h2{
  font-size:clamp(30px,3.5vw,43px);
  color:#173d40;
}
.hilive-home-v3 .hl-services-v3__head>p{font-size:14px;line-height:1.85}
.hilive-home-v3 .hl-services-v3__grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3{
  min-height:0;
  border:1px solid #dce5e6;
  border-radius:16px;
  padding:20px 18px 18px;
  background:#fff;
  box-shadow:0 5px 17px rgba(18,60,62,.032);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3--session,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--bootcamp{
  border-color:#dce5e6;
  background:#fff;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__top{
  margin-bottom:13px;
  gap:7px;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__number,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--session .hl-service-v3__number,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--bootcamp .hl-service-v3__number{
  width:31px;height:31px;flex-basis:31px;
  border-radius:9px;
  background:#eaf1f1;color:#557d80;
  font-size:11px;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__top small{
  font-size:9px;line-height:1.4;
  letter-spacing:.035em;color:#8b9a9d;
  text-align:end;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3 h3{
  font-size:clamp(19px,1.8vw,25px);
  line-height:1.27;
  color:#23484a;
  margin:0 0 12px;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__desc{
  font-size:12.5px;line-height:1.85;
  color:#4c6668;font-weight:600;
  margin:0 0 14px;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__benefit,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--session .hl-service-v3__benefit,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--bootcamp .hl-service-v3__benefit{
  margin-top:0;
  border:0;
  border-top:1px solid #e6eeee;
  padding:12px 0 0;
  border-radius:0;
  background:none;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__benefit strong,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--session .hl-service-v3__benefit strong,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--bootcamp .hl-service-v3__benefit strong{
  color:#406e71;
  font-size:11px;margin:0 0 4px;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__benefit p{
  font-size:12px;line-height:1.75;
  font-weight:600;color:#577072;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__cta{
  padding-top:10px;
  margin-top:auto;
  min-height:0;
  color:#236a6d;
  font-size:12px;line-height:1.5;
  border-top:0;
  gap:6px;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__cta b,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--session .hl-service-v3__cta b{
  width:25px;height:25px;flex-basis:25px;
  background:#e3f0ef;color:#237779;
  font-size:15px;
  border-radius:7px;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3--bootcamp{
  cursor:default;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__cta--info{
  margin-top:auto;
  border-top:1px solid #edf1f1;
  color:#668083;
  font-size:11px;
  font-weight:750;
}
@media(hover:hover) and (pointer:fine){
  .hilive-home-v3 .hl-services-v3 .hl-service-v3:hover{
    transform:translateY(-3px);
    border-color:#bacdd0;
    box-shadow:0 11px 25px rgba(17,69,71,.065);
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3--bootcamp:hover{
    transform:none;
    border-color:#dce5e6;
    box-shadow:0 5px 17px rgba(18,60,62,.032);
  }
}

/* Prominent but compact studio-team banner BEFORE the service tiles. */
.hilive-home-v3 .hl-services-v3__team-note{
  display:grid;
  grid-template-columns:62px minmax(0,1fr) auto;
  gap:20px;
  align-items:center;
  margin:0 0 20px;
  padding:27px 30px;
  border-radius:20px;
  border:1px solid #16575b;
  background:
    radial-gradient(circle at 5% 10%,rgba(242,200,75,.13),transparent 46%),
    linear-gradient(110deg,#123a3d,#1a5d62);
  box-shadow:0 16px 35px rgba(15,69,72,.115);
}
.hilive-home-v3 .hl-services-v3__team-symbol{
  display:grid;place-items:center;
  width:62px;height:62px;
  border-radius:15px;
  background:#f2c84b;
  color:#174a50;
  font-size:12px;letter-spacing:.035em;font-weight:900;
}
.hilive-home-v3 .hl-services-v3__team-kicker{
  display:block;
  font-size:10px;
  font-weight:800;
  color:#ffe486;
  letter-spacing:.10em;
  margin-bottom:8px;
  text-align:start;
  direction:ltr;
}
.hilive-home-v3 .hl-services-v3__team-note h3{
  display:block;
  margin:0 0 7px;
  font-size:clamp(21px,2.5vw,30px);
  font-weight:800;
  color:#fff;
  line-height:1.35;
}
.hilive-home-v3 .hl-services-v3__team-note p{
  color:#deeeee;
  font-size:13px;
  font-weight:600;
  line-height:1.85;
  margin:0;
}
.hilive-home-v3 .hl-services-v3__team-note > a{
  display:inline-flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:8px 12px 8px 17px;
  background:#f2c84b;
  color:#16484b!important;
  border-radius:999px;
  white-space:normal;
  max-width:215px;
  font-size:12px;
  font-weight:850;
  line-height:1.5;
  text-align:center;
}
.hilive-home-v3 .hl-services-v3__team-note > a b{
  display:grid;place-items:center;
  flex:0 0 26px;width:26px;height:26px;
  border-radius:7px;
  background:#215b5e;
  color:#fff;
  font-size:16px;
}
.hilive-home-v3 .hl-services-v3__team-note > a:hover{
  background:#ffe080;
}

/* Reviews: no more large empty white cards. Show the actual video frame/thumbnail. */
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3--media{
  display:flex;
  flex-direction:column;
  justify-content:initial;
  align-items:stretch;
  min-height:0;
  padding:0!important;
  border-radius:17px;
  background:#fff;
  overflow:hidden;
  color:#233e40!important;
  text-decoration:none!important;
}
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__poster{
  position:relative;
  width:100%;
  height:225px;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(circle at 40% 45%,rgba(74,142,142,.23),transparent 60%),
    #1a393b;
}
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__poster img,
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__poster video{
  display:block;
  position:absolute;
  inset:0;
  width:100%;height:100%;
  object-fit:cover;
  object-position:center 25%;
  pointer-events:none;
  transition:transform .3s ease;
}
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__poster::after{
  content:"";
  pointer-events:none;
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 50%,rgba(5,22,23,.50));
  z-index:1;
}
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__play{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  z-index:3;
  width:52px;height:52px;
  background:#f2c84b;
  box-shadow:0 9px 22px rgba(7,32,34,.23);
}
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__play::before{
  border-top-width:8px;
  border-bottom-width:8px;
  border-left-width:13px;
}
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__media-tag{
  position:absolute;z-index:3;
  bottom:12px;right:14px;
  color:#fff;
  font-size:10px;font-weight:800;
  letter-spacing:.08em;
}
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__body{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-height:125px;
  padding:17px 19px 19px;
}
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__body small{
  font-size:9px;
  color:#6f9293;
  font-weight:800;
  letter-spacing:.09em;
}
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__body h3{
  margin:7px 0 5px;
  color:#1b3e40;
  font-size:19px;
  line-height:1.4;
}
.hilive-home-v3 .hl-voices-v3 .hl-voice-v3__body p{
  margin:0;color:#566d70;
  font-size:12px;line-height:1.8;
}
@media(hover:hover) and (pointer:fine){
  .hilive-home-v3 .hl-voices-v3 .hl-voice-v3--media:hover .hl-voice-v3__poster img,
  .hilive-home-v3 .hl-voices-v3 .hl-voice-v3--media:hover .hl-voice-v3__poster video{
    transform:scale(1.04);
  }
  .hilive-home-v3 .hl-voices-v3 .hl-voice-v3--media:hover .hl-voice-v3__play{
    transform:translate(-50%,-50%) scale(1.08);
  }
}
/* Accessible lightweight video dialog: player is only fetched after clicking. */
.hilive-home-v3 .hl-video-dialog{
  position:fixed;
  inset:0;
  width:min(410px,calc(100vw - 20px));
  max-width:calc(100vw - 20px);
  max-height:calc(100dvh - 24px);
  border:1px solid #347276;
  border-radius:17px;
  background:#071c1e;
  color:#fff;
  padding:0;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
  overflow:hidden;
}
.hilive-home-v3 .hl-video-dialog::backdrop{
  background:rgba(3,17,18,.85);
  backdrop-filter:blur(5px);
}
.hilive-home-v3 .hl-video-dialog__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  background:#164347;
}
.hilive-home-v3 .hl-video-dialog__top strong{
  color:#fff;
  font-size:15px;line-height:1.5;
}
.hilive-home-v3 .hl-video-dialog__top button{
  flex:0 0 34px;
  border:0;
  border-radius:8px;
  width:34px;height:34px;
  background:#f2c84b;color:#174c50;
  font-size:18px;cursor:pointer;
}
.hilive-home-v3 .hl-video-dialog__body{
  aspect-ratio:9 / 16;
  max-height:calc(100dvh - 78px);
  background:#071c1e;
}
.hilive-home-v3 .hl-video-dialog__body iframe,
.hilive-home-v3 .hl-video-dialog__body video{
  display:block;width:100%;height:100%;
  border:0;object-fit:contain;
  background:#071c1e;
}
@media(max-width:1170px){
  .hilive-home-v3 .hl-services-v3__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3{
    padding:22px;
  }
  .hilive-home-v3 .hl-services-v3__team-note{
    grid-template-columns:50px minmax(0,1fr);
  }
  .hilive-home-v3 .hl-services-v3__team-symbol{
    width:50px;height:50px;font-size:10px;
  }
  .hilive-home-v3 .hl-services-v3__team-note>a{
    grid-column:2;
    justify-self:start;
    max-width:250px;
  }
}
@media(max-width:760px){
  .hilive-home-v3 .hl-services-v3__head{
    grid-template-columns:1fr;gap:12px;
  }
  .hilive-home-v3 .hl-services-v3__team-note{
    padding:22px;
    gap:13px;
  }
  .hilive-home-v3 .hl-services-v3__team-note h3{
    font-size:22px;
  }
  .hilive-home-v3 .hl-voices-v3 .hl-voice-v3__poster{height:205px}
}
@media(max-width:640px){
  .hilive-home-v3 .hl-services-v3__grid{
    grid-template-columns:1fr;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3{
    padding:20px;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3 h3{
    font-size:23px;
  }
  .hilive-home-v3 .hl-services-v3__team-note{
    grid-template-columns:1fr;
  }
  .hilive-home-v3 .hl-services-v3__team-note>a{
    grid-column:1;
    width:100%;
    max-width:none;
  }
  .hilive-home-v3 .hl-voices-v3 .hl-voice-v3__poster{height:230px}
}
@media(prefers-reduced-motion:reduce){
  .hilive-home-v3 .hl-services-v3 .hl-service-v3,
  .hilive-home-v3 .hl-voices-v3 .hl-voice-v3__poster img,
  .hilive-home-v3 .hl-voices-v3 .hl-voice-v3__poster video{
    transition:none!important;
  }
}

/* Services refinement: aligned rows and soft editorial interaction.
   All four cards share the same vertical tracks on modern browsers. */
.hilive-home-v3 .hl-services-v3 .hl-service-v3{
  --service-color:#2b999c;
  --service-rgb:43,153,156;
  isolation:isolate;
  display:flex;
  background:#ffffff;
  border-color:#d6e3e4;
  border-radius:17px;
  position:relative;
  overflow:hidden;
  text-align:start;
  box-shadow:0 5px 18px rgba(23,71,74,.043);
  transition:transform .23s ease, border-color .23s ease,box-shadow .23s ease, background .23s ease;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3--session,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--bootcamp{
  --service-color:#d4aa36;
  --service-rgb:212,170,54;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3::before{
  content:"";
  position:absolute;
  top:0;right:0;
  width:38%;
  height:3px;
  border-radius:0 0 0 4px;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(var(--service-rgb),.4),var(--service-color));
  transition:width .28s ease,opacity .28s ease;
  z-index:2;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3::after{
  content:"";
  position:absolute;
  inset:-70px auto auto -85px;
  width:210px;height:210px;
  border-radius:50%;
  pointer-events:none;
  opacity:0;
  background:radial-gradient(circle,rgba(var(--service-rgb),.12),transparent 73%);
  transition:opacity .28s ease;
  z-index:0;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3 > *{
  position:relative;z-index:1;
  min-width:0;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3 h3{
  color:#183e40;
  font-size:clamp(20px,1.9vw,26px);
  font-weight:850;
  line-height:1.25;
  margin:0 0 12px;
  letter-spacing:-.023em;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__number,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--session .hl-service-v3__number,
.hilive-home-v3 .hl-services-v3 .hl-service-v3--bootcamp .hl-service-v3__number{
  background:rgba(var(--service-rgb),.13);
  color:var(--service-color);
  border:1px solid rgba(var(--service-rgb),.18);
  border-radius:9px;
  transition:background .25s ease,color .25s ease,transform .25s ease;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__benefit{
  border-top-color:#dce8e7;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3__cta{
  padding-top:13px;
  border-top:1px solid #e6eeee;
  margin:0;
  color:#235f63;
  align-self:stretch;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3--bootcamp{
  cursor:pointer;
}
.hilive-home-v3 .hl-services-v3 .hl-service-v3--bootcamp .hl-service-v3__cta b,
.hilive-home-v3 .hl-services-v3 .hl-service-v3__cta b{
  display:grid;
  place-items:center;
  width:28px;height:28px;
  flex:0 0 28px;
  border-radius:8px;
  background:rgba(var(--service-rgb),.14);
  color:var(--service-color);
  box-shadow:none;
  font-size:17px;
  transition:transform .25s ease,background .25s ease,color .25s ease;
}
@media(hover:hover) and (pointer:fine){
  .hilive-home-v3 .hl-services-v3 .hl-service-v3:hover{
    transform:translateY(-5px);
    border-color:rgba(var(--service-rgb),.50);
    box-shadow:0 18px 38px rgba(19,71,74,.105);
    background:#fdfefe;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3:hover::before{
    width:100%;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3:hover::after{
    opacity:1;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3:hover .hl-service-v3__number{
    transform:translateY(-2px);
    background:var(--service-color);
    color:#fff;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3:hover .hl-service-v3__cta b{
    transform:translate(-2px,-2px);
    background:var(--service-color);
    color:#fff;
  }
}
/* Align title, description, benefit rule, and CTA across every card
   without hardcoded line-count heights; supports both AR and EN. */
@supports (grid-template-rows:subgrid){
  .hilive-home-v3 .hl-services-v3__grid{
    display:grid;
    grid-auto-rows:auto;
    align-items:stretch;
    row-gap:12px;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3{
    display:grid;
    grid-template-rows:subgrid;
    grid-row:span 5;
    row-gap:0;
    align-items:start;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3__top{
    margin:0;
    align-self:start;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3 h3{
    margin:0;
    padding:13px 0 10px;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3__desc{
    margin:0;
    padding:0 0 18px;
    align-self:start;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3__benefit{
    margin:0;
    padding:14px 0 15px;
    align-self:stretch;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3__cta{
    align-self:end;
    margin:0;
    padding:13px 0 0;
    min-height:42px;
    line-height:1.6;
  }
}
/* Small screens: card rows flow naturally and don't reserve giant empty gaps. */
@media(max-width:640px){
  .hilive-home-v3 .hl-services-v3 .hl-service-v3 h3{
    font-size:23px;
  }
  .hilive-home-v3 .hl-services-v3 .hl-service-v3__benefit{
    padding-bottom:12px;
  }
}
@media(prefers-reduced-motion:reduce){
  .hilive-home-v3 .hl-services-v3 .hl-service-v3,
  .hilive-home-v3 .hl-services-v3 .hl-service-v3::before,
  .hilive-home-v3 .hl-services-v3 .hl-service-v3::after,
  .hilive-home-v3 .hl-services-v3 .hl-service-v3__cta b,
  .hilive-home-v3 .hl-services-v3 .hl-service-v3__number{
    transition:none!important;
    transform:none!important;
  }
}
