.sidebar {
  background-color: #fff;
  border-radius: 10px;
  padding: 0 15px 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  align-self: flex-start;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #343a40, #343a40);
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.sidebar-header i {
  font-size: 1.2rem;
  color: #ffc107;
}
.sidebar-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.latest-articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.latest-article {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.latest-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.latest-article > a {
  display: flex;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.latest-article > a:hover {
  text-decoration: none;
}

.latest-article .latest-article-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background-color: #e9ecef;
}

.latest-article-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.latest-article-title {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
  color: #222;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media screen and (max-width: 768px) {
  .sidebar .latest-articles-list .latest-article > a {
    flex-direction: column;
    align-items: stretch;
  }
  .sidebar .latest-articles-list .latest-article .latest-article-image {
    width: 100%;
    height: 200px;
    border-radius: 0;
  }
  .sidebar .latest-articles-list .latest-article .latest-article-content {
    display: block;
    padding: 10px 14px;
    gap: 8px;
  }
  .sidebar .latest-articles-list .latest-article .latest-article-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #222;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }
}

.github-card {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.github-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.github-card a {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.github-card a:hover {
  text-decoration: none;
}

.github-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background-color: #e9ecef;
}

.github-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.github-username {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: #222;
}

.github-desc {
  font-size: 0.85rem;
  margin: 0;
  color: #555;
  line-height: 1.3;
}

@media screen and (max-width: 768px) {
  .github-avatar {
    width: 50px;
    height: 50px;
  }
  .github-username {
    font-size: 0.95rem;
  }
  .github-desc {
    font-size: 0.8rem;
  }
}
