/* Layout container */
.blog-layout {
  display: flex;
  gap: 40px;
  margin-top: 120px;
}

/* Sidebar */


.blog-sidebar {
  width: 280px;
  flex-shrink: 0;

  position: sticky;
  top: 90px; /* distance from the top before sticking */
  height: fit-content;
}


.sidebar-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.sidebar-categories {
padding-left: 0;
}

.sidebar-categories li {
  list-style: none;
  margin: 8px 0;
  padding: 6px 10px;
}

.sidebar-categories a {
  text-decoration: none;
  color: #333;
}

/* Grid layout */
.blog-grid {
  flex: 1;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

/* Blog card */
.blog-card {
  border: 1px solid #eee;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blog-card__link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.blog-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-card__title {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 15px;
}

.blog-card__excerpt {
  margin: 0 15px 20px;
  line-height: 1.5;
  color: #666;
}

/* Category link hover styles */
.sidebar-categories a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.sidebar-categories a:hover {
  color: #0073aa; /* WP blue (or pick another) */
  text-decoration: underline;
  text-decoration-color: #0073aa;
}

/* Active category styling */
.sidebar-categories .current-cat {
  display: block;
  background: #f0f6ff;      /* light blue background */
  color: #0073aa;           /* WP blue text */
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Hover still works on active cat */
.sidebar-categories .current-cat:hover {
  color: #005177;
  text-decoration: underline;
}

.blog-post {
    display: flex;
    gap: 40px;
    max-width: 650px;
}

.blog-post .content-area {
    flex: 1;
}

.blog-post .sidebar-area {
    width: 300px;
}

.post-title {
    margin-bottom: 10px;
}

.post-meta {
    color: #777;
    margin-bottom: 20px;
    font-size: 14px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 6px;
}

.post-content {
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.share-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.share-this {
  font-weight: bold;
  margin: 0;
  color: #333;
  font-size: 1rem;
}

.share-link svg {
  transition: transform 0.2s ease, fill 0.2s ease;
}

.share-link:hover svg path {
  fill: #0073aa; /* WP blue or change to your brand */
}

.share-link:hover svg {
  transform: translateY(-2px);
}


