/* Uniform Blog Layout CSS */

/* Blog Grid Container */
.blog.content-area .row {
    margin: 0 -15px;
}

.blog.content-area .row > [class*="col-"] {
    padding: 0 15px;
}

/* Individual Blog Card */
.blog-3 {
    display: flex !important;
    flex-direction: column;
    height: 420px; /* Fixed height for all cards */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 0 !important;
    width: 100%;
}

.blog-3:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Blog Image Container */
.blog-3 .blog-photo {
    height: 200px; /* Fixed image height */
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.blog-3 .blog-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-3:hover .blog-photo img {
    transform: scale(1.05);
}

/* Date Badge */
.blog-3 .date-box {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-3 .date-box span {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}

/* Meta Information */
.blog-3 .post-meta {
    height: auto;
    background: #f8f9fa;
    margin: 0;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.blog-3 .post-meta ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-3 .post-meta ul li {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    float: none;
}

.blog-3 .post-meta .profile-user {
    padding: 0;
}

.blog-3 .post-meta .profile-user img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}

/* Content Area */
.blog-3 .detail {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.blog-3 .detail h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50px; /* Ensures consistent title height */
}

.blog-3 .detail h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-3 .detail h4 a:hover {
    color: #007bff;
}

.blog-3 .detail p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .blog.content-area .blog-uniform-grid {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .blog.content-area .blog-uniform-grid {
        gap: 20px;
    }
    
    .blog-3 {
        height: 380px;
    }
    
    .blog-3 .blog-photo {
        height: 180px;
    }
    
    .blog.content-area .blog-uniform-grid > [class*="col-"] {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .blog-3 {
        height: auto;
        min-height: 350px;
    }
    
    .blog-3 .blog-photo {
        height: 160px;
    }
}

/* Ensure proper spacing */
.blog.content-area .container {
    max-width: 1200px;
}

/* Additional hover effects */
.blog-3 .detail h4 a {
    position: relative;
}

.blog-3 .detail h4 a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.blog-3:hover .detail h4 a::after {
    width: 100%;
}

/* Ensure consistent card appearance */
.blog-3 * {
    box-sizing: border-box;
}

/* Remove any conflicting styles from slick slider */
.blog.content-area .slick-slider-area,
.blog.content-area .slick-carousel,
.blog.content-area .slick-slide-item {
    display: none !important;
}