/* --- INSIGHTS GRID SECTION --- */
.sp-insights-grid-wrap {
    --primary-teal: #15997E;
    --emerald-event: #15997E;
    --bg-white: #ffffff;
    --card-text: #1e293b;
    --muted-text: #64748b;
    --border-color: #f1f5f9;
    --section-bg: #f9fafb;

    /* Break out of Elementor Boxed limits */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    background-color: var(--section-bg);
    padding: 60px 0;
    overflow: hidden;
}

.sp-insights-grid-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.sp-insights-grid-wrap .insights-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.sp-insights-grid-wrap .insights-title {
    color: #111827 !important;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: inline-block;
    letter-spacing: -0.01em;
}

.sp-insights-grid-wrap .insights-subtitle {
    color: #828282;
    font-size: 1.1rem;
    max-width: 600px;
}

/* Grid Layout */
.sp-insights-grid-wrap .insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Update Card Base - Reused from Blog with Grid adaptions */
.sp-insights-grid-wrap .update-card {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    cursor: pointer;
    min-height: 440px;
}

.sp-insights-grid-wrap .update-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Event Card - Full width in grid if needed? 
   Actually for a consistent grid, let's make it look like a normal card but with the sidebar */
.sp-insights-grid-wrap .update-card.event-card {
    flex-direction: row;
    grid-column: span 2; /* Event cards take 2 slots in the grid */
}

.sp-insights-grid-wrap .event-sidebar {
    background-color: var(--emerald-event);
    width: 60px;
    height: 100%;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.sp-insights-grid-wrap .event-sidebar span {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    width: 350px;
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    position: absolute;
}

.sp-insights-grid-wrap .event-content-img {
    flex-grow: 1;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.sp-insights-grid-wrap .event-content-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Blog Card Style */
.sp-insights-grid-wrap .blog-img-box {
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.sp-insights-grid-wrap .blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sp-insights-grid-wrap .blog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
}

.sp-insights-grid-wrap .blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #111827;
}

.sp-insights-grid-wrap .blog-excerpt {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Premium Link */
.sp-insights-grid-wrap .image-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin-top: auto;
}

.sp-insights-grid-wrap .elementor-heading-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-teal);
}

.sp-insights-grid-wrap .elementor-icon {
    color: var(--primary-teal);
    transition: transform 0.3s ease;
}

.sp-insights-grid-wrap .update-card:hover .elementor-icon {
    transform: rotate(45deg);
}

.sp-insights-grid-wrap .sp-card-stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* Responsive */
@media (max-width: 1199px) {
    .sp-insights-grid-wrap .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .sp-insights-grid-container {
        padding: 0 24px;
    }
    .sp-insights-grid-wrap .insights-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .sp-insights-grid-wrap .insights-grid {
        grid-template-columns: 1fr;
    }
    .sp-insights-grid-wrap .update-card.event-card {
        grid-column: span 1;
        flex-direction: column;
    }
    .sp-insights-grid-wrap .event-sidebar {
        width: 100%;
        height: 50px;
        padding: 0;
    }
    .sp-insights-grid-wrap .event-sidebar span {
        transform: none;
        position: static;
        width: auto;
    }
    .sp-insights-grid-wrap .event-content-img {
        height: 250px;
    }
}
