/* ============================================================
   RED WORKS — BLOG
   Uses the Works / Kreitech Uruguay design system:
   Cairo · indigo #100075 → cyan #00DCDD · mint #78DEC7 · white surfaces.
   Navbar, footer, buttons and cards come from styles.css +
   ai-for-your-business.css; this file only styles the blog body.
   ============================================================ */

/* ---------- Listing hero ---------- */
.blog-hero {
  background: linear-gradient(135deg, #0B0244 0%, #100075 30%, #00DCDD 70%, #78DEC7 100%);
  background-size: 280% 280%;
  animation: heroGrad 16s ease infinite;
  color: #fff;
  padding: 96px 24px 80px;
  text-align: center;
}
.blog-hero__eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}
.blog-hero__title {
  font-weight: 700;
  font-size: 52px;
  line-height: 115%;
  letter-spacing: -0.5px;
  color: #fff;
  max-width: 820px;
  margin: 0 auto 20px;
}
.blog-hero__sub {
  font-size: 20px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- Post grid ---------- */
.post-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid rgba(16, 0, 117, 0.06);
  box-shadow: 0 4px 16px rgba(16, 0, 117, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(16, 0, 117, 0.14);
}
.post-card__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #100075;
  background: rgba(0, 220, 221, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
}
.post-card__title {
  font-weight: 700;
  font-size: 21px;
  line-height: 128%;
  color: #100075;
}
.post-card__excerpt {
  font-size: 15px;
  line-height: 158%;
  color: #424242;
  flex: 1;
}
.post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}
.post-card__read {
  font-weight: 700;
  color: #0D03B7;
}

/* ---------- Article ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.article__back {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #0D03B7;
  margin-bottom: 24px;
}
.article__back:hover { opacity: 0.7; }
.article__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #100075;
  background: rgba(0, 220, 221, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
}
.article__title {
  font-weight: 700;
  font-size: 44px;
  line-height: 118%;
  letter-spacing: -0.5px;
  color: #100075;
  margin: 20px 0 16px;
}
.article__meta {
  font-size: 14px;
  color: #6b7280;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(16, 0, 117, 0.1);
  margin-bottom: 36px;
}

.article__body {
  font-size: 18px;
  line-height: 172%;
  color: #3a3a44;
}
.article__body p { margin-bottom: 24px; }
.article__body h2 {
  font-weight: 700;
  font-size: 28px;
  line-height: 128%;
  color: #100075;
  margin: 44px 0 16px;
}
.article__body h3 {
  font-weight: 700;
  font-size: 21px;
  color: #100075;
  margin: 32px 0 12px;
}
.article__body ul, .article__body ol { margin: 0 0 24px; padding-left: 24px; }
.article__body ol li { margin-bottom: 10px; }
.article__body ul { list-style: none; padding-left: 0; }
.article__body ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.article__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #100075 0%, #00DCDD 100%);
}
.article__body a {
  color: #0D03B7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article__body a:hover { color: #00DCDD; }
.article__body strong { color: #1f1f2b; }
.article__body blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 4px solid #00DCDD;
  background: linear-gradient(135deg, rgba(16, 0, 117, 0.03), rgba(0, 220, 221, 0.05));
  border-radius: 0 12px 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: #100075;
  line-height: 150%;
}

/* ---------- Article CTA ---------- */
.article__cta {
  margin-top: 56px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, #100075 0%, #0D03B7 50%, #00DCDD 100%);
  color: #fff;
  text-align: center;
}
.article__cta h3 {
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 12px;
  color: #fff;
}
.article__cta p {
  font-size: 16px;
  line-height: 158%;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin: 0 auto 24px;
}
.article__cta .btn-primary,
.article__cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #78DEC7;
  color: #07022e;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.article__cta .btn-primary:hover,
.article__cta .btn:hover {
  background: #00DCDD;
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .blog-hero { padding: 72px 20px 60px; }
  .blog-hero__title { font-size: 34px; }
  .blog-hero__sub { font-size: 17px; }
  .post-grid { padding: 56px 20px 72px; grid-template-columns: 1fr; gap: 20px; }
  .article { padding: 48px 20px 64px; }
  .article__title { font-size: 32px; }
  .article__body { font-size: 17px; }
  .article__body h2 { font-size: 24px; }
  .article__cta { padding: 32px 24px; }
}
