/* =============================================
   Nexa Portfolio Grid Widget
   ============================================= */

/* === KOP === */
.nexa-pf-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
}

.nexa-pf-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7AB3FF;
}

.nexa-pf-kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nexa-accent, #0074FF);
    box-shadow: 0 0 8px rgba(var(--nexa-accent-rgb, 0,116,255), 0.6);
}

.nexa-pf-h2 {
    margin: 0;
    padding: 0;
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight:700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #FFFFFF;font-family:'Elms Sans','Satoshi',ui-sans-serif,system-ui,sans-serif;}

.nexa-pf-h2 em {
    font-style: normal;
    color: #3D92FF;
}

.nexa-pf-sub {
    margin: 14px auto 0;
    padding: 0;
    max-width: 600px;
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

/* === FILTERS === */
.nexa-pf-header { position: relative; z-index: 2; }

.nexa-pf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    justify-content: center;
}

.nexa-pf-filter {
    padding: 10px 24px;
    border: 1px solid rgba(214,222,235,0.55);
    border-radius: 50px;
    background: transparent;
    color: #7C8DB0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1;
}

.nexa-pf-filter:hover {
    border-color: var(--nexa-accent, #0074FF);
    color: var(--nexa-accent, #0074FF);
}

.nexa-pf-filter.active {
    background: var(--nexa-accent, #0074FF);
    border-color: var(--nexa-accent, #0074FF);
    color: #FFFFFF;
    font-weight: 600;
}

/* === GRID === */
.nexa-pf-grid {
    display: grid;
    gap: 24px;
}

.nexa-pf-cols--2 { grid-template-columns: repeat(2, 1fr); }
.nexa-pf-cols--3 { grid-template-columns: repeat(3, 1fr); }
.nexa-pf-cols--4 { grid-template-columns: repeat(4, 1fr); }

/* === CARD === */
.nexa-pf-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nexa-pf-grid .nexa-pf-card:hover {
    transform: translateY(-4px);
}

.nexa-pf-card.nexa-pf-hidden {
    display: none !important;
}

/* === IMAGE WRAP === */
.nexa-pf-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    display: block;
}

.nexa-pf-ratio--1-1 .nexa-pf-img-wrap  { aspect-ratio: 1 / 1; }
.nexa-pf-ratio--4-3 .nexa-pf-img-wrap  { aspect-ratio: 4 / 3; }
.nexa-pf-ratio--16-9 .nexa-pf-img-wrap { aspect-ratio: 16 / 9; }
.nexa-pf-ratio--3-4 .nexa-pf-img-wrap  { aspect-ratio: 3 / 4; }
.nexa-pf-ratio--fixed-275 .nexa-pf-img-wrap { aspect-ratio: auto; height: 275px; }

.nexa-pf-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nexa-pf-card:hover .nexa-pf-img {
    transform: scale(1.05);
}

.nexa-pf-placeholder {
    background: linear-gradient(160deg, #143060 0%, #0B1C3D 100%);
}

/* === OVERLAY === */
.nexa-pf-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* === IMAGE CONTENT === */
.nexa-pf-img-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* === PILL === */
.nexa-pf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(var(--nexa-accent-rgb, 0,116,255), 0.12);
    border: 1px solid rgba(var(--nexa-accent-rgb, 0,116,255), 0.25);
    border-radius: 100px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nexa-pf-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nexa-accent, #0074FF);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(var(--nexa-accent-rgb, 0,116,255), 0.5);
}

.nexa-pf-pill-text {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* === TITLE === */
.nexa-pf-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);font-family:'Elms Sans','Satoshi',ui-sans-serif,system-ui,sans-serif;}

/* === META (branche · plaats) === */
.nexa-pf-meta {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.01em;
}

/* === BODY === */
.nexa-pf-body {
    padding: 16px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.nexa-pf-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

/* === MODULE-CHIPS === */
.nexa-pf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nexa-pf-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(var(--nexa-accent-rgb, 0,116,255), 0.35);
    background: rgba(var(--nexa-accent-rgb, 0,116,255), 0.1);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

/* === BUTTON: gedeeld Nexa buttonsysteem (nexa-buttons.css) === */
.nexa-pf-btn {
    align-self: flex-start;
    font-size: 15px;
}

/* =============================================
   FULLWIDTH CAROUSEL BREAKOUT
   ============================================= */
.nexa-pf-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.nexa-pf-carousel-fullwidth {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
}

.swiper.nexa-pf-carousel {
    overflow: visible;
    padding: 8px 0 16px;
}

.nexa-pf-carousel .swiper-wrapper {
    align-items: stretch;
}

.nexa-pf-carousel .swiper-slide {
    height: auto;
    display: flex;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0.55;
}

.nexa-pf-carousel .swiper-slide-active {
    opacity: 1;
}

.nexa-pf-carousel .nexa-pf-card {
    width: 100%;
    height: 100%;
    opacity: 1;
    animation: none;
    transform: none;
}

.nexa-pf-carousel .nexa-pf-card:hover { transform: none; }

/* Slide breedtes per breakpoint */
@media (max-width: 767px) {
    .nexa-pf-carousel .swiper-slide {
        width: 82vw;
        max-width: 380px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nexa-pf-carousel .swiper-slide {
        width: 60vw;
        max-width: 520px;
    }
}

/*
 * Desktop: 3 hele kaarten in het midden + halve peeks links en rechts.
 * - .nexa-pf-wrapper houdt de 100vw breakout (basis CSS, overflow:hidden).
 * - Container = 75vw zodat 3 hele slides + 2 gaps erin passen.
 * - Empty viewport-zijdes = (100vw - 75vw)/2 = 12.5vw per kant
 *   → slides naast container peeken voor exact ~halve-slide breed.
 * - Carousel houdt overflow:visible voor het peek-effect.
 */
@media (min-width: 1024px) {
    .nexa-pf-carousel-fullwidth {
        width: 75vw;
        max-width: 1440px;
        margin: 0 auto;
    }

    .swiper.nexa-pf-carousel {
        overflow: visible;
    }

    .nexa-pf-carousel .swiper-slide {
        width: calc(25vw - 12px);
        max-width: 480px;
        opacity: 1;
    }
}

@media (min-width: 1600px) {
    .nexa-pf-carousel-fullwidth {
        max-width: 1600px;
    }

    .nexa-pf-carousel .swiper-slide {
        max-width: 520px;
    }
}

/* =============================================
   ARROW NAVIGATIE
   ============================================= */
.nexa-pf-arrow {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(11,28,61, 0.08);
    color: #0B1C3D;
}

.nexa-pf-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nexa-pf-arrow:hover {
    background: var(--nexa-accent, #0074FF);
    border-color: var(--nexa-accent, #0074FF);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 24px rgba(var(--nexa-accent-rgb, 0,116,255), 0.35);
}

.nexa-pf-arrow.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.nexa-pf-arrow-prev { left: 24px; }
.nexa-pf-arrow-next { right: 24px; }

/* Op desktop is .nexa-pf-carousel-fullwidth smaller dan viewport (66.66vw).
   Pijlen moeten echter aan de viewport-randen staan, dus negatieve offset om de
   peek-zone in te schuiven, plus 24px afstand van viewport-edge. */
@media (min-width: 1024px) {
    .nexa-pf-arrow-prev { left: calc((100% - 100vw) / 2 + 24px); }
    .nexa-pf-arrow-next { right: calc((100% - 100vw) / 2 + 24px); }
}

@media (max-width: 767px) {
    .nexa-pf-arrow { width: 36px; height: 36px; top: 32%; }
    .nexa-pf-arrow svg { width: 16px; height: 16px; }
    .nexa-pf-arrow-prev { left: 8px; }
    .nexa-pf-arrow-next { right: 8px; }
}

/* === EMPTY === */
.nexa-pf-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7C8DB0;
    font-size: 15px;
    border: 2px dashed #D6DEEB;
    border-radius: 12px;
}

/* === AFSLUITER: Bekijk alle cases === */
.nexa-pf-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.nexa-pf-all { font-size: 15px; }

/* === STAGGER (alleen grid) === */
.nexa-pf-grid .nexa-pf-card {
    opacity: 0;
    transform: translateY(24px);
    animation: nexaCardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nexa-pf-grid .nexa-pf-card:nth-child(1) { animation-delay: 0.05s; }
.nexa-pf-grid .nexa-pf-card:nth-child(2) { animation-delay: 0.1s; }
.nexa-pf-grid .nexa-pf-card:nth-child(3) { animation-delay: 0.15s; }
.nexa-pf-grid .nexa-pf-card:nth-child(4) { animation-delay: 0.2s; }
.nexa-pf-grid .nexa-pf-card:nth-child(5) { animation-delay: 0.25s; }
.nexa-pf-grid .nexa-pf-card:nth-child(6) { animation-delay: 0.3s; }
.nexa-pf-grid .nexa-pf-card:nth-child(7) { animation-delay: 0.35s; }
.nexa-pf-grid .nexa-pf-card:nth-child(8) { animation-delay: 0.4s; }
.nexa-pf-grid .nexa-pf-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes nexaCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE GRID === */
@media (max-width: 1024px) {
    .nexa-pf-cols--4 { grid-template-columns: repeat(3, 1fr); }
    .nexa-pf-title { font-size: 20px;font-family:'Elms Sans','Satoshi',ui-sans-serif,system-ui,sans-serif;}
}

@media (max-width: 768px) {
    .nexa-pf-cols--3,
    .nexa-pf-cols--4 { grid-template-columns: repeat(2, 1fr); }

    .nexa-pf-grid { gap: 16px; }
    .nexa-pf-img-content { padding: 18px; }
    .nexa-pf-title { font-size: 18px; }
    .nexa-pf-excerpt { font-size: 13px; }
    .nexa-pf-body { padding: 12px 2px 0; gap: 12px; }
    .nexa-pf-btn { padding: 12px 24px; font-size: 13px; }
    .nexa-pf-filters { gap: 8px; }
    .nexa-pf-filter { padding: 8px 18px; font-size: 13px; }
    .nexa-pf-heading { margin-bottom: 28px; }
    .nexa-pf-footer { margin-top: 28px; }
}

@media (max-width: 480px) {
    .nexa-pf-cols--2,
    .nexa-pf-cols--3,
    .nexa-pf-cols--4 { grid-template-columns: 1fr; }

    .nexa-pf-title { font-size: 20px;font-family:'Elms Sans','Satoshi',ui-sans-serif,system-ui,sans-serif;}
    .nexa-pf-img-content { padding: 20px; }
}
