/* TechLab Posts Grid - Responsive Columns */
.techlab-posts-grid {
    display: grid;
    width: 100%;
}

/* Desktop ( > 1920px ) */
.techlab-columns-desktop-1 { grid-template-columns: 1fr; }
.techlab-columns-desktop-2 { grid-template-columns: repeat(2, 1fr); }
.techlab-columns-desktop-3 { grid-template-columns: repeat(3, 1fr); }
.techlab-columns-desktop-4 { grid-template-columns: repeat(4, 1fr); }
.techlab-columns-desktop-5 { grid-template-columns: repeat(5, 1fr); }
.techlab-columns-desktop-6 { grid-template-columns: repeat(6, 1fr); }

/* Laptop ( 1366px - 1920px ) */
@media (max-width: 1920px) and (min-width: 1366px) {
    .techlab-columns-laptop-1 { grid-template-columns: 1fr; }
    .techlab-columns-laptop-2 { grid-template-columns: repeat(2, 1fr); }
    .techlab-columns-laptop-3 { grid-template-columns: repeat(3, 1fr); }
    .techlab-columns-laptop-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet ( 768px - 1365px ) */
@media (max-width: 1365px) and (min-width: 768px) {
    .techlab-columns-tablet-1 { grid-template-columns: 1fr; }
    .techlab-columns-tablet-2 { grid-template-columns: repeat(2, 1fr); }
    .techlab-columns-tablet-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile ( < 768px ) */
@media (max-width: 767px) {
    .techlab-columns-mobile-1 { grid-template-columns: 1fr; }
    .techlab-columns-mobile-2 { grid-template-columns: repeat(2, 1fr); }
}

.techlab-post-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}


.techlab-post-image-wrapper {
    position: relative;
    width: 100%;
}

.techlab-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.techlab-post-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.techlab-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    border-radius: 8px;
}

.techlab-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.techlab-post-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.techlab-post-description {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Responsive Typography and Spacing */
@media (max-width: 1365px) and (min-width: 768px) {
    .techlab-post-content {
        padding: 20px;
    }
    
    .techlab-post-title {
        font-size: 20px;
    }
    
    .techlab-post-description {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .techlab-post-content {
        padding: 15px;
    }
    
    .techlab-post-title {
        font-size: 18px;
    }
    
    .techlab-post-description {
        font-size: 13px;
    }
	.techlab-post-image{
		height:345px!important;
	}
}