/* --- Filter Form Styling --- */
.staff-filter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 30px;
}
@media (min-width: 768px) {
  .staff-filter-form {
    grid-template-columns: 2fr 1fr 1fr auto;
  }
}
.staff-filter-group {
  display: flex;
  flex-direction: column;
}
.staff-filter-form input[type="text"],
.staff-filter-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  height: 48px;
}
.staff-filter-form select {
  background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1.2em;
  padding-right: 40px;
}
.staff-filter-form .button-group {
  justify-content: flex-end;
}
.staff-filter-form button#staff-filter-submit {
  background-color: transparent;
  border: 2px solid #a4e0dc; /* Teal border */
  color: #a4e0dc;
  border-radius: 8px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  padding: 8px;
  transition: all 0.3s ease;
}
.staff-filter-form button#staff-filter-submit svg {
  width: 100%;
  height: 100%;
  stroke: #a4e0dc;
  transition: all 0.3s ease;
}
.staff-filter-form button#staff-filter-submit:hover {
  background-color: #a4e0dc;
}
.staff-filter-form button#staff-filter-submit:hover svg {
  stroke: #fff;
}

/* --- Results Grid --- */
.staff-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.staff-results-initial p {
  text-align: center;
  font-size: 1.1rem;
  color: #777;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* --- Doctor Card Styling (NEW SIMPLE VERSION) --- */
.staff-card {
  display: flex; /* Switched to flexbox */
  flex-direction: column; /* Stack image and content */
  border: 2px solid #a4e0dc;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  background-color: #fff; /* White background */
}
.staff-card:hover {
  box-shadow: 0 8px 25px rgba(164, 220, 220, 0.7);
  transform: translateY(-5px);
}
.staff-card-image-link {
  display: block;
  text-decoration: none;
}
/* --- Doctor Image --- */
.staff-card-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 3px; /* The 3px space */
  box-sizing: border-box;
}
.staff-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px; /* Inner radius */
}

/* --- Solid Teal Content Box (No Overlap) --- */
.staff-card-content-box {
  background-color: #a4e0dc; /* Solid Teal */
  color: #fff;
  padding: 20px;
  text-align: center;
  transition: all 0.4s ease-out;
  /* This flex property makes it fill the remaining height */
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
}

/* --- Content that is always visible --- */
.staff-card-content-visible {
  /* No special styles needed */
}
.staff-card-title {
  margin: 0 0 5px 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.staff-card-title a {
  color: #fff; 
  text-decoration: none;
}
.staff-card-meta {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  margin: 0;
  
  /* This pushes the hidden buttons to the bottom */
  flex-grow: 1;
}

/* --- Button Container & Styles (Hidden) --- */
.staff-card-buttons-hidden {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px; 
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease-out;
}

/* --- Show buttons on card hover --- */
.staff-card:hover .staff-card-buttons-hidden {
  max-height: 200px;
  opacity: 1;
}

.staff-card-button {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer; 
}
.staff-card-button.staff-card-button-details {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.staff-card-button.staff-card-button-details:hover {
  background-color: #fff;
  color: #a4e0dc;
}
.staff-card-button.staff-card-button-book {
  background-color: #fff;
  border: 2px solid #fff;
  color: #a4e0dc;
}
.staff-card-button.staff-card-button-book:hover {
  background-color: transparent;
  color: #fff;
}

/* --- Loader & Messages --- */
.staff-results-none {
  text-align: center;
  padding: 40px;
  font-size: 1.1rem;
  color: #777;
}
.staff-results-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #777;
  width: 100%;
}
.staff-results-loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #a4e0dc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: adf-spin 1s linear infinite;
  margin-bottom: 10px;
}
@keyframes adf-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}