/*
Theme Name: News Brick Kit Child
Theme URI: https://blazethemes.com/theme/news-brick-kit/
Template: news-brick-kit
Author: BlazeThemes
Author URI: https://blazethemes.com/
Description: News Brick Kit is a elementor based complete news template for News Kit Elementor Addons.
Tags: blog,news,entertainment,custom-background,custom-logo,custom-menu,featured-images,threaded-comments,translation-ready
Version: 1.0.0.1761568559
Updated: 2025-10-27 12:35:59

*/

/* Latest Posts Grid Styling */
.wp-block-latest-posts.is-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    margin: 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Individual Post Card */
.wp-block-latest-posts__list li {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Equal height cards */
    border: 1px solid #f0f0f0;
}

/* Card hover effect */
.wp-block-latest-posts__list li:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: #007cba;
}

/* Featured Image Container */
.wp-block-latest-posts__featured-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    margin: 0 !important;
}

.wp-block-latest-posts__featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    border-radius: 0 !important;
}

/* Image hover zoom effect */
.wp-block-latest-posts__list li:hover .wp-block-latest-posts__featured-image img {
    transform: scale(1.05);
}

/* Card Content Area */
.wp-block-latest-posts__list li > a:not(.wp-block-latest-posts__featured-image a),
.wp-block-latest-posts__post-title {
    padding: 20px 24px 0 24px !important;
    margin: 0 !important;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    display: block !important;
    flex-grow: 1;
}

.wp-block-latest-posts__post-title:hover {
    color: #007cba !important;
}

/* Post Meta (Author & Date) */
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
    padding: 0 24px !important;
    margin: 8px 0 0 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 400 !important;
}

.wp-block-latest-posts__post-author {
    margin-bottom: 5px !important;
    color: #007cba !important;
    font-weight: 500 !important;
}

.wp-block-latest-posts__post-date {
    margin-bottom: 20px !important;
    opacity: 0.8;
}

/* Category Badge (if present) */
.wp-block-latest-posts__post-categories {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 124, 186, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

/* Excerpt styling (if enabled) */
.wp-block-latest-posts__post-excerpt {
    padding: 0 24px 20px 24px !important;
    margin: 0 !important;
    color: #555 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Read more link */
.wp-block-latest-posts__post-full-content a,
.wp-block-latest-posts__post-excerpt a {
    color: #007cba !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    transition: border-color 0.3s ease !important;
}

.wp-block-latest-posts__post-full-content a:hover,
.wp-block-latest-posts__post-excerpt a:hover {
    border-bottom-color: #007cba !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-block-latest-posts.is-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 30px 0 !important;
    }
    
    .wp-block-latest-posts__featured-image {
        height: 180px;
    }
    
    .wp-block-latest-posts__post-title {
        font-size: 16px !important;
        padding: 16px 20px 0 20px !important;
    }
    
    .wp-block-latest-posts__post-author,
    .wp-block-latest-posts__post-date {
        padding: 0 20px !important;
    }
    
    .wp-block-latest-posts__post-excerpt {
        padding: 0 20px 16px 20px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wp-block-latest-posts.is-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1025px) {
    .wp-block-latest-posts.is-grid.columns-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .wp-block-latest-posts.is-grid.columns-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Loading animation for dynamic content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-block-latest-posts__list li {
    animation: fadeInUp 0.6s ease forwards;
}

.wp-block-latest-posts__list li:nth-child(2) {
    animation-delay: 0.1s;
}

.wp-block-latest-posts__list li:nth-child(3) {
    animation-delay: 0.2s;
}

.wp-block-latest-posts__list li:nth-child(4) {
    animation-delay: 0.3s;
}

/* Optional: Add a subtle gradient overlay on images */
.wp-block-latest-posts__featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.wp-block-latest-posts__list li:hover .wp-block-latest-posts__featured-image::before {
    opacity: 0.7;
}


.section-title{
    line-height: 2 !important;
}

