/* =====================================================
   PBMIT Portfolio Sidebar Widget
   File: assets/css/pbmit-portfolio-sidebar-widget.css
   ===================================================== */

/* ── Sticky wrapper ── */
.pbmit-sidebar-sticky {
    position: sticky;
    top: 100px; /* điều chỉnh khoảng cách từ đỉnh khi sticky */
    z-index: 10;
}

/* ── Card list: 1 cột, gap giữa các card ── */
.pbmit-portfolio-sidebar-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Card ── */
.pbmit-sw-item {
    width: 100%;
}

.pbmit-sw-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pbmit-sw-box:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

/* ── Image ── */
.pbmit-sw-img-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--pbmit-sw-ratio, 16/10);
}

.pbmit-sw-img-box a {
    display: block;
    width: 100%;
    height: 100%;
}

.pbmit-sw-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pbmit-sw-box:hover .pbmit-sw-img-box img {
    transform: scale(1.05);
}

/* ── Overlay ── */
.pbmit-sw-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pbmit-sw-box:hover .pbmit-sw-overlay {
    opacity: 1;
}

/* ── Category badge ── */
.pbmit-sw-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    white-space: nowrap;
}

/* ── Content ── */
.pbmit-sw-content {
    padding: 14px 16px 16px;
}

/* ── Title ── */
.pbmit-sw-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 10px;
    color: #111;
}

.pbmit-sw-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pbmit-sw-title a:hover {
    color: var(--pbmit-global-color, #c8a96e);
}

/* ── Meta row ── */
.pbmit-sw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.pbmit-sw-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #666;
    white-space: nowrap;
}

.pbmit-sw-meta-icon {
    font-size: 11px;
    color: #999;
    width: 13px;
    text-align: center;
    flex-shrink: 0;
}

.pbmit-sw-meta-value {
    font-weight: 500;
    color: #444;
}