@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
body{margin:0;}
#heroCarousel,*#heroCarousel *{font-family:'Poppins',sans-serif;}

/* Container */
#heroCarousel {
  display: flex;
  gap: 16px;
  width: 100%;
  height: 92vh;
  min-height: 480px;
  max-height: 80vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
  align-items: stretch;
  cursor: default;
  user-select: none;
  touch-action: pan-y;
  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
}
#heroCarousel.dragging {
  cursor: grabbing;
}

/* Slides */
#heroCarousel .slide {
  position: relative;
  flex: 1;
  min-width: 0;
  border: none;
  overflow: hidden;
  opacity: 0.58;
  filter: grayscale(1);
  transition:
    flex 0.6s cubic-bezier(0.22,1,0.36,1),
    opacity 0.18s,
    filter 0.24s,
    box-shadow 0.27s cubic-bezier(.7,.2,.1,1),
    z-index 0.14s;
  cursor: pointer;
  border-radius: 16px;
  background: #222;
  margin: 0;
}
#heroCarousel .slide.active {
  flex: 4;
  opacity: 1;
  filter: none;
  z-index: 2;
}
#heroCarousel .slide.inactive:hover {
  opacity: 0.9;
  filter: grayscale(0.15);
  z-index: 1;
  box-shadow: 0 4px 24px 0 rgba(255,255,255,0.09);
}

/* Images always cover */
#heroCarousel .slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(.7,.2,.1,1);
  background: #181818;
}
#heroCarousel .slide.active img {
  transform: scale(1.04);
}
#heroCarousel .slide.inactive img {
  transform: scale(1);
}

/* Overlay for active slide */
#heroCarousel .slide.active::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 44%;
  background: linear-gradient(to top, rgba(0,0,0,0.82), transparent 95%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s;
  border-bottom-left-radius: 0px!important;
  border-bottom-right-radius: 0px!important;
}
#heroCarousel .slide.inactive::before { display: none !important; }

/* --- MODERN CONTENT ANIMATION --- */
@keyframes contentEnter {
  from { opacity:0; transform: translateY(40px) scale(0.98) skewY(2deg); }
  55% { opacity:0.77; transform: translateY(-8px) scale(1.01) skewY(-0.6deg);}
  to   { opacity:1; transform: translateY(0) scale(1) skewY(0);}
}
@keyframes fadeStaggerUp {
  from { opacity:0; transform: translateY(28px) scale(0.97);}
  to   { opacity:1; transform: translateY(0) scale(1);}
}

#heroCarousel .slide .content {
  position: absolute;
  bottom: 38px;
  left: 64px;
  color: #fff;
  max-width: 64%;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: none;
  z-index: 10;
  pointer-events: none;
  user-select: auto;
  text-shadow: 0 4px 32px rgba(0,0,0,0.4);
  padding: 0 0 0 0;

  /* NEW: entry anims, but only when .active! */
}
#heroCarousel .slide.active .content {
  opacity: 1;
  transform: none;
  animation: contentEnter 0.66s cubic-bezier(.65,1.6,.41,1) both;
  animation-delay: 0.06s;
  pointer-events: auto;
}

/* --- Stagger the children --- */
#heroCarousel .slide .content > * {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: none;
  /* Avoid any flicker if you click fast */
}
#heroCarousel .slide.active .content > * {
  animation: fadeStaggerUp 0.6s cubic-bezier(.66,1.5,.34,1) both;
}
#heroCarousel .slide.active .content > *:nth-child(1) { animation-delay: 0.18s; }
#heroCarousel .slide.active .content > *:nth-child(2) { animation-delay: 0.27s; }
#heroCarousel .slide.active .content > *:nth-child(3) { animation-delay: 0.36s; }
#heroCarousel .slide.active .content > *:nth-child(4) { animation-delay: 0.47s; }
#heroCarousel .slide.active .content > *:nth-child(5) { animation-delay: 0.6s; }

/* So that it still looks fine if some children are missing */
#heroCarousel .slide.active .content > *:not(:nth-child(n+1)) { animation-delay: 0.18s; }

/* Typography & layout as before */
.content h2 {
  margin-bottom: 6px;
  font-size: 4.4rem;
  line-height: 1.11;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -1.2px;
  text-shadow: 0 3px 22px rgba(0,0,0,.30);
  text-transform: none;
}
.subheader {
  display: inline-block;
  font-size: 1.27rem;
  margin-bottom: 10px;
  color: #fff;
  text-decoration: underline dotted #fff 2px;
  text-underline-offset: 6px;
  opacity: 0.87;
  letter-spacing: .01em;
  font-weight: 500;
  transition: color 0.18s, text-decoration-thickness 0.28s;
  line-height: 1.4;
}
.subheader:hover {
  color: #4054B2;
  text-decoration-thickness: 3px;
}
.content p {
  font-size: 1.51rem;
  line-height: 1.62;
  margin-bottom: 18px;
  color: #fff;
  opacity: 0.98;
  letter-spacing: .02em;
  font-weight: 600;
}

