/* ========================================
   NJTPA Staff Post Type Styles
   ======================================== */

/* Main Layout */
.staff-archive-layout {
  padding: 4rem 0;
}

/* Staff Directory Table */
.staff-directory-table {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 4rem;
}

/* Staff Table */
.staff-table {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Group Sections */
.staff-group-section {
  border-bottom: 1px solid #f0f0f0;
}

.staff-group-section:last-child {
  border-bottom: none;
}

.staff-group-header {
  background: var(--njtpa-dark-blue);
  color: white;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  padding: 1rem 2rem;
  margin: 0;
  border-bottom: 2px solid var(--njtpa-maroon);
}

/* Staff Rows */
.staff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  align-items: center;
}

.staff-row:last-child {
  border-bottom: none;
}


/* Staff Information */
.staff-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--njtpa-dark-blue);
  line-height: 1.3;
}

.staff-title {
  font-size: var(--font-size-sm);
  color: var(--njtpa-gray-medium);
  line-height: 1.3;
  text-align: right;
}

/* Staff Card Styles */
.staff-card {
  background: var(--njtpa-white);
  border: 1px solid var(--njtpa-gray-light);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.staff-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.staff-card__image {
  text-align: center;
  background: #f8f9fa;
  padding: 1rem;
}

.staff-card__image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e9ecef;
  transition: border-color 0.3s ease;
}

.staff-card:hover .staff-card__image img {
  border-color: #e74c3c;
}

.staff-card__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.staff-card__header {
  text-align: center;
  margin-bottom: 1rem;
}

.staff-card__name {
  color: #2c3e50;
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.staff-card__title {
  color: #6c757d;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
  line-height: 1.4;
}

.staff-card__group {
  color: #e74c3c;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.staff-card__body {
  flex: 1;
}

.staff-card__description {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.staff-card__contact {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1rem;
  border: 1px solid #e9ecef;
}

.staff-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.staff-contact-item:last-child {
  margin-bottom: 0;
}

.staff-contact__label {
  font-weight: 500;
  color: #495057;
  min-width: 70px;
}

.staff-contact__value {
  color: #e74c3c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.staff-contact__value:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* No Staff Found Message */
.no-staff-found {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--njtpa-gray-lighter);
  border-radius: 8px;
  border: 1px solid var(--njtpa-gray-light);
  margin-top: 2rem;
}

.no-staff-found h3 {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.no-staff-found p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Staff Card Variations */
.staff-card--compact .staff-card__image {
  padding: 0.75rem;
}

.staff-card--compact .staff-card__image img {
  width: 80px;
  height: 80px;
}

.staff-card--compact .staff-card__content {
  padding: 1rem;
}

.staff-card--compact .staff-card__name {
  font-size: 1.1rem;
}

.staff-card--compact .staff-card__title {
  font-size: 0.9rem;
}

/* No Staff Found Message */
.no-staff-found {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: var(--border-radius-lg);
  margin-top: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.no-staff-found h2 {
  color: var(--njtpa-dark-blue);
  margin-bottom: 1rem;
}

.no-staff-found p {
  color: var(--njtpa-gray-medium);
  margin: 0;
}

/* No Staff Found Message */
.no-staff-found {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: var(--border-radius-lg);
  margin-top: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.no-staff-found h2 {
  color: var(--njtpa-dark-blue);
  margin-bottom: 1rem;
}

.no-staff-found p {
  color: var(--njtpa-gray-medium);
  margin: 0;
}


@media (max-width: 768px) {


  .staff-archive-layout {
    padding: 3rem 0;
  }

  .staff-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
  }

  .staff-title {
    text-align: left;
  }

  .staff-group-header {
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {

  .staff-row {
    padding: 1rem;
  }

  .staff-name {
    font-size: var(--font-size-sm);
  }

  .staff-title {
    font-size: var(--font-size-xs);
  }

  .staff-contact {
    font-size: var(--font-size-xs);
  }
}

.staff-archive-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.staff-directory-main {
  min-width: 0;
}

.contact-intro-content {
  margin-bottom: 2rem;
}

.contact-intro-content p:last-child {
  margin-bottom: 0;
}

.staff-contact-sidebar {
  background: var(--njtpa-white);
  border-radius: var(--border-radius-lg);
  height: fit-content;
}

.staff-contact-sidebar .sidebar-section {
  padding: 1.5rem;
  border-bottom: 1px solid var(--njtpa-gray-light);
}

.staff-contact-sidebar .sidebar-section:last-child {
  border-bottom: none;
}

.staff-contact-sidebar .sidebar-title {
  color: var(--njtpa-dark-blue);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--njtpa-maroon);
}

.staff-contact-sidebar .contact-info .phone-number {
  margin-bottom: 1rem;
}

.staff-contact-sidebar .contact-info .phone-number strong {
  display: block;
  color: var(--njtpa-dark-blue);
  margin-bottom: 0.25rem;
}

.staff-contact-sidebar .contact-info .phone-number a {
  color: var(--njtpa-maroon);
  text-decoration: none;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.staff-contact-sidebar .contact-info .phone-number a:hover {
  text-decoration: underline;
}

.staff-contact-sidebar .contact-description p,
.staff-contact-sidebar .disclaimer p,
.staff-contact-sidebar .records-info p {
  color: var(--njtpa-gray-medium);
  line-height: 1.6;
  margin: 0;
  font-size: var(--font-size-sm);
}

.staff-contact-sidebar .records-info a {
  color: var(--njtpa-maroon);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.staff-contact-sidebar .records-info a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .staff-archive-content {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .staff-archive-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .staff-contact-sidebar {
    position: static;
    order: -1;
  }

  .staff-contact-sidebar .sidebar-section {
    padding: 1rem;
  }

  .staff-contact-sidebar .sidebar-title {
    font-size: var(--font-size-base);
  }
}
