* {
  box-sizing: border-box;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  color: #1c1c1c;
  background: #fafafa;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: #0a6e5c;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e2e2;
  background: #fff;
}

.site-header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: #0a6e5c;
}

main {
  max-width: 960px;
  margin-inline: auto;
  padding: 1rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #888;
  font-size: 0.85rem;
}

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-end: 1rem;
}

.filters select {
  flex: 1 1 45%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
}

/* doctor cards */
.doctor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.doctor-card {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.doctor-card a {
  display: block;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.doctor-card img,
.avatar-placeholder {
  border-radius: 50%;
  width: 72px;
  height: 72px;
  margin-inline: auto;
  margin-block-end: 0.5rem;
  object-fit: cover;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a6e5c;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.avatar-placeholder--lg {
  width: 150px;
  height: 150px;
  font-size: 3rem;
}

.doctor-card h3 {
  font-size: 1rem;
  margin: 0.25rem 0;
}

.card-meta {
  font-size: 0.85rem;
  color: #555;
  margin: 0.15rem 0;
}

.empty-state {
  text-align: center;
  color: #777;
  padding: 2rem 0;
}

/* pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-block: 1.5rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* doctor profile */
.doctor-profile {
  text-align: center;
}

.doctor-profile img,
.doctor-profile .avatar-placeholder {
  width: 150px;
  height: 150px;
  margin-inline: auto;
  margin-block-end: 1rem;
}

.doctor-profile h1 {
  margin-block-end: 0.25rem;
}

.doctor-profile .specialty {
  color: #0a6e5c;
  font-weight: 700;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-list li {
  margin-block-end: 0.4rem;
}

address {
  font-style: normal;
  color: #555;
}
