.image-container {
  position: relative;
  width: 100%;
  height: 95vh;
  min-height: 60vh;
  overflow: hidden;
  
}

/* Stack all slides on top of each other */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlide 48s infinite;
}

/* Fading animation */
@keyframes fadeSlide {
  0% { opacity: 0; }
  8% { opacity: 1; }
  25% { opacity: 1; }
  33% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-section {   
  position: relative;
  z-index: 2;
  text-align: start;
  font-size: 2rem;
  padding-bottom: 5rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  color: white;
}

.hero-section h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}


.hero-section h1 span {
  color: #198754; /* Bootstrap success color */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero-section h2 {
    font-size: 3.5rem;
}

.hero-section p {
  color: #555;
  font-size: 1rem;
  margin: 1rem 0 2rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero-section .form-control {
  max-width: 18rem;
  border-radius: 8px;
}

.hero-section button {
  border-radius: 8px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.45); 
  z-index: 1;
}

.centerBox {
    position: absolute;
    top: 280px;                   
    left: 50%;
    transform: translate(-50%, -50%);  
    width: 90%;
    max-width: 900px;
    text-align: center;
    padding: 0 1rem;
    z-index: 3;
}


.lib{
  background-image: url('../images/vector_1.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.swiper {
  overflow: hidden; /* hides horizontal scrollbar */
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}




.hero-search {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-search h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero-search h1 span {
  color: #00d084; 
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);/* Accent color */
}

.hero-search p {
  color: #f1f1f1;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

.search-box:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  padding: 0.75rem;
}

.search-input::placeholder {
  color: #ccc;         /* Light gray */
  opacity: 1;          /* Make sure it’s fully visible */
  font-style: italic;  /* Optional */
}

/* Mobile: medium screens */
@media (max-width: 991px) {
    .centerBox {
        width: 80%;
        padding: 0 0.5rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-section h2 {
        font-size: 2.2rem;
    }

    .hero-search h1 {
        font-size: 1.5rem;
    }

    .hero-search p {
        font-size: 0.9rem;
    }
}

/* Extra small screens ≤ 576px */
@media (max-width: 576px) {
    .centerBox {
    width: 90%;
    max-width: 350px;
    padding: 0 0.5rem;
  }

    .hero-section h1 {
        font-size: 1.4rem;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .hero-search h1 {
        font-size: 1.2rem;
    }

    .hero-search p {
        font-size: 0.8rem;
    }

    .search-input {
        font-size: 0.8rem;
    }

    .search-box button {
        padding: 0.5rem 0.8rem;
    }
}

/* Optional: make sure slider container adjusts */
.image-container {
    min-height: 60vh; /* ensures hero content fits even on small screens */
}