/* ================================
   AB Performance - Blog Insights CSS
   ================================ */

.ab-performance-blog-insights-section {
    background-color: #e8e8e8;
    padding: 80px 20px;
}

.ab-performance-blog-insights-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ab-performance-blog-insights-heading {
    text-align: center;
    margin-bottom: 60px;
}

.ab-performance-blog-insights-heading h2 {
    font-size: 42px;
    font-weight: 600;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.ab-performance-blog-insights-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e1303a;
}

/* Grid Layout */
.ab-performance-blog-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Card Styling */
.ab-performance-blog-insights-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ab-performance-blog-insights-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Image */
.ab-performance-blog-insights-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.ab-performance-blog-insights-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ab-performance-blog-insights-card:hover .ab-performance-blog-insights-image img {
    transform: scale(1.05);
}

/* Content Link */
.ab-performance-blog-insights-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ab-performance-blog-insights-content {
    padding: 30px;
    flex: 1;
}

.ab-performance-blog-insights-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.ab-performance-blog-insights-link:hover h3 {
    color: #e1303a;
}

.ab-performance-blog-insights-content p {
    font-size: 15px;
    color: #555555;
    line-height: 1.7;
    margin: 0;
}

/* Footer with Button */
.ab-performance-blog-insights-footer {
    padding: 0 30px 30px;
}

.ab-performance-blog-insights-btn {
    display: inline-block;
    background-color: #e1303a;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(225, 48, 58, 0.25);
}

.ab-performance-blog-insights-btn:hover {
    background-color: #c72730;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 58, 0.35);
}

/* Responsive Design */
@media (max-width: 968px) {
    .ab-performance-blog-insights-section {
        padding: 60px 20px;
    }
    
    .ab-performance-blog-insights-heading {
        margin-bottom: 40px;
    }
    
    .ab-performance-blog-insights-heading h2 {
        font-size: 36px;
    }
    
    .ab-performance-blog-insights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .ab-performance-blog-insights-section {
        padding: 40px 20px;
    }
    
    .ab-performance-blog-insights-heading h2 {
        font-size: 32px;
    }
    
    .ab-performance-blog-insights-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ab-performance-blog-insights-content {
        padding: 25px;
    }
    
    .ab-performance-blog-insights-footer {
        padding: 0 25px 25px;
    }
}