/* "Latest from the blog" strips: homepage (dark, inside the 1440px stage) and the LMS Resource
   Library (light panel). Hidden until /blog/posts.json has at least one post. */

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

.bs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bs-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  border-radius: 18px; transition: transform 0.2s ease, border-color 0.2s ease;
  font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.bs-card:hover { transform: translateY(-3px); }
.bs-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(160deg, #13284a, #0a1830); }
.bs-card__body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 18px; flex: 1; }
.bs-card__meta { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.bs-card__meta span { font-weight: 500; letter-spacing: 0.03em; text-transform: none; }
.bs-card h3 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 20px; line-height: 1.3; }
.bs-card p { margin: 0; font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bs-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bs-card__more { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 600; }

/* ---------- Homepage (dark) ---------- */
/* Deliberately quiet: small muted text links only (it is there for search engines, not as a feature). */
.blog-strip--home {
  position: absolute; left: 0; top: 8958px; width: 1440px; height: 130px;
  box-sizing: border-box; padding: 28px 160px 0; text-align: center;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.blog-strip--home .bs-title { margin: 0 0 10px; font-family: inherit; font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(161, 217, 250, 0.45); }
.blog-strip--home .bs-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.blog-strip--home .bs-link { font-size: 13px; line-height: 1.5; color: rgba(161, 217, 250, 0.6); text-decoration: none; }
.blog-strip--home .bs-link:hover { color: #a1d9fa; text-decoration: underline; }
.blog-strip--home .bs-all { display: inline-block; margin-top: 10px; font-size: 12px; color: rgba(161, 217, 250, 0.5); text-decoration: none; }
.blog-strip--home .bs-all:hover { color: #a1d9fa; text-decoration: underline; }

/* ---------- LMS Resource Library (light panel) ---------- */
.blog-strip--lms { margin-top: 24px; padding: 26px 26px 24px; border-radius: 20px; background: #fff; color: #10213f; }
.blog-strip--lms .bs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.blog-strip--lms .bs-title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-style: italic; font-size: 24px; color: #1a3a6b; }
.blog-strip--lms .bs-all { font-size: 13px; font-weight: 700; color: #0d63c2; text-decoration: none; white-space: nowrap; }
.blog-strip--lms .bs-all:hover { text-decoration: underline; }
.blog-strip--lms .bs-card { background: #f6f8fc; border: 1px solid #e3e8f2; }
.blog-strip--lms .bs-card:hover { border-color: #9fb6dc; }
.blog-strip--lms .bs-card__meta { color: #a07a14; }
.blog-strip--lms .bs-card__meta span { color: #6c7a96; }
.blog-strip--lms .bs-card h3 { color: #10213f; font-size: 18px; }
.blog-strip--lms .bs-card p { color: #4a5a78; }
.blog-strip--lms .bs-card__more { color: #0d63c2; }

/* Footer + stage make room when the strip is showing (set by blog-strip.js) */
.site-footer { top: calc(8958px + var(--blog-h-active, 0px)); }

@media (max-width: 767px) {
  .blog-strip--home { position: relative; left: auto; top: auto; width: 100%; height: auto; padding: 8px 24px 40px; }
  .blog-strip--home { padding: 8px 24px 28px; }
  .blog-strip--home .bs-list { flex-direction: column; gap: 6px; }
  .bs-grid { grid-template-columns: 1fr; }
  .blog-strip--lms { padding: 20px 16px; }
  .site-footer { top: auto; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .blog-strip--lms .bs-grid { grid-template-columns: 1fr 1fr; }
}
