/* ==========================================
   DESIGN SYSTEM VARIABLES (fallback definitions)
   ========================================== */
:root {
  --color-primary: #055346;      /* Deep forest green/teal */
  --color-primary-hover: #0c4839;
  --color-accent: #F6B69E;       /* Terracotta/coral */
  --color-accent-hover: #d77e5d;
  --color-text-dark: #111827;    /* Slate black for names/titles */
  --color-text-gray: #4b5563;    /* Cool gray */
  --color-border: #e2e8f0;       /* Very light gray */
  --color-bg-card: #ffffff;      /* Pure white for card body */
  --color-bg-light: #f9fafb;     /* Very light gray */
  
  --font-headers: "Saira", sans-serif;
  --font-body: "Poppins", sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.single-blog-main {
  max-width: 1200px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

/* Breadcrumbs */
.blog-breadcrumbs {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-gray);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.blog-breadcrumbs a:hover {
  text-decoration: underline;
}

.blog-breadcrumbs .sep {
  color: #9ca3af;
}

.blog-breadcrumbs .current {
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Blog Header Meta */
.blog-header-meta {
  margin-bottom: 24px;
}

.blog-post-title {
  font-family: var(--font-headers);
  font-size: 42px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.blog-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-gray);
}

.blog-meta-line span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-meta-line .meta-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
}

/* Hero Image Banner */
.blog-hero-image {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 40px;
}

.blog-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Layout Grid */
.blog-details-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Left Column: Post Content */
.blog-details-content {
  display: flex;
  flex-direction: column;
}

.blog-details-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-gray);
  margin-bottom: 40px;
}

.blog-details-body h2 {
  font-family: var(--font-headers);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: 30px;
  margin-bottom: 16px;
}

.blog-details-body h3 {
  font-family: var(--font-headers);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: 24px;
  margin-bottom: 12px;
}

.blog-details-body p {
  margin-bottom: 20px;
}

.blog-details-body ul, .blog-details-body ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.blog-details-body li {
  margin-bottom: 8px;
}

/* Social Share Block */
.blog-share-box {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.blog-share-title {
  font-family: var(--font-headers);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-share-links {
  display: flex;
  gap: 12px;
}

.blog-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: var(--transition-fast);
  text-decoration: none;
}

.blog-share-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.blog-share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Right Column: Sidebar */
.blog-details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 100px;
}

/* Sidebar Box base style */
.sidebar-widget {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-subtle);
}

.widget-title {
  font-family: var(--font-headers);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

/* Author Bio Widget */
.author-widget-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  margin-bottom: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-name {
  font-family: var(--font-headers);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.author-title {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-accent-hover);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-gray);
  margin-bottom: 0;
}

/* Recent Posts Widget */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post-item {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
}

.recent-post-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-subtle);
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.recent-post-item:hover .recent-post-thumb img {
  transform: scale(1.08);
}

.recent-post-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-post-item-title {
  font-family: var(--font-headers);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin: 0;
  transition: var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-item:hover .recent-post-item-title {
  color: var(--color-primary);
}

.recent-post-item-date {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-gray);
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 991px) {
  .blog-details-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .blog-details-sidebar {
    position: static;
  }
  
  .blog-hero-image {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .single-blog-main {
    margin-top: 20px;
    margin-bottom: 50px;
  }
  
  .blog-post-title {
    font-size: 32px;
  }
  
  .blog-hero-image {
    height: 240px;
    margin-bottom: 30px;
  }
}
