/* Elementor Posts Widget */

/* Posts Container */
 .custom-posts-category-main-container{
     display: flex;
 }
.elementor-posts-container.custom-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
	align-content: baseline;
}

/* Post Item */
.custom-posts-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-posts-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Post Image */
.custom-posts-item-image {
    position: relative;
    overflow: hidden;
}

.custom-posts-item-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.custom-posts-item:hover .custom-posts-item-image img {
    transform: scale(1.05);
}

/* Post Title */
/*.custom-posts-item-title {*/
/*    font-size: 18px;*/
/*    font-weight: 600;*/
/*    margin: 0 0 15px;*/
/*    line-height: 1.4;*/
/*}*/

/*.custom-posts-item-title a {*/
/*    color: #333;*/
/*    text-decoration: none;*/
/*    transition: color 0.3s ease;*/
/*}*/

/*.custom-posts-item-title a:hover {*/
/*    color: #4054b2;*/
/*}*/

/* Post Excerpt */
.custom-posts-item-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px;
}

/* Read More Button */
.custom-posts-item-read-more {
    display: inline-block;
    background-color: #4054b2;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.custom-posts-item-read-more:hover {
    background-color: #2c3c96;
}

/* Category Image Container */
.custom-posts-category-images-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

/* Category Image */
.custom-posts-category-image {
    position: relative;
    margin: 0 15px 15px;
    text-align: center;
}

.custom-posts-category-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #4054b2;
}

.custom-posts-category-name {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Inline Category Image */
.custom-posts-item-category-image {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.custom-posts-item-category-image img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Main Title */
.custom-posts-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Responsive */
@media (max-width: 1024px) {
    .elementor-posts-container.custom-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .elementor-posts-container.custom-posts-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .custom-posts-category-images-container {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 15px;
    }
    
    .custom-posts-category-image {
        flex-shrink: 0;
    }
}