/*
 * blog.css — Citrin Chiropractic Blog
 * Mobile-first. Same brand palette as home.css.
 */

/* ═══════════════════════════════════════════════════════
   BLOG HERO (blog home + archives)
   ═══════════════════════════════════════════════════════ */
.blog-hero {
  background: #1E3A4A;
  padding: 48px 20px;
  text-align: center;
}
.blog-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.blog-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #5BBEA7;
  margin-bottom: 10px;
}
.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 10px;
}
.blog-hero p {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   CATEGORY FILTERS (blog home)
   ═══════════════════════════════════════════════════════ */
.blog-cats {
  background: #F7F9F8;
  padding: 16px 20px;
  border-bottom: 1px solid #E8EFED;
}
.blog-cats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.blog-cat-pill {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #1E3A4A;
  background: #fff;
  border: 1.5px solid #D4EDE8;
  border-radius: 20px;
  padding: 7px 16px;
  text-decoration: none;
  transition: all 0.22s ease;
}
.blog-cat-pill:hover,
.blog-cat-pill--active {
  background: #5BBEA7;
  border-color: #5BBEA7;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   FEATURED POST (blog home — first post)
   ═══════════════════════════════════════════════════════ */
.blog-featured {
  background: #fff;
  padding: 60px 20px;
}
.blog-featured-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: #F7F9F8;
  border: 1px solid #E8EFED;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(30,58,74,0.07);
  transition: transform 0.3s;
}
.blog-featured-card:hover {
  transform: translateY(-3px);
}
.blog-featured-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.blog-featured-body {
  padding: 24px 28px 28px;
}
.blog-featured-cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #0F7173;
  background: #D4EDE8;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  margin-bottom: 12px;
}
.blog-featured-cat:hover {
  background: #5BBEA7;
  color: #fff;
}
.blog-featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: #1E3A4A;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 12px;
}
.blog-featured-title a {
  color: inherit;
  text-decoration: none;
}
.blog-featured-title a:hover {
  color: #5BBEA7;
}
.blog-featured-excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  color: #6B7F8C;
  line-height: 1.7;
  margin: 0 0 16px;
}
.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #6B7F8C;
}
.blog-featured-meta img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.blog-featured-meta .meta-dot {
  color: #D4EDE8;
}

/* ═══════════════════════════════════════════════════════
   POST GRID (blog home + archives)
   ═══════════════════════════════════════════════════════ */
.blog-grid-section {
  background: #fff;
  padding: 0 20px 60px;
}
.blog-grid-section--archive {
  padding-top: 60px;
}
.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.blog-card {
  background: #fff;
  border: 1px solid #E8EFED;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30,58,74,0.05);
  transition: box-shadow 0.22s, transform 0.22s;
}
.blog-card:hover {
  box-shadow: 0 8px 28px rgba(30,58,74,0.12);
  transform: translateY(-3px);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 20px 24px 24px;
}
.blog-card-cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: #0F7173;
  background: #D4EDE8;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  margin-bottom: 10px;
}
.blog-card-cat:hover {
  background: #5BBEA7;
  color: #fff;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: #1E3A4A;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 8px;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover {
  color: #5BBEA7;
}
.blog-card-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: #6B7F8C;
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: #6B7F8C;
}
.blog-card-meta .meta-dot { color: #D4EDE8; }
.blog-card-readmore {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #5BBEA7;
  text-decoration: none;
}
.blog-card-readmore:hover {
  text-decoration: underline;
}

/* No posts */
.blog-empty {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 20px;
}
.blog-empty h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: #1E3A4A;
  margin: 0 0 12px;
}
.blog-empty p {
  font-family: var(--font-body);
  font-size: 16px;
  color: #6B7F8C;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════ */
.blog-pagination {
  max-width: 1200px;
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.blog-pagination a,
.blog-pagination span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.22s;
}
.blog-pagination a {
  color: #1E3A4A;
  background: #F7F9F8;
  border: 1px solid #E8EFED;
}
.blog-pagination a:hover {
  background: #5BBEA7;
  border-color: #5BBEA7;
  color: #fff;
}
.blog-pagination .current {
  background: #1E3A4A;
  color: #fff;
  border: 1px solid #1E3A4A;
}

/* ═══════════════════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════════════════ */
.single-hero {
  background: #1E3A4A;
  padding: 48px 20px 0;
}
.single-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.single-hero-cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #5BBEA7;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-decoration: none;
}
.single-hero-cat:hover { text-decoration: underline; color: #5BBEA7; }
.single-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 16px;
}
.single-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding-bottom: 32px;
}
.single-hero-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(91,190,167,0.4);
}
.single-hero-meta a {
  color: #5BBEA7;
  text-decoration: none;
  font-weight: 600;
}
.single-hero-meta .meta-dot { color: rgba(255,255,255,0.25); }