/* Button (orange fill + scale) */
.cta-btn {
  display: inline-block;
  position: relative;
  padding: 1.1rem 2.7rem;
  border: 2.5px solid #fff;
  border-radius: 16px;
  color: #fff;
  background: rgba(0,0,0,0.15);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 2px 18px rgba(0,0,0,.13);
  overflow: hidden;
  margin-top: 12px;
  transition: 
    color 0.18s cubic-bezier(.8,.1,.1,1), 
    background 0.29s cubic-bezier(.7,.2,.1,1),
    transform 0.18s cubic-bezier(.7,.2,.1,1),
    border-color 0.21s;
  z-index: 1;
  cursor: pointer;
}
.cta-btn span { position: relative; z-index: 1; }

.cta-btn:hover {
  background: linear-gradient(90deg, #4054B2 0%, #4088b2 100%);
  color: #fff;
  transform: scale(1.08) translateY(-2px) rotate(-0.4deg);
  border-color: #4054B2;
  box-shadow: 0 6px 18px 0 rgba(239,73,35,.22);
}
.cta-btn:active {
  background: #4054B2;
  color: #fff;
  transform: scale(0.99);
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1200px) {
  #heroCarousel {
    height: 55vh;
    gap: 10px;
    min-height: 360px;
  }
  #heroCarousel .slide.active {
    flex: 3;
  }
  #heroCarousel .slide .content {
    left: 36px;
    right: 36px;
    bottom: 22px;
    max-width: 73vw;
    padding-right: 24px;
    padding-left: 0;
  }
    #heroCarousel .slide.active::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    height: 75%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.2) 65%, transparent 100%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s;
    border-radius: 0 !important;
  }
  .content h2 {
    font-size: 3.4rem;
    margin-bottom: 7px;
    letter-spacing: -1px;
    line-height: 1.13;
    font-weight: 800;
  }
  .subheader {
    font-size: 1.24rem;
    margin-bottom: 9px;
    opacity: 0.85;
    font-weight: 600;
    line-height: 1.22;
    text-underline-offset: 5px;
  }
  .content p {
    font-size: 1.33rem;
    margin-bottom: 19px;
    font-weight: 600;
    line-height: 1.48;
  }
  .cta-btn {
    font-size: 1.18rem;
    padding: 1rem 2.3rem;
    border-radius: 12px;
    margin-top: 11px;
  }
}

/* --- MOBILE: True mobile-first, BIG and CLEAR --- */
@media (max-width: 768px) {
  #heroCarousel {
    flex-direction: column;
    height: 92vh;              
    min-height: 260px;
    max-height: 100vh;
    padding: 0;
    gap: 7px;
    border-radius: 0;
  }
  #heroCarousel .slide {
    flex: 1 1 70px;            
    min-height: 55px;
    opacity: 0.53;
    filter: grayscale(1);
    border-radius: 8px;
    transition: flex 0.5s cubic-bezier(.7,.2,.1,1), min-height 0.3s;
  }
  #heroCarousel .slide.active {
    flex: 4 1 350px;           
    min-height: 350px;
    opacity: 1;
    filter: none;
    border-radius: 13px;
    transition: flex 0.5s cubic-bezier(.7,.2,.1,1), min-height 0.3s;
  }
  #heroCarousel .slide.active::before {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 68%;
    background: linear-gradient(to top, rgba(0,0,0,0.82), transparent 95%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s;
    border-radius: 0 !important;
  }
  #heroCarousel .slide .content {
    position: absolute;
    left: 4vw;
    right: 4vw;
    bottom: 0;
    max-width: 100vw;
    padding: 0 1.5vw 2.5vw 1.5vw;
    z-index: 10;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: none; /* Animations still work! */
    pointer-events: none;
    user-select: none;
    text-shadow: 0 4px 32px rgba(0,0,0,0.4);
  }
  #heroCarousel .slide.active .content {
    opacity: 1;
    transform: none;
    /* Animations from .slide.active .content stay active */
    animation: contentEnter 0.66s cubic-bezier(.65,1.6,.41,1) both;
    animation-delay: 0.06s;
    pointer-events: auto;
    user-select: auto;
  }
  .content h2 {
    font-size: clamp(2.5rem, 6vw, 3.2rem);
    margin-bottom: 6px;
    letter-spacing: -0.6px;
    line-height: 1.13;
    font-weight: 800;
    color: #fff !important;
    text-shadow: 0 3px 22px rgba(0,0,0,.30);
  }
  .subheader {
    font-size: 1.21rem;
    margin-bottom: 6px;
    opacity: 0.78;
    font-weight: 600;
    line-height: 1.14;
    text-underline-offset: 4px;
    color: #fff;
  }
  .content p {
    font-size: 1.45rem;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.44;
    color: #fff;
  }
  .cta-btn,
  .cta-btn.button--bubble {
    font-size: 1.18rem;
    padding: 0.93rem 2.1rem;
    border-radius: 8px;
    margin-top: 10px;
  }
}

