/* ============================================================
   PawBlog Theme — Main Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Variables / Design Tokens
   ------------------------------------------------------------ */
:root {
  --font-size-base: 16px;
  --background: #ffffff;
  --foreground: #0a0a0f;
  --card: #ffffff;
  --primary: #030213;
  --secondary: #f0f0f5;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --border: rgba(0, 0, 0, 0.1);
  --input-background: #f3f3f5;
  --ring: #b3b3b3;
  --radius: 0.625rem;
  --destructive: #d4183d;

  /* Brand colours */
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --blue-500:   #3b82f6;
  --blue-600:   #2563eb;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-800:   #1f2937;
  --gray-900:   #111827;
  --slate-700:  #334155;
  --slate-800:  #1e293b;
  --white:      #ffffff;

  /* Shadows */
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

/* ------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.3; }
h2 { font-size: 1.5rem;  font-weight: 700; line-height: 1.35; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem;    font-weight: 600; line-height: 1.5; }

/* ------------------------------------------------------------
   3. Layout Helpers
   ------------------------------------------------------------ */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main    { flex: 1; }

/* ------------------------------------------------------------
   4. Header
   ------------------------------------------------------------ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-bottom: 4px;
  text-decoration: none;
}
.site-branding::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 4px;
  background: var(--orange-500);
  border-radius: 2px;
}
.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--gray-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 1.25rem; height: 1.25rem; color: var(--gray-900); }
.site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.025em;
}

/* Primary Navigation */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.primary-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  transition: color 0.15s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--gray-900);
}

/* Search toggle */
.header-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search-btn:hover { background: var(--gray-100); }
.header-search-btn svg   { width: 1.25rem; height: 1.25rem; color: var(--gray-600); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .primary-nav { display: none; position: absolute; top: 5rem; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 0; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 0.75rem 1.5rem; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
}

/* ------------------------------------------------------------
   5. Hero / Page Headers
   ------------------------------------------------------------ */
.hero-blog {
  background: linear-gradient(to right, var(--orange-500), #ec4899);
  color: var(--white);
  padding: 4rem 0;
}
.hero-shop {
  background: linear-gradient(to right, var(--blue-500), #a855f7);
  color: var(--white);
  padding: 4rem 0;
}
.hero-title    { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.25rem; opacity: 0.9; }

/* ------------------------------------------------------------
   6. Blog — Article Grid
   ------------------------------------------------------------ */
.blog-section { background: var(--gray-50); padding: 3rem 0; }

.articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.articles-title { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); }

.filter-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  transition: all 0.15s;
}
.filter-btn:hover    { background: var(--gray-100); }
.filter-btn.active   { background: var(--orange-500); color: var(--white); border-color: var(--orange-500); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
@media (min-width: 768px)  { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

/* Blog Card */
.blog-card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s;
  display: block;
  color: inherit;
}
.blog-card:hover { box-shadow: var(--shadow-xl); }

.blog-card__image-wrap {
  position: relative;
  height: 16rem;
  overflow: hidden;
}
.blog-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card__image-wrap img { transform: scale(1.05); }

.blog-card__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--orange-500);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.blog-card__body { padding: 1.5rem; }
.blog-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.blog-card:hover .blog-card__title { color: var(--orange-500); }
.blog-card__excerpt {
  color: var(--gray-600);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9375rem;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.blog-card__meta-left { display: flex; align-items: center; gap: 1rem; }
.blog-card__meta-item { display: flex; align-items: center; gap: 0.25rem; }
.blog-card__meta-item svg { width: 1rem; height: 1rem; }

/* ------------------------------------------------------------
   7. Single Post
   ------------------------------------------------------------ */
.single-post { background: var(--white); padding: 3rem 0; }
.single-post__hero { position: relative; height: 28rem; overflow: hidden; border-radius: 0.75rem; margin-bottom: 2rem; }
.single-post__hero img { width: 100%; height: 100%; object-fit: cover; }
.single-post__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem;
}
.single-post__hero-overlay .blog-card__category { position: static; display: inline-block; margin-bottom: 1rem; }
.single-post__hero-title { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; }

.single-post__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .single-post__layout { grid-template-columns: 1fr 18rem; }
}

.single-post__meta {
  display: flex; align-items: center; gap: 1.5rem;
  font-size: 0.875rem; color: var(--gray-500);
  margin-bottom: 2rem; flex-wrap: wrap;
}
.single-post__meta-item { display: flex; align-items: center; gap: 0.375rem; }
.single-post__meta-item svg { width: 1rem; height: 1rem; }

