/* MultiSite Global Post Plugin Styles
Version: 1.42
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; /* card effect for cards */
}

/* Card Hover Effect (for Card templates only) */
.msgp-template-card-featured-image-top-centered .msgp-item:hover,
.msgp-template-card-featured-image-left .msgp-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 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;
    width: 100%;
    height: 360px; /* fixed height for row */
    overflow: hidden;
}

.msgp-template-card-featured-image-top-centered .msgp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.msgp-template-card-featured-image-top-centered .msgp-title {
    font-size: 2rem;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    color: #006666;
    margin: 0 0 16px;
    text-align: center;
}

.msgp-template-card-featured-image-top-centered .msgp-title a {
    color: #006666;
    text-decoration: none;
}

.msgp-template-card-featured-image-top-centered .msgp-title a:hover {
    color: #222222;
}

.msgp-template-card-featured-image-top-centered .msgp-content {
    font-size: inherit;
    color: inherit;
    line-height: 1.5;
    text-align: left;
}

/* 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 {
    flex: 0 0 25%;
}

.msgp-template-card-featured-image-left .msgp-left-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    object-position: top;
    border-radius: 3px;
}

.msgp-template-card-featured-image-left .msgp-left-content {
    flex: 1;
}

.msgp-template-card-featured-image-left .msgp-title {
    font-size: 2rem;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    color: #006666;
    margin: 0 0 16px;
    text-align: left;
}

.msgp-template-card-featured-image-left .msgp-title a {
    color: #006666;
    text-decoration: none;
}

.msgp-template-card-featured-image-left .msgp-title a:hover {
    color: #222222;
}

.msgp-template-card-featured-image-left .msgp-content {
    font-size: inherit;
    color: inherit;
    line-height: 1.4;
    text-align: left;
}

/* 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 {
    flex: 0 0 25%;
}

.msgp-template-simple-featured-image-left .msgp-left-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    object-position: top;
    border-radius: 3px;
    transition: box-shadow 0.3s ease;
}

.msgp-template-simple-featured-image-left .msgp-left-thumb img:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.msgp-template-simple-featured-image-left .msgp-left-content {
    flex: 1;
}

.msgp-template-simple-featured-image-left .msgp-title {
    font-size: 2rem;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    color: #006666;
    margin: 0 0 16px;
    text-align: left;
}

.msgp-template-simple-featured-image-left .msgp-title a {
    color: #006666;
    text-decoration: none;
}

.msgp-template-simple-featured-image-left .msgp-title a:hover {
    color: #222222;
}

.msgp-template-simple-featured-image-left .msgp-content {
    font-size: inherit;
    color: inherit;
    line-height: 1.3;
    text-align: left;
}

/* Read More link (general) */
.msgp-readmore {
    display: inline-block;
    margin-top: 5px;
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.msgp-readmore:hover {
    color: #005177;
    text-decoration: none;
}

/* Content-Limit Read More Inline with Arrow */
.msgp-content .more-link.msgp-readmore {
    display: inline;
    background: none !important;
    color: #006666 !important;
    text-decoration: none;
    font-weight: bold;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    padding-left: 1.2em;
}

.msgp-content .more-link.msgp-readmore:hover {
    color: #000 !important;
}

.msgp-content .more-link.msgp-readmore::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #006666;
    font-weight: bold;
    font-size: 0.95em;
}

.msgp-content .more-link.msgp-readmore:hover::before {
    color: #000;
}

/* 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,
    .msgp-template-simple-featured-image-left .msgp-left-thumb {
        flex: 0 0 auto;
    }
    .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;
}
