/* Blog Posts block + shared archive card grid (website colors). */

.fbp-blog-posts,
.fbp-blog-archive {
  background: #f8f8f8;
}

.fbp-blog-posts__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.fbp-blog-posts__label-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

.fbp-blog-posts__label-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-600);
}

.fbp-blog-posts__empty {
  color: #575757;
  margin: 0;
}

/* Card */
.fbp-blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fbp-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.fbp-blog-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9ecef;
}

.fbp-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.fbp-blog-card:hover .fbp-blog-card__img {
  transform: scale(1.04);
}

.fbp-blog-card__img--placeholder {
  background: linear-gradient(135deg, #dfe7ea 0%, #c5d5d8 100%);
  min-height: 100%;
}

.fbp-blog-card__cat {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #f8e1b3;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  text-transform: lowercase;
  font-family: var(--font-600);
}

.fbp-blog-card__body {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fbp-blog-card__title {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
  font-family: var(--font-700);
}

.fbp-blog-card__title a {
  color: #1a1a1a;
}

.fbp-blog-card__title a:hover {
  color: var(--primary);
}

.fbp-blog-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: #6a7382;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fbp-blog-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.fbp-blog-card__author,
.fbp-blog-card__date {
  font-size: 13px;
  color: #8a93a0;
  line-height: 1.2;
}

.fbp-blog-card__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fbp-blog-card__author-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8ecf0;
  color: #8a93a0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fbp-blog-card__date {
  text-align: right;
  white-space: nowrap;
}

/* Infinite scroll spinner */
.fbp-blog-posts__loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 0 8px;
  min-height: 56px;
}

.fbp-blog-posts__loader[hidden] {
  display: none !important;
}

.fbp-blog-posts__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(19, 139, 156, 0.2);
  border-top-color: var(--primary);
  animation: fbp-blog-spin 0.7s linear infinite;
}

@keyframes fbp-blog-spin {
  to {
    transform: rotate(360deg);
  }
}