/* Prose */
.prose { color: var(--gray-700); max-width: 65ch; }
.prose p   { margin-top: 1.25em; margin-bottom: 1.25em; line-height: 1.75; }
.prose h2  { color: var(--gray-900); font-weight: 700; font-size: 1.5em; margin-top: 2em; margin-bottom: 1em; line-height: 1.333; }
.prose h3  { color: var(--gray-900); font-weight: 600; font-size: 1.25em; margin-top: 1.6em; margin-bottom: .6em; line-height: 1.6; }
.prose strong { color: var(--gray-900); font-weight: 600; }
.prose a   { color: var(--orange-500); text-decoration: underline; font-weight: 500; }
.prose a:hover { color: var(--orange-600); }
.prose ul  { margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; list-style: disc; }
.prose li  { margin-top: .5em; margin-bottom: .5em; }
.prose img { border-radius: 0.5rem; margin: 2em 0; }
.prose blockquote {
  border-left: 4px solid var(--orange-500);
  padding-left: 1.5rem;
  margin: 1.5em 0;
  color: var(--gray-600);
  font-style: italic;
}

/* Sidebar */
.post-sidebar {}
.sidebar-widget { margin-bottom: 2rem; }
.sidebar-widget__title {
  font-size: 1.125rem; font-weight: 700; color: var(--gray-900);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange-500);
}

/* Ad space */
.ad-space {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.ad-space--banner { height: 6.25rem; }
.ad-space--small  { height: 12.5rem; }
.ad-space--medium { height: 18.75rem; }
.ad-space--large  { height: 25rem; }
.ad-space__label  { font-size: 0.875rem; font-weight: 500; color: var(--gray-400); margin-bottom: 0.25rem; }
.ad-space__size   { font-size: 0.75rem; color: var(--gray-300); }

/* ------------------------------------------------------------
   8. Shop — WooCommerce
   ------------------------------------------------------------ */
.shop-section { background: var(--gray-50); padding: 3rem 0; }

/* Search & filters */
.shop-topbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.shop-search-wrap {
  flex: 1;
  position: relative;
  min-width: 200px;
}
.shop-search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-400);
  pointer-events: none;
}
.shop-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--white);
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.shop-search-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}
.shop-filter-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}
.shop-filter-btn:hover { background: var(--gray-50); }
.shop-filter-btn svg   { width: 1.25rem; height: 1.25rem; }

/* Category pills */
.shop-categories {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.shop-categories::-webkit-scrollbar { display: none; }
.category-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.category-pill:hover  { background: var(--gray-100); }
.category-pill.active { background: var(--blue-500); color: var(--white); border-color: var(--blue-500); }

.shop-count { color: var(--gray-600); margin-bottom: 1.5rem; font-size: 0.9375rem; }

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
@media (min-width: 768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

/* Product card */
.product-card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s;
}
.product-card:hover { box-shadow: var(--shadow-xl); }

.product-card__image-wrap {
  position: relative;
  height: 16rem;
  overflow: hidden;
  background: var(--gray-50);
}
.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-card__image-wrap img { transform: scale(1.05); }

.product-card__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--blue-500);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.product-card__body { padding: 1.25rem; }
.product-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Star rating */
.star-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.stars { display: flex; }
.star { width: 1rem; height: 1rem; }
.star--filled { color: #facc15; fill: #facc15; }
.star--empty  { color: var(--gray-300); }
.review-count { font-size: 0.875rem; color: var(--gray-500); }

.product-card__footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--orange-500); }

/* WooCommerce override — Add to cart button */
.product-card .add_to_cart_button,
.product-card .single_add_to_cart_button,
.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-500);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.product-card .add_to_cart_button:hover,
.product-card .single_add_to_cart_button:hover,
.btn-cart:hover { background: var(--orange-600); color: var(--white); }
.btn-cart svg { width: 1rem; height: 1rem; }

