/**
 * Blog Archive Styles
 * Styles for the blog archive sidebar widget to match legacy site design
 */

/* Blog archive sidebar widget */
.blog-archive-widget {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 30px;
}

.blog-archive-widget h3 {
  background: #253980;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  padding: 12px 15px;
  text-transform: uppercase;
  font-family: clearsans-medium, Arial, sans-serif;
  border-radius: 4px 4px 0 0;
}

/* Blog archive list styling */
.blog-archive-content {
  padding: 0;
  margin: 0;
}

.blog-archive-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-archive-content li {
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-archive-content li:last-child {
  border-bottom: none;
}

.blog-archive-content li:hover {
  background-color: #f0f0f0;
}

.blog-archive-content a {
  color: #253980;
  text-decoration: none;
  font-size: 14px;
  font-family: ClearSans-Regular, Arial, sans-serif;
  transition: color 0.3s ease;
  flex: 1;
}

.blog-archive-content a:hover {
  color: #fb6100;
  text-decoration: underline;
}

/* Post count styling */
.blog-archive-count {
  background: #e3e3e3;
  border-radius: 12px;
  color: #666;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  min-width: 20px;
  text-align: center;
  display: inline-block;
  font-family: ClearSans-Medium, Arial, sans-serif;
  margin-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-archive-content li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .blog-archive-count {
    margin-left: 0;
    align-self: flex-end;
  }
}

/* Integration with existing sidebar styles */
.right-sidebar .blog-archive-widget {
  width: 100%;
}

/* Make sure it fits well with other sidebar blocks */
.right-sidebar .blog-archive-widget + .blog-categories-widget,
.right-sidebar .blog-categories-widget + .blog-archive-widget {
  margin-top: 20px;
}
