/* ===================================================================
   Hero Slider — Elementor Widget Frontend CSS
   Full-screen background image slider with blue mask sweep transition
   =================================================================== */

/* ===== Scoped Reset ===== */
.hs-wrap {
  isolation: isolate;
}

.hs-wrap *,
.hs-wrap *::before,
.hs-wrap *::after {
  box-sizing: border-box !important;
}

.hs-wrap a {
  text-decoration: none !important;
  cursor: pointer;
}

/* ===== Row Container ===== */
.hs-row {
  margin: auto;
  position: relative;
  overflow: hidden;
}

/* ===== Diagonal Edges ===== */
.hs-row::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 120px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
  z-index: 3000;
  pointer-events: none;
}

.hs-row::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 120px;
  background: #fff;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 3000;
  pointer-events: none;
}

/* ===== Skewed Background Container ===== */
.hs-skew {
  position: absolute;
  width: 100%; height: 100%;
  left: 0; top: 0;
  transform: skew(0, -2.4deg);
  transform-origin: left top;
  overflow: hidden;
  z-index: 1000;
}

/* ===== Blue Overlay Mask ===== */
.hs-mask {
  mix-blend-mode: multiply;
  transform-origin: 100% 50%;
  position: absolute;
  width: 100%; height: 100%;
  right: 50%;
  top: 0; bottom: 0; margin: auto;
  background-color: #275cfd;
  z-index: 10000;
}

/* Mask phase 1: sweep to full */
.hs-mask.hs-mask1 {
  right: 0%;
  transition: all 0.3s ease-in-out;
}

/* Mask phase 2: sweep off right */
.hs-mask.hs-mask2 {
  animation: hs-maskmove 1s forwards ease-in-out;
}

/* Mask phase 3: return to default */
.hs-mask.hs-mask3 {
  animation: hs-maskmove2 0.5s forwards ease-in-out;
}

@keyframes hs-maskmove {
  0%     { right: 0;      height: 100%; }
  99%    { right: -100%;  height: 100%; }
  99.99% { right: -100%;  height: 0%;   }
  100%   { right: 100%;   height: 100%; }
}

@keyframes hs-maskmove2 {
  0%   { right: 100%; height: 100%; }
  100% { right: 50%;  height: 100%; }
}

/* ===== Background Image Slides ===== */
.hs-slide {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background-size: cover !important;
  background-position: center !important;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.hs-slide.hs-current {
  opacity: 1;
  z-index: 1000;
}

/* ===== Text Overlay Layer ===== */
.hs-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2000;
  height: 100%;
}

/* Text positioning */
.hs-text {
  display: inline-block;
  position: absolute;
  top: 0; bottom: 0;
  margin: auto;
  height: 200px;
  transform-origin: 50% 0%;
  transform: scale(1.2) translateY(100px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.7, 0.01, 0.3, 1);
  filter: blur(3px);
}

.hs-text.hs-go {
  transform: scale(1) translateY(0);
  opacity: 1;
  filter: blur(0px);
}

/* ===== Slide Titles ===== */
.hs-titles h4 {
  display: none;
  position: relative;
  line-height: 54px;
  margin: 0;
  padding: 0;
}

.hs-titles h4 > span {
  font-size: 36px;
  color: #fff;
  display: block;
  filter: blur(3px);
  transition: filter 0.8s cubic-bezier(0.7, 0.01, 0.3, 1);
}

.hs-titles h4 > small {
  font-size: 18px;
  color: #fff;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.4;
  margin-top: 4px;
}

.hs-titles h4::after {
  content: '';
  height: 1px;
  width: 100%;
  background-color: rgba(255,255,255,0.3);
  bottom: 0; left: 0;
  position: absolute;
}

.hs-titles h4.hs-show {
  display: inline-block;
}

.hs-titles h4.hs-show > span {
  filter: blur(0px);
}

/* ===== Arrow Buttons ===== */
.hs-arrows {
  height: 46px;
  line-height: 46px;
  margin: 30px 0 140px 0;
}

