/* Liftaro blog — extends template tokens (lf-card / form-control / lf-btn) */

.blog-search-card .blog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.blog-search .form-control {
  flex: 1 1 14rem;
  min-height: 2.75rem;
  border-radius: 12px;
  border-color: #d5e0e0;
  padding: 0.7rem 0.9rem;
}

.blog-search .form-control:focus {
  border-color: var(--lf-teal);
  box-shadow: 0 0 0 0.2rem rgba(13, 107, 107, 0.15);
}

.blog-search .lf-btn {
  flex: 0 0 auto;
  min-height: 2.75rem;
}

.blog-search-result {
  font-size: 0.9rem;
  color: var(--lf-muted);
}

.blog-search-result a {
  color: var(--lf-teal);
  margin-inline-start: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.blog-search-result a:hover { color: var(--lf-teal-deep); }

/* Cards = lf-card + tool-card-pro motion */
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(13, 107, 107, 0.14);
  box-shadow: 0 10px 28px rgba(14, 36, 36, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 107, 107, 0.32);
  box-shadow: 0 18px 36px rgba(13, 107, 107, 0.14);
}

.blog-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 280px;
}

.blog-card__media {
  display: block;
  position: relative;
  min-height: 160px;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(26, 160, 160, 0.45), transparent 55%),
    linear-gradient(145deg, #0d6b6b, #094949 55%, #062828);
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card--featured .blog-card__media {
  aspect-ratio: auto;
  min-height: 100%;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: inherit;
}

.blog-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #1aa0a0, #0d6b6b);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 210, 77, 0.35);
}

.blog-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card--featured .blog-card__body {
  justify-content: center;
  padding: 1.6rem 1.75rem;
}

.blog-card__meta {
  font-size: 0.78rem;
  color: var(--lf-muted);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.blog-card__chip {
  display: inline-block;
  margin-inline-start: 0.15rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(13, 107, 107, 0.1);
  color: var(--lf-teal-deep);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
  font-weight: 600;
}

.blog-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.blog-card--featured .blog-card__title {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.blog-card__title a {
  color: var(--lf-ink);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--lf-teal);
  text-decoration: none;
}

.blog-card__excerpt {
  color: var(--lf-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card--featured .blog-card__excerpt {
  -webkit-line-clamp: 4;
  font-size: 0.98rem;
}

.blog-card__link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--lf-teal);
  text-decoration: none;
  margin-top: auto;
}

.blog-card__link:hover { color: var(--lf-teal-deep); }

.page-hero--compact { padding-bottom: 1.5rem; }
.page-hero--compact h1 { font-size: clamp(1.6rem, 3vw, 2.35rem); max-width: 48rem; }

.blog-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.blog-breadcrumb a { color: var(--lf-gold-bright); text-decoration: none; }

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.blog-tag {
  background: rgba(230, 180, 34, 0.2);
  color: #ffe08a;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
}

.blog-article__cover {
  margin: 0 0 1.35rem;
  border-radius: calc(var(--lf-radius) - 4px);
  overflow: hidden;
  border: 1px solid var(--lf-line);
}

.blog-article__cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.blog-lead {
  color: var(--lf-muted);
  border-left: 4px solid var(--lf-gold);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

html[dir="rtl"] .blog-lead {
  border-left: 0;
  border-right: 4px solid var(--lf-gold);
  padding-left: 0;
  padding-right: 1rem;
}

.blog-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--lf-teal-deep);
}
.blog-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}
.blog-content p, .blog-content li {
  line-height: 1.75;
  color: #334544;
}
.blog-content ul, .blog-content ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}
html[dir="rtl"] .blog-content ul,
html[dir="rtl"] .blog-content ol {
  padding-left: 0;
  padding-right: 1.25rem;
}
.blog-content a {
  color: var(--lf-teal);
  font-weight: 500;
}

.blog-article__footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--lf-line);
}

.blog-aside .lf-btn { justify-content: center; }

.blog-related__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lf-ink);
  margin-bottom: 1rem;
}

.blog-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.blog-related__card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 107, 107, 0.28);
  box-shadow: 0 14px 30px rgba(13, 107, 107, 0.1);
  color: inherit;
}

.blog-related__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--lf-teal), var(--lf-teal-deep));
}

.blog-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-related__meta {
  font-size: 0.72rem;
  color: var(--lf-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.blog-related__name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lf-ink);
}

.blog-pagination .page-link {
  border-radius: 999px;
  margin: 0 0.15rem;
  border: none;
  color: var(--lf-ink);
}
.blog-pagination .page-item.active .page-link {
  background: var(--lf-teal);
}

@media (max-width: 900px) {
  .blog-card--featured {
    grid-template-columns: 1fr;
  }
  .blog-card--featured .blog-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .blog-card__body { padding: 1.15rem; }
  .blog-card__title { font-size: 1rem; }
  .page-hero--compact h1 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    line-height: 1.25;
  }
  .blog-breadcrumb {
    font-size: 0.78rem;
    line-height: 1.5;
    word-break: break-word;
  }
  .blog-article-meta {
    font-size: 0.82rem;
    gap: 0.35rem;
  }
  .blog-article.p-4,
  .blog-article.p-md-5 { padding: 1.15rem !important; }
  .blog-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .blog-content img,
  .blog-content table,
  .blog-content pre {
    max-width: 100%;
  }
  .blog-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .blog-pagination .page-link {
    min-width: 40px;
    min-height: 40px;
    display: grid;
    place-items: center;
  }
  .blog-search .lf-btn { width: 100%; }
}
