/* ============================================
   BLOG PAGE STYLES — The215Lawyer
   ============================================ */

/* HERO */
.blog-hero {
  position: relative;
  background: var(--navy);
  padding: 120px 0 72px;
  overflow: hidden;
}
.blog-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a2342 0%, #0d2d57 60%, #0a2342 100%);
  opacity: 1;
}
.blog-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.blog-hero-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin: 12px 0 16px;
  line-height: 1.15;
}
.blog-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 32px;
}
.blog-hero-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.blog-hero-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--gold);
}
.blog-hero-author strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}
.blog-hero-author span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ACTIVE NAV LINK */
.nav-link-active {
  color: var(--gold) !important;
  font-weight: 600;
}

/* LAYOUT */
.blog-main {
  background: #f7f8fa;
  padding: 60px 0 80px;
}
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ARTICLES */
.blog-articles {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.blog-article {
  background: var(--white);
  border-radius: 12px;
  padding: 48px 52px;
  box-shadow: 0 2px 16px rgba(10,35,66,0.07);
  scroll-margin-top: 100px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.article-tag {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.article-date, .article-read {
  font-size: 0.8rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 28px;
}
.article-body {
  color: #374151;
  line-height: 1.8;
  font-size: 1rem;
}
.article-lead {
  font-size: 1.08rem;
  color: #1f2937;
  font-weight: 500;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
  margin-bottom: 28px;
  line-height: 1.75;
}
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 32px 0 10px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul {
  margin: 8px 0 20px 0;
  padding-left: 20px;
}
.article-body ul li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.article-body strong { color: var(--navy); }
.article-body em { font-style: italic; color: #555; }

.article-callout {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 32px 0 24px;
}
.article-callout i {
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.article-callout p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}

.article-footer {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.article-divider {
  border: none;
  border-top: 2px solid #e8edf3;
  margin: 32px 0;
}

/* SIDEBAR */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(10,35,66,0.07);
}
.sidebar-about {
  text-align: center;
}
.sidebar-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--gold);
  margin-bottom: 12px;
}
.sidebar-about h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.sidebar-about p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}
.sidebar-about .btn { margin-bottom: 10px; }
.btn-full { width: 100%; text-align: center; justify-content: center; }

.sidebar-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.sidebar-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-toc li { margin-bottom: 10px; }
.sidebar-toc a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  transition: color 0.2s;
}
.sidebar-toc a i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.sidebar-toc a:hover { color: var(--gold); }

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li { margin-bottom: 10px; }
.sidebar-links a {
  color: #374151;
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.sidebar-links a i { color: var(--gold); width: 16px; text-align: center; }
.sidebar-links a:hover { color: var(--navy); }

.sidebar-cta {
  background: var(--navy);
  text-align: center;
}
.sidebar-cta-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.sidebar-cta h4 {
  color: var(--white);
  border-color: rgba(201,168,76,0.4);
}
.sidebar-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* FOOTER CTA STRIP */
.blog-footer-cta {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 40px 0;
}
.blog-footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.bfc-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 6px;
}
.bfc-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}
.bfc-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .blog-article { padding: 32px 24px; }
  .blog-hero { padding: 100px 0 56px; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .bfc-actions { width: 100%; flex-direction: column; }
  .bfc-actions .btn { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .blog-article { padding: 24px 16px; }
  .article-footer { flex-direction: column; }
  .article-footer .btn { width: 100%; text-align: center; }
}
