/* === Layout === */
.blog-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.blog-main {
  flex: 3;
}

.blog-sidebar {
  flex: 1;
  background-color: #f4f4f4;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 120px;
  height: fit-content;
}

/* === Posts === */
.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.post-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-content {
  padding: 1.2rem;
}

.post-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2a2a2a;
}

.post-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.read-more {
  display: inline-block;
  background: #2a6db0;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.read-more:hover {
  background: #1e5a95;
}

/* === Sidebar === */
.blog-sidebar h3 {
  margin-top: 1rem;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: #2a2a2a;
}

.category-list,
.recent-posts {
  list-style: none;
  padding-left: 0;
}

.category-list li,
.recent-posts li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

.category-list li::before {
  content: "• ";
  color: #2a6db0;
}

/* === Responsive === */
@media (max-width: 900px) {
  .blog-layout {
    flex-direction: column;
  }

  .post-list {
    grid-template-columns: 1fr;
  }
}
.recent-rotating {
  font-size: 0.95rem;
  color: #333;
  min-height: 24px;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}

.recent-rotating.fade-out {
  opacity: 0;
}
