/* ==================================================================
   Custom Blog Single — Sidebar (Featured / Latest)
   Pairs with [blog_sidebar] in custom-blog-single.php
   ================================================================== */

.sb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Widget (one per section: Featured, Latest) --- */
.sb-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
    display: flex;
    flex-direction: column;
    min-width: 380px;
}

.sb-widget__title {
    margin: 0;
    color: #FFF;
    font-family: "Work Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 100%;
    text-transform: uppercase;
}

.sb-widget__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Article card --- */
.sb-side-card {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    gap: 16px;

    border-radius: 20px;
    background: #1B1C3F;
    overflow: hidden;

    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.sb-side-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* --- Card media (thumbnail, left) --- */
.sb-side-card__media {
    flex: 0 0 auto;
    width: 187px;
    align-self: stretch;        /* image column matches card height */
    overflow: hidden;
}
.sb-side-card__img {
    width: 187px !important;
    height: 142px !important;
    object-fit: cover;
    display: block;
}

/* --- Card body (text, right) --- */
.sb-side-card__body {
    flex: 1 1 auto;
    min-width: 0;               /* lets text-overflow ellipsis work */
    padding: 16px 16px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Date • min read --- */
.sb-side-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: #D8E1E7;
    text-overflow: ellipsis;
    font-family: "Work Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 120%;
}
.sb-side-card__sep {
    color: #D8E1E7;
}

/* --- Card title --- */
.sb-side-card__title {
    margin: 0;
    color: #FFF;
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    text-transform: uppercase;
}

/* --- Card excerpt --- */
.sb-side-card__excerpt {
    margin: 0;
    overflow: hidden;
    color: #FFF;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
    font-family: "Work Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 120%;
}