/* ── Hierarchy Section ── */
#personnelContainer,
.personnel-department,
.personnel-level {
  gap: 2.5rem;
  display: flex;
  flex-direction: column;
}
.level-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 auto .4rem;
  padding-bottom: .4rem;
  border-bottom: 3px solid currentColor;
  display: inline-block;
}
.personnel-level.level-1 .level-title {
  color: #b91c1c;
}
.personnel-level.level-2 .level-title {
  color: #b45309;
}
.personnel-level.level-3 .level-title {
  color: #1d4ed8;
}
/* Row layout: centred for level-1, normal grid for others */
.personnel-row {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 1.5rem;
}
/* ── Person Card ── */
.person-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  width: 314px;
  flex-shrink: 0;
  border-top: 4px solid transparent;
}
.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .13);
}
/* Level-based accent border */
.level-1 {
  border-color: #b91c1c;
}
.level-2 {
  border-color: #b45309;
}
.level-3 {
  border-color: #1d4ed8;
}
.level-4 {
  border-color: #18ce22;
}
/* Photo */
.person-photo-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: #f3f4f6;
}
.person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.person-card:hover .person-photo {
  transform: scale(1.07);
}
.person-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 26, 0.8) 100%);
  transition: opacity 0.3s ease;
  opacity: 0;
}
.person-card:hover .person-overlay {
  opacity: 1;
}
.person-view-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  padding: 0.5rem 1.25rem;
  background: white;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  height: auto;
}
.person-card:hover .person-view-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.person-info {
  padding: 1.25rem;
}
.person-name {
  font-family: 'Prompt', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.person-position {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.person-department {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* ── No personnel ── */
.no-personnel {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
  font-size: 1.1rem;
}
/* ============================================
   Modal Styles
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease;
  padding: 24px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-container {
  background: var(--color-white);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 250ms ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8fafc;
  color: var(--color-secondary);
  transition: all 150ms ease;
  z-index: 10;
  padding: 0;
}
.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}
.modal-close svg {
  width: 20px;
  height: 20px;
}
.modal-content {
  padding: 0;
}
.modal-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #CC0000 50%, #990000 100%);
  padding: 48px 32px;
  display: flex;
  justify-content: center;
}
.modal-image-container {
  position: relative;
  width: 130px;
  height: 130px;
}
.modal-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  display: none;
}
.modal-image.active {
  display: block;
}
.modal-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.modal-image-placeholder svg {
  width: 60px;
  height: 60px;
  color: var(--color-secondary);
}
.modal-body {
  padding: 32px;
}
.modal-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 4px;
}
.modal-position {
  font-size: 16px;
  color: var(--secondary-blue);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}
.modal-department {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-secondary);
  margin-bottom: 24px;
}
.modal-department svg {
  width: 18px;
  height: 18px;
}
.modal-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 24px 0;
}
.modal-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.modal-contact {
  margin-bottom: 24px;
}
.modal-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-secondary);
}
.modal-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--secondary-blue);
  flex-shrink: 0;
}
.modal-bio p {
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.7;
}
/* ================================================================
   Widget – Personnel
   ================================================================ */
.widget-personnel {
  padding: 1rem 0;
}
.widget-personnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}
.widget-person-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}
.widget-person-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  margin: 0 auto .4rem;
  display: block;
  transition: border-color .2s;
}
.widget-person-card:hover img {
  border-color: inherit;
}
.widget-person-name {
  font-size: .82rem;
  font-weight: 600;
  color: #1e293b;
  display: block;
}
.widget-person-position {
  font-size: .75rem;
  color: #9ca3af;
  display: block;
}