/* =========================================================
   HI-INFOTECH VIDEO GALLERY  (Elementor classes: hi-video-section, hi-video-grid,
   hi-vcard, hi-vthumb, hi-vcard-body, hi-vtag, hi-vtitle, hi-vmeta, hi-video-cta)
   Content (videos, thumbnails, titles, button link) is edited in Elementor.
   Palette: navy #0A1A33 / blue #1E6BFF / cyan #00C2FF / amber #FFB020
   ========================================================= */

/* ---------- Section backdrop: soft glows + faint tech grid ---------- */
.hi-video-section{position:relative;overflow:hidden;isolation:isolate}
.hi-video-section::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:
    radial-gradient(520px 360px at 8% 12%,rgba(0,194,255,.14),transparent 70%),
    radial-gradient(560px 380px at 92% 88%,rgba(30,107,255,.12),transparent 70%),
    linear-gradient(rgba(10,26,51,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(10,26,51,.045) 1px,transparent 1px);
  background-size:auto,auto,48px 48px,48px 48px;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 40%,transparent 85%);
          mask-image:radial-gradient(ellipse at center,#000 40%,transparent 85%);
  animation:hiVGlow 14s ease-in-out infinite alternate;
}
@keyframes hiVGlow{
  0%{background-position:0 0,0 0,0 0,0 0}
  100%{background-position:40px 20px,-40px -20px,0 0,0 0}
}

