/* WHMCS Blog Enterprise Pro - Latest Posts Widget */
.wb-widget-wrap {
    margin: 28px 0;
    font-family: inherit;
    color: #1e293b;
}

.wb-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.wb-widget-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wb-widget-badge {
    background: rgba(0, 131, 121, 0.12);
    color: #008379;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.wb-widget-title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
}

.wb-widget-all {
    font-size: 13px;
    font-weight: 600;
    color: #008379;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.wb-widget-all:hover {
    opacity: 0.8;
    text-decoration: none;
}

.wb-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wb-widget-grid.wb-widget-count-5 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.wb-widget-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wb-widget-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.wb-widget-thumb-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.wb-widget-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wb-widget-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.wb-widget-cat {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.wb-widget-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wb-widget-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.wb-widget-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.wb-widget-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.wb-widget-card-title a:hover {
    color: #008379;
}

.wb-widget-summary {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
    flex: 1;
}

.wb-widget-readmore {
    font-size: 13px;
    font-weight: 700;
    color: #008379;
    text-decoration: none;
    align-self: flex-start;
}

.wb-widget-readmore:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .wb-widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wb-widget-grid,
    .wb-widget-grid.wb-widget-count-5 {
        grid-template-columns: 1fr;
    }
}
