/**
 * Featured Posts Widget (مقالات مميزة) Stylesheet
 * Enqueued strictly when sw_Featured_Posts_Widget is rendered.
 */
.a4h-featured-list-widget {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.a4h-featured-list-widget .featured-col {
    flex: 2;
    min-width: 300px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

.a4h-featured-list-widget .featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #0f172a;
}

.a4h-featured-list-widget .featured-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.a4h-featured-list-widget .featured-item:hover .featured-img {
    transform: scale(1.04);
}

.a4h-featured-list-widget .featured-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    color: #ffffff;
    padding: 24px 16px 14px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
}

.a4h-featured-list-widget .list-col {
    flex: 1;
    min-width: 260px;
}

.a4h-featured-list-widget .list-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.a4h-featured-list-widget .list-posts li {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 8px 10px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.a4h-featured-list-widget .list-posts li:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
    transform: translateX(-3px);
}

body.dark .a4h-featured-list-widget .list-posts li {
    background: #1e293b;
    border-color: #334155;
}

body.dark .a4h-featured-list-widget .list-posts li:hover {
    background: #243247;
    border-color: #475569;
}

.a4h-featured-list-widget .list-posts li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.a4h-featured-list-widget .list-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.a4h-featured-list-widget .list-title {
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 600;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark .a4h-featured-list-widget .list-title {
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .a4h-featured-list-widget {
        flex-direction: column;
        gap: 15px;
    }
    .a4h-featured-list-widget .featured-col {
        grid-template-rows: auto;
    }
    .a4h-featured-list-widget .featured-img {
        height: 180px;
    }
    .a4h-featured-list-widget .featured-title {
        font-size: 0.95rem;
        padding: 18px 12px 10px;
    }
    .a4h-featured-list-widget .list-img {
        width: 55px;
        height: 55px;
    }
    .a4h-featured-list-widget .list-title {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}
