/* ===== Team Page ===== */

.team-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 1rem 1rem;
  background: linear-gradient(to bottom, #f8f9fb, #fff);
  border-radius: 0 0 16px 16px;
}

.team-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #222;
}

.team-hero .muted {
  color: #666;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Finder Form ===== */
.finder {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.finder input,
.finder select {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 180px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.finder input:focus,
.finder select:focus {
  border-color: #0073e6;
  box-shadow: 0 0 0 3px rgba(0,115,230,0.15);
  outline: none;
}

.finder button {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.finder .btn {
  background: #0073e6;
  border: none;
  color: #fff;
  font-weight: 500;
}

.finder .btn:hover {
  background: #005bb5;
}

.finder .btn-ghost {
  background: transparent;
  border: 1px solid #ccc;
  color: #333;
}

.finder .btn-ghost:hover {
  border-color: #0073e6;
  color: #0073e6;
}

/* ===== Team Grid ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.card-body h3 {
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
  color: #222;
  font-weight: 600;
}

.card-body .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.card-body .card-link {
  margin-top: auto;
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  color: #0073e6;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid #0073e6;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.card-body .card-link:hover {
  background: #0073e6;
  color: #fff;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination a {
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #0073e6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination a:hover:not(.disabled):not(.active) {
  background: #f0f6ff;
}

.pagination a.active {
  background: #0073e6;
  color: #fff;
  font-weight: 600;
}

.pagination a.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(0,0,0,0.65);
  padding: 2rem 1rem;
}

.modal-content {
  background: #fff;
  margin: auto;
  max-width: 750px;
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-content img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1.2rem;
  border: 4px solid #f0f0f0;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
  color: #222;
}

.modal-content .meta {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.modal-content p {
  line-height: 1.6;
  color: #333;
  font-size: 1rem;
}

.close {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: #0073e6;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .team-hero h1 {
    font-size: 2rem;
  }
  .team-card img {
    height: 220px;
  }
  .modal-content {
    padding: 1.5rem;
  }
}
