/* Gradient Navbar */
.custom-navbar {
  padding: 0.8rem 1rem;
}

/* Nav links */
.custom-navbar .nav-link {
  color: #2c2a2a !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  padding: 10px 15px;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover underline animation */
.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #3a3636;
  bottom: 0;
  left: 50%;
  transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Hover glow */
.custom-navbar .nav-link:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Dropdown menu */
.dropdown-menu {
  border-radius: 0;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Dropdown item hover */
.dropdown-item:hover {
  background: linear-gradient(90deg, #fcaa74, #fcaa74);
  color: #fff;
}

/* Show dropdown on hover (desktop only) */
@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Mobile tweaks */
.navbar-toggler {
  border: 1px solid #fff;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.dept-sidebar {
  background: linear-gradient(90deg, #b03a4a, #b03a4a);
  padding: 20px;
  border-radius: 8px;
  color: #fff;
}

.dept-title {
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.dept-link {
  background: transparent;
  border: none;
  color: #fff;
  text-align: left;
  padding: 10px 12px 10px 20px;
  margin-bottom: 6px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  border-bottom: 3px dotted white;
}

.dept-link::before {
  content: "▶";
  position: absolute;
  left: 6px;
  opacity: 0;
  transition: 0.3s;
}

.dept-link:hover::before,
.dept-link.active::before {
  opacity: 1;
}

.dept-link:hover,
.dept-link.active {
  background: rgb(252, 251, 251);
  color: #2c2a2a;
  padding-left: 30px;
  border: 4px solid wheat;
}

.dept-content-box {
  background: #98121e;
  color: #fff !important;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.dept-content h4 {
  margin-bottom: 15px;
}

/* =========================
   Tablets & Small Laptops
   ========================= */
@media (max-width: 991px) {
  /* Sidebar spacing */
  .dept-sidebar {
    margin-bottom: 20px;
  }

  /* Sidebar buttons */
  .dept-link {
    font-size: 14px;
    padding: 10px 12px;
  }

  /* Content box padding */
  .dept-content-box {
    padding: 15px;
  }
}

/* =========================
   Mobile Devices
   ========================= */
@media (max-width: 767px) {
  /* Stack sidebar & content */
  .dept-sidebar {
    border-radius: 10px;
  }

  /* Horizontal scrolling tabs */
  .dept-tabs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 10px;
  }

  /* Hide scrollbar (optional) */
  .dept-tabs::-webkit-scrollbar {
    display: none;
  }

  /* Sidebar buttons mobile style */
  .dept-link {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 20px;
  }

  /* Content headings */
  .dept-content h4 {
    font-size: 18px;
  }

  .dept-content p {
    font-size: 14px;
  }
}

/* =========================
   Very Small Devices
   ========================= */
@media (max-width: 575px) {
  /* Navbar spacing */
  .navbar-nav .nav-link {
    padding: 10px 15px;
    text-align: center;
  }

  /* Dropdown full width */
  .dropdown-menu {
    width: 100%;
    text-align: center;
  }

  /* Content padding */
  .dept-content-box {
    padding: 12px;
  }

  .dept-content h4 {
    font-size: 16px;
  }

  .dept-content p {
    font-size: 13px;
    line-height: 1.6;
  }
}

/*   staff department     */
.staff-scroll-box {
  max-height: 420px; /* controls visible height */
  overflow-y: auto;
  padding-right: 10px;
}

/* Staff Card Layout */
.staff-card {
  display: flex;
  gap: 15px;
  background: #f8f9fa;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Photo Styling */
.staff-photo img {
  width: 110px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Table Styling */
.staff-details table th {
  width: 150px;
  background-color: #f1f1f1;
  font-weight: 600;
}

/* Scrollbar (Optional – modern look) */
.staff-scroll-box::-webkit-scrollbar {
  width: 6px;
}

.staff-scroll-box::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

.staff-scroll-box::-webkit-scrollbar-track {
  background: #eee;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .staff-card {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .staff-photo img {
    width: 100px;
    height: 120px;
  }

  .staff-details table th {
    width: 120px;
  }
}
