.blog-page {
  padding: calc(76px + 40px + 1.5rem) 1rem 2.5rem;
  background: #f4f5f7;
  min-height: 70vh;
  font-family: 'DM Sans', sans-serif;
  color: #17181c;
  overflow-x: hidden;
  max-width: 100%;
}
.blog-shell {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}
.blog-main-col { min-width: 0; max-width: 100%; }
.blog-hero {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.05);
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #F97316;
}
.blog-hero .section-pretitle {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F97316;
  margin-bottom: 0.35rem;
}
.blog-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #17181c;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}
.blog-hero p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 560px;
}
.blog-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #9ca3af;
}
.blog-crumb a { color: #F97316; text-decoration: none; }
.blog-crumb a:hover { text-decoration: underline; }
.blog-crumb span { color: #d1d5db; }

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}
@media (max-width: 992px) {
  .blog-layout { grid-template-columns: 1fr; }
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) {
  .home-blog-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 1.45rem; }
}

.home-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e9eaee;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-blog-card:hover {
  transform: translateY(-3px);
  border-color: #F97316;
  box-shadow: 0 10px 22px rgba(17, 18, 22, 0.07);
}
.home-blog-card-img {
  height: 180px;
  background: #fff1e3;
  overflow: hidden;
  flex-shrink: 0;
}
.home-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.home-blog-card:hover .home-blog-card-img img { transform: scale(1.04); }
.home-blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F97316;
  opacity: 0.45;
  font-size: 2.1rem;
}
.home-blog-card-body {
  padding: 1.2rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.home-blog-card-date {
  font-size: 0.76rem;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.home-blog-card-date i { color: #F97316; }
.home-blog-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #17181c;
  line-height: 1.4;
  margin: 0 0 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-blog-card:hover h3 { color: #F97316; }
.home-blog-card-excerpt {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.home-blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  background: #F97316;
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.55rem 1rem;
  border-radius: 10px;
}

.blog-empty {
  background: #fff;
  border: 1px solid #e9eaee;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #6b7280;
  font-weight: 600;
}

.blog-pagination { margin-top: 1.25rem; }
.blog-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-pagination .page-item .page-link,
.blog-pagination .pagination > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 10px;
  border: 1px solid #e8eaee;
  background: #fff;
  color: #17181c;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}
.blog-pagination .page-item.active .page-link,
.blog-pagination .pagination > li.active > a {
  background: #F97316;
  border-color: #F97316;
  color: #fff;
}

.blog-sidebar {
  background: #fff;
  border: 1px solid #e9eaee;
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  position: sticky;
  top: calc(76px + 40px + 1rem);
}
.blog-sidebar h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #17181c;
  margin: 0 0 0.85rem;
}
.blog-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.blog-side-list a {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.blog-side-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff1e3;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F97316;
  font-size: 1.1rem;
}
.blog-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-side-list h6 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #17181c;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-side-list a:hover h6 { color: #F97316; }

.blog-article {
  background: #fff;
  border: 1px solid #e9eaee;
  border-radius: 16px;
  overflow: hidden;
}
.blog-article-cover {
  height: 280px;
  background: #fff1e3;
  overflow: hidden;
}
.blog-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-article-cover-ph {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F97316;
  opacity: 0.4;
  font-size: 3rem;
}
.blog-article-body { padding: 1.5rem 1.6rem 2rem; }
.blog-article-body h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #17181c;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.3;
}
.blog-article-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.blog-article-content img,
.blog-article-content iframe,
.blog-article-content table,
.blog-article-content pre {
  max-width: 100%;
  height: auto;
}
.blog-article-content img { border-radius: 12px; }
.blog-article-content table { display: block; overflow-x: auto; }
.blog-article-content p { margin: 0 0 1rem; }
.blog-article-content h2,
.blog-article-content h3 {
  color: #17181c;
  font-weight: 800;
  margin: 1.5rem 0 0.75rem;
}
@media (max-width: 720px) {
  .blog-article-cover { height: 180px; }
  .blog-article-body h1 { font-size: 1.35rem; }
}
