/* blog.css — /blog/ index, post cards (reused for related posts) and the post page.
   Ported from the live POST GRID snippet: landscape 16:10 cards, gold category
   label, DM Serif title, "Pročitaj više" arrow link. */

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

/* ------------------------------------------------------------------ filter tabs */
.bl-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: 0;
  list-style: none;
}
.bl-filter__btn {
  font-family: var(--mm-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mm-green);
  background: var(--mm-white);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-pill);
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.bl-filter__btn:hover { border-color: var(--mm-gold-soft); color: var(--mm-green); }
.bl-filter__btn[aria-pressed="true"] {
  background: var(--mm-green);
  border-color: var(--mm-green);
  color: var(--mm-cream);
}
.bl-count { font-size: 13px; color: var(--mm-mute); margin: 0 0 22px; }

/* ------------------------------------------------------------------ group heading */
.bl-group { margin: 0 0 clamp(30px, 4vw, 46px); }
.bl-group__title {
  display: inline-block;
  font-family: var(--mm-font-serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--mm-green);
  border-bottom: 2px solid var(--mm-gold);
  padding-bottom: 10px;
  margin: 0 0 26px;
}

/* ------------------------------------------------------------------ grid + card */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 30px;
  margin: 0 0 clamp(36px, 5vw, 60px);
}
.pc-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, 0.06);
  transition: transform .4s ease, box-shadow .4s ease;
  height: 100%;
}
.pc-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(15, 62, 53, 0.15); }
.pc-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mm-cream-deep);
}
.pc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.pc-card:hover .pc-card__media img { transform: scale(1.08); }
.pc-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 25px 20px;
  text-align: left;
}
.pc-card__cat {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mm-gold);
  margin: 0 0 10px;
}
.pc-card__title {
  font-family: var(--mm-font-serif);
  font-size: 21px;
  line-height: 1.3;
  color: var(--mm-green);
  margin: 0 0 12px;
}
.pc-card__excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mm-mute);
  margin: 0 0 20px;
}
.pc-card__more {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-green);
}
.pc-card__more svg { width: 14px; height: 14px; fill: currentColor; transition: transform .3s ease; }
.pc-card:hover .pc-card__more svg { transform: translateX(5px); }
.pc-card[hidden] { display: none; }

/* ------------------------------------------------------------------ post page */
.po-hero { position: relative; background: var(--mm-green); }
.po-hero__media { position: relative; }
.po-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  opacity: .55;
}
.po-hero__inner {
  position: absolute;
  inset: auto 0 0 0;
  padding-bottom: clamp(26px, 4vw, 52px);
}
.po-hero--plain { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.po-hero--plain .po-hero__inner { position: static; padding: 0; }
.po-hero h1 {
  color: var(--mm-cream);
  max-width: 22ch;
  margin: 0;
  text-shadow: 0 2px 24px rgba(15, 62, 53, .55);
}
.po-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mm-gold);
  font-weight: 600;
}
.po-meta a { color: inherit; text-decoration: none; }
.po-meta a:hover { text-decoration: underline; }
.po-meta time { color: rgba(246, 249, 247, .8); font-weight: 500; letter-spacing: .08em; }

.po-body {
  max-width: var(--mm-container-narrow);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--mm-pad-x) 0;
}
.po-body > *:first-child { margin-top: 0; }
.po-body p { margin: 0 0 1.25em; }
.po-body h2 { font-size: clamp(23px, 2.8vw, 30px); margin: 1.8em 0 .6em; }
.po-body h3 { font-size: clamp(18px, 2.1vw, 22px); margin: 1.6em 0 .5em; }
.po-body ul, .po-body ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.po-body li { margin-bottom: .5em; }
.po-body a { color: var(--mm-green); text-decoration: underline; }
.po-body a:hover { color: var(--mm-gold); }
.po-body img, .po-body video { border-radius: 10px; margin: 0 auto; }
.po-body figure { margin: 1.8em 0; }
.po-body figcaption {
  font-size: 13px;
  color: var(--mm-mute);
  text-align: center;
  margin-top: 10px;
}
.po-body .wp-block-embed__wrapper { position: relative; }
.po-body .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.po-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }

/* Price/comparison tables. Gutenberg wraps them in figure.wp-block-table, which
   is what scrolls on narrow screens so the page itself never widens. */
