/* Basic grid */
.bl-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* columns */
.bl-columns-2 { grid-template-columns: repeat(2, 1fr); }
.bl-columns-3 { grid-template-columns: repeat(3, 1fr); }
.bl-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Card reset */
.bl-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

/* inner container keeps layout */
.bl-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* IMAGE WRAP:
   Uses CSS variable --bl-bg-image to apply the same image as a blurred background fill.
*/
.bl-image-wrap {
  position: relative;
  width: 100%;
  /* Image area height: ~45% of card height; adjust as needed */
  height: 45%;
  min-height: 140px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* blurred background layer */
.bl-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bl-bg-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.15);
  filter: blur(14px) brightness(0.9);
  z-index: 1;
}

/* foreground image: show full image (no crop) */
.bl-main-img {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain; /* ensure full image is visible */
  display: block;
}

/* CARD BODY */
.bl-card-body{
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
	border: 2px white; /* 2px thickness, solid style, gray color */
  border-radius: 8px;      /* optional: rounded corners */
  padding: 16px;    
}

.bl-title {
  margin: 0;
  font-size: 1.00 rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0ebeff;
}

.bl-excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: #cfcfcf;
  flex: 1 0 auto;
  overflow: hidden;
}

/* Visit button aligned bottom */
.bl-visit {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #33d6ff;
}
