/* /assets/css/blog.css */

.blog-index .page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
}

.blog-index .hero-actions .btn {
  min-height: 42px;
}

.blog-hero-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.085);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.1), 0 10px 18px rgba(15, 23, 42, 0.035), 0 2px 0 rgba(255, 255, 255, 0.78) inset;
}

.blog-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.74), rgba(16, 185, 129, 0.34), rgba(37, 99, 235, 0));
  opacity: 0.82;
  pointer-events: none;
}

.blog-path-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.blog-path-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: #334155;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.blog-path-row:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.blog-path-row span {
  font-weight: 900;
}

.blog-path-row strong {
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 900;
}

.blog-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.blog-hero-stats span {
  min-width: 0;
  padding: 11px 8px;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.blog-hero-stats strong {
  display: block;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.15;
  font-weight: 900;
}

.blog-hero-stats small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 750;
}

.blog-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.blog-feature-premium {
  position: relative;
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.075);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.045), rgba(255, 255, 255, 0) 46%),
    #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.072);
}

.blog-feature-premium::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.72), rgba(14, 165, 233, 0.28), rgba(37, 99, 235, 0));
}

.blog-feature-media {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  min-height: 280px;
  background: #f8fafc;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.blog-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.blog-feature:hover .blog-feature-media img {
  transform: scale(1.02);
}

.blog-feature-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 8px;
}

.blog-feature-body h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
  font-weight: 930;
  letter-spacing: 0;
}

.blog-feature-body p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

.blog-feature-body .blog-meta {
  margin-bottom: 12px;
  color: #718096;
  font-size: 0.9rem;
  font-weight: 750;
}

.blog-feature-body .card-actions {
  margin-top: auto;
  padding-top: 22px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.blog-sidebar {
  display: grid;
  gap: 18px;
}

.topic-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.topic-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  opacity: 0.72;
}

.topic-panel h2,
.topic-panel h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.2;
  font-weight: 900;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-topic-list,
.blog-quick-links {
  display: grid;
  gap: 10px;
}

.blog-topic-list a,
.blog-quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 8px;
  background: #fbfdff;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.blog-topic-list a:hover,
.blog-quick-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.18);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.065);
}

.blog-topic-list span,
.blog-quick-links a {
  color: #0f172a;
  font-weight: 850;
}

.blog-topic-list strong {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
}

.blog-quick-links span {
  color: #1d4ed8;
  font-weight: 900;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-latest-section .blog-card {
  overflow: hidden;
  min-height: 420px;
  padding: 20px;
  border-color: rgba(15, 23, 42, 0.075);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.035), rgba(255, 255, 255, 0) 44%),
    #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.blog-latest-section .blog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--blog-card-accent, var(--accent));
  opacity: 0.72;
}

.blog-latest-section .blog-card:nth-child(2) {
  --blog-card-accent: var(--accent-3);
}

.blog-latest-section .blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.085);
}

.blog-latest-section .blog-card-media {
  aspect-ratio: 16 / 9;
  background: #f8fafc;
}

.blog-latest-section .blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-latest-section .blog-badge,
.blog-feature-body .blog-badge {
  min-height: 28px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.055);
}

.blog-read-time {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 900;
}

.blog-latest-section .blog-card h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.22;
  font-weight: 900;
}

.blog-latest-section .blog-meta {
  margin-bottom: 12px;
  color: #718096;
  font-size: 0.84rem;
  font-weight: 750;
}

.blog-latest-section .blog-card p:not(.blog-meta) {
  color: #516074;
  line-height: 1.68;
}

.blog-latest-section .card-actions {
  padding-top: 20px;
}

.blog-read-link {
  border-color: rgba(37, 99, 235, 0.16);
  background: #f8fbff;
  color: #1d4ed8;
}

.blog-read-link:hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: #eff6ff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
}

.blog-intro {
  max-width: 760px;
  color: var(--muted-strong);
  line-height: 1.75;
}

.blog-notes-band {
  position: relative;
  overflow: hidden;
  align-items: center;
  gap: clamp(24px, 4vw, 42px);
  border-color: rgba(15, 23, 42, 0.075);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.045), rgba(255, 255, 255, 0) 44%),
    #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.blog-notes-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.72), rgba(14, 165, 233, 0.28), rgba(37, 99, 235, 0));
}

.blog-notes-copy {
  max-width: 540px;
}

.blog-notes-band h2 {
  max-width: 620px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.blog-notes-band p:not(.eyebrow) {
  max-width: 600px;
}

.blog-notes-list {
  gap: 10px;
}

.blog-notes-list li {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.blog-notes-list li:hover {
  transform: translateX(2px);
  border-color: rgba(15, 23, 42, 0.06);
  background: #f8fafc;
}

.blog-notes-list .info-check {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #dcfce7;
  color: #047857;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.12);
}

@media (max-width: 980px) {
  .blog-index .page-hero,
  .blog-feature,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-feature-media {
    min-height: 220px;
  }

  .blog-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-card-grid,
  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-feature {
    padding: 16px;
  }

  .blog-feature-media {
    min-height: 190px;
  }

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