.po-diensten-tabs {
    width: 100%;
    padding: 0;
    background: transparent;
}

.po-diensten-tabs-inner {
    display: grid;
    /* kolommen gelijk houden, overlap regelen via margin op de kaart zelf */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
    width: 100%;
    position: relative;
}

.po-diensten-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    padding: 32px 32px 8px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
    margin-top: 65px;      /* blok iets lager zodat verhouding met foto klopt */
    margin-right: -60px;   /* overlap naar rechts, over de foto heen */
}

.po-diensten-card-header {
    margin-bottom: 8px;
}

.po-diensten-card-kicker {
    font-family: Albert Sans;
    font-weight: 700;
    font-style: bold;
    font-size: 50px;
    line-height: 60px;
    letter-spacing: -2%;
}

.po-diensten-card-title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}

.po-diensten-active {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.po-diensten-active-label {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px;
    color: #0f766e;
}

.po-diensten-active-text {
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.6;
}

.po-diensten-active-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    text-decoration: none;
}

.po-diensten-active-link::after {
    content: "›";
    font-size: 18px;
    transform: translateY(1px);
}

.po-diensten-list {
    margin-top: 8px;
}

.po-diensten-row {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0;
}

.po-diensten-row:first-of-type {
    border-top: none;
}

.po-diensten-list-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border: none;
    padding: 18px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.po-diensten-list-item:first-of-type {
    border-top: none;
}

.po-diensten-list-item:hover {
    background-color: rgba(15, 23, 42, 0.02);
}

.po-diensten-list-item.is-active {
    color: #0f766e;
}

.po-diensten-list-label {
    flex: 1;
}

.po-diensten-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 36px;
    min-width: 18px;
    min-height: 36px;
    transition: transform 0.2s ease;
    font-size: 0;
    line-height: 0;
    /* Afbeelding wijst standaard naar beneden, draai -90 graden om naar rechts te wijzen */
    transform: rotate(-90deg);
}

.po-diensten-list-icon img,
.po-diensten-arrow-icon {
    width: 44px !important;
    height: 80px !important;
    display: block !important;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
    vertical-align: middle;
}

/* Verberg eventuele tekst of andere content */
.po-diensten-list-icon::before,
.po-diensten-list-icon::after {
    display: none !important;
    content: none !important;
}

.po-diensten-list-item.is-active .po-diensten-list-icon {
    /* Bij active: terug naar 0 graden (naar beneden, zoals de afbeelding zelf) */
    transform: rotate(0deg);
}

.po-diensten-row-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 0 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.po-diensten-row-body.is-open {
    max-height: 200px; /* ruim genoeg voor tekst */
    opacity: 1;
    padding-bottom: 16px;
}

.po-diensten-row-text {
    margin: 0 0 10px;
    color: #4b5563;
    line-height: 1.5;
}

.po-diensten-row-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    text-decoration: none;
}

.po-diensten-row-link::after {
    content: "›";
    font-size: 18px;
    transform: translateY(1px);
}

.po-diensten-progress {
    margin-top: 24px;
    height: 3px;
    width: 100%;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.po-diensten-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.po-diensten-progress-bar.is-animating {
    width: 100%;
    transition: width 8s linear;
}

.po-diensten-tabs-right {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    margin-top: -20px; /* subtiele verticale overlap */
    margin-left: -30px;    /* overlap met kaart links op desktop */
    max-width: 100%;
    width: 100%;
    height: 90%;
    display: flex;
    align-items: stretch;
    z-index: 1;
}

.po-diensten-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: transparent;
}

.po-diensten-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.po-diensten-image.is-visible {
    opacity: 1;
}

.po-diensten-image.placeholder {
    background: radial-gradient(circle at top left, #e5f9ff, #0f172a);
}

/* Tablet-breakpoint */
@media (max-width: 1024px) {
    .po-diensten-card {
        margin-top: 40px;
        padding: 24px 24px 8px;
    }

    .po-diensten-card-title {
        font-size: 32px;
    }

    .po-diensten-tabs-inner {
        gap: 24px;
    }

    .po-diensten-tabs-right {
        margin-top: -10px;
        margin-left: -10px;
    }
}

/* Mobiel-breakpoint */
@media (max-width: 900px) {
    .po-diensten-tabs-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .po-diensten-card {
        margin-top: 24px;
        margin-right: 0;
        padding: 20px 20px 8px;
    }

    .po-diensten-card-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .po-diensten-tabs-right {
        order: -1;          /* foto boven de kaart */
        margin-top: 0;
        margin-left: 0;
        height: auto;
    }

    .po-diensten-image-wrapper {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .po-diensten-row-body.is-open {
        max-height: 400px;  /* iets ruimer op mobiel */
    }
}

/* ========================================
   Overige Diensten - Card Layout
   ======================================== */

.po-overige-diensten {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding: 40px 0;
}

.po-overige-diensten-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.po-overige-dienst-card {
    position: relative;
    display: block;
    width: 100%;
    /* verhouding uit Figma: 392.67 x 276 */
    aspect-ratio: 392.67 / 276;
    /* rechtsonder geen radius, zodat button strak aansluit */
    border-radius: 15px 15px 0 15px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.po-overige-dienst-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.po-overige-dienst-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.po-overige-dienst-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.po-overige-dienst-card:hover .po-overige-dienst-image {
    transform: scale(1.05);
}

.po-overige-dienst-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    border-radius: 15px 15px 0 15px;
}

.po-overige-dienst-content {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    padding: 0 24px;
    z-index: 2;
}

.po-overige-dienst-title {
    font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 23px;
    line-height: 100%;
    letter-spacing: 0;
    color: #ffffff !important;
    margin: 0;
    transition: transform 0.3s ease;
    transform: translateY(0);
}

.po-overige-dienst-readmore {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.po-overige-dienst-readmore::after {
    content: "";
    display: inline-block;
    width: 31px;
    height: 8px;
    margin-left: 8px;
    background-image: url("https://peters.conversie.partners/wp-content/uploads/2025/12/Arrow-1.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.po-overige-dienst-card:hover .po-overige-dienst-title {
    transform: translateY(-8px);
}

.po-overige-dienst-card:hover .po-overige-dienst-readmore {
    opacity: 1;
    max-height: 40px;
    transform: translateY(0);
}

.po-overige-dienst-button {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 53px;
    height: 53px;
    /* alleen de andere hoeken afgerond, rechtsonder is scherp */
    border-radius: 15px 0 0 0;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.po-overige-dienst-button-icon {
    width: 18px;
    height: 36px;
    display: block;
    object-fit: contain;
    /* Icoontje wijst standaard naar beneden, draai -90 graden om naar rechts te wijzen */
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
}

.po-overige-dienst-card:hover .po-overige-dienst-button {
    background: #6fbfbd;
    transform: scale(1.05);
}

/* Icoontje blijft altijd naar rechts wijzen, ook bij hover */
.po-overige-dienst-card:hover .po-overige-dienst-button-icon {
    transform: rotate(-90deg);
}

/* Responsive voor Overige Diensten */
@media (max-width: 768px) {
    .po-overige-diensten-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }

    .po-overige-dienst-card {
        max-width: 100%;
        height: auto;
        aspect-ratio: 392.67 / 276;
    }

    .po-overige-dienst-title {
        font-size: 20px;
    }

    .po-overige-dienst-button {
        width: 44px;
        height: 44px;
        border-radius: 15px 0 0 0;
    }
}

