/* ---------- Breadcrumb (self-contained; blog pages don't load shop.css) ---------- */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--blue); font-weight: 500; }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- Shared placeholder + meta bits ---------- */
.ph-emoji-lg { font-size: 40px; transition: transform .25s ease; }
.ph-emoji-xl { font-size: 60px; line-height: 1; }
.ph-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.meta-dot { color: #c7cce6; }
.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-avatar-sm { width: 24px; height: 24px; font-size: 11px; }

/* Category accent tints (mirrors shop.css product-card accent tokens) */
.blog-cat-blue      { --accent: var(--blue); --tint: #f0f5fe ; }
.blog-cat-lightblue { --accent: var(--lightblue); --tint: #eef7fd; }
.blog-cat-green      { --accent: var(--green); --tint: #f2f9f3; }
.blog-cat-green2     { --accent: #1c7a42; --tint: #f2f9f4; }
.blog-cat-orange     { --accent: var(--orange); --tint: #fef6ed; }
.blog-cat-purple     { --accent: var(--purple); --tint: #f6f3fd; }

.dot-blue { background: var(--blue); }
.dot-lightblue { background: var(--lightblue); }
.dot-green { background: var(--green); }
.dot-green2 { background: #1c7a42; }
.dot-orange { background: var(--orange); }
.dot-purple { background: var(--purple); }

/* ---------- Page head ---------- */
.blog-page-head {
  background: var(--bg-tint);
  padding: 34px 0 30px;
  text-align: center;
}
.blog-eyebrow {
  display: inline-block;
  background: white;
  color: var(--purple);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.blog-page-head h1 {
  font-size: 32px;
  margin: 0 0 10px;
  color: var(--navy-text);
  line-height: 1.25;
}
.blog-page-head h1 em {
  font-family: 'Caveat', cursive;
  font-style: normal;
  color: var(--blue);
  font-size: 36px;
}
.blog-page-head p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- Layout ---------- */
.blog-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0 60px;
}
.blog-main { flex: 1; min-width: 0; }

/* ---------- Featured post ---------- */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.featured-post:hover { box-shadow: 0 20px 40px rgba(11,21,80,0.14); transform: translateY(-4px); }
.featured-media {
  position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, white) 0%, white 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.featured-media .ph-emoji-xl { font-size: 84px; }
.featured-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.featured-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-eyebrow-cat {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--accent);
}
.featured-body h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 2px 0 0;
  color: var(--navy-text);
}
.featured-bn { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.featured-excerpt { font-size: 14px; color: #4a5178; line-height: 1.6; margin: 4px 0 2px; }
.featured-readmore {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.featured-post:hover .arrow { transform: translateX(4px); }
.arrow { transition: transform .15s ease; }

/* ---------- Category pills ---------- */
.blog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.b-pill {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--navy-text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.b-pill:hover { border-color: var(--blue); color: var(--blue); }
.b-pill.active { background: var(--navy); border-color: var(--navy); color: white; }

/* ---------- Blog grid / cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.blog-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: var(--card-shadow);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.blog-card:hover {
  box-shadow: 0 18px 36px rgba(11,21,80,0.14);
  transform: translateY(-5px);
  border-top-color: var(--accent);
}
.blog-card-media {
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, white) 0%, white 75%);
}
.blog-card:hover .ph-emoji-lg { transform: scale(1.1); }
.blog-card-cat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 11px;
  border-radius: 20px;
  color: white;
  background: var(--accent);
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.blog-card-body { padding: 14px 16px 16px; }
.blog-card-body h3 { font-size: 15.5px; line-height: 1.35; margin: 0 0 8px; }
.blog-card-body h3 a { color: var(--navy-text); transition: color .15s ease; }
.blog-card-body h3 a:hover { color: var(--blue); }
.blog-card-excerpt {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta-sm { font-size: 11.5px; }

.no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.no-results.show { display: block; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-text);
  padding: 0 10px;
}
.page-btn.active { background: var(--blue); border-color: var(--blue); color: white; }

/* ---------- Sidebar ---------- */
.blog-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.widget {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--card-shadow);
}
.widget h3 {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--navy-text);
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px 4px 12px;
}
.search-box input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  flex: 1;
  padding: 8px 0;
  color: var(--navy-text);
}
.search-ico { font-size: 13px; padding: 6px; color: var(--text-muted); }

.widget-categories ul { display: flex; flex-direction: column; gap: 3px; }
.cat-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--navy-text);
  padding: 6px 0;
  transition: color .15s ease;
}
.cat-link:hover { color: var(--blue); }
.cat-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cat-link .opt-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  background: #f2f4fb;
  padding: 1px 7px;
  border-radius: 20px;
}

.recent-post {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.recent-post:first-of-type { border-top: none; padding-top: 0; }
.recent-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, white) 0%, white 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.recent-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.recent-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s ease;
}
.recent-post:hover .recent-title { color: var(--blue); }
.recent-date { font-size: 11px; color: var(--text-muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--navy-text);
  background: var(--bg-tint);
  padding: 6px 12px;
  border-radius: 20px;
  transition: background .15s ease, color .15s ease;
}
.tag-pill:hover { background: var(--blue); color: white; cursor: default; }

.widget-newsletter {
  background: var(--navy);
  color: white;
  border: none;
  text-align: center;
}
.nl-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  font-size: 19px;
  margin-bottom: 10px;
}
.widget-newsletter h3 { color: white; }
.widget-newsletter p { font-size: 12.5px; color: rgba(255,255,255,0.75); margin: 0 0 14px; }
.nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-form input {
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: white;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.55); }
.nl-form .btn-primary { width: 100%; justify-content: center; }

/* ---------- Article page ---------- */
.article-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 26px 24px 0;
}
.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.article-head h1 {
  font-size: 30px;
  line-height: 1.3;
  color: var(--navy-text);
  margin: 0 0 8px;
}
.article-bn { font-size: 13.5px; color: var(--text-muted); margin: 0 0 18px; }
.article-meta { justify-content: center; }
.meta-author { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.meta-author strong { font-size: 13px; color: var(--navy-text); }
.meta-author small { font-size: 11px; color: var(--text-muted); }

.article-hero {
  max-width: 900px;
  margin: 24px auto;
  aspect-ratio: 21/9;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, white) 0%, white 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.article-body-wrap { padding-bottom: 20px; }
.article-body {
  max-width: 720px;
  margin: 0 auto;
}
.article-body p {
  font-size: 15.5px;
  line-height: 1.85;
  color: #333c66;
  margin: 0 0 18px;
}
.article-body h3 {
  font-size: 19.5px;
  color: var(--navy-text);
  margin: 30px 0 12px;
}
.article-quote {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  line-height: 1.4;
  color: var(--blue);
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---------- Related posts ---------- */
.related-posts { padding: 10px 0 60px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .blog-layout { flex-direction: column; }
  .blog-sidebar { width: 100%; position: static; }
  .widget-recent, .widget-tags { display: none; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-media { min-height: 200px; }
  .blog-page-head h1 { font-size: 26px; }
}

@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 24px; }
  .article-quote { font-size: 22px; }
}
