/* =========================================================
   HOME PAGE THEME
   Author: ChatGPT & Gwezie
========================================================= */

/* ---------- Page Title Section ---------- */
.home-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 40px auto 25px;
  padding-left: 6px;
  position: relative;
}

.home-head h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #f4d074;
  letter-spacing: 0.06em;
  margin: 0;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(139, 96, 28, 0.9),
    0 0 20px rgba(244, 208, 116, 0.9);
}

/* Golden rivets only (NO RUNES) */
.home-head::before,
.home-head::after {
  content: "";
  background-image: url('/assets/images/golden_rivet.png');
  background-size: cover;
  background-repeat: no-repeat;
  width: 45px;
  height: 45px;
}

/* =========================================================
   BLOG CARD BASE
========================================================= */

.sc-card-blog {
  background: linear-gradient(to bottom, #38250d, #2b1b08);
  border: 3px solid #ad8640;
  border-radius: 18px;
  padding: 34px 42px;
  width: 85%;
  margin: 0 auto 48px;
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.85),
    inset 0 0 10px rgba(0, 0, 0, 0.45);
  color: #e9d9b0;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

/* ❌ ABSOLUTELY NO PSEUDO DECORATIONS */
.sc-card-blog::before,
.sc-card-blog::after,
.sc-card-blog .sc-card-header::before,
.sc-card-blog .sc-card-header::after,
.sc-card-blog .sc-body::before,
.sc-card-blog .sc-body::after {
  content: none !important;
  display: none !important;
}

/* ---------- Hover Animation ---------- */
.sc-card-blog:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 18px rgba(244,209,122,.45),
    0 18px 40px rgba(0,0,0,.85);
}

/* =========================================================
   BLOG HEADER (CLEAN) — SCOPED
========================================================= */

.sc-card-blog .sc-card-header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

/* ---------- Blog Post Title ---------- */
.sc-card-blog .sc-name {
  font-family: 'Cinzel', serif;
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f4d074;
  letter-spacing: .6px;
}

/* ---------- Meta Badges ---------- */
.sc-card-blog .sc-meta {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-card-blog .sc-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 220, 150, 0.4);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #f4e1b2;
}

/* =========================================================
   BLOG BODY — SCOPED
========================================================= */

.sc-card-blog .sc-body {
  margin-top: 18px;
  padding: 26px;
  background: radial-gradient(circle at top, #3a2916, #1b1208);
  border-radius: 14px;
  font-size: 1.08rem;
  line-height: 1.9;
  max-height: 360px;
  overflow: hidden;
  position: relative;
}

.sc-card-blog .sc-body p {
  max-width: 880px;
  margin: 0 auto;
  color: #f1e3be;
}

/* =========================================================
   FOOTER BUTTON
========================================================= */

.sc-card-blog .sc-footer {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 24px;
  background: none;
  border: none;
}

.sc-card-blog .sc-footer a {
  border: 2px solid #d4a74e;
  padding: 8px 22px;
  border-radius: 999px;
  color: #d4a74e;
  background: #3a2916;
  font-weight: 600;
  text-decoration: none;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  .sc-card-blog {
    width: 95%;
    padding: 22px 20px;
  }
}

/* =========================================================
   HOMEPAGE ONLY — FEATURE BLOG CLAMP EFFECT
========================================================= */

body.home .sc-card-blog .sc-body {
  max-height: 360px;
  overflow: hidden;
  position: relative;
}

/* Cinematic fade ONLY on homepage blog */
body.home .sc-card-blog .sc-body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background: linear-gradient(
    to bottom,
    rgba(27,18,8,0),
    rgba(27,18,8,.65),
    rgba(27,18,8,.95)
  );
  pointer-events: none;
}
