/* Hero Carousel for Elementor - Flush Docked Glassmorphism (Ultra-Mobile Optimized) */
/* Unique wrapper ID: #sws-home-hero-wrapper */
#sws-home-hero-wrapper.hero-carousel-wrapper {
  --sws-home-primary: #0A1628;
  --sws-home-accent: #F4AB4B;
  --sws-home-bg: #FAFAF9;
  --lite: rgba(255, 255, 255, 0.95);
  
  width: 100% !important;
  height: 80vh !important;
  overflow: hidden !important;
  font-family: 'Bebas Neue', 'Poppins', sans-serif !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--sws-home-bg) !important;
  border-top: 4px solid var(--sws-home-primary) !important;
  display: block !important;
}

#sws-home-hero-wrapper.hero-carousel-wrapper * { box-sizing: border-box; }

.elementor-widget-html #sws-home-hero-wrapper.hero-carousel-wrapper { margin: 0 !important; padding: 0 !important; }
.elementor-section #sws-home-hero-wrapper.hero-carousel-wrapper { width: 100vw; margin-left: calc(-50vw + 50%); }

#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slider.slider {
  position: relative; width: 100%; height: 100%; overflow: hidden;
}
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides {
  padding: 0; margin: 0; list-style: none; height: 100%;
}

#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide {
  position: absolute !important;
  top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important;
  background-size: cover !important; background-position: center center !important;
  background-repeat: no-repeat !important; background-attachment: scroll !important;
  transition: clip 0.7s ease-in-out, z-index 0s 0.7s;
  clip: rect(0, 100vw, 80vh, 100vw);
  display: flex !important; 
  align-items: flex-end !important; /* Docks to bottom */
  justify-content: flex-start !important; /* Docks to left */
  transform: translate3d(0, 0, 0); margin: 0 !important; padding: 0 !important;
}

/* Background Images - Desktop */
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="1"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2025/12/desktopslider1.png") !important; }
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="2"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2025/12/Hero-Carousel-Sanctus.png") !important; }
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="3"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2025/12/desktopslider3.png") !important; }
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="4"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2026/08/edupreneurdesktop.jpg") !important; }
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="5"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2026/07/TKP_9437.jpg") !important; }

#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.current { z-index: 1; clip: rect(0, 100vw, 80vh, 0); }
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.prev { clip: rect(0, 0, 80vh, 0); }

/* SLEEK, FLUSH DOCKED GLASS CARD (Desktop) */
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide article {
  position: relative !important;
  width: 100% !important;
  max-width: 540px !important; 
  margin: 0 !important; 
  color: #fff !important;
  z-index: 12 !important;
  
  background: rgba(10, 22, 40, 0.5) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-bottom: none !important;
  border-left: none !important;
  border-radius: 0 45px 0 0 !important; 
  
  padding: 2rem 3.5rem 2rem 2.5rem !important; 
  box-shadow: 15px -10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Typography */
#sws-home-hero-wrapper.hero-carousel-wrapper .title {
  font-family: 'Bebas Neue', 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.1em !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#sws-home-hero-wrapper.hero-carousel-wrapper .big { font-size: 2.2em !important; }

#sws-home-hero-wrapper.hero-carousel-wrapper p {
  line-height: 1.4em !important;
  color: var(--lite) !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  font-family: 'Josefin Sans', 'Poppins', sans-serif !important;
  margin: 0.6rem 0 0 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

#sws-home-hero-wrapper.hero-carousel-wrapper em {
  color: #F4AB4B !important; background: none !important; -webkit-background-clip: unset !important;
  background-clip: unset !important; -webkit-text-fill-color: unset !important;
  font-weight: 700 !important; font-style: normal !important;
}

/* Compact Button */
#sws-home-hero-wrapper.hero-carousel-wrapper .btn,
#sws-home-hero-wrapper.hero-carousel-wrapper .btn_3 {
  all: unset !important; display: inline-flex !important; align-items: center !important;
  justify-content: center !important; 
  height: 34px !important; 
  padding: 0 20px !important; 
  background: var(--sws-home-accent) !important; color: var(--sws-home-primary) !important;
  font-family: 'Bebas Neue', 'Poppins', sans-serif !important; 
  font-size: 13px !important; 
  font-weight: 700 !important; border-radius: 4px !important; border: 2px solid var(--sws-home-primary) !important;
  box-shadow: 3px 3px 0 var(--sws-home-primary) !important; text-shadow: none !important;
  cursor: pointer !important; transition: all 0.3s ease !important; text-decoration: none !important;
  text-transform: uppercase !important; white-space: nowrap !important; 
  margin-top: 15px !important; 
  line-height: 34px !important; vertical-align: middle !important; letter-spacing: 0.08em !important;
}

#sws-home-hero-wrapper.hero-carousel-wrapper .btn::before, #sws-home-hero-wrapper.hero-carousel-wrapper .btn::after, #sws-home-hero-wrapper.hero-carousel-wrapper .btn_3::before { display: none !important; }
#sws-home-hero-wrapper.hero-carousel-wrapper .btn_3::after {
  content: "\f178" !important; font-family: "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900 !important; font-size: 0.7em !important; margin-left: 8px !important; text-shadow: none !important;
}

