* {
  margin: 0;
  padding: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.navbar1 {
  display: flex;
  align-items: center;
  gap: 20px;
}
.navbar1 a {
  text-decoration: none;
  color: black;
  font-size: 17px;
  font-weight: 100;
}

.bx.bx-search {
  font-size: 24px;
  color: gray;
  cursor: pointer;
}

/* Sub Navbar */
.navbar2 {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  background: linear-gradient(to right, #fafafa, #f1f1f1);
}
.navbar2 a {
  text-decoration: none;
  color: #333;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.3s ease;
}
.navbar2 a:hover {
  background-color: #e3f2fd;
  color: #0077b6;
}

/* Search bar animation */
.search-container {
  display: flex;
  align-items: center;
}
#search-box {
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-left: 8px;
}
#search-box.active {
  width: 180px;
  opacity: 1;
}
#search-box:focus {
  outline: none;
  border-color: #0077b6;
  box-shadow: 0 0 5px rgba(0, 119, 182, 0.5);
}



.swiper {
  width: 100%;
  aspect-ratio: 16 / 9;   
  max-height: 80vh;       
}

/* Slides */
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Images */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;     
  border-radius: 12px;    
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* subtle shadow */
}

/* --- Responsive Tweaks --- */

/* Large screens (desktops) */
@media (min-width: 1200px) {
  .swiper {
    aspect-ratio: 21 / 9;   /* wider cinematic style */
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .swiper {
    aspect-ratio: 4 / 3;    /* less wide for tablets */
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .swiper {
    aspect-ratio: 1 / 1;    /* square style on small phones */
    max-height: 60vh;
  }

  .swiper-slide img {
    border-radius: 6px;     /* smaller rounding on mobiles */
  }
}
.footer {
  display: flex;
  justify-content: space-between;
  padding: 40px 60px;
  background-color: #201e1e; /* darker footer */
  color: white;
  flex-wrap: wrap; /* responsive */
}

.vision {
  flex: 1;
  max-width: 500px;
  margin-bottom: 20px;
}

.vision h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
}

.vision .content {
  font-size: 16px;
  line-height: 1.6;
  background: none;   /* remove extra box */
  color: #ddd;
  padding: 0;
  margin: 0;
  box-shadow: none;
  text-align: left;   /* makes it column-like */
}

.quickLinks {
  flex: 1;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quickLinks h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.quickLinks a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.quickLinks a:hover {
  color: #fff;
}
/* Navbar base */
/* Navbar base */
.navbar2 {
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;   /* 👈 keeps items centered */
  gap: 20px;
  padding: 12px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  position: relative; /* make navbar a positioned parent */
  z-index: 10;
}

.navbar2 a {
  text-decoration: none;
  color: #333;
  padding: 8px 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative; /* 👈 helps anchor dropdown properly */
}

.navbar2 a:hover {
  color: #0073e6;
}

/* Dropdown container */
.dropdown {
  position: relative; /* anchor for absolute child */
  display: inline-block;
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;    /* 👈 ensures it appears below Administration */
  left: 0;
  background: #ffffff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  z-index: 1000;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

/* Dropdown links */
.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.dropdown-content a:hover {
  background: #f5f9ff;
  padding-left: 20px; /* smooth shift */
  color: #0073e6;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Responsive tweaks */
@media (max-width: 768px) {
  .navbar2 {
    flex-direction: column;   /* stack vertically */
    gap: 10px;
  }
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
nav > a,
.academic > a {
  text-decoration: none;
  color: #222;
  padding: 8px 12px;
  border-radius: 6px;
}
nav > a:hover,
.academic > a:hover { background: #f2f2f2; }

/* --- Academic main dropdown --- */
.academic { position: relative; display: inline-block; }
.academic-content {
  /* hidden by default; shown on hover below */
  display: none;
  position: absolute;
  top: 100%;            /* open below "Academic" */
  left: 0;
  background: #fff;
  min-width: 240px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  padding: 6px 0;
  z-index: 1000;
  white-space: nowrap;  /* keep nice widths for nested items */
}
.academic:hover > .academic-content { display: block; }

/* --- Links inside dropdown --- */
.academic-content > a,
.program-content > a,
.departments-content > a {
  display: block;
  padding: 10px 14px;
  color: #222;
  text-decoration: none;
}
.academic-content > a:hover,
.program-content > a:hover,
.departments-content > a:hover {
  background: #f5f5f5;
}

/* --- Submenus (Programs / Departments) --- */
.programs,
.departments {
  position: relative;    /* anchor for their submenus */
}

.program-content,
.departments-content {
  display: none;         /* hidden by default */
  position: absolute;
  top: 0;
  left: 100%;            /* open to the right of parent */
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  padding: 6px 0;
  z-index: 1100;
}

/* Avoid hover gap: slight overlap with parent so pointer never leaves */
.program-content,
.departments-content { margin-left: -2px; }

.programs:hover > .program-content,
.departments:hover > .departments-content {
  display: block;
}

/* Optional caret indicator */
.caret { float: right; opacity: 0.6; }
.programs,
.departments {
  position: relative;
  margin-bottom: 10px; /* adds vertical gap */
}
.programs,
.departments {
  position: relative;
  margin-bottom: 10px; /* adds vertical gap */
}