/* General WooCommerce resets */
.woocommerce-breadcrumb { display: none; }
.woocommerce-notices-wrapper { margin-bottom: 1rem; }
.woocommerce-message { background: #ecfdf5; border-left: 4px solid #22c55e; padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; }
.woocommerce-error   { background: #fef2f2; border-left: 4px solid var(--destructive); padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; }

/* ------------------------------------------------------------
   9. Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--slate-800);
  color: var(--white);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.footer-logo svg  { width: 2rem; height: 2rem; color: var(--orange-500); }
.footer-logo-name { font-size: 1.5rem; font-weight: 700; color: var(--white); }

.footer-tagline { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.5rem; }
.footer-mission { color: #cbd5e1; font-style: italic; margin-bottom: 1.5rem; font-size: 0.9375rem; }

.footer-links-group { margin-bottom: 0.75rem; }
.footer-links-label { font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9375rem; }
.footer-inline-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-inline-links a { color: #94a3b8; font-size: 0.875rem; text-decoration: underline; transition: color 0.15s; }
.footer-inline-links a:hover { color: var(--white); }
.footer-badge { background: var(--orange-500); color: var(--white); font-size: 0.625rem; padding: 0.125rem 0.5rem; border-radius: 9999px; font-weight: 600; vertical-align: middle; margin-left: 0.25rem; }

.footer-socials { display: flex; gap: 1rem; margin-top: 0.5rem; }
.footer-socials a { color: #94a3b8; transition: color 0.15s; }
.footer-socials a:hover { color: var(--white); }
.footer-socials svg { width: 1.25rem; height: 1.25rem; }

.footer-fine-print a { color: #94a3b8; font-size: 0.875rem; text-decoration: underline; transition: color 0.15s; }
.footer-fine-print a:hover { color: var(--white); }

.footer-col-title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 1rem; color: var(--white); }
.footer-col-links  { }
.footer-col-links li { margin-bottom: 0.5rem; }
.footer-col-links a { color: #94a3b8; font-size: 0.9375rem; transition: color 0.15s; }
.footer-col-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--slate-700);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-copy   { color: #94a3b8; font-size: 0.875rem; }
.footer-copy p { line-height: 1.6; }
.footer-copy em { font-style: italic; }

/* Payment icons */
.payment-icons { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.payment-icon {
  background: var(--white);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-800);
  white-space: nowrap;
}
.payment-icon--paypal { color: #003087; }
.payment-icon--discover { color: #e55c00; }
.payment-icon--circle {
  background: var(--white);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mastercard-dots { display: flex; gap: 2px; }
.mastercard-red    { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #eb001b; }
.mastercard-orange { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--orange-500); }

/* ------------------------------------------------------------
   10. Page — 404 / search / archive
   ------------------------------------------------------------ */
.page-content { padding: 4rem 0; }
.page-content h1 { margin-bottom: 1rem; }

/* ------------------------------------------------------------
   11. Utilities
   ------------------------------------------------------------ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-orange { color: var(--orange-500); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  transition: all 0.15s;
}
.pagination a:hover      { background: var(--gray-100); }
.pagination .current     { background: var(--orange-500); color: var(--white); border-color: var(--orange-500); }

/* ============================================================
   Sidebar improvements
   ============================================================ */
.single-post__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 1024px) {
  .single-post__layout { grid-template-columns: 1fr 20rem; align-items: start; }
}

.sidebar-widget {
  background: var(--white);
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}
.sidebar-widget__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--orange-500);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Ad space inside sidebar */
.ad-space {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.ad-space--medium { height: 18rem; }
.ad-space--large  { height: 22rem; }
.ad-label { font-size: .875rem; font-weight: 500; color: var(--gray-400); margin-bottom: .25rem; }

/* Single post hero */
.single-post { background: var(--white); padding: 2rem 0 3rem; }
.single-post__hero {
  position: relative;
  height: 26rem;
  overflow: hidden;
  border-radius: .75rem;
  margin-bottom: 0;
}
.single-post__hero img { width: 100%; height: 100%; object-fit: cover; }
.single-post__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem;
}
.single-post__title { color: #fff; font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 700; line-height: 1.3; }

/* Post meta row */
.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .875rem;
  color: var(--gray-500);
  margin: 1.5rem 0;
}
.post-meta span { display: flex; align-items: center; gap: .375rem; }

/* In-content ad (banner) */
.ad-space--banner { height: 6rem; margin: 2rem 0; }

/* ============================================================
   Sidebar post links with thumbnails
   ============================================================ */
.sb-post-link {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.sb-post-link:hover .sb-post-title {
  color: var(--orange-500) !important;
}
.sb-post-thumb {
  width: 5rem;
  height: 5rem;
  border-radius: .5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}
.sb-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-post-title {
  font-size: .875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin: .2rem 0 .3rem;
  transition: color .15s;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single post layout — sticky sidebar */
.single-post__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 1024px) {
  .single-post__layout {
    grid-template-columns: 1fr 18rem;
    align-items: start;
  }
  .single-post__layout > aside {
    position: sticky;
    top: 6rem;
  }
}

/* Post meta row */
.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .875rem;
  color: #6b7280;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.post-meta span {
  display: flex;
  align-items: center;
  gap: .375rem;
}

/* Single post hero */
.single-post { padding: 3rem 0; }
.single-post__hero {
  position: relative;
  height: 28rem;
  overflow: hidden;
  border-radius: .75rem;
  margin-bottom: 2rem;
}
.single-post__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-post__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.single-post__title {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-top: .75rem;
}
