/* =========================================================
   VASARUMA — BLOG PAGE STYLES (blog.css)
   File terpisah khusus halaman /blog.
   Navbar, drawer, footer TETAP memakai css/style.css (tidak diubah).
   ========================================================= */

/* ===== BREADCRUMB ===== */
.b-breadcrumb {
  padding: 14px 20px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.b-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.b-breadcrumb a { color: var(--muted); text-decoration: none; }
.b-breadcrumb a:hover { color: var(--navy); }
.b-breadcrumb li[aria-current="page"] { color: var(--navy); font-weight: 600; }
.b-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: rgba(0,61,102,0.3);
}

/* ===== PAGE HERO ===== */
.blog-hero {
  padding: 36px 20px 26px;
  background: linear-gradient(160deg, var(--navy) 0%, #002944 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(244,180,88,0.18), transparent 55%);
  pointer-events: none;
}
.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244,180,88,0.15);
  color: var(--gold);
  border: 1px solid rgba(244,180,88,0.35);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  position: relative;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 6.5vw, 38px);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
}
.blog-hero h1 em { font-style: italic; color: var(--gold); }
.blog-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

/* ===== CATEGORY FILTER ===== */
.bcat-wrap {
  position: sticky;
  top: 64px;
  z-index: 900;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 20px;
  scrollbar-width: none;
  display: flex;
  gap: 8px;
}
.bcat-wrap::-webkit-scrollbar { display: none; }
.bcat-btn {
  flex-shrink: 0;
  background: var(--cream);
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 8px 15px;
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.bcat-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ===== FEATURED ARTICLE ===== */
.blog-featured {
  margin: 18px 16px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fff;
  text-decoration: none;
  display: block;
}
.blog-featured-img { width: 100%; height: 190px; object-fit: cover; display: block; }
.blog-featured-body { padding: 18px 18px 20px; }
.blog-featured-tag {
  display: inline-block;
  background: var(--gold-light);
  color: #8a5a10;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.blog-featured-body h2 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}
.blog-featured-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.blog-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ===== BLOG GRID ===== */
.blog-main { padding: 4px 12px 8px; background: var(--cream); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}
.blog-card {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-width: 0; /* FIX: cegah grid item melebar akibat teks panjang, penyebab overflow horizontal */
  max-width: 100%;
}
.blog-card-img { width: 100%; height: 92px; object-fit: cover; display: block; }
.blog-card-body { padding: 10px 10px 12px; display: flex; flex-direction: column; flex: 1; }
.blog-card-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--surface);
  color: var(--navy);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  margin-bottom: 6px;
}
.blog-card-body h3 {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.blog-card-body p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.blog-card-body .blog-meta {
  margin-top: auto;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 9.5px;
}
.blog-card-body .blog-meta span { gap: 3px; }

/* ===== EMPTY STATE ===== */
.blog-empty {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13.5px;
}
.blog-empty i { font-size: 28px; color: var(--border); display: block; margin-bottom: 10px; }
.blog-empty.show { display: block; }

/* ===== RESPONSIVE ===== */
@media (min-width: 420px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .blog-card-img { height: 110px; }
  .blog-card-body h3 { font-size: 13.5px; }
}
@media (min-width: 900px) {
  .blog-grid { grid-template-columns: repeat(5, 1fr); }
  .blog-main { padding: 4px 40px 8px; }
  .blog-hero, .bcat-wrap, .b-breadcrumb { padding-left: 40px; padding-right: 40px; }
  .blog-featured { margin-left: 24px; margin-right: 24px; }
  .blog-featured-img { height: 260px; }
}
@media (min-width: 1180px) {
  .blog-grid { grid-template-columns: repeat(6, 1fr); }
  .blog-card-img { height: 130px; }
  .blog-card-body h3 { font-size: 14.5px; }
  .blog-card-body p { font-size: 12px; -webkit-line-clamp: 3; }
}
