/* ── Toon Kids Blog CSS ──────────────────────────────────────────────────────
   Served statically at /blog.css — referenced by blog Cloud Function HTML pages.
   Fonts loaded via Google Fonts in each template's <head>.
   Colors:
     toon-blue:       #4BA8E8
     toon-blue-light: #C5E8FF
     toon-blue-sky:   #E0F4FF
     toon-pink:       #E84080
     toon-pink-light: #FFB3D1
     toon-yellow:     #FFD93D
     toon-green:      #52C93F
     toon-orange:     #F4714A
     toon-purple:     #9B59B6
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  line-height: 1.6;
  padding-top: 4.5rem;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Utilities ────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-blog { width: 100%; max-width: 740px; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── Animated Logo ────────────────────────────────────────────────────────── */
@keyframes logo-wave {
  0%        { transform: translateY(0px); }
  14%       { transform: translateY(-6px); }
  29%, 100% { transform: translateY(0px); }
}

.logo-animated {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  display: inline-block;
  font-size: 1.875rem; /* ~text-3xl */
}

.logo-animated--footer {
  font-size: 2.25rem; /* ~text-4xl */
}

/* ── Site Header (Navbar) ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 4px rgba(0, 0, 0, 0.07);
}

.site-nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Desktop nav links (hidden on mobile) */
.site-nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
}