.po-body figure.wp-block-table,
.po-body .po-table-scroll {
  overflow-x: auto;
  margin: 1.8em 0;
  -webkit-overflow-scrolling: touch;
}
.po-body table {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  background: var(--mm-white);
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14.5px;
}
.po-body th {
  text-align: left;
  background: var(--mm-cream);
  color: var(--mm-green);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mm-line);
}
.po-body td { padding: 12px 16px; border-bottom: 1px solid var(--mm-line); }
.po-body tr:last-child td { border-bottom: 0; }

.po-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0; list-style: none; padding: 0; }
.po-body .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  background: var(--mm-green);
  color: var(--mm-cream);
  border-radius: var(--mm-radius-pill);
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.po-body .wp-block-button__link:hover { background: var(--mm-gold); color: #fff; }

.po-body details {
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  background: var(--mm-white);
  margin-bottom: 10px;
  padding: 0 20px;
}
.po-body details summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--mm-green);
}
.po-body details[open] summary { border-bottom: 1px solid var(--mm-line); margin-bottom: 14px; }

/* ------------------------------------------------------------------ author + CTA + related */
.po-author {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--mm-container-narrow);
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 22px var(--mm-pad-x);
  border-top: 1px solid var(--mm-line);
  border-bottom: 1px solid var(--mm-line);
}
.po-author__mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mm-green);
  color: var(--mm-gold);
  display: grid;
  place-items: center;
  font-family: var(--mm-font-serif);
  font-size: 20px;
}
.po-author__name { font-weight: 600; color: var(--mm-green); margin: 0; }
.po-author__role { font-size: 13.5px; color: var(--mm-mute); margin: 2px 0 0; }

/* doctor card for a physician-reviewed post: her photo, name link + booking */
.po-doctor {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: var(--mm-container-narrow);
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: clamp(20px, 3vw, 28px) var(--mm-pad-x);
  background: var(--mm-cream, #f7f2e9);
  border: 1px solid var(--mm-line);
  border-radius: 16px;
}
.po-doctor__photo {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%;
  overflow: hidden; display: block; box-shadow: 0 6px 18px rgba(18,60,57,.14);
}
.po-doctor__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.po-doctor__mark {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%;
  background: var(--mm-green); color: var(--mm-gold);
  display: grid; place-items: center;
  font-family: var(--mm-font-serif); font-size: 26px;
}
.po-doctor__kicker {
  margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mm-gold, #c59d5f);
}
.po-doctor__name { margin: 0; font-family: var(--mm-font-serif); font-size: clamp(18px, 2.4vw, 22px); }
.po-doctor__name a { color: var(--mm-green); text-decoration: none; }
.po-doctor__name a:hover { text-decoration: underline; }
.po-doctor__role { margin: 3px 0 0; font-size: 13.5px; color: var(--mm-mute); }
.po-doctor__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.po-doctor__actions .mm-btn { font-size: 14px; }
@media (max-width: 560px) {
  .po-doctor { flex-direction: column; align-items: flex-start; text-align: left; }
}

.po-cta {
  background: var(--mm-green);
  color: var(--mm-cream);
  text-align: center;
  padding: clamp(44px, 6vw, 72px) 0;
  margin-top: clamp(44px, 6vw, 72px);
}
.po-cta h2 { color: var(--mm-cream); margin: 0 0 12px; }
.po-cta p { max-width: 56ch; margin: 0 auto 26px; color: rgba(246, 249, 247, .78); }
.po-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.po-related { padding: clamp(44px, 6vw, 76px) 0; }
.po-related h2 { text-align: center; margin-bottom: clamp(24px, 3vw, 40px); }

/* ------------------------------------------------------------------ breadcrumbs */
.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: 900px) {
  .po-hero__media img { aspect-ratio: 4 / 3; }
  .po-hero h1 { max-width: none; font-size: clamp(26px, 6vw, 36px); }
}
@media (max-width: 640px) {
  .po-hero { padding-bottom: 0; }
  .po-hero__inner { position: static; padding: 24px 0 28px; background: var(--mm-green); }
  .po-hero__media img { opacity: 1; aspect-ratio: 4 / 3; }
  .po-author { flex-direction: column; align-items: flex-start; }
  /* a post title is too long to spell out again in the trail on a phone */
  .mm-crumbs li:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
