/* Portage Posts Display Widget Styles */

.widget.portage_posts_display_widget {
    margin-bottom: 2rem;
}

.widget.portage_posts_display_widget .widget-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.widget-posts-display .posts-display-container {
    margin: 0;
}

.widget-posts-display .row {
    margin-left: -10px;
    margin-right: -10px;
}

.widget-posts-display .col {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 1rem;
}

/* Smaller card styling for widgets */
.widget-posts-display .card {
    font-size: 0.9rem;
}

.widget-posts-display .card-title {
    font-size: 1rem;
    line-height: 1.3;
}

.widget-posts-display .card-img-top {
    height: 150px;
    object-fit: cover;
}

.widget-posts-display .card-text {
    font-size: 0.85rem;
}

.widget-posts-display .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

/* Grid layout adjustments for widget */
.widget-posts-display .post-grid-item {
    padding: 0.75rem;
    font-size: 0.85rem;
}

.widget-posts-display .post-grid-item .h6 {
    font-size: 0.9rem;
}

/* List layout adjustments for widget */
.widget-posts-display .list-unstyled li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.widget-posts-display .list-unstyled .card-title {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for widget area */
@media (max-width: 767.98px) {
    .widget-posts-display .card-img-top {
        height: 120px;
    }
    
    .widget-posts-display .card-title {
        font-size: 0.95rem;
    }
    
    .widget-posts-display .card-text {
        font-size: 0.8rem;
    }
}

/* Widget admin form styling */
.widget-content .portage-posts-widget-section {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.widget-content .portage-posts-widget-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
