/* MultiSite Global Post Plugin Styles
Version: 1.33
Author: Your Name + ChatGPT
*/

.msgp-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    box-sizing: border-box;
}

.msgp-item {
    background: #fff;
    border: 1px solid #ddd;
    margin: 10px;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

.msgp-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Horizontal Grid Layout */
.msgp-horizontal .msgp-item {
    flex: 1 1 calc(33.333% - 20px);
}

/* Vertical Layout */
.msgp-vertical {
    flex-direction: column;
}

.msgp-vertical .msgp-item {
    width: 100%;
    margin: 10px 0;
}

/* Card: Featured Image Top-Centered */
.msgp-template-card-featured-image-top-centered .msgp-thumb {
    display: block;
    margin: 0 auto 10px;
    max-width: 100%;
    height: auto;
}

.msgp-template-card-featured-image-top-centered .msgp-title {
    font-size: 1.2em;
    margin-bottom: 8px;
    text-align: center;
}

.msgp-template-card-featured-image-top-centered .msgp-content {
    font-size: 0.95em;
    line-height: 1.5;
}

/* Card: Featured Image Left */
.msgp-template-card-featured-image-left .msgp-left-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
}

.msgp-template-card-featured-image-left .msgp-left-thumb img {
    max-width: 120px;
    height: auto;
    border-radius: 4px;
}

.msgp-template-card-featured-image-left .msgp-left-content {
    flex: 1;
}

.msgp-template-card-featured-image-left .msgp-title {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.msgp-template-card-featured-image-left .msgp-content {
    font-size: 0.9em;
    line-height: 1.4;
}

/* Simple: Featured Image Left */
.msgp-template-simple-featured-image-left .msgp-left-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
}

.msgp-template-simple-featured-image-left .msgp-left-thumb img {
    max-width: 80px;
    height: auto;
    border-radius: 3px;
}

.msgp-template-simple-featured-image-left .msgp-left-content {
    flex: 1;
}

.msgp-template-simple-featured-image-left .msgp-title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 4px;
}

.msgp-template-simple-featured-image-left .msgp-content {
    font-size: 0.85em;
    line-height: 1.3;
}

/* Read More link */
.msgp-readmore {
    display: inline-block;
    margin-top: 5px;
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.msgp-readmore:hover {
    color: #005177;
}

/* Responsive */
@media(max-width:1024px){
    .msgp-horizontal .msgp-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media(max-width:768px){
    .msgp-horizontal .msgp-item,
    .msgp-vertical .msgp-item {
        flex: 1 1 100%;
    }
    .msgp-template-card-featured-image-left .msgp-left-container,
    .msgp-template-simple-featured-image-left .msgp-left-container {
        flex-direction: column;
    }
    .msgp-template-card-featured-image-left .msgp-left-thumb img,
    .msgp-template-simple-featured-image-left .msgp-left-thumb img {
        max-width: 100%;
    }
}

/* Additional Minor Styling */
.msgp-title a {
    color: #333;
    text-decoration: none;
}

.msgp-title a:hover {
    color: #0073aa;
}

.msgp-content p {
    margin: 0 0 10px;
}