.single-featured-img {
  max-width: 900px;
  margin: 0 auto;
  display: block;
  position: relative;
  top: -1px;
}
.single-featured-img img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 0 0 14px 14px;
  display: block;
}

/* Article content */
.single-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 20px 60px;
}
.single-content h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: #1E3A4A;
  font-weight: 400;
  margin: 40px 0 16px;
  line-height: 1.25;
}
.single-content h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #1E3A4A;
  font-weight: 400;
  margin: 32px 0 12px;
}
.single-content p {
  font-family: var(--font-body);
  font-size: 17px;
  color: #414141;
  line-height: 1.85;
  margin: 0 0 20px;
}
.single-content ul, .single-content ol {
  font-family: var(--font-body);
  font-size: 17px;
  color: #414141;
  line-height: 1.85;
  margin: 0 0 20px;
  padding-left: 24px;
}
.single-content li { margin-bottom: 8px; }
.single-content blockquote {
  border-left: 4px solid #5BBEA7;
  padding: 16px 24px;
  margin: 24px 0;
  background: #F7F9F8;
  border-radius: 0 8px 8px 0;
}
.single-content blockquote p {
  font-style: italic;
  color: #1E3A4A;
  margin: 0;
}
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 24px 0;
}
.single-content a {
  color: #5BBEA7;
  text-decoration: underline;
}
.single-content a:hover { color: #1E3A4A; }

/* Tags */
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E8EFED;
}
.single-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #6B7F8C;
  background: #F7F9F8;
  border: 1px solid #E8EFED;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
}
.single-tag:hover { background: #D4EDE8; color: #1E3A4A; }

/* ═══════════════════════════════════════════════════════
   AUTHOR BOX
   ═══════════════════════════════════════════════════════ */
.author-box {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 48px;
}
.author-box-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #F7F9F8;
  border: 1px solid #E8EFED;
  border-radius: 14px;
  padding: 28px;
}
.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box-name {
  font-family: var(--font-heading);
  font-size: 18px;
  color: #1E3A4A;
  font-weight: 400;
  margin: 0 0 4px;
}
.author-box-name a { color: inherit; text-decoration: none; }
.author-box-name a:hover { color: #5BBEA7; }
.author-box-bio {
  font-family: var(--font-body);
  font-size: 14px;
  color: #6B7F8C;
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════════════════ */
.related-posts {
  background: #F7F9F8;
  padding: 60px 20px;
}
.related-posts-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.related-posts h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: #1E3A4A;
  font-weight: 400;
  text-align: center;
  margin: 0 0 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ═══════════════════════════════════════════════════════
   BLOG CTA
   ═══════════════════════════════════════════════════════ */
.blog-cta {
  background: #1E3A4A;
  padding: 60px 20px;
  text-align: center;
}
.blog-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.blog-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  font-weight: 400;
  margin: 0 0 12px;
}
.blog-cta p {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 24px;
}
.blog-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════
   AUTHOR ARCHIVE HEADER
   ═══════════════════════════════════════════════════════ */
.author-hero {
  background: #1E3A4A;
  padding: 48px 20px;
}
.author-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.author-hero img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(91,190,167,0.4);
  object-fit: cover;
  flex-shrink: 0;
}
.author-hero-info h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: #fff;
  font-weight: 400;
  margin: 0 0 6px;
}
.author-hero-info p {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════ */
.blog-breadcrumb {
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #6B7F8C;
}
.blog-breadcrumb a {
  color: #5BBEA7;
  text-decoration: none;
}
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb .sep { margin: 0 6px; color: #D4EDE8; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-featured-card { grid-template-columns: 1.2fr 1fr; }
  .blog-featured-img { height: 100%; min-height: 320px; }
  .blog-featured-body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
  .author-hero-inner { gap: 32px; }
}

@media (max-width: 600px) {
  .author-hero-inner { flex-direction: column; text-align: center; }
  .author-box-inner { flex-direction: column; text-align: center; }
  .single-hero-meta { flex-direction: column; gap: 8px; }
}
