/* Post List Plugin - Frontend Styles */
.plp-post-list-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.plp-post-item {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 8px; /* Space between posts = 8px */
    background: #fff;
    border: 1px solid #eee;
    box-sizing: border-box;
    overflow: hidden;
}

.plp-post-item:last-child {
    margin-bottom: 0;
}

.plp-col {
    box-sizing: border-box;
    width: 50%;
    padding: 0px; /* Required: column padding 0px */
}

.plp-col-image {
    padding: 0 !important;
    background: #f5f5f5;
    display: flex;
}

.plp-col-image .plp-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.plp-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

.plp-no-image {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9e9e9;
    color: #888;
    font-size: 14px;
}

.plp-col-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto; /* Allows scrolling when fixed height + long content */
}

.plp-post-item[style*=\"height\"] {
    align-items: stretch;
}

.plp-post-item[style*=\"height\"] .plp-col-image,
.plp-post-item[style*=\"min-height\"] .plp-col-image {
    align-self: stretch;
}

.plp-post-item[style*=\"height\"] .plp-featured-image {
    min-height: 100%;
    height: 100%;
}

.plp-post-title {
    margin: 0 0 12px 0;
    line-height: 1.3;
    font-weight: 700;
}

.plp-post-title a {
    transition: opacity 0.2s ease;
}

.plp-post-title a:hover {
    opacity: 0.75;
    text-decoration: underline !important;
}

.plp-post-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
}

.plp-post-excerpt p {
    margin: 0;
}

.plp-readmore-wrapper {
    margin-top: 12px;
}

.plp-readmore-btn {
    display: inline-block;
    text-decoration: none !important;
    line-height: 1.2;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.plp-readmore-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .plp-post-item {
        flex-direction: column;
    }
    .plp-col {
        width: 100% !important;
    }
    .plp-featured-image {
        min-height: 220px;
    }
}

/* Vertical Scroller Styles */
.plp-scroller-outer {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc #f5f5f5; /* Firefox */
}

.plp-scroller-outer::-webkit-scrollbar {
    width: 6px;
}

.plp-scroller-outer::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.plp-scroller-outer::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.plp-scroller-outer::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.plp-scroller-enabled .plp-post-list-wrapper {
    padding-right: 4px; /* Space for scrollbar */
}

.plp-inside-scroller .plp-post-item:last-child {
    margin-bottom: 0;
}
