/* ========================================================
   MODERN FACULTY & STAFF SHOWCASE STYLES
   ======================================================== */
.faculty-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.faculty-page-header {
  text-align: center;
  margin-bottom: 28px;
}

.faculty-page-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: #0f3b2d !important;
  font-weight: 800 !important;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.faculty-page-header p {
  font-size: clamp(14px, 1.3vw, 16px);
  color: #4b5563;
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.faculty-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}

/* Faculty Grid */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
  margin-top: 24px;
  margin-bottom: 40px;
}

/* Faculty Card */
.faculty-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(21, 84, 62, 0.15);
  border-color: #10b981;
}

/* Portrait Frame */
.faculty-photo-frame {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, #f0fdf4 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
  transition: transform 0.35s ease;
}

.faculty-card:hover .faculty-photo-img {
  transform: scale(1.04);
}

/* Placeholder Avatar when no photo */
.faculty-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e6f4ea 0%, #cfe8d5 100%);
  color: #15543e;
}

.faculty-placeholder-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 8px;
}

.faculty-placeholder-initials {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #0f3b2d;
}

/* Role Badge */
.faculty-role-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.role-principal {
  background: #b45309;
  color: #ffffff;
  border: 1px solid #f59e0b;
}

.role-pgt {
  background: #15543e;
  color: #ffffff;
  border: 1px solid #34d399;
}

.role-tgt {
  background: #1d4ed8;
  color: #ffffff;
  border: 1px solid #60a5fa;
}

.role-staff {
  background: #475569;
  color: #ffffff;
  border: 1px solid #94a3b8;
}

/* Card Body */
.faculty-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.faculty-card-name {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.35 !important;
}

.faculty-card-designation {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #15543e !important;
  margin: 0 0 14px 0 !important;
}

.faculty-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1.5px solid #f1f5f9;
  margin-top: auto;
}

.faculty-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem !important;
  color: #4b5563 !important;
  line-height: 1.4 !important;
}

.faculty-meta-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.faculty-meta-label {
  font-weight: 700;
  color: #374151;
  margin-right: 4px;
}

.faculty-meta-value {
  color: #1f2937;
  font-weight: 600;
}

/* Subgroup section headers */
.faculty-subgroup-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f3b2d !important;
  margin: 40px 0 16px 0 !important;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Old admin preview compatibility */
.faculty-passport-preview {
  display: block;
  width: 120px;
  height: 150px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 8px;
  border: 1px solid #cfe0d6;
  background: #eef3ef;
  margin: 12px 0;
}
.faculty-passport-preview[hidden] {
  display: none !important;
}
