/* Blog — index grid + long-form post typography. Reuses navbar/footer from
   css/style.css; only blog-specific styles live here. */

:root {
  --blog-blue: #0B5BD3;
  --blog-orange: #FF6A1A;
}

/* ---- shared bits ---- */
.blog-crumb { font-size: 13px; color: var(--text-secondary, #4b5563); margin-bottom: 14px; }
.blog-crumb a { color: inherit; text-decoration: none; }
.blog-crumb a:hover { color: var(--blog-blue); }
.blog-crumb span { opacity: .5; margin: 0 4px; }

.blog-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase; color: var(--blog-blue);
  background: rgba(11,91,211,0.08); padding: 3px 9px; border-radius: 999px; margin-right: 6px;
}

.blog-cover--gradient {
  background: linear-gradient(120deg, #0B5BD3 0%, #1e74e8 55%, #FF6A1A 140%);
  color: #fff;
}

/* ---- index hero ---- */
/* top padding clears the fixed 64px navbar */
.blog-hero { background: linear-gradient(120deg, #0B5BD3 0%, #1e74e8 100%); color: #fff; padding: 118px 0 46px; }
.blog-hero h1 { font-size: 38px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 10px; }
.blog-hero p { font-size: 16px; opacity: .92; max-width: 560px; margin: 0; }
.blog-hero .blog-crumb, .blog-hero .blog-crumb a { color: rgba(255,255,255,.85); }

/* ---- index grid ---- */
.blog-index { padding: 40px 20px 64px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.blog-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #eef1f5;
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(11,58,214,.35); border-color: #dfe6f3; }
.blog-card__cover { height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.blog-card__cover span { font-weight: 800; font-size: 20px; letter-spacing: .5px; opacity: .9; }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.blog-card:hover .blog-card__img { transform: scale(1.05); }
.blog-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.blog-card__tags { min-height: 18px; }
.blog-card__title { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 2px 0; color: #1a1d2e; }
.blog-card__desc { font-size: 14px; color: var(--text-secondary, #4b5563); line-height: 1.55; margin: 0; }
.blog-card__meta { font-size: 12.5px; color: var(--text-muted, #9ca3af); margin-top: 4px; }
.blog-empty { text-align: center; color: var(--text-muted, #9ca3af); padding: 60px 0; }

/* ---- single post ---- */
.blog-post__head { padding: 112px 0 40px; } /* +64px clears fixed navbar */
.blog-post__head .blog-crumb, .blog-post__head .blog-crumb a { color: rgba(255,255,255,.85); }
.blog-post__head h1 { font-size: 34px; font-weight: 900; line-height: 1.18; letter-spacing: -.02em; margin: 10px 0 12px; max-width: 760px; }
.blog-post__tags .blog-tag { color: #fff; background: rgba(255,255,255,.18); }
.blog-post__meta { font-size: 14px; opacity: .9; }

.blog-post__body { max-width: 720px; margin: 40px auto 8px; font-size: 17px; line-height: 1.75; color: #2a2f45; }
.blog-post__body h2 { font-size: 25px; font-weight: 800; line-height: 1.3; margin: 36px 0 12px; color: #14172a; }
.blog-post__body h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; color: #14172a; }
.blog-post__body p { margin: 0 0 18px; }
.blog-post__body ul, .blog-post__body ol { margin: 0 0 18px; padding-left: 24px; }
.blog-post__body li { margin: 0 0 8px; }
.blog-post__body a { color: var(--blog-blue); text-decoration: underline; text-underline-offset: 2px; }
.blog-post__body strong { color: #14172a; }
.blog-post__body blockquote {
  margin: 22px 0; padding: 12px 20px; border-left: 4px solid var(--blog-orange);
  background: #fff7f2; border-radius: 0 10px 10px 0; color: #44342a;
}
.blog-post__body img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-post__body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.blog-post__body th, .blog-post__body td { border: 1px solid #e6eaf2; padding: 9px 12px; text-align: left; }
.blog-post__body th { background: #f4f7fc; font-weight: 700; }

.blog-back { max-width: 720px; margin: 8px auto 56px; }
.blog-back a { color: var(--blog-blue); text-decoration: none; font-weight: 600; }
.blog-back a:hover { text-decoration: underline; }

/* ---- CTA ---- */
.blog-cta {
  max-width: 720px; margin: 44px auto; text-align: center; padding: 34px 24px;
  border-radius: 18px; background: linear-gradient(120deg, #0B5BD3 0%, #1e74e8 100%); color: #fff;
}
.blog-cta h2 { font-size: 23px; font-weight: 800; margin: 0 0 8px; }
.blog-cta p { opacity: .92; margin: 0 0 18px; }
.blog-cta__btn {
  display: inline-block; background: var(--blog-orange); color: #fff; font-weight: 700;
  padding: 13px 28px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(255,106,26,.7);
}
.blog-cta__btn:hover { filter: brightness(1.05); }

@media (max-width: 640px) {
  .blog-hero h1 { font-size: 30px; }
  .blog-post__head h1 { font-size: 27px; }
  .blog-post__body { font-size: 16px; }
}
