.random-interesting-posts {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.interesting-post {
    flex: 1 1 30%;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.8), rgba(155, 48, 255, 0.8));
    color: #fff;
    padding: 15px;
    position: relative;
}

.interesting-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Make all images the same size */
.interesting-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.interesting-title {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.interesting-title a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.interesting-title a:hover {
    color: #ffcc00;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
}

/* Glowing hover effect for post */
.interesting-post:hover .interesting-title {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
}

.random-interesting-posts:hover .interesting-post {
    opacity: 0.8;
}

.random-interesting-posts .interesting-post:hover {
    opacity: 1;
    /* Restore full visibility on hover */
}

.random-interesting-posts .interesting-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    z-index: -1;
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.6), 0 0 25px rgba(155, 48, 255, 0.6);
    transition: opacity 0.3s ease-in-out;
}

.interesting-post:hover::after {
    opacity: 0.3;
}
