/* ─── Blog Hero ─────────────────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(160deg, #062218 0%, var(--primary) 50%, #0a3828 100%);
  padding: 88px 0 72px; color: #fff;
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.blog-hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 48px; background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.blog-hero-inner {
  position: relative; z-index: 1;
  max-width: 640px;
}
.blog-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--accent); padding: 6px 18px; border-radius: 50px; margin-bottom: 20px;
}
.blog-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff; margin-bottom: 16px; line-height: 1.12; font-weight: 700;
}
.blog-hero-sub {
  color: rgba(255,255,255,0.75); font-size: 1.05rem;
  line-height: 1.7; margin-bottom: 0; max-width: 520px;
}

/* ─── Filter tabs bar ───────────────────────────────────────────────────── */
.blog-tabs-wrap {
  background: var(--bg); border-bottom: 1px solid var(--border);
  position: sticky; top: 68px; z-index: 90;
}
.blog-tabs {
  display: flex; gap: 4px; padding: 0;
  list-style: none; margin: 0; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.blog-tabs::-webkit-scrollbar { display: none; }
.blog-tabs li { flex-shrink: 0; }
.blog-tab {
  padding: 16px 20px; border: none; background: none;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 500; color: var(--text-light);
  transition: color var(--transition), box-shadow var(--transition);
  position: relative; white-space: nowrap;
}
.blog-tab::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2.5px; background: var(--primary-mid);
  border-radius: 2px 2px 0 0;
  transition: left var(--transition), right var(--transition);
}
.blog-tab:hover { color: var(--primary); }
.blog-tab.blog-tab--active {
  color: var(--primary); font-weight: 600;
}
.blog-tab.blog-tab--active::after { left: 12px; right: 12px; }

/* ─── Blog grid section ─────────────────────────────────────────────────── */
.blog-section { padding: 56px 0 80px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ─── Blog card ─────────────────────────────────────────────────────────── */
.blog-card {
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  background: var(--bg);
  border: 1px solid var(--border);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.11);
}
.blog-card-img {
  height: 160px;
  background: linear-gradient(135deg, #0D3B2A 0%, #0D7A55 60%, #34D399 100%);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.blog-card-img::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.25));
}
.blog-card-img-icon {
  position: absolute; bottom: 14px; left: 16px;
  font-size: 1.6rem; opacity: 0.8;
}
.blog-card:nth-child(3n+2) .blog-card-img {
  background: linear-gradient(135deg, #1E3A5F 0%, #1D6FAA 60%, #60A5FA 100%);
}
.blog-card:nth-child(3n+3) .blog-card-img {
  background: linear-gradient(135deg, #7C2D12 0%, #C2410C 60%, #F97316 100%);
}
.blog-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.blog-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.18rem; font-weight: 600; line-height: 1.38;
  color: var(--ink); margin-bottom: 10px;
}
.blog-card:hover h3 { color: var(--primary); }
.blog-meta {
  font-size: 0.79rem; color: var(--muted); display: flex;
  align-items: center; gap: 6px; flex-wrap: wrap;
}
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }
.blog-excerpt {
  font-size: 0.875rem; color: var(--muted); margin-top: 12px;
  line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-read-more {
  margin-top: 16px; font-size: 0.82rem; font-weight: 600;
  color: var(--primary-mid); display: flex; align-items: center; gap: 4px;
}
.blog-card:hover .blog-read-more { gap: 8px; }
.blog-read-more-arrow { transition: transform 0.2s ease; }
.blog-card:hover .blog-read-more-arrow { transform: translateX(3px); }

/* ─── Skeleton loading ──────────────────────────────────────────────────── */
.card-skeleton {
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg);
  min-height: 340px;
}
.card-skeleton::before {
  content: ''; display: block;
  height: 160px;
  background: linear-gradient(90deg, #e8edf0 25%, #f4f6f8 50%, #e8edf0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.card-skeleton::after {
  content: '';
  display: block;
  margin: 22px 24px;
  height: 120px;
  background: linear-gradient(90deg, #e8edf0 25%, #f4f6f8 50%, #e8edf0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ─── No results ────────────────────────────────────────────────────────── */
.blog-no-results {
  text-align: center; padding: 80px 24px;
  color: var(--muted);
}
.blog-no-results p { font-size: 1rem; }
.blog-no-results a { color: var(--primary-mid); font-weight: 600; }
.blog-no-results a:hover { color: var(--primary); }

/* ─── Pagination ────────────────────────────────────────────────────────── */
.pagination {
  display: flex; gap: 8px; align-items: center;
  justify-content: center; flex-wrap: wrap;
}
.page-btn {
  min-width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--bg);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 500; color: var(--text);
  transition: all var(--transition);
}
.page-btn:hover, .page-btn--active {
  background: var(--primary-mid); color: #fff; border-color: var(--primary-mid);
}

/* ─── Blog post page ────────────────────────────────────────────────────── */
.post-hero {
  background: linear-gradient(160deg, #062218 0%, var(--primary) 55%, #0a3828 100%);
  padding: 80px 0 60px; color: #fff;
  position: relative; overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.post-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.post-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff; margin-bottom: 18px; line-height: 1.2; font-weight: 700;
}
.post-meta {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; color: rgba(255,255,255,0.72); font-size: 0.87rem;
}
.post-meta-sep { opacity: 0.4; }
.post-meta .badge {
  background: rgba(232,160,32,0.2); border: 1px solid rgba(232,160,32,0.35);
  color: var(--accent); font-size: 0.72rem; padding: 4px 12px;
}

/* Reading progress bar */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: var(--accent); width: 0%; transition: width 0.1s linear;
}

/* Post layout */
.post-layout {
  max-width: 800px; margin: 0 auto;
  padding: 64px 24px 80px;
}
.post-body { }
.post-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem; color: var(--primary); margin: 40px 0 14px; line-height: 1.25;
}
.post-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem; color: var(--ink); margin: 32px 0 12px;
}
.post-body p { margin-bottom: 22px; line-height: 1.82; color: var(--text); font-size: 1.02rem; }
.post-body ul, .post-body ol { padding-left: 26px; margin-bottom: 22px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 7px; line-height: 1.7; color: var(--text); }
.post-body blockquote {
  border-left: 4px solid var(--primary-mid);
  padding: 16px 24px; background: var(--emerald-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 32px 0;
  font-style: italic; color: var(--primary); font-size: 1.05rem;
}
.post-body img { border-radius: var(--radius-md); margin: 32px 0; max-width: 100%; }
.post-body a { color: var(--primary-mid); text-decoration: underline; }
.post-body a:hover { color: var(--primary); }

/* Post share bar */
.post-share-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 40px 0;
}
.post-share-label { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-right: 4px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid; transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.share-btn-wa {
  background: #25D366; border-color: #25D366; color: #fff;
}
.share-btn-wa:hover { background: #1ebe59; border-color: #1ebe59; }
.share-btn-copy {
  background: var(--bg); border-color: var(--border); color: var(--text);
}
.share-btn-copy:hover { border-color: var(--primary-mid); color: var(--primary-mid); }

/* Related packages */
.post-related {
  padding: 56px 0 72px; background: var(--bg-alt);
}
.post-related-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.post-related-head h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem; font-weight: 700; color: var(--ink); margin: 0;
}
.post-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 720px) { .post-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .post-related-grid { grid-template-columns: 1fr; } }
