/* Latest Insights Section Styles */

.latest-insights-section {
    padding: 80px 0;
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
}

.latest-insights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.latest-insights-header {
    text-align: center;
    margin-bottom: 50px;
}

.latest-insights-title {
    font-size: 36px;
    font-weight: 600;
    color: #141b1f;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.latest-insights-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.latest-insights-card-wrapper {
    width: 33.333%;
    padding: 15px;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .latest-insights-card-wrapper {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .latest-insights-card-wrapper {
        width: 100%;
    }
}

.latest-insights-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2);
    touch-action: manipulation;
}

.latest-insights-card:hover {
    transform: translateY(-5px);
}

/* Ensure child elements pass touch/click events to the card */
.latest-insights-card .latest-insights-image,
.latest-insights-card .latest-insights-content,
.latest-insights-card .latest-insights-category,
.latest-insights-card .latest-insights-article-title,
.latest-insights-card .latest-insights-excerpt,
.latest-insights-card .latest-insights-link,
.latest-insights-card .latest-insights-link svg {
    pointer-events: none;
}

.latest-insights-image {
    height: 220px;
    background-color: #e9ecef;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.latest-insights-content {
    padding: 0 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.latest-insights-category {
    font-size: 12px;
    font-weight: 700;
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.latest-insights-article-title {
    font-size: 20px;
    font-weight: 600;
    color: #141b1f;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s;
}

.latest-insights-card:hover .latest-insights-article-title {
    color: #0056b3;
}

.latest-insights-excerpt {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.latest-insights-link {
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
    margin-top: auto;
}

.latest-insights-link svg {
    margin-left: 8px;
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s;
}

.latest-insights-card:hover .latest-insights-link svg {
    transform: translateX(5px);
}

/* Mobile active state for visual feedback */
@media (max-width: 768px) {
    .latest-insights-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .latest-insights-card:hover {
        transform: none;
    }
    
    .latest-insights-section {
        padding: 40px 0;
    }
    
    .latest-insights-header {
        margin-bottom: 30px;
    }
    
    .latest-insights-title {
        font-size: 28px;
    }
    
    .latest-insights-image {
        height: 180px;
    }
    
    .latest-insights-article-title {
        font-size: 18px;
    }
    
    .latest-insights-excerpt {
        font-size: 14px;
    }
}
