/* =====================================================================
   hrms-page.css  -  all CSS of the People & Workplace Management page
   Load it AFTER hrms.css and step.css (same order as the old <style> tags)
   ===================================================================== */

/* ===== Platform tabs: Learn More button ===== */
section.hm-hero {
    background: #fff;
}
.hm-prod-text .hm-learn{display:inline-flex;align-items:center;gap:.55rem;margin-top:1.4rem;text-decoration:none}
.hm-prod-text .hm-learn i{transition:transform .25s ease}
.hm-prod-text .hm-learn:focus-visible{outline:2px solid #ed2024;outline-offset:3px}
@media (hover:hover){.hm-prod-text .hm-learn:hover i{transform:translateX(4px)}}
.hm-pitem{padding:8px 0 24px}
.hm-checklist li strong{font-weight:800}
.hm-checklist li > span{flex:1;min-width:0}
@media (max-width:991.98px){.hm-prod-text .hm-learn{margin-top:1rem}}
@media (prefers-reduced-motion:reduce){.hm-prod-text .hm-learn i{transition:none}}

/* ===================== CLIENTS THAT TRUST US ===================== */
.hm-clients{position:relative;padding:50px 0;background:#fff;overflow:hidden}
.hm-clients::before{content:"";position:absolute;right:-120px;top:-120px;width:340px;height:340px;border-radius:50%;
  background:radial-gradient(rgba(237,32,36,.10),transparent 70%);pointer-events:none}
.hm-cl-grid{position:relative}

/* slider row */
.hm-cl-rows{display:flex;flex-direction:column;gap:14px;min-width:0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.hm-cl-row{overflow:hidden;padding:6px 0}
.hm-cl-track{display:flex;gap:14px;width:max-content;animation:hmClMove var(--dur,40s) linear infinite}
.hm-cl-row.rev .hm-cl-track{animation-direction:reverse}
@keyframes hmClMove{to{transform:translateX(calc(-50% - 7px))}}   /* 7px = half the gap */

/* logo cards */
.hm-cl-logo{flex:none;width:170px;height:84px;display:grid;place-items:center;padding:12px 18px;background:#fff;
  border:1px solid var(--hm-line);border-radius:14px;box-shadow:0 10px 24px -20px rgba(20,51,79,.45);
  transition:transform .3s,border-color .3s,box-shadow .3s}
.hm-cl-logo img{max-width:100%;max-height:50px;width:auto;object-fit:contain;filter:grayscale(1);opacity:.7;transition:filter .3s,opacity .3s}
@media (hover:hover){
  .hm-cl-row:hover .hm-cl-track{animation-play-state:paused}
  .hm-cl-logo:hover{transform:translateY(-4px);border-color:#f2b8ba;box-shadow:0 18px 30px -20px rgba(237,32,36,.55)}
  .hm-cl-logo:hover img{filter:none;opacity:1}
}
/* touch screens: show logos in colour (there is no hover) */
@media (hover:none){
  .hm-cl-logo img{filter:none;opacity:1}
}

@media (max-width:575px){
  .hm-clients{padding:40px 0}
  .hm-cl-rows{-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
                      mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
  .hm-cl-logo{width:120px;height:64px;padding:10px 12px;border-radius:12px}
  .hm-cl-logo img{max-height:38px}
  .hm-cl-track{gap:10px}
  @keyframes hmClMove{to{transform:translateX(calc(-50% - 5px))}}
}
@media (prefers-reduced-motion:reduce){
  .hm-cl-track{animation:none!important}
  .hm-cl-row{overflow-x:auto;scrollbar-width:none}
}

/* ===== Platform tabs: light red tint + gradient on hover / selected ===== */
#hmPlatform .hm-pnav .hm-tabs{background:linear-gradient(180deg,#fff 0%,#fff3f3 100%);border:1px solid #f7d6d7;
  box-shadow:0 14px 30px -20px rgba(237,32,36,.45),inset 0 1px 0 #fff}
#hmPlatform .hm-pnav .hm-tabs li{border-right-color:#f7dfe0}

/* gradient layer behind each tab: fades in on hover, stays on when selected */
#hmPlatform .hm-pnav .hm-tabs .nav-link{position:relative;isolation:isolate;overflow:hidden;background:transparent!important;
  border-radius:10px!important;transition:color .3s ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
#hmPlatform .hm-pnav .hm-tabs .nav-link::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;
  background:linear-gradient(90deg,#ed2024 0%,#14334f 100%);opacity:0;transform:scale(.96);
  transition:opacity .3s ease,transform .3s ease}
#hmPlatform .hm-pnav .hm-tabs .nav-link:focus-visible::before,
#hmPlatform .hm-pnav .hm-tabs .nav-link.active::before{opacity:1;transform:none}
#hmPlatform .hm-pnav .hm-tabs .nav-link:focus-visible,
#hmPlatform .hm-pnav .hm-tabs .nav-link.active{color:#fff!important}
#hmPlatform .hm-pnav .hm-tabs .nav-link.active{box-shadow:0 10px 22px -12px rgba(237,32,36,.65)}

/* icon chip */
#hmPlatform .hm-pnav .hm-tabs .nav-link i{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;
  background:#fdeaea;color:#ed2024;transition:background .3s,color .3s,transform .3s}
#hmPlatform .hm-pnav .hm-tabs .nav-link:focus-visible i,
#hmPlatform .hm-pnav .hm-tabs .nav-link.active i{background:rgba(255,255,255,.2);color:#fff}
#hmPlatform .hm-pnav.is-stuck .hm-tabs .nav-link i{width:24px;height:24px}

/* hover effect only on devices with a real mouse */
@media (hover:hover){
  #hmPlatform .hm-pnav .hm-tabs .nav-link:hover::before{opacity:1;transform:none}
  #hmPlatform .hm-pnav .hm-tabs .nav-link:hover{color:#fff!important}
  #hmPlatform .hm-pnav .hm-tabs .nav-link:hover i{background:rgba(255,255,255,.2);color:#fff}
}

/* module tabs (Company, Employee, ...) also tap-friendly */
#hmPlatform .hm-pnav .hm-subtabs .nav-link{-webkit-tap-highlight-color:transparent;touch-action:manipulation}

/* ---------- mobile ---------- */
@media (max-width:767px){
  #hmPlatform .hm-pnav .hm-tabs .nav-link{gap:7px}
  #hmPlatform .hm-pnav .hm-tabs .nav-link i,
  #hmPlatform .hm-pnav.is-stuck .hm-tabs .nav-link i{width:22px;height:22px;border-radius:6px;font-size:11px;margin-right:0}
  #hmPlatform .hm-pnav .hm-tabs{border-radius:12px}
  .hm-pitem{padding:4px 0 16px}
  .hm-prod-text h3{font-size:21px}
  .hm-prod-text .hm-learn{width:100%;justify-content:center}
}
@media (prefers-reduced-motion:reduce){#hmPlatform .hm-pnav .hm-tabs .nav-link::before{transition:none}}


/* ===================== HERO PRODUCT HUB ===================== */
@media (min-width:1200px){
  .hm-hero .hm-c1{width:56%}
  .hm-hero .hm-c-hub{width:44%}
}
.hm-hero .hm-c1 .lead-txt{max-width:560px}
.hm-hero .hm-c-hub{display:flex;justify-content:center}

.hm-hubbox{
  width:100%;
  /* as big as the column allows, but never taller than the screen */
  max-width:min(560px,max(460px,calc((100vh - 150px) * 1.2)));min-width:280px;
  container-type:inline-size;
}
.hm-hub{position:relative;width:100%;aspect-ratio:6/5}
.hm-hub::before{                       /* soft halo */
  content:"";position:absolute;inset:8% 14%;border-radius:50%;z-index:0;
  background:radial-gradient(ellipse,rgba(237,32,36,.15) 0%,rgba(237,32,36,.05) 45%,transparent 70%);
}

/* ---------- SVG layer: rings, spokes, travelling data packets ---------- */
.hm-hub-svg{position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:visible}
.hm-hub-svg .ring-out{fill:none;stroke:#f0c3c5;stroke-width:.3;stroke-dasharray:1 1.7;animation:hmHubFlow 6s linear infinite}
.hm-hub-svg .ring-mid{fill:none;stroke:rgba(20,51,79,.12);stroke-width:.25}
.hm-hub-svg .orbit{fill:#ed2024}
.hm-hub-svg .orbit.o2{fill:#14334f}
.hm-hub-svg .sp{fill:none;stroke:#efc4c6;stroke-width:.35;stroke-dasharray:1.2 1.4;animation:hmHubFlow 1.6s linear infinite reverse;transition:stroke .4s,stroke-width .4s}
.hm-hub-svg .sp.is-on{stroke:url(#hmHubGrad);stroke-width:.75;stroke-dasharray:2 1.2;animation-duration:.9s}
.hm-hub-svg .pkt{fill:#ed2024;opacity:0;transition:opacity .3s}
.hm-hub-svg .pkt.is-on{opacity:1}
@keyframes hmHubFlow{to{stroke-dashoffset:-5.4}}

/* ---------- product chips ---------- */
.hm-hub-node{
  position:absolute;left:var(--x);top:var(--y);z-index:3;transform:translate(-50%,-50%);
  display:flex;align-items:center;gap:1.2cqw;width:max-content;
  padding:.9cqw 1.6cqw .9cqw .9cqw;border-radius:2cqw;
  background:rgba(255,255,255,.88);border:1px solid #f6d2d3;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:0 16px 30px -18px rgba(20,51,79,.5);
  text-decoration:none!important;color:var(--hm-ink,#14334f);
  transition:background .35s,border-color .35s,box-shadow .35s,transform .35s;
  -webkit-tap-highlight-color:transparent;
}
.hm-hub-node .ic{
  flex:none;width:5.6cqw;height:5.6cqw;border-radius:30%;display:grid;place-items:center;font-size:2.3cqw;
  background:#fdeaea;color:var(--hm-blue,#ed2024);transition:background .35s,color .35s;
}
.hm-hub-node .tx{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.hm-hub-node .tx b{font-size:max(11px,1.95cqw);font-weight:800;white-space:nowrap}
.hm-hub-node .tx small{font-size:max(9.5px,1.45cqw);font-weight:600;color:var(--hm-muted,#3b3939);white-space:nowrap;margin-top:.3cqw;transition:color .35s}
.hm-hub-node.is-on{
  background:var(--hm-grad-main,linear-gradient(135deg,#ed2024,#14334f));border-color:transparent;color:#fff;
  box-shadow:0 18px 30px -14px rgba(237,32,36,.6);transform:translate(-50%,-50%) scale(1.04);
}
.hm-hub-node.is-on .ic{background:rgba(255,255,255,.2);color:#fff}
.hm-hub-node.is-on .tx small{color:rgba(255,255,255,.85)}
.hm-hub-node::after{                    /* pulse ring on the active chip */
  content:"";position:absolute;inset:-5px;border-radius:2.6cqw;border:2px solid rgba(237,32,36,.45);opacity:0;pointer-events:none;
}
.hm-hub-node.is-on::after{animation:hmHubPing 1.8s ease-out infinite}
@media (hover:hover){ .hm-hub-node:not(.is-on):hover{border-color:#f2b8ba;box-shadow:0 20px 34px -18px rgba(237,32,36,.45)} }
.hm-hub-node:focus-visible{outline:3px solid var(--hm-gold,#f8b400);outline-offset:3px}
@keyframes hmHubPing{from{opacity:1;transform:scale(.96)}to{opacity:0;transform:scale(1.12)}}

/* gentle floating of all chips */
.hm-hub-float{position:absolute;inset:0;z-index:3;pointer-events:none;animation:hmHubBob 6s ease-in-out infinite}
.hm-hub-float>*{pointer-events:auto}
.hm-hub-float>.hm-hub-feat{pointer-events:none}
@keyframes hmHubBob{50%{transform:translateY(-5px)}}

/* ---------- centre core ---------- */
.hm-hub-core{
  position:absolute;left:50%;top:50%;z-index:2;width:36cqw;height:36cqw;transform:translate(-50%,-50%);
  border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff 0%,#fff 55%,#fff4f4 100%);
  border:1px solid #f6d6d7;
  box-shadow:0 30px 60px -30px rgba(20,51,79,.5),0 0 0 2cqw rgba(255,255,255,.55),inset 0 1px 0 #fff;
}
.hm-hub-core::before{                   /* slowly turning gradient halo */
  content:"";position:absolute;inset:-3.4cqw;border-radius:50%;z-index:-1;
  background:conic-gradient(from 0deg,rgba(237,32,36,0),rgba(237,32,36,.45),rgba(20,51,79,0) 40%,rgba(20,51,79,.35) 70%,rgba(237,32,36,0));
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px));
          mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px));
  animation:hmHubSpin 8s linear infinite;
}
@keyframes hmHubSpin{to{transform:rotate(360deg)}}
.hm-hub-timer{position:absolute;inset:-1.4cqw;width:calc(100% + 2.8cqw);height:calc(100% + 2.8cqw);transform:rotate(-90deg);pointer-events:none}
.hm-hub-timer circle{fill:none;stroke-width:1.2}
.hm-hub-timer .bg{stroke:#f6dcdd}
.hm-hub-timer .fg{stroke:url(#hmHubGrad2);stroke-linecap:round;stroke-dasharray:301.6;stroke-dashoffset:301.6}
.hm-hub-core.run .hm-hub-timer .fg{animation:hmHubTimer var(--hub-delay,3.6s) linear forwards}
@keyframes hmHubTimer{to{stroke-dashoffset:0}}

.hm-hub-panes{position:absolute;inset:0;display:grid;place-items:center;padding:3.4cqw;text-align:center}
.hm-hub-pane{
  grid-area:1/1;display:flex;flex-direction:column;align-items:center;gap:1.1cqw;
  opacity:0;visibility:hidden;transform:translateY(10px) scale(.96);
  transition:opacity .45s ease,transform .55s cubic-bezier(.2,.7,.2,1),visibility 0s linear .45s;
}
.hm-hub-pane.is-on{opacity:1;visibility:visible;transform:none;transition:opacity .45s ease .1s,transform .55s cubic-bezier(.2,.7,.2,1) .1s,visibility 0s}
.hm-hub-pane .pi{
  width:8cqw;height:8cqw;border-radius:30%;display:grid;place-items:center;font-size:3.4cqw;color:#fff;
  background:var(--hm-grad-main,linear-gradient(135deg,#ed2024,#14334f));box-shadow:0 10px 20px -10px rgba(237,32,36,.7);
}
.hm-hub-pane b{display:block;font-size:max(13px,2.9cqw);font-weight:800;line-height:1.2;color:var(--hm-ink,#14334f)}
.hm-hub-pane p{margin:0;font-size:max(11px,1.95cqw);line-height:1.45;color:var(--hm-muted,#3b3939)}
.hm-hub-pane a{
  display:inline-flex;align-items:center;gap:.4em;font-size:max(11.5px,2.05cqw);font-weight:700;
  color:var(--hm-blue,#ed2024)!important;text-decoration:none;
}
.hm-hub-pane a i{transition:transform .25s}
@media (hover:hover){ .hm-hub-pane a:hover i{transform:translateX(3px)} }
.hm-hub-pane a:focus-visible{outline:3px solid var(--hm-gold,#f8b400);outline-offset:2px;border-radius:4px}

/* ---------- KEY FEATURES box: glass + tree ---------- */
.hm-hub-feat{
  --rh:max(15px,2.9cqw);          /* row height / icon size */
  --g:max(3px,.5cqw);              /* gap between rows */
  --pp:max(3px,.4cqw);
  --lc:rgba(20,51,79,.32);        /* tree line colour */
  position:absolute;z-index:5;left:var(--x);top:calc(var(--y) + 4.6cqw);
  --tx:-50%;--ty:0%;
  transform:translate(var(--tx),var(--ty));
  translate:0 8px;
  display:flex;flex-direction:column;align-items:flex-start;width:max-content;
  padding:.95cqw 1.7cqw 1.05cqw 1.1cqw;border-radius:2cqw;
  background:linear-gradient(135deg,rgba(255,255,255,.60) 0%,rgba(255,255,255,.22) 55%,rgba(255,236,236,.32) 100%);
  -webkit-backdrop-filter:blur(16px) saturate(170%);backdrop-filter:blur(16px) saturate(170%);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 18px 40px -16px rgba(20,51,79,.38),0 2px 0 rgba(255,255,255,.7) inset,0 0 0 1px rgba(237,32,36,.07);
  color:var(--hm-ink,#14334f);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .3s ease,translate .3s ease,visibility 0s linear .3s;
}
.hm-hub-feat::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,.65) 0%,rgba(255,255,255,0) 38%);opacity:.55;
}
.hm-hub-feat.fp-a{top:calc(var(--y) - 4.6cqw);--ty:-100%}
.hm-hub-feat.fp-l{--tx:-34%}
.hm-hub-feat.fp-r{--tx:-66%}
.hm-hub-feat.is-on{
  opacity:1;visibility:visible;translate:0 0;
  transition:opacity .45s ease .15s,translate .55s cubic-bezier(.2,.9,.3,1.2) .15s,visibility 0s;
}

/* root of the tree: icon only */
.hm-hub-feat .root{
  position:relative;display:grid;place-items:center;flex:none;
  width:var(--rh);height:var(--rh);border-radius:50%;
  background:var(--hm-grad-main,linear-gradient(135deg,#ed2024,#14334f));
  box-shadow:0 8px 16px -8px rgba(237,32,36,.6);
  color:#fff;font-size:max(8.5px,1.5cqw);
}

/* branches */
.hm-hub-feat .ft{
  position:relative;list-style:none;margin:var(--g) 0 0 calc(var(--rh) / 2);padding:0;
}
.hm-hub-feat .ft li{position:relative;padding-left:calc(var(--rh) * .55 + 4px);margin-top:var(--g)}
.hm-hub-feat .ft li:first-child{margin-top:0}
.hm-hub-feat .ft li::after{
  content:"";position:absolute;left:0;top:calc(var(--g) * -1);bottom:0;border-left:1.5px solid var(--lc);
}
.hm-hub-feat .ft li:last-child::after{bottom:auto;height:calc(var(--g) + var(--rh) / 2)}
.hm-hub-feat .ft li::before{
  content:"";position:absolute;left:0;top:calc(var(--rh) / 2);width:calc(var(--rh) * .55 + 2px);
  border-top:1.5px solid var(--lc);
}
.hm-hub-feat .fi{
  position:relative;display:flex;align-items:center;gap:.8cqw;min-height:var(--rh);white-space:nowrap;
  font-size:max(10.5px,1.7cqw);font-weight:700;line-height:1.2;
}
.hm-hub-feat .fi i{
  flex:none;width:var(--rh);height:var(--rh);border-radius:50%;display:grid;place-items:center;
  font-size:max(8.5px,1.4cqw);color:#fff;background:#22a06b;box-shadow:0 4px 10px -4px rgba(34,160,107,.7);
}
.hm-hub-feat .ft > li:nth-child(even) > .fi i{background:linear-gradient(135deg,#ed2024,#14334f);box-shadow:0 4px 10px -4px rgba(237,32,36,.6)}
.hm-hub-feat .ft .ft{margin-left:calc(var(--rh) * .55 + 4px + var(--rh) / 2 - 1px)}
.hm-hub-feat .ft .ft .fi{font-size:max(10px,1.6cqw);font-weight:600}
.hm-hub-feat .ft .ft .fi i{width:calc(var(--rh) * .7);height:calc(var(--rh) * .7);background:#14334f;box-shadow:none;font-size:max(7px,1.1cqw)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .hm-hub-feat{background:rgba(255,255,255,.92)}
}

/* ---------- phones only: core on top, products as a 2-column list ---------- */
@media (max-width:575px){
  .hm-hub{aspect-ratio:auto;display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hm-hub::before{inset:-4% 0 auto;height:300px}
  .hm-hub-svg,.hm-hub-feat{display:none}
  .hm-hub-float{display:contents;animation:none}
  .hm-hub-core{
    position:relative;left:auto;top:auto;transform:none;grid-column:1/-1;justify-self:center;
    width:min(250px,64cqw);height:min(250px,64cqw);margin:18px 0 22px;
  }
  .hm-hub-core::before{inset:-12px}
  .hm-hub-timer{inset:-8px;width:calc(100% + 16px);height:calc(100% + 16px)}
  .hm-hub-panes{padding:24px}
  .hm-hub-pane{gap:6px}
  .hm-hub-pane .pi{width:40px;height:40px;font-size:16px}
  .hm-hub-pane b{font-size:15px}
  .hm-hub-pane p{font-size:12px}
  .hm-hub-pane a{font-size:13px}
  .hm-hub-node{
    position:relative;left:auto;top:auto;transform:none;max-width:none;width:auto;
    padding:9px 10px;border-radius:14px;gap:9px;text-align:left;
  }
  .hm-hub-node.is-on{transform:none}
  .hm-hub-node::after{border-radius:16px}
  .hm-hub-node .ic{width:36px;height:36px;font-size:15px;border-radius:10px}
  .hm-hub-node .tx b{font-size:13px;white-space:normal}
  .hm-hub-node .tx small{font-size:11px;white-space:normal}
}

/* ---------- layout ---------- */
@media (max-width:991px){
  .hm-hero .hm-c-hub{margin-top:6px}
  .hm-hero .hm-c1 .lead-txt{max-width:none}
  .hm-hubbox{max-width:560px;margin:0 auto}
}

/* ---------- HERO LIST ---------- */
.hm-hero .ul-hero{margin:18px 0 6px;max-width:650px}
.hm-hero .ul-hero ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hm-hero .ul-hero ul li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 10px 6px 6px;
    border-radius: 12px;
    list-style: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}
.hm-hero .ul-hero ul li::after{content:none!important}
.hm-hero .ul-hero ul li::before{
  content:""!important;position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(90deg,rgba(237,32,36,.40),rgba(20,51,79,.28));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
}
.hm-hero .ul-hero ul li .ic{
  flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:13px;
  background:#fdeaea;color:#ed2024;
}
.hm-hero .ul-hero ul li .tx{flex:1;min-width:0}

@media (max-width:991px){ .hm-hero .ul-hero{max-width:none} }
@media (max-width:420px){ .hm-hero .ul-hero ul{grid-template-columns:1fr;gap:8px} }

@media (prefers-reduced-motion:reduce){
  .hm-hub-svg .ring-out,.hm-hub-svg .sp,.hm-hub-float,.hm-hub-node::after,.hm-hub-core::before{animation:none!important}
  .hm-hub-svg .pkt,.hm-hub-svg .orbit{display:none}
  .hm-hub-pane,.hm-hub-node,.hm-hub-feat{transition:none}
}


/* ===================== WATCH DEMO MODAL ===================== */
.hm-demo{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:16px;
  background:rgba(10,22,36,.68);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s}
.hm-demo.is-open{opacity:1;visibility:visible;transition:opacity .3s ease}
.hm-demo-dlg{position:relative;box-sizing:border-box;
  width:min(960px,100%,calc((100vh - 270px) * 1.7778 + 36px));
  width:min(960px,100%,calc((100dvh - 270px) * 1.7778 + 36px));
  min-width:min(100%,520px);
  max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:hidden;overflow:clip;
  background:#fff;border-radius:20px;padding:14px 18px 16px;box-shadow:0 40px 90px -30px rgba(0,0,0,.65);
  transform:translateY(14px) scale(.98);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.hm-demo.is-open .hm-demo-dlg{transform:none}
.hm-demo-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:-14px -18px 12px;padding:10px 18px;
  background:var(--hm-grad-main,linear-gradient(135deg,#ed2024,#14334f));
  box-shadow:0 10px 22px -14px rgba(237,32,36,.6)}
.hm-demo-head h3{margin:0;font-size:19px;font-weight:800;color:#fff;line-height:1.2}
.hm-demo-head small{display:block;font-size:12.5px;font-weight:600;color:rgba(255,255,255,.85);margin-top:2px}
.hm-demo-x{flex:none;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:15px;cursor:pointer;
  display:grid;place-items:center;transition:background .25s,color .25s,transform .25s}
.hm-demo-x:hover{background:#fff;color:#ed2024;transform:rotate(90deg)}
.hm-demo-x:focus-visible{outline:3px solid #fff;outline-offset:2px}
.hm-demo-th:focus-visible,.hm-demo-poster:focus-visible{outline:3px solid var(--hm-gold,#f8b400);outline-offset:2px}

.hm-demo-player{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#0d1b2a}
.hm-demo-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.hm-demo-poster{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;cursor:pointer;background:#0d1b2a}
.hm-demo-poster img{width:100%;height:100%;object-fit:cover;display:block;opacity:.85}
.hm-demo-poster::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,51,79,.1),rgba(20,51,79,.55))}
.hm-demo-poster .pl{position:absolute;z-index:1;left:50%;top:50%;width:68px;height:68px;margin:-34px 0 0 -34px;border-radius:50%;
  display:grid;place-items:center;font-size:22px;color:#fff;padding-left:4px;
  background:var(--hm-grad-main,linear-gradient(135deg,#ed2024,#14334f));box-shadow:0 0 0 10px rgba(255,255,255,.2),0 18px 30px -10px rgba(237,32,36,.7);
  transition:transform .3s}
.hm-demo-poster:hover .pl{transform:scale(1.08)}
.hm-demo-now{margin:8px 2px 0;font-size:13.5px;font-weight:700;color:var(--hm-ink,#14334f);display:flex;align-items:center;gap:8px;min-height:20px}
.hm-demo-now i{color:#ed2024}

.hm-demo-thumbs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:10px}
.hm-demo-th{position:relative;display:block;min-width:0;padding:0;text-align:center;cursor:pointer;background:#fff;
  border:2px solid #f3dcdd;border-radius:12px;overflow:hidden;box-shadow:0 10px 18px -16px rgba(20,51,79,.55);
  transition:transform .25s,border-color .25s,box-shadow .25s}
.hm-demo-th .im{position:relative;display:block;aspect-ratio:16/9;background:#14334f}
.hm-demo-th .im img{width:100%;height:100%;object-fit:cover;display:block}
.hm-demo-th .im::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,51,79,0) 40%,rgba(20,51,79,.5))}
.hm-demo-th .pl{position:absolute;z-index:1;left:50%;top:50%;width:28px;height:28px;margin:-14px 0 0 -14px;border-radius:50%;
  display:grid;place-items:center;font-size:10px;color:#fff;padding-left:2px;background:rgba(237,32,36,.92);
  box-shadow:0 0 0 4px rgba(255,255,255,.28);transition:transform .25s}
.hm-demo-th .tt{display:block;padding:6px 4px;font-size:11.5px;font-weight:700;color:var(--hm-ink,#14334f);line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-demo-th.is-active{border-color:#ed2024;box-shadow:0 14px 22px -14px rgba(237,32,36,.6)}
.hm-demo-th.is-active .tt{color:#ed2024}
@media (hover:hover){.hm-demo-th:hover{transform:translateY(-3px);border-color:#f2b8ba}.hm-demo-th:hover .pl{transform:scale(1.12)}}

@media (max-height:480px){.hm-demo-dlg{overflow:auto}}
@media (max-width:640px){
  .hm-demo{padding:10px}
  .hm-demo-player{width:min(100%,calc((100vh - 320px) * 1.7778));width:min(100%,calc((100dvh - 320px) * 1.7778));min-width:200px;margin-inline:auto}
  .hm-demo-dlg{width:100%;min-width:0;padding:12px 12px 14px;border-radius:16px}
  .hm-demo-head{margin:-12px -12px 10px;padding:9px 12px}
  .hm-demo-head h3{font-size:16px}
  .hm-demo-head small{display:none}
  .hm-demo-thumbs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .hm-demo-th .tt{font-size:11px;padding:5px 3px}
  .hm-demo-poster .pl{width:54px;height:54px;margin:-27px 0 0 -27px;font-size:18px}
}
@media (prefers-reduced-motion:reduce){.hm-demo,.hm-demo-dlg,.hm-demo-x,.hm-demo-th,.hm-demo-th .pl,.hm-demo-poster .pl{transition:none}}