/* Blog Page Styles */
.blog-page {
  background-color: #f8f9fa;
}

/* === Blog Hero === */
.blog-hero {
  background: #070b14;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #070b14 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.blog-hero h1 {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.text-gradient-primary {
  background: linear-gradient(to right, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.blog-hero p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.blog-hero .glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
  filter: blur(100px);
  top: -200px;
  right: -100px;
  z-index: 1;
}

/* === Blog Card === */
.blog-card {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .card-img-top {
  transform: scale(1.1);
}

.blog-card .category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.blog-card .card-body {
  padding: 25px;
}

.blog-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 15px;
}

.blog-card .card-text {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-card .card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* === Blog Detail === */
.post-content-wrap {
  margin-top: 40px;
  /* Khoảng cách rõ ràng với Hero */
}

.blog-detail-content {
  background: #ffffff;
  border-radius: 30px;
  padding: 20px;
  /* Giữ 20px theo đúng yêu cầu */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.breadcrumb-item a,
.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.9rem;
}

.breadcrumb-item.active {
  color: #ffffff !important;
}

.blog-article h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 25px;
}

.blog-article .post-meta {
  display: flex;
  gap: 20px;
  color: #64748b;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.blog-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
}

.blog-body h2,
.blog-body h3 {
  font-weight: 700;
  color: #0f172a;
  margin-top: 40px;
  margin-bottom: 20px;
}

.blog-body img {
  border-radius: 20px;
  margin: 30px 0;
  width: 100%;
}

.blog-sidebar .sidebar-widget {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.sidebar-widget .widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f5f9;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  padding: 6px 14px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 100px;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.tag-cloud a:hover {
  background: #3b82f6;
  color: #ffffff;
}

@media (max-width: 768px) {
  .blog-detail-content {
    padding: 25px;
    margin-top: -40px;
  }

  .blog-article h1 {
    font-size: 1.8rem;
  }
}