/* 
Plugin: Random Posts by Category with Image & Excerpt
Style: Card Layout with Hover Effect
*/

/* Wrapper */
.random-posts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
    text-align: center;
    margin: 20px auto;
}

/* Card */
.random-post-item {
    background: #ffffff;
    border-radius: 1px;
    overflow: hidden;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover effect */
.random-post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.15);
}

/* Thumbnail */
.random-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

/* Image zoom on hover */
.random-post-item:hover .random-post-thumb img {
    transform: scale(1.05);
}

/* Title */
.random-post-title {
    font-size: 17px;
    margin: 15px 15px 8px;
    line-height: 1.3;
}

.random-post-title a {
    color: inherit;
    text-decoration: none;
}

/* Excerpt */
.random-post-excerpt {
    font-size: 14px;
    color: #666666;
    padding: 0 18px 20px;
    line-height: 1.6;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .random-post-item {
        max-width: 100%;
    }
}
