/* ============================================================
   PureStora Blog — World-Class Editorial Design
   blog.css  |  Separate file, do not modify ui.css
   Brand: #996633 (primary warm amber) · #AFBD77 (sage green)
   ============================================================ */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --b-primary:        #996633;
  --b-primary-dk:     #7A5228;
  --b-primary-lt:     #C4986A;
  --b-primary-xlt:    #F6EFE5;
  --b-secondary:      #AFBD77;
  --b-secondary-dk:   #8A9B52;
  --b-secondary-xlt:  #EFF3E3;

  --b-bg:             #FAF8F4;
  --b-surface:        #FFFFFF;
  --b-surface-2:      #FDF9F5;

  --b-text-dark:      #1C1A17;
  --b-text-mid:       #4A4540;
  --b-text-muted:     #9A9188;

  --b-border:         #ECE7DF;
  --b-border-lt:      #F5F0EA;

  --b-r-sm:   8px;
  --b-r-md:   14px;
  --b-r-lg:   20px;
  --b-r-xl:   28px;

  --b-shadow-sm:    0 2px 10px rgba(26,20,10,.06);
  --b-shadow-md:    0 8px 32px rgba(26,20,10,.10);
  --b-shadow-lg:    0 20px 60px rgba(26,20,10,.14);
  --b-shadow-hover: 0 16px 48px rgba(153,102,51,.18);

  --b-ease:      0.36s cubic-bezier(.4,0,.2,1);
  --b-ease-fast: 0.18s ease;
}

/* ─── Masthead ───────────────────────────────────────────── */
.blog-masthead {
  background: linear-gradient(140deg, #251c12 0%, #3e2c18 45%, #2d2214 100%);
  position: relative;
  overflow: hidden;
  padding: 44px 0 36px;
  margin-bottom: 36px;
}
.blog-masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 90% at 75% 55%, rgba(175,189,119,.13) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 18% 30%, rgba(153,102,51,.22) 0%, transparent 50%);
  pointer-events: none;
}
.blog-masthead::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(175,189,119,.45), transparent);
}
/* Decorative leaf blobs */
.blog-masthead-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}
.blog-masthead-blob--1 {
  width: 380px; height: 380px;
  background: var(--b-secondary);
  top: -100px; right: -80px;
}
.blog-masthead-blob--2 {
  width: 220px; height: 220px;
  background: var(--b-primary-lt);
  bottom: -60px; left: 5%;
}

.blog-masthead-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.blog-masthead-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(175,189,119,.13);
  border: 1px solid rgba(175,189,119,.28);
  color: #AFBD77;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.blog-masthead-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: #AFBD77;
  border-radius: 50%;
  animation: b-pulse 2.2s ease-in-out infinite;
}
@keyframes b-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.45; transform:scale(.65); }
}

.blog-masthead h1 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #FAF8F4;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.blog-masthead h1 span {
  background: linear-gradient(135deg, #AFBD77 0%, #C8D48A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-masthead-desc {
  font-size: 0.93rem;
  color: rgba(250,248,244,.62);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ─── Category Filter Pills ─────────────────────────────── */
.blog-filter-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.blog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(250,248,244,.72);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  text-decoration: none;
  transition: var(--b-ease);
  white-space: nowrap;
  cursor: pointer;
}
.blog-filter-pill:hover,
.blog-filter-pill.active {
  background: var(--b-primary);
  border-color: var(--b-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(153,102,51,.38);
}
.blog-filter-pill .pill-count {
  background: rgba(255,255,255,.17);
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 700;
  transition: background var(--b-ease-fast);
}
.blog-filter-pill.active .pill-count,
.blog-filter-pill:hover  .pill-count {
  background: rgba(255,255,255,.28);
}

/* ─── Wide Container (replaces Bootstrap .container) ────── */
.blog-wrap {
  width: 100%;
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
@media (max-width: 767px) {
  .blog-wrap { padding-left: 16px; padding-right: 16px; }
}

/* ─── Page Wrapper ───────────────────────────────────────── */
.blog-magazine-page {
  background: var(--b-bg);
  min-height: 60vh;
  padding-top: 8px;
  padding-bottom: 96px;
}

/* ─── Two-Column Layout ──────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}
/* ─── Sidebar ────────────────────────────────────────────── */
.blog-sidebar {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-widget {
  background: var(--b-surface);
  border: 1px solid var(--b-border);
  border-radius: var(--b-r-lg);
  padding: 24px;
  box-shadow: var(--b-shadow-sm);
  transition: box-shadow var(--b-ease);
}
.blog-widget:hover {
  box-shadow: var(--b-shadow-md);
}

.blog-widget-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--b-primary);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-widget-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--b-border), transparent);
}
.blog-widget-title i {
  font-size: 12px;
  opacity: .8;
}

