:root {
  --skd-bg: #ffffff;
  --skd-surface: #ffffff;
  --skd-text: #12312e;
  --skd-muted: #5f7471;
  --skd-line: #d7e6e2;
  --skd-accent: #0d9488;
  --skd-accent-dark: #0f766e;
  --skd-accent-soft: #e6f7f4;
  --skd-warm: #c9862a;
  --skd-radius: 18px;
  --skd-radius-sm: 12px;
  --skd-shadow: 0 8px 22px rgba(15, 55, 50, 0.06);
  --skd-shadow-hover: 0 14px 28px rgba(15, 55, 50, 0.1);
  --skd-max: 1304px;
}

/* Full-bleed plain page — no theme card/frame around content */
body.skd-doctors-plain {
  background: var(--skd-bg) !important;
}

body.skd-doctors-plain #ahura-header-main-wrap + *,
body.skd-doctors-plain #skd-plain-page,
body.skd-doctors-plain .skd-plain-page,
body.skd-doctors-plain .site-container,
body.skd-doctors-plain .post-box,
body.skd-doctors-plain .post-entry,
body.skd-doctors-plain .post-entry-custom,
body.skd-doctors-plain .ahura-page-single,
body.skd-doctors-plain .ahura-post-single,
body.skd-doctors-plain .mw_page_container,
body.skd-doctors-plain .wrapper,
body.skd-doctors-plain #content,
body.skd-doctors-plain .content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  float: none !important;
  border-radius: 0 !important;
}

body.skd-doctors-plain .post-title,
body.skd-doctors-plain .breadcrumb,
body.skd-doctors-plain .bread-crumb,
body.skd-doctors-plain .ahura-breadcrumb {
  display: none !important;
}

.skd-directory {
  direction: rtl;
  color: var(--skd-text);
  background: var(--skd-bg);
  padding: 28px 24px 64px;
  margin: 0;
  width: 100%;
  max-width: none;
  min-height: 70vh;
  font-family: inherit;
  box-sizing: border-box;
}

.skd-directory *,
.skd-directory *::before,
.skd-directory *::after {
  box-sizing: border-box;
}

.skd-shell {
  max-width: var(--skd-max);
  margin: 0 auto;
}

.skd-hero {
  text-align: center;
  padding: 18px 12px 28px;
  animation: skd-rise .55s ease both;
}

.skd-hero__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--skd-accent-soft);
  color: var(--skd-accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.skd-hero__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--skd-text);
}

.skd-hero__subtitle {
  margin: 0 auto;
  max-width: 560px;
  color: var(--skd-muted);
  line-height: 1.9;
  font-size: 1.05rem;
}

.skd-filters {
  display: grid;
  gap: 14px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--skd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: skd-rise .65s ease both;
}

.skd-filters__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skd-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.skd-field__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--skd-muted);
  padding-inline-start: 4px;
}

.skd-field input,
.skd-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--skd-line);
  background: #fff;
  border-radius: var(--skd-radius-sm);
  padding: 12px 16px;
  font-size: 0.98rem;
  color: var(--skd-text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.skd-field input:focus,
.skd-field select:focus {
  border-color: var(--skd-accent);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.skd-field--search input {
  font-size: 1.05rem;
  min-height: 56px;
  padding-inline: 18px;
}

.skd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 4px 16px;
}

.skd-meta {
  color: var(--skd-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.skd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.skd-card {
  position: relative;
  background: var(--skd-surface);
  border: 1px solid var(--skd-line);
  border-radius: var(--skd-radius);
  box-shadow: 0 10px 28px rgba(15, 55, 50, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: skd-rise .5s ease both;
}

.skd-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--skd-shadow-hover);
  border-color: rgba(13, 148, 136, 0.35);
}

.skd-card__media {
  position: relative;
  height: 168px;
  background:
    linear-gradient(145deg, rgba(13, 148, 136, 0.16), rgba(15, 118, 110, 0.05)),
    #e8f4f1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.skd-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.95));
}

.skd-card__avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(15, 55, 50, 0.16);
  background: linear-gradient(145deg, #d7ebe7, #f4fbf9);
  z-index: 1;
}

.skd-card__avatar--placeholder {
  display: grid;
  place-items: center;
  color: var(--skd-accent-dark);
  font-weight: 800;
  font-size: 1.55rem;
}

.skd-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 20px 0;
  flex: 1;
}

.skd-card__name {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

.skd-card__name-link {
  color: inherit;
  text-decoration: none;
}

.skd-card__name-link:hover {
  color: var(--skd-accent-dark);
}

.skd-card__spec {
  margin: 0;
  text-align: center;
  color: var(--skd-accent-dark);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.6;
}

.skd-card__city,
.skd-card__edu {
  margin: 0;
  text-align: center;
  color: var(--skd-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.skd-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--skd-muted);
  font-size: 0.9rem;
}

.skd-stars {
  color: var(--skd-warm);
  letter-spacing: 1px;
  font-size: 1rem;
}

.skd-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--skd-accent-soft);
  color: var(--skd-accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(13, 148, 136, 0.14);
}

.skd-badge--cardio {
  background: rgba(201, 134, 42, 0.12);
  color: #9a6418;
  border-color: rgba(201, 134, 42, 0.2);
}

.skd-card__chiprow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.skd-card__snippet {
  margin: 2px 0 0;
  color: var(--skd-muted);
  font-size: 0.88rem;
  line-height: 1.8;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2em;
}

.skd-card__actions {
  margin-top: auto;
  padding: 16px 20px 20px;
}

.skd-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--skd-accent) 0%, var(--skd-accent-dark) 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none !important;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.28);
}

