/* ========================================
   STAFF TEMPLATE STYLES
   For profiles, bios, team members, spokespeople
======================================== */

/* Single Staff Template */
.staff-template {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.staff-container {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.staff-back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #dd230f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.staff-back-link:hover {
  color: #cd3423;
  text-decoration: underline;
}

.staff-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
}

.staff-photo {
  flex-shrink: 0;
  text-align: center;
}

.staff-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.staff-download-photo {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #dd230f;
  text-decoration: none;
  text-align: center;
  transition: color 0.2s ease;
}

.staff-download-photo:hover {
  color: #cd3423;
  text-decoration: underline;
}

.staff-title-section {
  flex: 1;
}

.staff-title {
  margin: 0 0 0.5rem 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a2a3a;
  line-height: 1.2;
}

.staff-subtitle {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #4a5568;
}

.staff-contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.staff-contact-item {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.staff-contact-item strong {
  color: #1a2a3a;
}

.staff-contact-item a {
  color: #dd230f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.staff-contact-item a:hover {
  color: #cd3423;
  text-decoration: underline;
}

.staff-content {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #2d3748;
  margin-bottom: 2rem;
}

.staff-content p {
  margin: 0 0 1rem 0;
}

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

.staff-content a {
  color: #dd230f;
  text-decoration: underline;
}

.staff-content a:hover {
  color: #cd3423;
}

/* Staff Form */
.staff-form {
  margin-top: 3rem;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.staff-form h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a2a3a;
  text-align: center;
}

.staff-signup-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.staff-signup-form .form-group {
  position: relative;
}

.staff-signup-form .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.staff-signup-form .form-control:focus {
  outline: none;
  border-color: #dd230f;
  box-shadow: 0 0 0 3px rgba(221, 35, 15, 0.1);
}

.staff-signup-form .btn {
  width: 100%;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.staff-signup-form .btn-primary {
  background: #dd230f;
  color: #fff;
}

.staff-signup-form .btn-primary:hover {
  background: #cd3423;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(221, 35, 15, 0.3);
}

.staff-signup-form .form-messages {
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.staff-signup-form .form-messages.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.staff-signup-form .form-messages.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Archive Template */
.staff-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.staff-archive-header {
  margin-bottom: 2rem;
  text-align: center;
}

.staff-archive-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a2a3a;
}

/* Taxonomy Sections */
.staff-section {
  margin-bottom: 3rem;
}

.staff-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a2a3a;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #dd230f;
}

.staff-section__description {
  margin: 0 0 1.5rem 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #4a5568;
}

.staff-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.staff-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.staff-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.staff-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.staff-card:hover .staff-card__image img {
  transform: scale(1.05);
}

.staff-card__content {
  padding: 1.5rem;
}

.staff-card__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.staff-card__title a {
  color: #1a2a3a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.staff-card__title a:hover {
  color: #dd230f;
}

.staff-card__subtitle {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #4a5568;
}

.staff-card__excerpt {
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #2d3748;
}

.staff-card__link {
  display: inline-block;
  color: #dd230f;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.staff-card__link:hover {
  color: #cd3423;
  text-decoration: underline;
}

/* Pagination */
.staff-pagination {
  margin-top: 3rem;
  text-align: center;
}

.staff-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.staff-pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  min-width: 40px;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #2d3748;
  text-decoration: none;
  transition: all 0.2s ease;
}

.staff-pagination .page-numbers:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.staff-pagination .page-numbers.current {
  background: #dd230f;
  color: #fff;
  border-color: #dd230f;
}

/* Responsive */
@media (max-width: 768px) {
  .staff-container {
    padding: 1.5rem;
  }
  
  .staff-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .staff-photo img {
    width: 150px;
    height: 150px;
  }
  
  .staff-title {
    font-size: 1.75rem;
  }
  
  .staff-subtitle {
    font-size: 1.125rem;
  }
  
  .staff-contact {
    justify-content: center;
  }
  
  .staff-signup-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .staff-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .staff-template {
    padding: 1rem 0.5rem;
  }
  
  .staff-container {
    padding: 1rem;
  }
  
  .staff-title {
    font-size: 1.5rem;
  }
  
  .staff-form {
    padding: 1.5rem;
  }
}
