.dept-item:hover,
.dept-item.active {
  background-color: #00668e;
  color: #fff;
  cursor: pointer;
}

.admin-split-top {
  margin-top: 5rem;
}

.admin-sidebar {
  height: 100vh;
  overflow-y: auto;
}

.admin-back-link {
  color: #00668e;
  font-family: exocular;
  cursor: pointer;
}

.admin-show-all-btn {
  border: 2px solid #00668e;
  color: #00668e;
  background-color: transparent;
  transition: all 0.3s;
}

#showAllBtn:hover {
  background-color: #00668e;
  color: #fff;
}

.staff-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.staff-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #f5f5f5;
}

.staff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.staff-card:hover .staff-image img {
  transform: scale(1.05);
}

.staff-body {
  padding: 16px 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.staff-name {
  font-size: 18px;
  font-weight: 600;
  color: #00668e;
  margin-bottom: 6px;
}

.staff-position {
  font-size: 13px;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.staff-email {
  font-size: 13px;
  color: #1c87a4;
  text-decoration: none;
  word-break: break-word;
}

.staff-email:hover { text-decoration: underline; }

.pagination .page-item.active .page-link {
  background-color: #00668e;
  border-color: #00668e;
  color: #fff;
}

.card-admin {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-admin:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.img-wrapper {
  overflow: hidden;
  height: 250px;
  background-color: #f0f0f0;
}

.card-admin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-admin:hover .card-admin-img { transform: scale(1.05); }

.card-admin-body {
  padding: 20px;
  background-color: #fdfdfd;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #00668e;
}

.admin-role {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.admin-email {
  display: inline-block;
  font-size: 14px;
  color: #1c87a4;
  text-decoration: none;
  margin-top: 5px;
  word-break: break-word;
}

.admin-email:hover { text-decoration: underline; }

/* Search input underline effect (admin departments) */
.group { position: relative; margin-bottom: 45px; }
.span2 { position: relative; display: block; width: 300px; }
.span2:before,
.span2:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: #1c87a4;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}
.span2:before { left: 50%; }
.span2:after { right: 50%; }

input:focus ~ .span2:before,
input:focus ~ .span2:after { width: 50%; }

.span1 {
  position: absolute;
  height: 60%;
  width: 100px;
  top: 25%;
  left: 0;
  pointer-events: none;
  opacity: 0.5;
}

input:focus ~ .span1 {
  -webkit-animation: inputspan1er 0.3s ease;
  -moz-animation: inputspan1er 0.3s ease;
  animation: inputspan1er 0.3s ease;
}

@-webkit-keyframes inputspan1er {
  from { background: #1c87a4; }
  to { width: 0; background: transparent; }
}
@-moz-keyframes inputspan1er {
  from { background: #1c87a4; }
  to { width: 0; background: transparent; }
}
@keyframes inputspan1er {
  from { background: #1c87a4; }
  to { width: 0; background: transparent; }
}
