/* ==========================================================================
   STAFF DIRECTORY ID CARD STYLES (staff-directory.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESKTOP STYLES (1200px and up)
   -------------------------------------------------------------------------- */

/* Hero Banner */
.staff-hero {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* Base ID Card Structure */
.staff-id-card {
  background-color: #ffffff;
  border: 1px solid #e0e6ed !important;
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.staff-id-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 2rem rgba(13, 110, 253, 0.12) !important;
  border-color: #0d6efd !important;
}

/* ID Card Header Bar */
.staff-card-header {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.school-mini-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.school-name-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #495057;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.id-badge-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  background-color: #0d6efd;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Small Round Avatar Setup */
.staff-avatar-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 4px;
  background: #ffffff;
  border: 2px solid #0d6efd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  position: relative;
}

.staff-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Staff Typography & Designations */
.staff-name {
  color: #1e293b;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}

.staff-designation-badge {
  display: inline-block;
}

.staff-designation-badge span {
  font-size: 0.775rem;
  font-weight: 600;
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
}

.staff-qualification {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.staff-card-footer-strip {
  height: 5px;
  background: linear-gradient(90deg, #0d6efd 0%, #0b5ed7 100%);
  width: 100%;
}

/* --------------------------------------------------------------------------
   2. TABLET VIEWPORT (768px to 991.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  
  .staff-avatar-wrapper {
    width: 90px;
    height: 90px;
  }

  .staff-name {
    font-size: 1rem;
  }

  .staff-designation-badge span {
    font-size: 0.75rem;
  }

}

/* --------------------------------------------------------------------------
   3. MOBILE VIEWPORT (Under 767.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {

  .staff-avatar-wrapper {
    width: 85px;
    height: 85px;
    padding: 3px;
  }

  .school-name-badge {
    font-size: 0.65rem;
  }

  .id-badge-label {
    font-size: 0.6rem;
  }

  .staff-name {
    font-size: 0.95rem;
  }

  .staff-designation-badge span {
    font-size: 0.725rem;
    padding: 0.2rem 0.6rem;
  }

  .staff-qualification {
    font-size: 0.75rem;
  }

}

/* --------------------------------------------------------------------------
   4. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  
  .staff-hero {
    display: none !important;
  }

  .staff-id-card {
    box-shadow: none !important;
    border: 1px solid #000000 !important;
    page-break-inside: avoid;
  }

  .staff-avatar-wrapper {
    border-color: #000000 !important;
  }

  .id-badge-label {
    background-color: #000000 !important;
  }

}