/*
Theme Name: AtomicRoute Blog Child
Theme URI: https://atomicroute.com/blog
Description: Child theme of "AtomicRoute Blog". Use this for all future customizations so the parent theme stays untouched and safe to reuse/update.
Author: AtomicRoute
Template: customblog
Version: 1.0.0
Text Domain: atomicroute-child
*/

/* Add custom CSS overrides below this line.
   These load AFTER the parent theme's full stylesheet,
   so anything written here overrides it automatically. */

/* Blog details page — two column layout with sidebar */
.single-layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.single-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-size: 18px;
  margin: 0 0 16px;
}

.recent-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-posts-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.recent-posts-list li:last-child {
  border-bottom: none;
}

.recent-posts-list a {
  display: block;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 4px;
  color: #851515;
}

.recent-post-date {
  font-size: 13px;
  color: #6b7280;
}

.post-nav .post-nav-label {
  display: block;
  font-size: var(--font-size-caption-sm);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-light);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: var(--font-size-button);
  font-weight: 500;
  border-radius: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.post-nav-next,
.post-nav-prev {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .single-layout-grid {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    position: static;
  }
}