/* General Styles */
.enhanced-related-posts {
    margin-top: 100px;
    margin-bottom:40px;
}

.enhanced-related-posts p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 40px;
    color: #333;
    font-weight:bolder;
}

.enhanced-posts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top:-20px;
}

.enhanced-related-post-column {
    width: calc(25% - 15px); /* Four columns for desktop */
    box-sizing: border-box;
    position: relative;
}

.enhanced-related-post-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.enhanced-related-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.enhanced-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.enhanced-image-overlay span {
    cursor: pointer;
}

.enhanced-related-post-image:hover img {
    transform: scale(1.1);
}

.enhanced-related-post-image:hover .enhanced-image-overlay {
    opacity: 1;
}

.enhanced-category-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #06311a; /* Yellow color */
    color: #ffffff;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    animation: shake 15s ease-in-out infinite; /* Apply the shake animation */
}

.enhanced-related-post-title {
    margin-top: 10px;
    font-size: 16px;
    text-align: center;
    color: #333;
}

.enhanced-related-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.enhanced-related-post-title a:hover {
    color: #e4990d; /* Orange hover effect */
}



/* Shake animation */
@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}




/* Tablet Responsiveness */
@media (max-width: 768px) {
    .enhanced-related-post-column {
        width: calc(50% - 15px); /* Two columns for tablets */
    }

    .enhanced-related-post-image img {
        height: 180px;
    }

    .enhanced-related-posts p {
       
        font-size: 24px;
        font-weight:bolder;
      
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .enhanced-related-post-column {
        width: calc(50% - 15px); /* Two columns for mobile */
    }

    .enhanced-related-post-image img {
        height: 150px;
    }

    .enhanced-related-posts p {
       
        font-size: 24px;
        font-weight:bolder;
      
    }

    .enhanced-related-post-title {
        margin-top: 2px;
        font-size: 16px;
        text-align: center;
        color: #333;
        line-height: normal;
    }
}
