/* --- Base Hero & Slider Styles --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  background-color: #0b1220;
  /* Dark fallback */
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

/* Slide Backgrounds with Dark Overlay */
.slide-1 {
  background-image: linear-gradient(90deg, rgba(11, 18, 32, .8), rgba(11, 18, 32, .2)), url('../assets/banner1.png');
}

.slide-2 {
  background-image: linear-gradient(90deg, rgba(11, 18, 32, .8), rgba(11, 18, 32, .2)), url('../assets/banner2.png');
}

.slide-3 {
  background-image: linear-gradient(90deg, rgba(11, 18, 32, .8), rgba(11, 18, 32, .2)), url('../assets/banner3.png');
}

.slide-4 {
  background-image: linear-gradient(90deg, rgba(11, 18, 32, .8), rgba(11, 18, 32, .2)), url('../assets/banner4.png');
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 10;
}

/* --- Three-Line Stacked Title Structure --- */
.hero__stacked-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  line-height: 1.1;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
}

/* Static Lines: "PROVEN" and "CONSULTANCY" */
.line-static {
  font-size: 30px;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 1px;
}

/* Dynamic 2nd Line: With the "Sky Background" */
.line-dynamic {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  padding: 4px 18px;
  border-radius: 6px;
  display: inline-block;
  min-height: 52px;
  background-color: #4ec7f3;
  /* Default starting color */

  /* Adds smooth transition for both the movement and the color change */
  transition:
    opacity 0.4s ease-in-out,
    transform 0.4s ease-in-out,
    background-color 0.6s ease-in-out;
}

/* --- Course List & Actions --- */
.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}

#exploreBtn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

#exploreBtn:hover {
  background: #fff;
  color: #0b1220;
}

/* --- Desktop Positioning & Styling (992px and up) --- */
@media (min-width: 992px) {
  .hero__copy.reveal {
    position: relative !important;
    top: -80px !important;
    left: -60px !important;
    z-index: 20 !important;
    transform: none !important;
    transition: opacity 0.8s ease-in-out !important;
    padding-left: 20px;
    display: block !important;
  }

  .course-list p a {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .course-list .separator {
    font-size: 18px;
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.6);
  }
}

/* ===============================
   FINAL MOBILE HERO (CLEAN + SAFE)
================================ */
@media (max-width: 991px) {

  /* ✅ RESET COMMON ISSUES */
  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ✅ FORCE HEADER (NO GUESSWORK) */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: #fff !important;

    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;

    padding: 0 !important;
    margin: 0 !important;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }

  .header__inner {
    height: 60px !important;
    padding: 0 15px !important;

    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* ✅ HERO SECTION */
  .hero {
    /* Reduced from 70px to 60px to sit flush against the header */
    margin-top: 60px !important; 
    min-height: 280px !important; /* Slightly reduced height to feel "tighter" */
    
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px !important; /* Reduced top padding */
    
    background-color: #0b1220;
    background-image: 
      linear-gradient(90deg, rgba(11, 18, 32, 0.85), rgba(11, 18, 32, 0.3)), 
      url('../assets/banner1.png');
    background-size: cover !important;
    background-position: center top !important;
  }


  /* ❌ REMOVE SLIDER COMPLETELY */
  .hero__slider,
  .slide {
    display: none !important;
  }

  /* ✅ HERO CONTENT */
  .hero__inner {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;

    position: relative;
    z-index: 2;
  }

  /* ✅ TEXT LEFT ALIGN */
  .hero__stacked-title {
    align-items: flex-start !important;
    text-align: left !important;
    gap: 4px !important;
  }

  .line-static {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #FFD700 !important;
    line-height: 1.2 !important;
  }

  .line-dynamic {
    font-size: 22px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    margin: 2px 0 !important;
    display: inline-block;
  }

  /* ✅ COURSE LIST */
  .course-list,
  .course-list p {
    margin: 0 !important;
    line-height: 1.3 !important;
  }

  .course-list p a {
    font-size: 13px !important;
  }

  /* ✅ BUTTONS */
  .hero__actions {
    margin-top: 10px !important;
    gap: 8px !important;
    flex-wrap: wrap;
  }

  /* ❌ HIDE DESKTOP FORM */
  #apply {
    display: none !important;
  }

  /* ✅ MOBILE FORM BELOW HERO */
  .form-mobile-section {
    display: block !important;
    padding: 20px 15px !important;
    background: #f8f9fb !important;
  }

  .form-mobile {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  }

  /* ❌ REMOVE EXTRA ELEMENTS */
  .trust {
    display: none !important;
  }
}


.form-mobile-section{
  display: none !important;
}

@media (max-width: 991px) {
  .form-mobile-section {
    display: block !important;
    padding: 30px 15px !important;
    background: #f4f7fb !important;
  }

  .form-mobile {
    border-radius: 18px !important;
    padding: 25px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    max-width: 100% !important;
  }

  /* Ensure rows stay side-by-side on larger mobile phones if space allows */
  .form-mobile .form-row-group {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }

  .form-mobile .form-row-group > div {
    flex: 1 !important;
    min-width: 140px !important; /* Forces stack on very narrow phones */
  }
}



/* =========================================
   FIXED: ONE-BY-ONE MOBILE SLIDER STRIP
============================================ */
@media (max-width: 991px) {

  .floating-strip-section {
    position: relative; /* Remove sticky if it blocks the form */
    width: 100%;
    z-index: 99;
    background: #ffffff !important;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 50px;
  }

  /* 1. THE SLIDER CONTAINER */
  .floatingStrip {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important; /* Forces snapping */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    gap: 0 !important; /* No gaps to ensure equal length alignment */
    padding: 0 !important;
    margin-left: 5px !important;
  }

  /* 2. THE INDIVIDUAL CARDS (Same Length) */
  .cyber-mini-card {
    flex: 0 0 100% !important; /* Force each card to be exactly screen width */
    width: 100% !important;
    scroll-snap-align: start !important; /* Snaps exactly to the start of the card */
    
    padding: 10px 15px !important; /* Internal spacing */
    box-sizing: border-box;
    height: 100px !important; /* Uniform Height */
  }

  /* 3. CARD INNER ALIGNMENT */
  .cyber-card-inner {
    width: 90% !important;
    margin: 0 auto;
    border-radius: 12px !important;
    background: #0b1220 !important; /* Keep the navy background */
    display: flex !important;
    justify-content: flex-start !important;
  }

  /* HIDE SCROLLBAR */
  .floatingStrip::-webkit-scrollbar {
    display: none;
  }
}