
/* ===== Blog Cards ===== */
.blog-card {
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.blog-card img {
  width: 100%;
  height: 300px;
  object-fit: fill;
  border-radius: 10px;
  margin-bottom: 15px;
}

.blog-card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.blog-card-text {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 15px;
}

.read-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  color: #ffffff;
  font-weight: bold;
  transition: all 0.3s ease;
}
.read-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Sidebar ===== */
.sidebar {
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.sidebar h5 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin-bottom: 0.75rem;
  color: #e3e5f7;
}

.sidebar > div + div {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}

#recent-posts a,
#social-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 10px;
  color: #f7f7f7;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 0.3s ease, border 0.3s ease, transform 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

#recent-posts a::after,
#social-links a::after {
  content: ">";
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#recent-posts a:hover,
#social-links a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateX(4px);
}

#recent-posts a:hover::after,
#social-links a:hover::after {
  opacity: 0.8;
  transform: translateX(0);
}

/* ===== Pagination ===== */
.pagination .page-item .page-link {
  color: #f0f0f0;
  background-color: #1e1e1e;
  border: 1px solid #333;
  margin: 0 3px;
  padding: 8px 15px;
  transition: all 0.3s ease;
}
.pagination .page-item.active .page-link {
  color: #fff;
  border: none;
}
.pagination .page-item .page-link:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}


/* ===== Responsive ===== */
@media (max-width: 576px) {
  .blog-card img { height: 180px; }
}

@media (max-width: 900px) {
  .blog-card img { height: 280px; }
}