/* Search widget */
.blog-search-form { position: relative; }

.blog-search-input {
  width: 100%;
  padding: 13px 52px 13px 18px;
  border: 1.5px solid var(--b-border);
  border-radius: var(--b-r-md);
  font-size: 14px;
  color: var(--b-text-dark);
  background: var(--b-bg);
  outline: none;
  transition: var(--b-ease);
  font-family: inherit;
  -webkit-appearance: none;
}
.blog-search-input::placeholder { color: var(--b-text-muted); }
.blog-search-input:focus {
  border-color: var(--b-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(153,102,51,.09);
}

.blog-search-btn {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: var(--b-primary);
  border: none;
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--b-ease-fast);
  font-size: 13px;
}
.blog-search-btn:hover {
  background: var(--b-primary-dk);
  transform: translateY(-50%) scale(1.06);
}

/* Recent posts widget */
.recent-post-link {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--b-border-lt);
  text-decoration: none;
  transition: transform var(--b-ease-fast);
}
.recent-post-link:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-link:first-child { padding-top: 0; }
.recent-post-link:hover {
  transform: translateX(4px);
  text-decoration: none;
}

.recent-post-thumb {
  width: 62px; height: 62px;
  border-radius: var(--b-r-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--b-border-lt);
  transition: border-color var(--b-ease-fast);
}
.recent-post-link:hover .recent-post-thumb { border-color: var(--b-primary-lt); }

.recent-post-info {}
.recent-post-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--b-text-dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 5px;
  transition: color var(--b-ease-fast);
}
.recent-post-link:hover .recent-post-text { color: var(--b-primary); }
.recent-post-date {
  font-size: 11px;
  color: var(--b-text-muted);
  font-weight: 500;
}

/* Categories widget */
.blog-cat-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.blog-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--b-r-sm);
  text-decoration: none;
  color: var(--b-text-mid);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--b-ease-fast);
  border: 1px solid transparent;
}
.blog-cat-list li a:hover {
  background: var(--b-primary-xlt);
  color: var(--b-primary);
  border-color: rgba(153,102,51,.10);
  text-decoration: none;
}
.blog-cat-badge {
  background: var(--b-border);
  color: var(--b-text-muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  transition: var(--b-ease-fast);
}
.blog-cat-list li a:hover .blog-cat-badge {
  background: rgba(153,102,51,.15);
  color: var(--b-primary);
}

/* ─── Posts Grid ─────────────────────────────────────────── */
.blog-posts-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─── Blog Card ──────────────────────────────────────────── */
.blog-card {
  background: var(--b-surface);
  border: 1px solid var(--b-border);
  border-radius: var(--b-r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  min-height: 190px;
  box-shadow: var(--b-shadow-sm);
  transition:
    transform var(--b-ease),
    box-shadow var(--b-ease),
    border-color var(--b-ease);
  will-change: transform;
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-hover);
  border-color: rgba(153,102,51,.18);
}

/* Card image */
.blog-card-img-wrap {
  position: relative;
  overflow: hidden;
  width: 36%;
  flex-shrink: 0;
  background: var(--b-border-lt);
}
.blog-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.07); }

.blog-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,20,10,.38) 0%, transparent 55%);
  pointer-events: none;
  transition: opacity var(--b-ease);
}
.blog-card:hover .blog-card-img-overlay { opacity: .65; }

/* Category badge on image */
.blog-card-cat {
  position: absolute;
  top: 13px; left: 13px;
  display: inline-flex;
  align-items: center;
  background: rgba(153,102,51,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  transition: background var(--b-ease-fast);
  z-index: 2;
}
.blog-card-cat:hover {
  background: rgba(122,82,40,.96);
  color: #fff;
  text-decoration: none;
}

/* Card body */
.blog-card-body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  justify-content: center;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--b-text-muted);
  letter-spacing: .02em;
}
.blog-card-date i { font-size: 10px; color: var(--b-secondary-dk); }

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--b-text-dark);
  line-height: 1.35;
  letter-spacing: -.022em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--b-ease-fast);
}
.blog-card-title a:hover { color: var(--b-primary); }

.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--b-text-mid);
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

.blog-card-footer { margin-top: auto; padding-top: 4px; }

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--b-primary);
  text-decoration: none;
  letter-spacing: .015em;
  transition: gap var(--b-ease-fast), color var(--b-ease-fast);
}
.blog-card-cta i { font-size: 11px; transition: transform var(--b-ease-fast); }
.blog-card-cta:hover {
  color: var(--b-primary-dk);
  gap: 10px;
  text-decoration: none;
}
.blog-card-cta:hover i { transform: translateX(3px); }

