:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #6f42c1;
  --dark: #212529;
  --gray: #6c757d;
  --light: #f8f9fa;
  --gradient: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(10px);
}

.nav-link {
  font-weight: 600;
  color: var(--dark) !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.btn-primary {
  background: var(--gradient);
  border: none;
}

/* Mega Menu */
.mega-dropdown .dropdown-menu {
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.mega-title {
  position: relative;
  padding-bottom: 0.8rem;
}

.mega-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.mega-link {
  color: #555;
  transition: all 0.3s ease;
}

.mega-link:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

 .hero {
  min-height: 80vh;           /* Adjust height as needed */
  position: relative;
}

.slider-img {
  height: 100vh;              /* Full viewport height for dramatic look */
  object-fit: cover;
  filter: brightness(0.65);   /* Slightly darker for better text contrast */
}

.carousel-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 10%;
}

.caption-content {
  background: rgba(0, 0, 0, 0.50);   /* Semi-transparent dark box */
  padding: 2.5rem 4rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);        /* Nice glass effect */
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Hide indicators and controls completely (extra safety) */
#courseSlider .carousel-indicators,
#courseSlider .carousel-control-prev,
#courseSlider .carousel-control-next {
  display: none !important;
}

/* Mobile adjustments */
 /* Cards */
.course-card, .service-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
}

.course-card:hover, .service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(13,110,253,0.25) !important;
}

.review-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 991px) {
  .mega-dropdown .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
  
  .hero {
    min-height: 60vh;
    padding: 8rem 0 6rem;
  }
}
/* Gradient text for titles (blue to white/light blue) */
.gradient-text {
  background: linear-gradient(90deg, #0d6efd 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
  font-weight: 800;
}

/* Course card enhancements */
 .course-card {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.06));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.course-card:hover::before {
  opacity: 1;
}

.course-card:hover {
  transform: translateY(-16px) scale(1.04);
  box-shadow: 0 30px 70px rgba(99,102,241,0.28);
  border-color: rgba(99,102,241,0.5);
}

.course-card img {
  transition: transform 0.7s ease;
}

