/* Lawyer Marketing Blog */

.lfm-blog-hero {
  position: relative;
  background: var(--lfm-navy) url('../../images/06c8a30f5a64bbf6973c1cdc4eefc15f97dab7bc.jpg') center/cover no-repeat;
  padding: 48px 24px 0;
}

.lfm-blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 33, 71, .82) 0%, rgba(0, 33, 71, .92) 100%);
}

.lfm-blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.lfm-blog-hero-text {
  text-align: center;
  color: #fff;
  padding: 24px 0 40px;
}

.lfm-blog-hero-text h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.25;
}

.lfm-blog-hero-text p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.65;
  color: #cbd5e1;
}

.lfm-blog-featured {
  background: #fff;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -2px 20px rgba(15, 23, 42, .12);
}

.lfm-blog-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5e7eb;
}

.lfm-blog-tab {
  flex: 1 1 25%;
  min-width: 140px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border: none;
  border-right: 1px solid #e5e7eb;
  cursor: pointer;
  text-align: center;
  transition: background .15s, color .15s;
}

.lfm-blog-tab:last-child {
  border-right: none;
}

.lfm-blog-tab:hover {
  color: var(--lfm-brand);
}

.lfm-blog-tab.is-active {
  background: #fff;
  color: var(--lfm-brand);
  border-bottom: 3px solid var(--lfm-brand);
  margin-bottom: -1px;
}

.lfm-blog-featured-panel {
  display: none;
  padding: 32px 28px;
}

.lfm-blog-featured-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.lfm-blog-featured-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--lfm-brand);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.lfm-blog-featured-panel h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--lfm-brand);
  line-height: 1.35;
  margin: 0 0 14px;
}

.lfm-blog-featured-panel h2 a {
  color: inherit;
  text-decoration: none;
}

.lfm-blog-featured-panel h2 a:hover {
  text-decoration: underline;
}

.lfm-blog-featured-excerpt {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 16px;
}

.lfm-blog-featured-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--lfm-brand);
  text-decoration: none;
}

.lfm-blog-featured-link:hover {
  text-decoration: underline;
}

.lfm-blog-featured-img {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.lfm-blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lfm-blog-section {
  padding: 56px 24px;
  background: #fff;
}

.lfm-blog-section:nth-child(even) {
  background: #f8fafc;
}

.lfm-blog-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.lfm-blog-section h2 {
  text-align: center;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 8px;
}

.lfm-blog-section-sub {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.lfm-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lfm-blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.lfm-blog-section:nth-child(even) .lfm-blog-card {
  background: #fff;
}

.lfm-blog-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
  transform: translateY(-2px);
}

.lfm-blog-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.lfm-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lfm-blog-card-body {
  padding: 20px 18px 22px;
}

.lfm-blog-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--lfm-brand);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.lfm-blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--lfm-brand);
  line-height: 1.35;
  margin: 0 0 10px;
}

.lfm-blog-card-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.lfm-blog-view-all {
  text-align: center;
  margin-top: 36px;
}

.lfm-blog-view-all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lfm-brand);
  background: #fff;
  border: 2px solid var(--lfm-brand);
  border-radius: 4px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.lfm-blog-view-all a:hover {
  background: var(--lfm-brand);
  color: #fff;
}

.lfm-blog-cta {
  padding: 56px 24px;
  background: #e8eef5;
}

.lfm-blog-cta-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .08);
  text-align: center;
}

.lfm-blog-cta-banner {
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.lfm-blog-cta-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lfm-blog-cta-body {
  padding: 32px 28px 36px;
}

.lfm-blog-cta-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
}

.lfm-blog-cta-body p {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 20px;
}

.lfm-blog-cta-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lfm-brand);
  background: transparent;
  border: 2px solid var(--lfm-brand);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.lfm-blog-cta-btn:hover {
  background: var(--lfm-brand);
  color: #fff;
}

@media (max-width: 900px) {
  .lfm-blog-featured-panel.is-active {
    grid-template-columns: 1fr;
  }

  .lfm-blog-featured-img {
    order: -1;
  }

  .lfm-blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .lfm-blog-tabs {
    flex-direction: column;
  }

  .lfm-blog-tab {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .lfm-blog-grid {
    grid-template-columns: 1fr;
  }
}
