/* ─────────────────────────────────────────────────────────────
   TechSallus — blog.css
   ───────────────────────────────────────────────────────────── */

/* ── Blog listing ───────────────────────────────────────────── */
.blog-hero {
  background: #f5f8fc;
  padding: 120px 0 64px;
  border-bottom: 1px solid #e2eaf3;
}
.blog-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  color: #0d1f35;
  margin-bottom: 12px;
}
.blog-hero p {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: #4a6080;
  line-height: 1.65;
  max-width: 520px;
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(100%, 540px);
  margin-top: 28px;
  background: #fff;
  border: 1px solid #d7e4f2;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(9,74,134,0.08);
  overflow: hidden;
}
.blog-search input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 0;
  outline: 0;
  padding: 0 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #0d1f35;
  background: #fff;
}
.blog-search input::placeholder { color: #94a3b8; }
.blog-search button {
  width: 54px;
  height: 50px;
  border: 0;
  background: #ff7300;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
}
.blog-search button:hover { background: #d96100; }

/* Category filter */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 40px 0 32px;
}
.cat-pill {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #4a6080;
  border: 1px solid #e2eaf3;
  border-radius: 20px;
  padding: 6px 18px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.cat-pill:hover { border-color: #c8d9ee; color: #094a86; }
.cat-pill.active {
  background: #094a86;
  border-color: #094a86;
  color: #fff;
}

/* Articles grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 100px;
}
.article-card {
  background: #fff;
  border: 1px solid #e2eaf3;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: 0 8px 32px rgba(9,74,134,0.1);
  transform: translateY(-2px);
  border-color: #c8d9ee;
}
.article-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.article-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-cat {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: #ff7300;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.article-card h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0d1f35;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #4a6080;
  flex: 1;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #4a6080;
  margin-bottom: 16px;
}
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #c8d9ee; }
.article-read-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #094a86;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.article-read-link:hover { gap: 10px; }

/* Blog listing section wrapper */
.blog-listing { padding-bottom: 0; }
.search-result-info {
  margin: 0;
  padding: 38px 0 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #0d1f35;
}
.search-result-info a {
  margin-left: 10px;
  color: #ff7300;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.search-result-info a:hover { text-decoration: underline; }

/* Article card h2 link */
.article-card h2 a { color: #0d1f35; text-decoration: none; transition: color 0.2s; }
.article-card h2 a:hover { color: #094a86; }

/* No results */
.no-results {
  text-align: center;
  padding: 60px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #4a6080;
}

/* Blog CTA banner */
.blog-cta-section {
  background: #094a86;
  padding: 64px 0;
}
.blog-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.blog-cta-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 30px);
  color: #fff;
  margin-bottom: 8px;
}
.blog-cta-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 520px;
}
@media (max-width: 768px) {
  .blog-cta-inner { flex-direction: column; text-align: center; }
  .blog-cta-inner .btn-primary { width: 100%; justify-content: center; }
}

/* ── Article page ────────────────────────────────────────────── */
.article-hero {
  background: #f5f8fc;
  padding: 120px 0 48px;
  border-bottom: 1px solid #e2eaf3;
}
.breadcrumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #4a6080;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.breadcrumb a { color: #094a86; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #c8d9ee; }
.article-cat-badge {
  display: inline-block;
  background: #ff7300;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 46px);
  color: #0d1f35;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 800px;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #4a6080;
}
.article-hero-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #c8d9ee; }

/* Article body layout */
.article-body-wrap { padding: 64px 0 100px; }
.article-layout { display: flex; gap: 56px; align-items: flex-start; }
.article-content { flex: 1 1 0; min-width: 0; }
.article-cover {
  width: 100%; height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 48px;
}
.article-content-body { font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.8; color: #4a6080; max-width: 720px; }
.article-content-body h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 26px; color: #0d1f35; margin: 40px 0 16px; }
.article-content-body h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; color: #0d1f35; margin: 28px 0 12px; }
.article-content-body p { margin-bottom: 20px; }
.article-content-body blockquote {
  border-left: 4px solid #ff7300;
  padding: 16px 24px;
  background: #f5f8fc;
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
  font-size: 17px;
  color: #0d1f35;
  font-style: italic;
}
.article-content-body ul { padding-left: 20px; margin-bottom: 20px; }
.article-content-body ul li { list-style: disc; margin-bottom: 8px; }
.article-content-body strong { color: #0d1f35; font-weight: 600; }

/* Sidebar */
.article-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 90px; }
.sidebar-toc {
  background: #f5f8fc;
  border: 1px solid #e2eaf3;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-toc-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #4a6080;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.sidebar-toc ol { counter-reset: toc; padding-left: 0; }
.sidebar-toc ol li { counter-increment: toc; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.sidebar-toc ol li::before {
  content: counter(toc);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #ff7300;
  background: rgba(255,115,0,0.1);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.sidebar-toc ol li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #4a6080;
  line-height: 1.45;
  transition: color 0.2s;
}
.sidebar-toc ol li a:hover { color: #094a86; }
.sidebar-cta-card {
  background: #094a86;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.sidebar-cta-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}
.sidebar-cta-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin-bottom: 20px;
}
.btn-sidebar-cta {
  display: block;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  background: #ff7300;
  border-radius: 6px;
  height: 44px;
  text-align: center;
  line-height: 44px;
  transition: background 0.2s;
}
.btn-sidebar-cta:hover { background: #d96100; }

/* Related articles */
.related-section { padding: 64px 0 100px; background: #f5f8fc; }
.related-section h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 28px; color: #0d1f35; margin-bottom: 40px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Responsive blog */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-sidebar { width: 260px; }
}
@media (max-width: 768px) {
  .blog-hero { padding: 100px 0 48px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-layout { flex-direction: column; }
  .article-sidebar { width: 100%; position: static; }
  .article-cover { height: 240px; }
  .related-grid { grid-template-columns: 1fr; }
}
