.latest-questions-list {
  padding-left: 0.5rem;
  border-left: 4px solid #007bff;
}
body.night-mode .latest-questions-list {
  border-left: 4px solid #66b3ff;
}

.latest-item {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border-radius: 6px;
  background: #f8faff;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}
body.night-mode .latest-item {
  background: #1c1f22;
}
.latest-item:hover {
  background: #eef6ff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.05);
}
body.night-mode .latest-item:hover {
  background: #23272b;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.1);
}

.latest-link {
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  text-decoration: none;
}
body.night-mode .latest-link {
  color: #f1f1f1;
}
.latest-link:hover {
  color: #007bff;
  text-decoration: underline;
}
body.night-mode .latest-link:hover {
  color: #66b3ff;
}

.related-links-list {
  border-left: 4px solid #ff7e00;
  padding-left: 1rem;
  margin-top: 1rem;
}
body.night-mode .related-links-list {
  border-left: 4px solid #ffae42;
}

.related-item {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #fdf8f2;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}
body.night-mode .related-item {
  background: #25282c;
}
.related-item:hover {
  background: #fffaf3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
body.night-mode .related-item:hover {
  background: #2c3035;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.related-link {
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  text-decoration: none;
}
body.night-mode .related-link {
  color: #f1f1f1;
}
.related-link:hover {
  color: #ff7e00;
  text-decoration: underline;
}
body.night-mode .related-link:hover {
  color: #ffae42;
}

.category-tile:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}
body.night-mode .category-tile:hover {
  background-color: #2a2d31;
}

.vote-btn {
  min-width: 100px;
}
body.night-mode .vote-btn {
  background: #212529;
  color: #f1f1f1;
}

.img-thumb {
  height: 100px;
  object-fit: cover;
  width: 100%;
}
body.night-mode .img-thumb {
  opacity: 0.95;
}

.card-img-top {
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}
body.night-mode .card-img-top {
  border-bottom: 1px solid #444;
}

.card-body {
  padding: 1rem;
}
body.night-mode .card-body {
  background: #1a1d20;
}

.card-title {
  font-size: 1rem;
}
body.night-mode .card-title {
  color: #f8f9fa;
}

.card-text {
  font-size: 0.875rem;
}
body.night-mode .card-text {
  color: #ced4da;
}
