.custom-list {
  list-style-type: disc;
  color: #333;
  margin: 0 0 0 1.25rem;
  padding: 0;
}

.custom-list li {
  margin-bottom: 0.45rem;
  color: #333;
  font-size: 14px;
  display: list-item;
}

.staff-card {
  min-height: 100%;
}

.profile-template {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.profile-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.58s ease, background-color 0.58s ease, visibility 0s linear 0.58s;
  z-index: 9999;
}

.profile-modal-overlay.is-open {
  background: rgba(0, 0, 0, 0.48);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.58s ease, background-color 0.58s ease, visibility 0s linear 0s;
}

.profile-modal {
  width: min(60vw, 960px);
  max-width: 92vw;
  height: 90vh;
  background: rgba(248, 249, 250, 0.97);
  border: 1px solid rgba(206, 212, 218, 0.85);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.58s ease, transform 0.58s ease;
  will-change: opacity, transform;
}

.profile-modal-overlay.is-open .profile-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #e2e6ea;
  background: #f8f9fa;
}

.profile-modal-header h3 {
  margin: 0;
  color: #343a40;
  font-size: 24px;
  line-height: 1.2;
}

.profile-modal-close {
  background: transparent;
  border: none;
  color: #EF7F1A;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.profile-modal-close:hover {
  color: #5E9D44;
  transform: scale(1.05);
}

.profile-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  text-align: left;
}

.profile-modal-footer {
  padding: 16px 24px 22px;
  border-top: 1px solid #e2e6ea;
  text-align: center;
  background: #f8f9fa;
}

.profile-content-block {
  margin-bottom: 22px;
}

.profile-content-block:last-child {
  margin-bottom: 0;
}

.profile-content-block h4 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #343a40;
}

.profile-content-block h5 {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #343a40;
}

.profile-content-block p {
  margin-bottom: 14px;
  font-size: 15px;
  color: #343a40;
  line-height: 1.65;
}

.modal-lead {
  font-size: 18px;
  font-weight: 700;
  color: #343a40;
}

@media (max-width: 1199.98px) {
  .profile-modal {
    width: min(72vw, 920px);
  }
}

@media (max-width: 991.98px) {
  .profile-modal {
    width: min(84vw, 900px);
    height: 88vh;
  }
}

@media (max-width: 767.98px) {
  .profile-modal-overlay {
    padding: 12px;
  }

  .profile-modal {
    width: 100%;
    max-width: 100%;
    height: 88vh;
    border-radius: 12px;
  }

  .profile-modal-header,
  .profile-modal-body,
  .profile-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-modal-header h3 {
    font-size: 20px;
  }

  .modal-lead {
    font-size: 17px;
  }
}