/* ─── Hero card (first post on page 1) ─────────────────── */
.blog-card-hero {
  border-radius: var(--b-r-xl);
  min-height: 270px;
  border-color: rgba(153,102,51,.14);
  box-shadow: var(--b-shadow-md);
}
.blog-card-hero .blog-card-img-wrap {
  width: 46%;
}
.blog-card-hero .blog-card-body {
  padding: 32px 34px 36px;
  gap: 14px;
  justify-content: center;
}
.blog-card-hero .blog-card-title {
  font-size: clamp(17px, 2vw, 22px);
  -webkit-line-clamp: 4;
}
.blog-card-hero .blog-card-excerpt {
  font-size: 14px;
  -webkit-line-clamp: 4;
}
.blog-card-hero .blog-card-cta {
  padding: 11px 24px;
  background: var(--b-primary);
  color: #fff;
  border-radius: var(--b-r-sm);
  transition: var(--b-ease);
  align-self: flex-start;
}
.blog-card-hero .blog-card-cta:hover {
  background: var(--b-primary-dk);
  color: #fff;
  gap: 10px;
  box-shadow: 0 6px 22px rgba(153,102,51,.32);
}
@media (max-width: 767px) {
  .blog-card-hero {
    flex-direction: column;
    min-height: unset;
  }
  .blog-card-hero .blog-card-img-wrap {
    width: 100%;
    min-height: 210px;
  }
  .blog-card-hero .blog-card-body {
    padding: 22px 20px 26px;
  }
}

/* ─── Empty state ────────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
}
.blog-empty-icon {
  font-size: 48px;
  color: var(--b-border);
  margin-bottom: 16px;
  display: block;
}
.blog-empty h3 {
  font-size: 20px; font-weight: 700;
  color: var(--b-text-dark); margin-bottom: 8px;
}
.blog-empty p { color: var(--b-text-muted); font-size: 14px; }

/* ─── Pagination ─────────────────────────────────────────── */
.blog-pagination-wrap {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}
.blog-pagination {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--b-surface);
  border: 1px solid var(--b-border);
  border-radius: var(--b-r-xl);
  padding: 6px;
  box-shadow: var(--b-shadow-sm);
}
.blog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13.5px; font-weight: 600;
  color: var(--b-text-mid);
  text-decoration: none;
  transition: var(--b-ease-fast);
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  font-family: inherit;
  white-space: nowrap;
}
.blog-page-btn:hover {
  background: var(--b-bg);
  color: var(--b-text-dark);
  text-decoration: none;
}
.blog-page-btn.active {
  background: var(--b-primary);
  color: #fff;
  border-color: var(--b-primary);
  box-shadow: 0 4px 14px rgba(153,102,51,.30);
}
.blog-page-btn.disabled {
  opacity: .38;
  pointer-events: none;
}
.blog-page-btn.nav-btn {
  gap: 6px;
  font-size: 12.5px;
}
.blog-page-ellipsis {
  color: var(--b-text-muted);
  font-size: 14px;
  padding: 0 4px;
  line-height: 38px;
  display: inline-flex;
  align-items: center;
  height: 38px;
}

/* ─── Blog Detail Page ───────────────────────────────────── */
.blog-detail-page {
  background: var(--b-bg);
  padding-bottom: 96px;
}

/* Hero image (top of detail page, full width) */
.blog-detail-hero {
  position: relative;
  max-height: 520px;
  overflow: hidden;
  background: #1c1610;
  margin-bottom: 48px;
}
.blog-detail-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  opacity: .88;
}
.blog-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(26,20,10,.78) 0%,
    rgba(26,20,10,.22) 55%,
    transparent 100%
  );
}
.blog-detail-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 5% 44px;
  z-index: 2;
}

.blog-detail-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--b-primary);
  color: #fff;
  font-size: 10px; font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background var(--b-ease-fast);
}
.blog-detail-cat-link:hover {
  background: var(--b-primary-dk);
  color: #fff;
  text-decoration: none;
}

.blog-detail-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.28);
  max-width: 780px;
}

/* Article card */
.blog-article-card {
  background: var(--b-surface);
  border: 1px solid var(--b-border);
  border-radius: var(--b-r-xl);
  overflow: hidden;
  box-shadow: var(--b-shadow-md);
}

.blog-article-header {
  padding: 44px 52px 36px;
  border-bottom: 1px solid var(--b-border-lt);
}
@media (max-width: 767px) {
  .blog-article-header { padding: 28px 24px 24px; }
}

