/* ==========================================================================
   INSIGHTS & RESOURCES SLIDER
   ========================================================================== */

.gnv-insights-section {
    width: 100vw;
    background-color: #FDFDFD; /* Clean white/off-white background */
    padding: 100px 0;
    overflow: hidden;
}

.gnv-insights-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header Area (Title + Controls) */
.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    /* Scroll Animation Initial State */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.insights-header-left .section-badge {
    color: #888;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.insights-header-left h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    line-height: 1.1;
    color: var(--gnv-black);
    font-weight: 600;
    letter-spacing: -1px;
    margin: 0;
}

.insights-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--gnv-black);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-pill:hover {
    border-color: var(--gnv-black);
    background-color: #f5f5f5;
}

.btn-outline-pill .arrow {
    margin-left: 8px;
}

/* Slider Controls */
.insights-slider-controls {
    display: flex;
    gap: 15px;
}

.insights-slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gnv-black);
}

.insights-slider-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.insights-slider-btn:hover {
    background-color: #f0f0f0;
}

.insights-prev:hover svg { transform: translateX(-3px); }
.insights-next:hover svg { transform: translateX(3px); }

.insights-slider-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
}

/* Cards / Swiper */
.gnv-insights-swiper {
    padding-bottom: 30px; /* Space for shadow */
    margin: 0 -15px;
    padding: 15px;
}

/* Fallback grid if Swiper JS fails to initialize, ensures 4 cards show side by side */
.gnv-insights-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.gnv-insights-swiper:not(.swiper-initialized) .swiper-slide {
    width: 100%;
}

.insight-card {
    display: flex;
    flex-direction: column;
    background-color: var(--gnv-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.8s ease;
    height: 100%;
    text-decoration: none;
    border: 1px solid #f2f2f2;
    /* Scroll Animation Initial State */
    opacity: 0;
    transform: translateY(50px);
}

.insight-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Scroll Animation Active States */
.gnv-insights-section.is-animated .insights-header {
    opacity: 1;
    transform: translateY(0);
}

.gnv-insights-section.is-animated .insight-card {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card animations */
.gnv-insights-section.is-animated .swiper-slide:nth-child(1) .insight-card { transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s, box-shadow 0.4s ease; }
.gnv-insights-section.is-animated .swiper-slide:nth-child(2) .insight-card { transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s, box-shadow 0.4s ease; }
.gnv-insights-section.is-animated .swiper-slide:nth-child(3) .insight-card { transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s, box-shadow 0.4s ease; }
.gnv-insights-section.is-animated .swiper-slide:nth-child(4) .insight-card { transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s, box-shadow 0.4s ease; }


.insight-img-wrapper {
    width: 100%;
    aspect-ratio: 3/2; /* Updated aspect ratio to better match screenshot */
    overflow: hidden;
}

.insight-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card:hover .insight-img-wrapper img {
    transform: scale(1.08);
}

.insight-content {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 700;
    margin-bottom: 10px;
}

.insight-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--gnv-black);
    margin-bottom: 12px;
    font-weight: 600;
}

.insight-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
    flex: 1; /* Pushes the read-more to the bottom */
}

.read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gnv-black);
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more .arrow {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.insight-card:hover .read-more .arrow {
    transform: translateX(4px);
}

/* Responsive Layout */
@media (max-width: 992px) {
    .insights-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .insights-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .gnv-insights-swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gnv-insights-section {
        padding: 60px 0;
    }
    
    .insights-header-left h2 {
        font-size: 2rem;
    }
    
    .gnv-insights-swiper {
        margin: 0 -20px; /* Bleed to edge on mobile */
        padding: 15px 20px;
    }
    
    .gnv-insights-swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: 1fr;
    }
}