.hs-arrows > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #fff;
  vertical-align: top;
  margin-right: 8px;
  cursor: pointer;
}

.hs-arrows > a:hover {
  background-color: rgba(38,38,38,0.9);
  border-color: transparent;
}

.hs-arrows > a svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ===== Responsive ===== */

/* Large Desktop ≤ 1440px */
@media screen and (max-width: 1440px) {
  .hs-content {
    max-width: 1100px;
  }
}

/* Small Desktop ≤ 1280px */
@media screen and (max-width: 1280px) {
  .hs-content {
    max-width: 960px;
  }
  .hs-titles h4 > span {
    font-size: 32px;
  }
  .hs-titles h4 > small {
    font-size: 16px;
  }
}

/* Tablet Landscape ≤ 1024px */
@media screen and (max-width: 1024px) {
  .hs-content {
    max-width: 90%;
    padding: 0 20px;
  }
  .hs-titles h4 {
    line-height: 44px;
  }
  .hs-titles h4 > span {
    font-size: 30px;
  }
  .hs-titles h4 > small {
    font-size: 15px;
    letter-spacing: 1.5px;
  }
  .hs-text {
    height: 180px;
  }
  .hs-row::before,
  .hs-row::after {
    height: 80px;
  }
  .hs-arrows {
    margin-bottom: 100px;
  }
}

/* Tablet Portrait ≤ 800px */
@media screen and (max-width: 800px) {
  .hs-titles h4 {
    line-height: 34px;
  }
  .hs-titles h4 > span {
    font-size: 28px;
  }
  .hs-titles h4 > small {
    font-size: 14px;
    width: 80%;
    display: inline-block;
    line-height: 22px;
  }
  .hs-text {
    height: 150px;
  }
  .hs-arrows {
    margin-top: 10px;
    margin-bottom: 60px;
  }
  .hs-row::before,
  .hs-row::after {
    height: 60px;
  }
}

/* Large Phone ≤ 640px */
@media screen and (max-width: 640px) {
  .hs-titles h4 > span {
    font-size: 24px;
  }
  .hs-titles h4 > small {
    font-size: 13px;
    width: 90%;
    line-height: 20px;
    letter-spacing: 1px;
  }
  .hs-text {
    height: 140px;
  }
  .hs-arrows {
    margin-bottom: 40px;
  }
  .hs-arrows > a {
    width: 40px; height: 40px;
  }
  .hs-arrows > a svg {
    width: 16px; height: 16px;
  }
  .hs-row::before,
  .hs-row::after {
    height: 40px;
  }
}

/* Phone ≤ 480px */
@media screen and (max-width: 480px) {
  .hs-titles h4 {
    line-height: 28px;
  }
  .hs-titles h4 > span {
    font-size: 20px;
  }
  .hs-titles h4 > small {
    font-size: 12px;
    width: 100%;
    line-height: 18px;
    letter-spacing: 0.5px;
  }
  .hs-text {
    height: 120px;
  }
  .hs-arrows {
    margin-top: 8px;
    margin-bottom: 30px;
  }
  .hs-arrows > a {
    width: 36px; height: 36px;
    margin-right: 6px;
  }
  .hs-arrows > a svg {
    width: 14px; height: 14px;
  }
  .hs-row::before,
  .hs-row::after {
    height: 30px;
  }
}

/* Small Phone ≤ 375px */
@media screen and (max-width: 375px) {
  .hs-titles h4 > span {
    font-size: 18px;
  }
  .hs-titles h4 > small {
    font-size: 11px;
  }
  .hs-text {
    height: 110px;
  }
  .hs-arrows {
    margin-bottom: 20px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hs-text {
    transition: none;
  }
  .hs-titles h4 > span {
    filter: none !important;
    transition: none;
  }
  .hs-mask.hs-mask2,
  .hs-mask.hs-mask3 {
    animation: none !important;
  }
}