.course-card:hover img {
  transform: scale(1.12);
}
/* Section heading consistency */
section h2.gradient-text {
  font-size: 2.8rem;
  margin-bottom: 3rem;
}
/* Facilities card styling (enhanced for institute feel) */
.service-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  background: linear-gradient(145deg, #ffffff 0%, #f0f8ff 100%);
  border-radius: 1.5rem;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 30px 60px rgba(13, 110, 253, 0.22) !important;
  background: linear-gradient(145deg, #e6f2ff 0%, #ffffff 100%);
}

.service-icon {
  transition: all 0.5s ease;
  color: #0d6efd;
  font-size: 3.5rem !important; /* Larger icons for emphasis */
}

.service-card:hover .service-icon {
  transform: scale(1.25) rotate(12deg);
  color: #6610f2; /* Gradient shift to purple-blue for premium vibe */
}

/* Gradient text reinforcement */
.gradient-text {
  background: linear-gradient(90deg, #0d6efd 0%, #a5d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* Section intro paragraph */
section.py-5 p.lead {
  max-width: 800px;
  margin: 0 auto 3rem;
}
 
/* Avatar with ring effect */
.avatar-wrapper {
  position: relative;
  margin: 0 auto 1.4rem;
  width: 90px;
  height: 90px;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid #0d6efd;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
  transition: all 0.4s ease;
}

.review-box:hover .avatar {
  transform: scale(1.12);
  border-color: #6610f2;
}

/* Stars */
.rating-stars {
  color: #ffc107;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

/* Title & Text */
.review-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Reviewer info */
.reviewer-info {
  font-size: 0.95rem;
  color: #444;
}

.source-badge {
  background: #0d6efd;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Gradient heading (consistent with your site) */
.gradient-text {
  background: linear-gradient(90deg, #0d6efd 0%, #a5d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 991px) {
  .review-box {
    min-height: 400px;
    padding: 2rem 1.5rem 1.8rem;
  }
  
  .review-title {
    font-size: 1.25rem;
  }
}
/* Navbar blur + shrink on scroll */
.navbar-blur {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  padding: 1.2rem 0;
}

.navbar-blur.scrolled {
  padding: 0.7rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Hero enhancements (add parallax-like feel) */
.contact-hero, .hero {
  background-attachment: fixed; /* subtle parallax */
}

.hero .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
}

/* Glassmorphism course/service cards on hover */
.course-card, .service-card, .review-box, .info-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.course-card:hover, .service-card:hover, .review-box:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-16px) scale(1.04);
  border-color: #0d6efd;
  box-shadow: 0 30px 70px rgba(13,110,253,0.22);
}

/* Floating WhatsApp CTA */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 65px;
  height: 65px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 15px 35px rgba(37,213,102,0.4);
}

/* Section wave divider (optional - add after any section) */
.wave-divider {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.wave-divider::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V60C300,120 600,0 900,60 1200,120 1200,0 1200,0V120H0Z" fill="%23f8fbff"/></svg>') no-repeat bottom;
  background-size: cover;
}
/* ============================= */
/* GLASS NAVBAR EFFECT */
/* ============================= */

.glass-navbar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s ease;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Scroll state */
.glass-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ============================= */
/* NAV LINKS HOVER UNDERLINE */
/* ============================= */

.navbar .nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 20%;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #6f42c1, #0d6efd);
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
  width: 60%;
}

/* ============================= */
/* MEGA MENU SMOOTH APPEAR */
/* ============================= */

.mega-dropdown .dropdown-menu {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.mega-dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ============================= */
/* BRAND TEXT ENHANCEMENT */
/* ============================= */

.navbar-brand {
  letter-spacing: 0.5px;
  transition: transform 0.25s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.dropdown-menu .mega-title {
  color: #007bff; /* or your brand color */
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.mega-link {
  color: #333;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.mega-link:hover {
  color: #007bff;
  padding-left: 8px;
}

/* Make scrollbar nicer if it appears */
.dropdown-menu .row {
  scrollbar-width: thin;
  scrollbar-color: #adb5bd #f8f9fa;
}

.dropdown-menu .row::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu .row::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.dropdown-menu .row::-webkit-scrollbar-thumb {
  background: #adb5bd;
  border-radius: 4px;
}
/* Mega Dropdown - Super Compact & Fully Visible */
.dropdown-menu {
  min-width: 98vw !important;
  max-width: 1800px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border-radius: 10px !important;
  padding: 1rem 0.6rem !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
  overflow: hidden !important;
}

.container-fluid {
  padding: 0 !important;
}

.mega-title {
  font-size: 1.05rem !important; /* Smaller title */
  margin-bottom: 0.6rem !important;
  padding-bottom: 0.3rem;
  border-bottom: 1.5px solid #0d6efd;
  color: #0d6efd;
  white-space: nowrap;
}

.mega-list {
  font-size: 0.88rem !important; /* Smaller links */
  line-height: 1.3;
}

.mega-list .mega-link {
  color: #222;
  padding: 0.3rem 0 !important;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-list .mega-link:hover {
  color: #0d6efd;
  padding-left: 5px;
  background: rgba(13, 110, 253, 0.08);
  border-radius: 4px;
}

/* Responsive - Still no scroll */
@media (max-width: 1399px) {
  .row-cols-lg-6 {
    --bs-gutter-x: 0.5rem;
  }
  .mega-title {
    font-size: 1rem !important;
  }
  .mega-list {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 991px) {
  .dropdown-menu {
    padding: 0.8rem 0.4rem !important;
  }
}
/* Rectangular Review Cards - Shorter Height */
.review-card {
  flex: 0 0 340px;          /* Fixed width for rectangle shape */
  min-width: 340px;
  max-width: 340px;
}

.review-box {
  background: white;
  border-radius: 12px;
  padding: 1.8rem 1.4rem;   /* Reduced padding for shorter height */
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 380px;            /* Fixed shorter height - all cards same size */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #eee;
}

.review-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.avatar-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #0288d1;
}

.rating-stars {
  color: #f4c107;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.review-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  min-height: 50px; /* Prevent height jump */
}

.review-text {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.reviewer-info {
  font-size: 0.9rem;
  color: #666;
  margin-top: auto;
}

.source-badge {
  background: #e3f2fd;
  color: #0288d1;
  padding: 3px 9px;
  border-radius: 15px;
  font-size: 0.78rem;
}

/* Slider - Auto Time, No Arrows */
.reviews-slider {
  overflow: hidden;
}

.slider-track {
  display: flex;
  animation: slide 35s linear infinite; /* ~35s full cycle - adjust time */
  width: max-content;
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Seamless loop */
}

.reviews-slider:hover .slider-track {
  animation-play-state: paused;
}

/* Mobile - Stack cards */
@media (max-width: 991px) {
  .review-card {
    flex: 0 0 90%;
    min-width: 90%;
    max-width: 90%;
  }
  .review-box {
    height: auto; /* Allow natural height on mobile */
    padding: 1.5rem 1.2rem;
  }
}
 



@media (max-width: 991px) {
  /* Make mega menu behave like normal collapsed menu items */
  .mega-dropdown .dropdown-menu {
    position: static !important;       /* no floating/absolute positioning issues */
    width: 100% !important;
    border: none;
    box-shadow: none;
    background: #f8f9fa;               /* light bg so it's visible */
    padding: 1rem;
  }

  .mega-dropdown .row {
    row-cols-1 !important;             /* force 1 column only on mobile */
  }

  .mega-dropdown .col {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
  }

  /* Bigger touch targets */
  .mega-link {
    padding: 0.75rem 1rem !important;
    font-size: 1.1rem !important;
  }

  /* Prevent accidental close */
  .dropdown-menu.show {
    overflow-y: auto;
    max-height: 70vh;                  /* scrollable if too many items */
  }
}.hero {
  position: relative;
  overflow: hidden;
}

#courseSlider,
.carousel-inner,
.carousel-item,
.slider-img {
  height: 85vh;                     /* desktop starting point */
}

.slider-img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  filter: brightness(0.65);
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1100px;
  padding: 0 1rem;
}

.caption-content {
  background: rgba(0, 0, 0, 0.55);
  padding: 2.5rem 3.5rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Mobile – shorter & more compact */
@media (max-width: 991px) {
  #courseSlider,
  .carousel-inner,
  .carousel-item,
  .slider-img {
    height: 65vh;                   /* balanced for phones – not too dominating */
    min-height: 420px;
  }

  .caption-content {
    padding: 1.8rem 2rem;
    max-width: 95%;
  }

  .carousel-caption h1.display-4 {
    font-size: 2.4rem !important;
    margin-bottom: 1rem;
  }

  .carousel-caption .lead {
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem;
  }

  .btn-lg {
    padding: 0.8rem 2rem !important;
    font-size: 1.1rem !important;
  }
}

@media (max-width: 576px) {
  #courseSlider,
  .carousel-inner,
  .carousel-item,
  .slider-img {
    height: 55vh;
    min-height: 360px;
  }

  .caption-content {
    padding: 1.4rem 1.6rem;
  }

  .carousel-caption h1 {
    font-size: 1.9rem !important;
  }
}

@media (max-width: 991px) {

  /* Make sure the mega menu takes full available space and scrolls */
  .mega-dropdown .dropdown-menu {
    position: relative !important;     /* changed from static → helps height calculation */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1rem 0.8rem !important;
    background: #f8f9fa !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-height: 65vh;                  /* adjust if needed – prevents menu from being too tall */
    overflow-y: auto !important;       /* enables scrolling if content is long */
  }

  /* Reset container padding inside menu */
  .mega-dropdown .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Force single column AND make sure ALL columns are visible */
  .mega-dropdown .row {
    flex-wrap: wrap !important;        /* very important – prevents hiding */
    row-gap: 1rem !important;
    margin: 0 !important;
  }

  .mega-dropdown .row > .col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.9rem 0.5rem !important;
    border-bottom: 1px solid #dee2e6;
    display: block !important;         /* force visibility */
  }

  /* Make titles and links more readable/tappable */
  .mega-title {
    font-size: 1.18rem !important;
    margin-bottom: 0.7rem !important;
    padding-bottom: 0.4rem !important;
  }

  .mega-list {
    margin: 0 !important;
  }

  .mega-link {
    font-size: 1.05rem !important;
    padding: 0.65rem 1rem !important;
    display: block !important;
    border-radius: 6px;
  }

  .mega-link:hover,
  .mega-link:focus {
    background-color: rgba(13, 110, 253, 0.08);
  }
}

/* Container for the reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

/* The Card */
.glass-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures all boxes in a row are same height */
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: #0d8abc;
}

/* Quote and Content */
.quote-icon {
  color: #0d8abc;
  font-size: 1.5rem;
  margin-bottom: 15px;
  opacity: 0.3;
}

.review-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes the profile to the bottom */
}

/* Profile area */
.student-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

.student-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.student-meta h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.student-meta span {
  font-size: 0.8rem;
  color: #0d8abc;
}

.stars {
  color: #ffc107;
  font-size: 0.75rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
  
/* Show mega menu on hover for desktop */
@media (min-width: 992px) {
  .nav-item.dropdown.mega-dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Ensures no gap between link and menu */
  }
}

/* ──────────────────────────────────────────────
   Simple + clean AI dropdown - light blue theme
─────────────────────────────────────────────── */
 /* Arrow rotation animation */
 /* Arrow rotation - works on click expand */
 /* Arrow rotation - only when actually expanded by click */
.dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

/* Base dropdown look - same as before */
.ai-dropdown-menu,
.dropdown-menu.ai-dropdown-menu {
  min-width: 0 !important;
  width: auto !important;
  max-width: 240px;
  margin-top: 4px;
  padding: 4px 0;
  border-radius: 6px;
  border: 1px solid #c3d6ff;
  background-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  font-size: 0.93rem;
  color: #1e40af;
}

.ai-dropdown-menu .dropdown-item,
.dropdown-menu.ai-dropdown-menu .dropdown-item {
  padding: 0.45rem 1.1rem;
  color: #1e40af;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.ai-dropdown-menu .dropdown-item:hover,
.ai-dropdown-menu .dropdown-item:focus,
.ai-dropdown-menu .dropdown-item:active,
.dropdown-menu.ai-dropdown-menu .dropdown-item:hover,
.dropdown-menu.ai-dropdown-menu .dropdown-item:focus,
.dropdown-menu.ai-dropdown-menu .dropdown-item:active {
  background-color: #f0f7ff;
  color: #1e3a8a;
  padding-left: 1.35rem;
}

.ai-dropdown-menu .dropdown-item + .dropdown-item {
  border-top: 1px solid #e5edff;
}

/* ── MOBILE FIRST: Make collapsed view bullet-proof ─────────────────────── */
@media (max-width: 991.98px) {
  /* Container */
  .navbar-collapse .dropdown-menu.ai-dropdown-menu,
  .navbar-collapse .dropdown-menu {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background-color: #f8fbff !important;
    border-radius: 0;
    position: static !important;
    width: 100% !important;
  }

  /* Nav item spacing */
  .navbar-nav .nav-item.dropdown {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* The "AI Courses" link padding when collapsed */
  .navbar-nav .nav-link.dropdown-toggle {
    padding: 0.6rem 1rem !important;  /* balanced, not too tight */
  }

  /* Items inside dropdown */
  .ai-dropdown-menu .dropdown-item,
  .dropdown-menu.ai-dropdown-menu .dropdown-item {
    padding: 0.6rem 1.5rem !important;
    font-size: 1rem;
    color: #1e40af !important;
  }

  .ai-dropdown-menu .dropdown-item + .dropdown-item {
    border-top: 1px solid #e0e7ff !important;
  }

  .ai-dropdown-menu .dropdown-item:active,
  .ai-dropdown-menu .dropdown-item:hover {
    background-color: #e0efff !important;
    padding-left: 2rem !important;
  }

  /* Safety - no offsets */
  .dropdown-menu {
    margin-left: 0 !important;
    left: 0 !important;
    transform: none !important;
  }
}

/* ── DESKTOP ONLY: Add hover open here ─────────────────────────────────── */
@media (min-width: 992px) {
  /* Hover opens dropdown */
  .dropdown:hover .ai-dropdown-menu,
  .dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;
  }

  /* Optional smooth effect */
  .ai-dropdown-menu,
  .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(5px);
  }

  .dropdown:hover .ai-dropdown-menu,
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Optional: no arrow spin on hover open */
  .dropdown:hover .dropdown-toggle[aria-expanded="true"]::after {
    transform: none;
  }
}

.floating-contact-bar {
  position: fixed;
  right: 20px;              /* a bit more space from edge */
  top: 40%;                 /* starts higher up (middle of screen) */
  transform: translateY(-50%); /* centers vertically */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;                /* space between icons */
}

.btn-contact {
  width: 40px;              /* smaller size */
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;        /* slightly smaller icon inside */
  color: white;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.btn-contact:hover {
  transform: scale(1.2);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
}

/* Colors remain the same */
.call    { background-color: #0d6efd; }
.whatsapp { background-color: #25D366; }
.email   { background-color: #dc3545; }

/* Mobile - even smaller and closer to edge */
@media (max-width: 576px) {
  .floating-contact-bar {
    right: 12px;
    top: 35%;               /* a bit higher on small screens if needed */
    gap: 10px;
  }
  
  .btn-contact {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* ──────────────────────────────────────────────
   Enhanced Hero – Glass + Animations + Depth
─────────────────────────────────────────────── */

/* Stronger, more modern caption container */
.carousel-caption .caption-content {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  padding: 2.8rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  animation: floatCaption 7s ease-in-out infinite;
}

/* Gentle floating effect on the whole caption box */
@keyframes floatCaption {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.015); }
}

/* Staggered text reveal when slide becomes active */
.carousel-item.active .carousel-caption h1,
.carousel-item.active .carousel-caption .lead,
.carousel-item.active .carousel-caption .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: textReveal 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-item.active .carousel-caption h1   { animation-delay: 0.4s; }
.carousel-item.active .carousel-caption .lead { animation-delay: 0.7s; }
.carousel-item.active .carousel-caption .btn  { animation-delay: 1.0s; }

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: very subtle tech particle/vignette background layer */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(99,102,241,0.10) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(139,92,246,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  animation: subtlePulse 14s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.03); }
}

/* Make sure new ::before is behind text but above image */
.hero {
  position: relative;
  overflow: hidden;
}

.carousel-caption {
  z-index: 2; /* ensure text stays above particles */
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom cursor (very subtle tech feel) */
body {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="5" fill="rgba(99,102,241,0.4)"/></svg>'), auto;
}

/* Gradient hover on all primary buttons */
.btn-primary, .btn-outline-primary:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  border: none;
  transition: all 0.4s ease;
}

/* Floating contact bar – add pulse on load */
.floating-contact-bar .btn-contact {
  animation: pulseRing 2s infinite ease-in-out;
}

@keyframes pulseRing {
  0%,100% { box-shadow: 0 0 0 0 rgba(13,110,253,0.4); }
  70% { box-shadow: 0 0 0 12px rgba(13,110,253,0); }
}

:root {
    --primary-blue: #003366;
    --accent-blue: #007bff;
    --light-bg: #f8fbff;
}

.placement-showcase {
    background-color: var(--light-bg);
}

/* Landscape Rectangular Card */
.placement-card {
    background: #ffffff;
    width: 100%;
    max-width: 750px; /* Rectangular width */
    display: flex; /* Side-by-side layout */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 51, 102, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    margin: 30px 15px;
    transition: transform 0.4s ease;
}

.placement-card:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 51, 102, 0.1);
}

/* Left Section: Student Info */
.card-left {
    flex: 1.5;
    padding: 40px;
    background: linear-gradient(to right, #ffffff, #fafcfe);
    border-right: 1px dashed #d1d9e6;
    text-align: left;
}

.verified-badge {
    color: #28a745;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
}

.student-name {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 2rem;
    margin: 0;
}

.job-title {
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #555;
    font-size: 0.95rem;
}

/* Right Section: Company & Date */
.card-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.company-brand {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-brand img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.placement-date {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

/* Responsive Fix for Mobile */
@media (max-width: 768px) {
    .placement-card {
        flex-direction: column;
        text-align: center;
        max-width: 350px;
    }
    .card-left {
        text-align: center;
        border-right: none;
        border-bottom: 1px dashed #d1d9e6;
    }
    .student-name { font-size: 1.5rem; }
}
/* Styling for the new Details Footer */
.placement-info-footer {
    border-color: rgba(0, 51, 102, 0.1) !important;
}

.stat-number {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #666;
    letter-spacing: 1px;
}

/* Hiring Partners Section */
.partner-box {
    padding-left: 30px;
}

.partner-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: left;
}

.partner-logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.partner-logos img {
    height: 22px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Reduce gap between slider and details */
#autoPlacementSlider {
    margin-bottom: 20px !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .partner-box {
        padding-left: 0;
        text-align: center;
    }
    .partner-title {
        text-align: center;
    }
    .partner-logos {
        justify-content: center;
    }
    .stat-number {
        font-size: 1.3rem;
    }
}
/* Remove the large vertical margin from the cards */
.placement-card {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* Tighten the footer stats area */
.placement-info-footer {
    border-top: 1px solid rgba(0, 51, 102, 0.1) !important;
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* Ensure the partner box doesn't add extra top padding */
.partner-box {
    padding-top: 0;
}

.partner-title {
    margin-bottom: 10px;
}
/* Container for the logos */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Increased gap for a cleaner look */
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0;
}

/* Individual Logo Styling */
.partner-logos img {
    height: 45px !important; /* Increased height for better visibility */
    width: auto !important;   /* Keeps the natural shape of the logo */
    display: block;
    filter: brightness(1);    /* Ensures colors are vibrant */
    opacity: 1 !important;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Subtle hover effect to make it interactive */
.partner-logos img:hover {
    transform: scale(1.1); /* Grows slightly when touched */
    cursor: pointer;
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .partner-logos {
        justify-content: center; /* Centers logos on phones */
        gap: 25px;
    }
    .partner-logos img {
        height: 35px !important; /* Slightly smaller but still readable on mobile */
    }
}