/*******************************************************************************
  File Name: root/assets/css/sidebar.css
  Purpose:   Right Sidebar
*******************************************************************************/

/* =====================================================
   SIDEBAR
===================================================== */

.blog-sidebar {

    position: sticky;

    top: 90px;

}

/* =====================================================
   SIDEBAR CARD
===================================================== */

.blog-sidebar .card {

    border: 1px solid #ececec;

    background: #ffffff;

    margin-bottom: 30px;

    transition: all .25s ease;

}

.blog-sidebar .card:hover {

    box-shadow: 0 10px 25px rgba(0,0,0,.08);

}

/* =====================================================
   CARD TITLE
===================================================== */

.blog-sidebar .card h4 {

    margin-bottom: 20px;

    font-size: 24px;

    font-weight: 700;

    color: #111827;

}

/* =====================================================
   CATEGORY LIST
===================================================== */

.blog-sidebar .list-group {

    margin: 0;

    padding: 0;

}

.blog-sidebar .list-group-item {

    padding: 12px 0;

    border: 0;

    border-bottom: 1px solid #f2f2f2;

    background: transparent;

}

.blog-sidebar .list-group-item:last-child {

    border-bottom: 0;

}

.blog-sidebar .list-group-item a {

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #495057;

    text-decoration: none;

    transition: all .25s ease;

}

.blog-sidebar .list-group-item a:hover {

    color: #0d6efd;

    padding-left: 5px;

}

/* =====================================================
   CATEGORY BADGE
===================================================== */

.blog-sidebar .badge {

    min-width: 36px;

    background: #f8f9fa;

    color: #495057;

    font-weight: 600;

}

/* =====================================================
   POST LIST
===================================================== */

.blog-sidebar .list-unstyled {

    margin: 0;

    padding: 0;

}

.blog-sidebar .list-unstyled li {

    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 18px;

}

.blog-sidebar .list-unstyled li:last-child {

    margin-bottom: 0;

}

/* =====================================================
   POST IMAGE
===================================================== */

.blog-sidebar .list-unstyled img {

    width: 80px;

    height: 80px;

    object-fit: cover;

    flex-shrink: 0;

    border: 1px solid #ececec;

}

/* =====================================================
   POST TITLE
===================================================== */

.blog-sidebar .list-unstyled a {

    color: #212529;

    text-decoration: none;

    transition: color .25s ease;

}

.blog-sidebar .list-unstyled a:hover {

    color: #0d6efd;

}

/* =====================================================
   SMALL TEXT
===================================================== */

.blog-sidebar small {

    display: inline-block;

    margin-top: 4px;

    color: #6c757d;

    font-size: 13px;

}

/* =====================================================
   TAGS
===================================================== */

.blog-sidebar .btn {

    transition: all .25s ease;

}

.blog-sidebar .btn:hover {

    background: #0d6efd !important;

    color: #ffffff !important;

}

/* =====================================================
   ADVERTISEMENT
===================================================== */

.blog-sidebar .advertisement {

    text-align: center;

}

.blog-sidebar .advertisement img {

    width: 100%;

    height: auto;

}

.blog-sidebar .advertisement small {

    display: block;

    margin-bottom: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

}

/* =====================================================
   SEARCH WIDGET
===================================================== */

.sidebar-search {

    display: flex;

    gap: 10px;

}

.sidebar-search input {

    flex: 1;

}

.sidebar-search button {

    white-space: nowrap;

}

/* =====================================================
   NEWSLETTER
===================================================== */

.sidebar-newsletter input {

    margin-bottom: 12px;

}

.sidebar-newsletter button {

    width: 100%;

}

/* =====================================================
   STICKY OFFSET
===================================================== */

@media (max-width:991px) {

    .blog-sidebar {

        position: static;

        margin-top: 50px;

    }

}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width:768px) {

    .blog-sidebar .card {

        margin-bottom: 25px;

    }

    .blog-sidebar .card h4 {

        font-size: 22px;

    }

    .blog-sidebar .list-unstyled img {

        width: 70px;

        height: 70px;

    }

}