/* MicroBiz365 shared styles — posts (body.mb-post), home index (body.index-page), blog filter (body.page-blog) */
:root {
  --mb-navy: #1e3a8a;
  --mb-navy-mid: #1e40af;
  --mb-navy-light: #2563eb;
  --mb-gold: #ffd700;
  --mb-gold-soft: #ffd720;
  --mb-text: #2c3e50;
  --mb-text-muted: #34495e;
  --mb-slate: #64748b;
  --mb-teal: #0d9488;
  --mb-teal-dark: #0f766e;
  --mb-yellow-soft: #fef08a;
  --font-ui: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----- Posts + index (classic MicroBiz chrome) ----- */
body.mb-post,
body.index-page {
  font-family: var(--font-ui);
  line-height: 1.7;
  color: var(--mb-text);
  background: linear-gradient(135deg, var(--mb-navy) 0%, var(--mb-navy-mid) 100%);
  padding: 20px;
  min-height: 100vh;
}

body.mb-post .header,
body.index-page .header {
  background: var(--mb-gold) !important;
  color: #000;
  padding: 20px 0;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.mb-post .logo-section,
body.index-page .logo-section {
  text-align: center;
  padding: 25px 20px;
  background: var(--mb-gold) !important;
}

body.mb-post .header h1,
body.index-page .header h1 {
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

body.mb-post .header .tagline,
body.index-page .header .tagline {
  font-size: 0.9em;
  opacity: 0.9;
  margin-top: 5px;
}

body.mb-post .container,
body.index-page .container {
  margin: 0 auto;
  background: #fff;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

body.mb-post .container {
  max-width: 900px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body.index-page .container {
  max-width: 1200px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

body.mb-post .content,
body.index-page .content {
  padding: 40px;
}

/* ----- Idea post article typography ----- */
.mb-post article h1 {
  color: var(--mb-navy);
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.mb-post article h2 {
  color: var(--mb-navy);
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--mb-gold);
  padding-bottom: 12px;
  font-weight: 600;
}

.mb-post article h3 {
  color: var(--mb-navy);
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.mb-post article p {
  margin-bottom: 18px;
  font-size: 1.15em;
  color: var(--mb-text-muted);
}

.mb-post article ul,
.mb-post article ol {
  margin-left: 30px;
  margin-bottom: 25px;
  padding-left: 10px;
}

.mb-post article li {
  margin-bottom: 12px;
  font-size: 1.1em;
  color: var(--mb-text);
  line-height: 1.6;
}

.mb-post article ul li::marker {
  color: var(--mb-gold);
}

.mb-post article ol li::marker {
  color: var(--mb-navy);
  font-weight: bold;
}

.mb-post strong {
  color: var(--mb-navy);
  font-weight: 600;
}

.mb-post a {
  color: var(--mb-navy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.mb-post a:hover {
  color: var(--mb-navy-mid);
  text-decoration: underline;
}

/* ----- Video & media (posts) ----- */
.video-wrapper {
  margin: 40px 0;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 40px auto;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.thumbnail-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.thumbnail-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: rgba(255, 215, 0, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 10;
}

.thumbnail-link:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 215, 0, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.play-icon {
  color: #1a1a1a;
  font-size: 2.8em;
  margin-left: 6px;
  font-weight: bold;
  line-height: 1;
}

/* ----- CTAs, promos, nav (posts + index reuse) ----- */
.cta-section {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cta-links {
  background: white;
  padding: 25px;
  border-radius: 8px;
  margin-top: 15px;
}

.cta-links p {
  margin-bottom: 18px;
  font-size: 1.15em;
  line-height: 1.8;
  color: var(--mb-text);
}

.cta-links p:last-child {
  margin-bottom: 0;
}

.cta-links strong {
  color: var(--mb-navy);
}

.cta-links a {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--mb-navy) 0%, var(--mb-navy-mid) 100%);
  color: var(--mb-gold) !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  margin-left: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-links a:hover {
  background: linear-gradient(135deg, var(--mb-navy-mid) 0%, var(--mb-navy-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: var(--mb-gold) !important;
}

body.index-page .cta-links a {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--mb-gold) 0%, #ffa500 100%);
  color: #1a1a1a !important;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 8px;
  margin-left: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

body.index-page .cta-links a:hover {
  background: linear-gradient(135deg, #ffa500 0%, var(--mb-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  color: #1a1a1a !important;
  text-decoration: none !important;
}

body.index-page .cta-links a strong {
  color: #1a1a1a !important;
}

.promos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin: 32px 0;
}

.promos-row .blog-promo,
.promos-row .book-promo {
  margin: 0;
  flex: 0 1 300px;
  min-width: 260px;
  max-width: 320px;
}

.promos-row .blog-promo a,
.promos-row .book-promo a {
  max-width: 100%;
}

.blog-promo,
.book-promo {
  margin: 32px 0;
  padding: 20px;
  text-align: center;
  background: transparent;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.blog-promo a,
.book-promo a {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 400px;
}

.blog-promo a:hover,
.book-promo a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.blog-promo img,
.book-promo img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.blog-navigation {
  margin: 40px 0;
  padding: 0;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.nav-item.nav-home {
  flex: 0 0 auto;
}

.nav-link {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--mb-navy) 0%, var(--mb-navy-mid) 100%);
  color: var(--mb-gold);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
  background: linear-gradient(135deg, var(--mb-navy-mid) 0%, var(--mb-navy-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.nav-link.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-prev {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.video-footer {
  margin-top: 40px;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border-left: 5px solid var(--mb-gold);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-footer p {
  margin-bottom: 12px;
}

.video-footer a {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--mb-navy) 0%, var(--mb-navy-mid) 100%);
  color: var(--mb-gold) !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin: 5px 0;
}

.video-footer a:hover {
  background: linear-gradient(135deg, var(--mb-navy-mid) 0%, var(--mb-navy-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: var(--mb-gold) !important;
}

.meta-info {
  background: linear-gradient(135deg, var(--mb-gold-soft) 0%, rgba(255, 215, 0, 0.08) 100%);
  color: var(--mb-navy);
  font-size: 0.95em;
  margin-bottom: 30px;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--mb-gold);
}

.meta-info strong {
  color: #000;
}

.startup-cost-block {
  background: #f0f9ff;
  border: 1px solid var(--mb-navy-mid);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 28px;
  font-size: 0.95em;
  color: var(--mb-navy);
}

.startup-cost-block p {
  margin: 0;
}

.startup-cost-block strong {
  color: var(--mb-navy);
}

.related-ideas-section {
  margin: 32px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid var(--mb-navy-mid);
}

.related-ideas-section h3 {
  font-size: 1.2em;
  margin-bottom: 12px;
  color: var(--mb-navy);
}

.related-ideas-section ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.related-ideas-section li {
  margin-bottom: 8px;
}

.related-ideas-section a {
  color: var(--mb-navy-mid);
  font-weight: 500;
}

.youtube-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--mb-gold) 0%, #ffa500 100%);
  color: #1a1a1a !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.youtube-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
  background: linear-gradient(135deg, #ffa500 0%, var(--mb-gold) 100%);
}

.youtube-link strong {
  color: #1a1a1a !important;
}

.highlight-box {
  background: linear-gradient(135deg, #fffef0 0%, #fff9e6 100%);
  border-left: 5px solid var(--mb-gold);
  padding: 20px;
  margin: 25px 0;
  border-radius: 8px;
}

.logo-text {
  font-size: 2.5em;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.2;
}

.logo-home-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.logo-home-link:hover .logo-text {
  text-decoration: underline;
}

.logo-microbiz {
  color: #000;
}

.logo-365 {
  color: var(--mb-navy);
}

/* ----- Index page only ----- */
.logo-section .tagline,
.index-page .tagline {
  color: var(--mb-navy);
  margin-top: 8px;
  font-size: 0.9em;
  font-weight: 500;
}

.hero-headline {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--mb-navy);
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-subhead {
  font-size: 1.15rem;
  color: #374151;
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-cta-wrap {
  text-align: center;
  margin-bottom: 8px;
}

.hero-cta {
  display: inline-block;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--mb-gold) 0%, #f59e0b 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 32px;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: #1a1a1a;
  text-decoration: none;
}

.testimonial {
  margin-bottom: 36px;
  padding: 24px 28px;
  background: #f8fafc;
  border-left: 5px solid var(--mb-navy-mid);
  border-radius: 0 10px 10px 0;
}

.testimonial blockquote {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-style: italic;
  color: #334155;
}

.testimonial .attribution {
  font-size: 0.95rem;
  color: var(--mb-slate);
}

.frustration-intro {
  margin-bottom: 28px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 10px;
  border: 1px solid #93c5fd;
}

.frustration-intro p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--mb-navy);
  line-height: 1.6;
}

.search-section {
  margin-bottom: 40px;
  padding: 25px;
  background: linear-gradient(135deg, var(--mb-gold-soft) 0%, var(--mb-gold) 100%);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-box {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1em;
  border: 3px solid var(--mb-navy);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}

.search-box:focus {
  border-color: var(--mb-navy-mid);
  box-shadow: 0 0 10px rgba(30, 58, 138, 0.3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.filters-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 20px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.filter-group-title {
  font-size: 0.95em;
  color: var(--mb-navy);
  margin-bottom: 10px;
}

.filter-group label {
  display: block;
  font-size: 0.85em;
  margin-bottom: 6px;
  color: var(--mb-navy);
  font-weight: 600;
}

.filter-group select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
  font-size: 0.95em;
}

.top-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 50px;
}

.home-ad-banner {
  flex: 0 0 320px;
  max-width: 100%;
}

.home-ad-banner a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-ad-banner a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.home-ad-banner img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.latest-section {
  flex: 1;
  min-width: 0;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border-left: 5px solid var(--mb-gold);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.latest-section h2 {
  color: var(--mb-navy);
  margin-bottom: 20px;
  font-size: 2em;
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.latest-blog {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.latest-blog-thumbnail {
  flex: 0 0 300px;
  width: 300px;
  max-width: 100%;
}

.latest-blog-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.latest-blog-content {
  flex: 1;
}

.latest-blog h3 {
  color: var(--mb-navy);
  margin-bottom: 15px;
  font-size: 1.8em;
  margin-top: 0;
}

.latest-blog a {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--mb-navy) 0%, var(--mb-navy-mid) 100%);
  color: var(--mb-gold);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.latest-blog a:hover {
  background: linear-gradient(135deg, var(--mb-navy-mid) 0%, var(--mb-navy-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.index-section {
  margin-top: 40px;
}

.index-section h2 {
  color: var(--mb-navy);
  margin-bottom: 25px;
  font-size: 2em;
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.pillar-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 28px;
}

.pillar-links .blog-item {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.pillar-links .blog-link {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 72px;
}

.pillar-links .blog-link h3 {
  margin: 0;
  padding: 16px 18px;
  font-size: 1rem;
  line-height: 1.35;
}

.blog-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.blog-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-item:hover {
  border-color: var(--mb-gold);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  transform: translateY(-4px);
}

.blog-item.hidden {
  display: none;
}

.blog-link {
  text-decoration: none;
  color: var(--mb-text);
  display: block;
}

.blog-thumbnail {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
  background: #000;
}

.blog-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-item:hover .blog-thumbnail img {
  transform: scale(1.05);
}

.blog-link h3 {
  color: var(--mb-navy);
  font-size: 1.1em;
  margin: 0;
  padding: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-link:hover h3 {
  color: var(--mb-navy-mid);
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #6b7280;
  font-size: 1.2em;
  display: none;
}

.no-results.show {
  display: block;
}

/* ----- Blog filter page (blog.html) ----- */
body.page-blog {
  font-family: var(--font-ui);
  line-height: 1.6;
  color: var(--mb-text);
  background: linear-gradient(135deg, var(--mb-teal) 0%, var(--mb-navy) 50%, #581c87 100%);
  min-height: 100vh;
  padding: 16px;
}

body.page-blog .header {
  background: linear-gradient(135deg, var(--mb-teal), var(--mb-teal-dark));
  color: #fff;
  padding: 20px 16px;
  text-align: center;
  margin: -16px -16px 20px -16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

body.page-blog .header a {
  color: inherit;
  text-decoration: none;
}

body.page-blog .logo {
  font-size: 1.8em;
  font-weight: 700;
}

body.page-blog .logo span:nth-child(2) {
  color: var(--mb-yellow-soft);
}

body.page-blog .tagline {
  font-size: 0.9em;
  opacity: 0.95;
  margin-top: 4px;
  color: inherit;
}

body.page-blog .layout {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

body.page-blog .sidebar {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 16px;
}

body.page-blog .sidebar h2 {
  font-size: 1.1em;
  color: var(--mb-teal);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ccfbf1;
}

body.page-blog .filter-section {
  margin-bottom: 20px;
}

body.page-blog .filter-section label {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--mb-navy);
  margin-bottom: 8px;
}

body.page-blog .filter-section .options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-blog .filter-section .option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  cursor: pointer;
}

body.page-blog .filter-section input[type="checkbox"],
body.page-blog .filter-section input[type="radio"] {
  accent-color: var(--mb-teal);
}

body.page-blog .cost-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-blog .cost-chips label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 0;
}

body.page-blog .btn-all {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: var(--mb-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
}

body.page-blog .btn-all:hover {
  background: var(--mb-navy-mid);
}

body.page-blog .filter-toggle {
  display: none;
  padding: 10px 16px;
  background: var(--mb-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  width: 100%;
  margin-bottom: 12px;
  cursor: pointer;
}

body.page-blog .active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 32px;
}

body.page-blog .active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ccfbf1;
  color: var(--mb-teal-dark);
  border-radius: 20px;
  font-size: 0.85em;
}

body.page-blog .active-tag button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  line-height: 1;
  color: var(--mb-teal-dark);
  padding: 0 2px;
}

body.page-blog .active-tag button:hover {
  color: var(--mb-teal);
}

body.page-blog .main {
  flex: 1;
  min-width: 0;
}

body.page-blog .bar {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body.page-blog .bar .showing {
  font-weight: 600;
  color: var(--mb-navy);
}

body.page-blog .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

body.page-blog .card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--mb-teal);
}

body.page-blog .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.2);
}

body.page-blog .card h3 {
  font-size: 1em;
  line-height: 1.35;
  margin-bottom: 8px;
}

body.page-blog .card h3 a {
  color: var(--mb-navy);
  text-decoration: none;
}

body.page-blog .card h3 a:hover {
  color: var(--mb-teal);
  text-decoration: underline;
}

body.page-blog .card .excerpt {
  font-size: 0.9em;
  color: var(--mb-slate);
  margin-bottom: 12px;
  line-height: 1.45;
}

body.page-blog .card .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.page-blog .badge {
  font-size: 0.75em;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

body.page-blog .badge-cat {
  background: #e0e7ff;
  color: #3730a3;
}

body.page-blog .badge-cost {
  background: #ccfbf1;
  color: var(--mb-teal-dark);
}

body.page-blog .no-results {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--mb-slate);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.page-blog .nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

body.page-blog .nav a {
  display: inline-block;
  padding: 10px 20px;
  background: var(--mb-navy);
  color: var(--mb-yellow-soft);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-right: 12px;
}

body.page-blog .nav a:hover {
  background: var(--mb-navy-mid);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .play-button-overlay {
    width: 70px;
    height: 70px;
  }

  .play-icon {
    font-size: 2.2em;
    margin-left: 4px;
  }

  .promos-row {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-item {
    width: 100%;
  }

  .nav-prev,
  .nav-next {
    text-align: center;
  }

  body.mb-post,
  body.index-page {
    padding: 10px;
  }

  body.mb-post .content,
  body.index-page .content {
    padding: 20px;
  }

  .mb-post article h1 {
    font-size: 2em;
    line-height: 1.3;
  }

  .mb-post article h2 {
    font-size: 1.6em;
    margin-top: 30px;
  }

  .mb-post article h3 {
    font-size: 1.3em;
  }

  .mb-post article p {
    font-size: 1em;
  }

  .mb-post article ul,
  .mb-post article ol {
    margin-left: 20px;
    padding-left: 5px;
  }

  .mb-post article li {
    font-size: 1em;
    margin-bottom: 10px;
  }

  body.mb-post .header,
  body.index-page .header {
    padding: 15px 0;
  }

  body.mb-post .header h1,
  body.index-page .header h1 {
    font-size: 1.5em;
  }

  body.mb-post .header .tagline,
  body.index-page .header .tagline {
    font-size: 0.8em;
  }

  .logo-text {
    font-size: 1.8em;
  }

  .cta-section {
    padding: 20px;
    margin: 30px 0;
  }

  .cta-links {
    padding: 15px;
  }

  .cta-links a,
  .video-footer a,
  .blog-link,
  .nav-link {
    padding: 12px 16px;
    font-size: 0.95em;
    min-height: 44px;
    display: block;
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }

  body.index-page .cta-links a {
    margin-left: 0;
  }

  .video-thumbnail {
    margin: 20px auto;
  }

  .meta-info {
    font-size: 0.9em;
  }

  .video-footer {
    padding: 20px;
  }

  .search-section {
    padding: 15px;
  }

  .search-box {
    padding: 12px 15px;
    font-size: 1em;
  }

  .filters-panel {
    grid-template-columns: 1fr;
  }

  .top-row {
    flex-direction: column;
  }

  .home-ad-banner {
    flex: 0 0 auto;
    width: 100%;
    order: -1;
  }

  .latest-section {
    padding: 20px;
  }

  .latest-section h2 {
    font-size: 1.5em;
  }

  .latest-blog {
    flex-direction: column;
    padding: 20px;
  }

  .latest-blog-thumbnail {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 20px;
  }

  .latest-blog h3 {
    font-size: 1.4em;
  }

  .pillar-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
  }

  .pillar-links .blog-link h3 {
    font-size: 0.95rem;
    padding: 14px 16px;
  }

  .blog-index {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-item {
    margin-bottom: 20px;
  }

  .blog-item h3 {
    font-size: 1.1em;
    padding: 15px;
  }

  .blog-thumbnail {
    padding-top: 56.25%;
  }

  .index-section h2,
  .latest-section h2 {
    font-size: 1.5em;
  }

  body.page-blog .filter-toggle {
    display: block;
  }

  body.page-blog .sidebar {
    flex: 1 1 100%;
    position: static;
  }

  body.page-blog .sidebar.collapsed h2 {
    display: none;
  }

  body.page-blog .sidebar.collapsed .filter-section {
    display: none;
  }
}
