/* Blog listing UI fixes (blogs/blogs.html) */

/* Force blog listing images to perfect squares */
.blog-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.blog-card__image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Published date: simple professional pill w/ pastel background (override theme) */
.blog-card .blog-card__meta {
  position: static !important;
  padding: 0 !important;
  margin: 0 0 10px 0 !important;
  background: transparent !important; /* remove theme orange/yellow strip */
  gap: 0 !important;
}

.blog-card .blog-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eaf2ff !important; /* pastel */
  color: #2b3a55 !important;
  border: 1px solid rgba(43, 58, 85, 0.12);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.blog-card .blog-card__meta span i {
  color: #5b7cfa !important;
  font-size: 14px;
}

/* Make "Read More" links look like buttons */
.blog-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background-color: #ffffff; /* clean */
  border: 1px solid #e5e7eb;
  color: #111827;
  font-family: var(--bbbringlanding-heading-font, "Lexend", serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--bbbringlanding-letter-space, -0.03em);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  position: relative;
  /* Use the same mobile-friendly button layout on desktop too */
  width: 100%;
}

.blog-card__link i {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.blog-card__link:hover,
.blog-card__link:focus {
  background-color: #111827;
  border-color: #111827;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
}

.blog-card__link:hover i,
.blog-card__link:focus i {
  background: var(--bbbringlanding-base, #FED100); /* orange/yellow accent */
  color: #ffffff;
  transform: translateX(1px);
}

.blog-card__link:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.35);
  outline-offset: 3px;
}

/* (Intentionally no desktop-specific overrides: keep the same design everywhere) */

/* Masonry blog listing (Vision Painters–style layout) */
.blog-page--sidebar .blog-page__intro .sec-title__tagline {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bbbringlanding-black, #141414);
  margin-bottom: 8px;
}

.blog-page--sidebar .sec-title__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 8px;
}

.blog-page__breadcrumb-text {
  color: rgba(20, 20, 20, 0.65);
  font-size: 14px;
  margin: 0;
}

.masonry-layout {
  width: 100%;
}

.masonry-layout .blog-masonry-item {
  margin-bottom: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .masonry-layout .blog-masonry-item {
    width: 50%;
  }
}

.blog-card--masonry {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card--masonry .blog-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card--masonry .blog-card__text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.75);
  margin-bottom: 16px;
}

.blog-sidebar .sidebar__subtitle {
  font-size: 13px;
  color: rgba(20, 20, 20, 0.6);
  margin-bottom: 12px;
}

.blog-sidebar .sidebar__categories-list span {
  opacity: 0.7;
  font-size: 0.9em;
}

.sidebar__recent-item + .sidebar__recent-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.sidebar__recent-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(20, 20, 20, 0.55);
  margin-bottom: 6px;
}

.sidebar__recent-title {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.sidebar__recent-title a {
  color: inherit;
  text-decoration: none;
}

.sidebar__recent-title a:hover {
  color: var(--bbbringlanding-base, #FED100);
}

.sidebar__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar__tags-list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2b3a55;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(43, 58, 85, 0.12);
}

.sidebar__tags-list a:hover {
  background: #111827;
  color: #fff;
}

.sidebar__about {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.sidebar__categories-list a.is-active {
  font-weight: 700;
  color: var(--bbbringlanding-black, #141414);
}

.sidebar__categories-list a.is-active span {
  opacity: 1;
}

#blog-filter-empty {
  text-align: center;
  padding: 48px 24px;
  color: rgba(20, 20, 20, 0.65);
  font-size: 15px;
}

#blog-filter-empty[hidden] {
  display: none;
}

@media (min-width: 992px) {
  .masonry-layout {
    margin-left: -15px;
    margin-right: -15px;
  }

  .masonry-layout .blog-masonry-item {
    padding-left: 15px;
    padding-right: 15px;
  }
}


