/* ===============================
   FACULTY LIST – GROUPED
================================ */

.sfbc-faculty-wrapper {
  width: 100%;
}

.sfbc-faculty-filters {
  margin-bottom: 20px;
}

#sfbc-division-filter {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

/* ===============================
   DIVISION BLOCK
================================ */

.sfbc-division {
  margin-bottom: 36px;

  /* animation control */
  display: none;
}

.sfbc-division.visible {
  display: block;
  animation: fadeSlide .25s ease;
}

.sfbc-division h3 {
  font-size: 20px;
  font-weight: 900;
  color: #0b2b55;
  margin-bottom: 14px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 6px;
}

.sfbc-division-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* ===============================
   FACULTY ROW (NO IMAGES HERE)
================================ */

.sfbc-faculty-row {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all .2s ease;
}

.sfbc-faculty-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.sfbc-faculty-name {
  font-weight: 800;
  color: #0b2b55;
}

.sfbc-faculty-role {
  font-size: 13px;
  color: #475569;
  margin-top: 4px;
}

/* ===============================
   BADGES (OPTIONAL – IF USED)
================================ */

.sfbc-badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #1e40af;
  margin-top: 6px;
}

/* ===============================
   LOADING / EMPTY STATES
================================ */

.sfbc-loading,
.sfbc-empty,
.sfbc-error {
  padding: 20px;
  font-weight: 600;
  color: #475569;
}

/* ===============================
   MODAL
================================ */

.sfbc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sfbc-modal {
  background: #fff;
  width: 100%;
  max-width: 920px;
  border-radius: 22px;
  overflow: hidden;
}

.sfbc-modal-header {
  display: flex;
  gap: 22px;
  padding: 26px;
}

.sfbc-modal-header img {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
}

.sfbc-modal-title {
  font-size: 24px;
  font-weight: 900;
}

.sfbc-modal-meta {
  font-size: 14px;
  color: #475569;
}

.sfbc-modal-section {
  padding: 22px 26px;
  border-top: 1px solid #e5e7eb;
}

/* ===============================
   TABS
================================ */

.sfbc-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.sfbc-tab {
  padding-bottom: 10px;
  cursor: pointer;
  font-weight: 700;
}

.sfbc-tab.active {
  border-bottom: 3px solid #0b2b55;
}

.sfbc-tab-content {
  display: none;
}

.sfbc-tab-content.active {
  display: block;
}

/* ===============================
   ANIMATION KEYFRAMES
================================ */

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===============================
   FILTERS ROW
================================ */

.sfbc-faculty-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

#sfbc-division-filter {
  min-width: 220px;
}

#sfbc-faculty-search {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  width: 260px;        /* 👈 CLAVE */
  max-width: 100%;
}

/* ===============================
   MODAL IMAGE SAFE
================================ */

.sfbc-modal-header img {
  background: #f1f5f9;
}

/* if src is empty → image is hidden */
.sfbc-modal-header img[src=""],
.sfbc-modal-header img:not([src]) {
  display: none;
}
