/*
 * KSP Blog Custom Styling - Modern Premium Look
 */

/* General Wrapper Styles */
.ksp-blog-wrapper {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #2b3a4a;
  background-color: #fcfdfe;
}

/* Breadcrumbs Styling */
.blog-breadcrumbs {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0;
}
.blog-breadcrumbs .breadcrumb-item a {
  color: #475569;
  font-weight: 500;
  transition: color 0.2s ease;
}
.blog-breadcrumbs .breadcrumb-item a:hover {
  color: #0f172a;
}

/* Featured Hero Section */
.blog-featured-hero {
  position: relative;
  background: #0f172a;
  overflow: hidden;
  border-bottom: 5px solid #0284c7;
}
.featured-hero-bg {
  height: 520px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  transition: transform 8s ease-in-out;
}
.carousel-item:hover .featured-hero-bg {
  transform: scale(1.05);
}
.blog-featured-hero .carousel-caption {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.95) 100%);
  width: 100%;
}
.featured-title {
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.25;
}
.featured-meta span {
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Blog Teaser Card */
.blog-post-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  border: 1px solid #e2e8f0 !important;
}
.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}
.blog-card-img-wrapper {
  height: 220px;
  background: #f1f5f9;
  overflow: hidden;
}
.blog-card-img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-post-card:hover .blog-card-img {
  transform: scale(1.06);
}
.blog-card-category-badge {
  top: 15px;
  left: 15px;
  background-color: rgba(2, 132, 199, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease;
}
.blog-card-category-badge:hover {
  background-color: #0284c7;
  color: #fff;
}
.blog-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.blog-card-title a:hover {
  color: #0284c7 !important;
}
.blog-read-more {
  color: #0284c7;
  font-weight: 700;
  transition: color 0.2s ease;
}
.blog-read-more:hover {
  color: #0369a1;
}

/* Fallback Hero */
.blog-fallback-hero {
  background: radial-gradient(circle at 10% 20%, rgb(50, 172, 109) 0%, rgb(209, 251, 155) 100%);
  border-radius: 0;
}

/* Sidebar Widgets */
.blog-sidebar-card {
  border-radius: 12px;
  border: 1px solid #e2e8f0 !important;
}
.blog-heading-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: #0284c7;
  border-radius: 2px;
}

/* Blog Post Detail Page */
.blog-detail-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0 !important;
}
.blog-detail-img-wrapper {
  max-height: 480px;
  overflow: hidden;
}
.blog-detail-img-wrapper img {
  width: 100%;
  object-fit: cover;
}
.blog-detail-category-badge {
  bottom: 20px;
  left: 20px;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.blog-detail-title {
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.blog-detail-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
}
.blog-detail-body p {
  margin-bottom: 1.5rem;
}

/* Social Share Bar */
.btn-facebook { background-color: #1877f2; }
.btn-twitter { background-color: #1da1f2; }
.btn-linkedin { background-color: #0077b5; }
.btn-whatsapp { background-color: #25d366; }
.blog-social-share-bar .btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Author Avatar Placeholders */
.author-avatar-big {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #3b82f6 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.author-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blog Comments Card */
.blog-comment-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px;
  overflow: hidden;
}

/* Popular list styling */
.popular-post-item {
  transition: transform 0.2s ease;
}
.popular-post-item:hover {
  transform: translateX(4px);
}
.popular-num {
  font-size: 1.5rem;
  color: #cbd5e1;
  line-height: 1;
}

/* Helper Utilities */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.opacity-10 { opacity: 0.1; }
.hover-primary {
  transition: color 0.2s ease;
}
.hover-primary:hover {
  color: #0284c7 !important;
}