.skd-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.skd-pagination {
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.skd-page-btn {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--skd-line);
  background: #fff;
  color: var(--skd-text);
  cursor: pointer;
  font-weight: 700;
  transition: all .18s ease;
}

.skd-page-btn.is-active,
.skd-page-btn:hover {
  background: var(--skd-accent);
  border-color: var(--skd-accent);
  color: #fff;
}

.skd-empty,
.skd-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--skd-muted);
  background: rgba(255,255,255,.72);
  border: 1px dashed var(--skd-line);
  border-radius: var(--skd-radius);
  font-size: 1.05rem;
}

.skd-loading {
  position: relative;
}

.skd-loading::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(13, 148, 136, 0.2);
  border-top-color: var(--skd-accent);
  animation: skd-spin .8s linear infinite;
}

@keyframes skd-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes skd-spin {
  to { transform: rotate(360deg); }
}

/* Profile — plain full-bleed (no outer card frame) */
.skd-profile-page {
  padding-top: 28px;
  padding-bottom: 72px;
  background: #fff;
}

.skd-profile {
  max-width: var(--skd-max);
  margin: 0 auto;
}

.skd-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--skd-accent-dark);
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}

.skd-profile__back:hover {
  color: var(--skd-accent);
  background: transparent;
  transform: none;
}

.skd-profile__card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.skd-profile__banner {
  display: none;
}

.skd-profile__header {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px 32px;
  align-items: start;
  padding: 0 0 28px;
  margin: 0;
  border-bottom: 1px solid var(--skd-line);
  width: 100%;
}

.skd-profile__avatar {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--skd-line);
  box-shadow: none;
  background: linear-gradient(145deg, #eef6f4, #f8fbfa);
}

.skd-profile__intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 4px 0 0;
}

.skd-profile__badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(201, 134, 42, 0.14);
  color: #9a6418;
  font-size: 0.78rem;
  font-weight: 800;
}

.skd-profile__name {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--skd-text);
}

.skd-profile__spec {
  margin: 0;
  color: var(--skd-accent-dark);
  font-weight: 800;
  font-size: 1.08rem;
}

.skd-profile__edu,
.skd-profile__city {
  margin: 0;
  color: var(--skd-muted);
  line-height: 1.7;
}

.skd-profile__rating {
  padding: 8px 0 0;
  justify-content: flex-start;
}

.skd-profile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.skd-profile__body {
  padding: 28px 0 0;
  display: grid;
  gap: 28px;
  width: 100%;
}

.skd-profile__section {
  margin: 0;
  max-width: none;
}

.skd-profile__section-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 850;
  position: relative;
  padding-bottom: 8px;
}

.skd-profile__section-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--skd-accent);
}

.skd-profile__bio {
  margin: 0;
  line-height: 2;
  color: var(--skd-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 1.02rem;
  max-width: 72ch;
}

.skd-profile__meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skd-profile__meta > div {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--skd-line);
  border-radius: 0;
  min-height: 0;
}

.skd-profile__meta dt {
  margin: 0;
  color: var(--skd-muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.skd-profile__meta dd {
  margin: 0;
  font-weight: 750;
  line-height: 1.75;
  font-size: 0.98rem;
}

.skd-profile__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.skd-profile__list li {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--skd-line);
  border-radius: 0;
  background: transparent;
  line-height: 1.7;
}

.skd-profile__clinics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.skd-profile__clinic {
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--skd-line);
  border-radius: 0;
  background: transparent;
}

.skd-profile__clinic h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 850;
}

.skd-profile__clinic p {
  margin: 0;
  color: var(--skd-muted);
  line-height: 1.75;
}

@media (max-width: 980px) {
  .skd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skd-filters__row {
    grid-template-columns: 1fr;
  }
  .skd-profile__meta,
  .skd-profile__list,
  .skd-profile__clinics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .skd-directory {
    padding: 24px 12px 56px;
  }
  .skd-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .skd-card__media {
    height: 150px;
  }
  .skd-profile__header {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: right;
    margin-top: 0;
    gap: 18px;
  }
  .skd-profile__avatar {
    width: 120px;
    height: 120px;
  }
  .skd-profile__rating,
  .skd-profile__chips {
    justify-content: flex-start;
  }
  .skd-profile__body {
    padding: 22px 0 0;
  }
  .skd-profile__section-title::after {
    right: 0;
    transform: none;
  }
}