.hero-badge {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 4px;
  padding: 3.5px 15px;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.15;
  vertical-align: middle;
  text-shadow: none;
  transition: box-shadow 0.14s, background 0.16s;
  text-decoration: none !important;
  box-shadow: 0 1.5px 8px rgba(0,0,0,.07);
  cursor: pointer;
}
.hero-badge:last-child { margin-right: 0; }
.hero-badge[href]:hover,
.hero-badge[href]:focus {
  filter: brightness(0.93) saturate(1.15) drop-shadow(0 2px 6px rgba(0,0,0,0.08));
  outline: none;
  text-decoration: underline dotted;
}
.hero-badge:not([href]) {
  cursor: default;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  text-decoration: none !important;
  pointer-events: none;
}
.hero-badge[style*="linear-gradient"] {
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.09);
}

/* SKELETON layout for hero slider */
#heroCarouselSkeleton {
  display: flex;
  gap: 16px;
  width: 100%;
  height: 92vh;
  min-height: 300px;
  max-height: 80vh;
  align-items: stretch;
  border-radius: 16px;
  background: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 20;
  position: relative;
}

/* Main (big) left skeleton slide */
.skel-slide-main {
  flex: 4;
  border-radius: 16px;
  background: #ececec;
  position: relative;
  overflow: hidden;
  animation: skeletonShimmer 1.4s infinite linear;
  min-width: 0;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.skel-slide-main .skel-badges {
  display: flex;
  gap: 10px;
  margin: 26px 0 0px 32px;
}
.skel-badge {
  width: 70px;
  height: 22px;
  border-radius: 13px;
  background: #dddddd;
  opacity: 0.6;
  margin-bottom: 12px;
  animation: skeletonShimmer 1.6s infinite linear;
}
.skel-content {
  margin: 0 0 38px 32px;
  padding-bottom: 20px;
}
.skel-title {
  width: 68%;
  height: 48px;
  border-radius: 8px;
  background: #dedede;
  margin-bottom: 12px;
  animation: skeletonShimmer 1.7s infinite linear;
}
.skel-sub {
  width: 40%;
  height: 19px;
  border-radius: 7px;
  background: #e2e2e2;
  margin-bottom: 15px;
  animation: skeletonShimmer 1.8s infinite linear;
}
.skel-desc {
  width: 90%;
  height: 24px;
  border-radius: 7px;
  background: #ebebeb;
  margin-bottom: 16px;
  animation: skeletonShimmer 2s infinite linear;
}
.skel-btn {
  width: 160px;
  height: 38px;
  border-radius: 14px;
  background: #ededed;
  animation: skeletonShimmer 1.8s infinite linear;
}

/* Right-hand side (narrow) skeleton slides */
.skel-slide-side {
  flex: 1;
  border-radius: 16px;
  background: #f2f2f2;
  margin: 0;
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 100px;
  filter: grayscale(1);
  opacity: 0.68;
  animation: skeletonShimmer 1.3s infinite linear;
}

/* Skeleton fade out (already used) */
@keyframes skeletonFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* Skeleton shimmer */
@keyframes skeletonShimmer {
  0% { background-position: 220% 0; }
  100% { background-position: -120% 0; }
}
.skel-slide-main, .skel-slide-side,
.skel-badge, .skel-title, .skel-sub, .skel-desc, .skel-btn {
  background: linear-gradient(120deg, #f6f7f8 30%, #ecebeb 45%, #f6f7f8 60%);
  background-size: 240% 100%;
}

@media (max-width: 768px) {
  #heroCarouselSkeleton {
    flex-direction: column;
    height: 64vw;
    min-height: 140px;
    gap: 7px;
    border-radius: 0;
  }
  .skel-slide-main, .skel-slide-side { border-radius: 8px; }
  .skel-content { margin: 0 0 18px 12px; }
}
/* mobile skeleton loader */
@media (max-width: 768px) {
  #heroCarouselSkeleton {
    flex-direction: column;
    gap: 7px;
    height: 92vh;
    min-height: 260px;
    max-height: 100vh;
    border-radius: 0;
  }
  .skel-slide-main,
  .skel-slide-side {
    width: 100%;
    min-height: 60px;
    border-radius: 8px;
    margin: 0;
  }
  .skel-slide-main {
    flex: 4 1 350px;
    min-height: 160px;
  }
  .skel-slide-side {
    flex: 1 1 70px;
    min-height: 55px;
    opacity: 0.6;
  }
  .skel-content {
    margin: 0 0 18px 14px;
    padding-bottom: 10px;
  }
  .skel-title {
    width: 85%;
    height: 32px;
    margin-bottom: 7px;
  }
  .skel-sub {
    width: 55%;
    height: 14px;
    margin-bottom: 9px;
  }
  .skel-desc {
    width: 98%;
    height: 18px;
    margin-bottom: 10px;
  }
  .skel-btn {
    width: 110px;
    height: 28px;
    border-radius: 7px;
  }
  .skel-badges {
    margin: 20px 0 0 8px;
    gap: 6px;
  }
  .skel-badge {
    width: 48px;
    height: 15px;
    border-radius: 9px;
  }
}
/* end mobile skele*/

