/* ===========================
   Intellitions Blog – Public Styles
   =========================== */

/* ---------- Blog Main ---------- */
.blog-main {
  padding-top: 7rem;
  padding-bottom: 4rem;
  min-height: 70vh;
}

/* ---------- Blog Hero ---------- */
.blog-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #3a3a3a;
  margin-bottom: 0.75rem;
}
.blog-hero .section-tag {
  margin-bottom: 1rem;
}
.blog-hero .section-desc {
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Blog Empty State ---------- */
.blog-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: #7F7F7F;
}
.blog-empty svg {
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}
.blog-empty h2 {
  font-size: 1.5rem;
  color: #3a3a3a;
  margin-bottom: 0.5rem;
}
.blog-empty p {
  font-size: 1rem;
}

/* ---------- Blog Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ---------- Blog Card ---------- */
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.blog-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid #e5e5e5;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 0.75rem;
}
.meta-sep {
  color: #ccc;
}
.blog-card-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.blog-card-body h2 a {
  color: #3a3a3a;
  transition: color 0.2s;
}
.blog-card-body h2 a:hover {
  color: #ED7D31;
}
.blog-card-body > p {
  color: #7F7F7F;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ED7D31;
  transition: gap 0.2s;
}
.blog-read-more:hover {
  gap: 0.65rem;
  color: #F5A04A;
}

/* ---------- Pagination ---------- */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}
.pagination-info {
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
}

/* ---------- Breadcrumb ---------- */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 2rem;
}
.blog-breadcrumb a {
  color: #7F7F7F;
  transition: color 0.2s;
}
.blog-breadcrumb a:hover {
  color: #ED7D31;
}
.blog-breadcrumb svg {
  opacity: 0.4;
}
.blog-breadcrumb span {
  color: #3a3a3a;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* ---------- Article ---------- */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
}
.article-header {
  margin-bottom: 2rem;
}
.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #3a3a3a;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ED7D31, #F5A04A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.article-author strong {
  display: block;
  color: #3a3a3a;
  font-size: 0.9rem;
}
.article-author span {
  font-size: 0.8rem;
  color: #999;
}

/* ---------- Featured Image ---------- */
.article-featured-img {
  margin: 0 0 2.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}
.article-featured-img img {
  width: 100%;
  display: block;
}

/* ---------- Article Content ---------- */
.article-content {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
}
.article-content h1,
.article-content h2,
.article-content h3 {
  color: #3a3a3a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content p {
  margin-bottom: 1.25rem;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}
.article-content a {
  color: #ED7D31;
  text-decoration: underline;
}
.article-content a:hover {
  color: #F5A04A;
}
.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-content li {
  margin-bottom: 0.4rem;
  list-style: disc;
}
.article-content ol li {
  list-style: decimal;
}
.article-content blockquote {
  border-left: 4px solid #ED7D31;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #fdf8f4;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #666;
  font-style: italic;
}
.article-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.article-content code {
  background: #f0f0f0;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.88em;
}
.article-content pre code {
  background: none;
  padding: 0;
}

/* ---------- Article Footer ---------- */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}
.article-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-main {
    padding-top: 6rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-breadcrumb span {
    max-width: 180px;
  }
}
