:root {
  --text: #212529;
  --muted: #6c757d;
  --soft: #f8f9fa;
}
.blog-single {
  color: var(--text);
  background: #fff;
}
.container-narrow {
  max-width: 1080px;
}
.category {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0d6efd;
  background: #e7f1ff;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  font-weight: 600;
}
.post-title {
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.75rem;
}
.blog-single .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.meta .dot {
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
  display: inline-block;
}
.hero-img {
  border-radius: 1rem;
  object-fit: cover;
  width: 100%;
  height: 440px;
}

/* Post content */
.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
}
.post-content img {
  border-radius: 0.75rem;
}
.post-content h2,
.post-content h3 {
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.post-content blockquote {
  border-left: 4px solid #0d6efd;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #495057;
}

/* Tags + Share */
.tags a {
  background: var(--soft);
  color: #0d6efd;
  padding: 0.4rem 0.7rem;
  border-radius: 0.6rem;
  font-weight: 600;
  text-decoration: none;
}
.share a {
  color: var(--muted);
  text-decoration: none;
}
.share a:hover {
  color: #0d6efd;
}

/* Author */
.author-box {
  background: var(--soft);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

/* Related */
.related .card {
  border: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
}
.related .card-img-top {
  height: 180px;
  object-fit: cover;
}

/* Comments */
.comment {
  display: flex;
  gap: 1rem;
}
.comment + .comment {
  margin-top: 1.25rem;
}
.comment .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.comment .name {
  font-weight: 700;
}
.comment .meta {
  font-size: 0.9rem;
  color: var(--muted);
  gap: 0.5rem;
}
.comment .body {
  margin-top: 0.25rem;
}
.replies {
  border-left: 2px solid var(--soft);
  margin-left: 2.5rem;
  padding-left: 1.25rem;
  margin-top: 1rem;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
}
.post-nav a {
  color: #0d6efd;
  font-weight: 500;
  transition: 0.2s;
}
.post-nav a:hover {
  text-decoration: underline;
  color: #0a58ca;
}

/* Sidebar */
.sidebar .widget .card-header {
  font-size: 1rem;
  letter-spacing: 0.5px;
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 0.8rem 1.25rem;
  background: #4d3d4e;
  color: #fff;
}

.sidebar .mini-post:hover a {
  color: #0d6efd;
}

.sidebar .mini-post img {
  transition: all 0.2s ease;
}

.sidebar .mini-post:hover img {
  transform: scale(1.05);
}

.sidebar .category-item + .category-item {
  margin-top: 0.25rem; /* subtle spacing instead of dotted border */
}

.sidebar .category-link {
  text-decoration: none;
  color: #212529;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.sidebar .category-link:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
  padding-left: 1.1rem; /* slight move effect */
}

.sidebar .badge {
  transition: all 0.2s ease;
}

.sidebar .tags-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar .tag-badge {
  background-color: #f1f3f5;
  color: #495057;
  padding: 0.35em 0.75em;
  border-radius: 5px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar .tag-badge:hover {
  background-color: #0d6efd;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar .archive-item + .archive-item {
  margin-top: 0.25rem; /* subtle spacing instead of dots */
}

.sidebar .archive-link {
  text-decoration: none;
  color: #212529;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: block;
}

.sidebar .archive-link:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
  padding-left: 1.1rem; /* slight movement effect */
}

.blog {
  background: #f8f9fa;
  font-family: Arial, sans-serif;
  color: #333;
}

.kp-text {
  color: #343f52;
}
.kp-text:hover {
  color: #3f78e0;
}
.kp-text-light {
  color: #adb5bd;
}
.kp-text-light:hover {
  color: #3f78e0;
}

/* hero */
.hero {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../listing/images/slider.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for contrast */
  z-index: 1;
}

.hero h1,
.hero p {
  color: #fff;
  margin: 0;
}

/* View toggle */
.view-toggle {
  text-align: right;
  /*margin-bottom: 30px;*/
}
.view-toggle button {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6c757d;
  margin-left: 12px;
  cursor: pointer;
  transition: color 0.3s;
}
.view-toggle button.active,
.view-toggle button:hover {
  color: #0d6efd;
}

/* Post card */
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.post-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.blog .post-content {
  padding: 24px;
  flex: 1;
}
.blog .post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.2;
}
.blog .post-content p.excerpt {
  color: #6c757d;
  font-size: 0.95rem;
  flex: 1;
}
.blog .post-content p.meta {
  font-size: 0.875rem;
  color: #adb5bd;
  margin: 12px 0;
}

/* List mode override */
.list-view .post-card {
  flex-direction: row;
  height: auto;
}
.list-view .post-card img {
  width: 280px;
  height: auto;
  object-fit: cover;
}
.list-view .post-content {
  padding: 24px;
}
.breadcrumb {
  background: transparent;
  font-size: 0.9rem;
}

.breadcrumb a {
  text-decoration: none;
}
