/* team.css — /strucni-tim/ listing and /nas-tim/<slug>/ doctor profiles.
   Ports the live DOCTORS snippet: 3:4 portrait card, centred info block, gold
   "Pogledaj profil" pill, and the profile's offset-gold-shadow hero. */

/* ------------------------------------------------------------------ hero */
.tm-hero {
  background: var(--mm-green);
  color: var(--mm-cream);
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}
.tm-hero h1 { color: var(--mm-cream); margin: 0 0 14px; }
.tm-hero__lead {
  max-width: 64ch;
  margin: 0;
  color: rgba(246, 249, 247, .78);
  font-size: clamp(15px, 1.6vw, 17px);
}

/* ------------------------------------------------------------------ department filter */
.tm-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.tm-filter__btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mm-green);
  background: var(--mm-white);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.tm-filter__btn:hover { border-color: var(--mm-gold-soft); }
.tm-filter__btn[aria-pressed="true"] {
  background: var(--mm-green);
  border-color: var(--mm-green);
  color: var(--mm-cream);
}
.tm-count { font-size: 13px; color: var(--mm-mute); margin: 0 0 26px; }

/* ------------------------------------------------------------------ doctor grid */
.dc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.dc-card {
  display: flex;
  flex-direction: column;
  background: var(--mm-white);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(15, 62, 53, .06);
  transition: transform .4s ease, box-shadow .4s ease;
  height: 100%;
}
.dc-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(15, 62, 53, .15); }
.dc-card__media {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--mm-cream-deep);
}
.dc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform .6s ease;
}
.dc-card:hover .dc-card__media img { transform: scale(1.08); }
.dc-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  padding: 24px 18px;
  text-align: center;
}
.dc-card__name {
  font-family: var(--mm-font-serif);
  font-size: 21px;
  line-height: 1.2;
  color: var(--mm-green);
  margin: 0 0 10px;
}
.dc-card__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mm-gold);
  line-height: 1.5;
  margin: 0 0 18px;
  /* single Serbian specialty words run to 20+ characters */
  overflow-wrap: anywhere;
  max-width: 100%;
}
.dc-card__dept {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mm-mute);
  margin: 0 0 16px;
}
.dc-card__action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mm-green);
  background: rgba(15, 62, 53, .05);
  border-radius: var(--mm-radius-pill);
  padding: 9px 18px;
  transition: background .3s ease, color .3s ease;
}
.dc-card__action svg { width: 14px; height: 14px; fill: currentColor; }
.dc-card:hover .dc-card__action { background: var(--mm-green); color: var(--mm-cream); }
.dc-card[hidden] { display: none; }

/* ------------------------------------------------------------------ profile hero */
.dp-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.dp-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.dp-hero__media img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 20px 20px 0 var(--mm-gold);
  background: var(--mm-cream-deep);
}
.dp-hero__role {
  display: block;
  color: var(--mm-gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  line-height: 1.7;
  margin: 0 0 18px;
}
.dp-hero h1 { margin: 0 0 18px; }
.dp-hero__bio { color: var(--mm-mute); font-size: 15.5px; line-height: 1.8; }
.dp-hero__bio p { margin: 0 0 1em; }
.dp-depts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.dp-depts a, .dp-depts span {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mm-green);
  background: var(--mm-cream-deep);
  border-radius: var(--mm-radius-pill);
  padding: 7px 16px;
  text-decoration: none;
}
.dp-depts a:hover { background: var(--mm-green); color: var(--mm-cream); }
.dp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ------------------------------------------------------------------ profile sections */
.dp-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.dp-section { padding: 22px 0; border-top: 1px solid var(--mm-line); }
.dp-section--full { grid-column: 1 / -1; }
.dp-section h2 {
  font-family: var(--mm-font-serif);
  font-size: clamp(21px, 2.4vw, 28px);
  color: var(--mm-green);
  margin: 0 0 18px;
}
.dp-section ul { margin: 0; padding-left: 1.2em; color: var(--mm-mute); font-size: 15px; line-height: 1.8; }
.dp-section li { margin-bottom: .45em; }
.dp-section__html { color: var(--mm-mute); font-size: 15px; line-height: 1.8; }
.dp-section__html h2, .dp-section__html h3 {
  font-family: var(--mm-font-serif);
  color: var(--mm-green);
}
.dp-section__html h2 { font-size: clamp(21px, 2.4vw, 28px); margin: 1.4em 0 .5em; }
.dp-section__html h3 { font-size: clamp(18px, 2vw, 22px); margin: 1.4em 0 .4em; }
.dp-section__html > *:first-child { margin-top: 0; }
.dp-section__html p { margin: 0 0 1em; }
.dp-section__html ul { margin: 0 0 1em; padding-left: 1.2em; }
.dp-section__html li { margin-bottom: .4em; }
.dp-video {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
  aspect-ratio: 16 / 9;
}
.dp-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.dp-xlink {
  max-width: 860px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  padding: 14px 16px;
  background: #f9fbfb;
  border-left: 4px solid var(--mm-gold);
  border-radius: 4px;
  line-height: 1.6;
  font-size: 15px;
}
.dp-xlink a { color: var(--mm-green); font-weight: 600; }

/* ------------------------------------------------------------------ "Ostali članovi tima" rail */
.dp-others { padding: clamp(40px, 6vw, 72px) 0; background: var(--mm-cream-deep); }
.dp-others h2 { text-align: center; margin-bottom: clamp(24px, 3vw, 40px); }
.dp-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 260px);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--mm-gold) transparent;
  -webkit-overflow-scrolling: touch;
}
.dp-rail > * { scroll-snap-align: start; }
.dp-rail::-webkit-scrollbar { height: 6px; }
.dp-rail::-webkit-scrollbar-thumb { background: var(--mm-gold); border-radius: 6px; }
.dp-rail::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 900px) {
  .dp-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .dp-hero__media img { box-shadow: 12px 12px 0 var(--mm-gold); max-width: 420px; margin: 0 auto; }
  .dp-depts, .dp-actions { justify-content: center; }
  .dp-sections { grid-template-columns: 1fr; }
  .dp-section ul { text-align: left; }
}
@media (max-width: 640px) {
  .dp-hero__media img { box-shadow: 8px 8px 0 var(--mm-gold); }
  .dc-grid { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 14px; }
  .dc-card__body { padding: 16px 10px; }
  .dc-card__name { font-size: 17px; }
  .dc-card__role { font-size: 10px; letter-spacing: .04em; margin-bottom: 14px; }
  .dc-card__dept { font-size: 10px; letter-spacing: .04em; }
  .dc-card__action { font-size: 10.5px; letter-spacing: .06em; padding: 8px 12px; }
}

/* ------------------------------------------------------------------ breadcrumbs
   Duplicated from blog.css on purpose: each page type loads exactly one of these
   stylesheets, and .mm-crumbs must not depend on which one that is. */
.mm-crumbs {
  font-size: 12.5px;
  color: var(--mm-mute);
  padding: 18px 0 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mm-crumbs li::after { content: "›"; margin-left: 6px; color: var(--mm-gold); }
.mm-crumbs li:last-child::after { content: ""; }
.mm-crumbs a { color: var(--mm-mute); text-decoration: none; }
.mm-crumbs a:hover { color: var(--mm-green); }
.mm-crumbs--on-dark { color: rgba(246, 249, 247, .7); }
.mm-crumbs--on-dark a { color: rgba(246, 249, 247, .7); }
.mm-crumbs--on-dark a:hover { color: var(--mm-gold); }
@media (max-width: 640px) {
  .mm-crumbs li:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
