/* ==========================================================================
   Tia™ — Blog Stylesheet  (blog.css)
   Inherits brand tokens from style.css via link order
   ========================================================================== */

/* ── Body ── */
.blog-body {
  background: #F0F4FA;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #0D1B40;
  margin: 0;
  min-height: 100vh;
}

/* ── Header ── */
.blog-header {
  background: #1B3F8B;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(13,27,64,0.25);
}
.blog-header__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.blog-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
}
.blog-header__icon { width: 32px; height: 32px; border-radius: 6px; }
.blog-nav { display: flex; gap: 20px; }
.blog-nav__link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.blog-nav__link:hover, .blog-nav__link.active { color: #fff; }

/* ── Main ── */
.blog-main { padding: 40px 16px 80px; min-height: 80vh; }

/* ── Hero (index page) ── */
.blog-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.blog-hero__badge {
  display: inline-block;
  background: rgba(27,63,139,0.1);
  color: #1B3F8B;
  border: 1px solid rgba(27,63,139,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.blog-hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #0D1B40;
  margin: 0 0 12px;
  line-height: 1.15;
}
.blog-hero__sub {
  font-size: 1.05rem;
  color: #3A5080;
  line-height: 1.6;
  margin: 0;
}

/* ── Blog grid (index page) ── */
.blog-container { max-width: 900px; margin: 0 auto; }
.blog-container--article { max-width: 720px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(27,63,139,0.1);
  box-shadow: 0 2px 12px rgba(13,27,64,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(13,27,64,0.12);
}
.blog-card__category {
  font-size: 0.74rem;
  font-weight: 700;
  color: #C8102E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.blog-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0D1B40;
  margin: 0 0 12px;
  line-height: 1.35;
}
.blog-card__title a { text-decoration: none; color: inherit; }
.blog-card__title a:hover { color: #1B3F8B; }
.blog-card__excerpt {
  font-size: 0.88rem;
  color: #3A5080;
  line-height: 1.6;
  flex: 1;
  margin: 0 0 16px;
}
.blog-card__meta {
  font-size: 0.76rem;
  color: #7A90B8;
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.blog-card__cta {
  display: inline-block;
  color: #1B3F8B;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: gap 0.2s;
}
.blog-card__cta:hover { color: #C8102E; }

/* ── Blog CTA block (index) ── */
.blog-cta-block {
  background: linear-gradient(135deg, #1B3F8B 0%, #2A5AC7 100%);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff;
}
.blog-cta-block__avatar { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.3); }
.blog-cta-block h3 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.blog-cta-block p { margin: 0 0 16px; opacity: 0.9; font-size: 0.92rem; line-height: 1.5; }
.blog-cta-block__btn {
  display: inline-block;
  background: #C8102E;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.blog-cta-block__btn:hover { background: #E8253F; transform: translateY(-1px); }

/* ══════════════════════════════════════
   Article Styles
   ══════════════════════════════════════ */
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.article-category {
  background: rgba(200,16,46,0.1);
  color: #C8102E;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
}
.article-read-time { font-size: 0.8rem; color: #7A90B8; }

.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #0D1B40;
  line-height: 1.2;
  margin: 0 0 24px;
}

.article-intro {
  font-size: 1.05rem;
  color: #3A5080;
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(27,63,139,0.1);
}

/* Inline CTA (after intro) */
.article-cta-inline {
  background: linear-gradient(135deg, rgba(27,63,139,0.06), rgba(27,63,139,0.02));
  border: 1px solid rgba(27,63,139,0.15);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  font-size: 0.88rem;
  color: #3A5080;
}
.article-cta-inline__avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.article-cta-inline strong { color: #0D1B40; }
.article-cta-inline__btn {
  display: inline-block;
  background: #1B3F8B;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  margin-left: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}
.article-cta-inline__btn:hover { background: #2A5AC7; }

/* Table of Contents */
.article-toc {
  background: #fff;
  border: 1px solid rgba(27,63,139,0.12);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 36px;
  font-size: 0.88rem;
}
.article-toc strong { color: #0D1B40; display: block; margin-bottom: 10px; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin-bottom: 6px; }
.article-toc a { color: #1B3F8B; text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }

/* Article sections */
.blog-container--article section { margin-bottom: 36px; }
.blog-container--article h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0D1B40;
  margin: 0 0 14px;
  padding-top: 8px;
}
.blog-container--article p { font-size: 0.95rem; color: #3A5080; line-height: 1.75; margin: 0 0 14px; }
.blog-container--article ul, .blog-container--article ol {
  padding-left: 22px;
  color: #3A5080;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 14px;
}
.blog-container--article li { margin-bottom: 6px; }

/* Callouts */
.article-callout {
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 20px 0;
}
.article-callout--tip { background: rgba(22,163,74,0.08); border-left: 4px solid #16a34a; color: #166534; }
.article-callout--warning { background: rgba(217,119,6,0.08); border-left: 4px solid #d97706; color: #92400e; }

/* Tables */
.article-table-wrapper { overflow-x: auto; margin: 16px 0 24px; border-radius: 12px; box-shadow: 0 1px 4px rgba(13,27,64,0.08); }
.article-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.88rem; }
.article-table thead tr { background: #1B3F8B; color: #fff; }
.article-table th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.82rem; }
.article-table td { padding: 11px 16px; border-bottom: 1px solid rgba(27,63,139,0.08); color: #3A5080; }
.article-table tbody tr:last-child td { border-bottom: none; }
.article-table tbody tr:nth-child(even) { background: rgba(27,63,139,0.025); }

/* Timeline */
.article-timeline { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.timeline-item { display: flex; align-items: flex-start; gap: 16px; }
.timeline-dot {
  width: 32px; height: 32px;
  background: #1B3F8B;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.timeline-item div:last-child { font-size: 0.92rem; color: #3A5080; line-height: 1.6; padding-top: 6px; }

/* Bottom CTA */
.article-cta-bottom {
  background: linear-gradient(135deg, #1B3F8B 0%, #2A5AC7 100%);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  color: #fff;
  margin: 48px 0 36px;
}
.article-cta-bottom h3 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; }
.article-cta-bottom p { opacity: 0.9; font-size: 0.92rem; margin: 0 0 20px; }
.article-cta-bottom__btn {
  display: inline-block;
  background: #C8102E;
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}
.article-cta-bottom__btn:hover { background: #E8253F; transform: translateY(-2px); }
.article-cta-bottom__note { font-size: 0.74rem; opacity: 0.6; margin-top: 12px !important; }

/* Article nav */
.article-nav {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(27,63,139,0.1);
  gap: 16px;
}
.article-nav a {
  color: #1B3F8B;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}
.article-nav a:hover { color: #C8102E; }
.article-nav__next { margin-left: auto; }

/* ── Footer ── */
.blog-footer {
  background: #0D1B40;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px;
  font-size: 0.78rem;
}
.blog-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.blog-footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-cta-block { flex-direction: column; text-align: center; padding: 28px 20px; }
  .article-cta-inline { flex-direction: column; }
  .article-cta-bottom { padding: 28px 20px; }
  .article-nav { flex-direction: column; gap: 8px; }
  .article-nav__next { margin-left: 0; }
}
