/* ==========================================
   Blog Module Styles
========================================== */

/* Sidebar Widgets */
.blog-sidebar-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.blog-widget-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

.blog-widget-title .title-dot {
  width: 6px;
  height: 6px;
  background-color: #3b82f6;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
}

.blog-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  color: #475569;
  font-size: 14px;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.blog-category-link:hover {
  color: #3b82f6;
}

.blog-category-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 6px;
}

.blog-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-decoration: none !important;
}

.blog-recent-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-recent-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-recent-item:hover .blog-recent-title {
  color: #3b82f6;
}

.blog-tag-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.2s ease;
}

.blog-tag-pill:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

/* Parent Index Blog Grid Cards */
.blog-grid-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.blog-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #f1f5f9;
}

.blog-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-grid-card:hover .blog-card-thumb-wrap img {
  transform: scale(1.04);
}

.blog-card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 2;
}

.badge-bg-blue { background-color: #3b82f6; }
.badge-bg-orange { background-color: #f59e0b; }
.badge-bg-green { background-color: #10b981; }
.badge-bg-purple { background-color: #8b5cf6; }
.badge-bg-indigo { background-color: #6366f1; }

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.blog-card-meta i {
  font-size: 13px;
  margin-right: 4px;
}

.blog-card-heading {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none !important;
}

.blog-card-heading:hover {
  color: #3b82f6;
}

.blog-card-excerpt {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.blog-read-more {
  color: #3b82f6;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-read-more:hover {
  color: #2563eb;
}

.blog-read-time {
  font-size: 12px;
  color: #94a3b8;
}

/* Pagination */
.blog-page .pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.blog-page .page-item .page-link {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.blog-page .page-item.active .page-link {
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* Blog Details / Show Page Styles */
.blog-details-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 30px;
}

.blog-details-cat-pill {
  background-color: #eef2ff;
  color: #3b82f6;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.blog-details-meta {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.blog-details-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-top: 16px;
  margin-bottom: 24px;
}

.blog-details-hero-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  border-radius: 16px;
  overflow: hidden;
}

.blog-details-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.blog-details-content {
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.blog-details-content p {
  margin-bottom: 20px;
}

.blog-details-content h1,
.blog-details-content h2,
.blog-details-content h3,
.blog-details-content h4 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.blog-details-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

.blog-details-share-box {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 32px;
}

.blog-tag-pill-sm {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.blog-tag-pill-sm:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

.blog-share-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.blog-share-icon-btn:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}
