/**
 * Acton Surveyors — Blog & Article Styles
 */

/* ---- Article Header ---- */
.article-header {
  background: var(--navy);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(201,168,76,0.14) 0%, transparent 55%);
}

.article-header .container { position: relative; z-index: 1; max-width: 900px; }

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.25rem;
}

.article-header p.lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 680px;
}

.article-author-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-info strong { display: block; font-size: 0.9rem; color: var(--white); }
.author-info span   { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

.article-dividers {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-dividers span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-dividers svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.45); }

/* ---- Article Body ---- */
.article-body-section {
  padding: 4rem 0;
}

.article-body-section .container {
  max-width: 1140px;
}

.article-content {
  max-width: 760px;
}

.article-content .article-lead {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  width: 100%;
  height: auto;
}

.article-content .caption {
  font-size: 0.8rem;
  color: var(--mid-grey);
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-tag {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ---- Related Posts ---- */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ---- Blog List Page ---- */
.blog-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(201,168,76,0.12) 0%, transparent 60%);
}

.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 { color: var(--white); margin-bottom: 1rem; }
.blog-hero p { color: rgba(255,255,255,0.72); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---- Blog filter tabs ---- */
.blog-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}

/* ---- Featured blog card ---- */
.blog-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.blog-featured-img {
  height: 340px;
  overflow: hidden;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }

.blog-featured-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-body h2 { font-size: 1.6rem; color: var(--navy); margin-bottom: 0.75rem; }
.blog-featured-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   BLOG RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Small Laptop / Large Tablet (968px) */
@media (max-width: 968px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .article-header { padding: 6rem 0 3rem; }
  .article-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
}

/* Tablet (768px) */
@media (max-width: 768px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { height: 240px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .blog-featured-body { padding: 1.5rem; }
  .blog-featured-body h2 { font-size: 1.35rem; }

  .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .related-posts-grid { grid-template-columns: 1fr; }

  .article-header { padding: 5.5rem 0 2.5rem; }
  .article-header h1 { font-size: 1.6rem; }
  .article-header p.lead { font-size: 0.975rem; }

  .article-body { padding: 2rem 0; }
  .article-body h2 { font-size: 1.35rem; }
  .article-body h3 { font-size: 1.15rem; }

  .article-author-strip { gap: 1rem; }

  .filter-tabs { gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
  .filter-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }

  .blog-hero { padding: 6rem 0 3rem; }
  .blog-hero h1 { font-size: 1.8rem; }
}

/* Mobile Landscape (600px) */
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .blog-card { margin-bottom: 0.5rem; }

  .blog-card-img { height: 190px; }
  .blog-card-body { padding: 1rem; }
  .blog-title { font-size: 1rem; line-height: 1.4; }
  .blog-excerpt { font-size: 0.875rem; }
  .blog-meta { font-size: 0.75rem; gap: 0.5rem; }

  .article-header { padding: 5rem 0 2rem; }
  .article-header h1 { font-size: 1.4rem; }
  .article-meta-top { gap: 0.5rem; }

  .article-body { padding: 1.5rem 0; }
  .article-body h2 { font-size: 1.25rem; }
  .article-body h3 { font-size: 1.1rem; }
  .article-body p { font-size: 0.95rem; line-height: 1.7; }
  .article-body blockquote { padding: 0.75rem 1rem; font-size: 0.95rem; }

  .tag-badge { font-size: 0.7rem; padding: 0.25rem 0.6rem; }

  .related-posts-grid { grid-template-columns: 1fr; }
  .related-post-card { padding: 1rem; }

  .blog-hero { padding: 5rem 0 2.5rem; }
  .blog-hero h1 { font-size: 1.5rem; }
  .blog-hero p { font-size: 0.95rem; }

  .filter-tabs { gap: 0.4rem; }
  .filter-btn { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
}

/* Mobile Portrait (480px) */
@media (max-width: 480px) {
  .article-header { padding: 4.5rem 0 1.75rem; }
  .article-header h1 { font-size: 1.25rem; }
  .article-header p.lead { font-size: 0.9rem; }

  .blog-card-img { height: 170px; }
  .blog-title { font-size: 0.95rem; }

  .blog-hero h1 { font-size: 1.3rem; }

  .author-avatar { width: 40px; height: 40px; }
  .author-name { font-size: 0.875rem; }
  .author-title { font-size: 0.75rem; }
}
