/* =========================================================================
   BLOG & SIDEBAR LAYOUT
   ========================================================================= */

.blog-single-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  margin-top: 40px;
}

.blog-post-content {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.blog-post-content h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.blog-meta span i {
  color: var(--primary-color);
  margin-right: 8px;
}

.blog-hero-image {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
  box-shadow: var(--shadow-soft);
}

.blog-body {
  line-height: 1.8;
  color: var(--text-dark);
}

.blog-body h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--text-dark);
}

.blog-body h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: var(--text-dark);
}

.blog-body p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.blog-body ul,
.blog-body ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.blog-body li {
  margin-bottom: 12px;
  position: relative;
  list-style: disc;
}

.blog-inline-image {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  margin: 30px 0;
  box-shadow: var(--shadow-soft);
}

.blog-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  color: white;
  padding: 40px;
  border-radius: var(--radius-md);
  margin-top: 50px;
  text-align: center;
}

.blog-cta h2 {
  color: white;
  margin-bottom: 15px;
}

.blog-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* SIDEBAR */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post-item {
  display: flex;
  gap: 15px;
  align-items: center;
  transition: transform var(--transition-speed);
}

.recent-post-item:hover {
  transform: translateX(5px);
}

.recent-post-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xs);
  object-fit: cover;
}

.recent-post-info h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.recent-post-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .blog-single-container {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .blog-post-content {
    padding: 25px;
  }

  .blog-post-content h1 {
    font-size: 2rem;
  }
}