#sws-home-hero-wrapper.hero-carousel-wrapper .btn:hover, #sws-home-hero-wrapper.hero-carousel-wrapper .btn_3:hover {
  transform: translate(2px, 2px) !important; box-shadow: 1px 1px 0 var(--sws-home-primary) !important; background: #FFD700 !important;
}

/* TEXT ANIMATIONS */
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide h1,
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide h3 {
  opacity: 0; transform: translate3d(0, 15px, 0); transition: opacity 0.4s ease, transform 0.4s ease;
}
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide p {
  opacity: 0; transform: translate3d(0, 15px, 0); transition: opacity 0.4s ease, transform 0.4s ease;
}
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide .btn_3,
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide .btn {
  opacity: 0; transform: translate3d(0, 15px, 0); transition: opacity 0.4s ease, transform 0.4s ease;
}

#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.current h1,
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.current h3 {
  opacity: 1; transform: translate3d(0, 0, 0); transition-delay: 0.6s;
}
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.current p {
  opacity: 1; transform: translate3d(0, 0, 0); transition-delay: 0.75s;
}
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.current .btn_3,
#sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.current .btn {
  opacity: 1; transform: translate3d(0, 0, 0); transition-delay: 0.9s;
}

/* Navigation Arrows */
#sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav {
  position: absolute !important; top: 50% !important; width: 100% !important; z-index: 15 !important; pointer-events: none !important;
}
#sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .nav-btn {
  position: absolute !important; top: 50% !important; transform: translateY(-50%) !important;
  background: rgba(10, 22, 40, 0.3) !important; backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255,255,255,0.2) !important; color: #fff !important;
  width: 42px !important; height: 42px !important; border-radius: 50% !important; cursor: pointer !important;
  transition: all 0.3s ease !important; pointer-events: all !important; display: flex !important; align-items: center !important; justify-content: center !important;
}
#sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .sws-hero-prev.prev-btn::before { content: "‹" !important; font-size: 26px !important; font-weight: 400 !important; line-height: 1 !important; margin-bottom: 4px !important; }
#sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .sws-hero-next.next-btn::before { content: "›" !important; font-size: 26px !important; font-weight: 400 !important; line-height: 1 !important; margin-bottom: 4px !important; }
#sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .sws-hero-prev.prev-btn { left: 2rem !important; }
#sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .sws-hero-next.next-btn { right: 2rem !important; }

#sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .nav-btn:hover { background: var(--sws-home-accent) !important; color: var(--sws-home-primary) !important; border-color: var(--sws-home-accent) !important; transform: translateY(-50%) scale(1.1) !important; }

/* Indicators - Docked Bottom Right */
#sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-indicators.slider-indicators {
  position: absolute !important; bottom: 2rem !important; right: 2.5rem !important; left: auto !important; transform: none !important;
  display: flex !important; gap: 0.5rem !important; z-index: 15 !important; background: transparent !important; padding: 0 !important;
}
#sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-indicators.slider-indicators .sws-hero-dot.indicator {
  width: 20px !important; height: 3px !important; background: rgba(255, 255, 255, 0.4) !important; border-radius: 2px !important; cursor: pointer !important; transition: all 0.3s ease !important;
}
#sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-indicators.slider-indicators .sws-hero-dot.indicator.active {
  background: var(--sws-home-accent) !important; width: 35px !important; box-shadow: 0 0 8px rgba(244, 171, 75, 0.5) !important;
}

/* =========================================
   Responsive Design
   ========================================= */

/* Tablet */
@media screen and (max-width: 1024px) and (min-width: 481px) {
  /* Enforce exact 50vh height on wrapper, slider, and slide container */
  #sws-home-hero-wrapper.hero-carousel-wrapper,
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slider.slider,
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides { 
    height: 50vh !important; 
    min-height: 50vh !important; 
  }
  
  /* Update clip masks and slide heights to 50vh with high specificity */
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide { 
    height: 50vh !important;
    clip: rect(0, 100vw, 50vh, 100vw) !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.current { 
    clip: rect(0, 100vw, 50vh, 0) !important; 
  }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.prev { 
    clip: rect(0, 0, 50vh, 0) !important; 
  }
  
  /* FULL WIDTH SLEEK GLASS BAR AT BOTTOM - Same as Mobile */
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide article { 
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(10, 22, 40, 0.55) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Typography Adjustments */
  #sws-home-hero-wrapper.hero-carousel-wrapper .big { font-size: 1.6em !important; margin-bottom: 0.4rem !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper p { font-size: 11px !important; margin: 0.3rem 0 0 0 !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper .btn,
  #sws-home-hero-wrapper.hero-carousel-wrapper .btn_3 {
    height: 32px !important;
    padding: 0 16px !important;
    font-size: 10px !important;
    margin: 10px auto 0 auto !important;
    line-height: 32px !important;
    display: inline-flex !important;
  }
  
  /* Tablet Specific Background Images - Using Standard Mobile Images for 1,2,3 */
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="1"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2025/12/smallmobileslider1.png") !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="2"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2025/12/Hero-Carousel-Sanctussmallmobile.png") !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="3"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2025/12/smallmobileslider3.png") !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="4"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2026/08/edupreneurtabletsize.jpg") !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="5"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2026/07/TKP_9437.jpg") !important; }
}