.site-nav__link {
  position: relative;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-nav__link:hover {
  color: #4BA8E8;
  background: #f9fafb;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile CTA pill */
.site-nav__cta-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #4BA8E8;
  color: #fff !important;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(75, 168, 232, 0.3);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.site-nav__cta-mobile:hover { background: #3a9ae0; transform: translateY(-1px); }

/* Hamburger button */
.site-nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: #4BA8E8;
  transition: background 0.15s;
}

.site-nav__hamburger:hover { background: #E0F4FF; }

/* Desktop CTA (hidden on mobile, shown at md+) */
.site-nav__cta-desktop {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: #4BA8E8;
  color: #fff !important;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(75, 168, 232, 0.4);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.site-nav__cta-desktop:hover { background: #3a9ae0; transform: translateY(-2px); }

/* Mobile dropdown menu */
.site-nav__mobile-menu {
  background: linear-gradient(to bottom, #fff, #E0F4FF);
  border-top: 2px solid #C5E8FF;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.site-nav__mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: background 0.15s, color 0.15s;
}

.site-nav__mobile-link:hover { color: #111827; background: #fff; }

.site-nav__mobile-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.site-nav__mobile-link:hover .site-nav__mobile-dot { transform: scale(1.25); }

.site-nav__mobile-cta-wrap { padding: 0.75rem 0 0.25rem; }

.site-nav__mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #4BA8E8;
  color: #fff !important;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(75, 168, 232, 0.3);
  text-decoration: none;
  transition: background 0.15s;
}

.site-nav__mobile-cta:hover { background: #3a9ae0; }

/* ── Blog Index ───────────────────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #E0F4FF 0%, #ffffff 60%, #FFB3D1 100%);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid #C5E8FF;
}
.blog-hero__eyebrow {
  display: inline-block;
  background: #E0F4FF;
  color: #4BA8E8;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  border: 1px solid #C5E8FF;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blog-hero__title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.blog-hero__subtitle {
  color: #6b7280;
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Posts grid ───────────────────────────────────────────────────────────── */
.blog-grid-section { padding: 3rem 0 4rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.blog-card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #E0F4FF;
  overflow: hidden;
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card__img { transform: scale(1.04); }
.blog-card__emoji-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.625rem;
}
.blog-card__tag {
  background: #E0F4FF;
  color: #4BA8E8;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.blog-card__title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.blog-card__excerpt {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.8125rem;
  color: #9ca3af;
}
.blog-card__read-more {
  color: #4BA8E8;
  font-weight: 700;
  font-size: 0.8125rem;
}

/* ── Blog Post Page ───────────────────────────────────────────────────────── */
.post-hero {
  background: linear-gradient(135deg, #E0F4FF 0%, #ffffff 60%, #FFB3D1 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid #C5E8FF;
}
.post-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}
.post-breadcrumbs a { color: #4BA8E8; font-weight: 600; }
.post-breadcrumbs a:hover { text-decoration: underline; }
.post-breadcrumbs__sep { color: #d1d5db; }

.post-hero__emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.post-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.post-hero__tag {
  background: #E0F4FF;
  color: #4BA8E8;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid #C5E8FF;
}
.post-hero__title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.post-hero__meta-sep { color: #d1d5db; }

/* ── Post image ───────────────────────────────────────────────────────────── */
.post-featured-img {
  width: 100%;
  max-width: 740px;
  margin: 2.5rem auto 0;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #E0F4FF;
}
.post-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Post body ────────────────────────────────────────────────────────────── */
.post-body { padding: 3rem 0 4rem; }

/* ── Prose (rendered Markdown) ────────────────────────────────────────────── */
.prose {
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.prose p { margin-bottom: 1.25rem; }
.prose h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  line-height: 1.3;
}
.prose h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.5rem; line-height: 1.75; }
.prose li ul, .prose li ol { margin-top: 0.5rem; margin-bottom: 0.25rem; }
.prose strong { font-weight: 700; color: #1f2937; }
.prose em { font-style: italic; }
.prose a { color: #4BA8E8; font-weight: 600; }
.prose a:hover { text-decoration: underline; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1.5rem 0; overflow-x: auto; display: block; }
.prose thead tr { background: #E0F4FF; }
.prose th { padding: 10px 14px; text-align: left; border: 1px solid #C5E8FF; font-weight: 700; color: #1a1a2e; font-family: 'Fredoka', sans-serif; }
.prose td { padding: 10px 14px; border: 1px solid #e5e7eb; }
.prose tbody tr:nth-child(even) { background: #fafafa; }

/* ── CTA box ──────────────────────────────────────────────────────────────── */
.blog-cta-box {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #E0F4FF 0%, #FFB3D1 100%);
  border-radius: 1.25rem;
  text-align: center;
  border: 1px solid #C5E8FF;
}
.blog-cta-box__title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
}
.blog-cta-box__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #4BA8E8;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(75,168,232,0.35);
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}
.blog-cta-box__btn:hover { background: #3a9ae0; transform: translateY(-3px); text-decoration: none; }
.blog-cta-box__sub {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

/* ── Related Posts ("You Might Also Like") ────────────────────────────────── */
.related-posts {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid #E0F4FF;
}
.related-posts__title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1.25rem;
  text-align: center;
}
.related-posts__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* ── Mini card (used in "You Might Also Like") ────────────────────────────── */
.blog-card-mini {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: background 0.15s, box-shadow 0.15s;
}
.blog-card-mini:hover {
  background: #F0F9FF;
  box-shadow: 0 4px 16px rgba(75,168,232,0.1);
}
.blog-card-mini__thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #E0F4FF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-mini__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-mini__emoji {
  font-size: 2rem;
}
.blog-card-mini__body {
  flex: 1;
  min-width: 0;
}
.blog-card-mini__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.blog-card-mini__tag {
  background: #E0F4FF;
  color: #4BA8E8;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.blog-card-mini__date {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
}
.blog-card-mini__title {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-mini:hover .blog-card-mini__title {
  color: #4BA8E8;
}

/* ── Back to blog link ────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #4BA8E8;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2.5rem;
}
.back-link:hover { text-decoration: underline; }

/* ── Site Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.site-footer__social-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
}

.site-footer__social-link:hover { color: #FFD93D; }

.site-footer__links-wrap {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  font-size: 0.875rem;
  width: 100%;
  justify-content: space-between;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.site-footer__col--right {
  align-items: flex-end;
}

.site-footer__col-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.site-footer__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__link:hover { color: #FFD93D; }

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.blog-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
}
.blog-404__emoji { font-size: 5rem; margin-bottom: 1rem; }
.blog-404__title {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}
.blog-404__sub { color: #6b7280; margin-bottom: 2rem; }
.blog-404__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #4BA8E8;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}
.blog-404__btn:hover { background: #3a9ae0; transform: translateY(-2px); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  /* Nav: show desktop links & desktop CTA, hide mobile elements */
  .site-nav__links { display: flex; }
  .site-nav__cta-mobile { display: none; }
  .site-nav__hamburger { display: none; }
  .site-nav__cta-desktop { display: inline-flex; }

  /* Footer: horizontal layout */
  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .site-footer__brand { align-items: flex-start; }
  .site-footer__tagline { text-align: left; }
  .site-footer__links-wrap { width: auto; justify-content: flex-start; }
  .site-footer__col--right { align-items: flex-start; }
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-hero__meta { flex-wrap: wrap; gap: 0.5rem; }
  .post-hero__meta .post-hero__meta-sep { display: none; }
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.pagination__btn,
.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s, transform 0.12s;
  cursor: pointer;
  text-decoration: none;
}

/* Prev / Next buttons */
.pagination__btn {
  background: #ffffff;
  color: #4BA8E8;
  border: 2px solid #4BA8E8;
}
.pagination__btn:hover {
  background: #4BA8E8;
  color: #ffffff;
  transform: translateY(-1px);
}
.pagination__btn--disabled {
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: default;
  pointer-events: none;
}
.pagination__btn--disabled:hover {
  background: #ffffff;
  color: #9ca3af;
  transform: none;
}

/* Page number links */
.pagination__num {
  background: #ffffff;
  color: #1a1a2e;
  border: 2px solid #e5e7eb;
}
.pagination__num:hover {
  background: #E0F4FF;
  border-color: #4BA8E8;
  color: #4BA8E8;
  transform: translateY(-1px);
}

/* Active page */
.pagination__num--active {
  background: #4BA8E8;
  border-color: #4BA8E8;
  color: #ffffff;
  cursor: default;
  pointer-events: none;
}
.pagination__num--active:hover {
  transform: none;
}

/* ── Blog hero CTA button ─────────────────────────────────────────────────── */
.blog-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: #4BA8E8;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(75, 168, 232, 0.35);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.blog-hero__cta:hover {
  background: #3a9ae0;
  transform: translateY(-2px);
}

/* ── Featured (first) blog card ───────────────────────────────────────────── */
.blog-card--featured {
  grid-column: 1 / -1;
}

/* Desktop: side-by-side layout */
@media (min-width: 768px) {
  .blog-card--featured {
    flex-direction: row;
    max-height: 300px;
  }
  .blog-card--featured .blog-card__img-wrap {
    flex: 0 0 45%;
    aspect-ratio: auto;
    min-height: 100%;
  }
  .blog-card--featured .blog-card__body {
    justify-content: center;
  }
  .blog-card--featured .blog-card__title {
    font-size: 1.375rem;
  }
  .blog-card--featured .blog-card__excerpt {
    -webkit-line-clamp: 4;
  }
}

/* ── Reading progress bar ─────────────────────────────────────────────────── */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #4BA8E8, #E84080);
  z-index: 100;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Post share buttons ───────────────────────────────────────────────────── */
.post-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s, color 0.15s;
  white-space: nowrap;
}
.post-share__btn--twitter {
  background: #000;
  color: #fff;
}
.post-share__btn--twitter:hover { background: #222; transform: translateY(-1px); }
.post-share__btn--facebook {
  background: #1877F2;
  color: #fff;
}
.post-share__btn--facebook:hover { background: #0d6edc; transform: translateY(-1px); }
.post-share__btn--copy {
  background: #f3f4f6;
  color: #374151;
}
.post-share__btn--copy:hover { background: #e5e7eb; transform: translateY(-1px); }
.post-share__btn--copied {
  background: #52C93F !important;
  color: #fff !important;
}

/* ── Sticky mobile CTA ────────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform 0.3s ease;
  /* Desktop: hidden — only show on mobile */
}
.sticky-cta--visible {
  transform: translateY(0);
}
.sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #4BA8E8;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(75, 168, 232, 0.4);
  text-decoration: none;
  transition: background 0.15s;
}
.sticky-cta__btn:hover { background: #3a9ae0; }

@media (min-width: 768px) {
  /* Hide sticky bar on desktop — desktop already has a fixed nav CTA */
  .sticky-cta { display: none; }
}

/* ── Mid-article inline CTA ───────────────────────────────────────────────── */
.blog-cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #E0F4FF 0%, #FFB3D1 100%);
  border: 1px solid #C5E8FF;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}
.blog-cta-inline__text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a2e;
  flex: 1;
  min-width: 0;
}
.blog-cta-inline__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #4BA8E8;
  color: #fff !important;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(75, 168, 232, 0.35);
  text-decoration: none !important;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.blog-cta-inline__btn:hover { background: #3a9ae0; transform: translateY(-1px); text-decoration: none !important; }

/* ── CTA button pulse animation ───────────────────────────────────────────── */
@keyframes cta-pulse {
  0%   { box-shadow: 0 6px 20px rgba(75, 168, 232, 0.35); }
  50%  { box-shadow: 0 6px 32px rgba(75, 168, 232, 0.65), 0 0 0 6px rgba(75, 168, 232, 0.12); }
  100% { box-shadow: 0 6px 20px rgba(75, 168, 232, 0.35); }
}

.blog-cta-box__btn {
  animation: cta-pulse 2.8s ease-in-out 3s infinite;
}
