/* dragne: 05-polish.css | v1.2.0 | 2026-03-18 */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.post-thumbnail img,
.portfolio-item img {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.post-thumbnail:hover img,
.portfolio-item:hover img {
  opacity: 0.88;
  transform: scale(1.01);
}

::selection {
  background-color: rgba(0, 0, 0, 0.08);
  color: inherit;
}

label { cursor: pointer; }

#header #logo .site-logo img {
  width: auto !important;
  height: 30px !important;
  max-width: none !important;
  transition: opacity 0.3s ease;
}
#header #logo .sticky-logo img {
  width: auto !important;
  height: 30px !important;
  transition: opacity 0.3s ease;
}
#header #logo a:hover .site-logo img,
#header #logo a:hover .sticky-logo img {
  opacity: 0.75;
}

#top-bar .top-bar-text,
#top-bar .top-bar-text .fa {
  color: rgba(255, 255, 255, 0.60);
}

#page-header .cmplz-placeholder-parent {
  max-height: 300px;
  overflow: hidden;
}

/* ── Social share — single posts ── */
.single .entry-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #f0f1f5; /* mutat de pe .entry-meta → se întinde pe toată lățimea */
}

.single .entry-footer .entry-meta {
  border-top: none; /* eliminat de aici — acum e pe .entry-footer */
}

/*
 * Tema parent pune clearfix (display:table; clear:both) pe ::before/::after
 * ale .entry-footer. Într-un flex container devin flex items invizibili
 * și dislocă layout-ul. Le dezactivăm — flex nu are nevoie de clearfix.
 */
.single .entry-footer::before,
.single .entry-footer::after {
  display: none !important;
}

.dragne-share {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding-right: 20px;
}

.dragne-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #b0babe;
  font-size: 13px;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.dragne-share__btn:hover { color: #0e192f; }

/* ── Read More button — unify .slupy-more-button (WPBakery blog) cu .dragne-read-more ── */

/* Panel dreapta: culoare, tipografie identice cu .dragne-read-more */
.entry-meta-with-button .slupy-readmore {
  background-color: #0e192f;
  transition: background-color 0.3s ease;
}
.entry-meta-with-button .slupy-readmore:hover {
  background-color: rgba(14, 25, 47, 0.85);
}
.entry-meta-with-button .slupy-readmore .slupy-more-button {
  color: #fff;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Search results — două secțiuni: Lawyers + Articles ── */

.search-section {
  margin-bottom: 2.5rem;
}

.search-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  border-bottom: 1px solid #f0f1f5;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

/* Lawyers */
.search-lawyers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-lawyer-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.search-lawyer-card__thumb {
  flex-shrink: 0;
  width: 72px;
}

.search-lawyer-card__thumb img {
  display: block;
  width: 72px;
  height: 90px;
  object-fit: cover;
}

.search-lawyer-card__name {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.search-lawyer-card__name a {
  color: inherit;
  text-decoration: none;
}

.search-lawyer-card__name a:hover {
  text-decoration: underline;
}

.search-lawyer-card__position {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0 0 0.4rem;
}

.search-lawyer-card__excerpt p {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0;
}

/* Posts */
.search-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-post-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.search-post-item__thumb {
  flex-shrink: 0;
  width: 100px;
}

.search-post-item__thumb img {
  display: block;
  width: 100px;
  height: 68px;
  object-fit: cover;
}

.search-post-item__title {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.search-post-item__title a {
  color: inherit;
  text-decoration: none;
}

.search-post-item__title a:hover {
  text-decoration: underline;
}

.search-post-item__excerpt p {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0.4rem 0 0;
}

@media (max-width: 480px) {
  .search-lawyer-card,
  .search-post-item {
    flex-direction: column;
  }

  .search-lawyer-card__thumb,
  .search-post-item__thumb {
    width: 100%;
  }

  .search-lawyer-card__thumb img {
    width: 100%;
    height: auto;
  }

  .search-post-item__thumb img {
    width: 100%;
    height: 160px;
  }
}

/* ── Single post — featured image height cap ── */
/* slupy-post-thumbnail = 900×390 hard crop; reducem cu 100px → 290px */
.single .entry-media img {
  max-height: 240px;
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ── Nav prev/next — truncare titlu la 2 rânduri (SEO intact: titlul complet rămâne în DOM) ── */
.nav-prev-post,
.nav-next-post {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
}