/* Standard Mobile */
@media screen and (max-width: 480px) {
  #sws-home-hero-wrapper.hero-carousel-wrapper,
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slider.slider,
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides { height: 55vh !important; min-height: 55vh !important; }
  
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide { clip: rect(0, 100vw, 55vh, 100vw) !important; height: 55vh !important; align-items: flex-end !important; justify-content: center !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.current { clip: rect(0, 100vw, 55vh, 0) !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide.prev { clip: rect(0, 0, 55vh, 0) !important; }
  
  /* FULL WIDTH SLEEK GLASS BAR AT BOTTOM */
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide article {
    width: 100% !important;
    max-width: 100% !important; 
    margin: 0 !important; 
    padding: 0.7rem 1rem !important; 
    text-align: center !important; 
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(10, 22, 40, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2) !important;
  }
  
  #sws-home-hero-wrapper.hero-carousel-wrapper .big { font-size: 1.1em !important; line-height: 1.1em !important; margin-bottom: 0.3rem !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper p { font-size: 9.5px !important; margin: 0.2rem 0 0 0 !important; line-height: 1.3em !important; }
  
  #sws-home-hero-wrapper.hero-carousel-wrapper .btn, #sws-home-hero-wrapper.hero-carousel-wrapper .btn_3 { 
    height: 26px !important; padding: 0 12px !important; font-size: 9px !important; margin: 8px auto 0 auto !important; line-height: 26px !important; border-width: 1px !important; box-shadow: 2px 2px 0 var(--sws-home-primary) !important; display: inline-flex !important;
  }
  
  /* Restored and scaled down arrows for mobile */
  #sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav { display: block !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .nav-btn {
    width: 32px !important; height: 32px !important;
  }
  #sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .sws-hero-prev.prev-btn::before,
  #sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .sws-hero-next.next-btn::before {
    font-size: 18px !important; margin-bottom: 2px !important;
  }
  #sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .sws-hero-prev.prev-btn { left: 0.5rem !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-nav.slider-nav .sws-hero-next.next-btn { right: 0.5rem !important; }
  
  #sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-indicators.slider-indicators { 
    bottom: 0.8rem !important; right: 0.8rem !important; z-index: 20 !important; gap: 4px !important;
  }
  #sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-indicators.slider-indicators .sws-hero-dot.indicator { width: 8px !important; height: 2px !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper .sws-hero-indicators.slider-indicators .sws-hero-dot.indicator.active { width: 16px !important; }
  
  /* Mobile Images - Updated 4th Image */
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="1"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2025/12/smallmobileslider1.png") !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="2"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2025/12/Hero-Carousel-Sanctussmallmobile.png") !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="3"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2025/12/smallmobileslider3.png") !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="4"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2026/08/edupreneurstandardmobiles.png") !important; } 
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="5"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2026/07/TKP_9437.jpg") !important; }
}

/* Smaller Mobiles (iPhone SE, smaller Androids) */
@media screen and (max-width: 380px) {
  /* FULL WIDTH SLEEK GLASS BAR AT BOTTOM */
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide article {
    width: 100% !important; 
    max-width: 100% !important; 
    padding: 0.6rem 0.9rem !important; 
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-align: center !important;
    background: rgba(10, 22, 40, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25) !important;
  }
  
  #sws-home-hero-wrapper.hero-carousel-wrapper .big { font-size: 1em !important; margin-bottom: 0.25rem !important; }
  #sws-home-hero-wrapper.hero-carousel-wrapper p { font-size: 9px !important; margin: 0.15rem 0 0 0 !important; }
  
  #sws-home-hero-wrapper.hero-carousel-wrapper .btn, #sws-home-hero-wrapper.hero-carousel-wrapper .btn_3 { 
    height: 24px !important; font-size: 8.5px !important; line-height: 24px !important; margin: 6px auto 0 auto !important; padding: 0 10px !important; display: inline-flex !important;
  }

  /* Ensures smaller mobiles also get the updated 4th image */
  #sws-home-hero-wrapper.hero-carousel-wrapper #sws-home-hero-slides .sws-hero-slide[data-bg="4"] { background-image: url("https://sanctusworldschool.com/wp-content/uploads/2026/08/edupreneur-smaller-mobiles-3.png") !important; }
}

@media screen and (max-width: 768px) {
  body, html { overflow-x: hidden !important; }
  .elementor-section #sws-home-hero-wrapper.hero-carousel-wrapper { margin-left: calc(-50vw + 50%) !important; }
}