/* ======================================================
   YONGNENG VALVES - SIDEBAR CSS
   FILE: /assets/css/sidebar.css
====================================================== */

/* SIDEBAR */
.sidebar{
  display:flex;
  flex-direction:column;
  gap:25px;
  position:relative;
}

/* STICKY SIDEBAR */
.sidebar-sticky{
  position:sticky;
  top:90px;
}

/* WIDGET */
.widget{
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  border-radius:18px;
  padding:28px;
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  border:1px solid rgba(255,255,255,.4);
  transition:.3s;
}

/* HOVER */
.widget:hover{
  transform:translateY(-4px);
  box-shadow:0 6px 20px rgba(0,0,0,.12);
}

/* TITLE */
.widget h3{
  font-size:24px;
  color:#08111f;
  margin-bottom:22px;
  position:relative;
  padding-bottom:12px;
}

/* TITLE LINE */
.widget h3::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:60px;
  height:3px;
  background:#173962;
  border-radius:10px;
}

/* LIST */
.widget ul{
  list-style:none;
}

/* LIST ITEM */
.widget ul li{
  margin-bottom:16px;
  border-bottom:1px solid #edf1f6;
  padding-bottom:12px;
}

/* REMOVE LAST BORDER */
.widget ul li:last-child{
  margin-bottom:0;
  border-bottom:none;
  padding-bottom:0;
}

/* LINK */
.widget ul li a{
  color:#173962;
  font-size:15px;
  line-height:1.8;
  transition:.3s;
  display:block;
}

/* LINK HOVER */
.widget ul li a:hover{
  color:#08111f;
  transform:translateX(5px);
}

/* SEARCH FORM */
.search-form{
  display:flex;
  flex-direction:column;
}

/* SEARCH INPUT */
.widget input{
  width:100%;
  padding:15px;
  border:1px solid #d9e1eb;
  border-radius:12px;
  outline:none;
  margin-bottom:14px;
  font-size:15px;
  transition:.3s;
  background:white;
}

/* INPUT FOCUS */
.widget input:focus{
  border-color:#173962;
  box-shadow:0 0 0 3px rgba(23,57,98,.08);
}

/* BUTTON */
.widget button{
  width:100%;
  padding:15px;
  border:none;
  border-radius:12px;
  background:#08111f;
  color:white;
  font-size:15px;
  font-weight:bold;
  cursor:pointer;
  transition:.3s;
}

/* BUTTON HOVER */
.widget button:hover{
  background:#173962;
}

/* CATEGORY TAG */
.category-tag{
  display:inline-block;
  background:#eef3f8;
  color:#173962;
  padding:8px 14px;
  border-radius:30px;
  margin:5px;
  font-size:13px;
  transition:.3s;
}

/* CATEGORY HOVER */
.category-tag:hover{
  background:#173962;
  color:white;
}

/* TRENDING ITEM */
.trending-item{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}

/* TREND NUMBER */
.trend-number{
  min-width:36px;
  height:36px;
  background:#08111f;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-size:14px;
  font-weight:bold;
}

/* TREND TEXT */
.trending-item a{
  flex:1;
  color:#173962;
  line-height:1.7;
}

/* MINI ARTICLE */
.mini-post{
  display:flex;
  gap:14px;
  margin-bottom:18px;
}

/* MINI IMAGE */
.mini-post img{
  width:90px;
  height:70px;
  object-fit:cover;
  border-radius:10px;
}

/* MINI CONTENT */
.mini-content{
  flex:1;
}

/* MINI TITLE */
.mini-content a{
  color:#08111f;
  font-size:14px;
  line-height:1.6;
  font-weight:bold;
}

/* MINI META */
.mini-meta{
  font-size:12px;
  color:#777;
  margin-top:6px;
}

/* TAG CLOUD */
.tag-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* TAG */
.tag-cloud a{
  background:#eef3f8;
  color:#173962;
  padding:10px 14px;
  border-radius:30px;
  font-size:13px;
  transition:.3s;
}

/* TAG HOVER */
.tag-cloud a:hover{
  background:#173962;
  color:white;
}

/* SOCIAL */
.social-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* SOCIAL BUTTON */
.social-links a{
  flex:1;
  text-align:center;
  padding:12px;
  border-radius:10px;
  background:#08111f;
  color:white;
  font-size:14px;
  transition:.3s;
}

/* SOCIAL HOVER */
.social-links a:hover{
  background:#173962;
}

/* NEWSLETTER */
.newsletter-text{
  font-size:15px;
  color:#555;
  margin-bottom:18px;
  line-height:1.8;
}

/* SCROLL EFFECT */
.widget{
  animation:fadeWidget .6s ease;
}

/* ANIMATION */
@keyframes fadeWidget{

  from{
    opacity:0;
    transform:translateY(15px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }

}

/* MOBILE */
@media(max-width:992px){

  .sidebar{
    margin-top:10px;
  }

  .sidebar-sticky{
    position:relative;
    top:auto;
  }

}

@media(max-width:768px){

  .widget{
    padding:24px;
  }

  .widget h3{
    font-size:22px;
  }

  .mini-post{
    flex-direction:column;
  }

  .mini-post img{
    width:100%;
    height:180px;
  }

}

@media(max-width:480px){

  .widget{
    padding:20px;
  }

  .widget h3{
    font-size:20px;
  }

  .widget input,
  .widget button{
    padding:13px;
  }

/* WIDGET ANIMATION */
.widget{
  opacity:0;
  transform:translateY(20px);
  transition:.6s ease;
}

.widget.show-widget{
  opacity:1;
  transform:translateY(0);
}

}