/* Steelence Blog — archive + single (LahGum-inspired layout, Steelence brand) */
body.steelence-blog {
  background: #F5F8FA !important;
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: #0B1F33;
}

/* Hide Hello Elementor theme chrome only; Steelence header/footer use .site-header too,
   so do NOT force-hide those. Theme leftovers sit under .site-header outside our markup. */

.st-header-spacer {
  height: var(--nav-h, 78px);
  width: 100%;
  pointer-events: none;
}

@media (max-width: 980px) {
  .st-header-spacer {
    height: 68px;
  }
}

.st-blog {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.st-blog-head {
  margin: 0 0 1.75rem;
}

.st-blog-head .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0F5D73;
  margin-bottom: 0.5rem;
}

.st-blog-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0B1F33;
}

.st-blog-head p {
  margin: 0;
  color: #6B7280;
  max-width: 52ch;
  line-height: 1.55;
}

.st-blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .st-blog-layout {
    grid-template-columns: 1fr;
  }
}

.st-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .st-blog-grid {
    grid-template-columns: 1fr;
  }
}

.st-blog-card {
  background: #fff;
  border: 1px solid #DCE5EC;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(11, 31, 51, 0.05);
}

.st-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11, 31, 51, 0.08);
}

.st-blog-card-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(15, 93, 115, 0.12), rgba(11, 31, 51, 0.06)),
    radial-gradient(circle at 20% 20%, #ffffff 0%, transparent 45%),
    #E8EEF2;
  overflow: hidden;
  position: relative;
}

.st-blog-card-media:empty::after {
  content: "Steelence";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(15, 93, 115, 0.45);
}

.st-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-blog-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.st-blog-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0F5D73;
  margin: 0 0 0.4rem;
}

.st-blog-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0B1F33;
}

.st-blog-card-meta {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: #6B7280;
}

.st-blog-card-excerpt {
  margin: 0;
  font-size: 0.92rem;
  color: #6B7280;
  line-height: 1.5;
}

.st-blog-side {
  background: #fff;
  border: 1px solid #DCE5EC;
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 4px 16px rgba(11, 31, 51, 0.04);
}

.st-blog-side h3 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0B1F33;
}

.st-blog-side + .st-blog-side {
  margin-top: 1rem;
}

.st-blog-side a {
  display: block;
  padding: 0.4rem 0;
  color: #0F5D73;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid #EEF3F6;
}

.st-blog-side a:last-child {
  border-bottom: 0;
}

.st-blog-side a:hover {
  color: #00A6A6;
}

.st-blog-recent {
  display: grid;
  gap: 0.85rem;
}

.st-blog-recent a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  align-items: start;
  border-bottom: 1px solid #EEF3F6;
  padding-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.st-blog-recent a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.st-blog-recent img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #E8EEF2;
}

.st-blog-recent strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #0B1F33;
  margin-bottom: 0.2rem;
}

.st-blog-recent span {
  font-size: 0.75rem;
  color: #6B7280;
}

.st-blog-article {
  background: #fff;
  border: 1px solid #DCE5EC;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 16px rgba(11, 31, 51, 0.04);
}

.st-blog-article h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
}

.st-blog-article .st-blog-card-meta {
  margin-bottom: 1.25rem;
}

.st-blog-article .content {
  color: #374151;
  line-height: 1.7;
  font-size: 1.02rem;
}

.st-blog-article .content p {
  margin: 0 0 1rem;
}

.st-blog-empty {
  background: #fff;
  border: 1px solid #DCE5EC;
  border-radius: 12px;
  padding: 2rem;
  color: #6B7280;
}
