/* =============================================
   LICE CLINICS OF TEXAS — BLOG STYLES
   ============================================= */

/* ── SHARED NAV UPDATE (Blog link) ── */
.nav-links a.nav-blog-link {
  color: var(--navy);
  font-weight: 600;
}

/* ── BLOG INDEX ── */
.blog-hero {
  background-color: var(--navy);
  padding: 80px 0 64px;
  text-align: center;
}
.blog-hero .eyebrow { color: var(--amber); }
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin: 10px 0 16px;
}
.blog-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Featured post (first/most recent) */
.blog-featured {
  padding: 64px 0 0;
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(6,42,42,0.10);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(6,42,42,0.15);
}
.blog-featured-img {
  height: 420px;
  overflow: hidden;
  background: var(--navy);
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* ── FEATURED THUMB ── */
.blog-featured-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EEF2FF;
  color: #4F46E5;
}
.blog-featured-thumb svg {
  width: 72px;
  height: 72px;
  opacity: 0.75;
}

.blog-featured-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-content .blog-cat {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.blog-featured-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}
.blog-featured-content p {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 1rem;
}
.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 24px;
}
.blog-featured-meta span { display: flex; align-items: center; gap: 6px; }
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.2s;
}
.read-more-link:hover { gap: 10px; }

/* Blog grid */
.blog-index-section { padding: 56px 0 80px; }
.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.blog-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-img { height: 220px; }
  .blog-featured-content { padding: 28px; }
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(6,42,42,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(6,42,42,0.12);
}

/* ── BLOG CARD THUMB ── */
.blog-card-thumb {
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* default fallback color */
  background: #F1F5F9;
  color: #64748B;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-thumb svg {
  width: 52px;
  height: 52px;
  opacity: 0.7;
}

/* Category-specific thumb colors */
.blog-card:has(.cat-stories) .blog-card-thumb {
  background: #F5F3FF;
  color: #7C3AED;
}
.blog-card:has(.cat-treatment) .blog-card-thumb {
  background: #F0FDF4;
  color: #16A34A;
}
.blog-card:has(.cat-prevention) .blog-card-thumb {
  background: #FFF7ED;
  color: #EA580C;
}
.blog-card:has(.cat-facts) .blog-card-thumb {
  background: #EFF6FF;
  color: #2563EB;
}
.blog-card:has(.cat-tips) .blog-card-thumb {
  background: #EFF6FF;
  color: #2563EB;
}
.blog-card:has(.cat-awareness) .blog-card-thumb {
  background: #FDF2F8;
  color: #BE185D;
}

.blog-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.cat-facts { background: #e0f2f1; color: #00695c; }
.cat-treatment { background: #e8f5e9; color: #2e7d32; }
.cat-prevention { background: #fff8e1; color: var(--amber); }
.cat-awareness { background: #fce4ec; color: #c2185b; }
.cat-tips { background: #e3f2fd; color: #1565c0; }
.cat-stories { background: #f3e5f5; color: #6a1b9a; }

.blog-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
}
.blog-card-excerpt {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 16px;
  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-top: 14px;
  border-top: 1px solid #edf2f7;
  font-size: 0.8rem;
  color: #718096;
}
.blog-card-footer .read-more {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.82rem;
}

/* ── INDIVIDUAL POST PAGE ── */
.post-header {
  background-color: var(--navy);
  padding: 72px 0 56px;
}
.post-header-inner { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.post-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--amber); }
.post-header .blog-cat { margin-bottom: 16px; }
.post-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.post-header-meta span { display: flex; align-items: center; gap: 6px; }

/* Post hero image */
.post-hero-img {
  width: 100%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.post-hero-img img {
  width: auto;
  max-width: 60%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
.post-hero-emoji {
  font-size: 120px;
  padding: 60px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 0;
}
.post-hero-emoji svg {
  width: 1em;
  height: 1em;
  display: block;
}

/* Post layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 56px 0 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 860px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { order: -1; }
}

/* Post content */
.post-content { min-width: 0; }
.post-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2d3748;
  margin-bottom: 20px;
}
.post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 36px 0 14px;
  line-height: 1.3;
}
.post-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}
.post-content ul, .post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.post-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2d3748;
  margin-bottom: 6px;
}
.post-content blockquote {
  border-left: 4px solid var(--teal);
  padding: 16px 24px;
  margin: 28px 0;
  background: #f0fdfa;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
}
.post-content .post-cta-inline {
  background: var(--navy);
  color: #fff;
  padding: 28px 32px;
  border-radius: 12px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.post-content .post-cta-inline p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 1rem;
}
.post-content .post-cta-inline strong {
  color: #fff;
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.post-content hr {
  border: none;
  border-top: 2px solid #edf2f7;
  margin: 36px 0;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid #edf2f7;
}
.post-tags a {
  display: inline-block;
  padding: 5px 14px;
  background: #edf2f7;
  color: var(--navy);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.post-tags a:hover { background: var(--teal); color: #fff; }

/* Sidebar */
.post-sidebar { }
.sidebar-card {
  background: var(--navy);
  color: #fff;
  padding: 28px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.sidebar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #fff;
}
.sidebar-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 16px;
}
.sidebar-card .btn-primary { width: 100%; text-align: center; display: block; }
.sidebar-card.light {
  background: #f7fafc;
  color: var(--navy);
  border: 1px solid #e2e8f0;
}
.sidebar-card.light h3 { color: var(--navy); }
.sidebar-card.light p { color: #4a5568; }
.sidebar-locs a {
  display: block;
  padding: 7px 0;
  color: var(--teal);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid #edf2f7;
}
.sidebar-locs a:last-child { border-bottom: none; }

/* Related posts */
.related-posts {
  padding: 56px 0 80px;
  background: #f7fafc;
}
.related-posts h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 28px;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 0;
}
.blog-pagination a, .blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.blog-pagination a:hover, .blog-pagination a.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.post-content img {
  display: none;
}