.content h2, .content p, .subheader {
  text-shadow: 0 4px 62px rgba(0,0,0,0.35), 0 2px 24px rgba(0,0,0,0.55); 
}


/* Update 1 */
/* --- SLIDER CONTROLS (Dots & Pause/Play, Top-Left) --- */
#heroSliderControls {
  position: absolute;
  top: 38px; /* aligns with .content { bottom: 38px; } */
  left: 48px;
  z-index: 30;
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  pointer-events: none;
  background: rgba(32,32,32,0.28);
  border-radius: 32px;
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 18px 0 rgba(0,0,0,0.10);
  padding: 6px 18px 6px 12px;
  min-height: 34px;
  min-width: 0;
}

.hero-slider-dots {
  display: flex;
  gap: 11px;
  align-items: center;
  pointer-events: auto;
}

.hero-slider-dot, .hero-slider-control-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #4054B2;
  background: rgba(239,73,35,0.11);
  transition: background 0.2s, border 0.16s, transform 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(239,73,35,0.07);
  outline: none;
  pointer-events: auto;
  font-size: 1.17rem;
  margin: 0;
  position: relative;
}

.hero-slider-dot {
  background: rgba(239,73,35,0.13);
  border: 2.5px solid #4054B2;
  margin-right: 0;
}
.hero-slider-dot.active {
  background: #4054B2;
  border-color: #4054B2;
  box-shadow: 0 2px 10px 0 rgba(239,73,35,0.15);
  transform: scale(1.13);
}
.hero-slider-dot:focus { outline: 2px solid #4054B2; }

/* Play/Pause Button */
.hero-slider-control-btn {
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  background: rgba(239,73,35,0.11);
  border: 2.5px solid #4054B2;
  color: #4054B2;
  transition: background 0.16s, border 0.15s, box-shadow 0.17s, transform 0.15s;
  box-shadow: 0 1.5px 7px rgba(239,73,35,.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  margin-left: 7px;
}
.hero-slider-control-btn:hover,
.hero-slider-control-btn:focus {
  background: #4054B2;
  color: #fff;
  border-color: #4054B2;
  outline: none;
  transform: scale(1.09);
  box-shadow: 0 3px 16px 0 rgba(239,73,35,0.21);
}
#heroSliderPauseIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin: 0;
  color: inherit;
}
#heroSliderPauseIcon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Responsive: top/left moves on mobile */
@media (max-width: 768px) {
  #heroSliderControls {
    top: 12px;
    left: 40px;
    padding: 3px 11px 3px 6px;
    gap: 8px;
    min-height: 22px;
    border-radius: 18px;
    box-shadow: 0 1px 4px rgba(239,73,35,0.09);
  }
  .hero-slider-dot, .hero-slider-control-btn {
    width: 11.5px;
    height: 11.5px;
    min-width: 11.5px;
    min-height: 11.5px;
    font-size: 0.9rem;
    border-width: 1.7px;
  }
  #heroSliderPauseIcon, #heroSliderPauseIcon svg {
    width: 7.5px;
    height: 7.5px;
  }
}


/* Fix for badge slider control overlay */
@media (max-width: 768px) {
  #heroCarousel .slide .content {
    padding-top: 44px; /* ensures there's always space for nav controls */
  }
}

/* Fix for mobile taps highlighting slider */
/* Prevent tap highlight on slides for mobile browsers */
.slide, .slide * {
  -webkit-tap-highlight-color: transparent;
  /* Prevent outline on tap for accessibility, but only if you handle focus states for keyboard! */
  outline: none !important;
}

