/* Blog ICET — listagem estilo vitrine + sidebar */
:root {
  --blog-teal: #14b8a6;
  --blog-teal-dark: #0d9488;
  --blog-orange: #ff9f1c;
  --blog-orange-dark: #e8890b;
  --blog-hero-bg: linear-gradient(165deg, #0f172a 0%, #1e1b4b 45%, #0f2744 100%);
  --blog-card-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

body.page-blog {
  background: #f1f5f9;
  color: #0f172a;
}

.page-blog .noise,
.page-blog .glow-orb {
  display: none;
}

.blog-page {
  position: relative;
  z-index: 1;
}

/* Hero */
.blog-hero {
  padding: calc(2.25rem + var(--header-total)) 0 3rem;
  background: var(--blog-hero-bg);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-hero__inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.blog-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.45);
  color: #5eead4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1rem;
}
.blog-hero__lead {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.65;
}

/* Shell */
.blog-shell {
  padding: 2.5rem 0 3.5rem;
}

.blog-layout {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
  }
}

/* Grid de posts */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--blog-card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
.blog-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
}
.blog-card:nth-child(2n) .blog-card__thumb {
  background: linear-gradient(145deg, #8b5cf6 0%, #6d28d9 100%);
}
.blog-card:nth-child(3n) .blog-card__thumb {
  background: linear-gradient(145deg, #0d9488 0%, #0f766e 100%);
}
.blog-card__thumb svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.35);
}
.blog-card__body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__cat {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.blog-card__cat--dev { color: #2563eb; }
.blog-card__cat--seo { color: #0d9488; }
.blog-card__cat--geral { color: #64748b; }
.blog-card__cat--ecom { color: #7c3aed; }
.blog-card__cat--mkt { color: #ea580c; }
.blog-card__cat--saas { color: #0891b2; }
.blog-card__title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 0.65rem;
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card__title a:hover {
  color: var(--blog-orange);
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.85rem;
}
.blog-card__meta svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.blog-card__more {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blog-orange);
  text-decoration: none;
  align-self: flex-start;
}
.blog-card__more:hover {
  color: var(--blog-orange-dark);
}

/* Sidebar widgets */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-widget {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--blog-card-shadow);
}
.blog-widget__title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f172a;
}
.blog-widget__title::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blog-teal), rgba(20, 184, 166, 0.25));
}

.blog-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.blog-cat-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-cat-list a:hover {
  color: var(--blog-teal-dark);
}
.blog-cat-list__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.blog-widget--cta {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-color: rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 1.5rem 1.25rem;
}
.blog-widget--cta .blog-widget__title {
  color: #fff;
}
.blog-widget--cta .blog-widget__title::after {
  background: linear-gradient(90deg, var(--blog-teal), rgba(20, 184, 166, 0.3));
}
.blog-widget--cta p {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.55;
}
.blog-widget--cta .blog-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a0a0a;
  background: linear-gradient(180deg, var(--blog-orange) 0%, var(--blog-orange-dark) 100%);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 159, 28, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-widget--cta .blog-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 159, 28, 0.45);
}

.blog-featured-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.blog-featured-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-featured-list a:hover {
  color: var(--blog-orange);
}

/* Nav: destacar Blog */
.page-blog .main-nav__menu > li > a.is-active {
  color: var(--blog-orange);
}

/* WhatsApp flutuante (blog) */
.wa-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}
.wa-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
