/* HL Display 2 Posts by ID Widget Styles */

.hl-display-2-posts-widget {
    margin-bottom: 20px;
}

.hl-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hl-post-item {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hl-post-item:hover {
    opacity: .8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hl-post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.hl-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.hl-post-content {
    padding: 10px;
}

.hl-post-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.hl-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hl-post-title a:hover {
    color: #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hl-posts-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hl-post-item {
        min-width: 100%;
    }
    
    .hl-post-title {
        font-size: 14px;
    }
    
    .hl-post-content {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hl-post-title {
        font-size: 13px;
    }
    
    .hl-post-content {
        padding: 10px;
    }
}

/* Widget Admin Styles */
.widget .hl-display-2-posts-widget {
    margin-bottom: 0;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .hl-post-item {
        background: #2c2c2c;
        color: #fff;
    }
    
    .hl-post-title a {
        color: #fff;
    }
    
    .hl-post-title a:hover {
        color: #00a0d2;
    }
}