/* ==========================================================
   INFOWORLD V2
   SIDEBAR.CSS
========================================================== */

/* ==========================================
   SIDEBAR
========================================== */

.sidebar{

    display:flex;

    flex-direction:column;

    gap:30px;

    position:sticky;

    top:120px;

}

/* ==========================================
   WIDGET
========================================== */

.sidebar-widget{

    background:#fff;

    border-radius:16px;

    box-shadow:var(--shadow-sm);

    overflow:hidden;

    transition:.3s;

}

.sidebar-widget:hover{

    box-shadow:var(--shadow);

}

/* ==========================================
   TITLE
========================================== */

.sidebar-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 22px;

    border-bottom:1px solid var(--border);

}

.sidebar-title h3{

    margin:0;

    font-size:1.05rem;

    font-weight:700;

}

.sidebar-title a{

    color:var(--primary);

    font-size:.85rem;

    font-weight:600;

}

/* ==========================================
   TRENDING
========================================== */

.trending{

    padding:20px;

}

.trending li{

    display:flex;

    gap:15px;

    margin-bottom:18px;

    align-items:flex-start;

}

.trending li:last-child{

    margin-bottom:0;

}

.trending-number{

    width:34px;

    height:34px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:700;

    flex-shrink:0;

}

.trending h4{

    font-size:.95rem;

    line-height:1.5;

    font-weight:600;

}

.trending a:hover{

    color:var(--primary);

}

/* ==========================================
   POPULAR
========================================== */

.popular{

    padding:20px;

}

.popular-item{

    display:flex;

    gap:14px;

    margin-bottom:18px;

}

.popular-item:last-child{

    margin-bottom:0;

}

.popular-item img{

    width:95px;

    height:70px;

    object-fit:cover;

    border-radius:8px;

}

.popular-item h4{

    font-size:.9rem;

    line-height:1.45;

}

/* ==========================================
   EDITOR
========================================== */

.editor{

    padding:20px;

}

.editor article{

    display:flex;

    gap:15px;

    margin-bottom:18px;

}

.editor article:last-child{

    margin-bottom:0;

}

.editor img{

    width:90px;

    height:70px;

    border-radius:8px;

    object-fit:cover;

}

.editor h4{

    font-size:.9rem;

    line-height:1.45;

}

/* ==========================================
   NEWSLETTER
========================================== */

.newsletter{

    padding:25px;

    text-align:center;

}

.newsletter p{

    margin:15px 0;

}

.newsletter input{

    width:100%;

    height:48px;

    padding:0 15px;

    border:1px solid var(--border);

    border-radius:10px;

    margin-bottom:15px;

}

.newsletter button{

    width:100%;

    height:48px;

    background:var(--primary);

    color:#fff;

    border-radius:10px;

    font-weight:600;

    transition:.3s;

}

.newsletter button:hover{

    background:var(--primary-dark);

}

/* ==========================================
   TAG CLOUD
========================================== */

.tag-cloud{

    padding:20px;

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.tag-cloud a{

    background:#f1f5f9;

    padding:8px 14px;

    border-radius:999px;

    font-size:.85rem;

    transition:.3s;

}

.tag-cloud a:hover{

    background:var(--primary);

    color:#fff;

}

/* ==========================================
   ADS
========================================== */

.sidebar-ads{

    background:#f8fafc;

    border:2px dashed var(--border);

    min-height:280px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:16px;

    color:var(--text-muted);

}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:1200px){

.sidebar{

position:static;

}

}

@media(max-width:768px){

.sidebar{

gap:20px;

}

.sidebar-widget{

border-radius:12px;

}

.trending li{

gap:12px;

}

.popular-item{

flex-direction:column;

}

.popular-item img{

width:100%;

height:180px;

}

.editor article{

flex-direction:column;

}

.editor img{

width:100%;

height:180px;

}

}