/* Category Related Posts - Frontend Styles */

.crp-container {
    max-width: 100%;
    margin: 30px 0;
    background: #ffffff;
    overflow: hidden;
}

.crp-heading {
    margin: 0;
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 0;
}

.crp-posts-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.crp-post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.crp-post-item:last-child {
    border-bottom: none;
}

.crp-post-thumbnail {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.crp-post-thumbnail img {
    display: block;
    transition: transform 0.3s ease;
}

.crp-post-item:hover .crp-post-thumbnail img {
    transform: scale(1.05);
}

.crp-post-content {
    flex: 1;
    min-width: 0;
}

.crp-post-title {
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.4;
}

.crp-post-title a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.crp-post-title a:hover {
    opacity: 0.7;
}

.crp-post-excerpt {
    margin: 0;
    line-height: 1.6;
    opacity: 0.8;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .crp-heading {
        padding: 10px 15px;
    }
    
    .crp-post-item {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .crp-post-thumbnail {
        max-width: 100px;
        max-height: 75px;
    }
}

@media screen and (max-width: 480px) {
    .crp-heading {
        padding: 8px 12px;
    }
    
    .crp-post-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .crp-post-thumbnail {
        max-width: 80px;
        max-height: 60px;
    }
    
    .crp-post-title {
        margin-bottom: 5px;
    }
    
    .crp-post-excerpt {
        line-height: 1.5;
    }
}

/* Print Styles */
@media print {
    .crp-container {
        page-break-inside: avoid;
    }
    
    .crp-post-item:hover {
        background-color: inherit !important;
    }
}
