/**
 * LearnDoKids Blog — list + post + sidebar
 */
.blog-page {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 220px, #f8fafc 100%);
  min-height: 60vh;
  padding-bottom: 64px;
}

.blog-hero-band {
  padding: 36px 16px 8px;
}
.blog-hero-band-inner {
  max-width: 720px;
}
.blog-kicker {
  color: #2563eb;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.blog-hero-band h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.2;
}
.blog-lead {
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

.blog-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.blog-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 28px;
}
@media (min-width: 960px) {
  .blog-layout-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

/* —— Cards list —— */
.blog-card-grid {
  display: grid;
  gap: 20px;
}
.blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .blog-card {
    grid-template-columns: 200px 1fr;
  }
}
.blog-card-media {
  display: block;
  background: linear-gradient(145deg, #dbeafe, #f0f9ff);
  min-height: 140px;
  text-decoration: none;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
}
.blog-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  font-size: 2.5rem;
}
.blog-card-body {
  padding: 18px 20px 20px;
}
.blog-card-body h2 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  line-height: 1.3;
}
.blog-card-body h2 a {
  color: #0f172a;
  text-decoration: none;
}
.blog-card-body h2 a:hover {
  color: #2563eb;
}
.blog-card-body p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 12px;
}
.blog-meta {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 8px;
}
.blog-read-more {
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.92rem;
}
.blog-read-more:hover {
  text-decoration: underline;
}
.blog-empty {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

/* —— Sidebar —— */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 960px) {
  .blog-sidebar {
    position: sticky;
    top: 88px;
  }
}
.blog-side-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 16px 18px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}
.blog-side-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 0 0 8px;
}
.blog-side-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: #0f172a;
}
.blog-side-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 12px;
}
.blog-side-btn {
  display: inline-block;
  margin-bottom: 8px;
}
.blog-side-link {
  display: block;
  font-weight: 600;
  color: #2563eb;
  font-size: 0.9rem;
  text-decoration: none;
}
.blog-side-link:hover {
  text-decoration: underline;
}
.blog-side-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-side-nav li {
  border-bottom: 1px solid #f1f5f9;
}
.blog-side-nav li:last-child {
  border-bottom: 0;
}
.blog-side-nav a {
  display: block;
  padding: 8px 0;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.blog-side-nav a:hover {
  color: #2563eb;
}
.blog-side-cta {
  background: linear-gradient(160deg, #eff6ff, #fff);
  border-color: #bfdbfe;
}
.blog-side-tip {
  background: #fffbeb;
  border-color: #fde68a;
}
.blog-side-tip .blog-side-label {
  color: #b45309;
}
.blog-ad-slot {
  overflow: hidden;
}
.blog-ad-slot img {
  max-width: 100%;
  height: auto;
}

/* —— Single post —— */
.blog-crumb {
  margin: 0 0 12px;
}
.blog-crumb a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.blog-crumb a:hover {
  text-decoration: underline;
}
.blog-post-header {
  margin-bottom: 18px;
}
.blog-post-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 12px;
}
.blog-excerpt {
  font-size: 1.08rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}
.blog-cover-wrap {
  margin: 0 0 22px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #e2e8f0;
}
.blog-cover-wrap img.cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.blog-content {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 36px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.06);
  color: #1e293b;
  font-size: 1.05rem;
  line-height: 1.75;
}
.blog-content > *:first-child {
  margin-top: 0;
}
.blog-content h2 {
  font-size: 1.4rem;
  margin: 1.6em 0 0.55em;
  color: #0f172a;
  line-height: 1.3;
}
.blog-content h3 {
  font-size: 1.15rem;
  margin: 1.35em 0 0.45em;
  color: #1e293b;
}
.blog-content p {
  margin: 0 0 1.05em;
}
.blog-content a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-content a:hover {
  color: #1d4ed8;
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}
.blog-content li {
  margin-bottom: 0.4em;
}
.blog-content li::marker {
  color: #3b82f6;
}
.blog-content blockquote {
  margin: 1.3em 0;
  padding: 14px 18px;
  border-left: 4px solid #3b82f6;
  background: #f0f7ff;
  border-radius: 0 12px 12px 0;
  color: #334155;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1.1em 0;
  display: block;
}

.blog-post-cta {
  margin-top: 28px;
  padding: 22px 20px;
  background: linear-gradient(145deg, #eff6ff, #f8fafc);
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  text-align: center;
}
.blog-post-cta h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #0f172a;
}
.blog-post-cta p {
  margin: 0 0 14px;
  color: #475569;
}
.blog-post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.blog-related {
  margin-top: 36px;
}
.blog-related h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
  color: #0f172a;
}
.blog-related-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 600px) {
  .blog-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.blog-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.92rem;
}
.blog-related-card span {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.85rem;
}
.blog-related-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

/* Buttons fallback if site btn classes missing */
.blog-page .btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.blog-page .btn-primary {
  background: #2563eb;
  color: #fff;
}
.blog-page .btn-primary:hover {
  background: #1d4ed8;
}
.blog-page .btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}


/* Ad units */
.ldk-ad-slot {
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 12px;
}
.ldk-ad-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 6px;
}
.ldk-ad img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.blog-ad-top, .gallery-ad-top, .gallery-ad-detail, .blog-ad-after-content {
  margin: 0 0 16px;
}


.blog-trust {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.blog-trust-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-trust-name { font-weight: 800; color: #0f172a; }
.blog-trust-title { font-size: 0.88rem; color: #64748b; }
.blog-trust-bio { font-size: 0.9rem; color: #475569; margin: 6px 0 0; line-height: 1.45; }
.blog-resources {
  margin: 24px 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.blog-resources h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: #0f172a;
}
.blog-resources-body ul { margin: 0; padding-left: 1.2em; }
.blog-resources-body a { color: #2563eb; font-weight: 600; }
