/* ========================================
   Personeel - Filter knoppen
   ======================================== */

.po-personeel-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    align-items: center;
    justify-content: flex-end;
}

.po-personeel-filter-btn {
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #575754;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.po-personeel-filter-btn:hover {
    border-color: #06738c;
    color: #06738c;
    background: rgba(6, 115, 140, 0.05);
}

.po-personeel-filter-btn.is-active {
    background: #06738c;
    border-color: #06738c;
    color: #ffffff;
}

.po-personeel-filter-btn.is-active:hover {
    background: #055a6e;
    border-color: #055a6e;
    color: #ffffff;
}

.po-personeel-grid .po-overige-dienst-card {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

/* Tag badge linksbovenin voor personeel - Grid en Carrousel */
.po-personeel-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.po-personeel-grid .po-overige-dienst-card:hover .po-personeel-tag,
.po-personeel-carrousel .po-overige-dienst-card:hover .po-personeel-tag {
    background: #E27203;
    color: #ffffff;
    transform: scale(1.05);
}

/* Responsive voor filterknoppen */
@media (max-width: 768px) {
    .po-personeel-filters {
        gap: 8px;
        margin-bottom: 24px;
        justify-content: flex-start;
    }

    .po-personeel-filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .po-personeel-tag {
        top: 12px;
        left: 12px;
        padding: 5px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .po-personeel-tag {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ========================================
   Personeel - Carrousel specifieke styles
   Hergebruikt de bestaande CSS van Diensten
   ======================================== */

.po-personeel-carrousel {
    position: relative;
    /* Full-bleed: gebruik volledige viewportbreedte, ongeacht de content-container van het thema */
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 60px 0;
    overflow: hidden;
}

.po-personeel-carrousel .po-personeel-carrousel-container {
    /* Full-width carrousel: geen max-width beperking */
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
}

/* Carrousel navigatie container - onder de carrousel, rechts uitgelijnd */
.po-personeel-carrousel-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 32px;
    box-sizing: border-box;
}

.po-personeel-carrousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Full-width met peek-effect: links en rechts steekt een halve kaart uit beeld */
    /* Slide-breedte is ~25%, dus half = 12.5% minus helft van de gap (7.5px) */
    padding: 0 calc(12.5% - 7.5px);
}

.po-personeel-carrousel-track {
    display: flex;
    gap: 20px;
    width: auto;
    min-width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    flex-shrink: 0;
    position: relative;
}

.po-personeel-carrousel-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
    /* Zorg dat slides niet krimpen */
    flex-shrink: 0;
}

/* Zorg dat tekst in personeel cards niet wordt afgebroken */
.po-personeel-carrousel-slide .po-overige-dienst-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* Behoud overflow: hidden voor border-radius, maar zorg dat content zichtbaar is */
    overflow: hidden;
}

.po-personeel-carrousel-slide .po-overige-dienst-content {
    overflow: visible !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    /* Behoud de originele absolute positioning maar verhoog bottom voor betere zichtbaarheid */
    position: absolute !important;
    bottom: 24px !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 24px !important;
    z-index: 10 !important;
    /* Zorg dat content niet buiten de card valt */
    box-sizing: border-box;
}

.po-personeel-carrousel-slide .po-overige-dienst-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
    hyphens: auto;
    line-height: 1.2 !important;
    overflow: visible !important;
    text-overflow: clip;
    max-width: 100%;
    display: block;
    /* Zorg dat de title zichtbaar blijft */
    position: relative;
    z-index: 11;
    margin-bottom: 4px;
}

/* Carrousel navigatie container - onder de carrousel */
.po-personeel-carrousel-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 0;
}

/* Carrousel navigatie buttons */
.po-personeel-carrousel-prev,
.po-personeel-carrousel-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #06738c;
    color: #06738c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.po-personeel-carrousel-prev:hover,
.po-personeel-carrousel-next:hover {
    background: #06738c;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(6, 115, 140, 0.3);
}

.po-personeel-carrousel-prev:active,
.po-personeel-carrousel-next:active {
    transform: scale(0.95);
}

.po-personeel-carrousel-prev:disabled,
.po-personeel-carrousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.po-personeel-carrousel-prev:disabled:hover,
.po-personeel-carrousel-next:disabled:hover {
    background: #ffffff;
    color: #06738c;
    transform: none;
}

.po-personeel-carrousel-prev svg,
.po-personeel-carrousel-next svg {
    width: 20px;
    height: 20px;
}

/* Responsive voor carrousel - Tablet */
@media (max-width: 1024px) {
    .po-personeel-carrousel {
        padding: 50px 0;
    }

    .po-personeel-carrousel-slide {
        flex: 0 0 calc(33.333% - 14px);
    }

    .po-personeel-carrousel-wrapper {
        /* Tablet: 3 kaarten in beeld met een halve kaart aan weerszijden */
        /* Slide-breedte is ~33.33%, dus half = 16.666% minus helft van de gap (~7px) */
        padding: 0 calc(16.666% - 7px);
    }

    .po-personeel-carrousel-navigation {
        max-width: 1200px;
        padding-right: 32px;
    }

    .po-personeel-carrousel-prev,
    .po-personeel-carrousel-next {
        width: 44px;
        height: 44px;
    }

    .po-personeel-carrousel-prev svg,
    .po-personeel-carrousel-next svg {
        width: 18px;
        height: 18px;
    }
}

/* Responsive voor carrousel - Mobiel */
@media (max-width: 768px) {
    .po-personeel-carrousel {
        padding: 40px 0;
    }

    .po-personeel-carrousel-slide {
        flex: 0 0 calc(100% - 20px);
    }

    .po-personeel-carrousel-wrapper {
        /* Op mobiel: kleine binnenmarge links/rechts */
        padding: 0 20px;
    }

    .po-personeel-carrousel-navigation {
        margin-top: 20px;
        gap: 10px;
        max-width: 100%;
        padding-right: 20px;
    }

    .po-personeel-carrousel-prev,
    .po-personeel-carrousel-next {
        width: 40px;
        height: 40px;
    }

    .po-personeel-carrousel-prev svg,
    .po-personeel-carrousel-next svg {
        width: 16px;
        height: 16px;
    }
}