.sticky-sidebar {
  position: sticky;
  top: 20px;
  align-self: flex-start;
  font-family: "Cambria", "Georgia", serif;
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Sarlavha */
.sticky-sidebar h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #1a1a1a;
  border-left: 4px solid #007bff;
  padding-left: 10px;
  font-weight: 600;
}

/* Yangiliklar ro‘yxati */
.sidebar-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-news li {
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.sidebar-news li:last-child {
  margin-bottom: 0;
}

.sidebar-news a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-news a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Rasm */
.sidebar-news img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: transform 0.4s ease;
}

.sidebar-news a:hover img {
  transform: scale(1.05);
}

/* Sarlavha matni */
.sidebar-news div div {
  padding: 10px 12px 14px 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #222;
}

/* Mobil qurilmalar uchun */
@media (max-width: 992px) {
  .sticky-sidebar {
    position: static;
    width: 100% !important;
    margin-left: 0;
    box-shadow: none;
    padding: 10px 0;
  }

  .sidebar-news a {
    border-radius: 10px;
  }

  .sidebar-news img {
    height: 160px;
  }

  .sticky-sidebar h3 {
    text-align: center;
    border-left: none;
    border-bottom: 2px solid #007bff;
    padding-left: 0;
    display: inline-block;
    margin: 0 auto 18px;
  }
}
