/* ========================================
   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);
}

/* Zorg dat de vector-knop netjes wordt getoond (zoals bij Diensten) */
.po-personeel-grid .po-overige-dienst-card,
.po-personeel-carrousel .po-overige-dienst-card {
    position: relative;
}

.po-overige-dienst-button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: #0070be;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.po-overige-dienst-button-icon {
    display: block;
    width: 18px;
    height: auto;
    transform: rotate(-90deg);
}

/* 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;
}

/* Compacte variant: 2 kaarten naast elkaar, binnen normale contentbreedte */
.po-personeel-carrousel-twoup {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    transform: none;
    padding: 60px 0;
}

.po-personeel-carrousel-twoup .po-personeel-carrousel-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.po-personeel-carrousel-twoup .po-personeel-carrousel-wrapper {
    padding: 0;
}

.po-personeel-carrousel-twoup .po-personeel-carrousel-slide {
    flex: 0 0 calc(50% - 10px);
}

/* Tekstblok onder de foto voor carrousel2 */
.po-personeel-carrousel-twoup .po-overige-dienst-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.po-personeel-carrousel-twoup .po-overige-dienst-image-wrapper {
    position: relative;
}

.po-personeel-carrousel-twoup .po-overige-dienst-content {
    position: static !important;
    padding: 28px 20px 26px !important;
    background: #ececec;
    text-align: center;
    min-height: 120px;
    transform: none !important;
}

.po-personeel-carrousel-twoup .po-overige-dienst-title {
    color: #252728;
    text-shadow: none;
    margin-bottom: 10px;
}

.po-personeel-carrousel-twoup .po-overige-dienst-readmore {
    opacity: 1;
    transform: none;
    color: #a67245;
    text-shadow: none;
    margin: 0;
}

.po-personeel-carrousel-twoup .po-overige-dienst-button {
    display: none;
}

.po-personeel-carrousel-twoup .po-overige-dienst-card:hover .po-overige-dienst-content {
    transform: none !important;
}

/* 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%;
    /* Absolute positioning onderin de kaart */
    position: absolute !important;
    bottom: 0 !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;
    transition: transform 0.25s ease;
}

.po-personeel-carrousel-slide .po-overige-dienst-title,
.po-personeel-grid .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: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
    transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

/* Lees verder standaard verbergen, alleen op hover tonen */
.po-personeel-grid .po-overige-dienst-readmore,
.po-personeel-carrousel .po-overige-dienst-readmore {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

/* Op hover: hele contentblok (titel + "Lees verder") iets omhoog */
.po-personeel-grid .po-overige-dienst-card:hover .po-overige-dienst-content,
.po-personeel-carrousel .po-overige-dienst-card:hover .po-overige-dienst-content {
    transform: translateY(-24px);
}

.po-personeel-grid .po-overige-dienst-card:hover .po-overige-dienst-readmore,
.po-personeel-carrousel .po-overige-dienst-card:hover .po-overige-dienst-readmore {
    opacity: 1;
    transform: translateY(0);
}

/* Override na algemene carrousel-regels: tekstblok onder foto voor carrousel2 */
.po-personeel-carrousel-twoup .po-personeel-carrousel-slide .po-overige-dienst-content {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    background: #ececec;
    padding: 28px 20px 26px !important;
    text-align: center;
}

.po-personeel-carrousel-twoup .po-personeel-carrousel-slide .po-overige-dienst-title {
    color: #252728;
    text-shadow: none;
}

.po-personeel-carrousel-twoup .po-personeel-carrousel-slide .po-overige-dienst-readmore {
    color: #a67245;
    text-shadow: none;
    opacity: 1;
    transform: none;
}

/* 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;
    }

    .po-personeel-carrousel-twoup .po-personeel-carrousel-slide {
        flex: 0 0 calc(100% - 20px);
    }

    .po-personeel-carrousel-twoup .po-personeel-carrousel-wrapper {
        padding: 0 20px;
    }
}

/* ========================================
   Personeel - Popup modal
   ======================================== */

.po-personeel-modal {
    position: fixed;
    inset: 0;
    /* Extra hoge z-index zodat we boven sticky headers van Avada/Fusion uitkomen */
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.po-personeel-modal.is-active {
    display: flex;
}

.po-personeel-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.po-personeel-modal-content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: column;
}

.po-personeel-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.po-personeel-modal-close:hover {
    background: #0b1220;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.5);
}

.po-personeel-modal-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.po-personeel-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.po-personeel-modal-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
}

.po-personeel-modal-title {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
}

.po-personeel-modal-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

.po-personeel-modal-text p {
    margin: 0 0 14px;
}

.po-personeel-modal-text ul,
.po-personeel-modal-text ol {
    padding-left: 20px;
    margin: 0 0 14px;
}

@media (max-width: 768px) {
    .po-personeel-modal-content {
        max-width: 92vw;
        border-radius: 14px;
    }

    .po-personeel-modal-body {
        padding: 20px 18px 22px;
    }

    .po-personeel-modal-title {
        font-size: 22px;
    }
}