.elementor-200 .elementor-element.elementor-element-ef4b3db{--display:flex;}/* Start custom CSS for shortcode, class: .elementor-element-00533c1 *//* ==========================================================================
   NFH Custom Insights Carousel - THE FINAL AND CORRECT VERSION
   ========================================================================== */

/* --- Section Layout & Header --- */
.nfh-insights-section { padding: 60px 0; }
.nfh-carousel-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px; padding: 0 15px;
}
.nfh-section-title {
    font-family: 'Sohnee', sans-serif; font-size: 36px;
    color: #003d52; font-weight: 300; margin: 0;
}
.nfh-carousel-navigation { display: flex; gap: 10px; }
.swiper-button-next, .swiper-button-prev {
    position: static; width: 44px; height: 44px; margin-top: 0;
    background-color: transparent; border: 1px solid #ddd; border-radius: 50%;
    transition: background-color 0.3s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background-color: #f0f0f0; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px; font-weight: bold; color: #003d52; }
.nfh-insights-carousel { overflow: visible !important; }

/* ==========================================================================
   The Card Itself - THE CORRECT OPACITY EFFECT
   ========================================================================== */
.nfh-insight-card {
    display: flex; flex-direction: column; height: auto;
    background-color: #fff; border: 1px solid #eee;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0.4; /* All slides are dimmed by default */
    transform: scale(0.95); /* Slightly shrink the dimmed slides */
}
/* This is the DEFINITIVE fix. It targets the 4 central slides. */
.swiper-slide-prev,
.swiper-slide-active,
.swiper-slide-next,
.swiper-slide-next + .swiper-slide {
    opacity: 1;
    transform: scale(1); /* Center slides are full size */
}

.nfh-card-image-wrapper { position: relative; overflow: hidden; }
.nfh-card-image-wrapper img {
    width: 100%; height: 220px; object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}
.nfh-insight-card:hover .nfh-card-image-wrapper img { transform: scale(1.05); }
.nfh-card-badge {
    position: absolute; top: 15px; left: 15px; padding: 5px 12px;
    font-family: 'Sohnee', sans-serif; font-size: 13px !important; font-weight: 200 !important; color: #fff;
}
.nfh-card-content {
    padding: 0; display: flex; flex-direction: column; flex-grow: 1;
    transition: background-color 0.3s ease;
}
.nfh-card-meta, .nfh-card-title { padding: 0 25px; }
.nfh-card-meta { padding-top: 25px; }
.nfh-card-author { display: block; font-family: 'Sohnee', sans-serif; font-size: 15px !important; font-weight: 200 !important; }
.nfh-card-date { display: block; margin-top: 4px; font-family: 'Tiempos', serif; font-size: 13px !important; font-weight: 200 !important; }
.nfh-card-title {
    flex-grow: 1; margin: 5px 0 79px 0; line-height: 1.4;
    font-family: 'Sohnee', sans-serif; font-size: 15px !important; font-weight: 200 !important;
}

/* ==========================================================================
   "Find out more" Button - THE CORRECT ANIMATION
   ========================================================================== */
.nfh-card-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    position: relative;
    width: 100%;
    margin-top: auto;
    padding: 15px 25px;
    box-sizing: border-box;
    font-family: 'Sohnee', sans-serif;
    font-size: 17px !important;
    font-weight: 300 !important;
    color: var(--dynamic-color); /* Initial text color */

    /* Background animation setup */
    background-image: linear-gradient(to bottom, var(--dynamic-color) 50%, transparent 50%);
    background-size: 300% 300%;
    background-position: bottom;
    transition: all 0.4s ease-out;

    border-top: 0px solid #eee;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: px solid transparent;
}

.nfh-card-link::after {
    content: '→';
    transition: color 0.4s ease-out;
}

.nfh-insight-card:hover .nfh-card-link {
    background-position: top; /* Slide background from bottom to top */
    color: #fff !important;
    border-color: var(--dynamic-color) !important;
}

.nfh-insight-card:hover .nfh-card-link::after {
    color: #fff !important;
}

/* ==========================================================================
   DYNAMIC COLORING
   ========================================================================== */
.nfh-card-content { background-color: #f7f9fa; }
.nfh-card-meta, .nfh-card-title, .nfh-card-link { color: #003d52; }
.nfh-card-badge { background-color: #003d52; }
.nfh-insight-card { --dynamic-color: #003d52; }

.category-insights .nfh-card-content { background-color: #FFF6F3; }
.category-insights .nfh-card-meta, .category-insights .nfh-card-title, .category-insights .nfh-card-link { color: #B33419; }
.category-insights .nfh-card-badge { background-color: #B33419; }
.category-insights { --dynamic-color: #B33419; }

.category-quick-reads .nfh-card-content { background-color: #E2F2F7; }
.category-quick-reads .nfh-card-meta, .category-quick-reads .nfh-card-title, .category-quick-reads .nfh-card-link { color: #105577; }
.category-quick-reads .nfh-card-badge { background-color: #105577; }
.category-quick-reads { --dynamic-color: #105577; }

.category-in-the-press .nfh-card-content { background-color: #F5F3FA; }
.category-in-the-press .nfh-card-meta, .category-in-the-press .nfh-card-title, .category-in-the-press .nfh-card-link { color: #514294; }
.category-in-the-press .nfh-card-badge { background-color: #514294; }
.category-in-the-press { --dynamic-color: #514294; }/* End custom CSS */