/* ===== PRELOADER ===== */
#preloader{
  position:fixed; inset:0;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  z-index:9999; transition:opacity .6s ease, visibility .6s;
}
#preloader.hide{opacity:0; visibility:hidden;}
.loader-logo img{width:150px; animation:pulseLogo 1.5s infinite;}
@keyframes pulseLogo{
  0%{transform:scale(1);opacity:.8}
  50%{transform:scale(1.1);opacity:1}
  100%{transform:scale(1);opacity:.8}
}

/* ===== HERO FULLSCREEN ===== */
.hero-fullscreen{
  height:100vh;
  position:relative;
  overflow:hidden;
}
.slides, .slide{
  position:absolute; inset:0;
}
.slide{
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1s ease-in-out;
}
.slide.active{opacity:1;}

.hero::after{
  content:"";
  position:absolute; inset:0;
  background:rgba(0,0,0,.5);
}

.hero-text{
  position:relative; z-index:2; text-align:center;
  animation:fadeInUp 1.2s ease both;
}
@keyframes fadeInUp{
  from{opacity:0; transform:translateY(30px)}
  to{opacity:1; transform:translateY(0)}
}

/* ===== NAV ARROWS ===== */
.slider-nav{
  position:absolute; top:50%; width:100%;
  display:flex; justify-content:space-between;
  transform:translateY(-50%);
  z-index:2; padding:0 20px;
}
.slider-nav span{
  font-size:2.5rem; cursor:pointer; color:#fff;
  transition:color .3s;
}
.slider-nav span:hover{color:#ffcc00}

/* ===== DOTS ===== */
.slider-dots{
  position:absolute; bottom:20px; width:100%;
  text-align:center; z-index:2;
}
.dot{
  display:inline-block; width:14px; height:14px;
  margin:0 6px; border-radius:50%;
  background:rgba(255,255,255,.5); cursor:pointer;
}
.dot.active{background:#ffcc00}

/* ===== SEARCH ===== */
.hero-search{
  margin-top:15px; display:flex; justify-content:center;
}
.hero-search input{
  padding:10px 14px; border-radius:20px 0 0 20px; border:none;
}
.hero-search button{
  padding:10px 14px; border:none; cursor:pointer;
  background:#ffcc00; border-radius:0 20px 20px 0;
}

.search-results{
  display:none; margin:10px auto 0;
  max-width:600px; background:#fff; color:#333;
  border-radius:10px; padding:10px;
}

/* ===== INFO BOXES ===== */
.info-section{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px; padding:40px 20px;
}
.info-box{
  background:#f8f8f8; padding:20px; border-radius:10px;
  text-align:center; transition:.3s;
}
.info-box:hover{transform:translateY(-5px);}

/* ===== HERO TEXT FIX ===== */

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(120, 120, 120, 0.8);
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(120, 120, 120, 0.7);
  margin-bottom: 20px;
}

/* ===============================
   SEARCH DROPDOWN FIX
================================ */

.search-results {
  display: none;
  margin: 15px auto 0;
  max-width: 600px;
  background: #ffffff;
  color: #222; /* Force dark text */
  border-radius: 12px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.search-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  color: #222; /* Force dark text */
}

.search-item strong {
  color: #000;
}

.search-item p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: #555;
}

.search-item:hover {
  background: #f5f5f5;
}

mark {
  background: #ffcc00;
  color: #000;
  padding: 2px 4px;
  border-radius: 4px;
}
.search-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.search-item:hover {
  background: #f5f5f5;
}

mark {
  background: #ffcc00;
  padding: 2px 4px;
  border-radius: 3px;
}

.section {
  padding: 80px 20px;
  text-align: center;
}

.section.alt {
  background: #f4f6f9;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.dept-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.dept-card:hover {
  transform: translateY(-6px);
}

.stats-section {
  background: #0d1b2a;
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.cta-section {
  background: linear-gradient(135deg, #1b263b, #415a77);
  color: #ffffff;
}

.cta-section .btn {
  margin-top: 20px;
}

/* ===============================
   ABOUT SPLIT SECTION
================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-content {
  text-align: left;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    text-align: center;
  }
}