.blog-article-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--b-text-dark);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0 0 22px;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.blog-article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--b-text-muted);
  font-weight: 500;
}
.blog-article-meta-item i { color: var(--b-secondary-dk); font-size: 12px; }
.blog-article-meta-item a {
  color: var(--b-primary);
  text-decoration: none; font-weight: 600;
}
.blog-article-meta-item a:hover { text-decoration: underline; }
.blog-article-meta-sep {
  width: 4px; height: 4px;
  background: var(--b-border);
  border-radius: 50%;
  display: inline-block;
}

/* Thumbnail inside article header (when no hero) */
.blog-article-thumb {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--b-border-lt);
}

/* Article body */
.blog-article-body {
  padding: 44px 52px 36px;
}
@media (max-width: 767px) {
  .blog-article-body { padding: 28px 24px 28px; }
}

.entry-content {
  font-size: 16.5px;
  line-height: 1.88;
  color: var(--b-text-mid);
  max-width: 720px;
}
.entry-content p { margin-bottom: 1.5em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--b-text-dark);
  font-weight: 700;
  letter-spacing: -.022em;
  margin: 2.2em 0 .75em;
  line-height: 1.3;
}
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }

.entry-content a {
  color: var(--b-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--b-ease-fast);
}
.entry-content a:hover { color: var(--b-primary-dk); }

.entry-content ul,
.entry-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.5em;
}
.entry-content li { margin-bottom: .55em; }

.entry-content blockquote {
  border-left: 4px solid var(--b-primary);
  margin: 2em 0;
  padding: 18px 26px;
  background: var(--b-primary-xlt);
  border-radius: 0 var(--b-r-sm) var(--b-r-sm) 0;
  font-style: italic;
  color: var(--b-text-dark);
  font-size: 1.07em;
}
.entry-content blockquote p { margin-bottom: 0; }

.entry-content img {
  max-width: 100%;
  border-radius: var(--b-r-md);
  margin: 1.8em 0;
  box-shadow: var(--b-shadow-md);
}

.entry-content table {
  width: 100%; border-collapse: collapse;
  margin: 1.8em 0; font-size: 14px;
}
.entry-content th,
.entry-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--b-border);
}
.entry-content th {
  font-weight: 700;
  background: var(--b-bg);
  color: var(--b-text-dark);
}

.entry-content code {
  background: var(--b-bg);
  border: 1px solid var(--b-border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .9em;
  color: var(--b-primary);
}

.entry-content pre {
  background: #1c1a17;
  border-radius: var(--b-r-sm);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.8em 0;
}
.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e8d5b9;
  font-size: .92em;
}

/* ─── Article Top Image (no hero fallback) ──────────────── */
.blog-article-top-img-wrap {
  overflow: hidden;
  border-radius: var(--b-r-xl) var(--b-r-xl) 0 0;
  max-height: 460px;
}
.blog-article-top-img-wrap img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.blog-article-card:hover .blog-article-top-img-wrap img {
  transform: scale(1.03);
}

/* ─── Responsive extras ──────────────────────────────────── */
@media (max-width: 991px) {
  .blog-masthead { padding: 34px 0 28px; margin-bottom: 28px; }
  .blog-masthead h1 { font-size: 1.55rem; }
  .blog-layout { grid-template-columns: 1fr; gap: 28px; }
  .blog-sidebar-col { order: 2; }
  .blog-main-col    { order: 1; }
  .blog-sidebar { position: static; }
  .blog-detail-hero { margin-bottom: 32px; }
}

@media (max-width: 767px) {
  /* Stack all cards vertically on tablets and below */
  .blog-card {
    flex-direction: column;
    min-height: unset;
  }
  .blog-card-img-wrap {
    width: 100%;
    min-height: 195px;
  }
}

@media (max-width: 575px) {
  .blog-masthead { padding: 26px 0 22px; }
  .blog-filter-pill { font-size: 12px; padding: 6px 13px; }
  .blog-card-body { padding: 14px 16px 18px; }
  .blog-detail-hero-content { padding: 0 5% 30px; }
  .blog-article-header { padding: 24px 20px 20px; }
  .blog-article-body { padding: 22px 20px 36px; }
  .blog-pagination { flex-wrap: wrap; justify-content: center; border-radius: var(--b-r-lg); }
}

/* ─── AOS integration ────────────────────────────────────── */
[data-aos="b-rise"] {
  opacity: 0;
  transform: translateY(28px);
  transition-property: opacity, transform !important;
}
[data-aos="b-rise"].aos-animate {
  opacity: 1;
  transform: none;
}
