.blog-grid {
  align-items: stretch;
  gap: 1.5rem;
}

.blog-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

/* Whole card is the click target. The title link carries the overlay because it
   is the accessible name of the card; the media link stays aria-hidden and the
   "Citește articolul" link sits above the overlay so both remain usable. */
.blog-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

.blog-card__link,
.blog-card__media {
  position: relative;
  z-index: 2;
}

.blog-card__title a:focus-visible {
  outline: none;
}

.blog-card__title a:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
  border-radius: var(--radius);
}

.blog-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-50);
  text-decoration: none;
}

.blog-card__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-img-placeholder {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--gray-500);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.blog-img-placeholder::before {
  content: "Imagine în curând";
}

.blog-card__body {
  padding: 1.3rem 1.35rem 1.5rem;
  display: grid;
  gap: 0.7rem;
  flex: 1;
}

.blog-card__meta,
.blog-post__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.blog-card__meta {
  color: var(--gray-500);
}

.blog-card__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
}

.blog-card__title a {
  color: var(--brand);
  text-decoration: none;
}

.blog-card__excerpt {
  margin: 0;
}

.blog-card__link {
  margin-top: auto;
  text-decoration: none;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
}

.blog-pagination {
  margin-top: 2rem;
}

.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  text-decoration: none;
  color: var(--brand);
}

.blog-pagination .page-numbers.current {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.blog-post {
  display: grid;
  gap: 1.5rem;
}

.serviciu-breadcrumb {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.serviciu-breadcrumb a {
  color: var(--white);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.serviciu-breadcrumb__sep {
  margin-inline: 0.45rem;
  opacity: 0.8;
}

.blog-post__media,
.blog-img-placeholder--single {
  max-width: 70ch;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-50);
}

.blog-post__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-img-placeholder--single {
  border: 1px solid var(--gray-200);
  min-height: 0;
}

.blog-post__inline {
  margin: 1.75rem 0;
  width: 100%;
  max-width: 70ch;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-50);
}

.blog-post__inline-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.serviciu-content {
  max-width: 70ch;
  margin-inline: auto;
}

.serviciu-content h2 {
  margin-top: 2rem;
}

.serviciu-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.serviciu-content li::marker {
  color: var(--accent);
}

/* The article section already carries a large bottom padding; without this the
   comments section adds its own top padding on top of it and the gap doubles. */
.section--comments {
  padding-block-start: 0;
}

.du-comments {
  max-width: 70ch;
  margin-inline: auto;
}

.du-comments__notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
}

.du-comments__title {
  margin-bottom: 1.2rem;
}

.du-comments__notice {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 10%, var(--white));
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.du-comments__list,
.du-comments__list .children {
  list-style: none;
  padding: 0;
  display: grid;
}

.du-comments__list {
  margin: 0 0 2rem;
  gap: 1rem;
}

.du-comment {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.du-comments__list .children {
  position: relative;
  margin: 0.7rem 0 0 2rem;
  gap: 0.7rem;
}

.du-comments__list .children::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gray-200);
}

.du-comments__list .children .du-comment {
  background: var(--gray-50);
  border: 1px solid color-mix(in srgb, var(--brand) 12%, var(--gray-200));
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
}

.du-comments__list .children .du-comment__avatar {
  width: 1.7rem;
  height: 1.7rem;
}

.du-comment__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.du-comment__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}

.du-comment__author {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
}

.du-comment__date {
  display: block;
  color: var(--gray-500);
  font-size: 0.88rem;
}

.du-comment__content p:last-child {
  margin-bottom: 0;
}

.du-comment__reply {
  margin-top: 0.5rem;
}

.du-comment__reply a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--brand);
  text-decoration: none;
}

.du-comment__reply a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.du-comments__list .children .du-comment__reply {
  display: none;
}

.du-comments__form-title {
  margin-bottom: 0.9rem;
}

.du-comments__form-title #cancel-comment-reply-link {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.du-comments__form-title #cancel-comment-reply-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.du-comments__form p {
  margin-bottom: 1rem;
}

.du-comments__form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.du-comments__form input[type="text"],
.du-comments__form input[type="email"],
.du-comments__form textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.du-comments__form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.du-comments__form .comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
}

.du-comment-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.serviciu-cta {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.serviciu-cta p {
  opacity: 0.9;
}

.serviciu-cta__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .blog-card {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .blog-card {
    grid-column: span 12;
  }
}

@media (max-width: 600px) {
  .du-comments__list .children {
    margin-left: 1rem;
  }
}

@media (max-width: 480px) {
  .du-comments__list .children {
    margin-left: 0.5rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(5, 38, 152, 0.16);
  }

  .du-comment__reply a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* ---- 1.10.0: article byline + editorial components used inside post
   content (.du-lead, .du-tldr summary, .du-toc, .du-callout, .du-faq,
   .du-refs bibliography, .du-note). Plain classes in the post HTML, so the
   doctor can reuse them from the editor (Code editor / Custom HTML). ---- */
.blog-post__meta a {
	color: var(--white);
	text-decoration-color: var(--accent);
	text-underline-offset: 3px;
}

.blog-post__sep {
	margin-inline: 0.45rem;
	opacity: 0.8;
}

.serviciu-content .du-lead {
	font-size: 1.15rem;
	line-height: 1.6;
}

.serviciu-content .du-tldr,
.serviciu-content .du-callout,
.serviciu-content .du-toc {
	margin: 1.75rem 0;
	padding: 1.1rem 1.3rem;
	border-radius: var(--radius);
}

.serviciu-content .du-tldr {
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--gray-50);
}

.serviciu-content .du-callout {
	border: 1px solid var(--accent);
	background: color-mix(in srgb, var(--accent) 8%, var(--white));
}

.serviciu-content .du-tldr p:last-child,
.serviciu-content .du-callout p:last-child {
	margin-bottom: 0;
}

.serviciu-content .du-toc {
	border: 1px solid var(--gray-200);
}

.serviciu-content .du-toc__title {
	margin: 0 0 0.6rem;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--brand);
}

.serviciu-content .du-toc ol,
.serviciu-content .du-refs {
	margin: 0;
	padding-left: 1.4rem;
	display: grid;
	gap: 0.4rem;
}

.serviciu-content .du-toc a {
	color: var(--brand);
	text-underline-offset: 3px;
}

.serviciu-content .du-toc li::marker,
.serviciu-content .du-refs li::marker {
	color: var(--brand);
	font-weight: 700;
}

.serviciu-content .du-faq h3 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.1rem;
	color: var(--brand);
}

.serviciu-content .du-refs {
	gap: 0.75rem;
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

.serviciu-content .du-note {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--gray-200);
	font-size: 0.92rem;
	color: var(--gray-500);
}
