/* BMC Shell Theme — Blog archive cards (locked Sample B refined 2026-05-01)
   Loaded only on is_home(). 3D card grid with terracotta date pill bottom-right. */

.bmc-blog-archive {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
  perspective: 1200px;
}
.bmc-blog-archive__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.bmc-blog-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow:
    0 1px 2px rgba(34, 34, 34, 0.06),
    0 4px 8px rgba(34, 34, 34, 0.06),
    0 12px 24px -6px rgba(34, 34, 34, 0.10),
    0 24px 48px -12px rgba(34, 34, 34, 0.14);
  will-change: transform, box-shadow;
}
.bmc-blog-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) scale(1.01);
  box-shadow:
    0 2px 4px rgba(34, 34, 34, 0.08),
    0 8px 16px rgba(34, 34, 34, 0.10),
    0 24px 36px -8px rgba(34, 34, 34, 0.18),
    0 48px 80px -16px rgba(196, 106, 74, 0.20);
}
.bmc-blog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

.bmc-blog-card__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1d24;
}
.bmc-blog-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.bmc-blog-card:hover .bmc-blog-card__img { transform: scale(1.05); }
.bmc-blog-card__img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.18) 100%);
}

.bmc-blog-card__date {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  background: #c46a4a;
  color: #fff;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.20),
    0 8px 18px rgba(196, 106, 74, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.20);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bmc-blog-card:hover .bmc-blog-card__date {
  transform: translateZ(20px) scale(1.05);
}
.bmc-blog-card__day { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.bmc-blog-card__mo  { font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; margin-top: 2px; }
.bmc-blog-card__yr  { font-size: 8.5px; font-weight: 600; letter-spacing: 0.8px; color: rgba(255, 255, 255, 0.78); margin-top: 1px; }

.bmc-blog-card__content { padding: 26px 26px 24px; }
.bmc-blog-card__cat {
  display: block;
  margin: 0 0 12px;
  color: #c46a4a;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.bmc-blog-card__title {
  margin: 0 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  color: #222;
  letter-spacing: -0.2px;
}
.bmc-blog-card__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(#c46a4a, #c46a4a);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.bmc-blog-card__title a:hover {
  color: #c46a4a;
  background-size: 100% 1px;
}
.bmc-blog-card__byline {
  margin: 0 0 14px;
  color: #777;
  font-size: 12.5px;
}
.bmc-blog-card__byline strong { color: #222; font-weight: 600; }
.bmc-blog-card__excerpt {
  margin: 0 0 18px;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}
.bmc-blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c46a4a;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.bmc-blog-card__cta::after {
  content: "›";
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}
.bmc-blog-card__cta:hover { color: #a14d2f; }
.bmc-blog-card__cta:hover::after { transform: translateX(4px); }

.bmc-blog-archive__pagination {
  margin-top: 60px;
  text-align: center;
}
.bmc-blog-archive__pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.bmc-blog-archive__pagination .page-numbers:hover { background: #f5f1ec; color: #c46a4a; }
.bmc-blog-archive__pagination .page-numbers.current {
  background: #c46a4a; color: #fff;
}

@media (max-width: 780px) {
  .bmc-blog-archive { padding: 0 16px 40px; }
  .bmc-blog-archive__grid { grid-template-columns: 1fr; gap: 24px; }
  .bmc-blog-card:hover {
    transform: translateY(-4px) scale(1.005);
  }
  .bmc-blog-card__title { font-size: 18px; }
  .bmc-blog-card__date { width: 54px; height: 54px; bottom: 12px; right: 12px; }
  .bmc-blog-card__day { font-size: 17px; }
}