/* Eyebrow with short accent lines on both sides */
.hi-video-eyebrow .elementor-heading-title{display:inline-flex;align-items:center;gap:12px}
.hi-video-eyebrow .elementor-heading-title::before,
.hi-video-eyebrow .elementor-heading-title::after{
  content:"";width:28px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,#00C2FF,#1E6BFF);
}
.hi-video-eyebrow .elementor-heading-title::after{background:linear-gradient(90deg,#1E6BFF,#00C2FF)}

/* ---------- Grid ---------- */
.hi-video-grid{width:100%}

/* ---------- Card ---------- */
.hi-vcard{
  position:relative;
  transition:transform .55s var(--hi-ease,ease),box-shadow .55s var(--hi-ease,ease),border-color .45s;
  will-change:transform;
}
.hi-vcard::after{ /* animated accent line at the bottom edge */
  content:"";position:absolute;left:0;right:0;bottom:0;height:3px;z-index:3;pointer-events:none;
  background:linear-gradient(90deg,#00C2FF 0%,#1E6BFF 50%,#FFB020 100%);
  transform:scaleX(0);transform-origin:left center;transition:transform .6s var(--hi-ease,ease);
}
.hi-vcard:hover{
  transform:translateY(-8px);
  border-color:rgba(30,107,255,.35)!important;
  box-shadow:0 30px 60px -28px rgba(30,107,255,.55)!important;
}
.hi-vcard:hover::after{transform:scaleX(1)}

/* ---------- Thumbnail / video overlay ---------- */
.hi-vthumb{width:100%}
.hi-vthumb .elementor-widget-container{overflow:hidden;border-radius:0}
.hi-vthumb .elementor-custom-embed-image-overlay,
.hi-vthumb .elementor-wrapper{
  position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#0A1A33;cursor:pointer;
}
.hi-vthumb .elementor-custom-embed-image-overlay img{
  position:absolute;inset:0;width:100%!important;height:100%!important;
  object-fit:cover;display:block;
  transition:transform .9s var(--hi-ease,ease),filter .6s;
}
/* cinematic shade */
.hi-vthumb .elementor-custom-embed-image-overlay::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(180deg,rgba(10,26,51,0) 40%,rgba(10,26,51,.78) 100%),
    linear-gradient(135deg,rgba(30,107,255,.18),rgba(0,194,255,0) 60%);
  transition:opacity .5s;
}
/* "Watch class" chip, slides up on hover */
.hi-vthumb .elementor-custom-embed-image-overlay::after{
  content:"Watch class";position:absolute;left:18px;bottom:16px;z-index:2;pointer-events:none;
  font:600 12px/1 var(--hi-font-head,'Poppins',sans-serif);letter-spacing:.8px;text-transform:uppercase;
  color:#fff;padding:9px 14px;border-radius:999px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  opacity:0;transform:translateY(10px);transition:opacity .45s,transform .45s var(--hi-ease,ease);
}
.hi-vcard:hover .elementor-custom-embed-image-overlay img{transform:scale(1.07);filter:saturate(1.1)}
.hi-vcard:hover .elementor-custom-embed-image-overlay::after{opacity:1;transform:none}

/* ---------- Play button with pulse rings ---------- */
.hi-vthumb .elementor-custom-embed-play{
  position:absolute;left:50%;top:50%;z-index:3;
  width:78px;height:78px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#FFB020;color:#0A1A33;opacity:1!important;
  box-shadow:0 14px 34px -8px rgba(255,176,32,.75);
  transform:translate(-50%,-50%);
  transition:transform .45s var(--hi-ease,ease),background-color .35s,box-shadow .45s;
}
.hi-vthumb .elementor-custom-embed-play i{
  font-size:22px!important;color:#0A1A33!important;opacity:1!important;
  text-shadow:none!important;filter:none!important;margin-left:4px;
}
.hi-vthumb .elementor-custom-embed-play svg{
  width:22px!important;height:22px!important;fill:#0A1A33!important;
  opacity:1!important;filter:none!important;margin-left:4px;
}
.hi-vthumb .elementor-custom-embed-play::before,
.hi-vthumb .elementor-custom-embed-play::after{
  content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;
  border:2px solid rgba(255,176,32,.7);
  animation:hiVPulse 2.4s cubic-bezier(.22,.61,.36,1) infinite;
}
.hi-vthumb .elementor-custom-embed-play::after{animation-delay:1.2s}
@keyframes hiVPulse{
  0%{transform:scale(1);opacity:.9}
  100%{transform:scale(1.9);opacity:0}
}
.hi-vcard:hover .elementor-custom-embed-play{
  transform:translate(-50%,-50%) scale(1.1);
  background:#FFFFFF;box-shadow:0 18px 40px -10px rgba(255,255,255,.6);
}

/* ---------- Card body ---------- */
.hi-vtag .elementor-heading-title{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 12px;border-radius:999px;
  background:rgba(255,176,32,.12);border:1px solid rgba(255,176,32,.35);
}
.hi-vtag .elementor-heading-title::before{
  content:"";width:6px;height:6px;border-radius:50%;background:#FFB020;
}
.hi-vtitle .elementor-heading-title{transition:color .35s}
.hi-vcard:hover .hi-vtitle .elementor-heading-title{color:#1E6BFF!important}
.hi-vmeta{padding-top:12px;border-top:1px solid #EEF4FF;width:100%}
.hi-vmeta .elementor-icon-list-items{row-gap:8px}

/* ---------- Lightbox polish ---------- */
.elementor-lightbox .elementor-video-container .elementor-fit-aspect-ratio,
.elementor-lightbox .elementor-video-container iframe{border-radius:14px;overflow:hidden}

/* ---------- Button ---------- */
.hi-video-cta .elementor-button-icon{transition:transform .35s var(--hi-ease,ease)}
.hi-video-cta .elementor-button:hover .elementor-button-icon{transform:scale(1.15)}

/* ---------- Tablet ---------- */
@media (max-width:1024px){
  .hi-vthumb .elementor-custom-embed-play{width:66px;height:66px}
  .hi-vthumb .elementor-custom-embed-play i{font-size:19px!important}
  .hi-vthumb .elementor-custom-embed-play svg{width:19px!important;height:19px!important}
}

/* ---------- Mobile ---------- */
@media (max-width:767px){
  .hi-vthumb .elementor-custom-embed-play{width:58px;height:58px}
  .hi-vthumb .elementor-custom-embed-play i{font-size:17px!important}
  .hi-vthumb .elementor-custom-embed-play svg{width:17px!important;height:17px!important}
  .hi-vthumb .elementor-custom-embed-image-overlay::after{opacity:1;transform:none;left:14px;bottom:12px;font-size:11px;padding:8px 12px}
  .hi-video-eyebrow .elementor-heading-title::before,
  .hi-video-eyebrow .elementor-heading-title::after{width:18px}
  .hi-video-cta,.hi-video-cta .elementor-button{width:100%}
  .hi-video-cta .elementor-button{justify-content:center}
}

/* Touch screens: no hover lift, keep the chip visible */
@media (hover:none){
  .hi-vcard:hover{transform:none}
  .hi-vthumb .elementor-custom-embed-image-overlay::after{opacity:1;transform:none}
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion:reduce){
  .hi-video-section::before,
  .hi-vthumb .elementor-custom-embed-play::before,
  .hi-vthumb .elementor-custom-embed-play::after{animation:none}
  .hi-vcard,.hi-vcard::after,.hi-vthumb img,.hi-vthumb .elementor-custom-embed-play{transition:none}
}
