/**
 * Loile Proces Tabs — uitklapbare stappen met wisselende afbeelding,
 * naar het Bliss Mobil-ontwerp maar in de Asset Intelligence-huisstijl.
 */
.loile-ptabs {
    /* Volle rijbreedte, op de 40px-gridlijn (zelfde als de oplossingen-kaarten):
       20px eigen marge + 20px BB-module-marge */
    max-width: none;
    margin: 0 20px;
    padding: 40px;
    /* wit kader, passend bij de kaarten in de app */
    background-color: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 25px;
}

/* Titel staat in de zijkolom, op lijn met de bovenkant van de afbeelding */
.loile-ptabs__title {
    margin: 0 0 20px;
    color: #1d1d1d;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
}

.loile-ptabs__columns {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.loile-ptabs__sidebar {
    flex: 0 0 42%;
    max-width: 42%;
    display: flex;
    flex-direction: column;
}

.loile-ptabs__description {
    margin: 0 0 20px;
    color: #2b2b2b;
    font-size: 18px;
    line-height: 1.6;
}

.loile-ptabs__description p {
    margin: 0 0 0.75em;
}

.loile-ptabs__description p:last-child {
    margin-bottom: 0;
}

.loile-ptabs__button {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 18px;
    margin-bottom: 28px;
    background-color: #2563EB;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
}

.loile-ptabs__button:hover {
    background-color: #1d1d1d;
}

.loile-ptabs__list {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loile-ptabs__group {
    background-color: #f7f7f7;
    border: 1px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.loile-ptabs__group:hover {
    background-color: #f3f3f3;
}

.loile-ptabs__group.active {
    background-color: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.3);
}

.loile-ptabs__header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 22px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

/* Neutraliseer de globale theme-hover (button:hover { background:#2b7bb9 }) */
.loile-ptabs__header,
.loile-ptabs__header:hover,
.loile-ptabs__header:focus,
.loile-ptabs__header:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #1d1d1d !important;
}

.loile-ptabs__header:hover * {
    color: inherit !important;
}

.loile-ptabs__nr {
    flex-shrink: 0;
    color: #2563EB;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.loile-ptabs__item-title {
    margin: 0;
    flex-grow: 1;
    color: #1d1d1d;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.loile-ptabs__arrow {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background-color: #2563EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loile-ptabs__arrow::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -3px;
}

.loile-ptabs__group.active .loile-ptabs__arrow::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.loile-ptabs__content {
    display: none;
    padding: 0 22px 20px;
    color: #2b2b2b;
    font-size: 16px;
    line-height: 1.6;
}

.loile-ptabs__content p {
    margin: 0 0 0.75em;
}

.loile-ptabs__content p:last-child {
    margin-bottom: 0;
}

.loile-ptabs__content a {
    color: #2563EB;
}

.loile-ptabs__group.active .loile-ptabs__content {
    display: block;
    animation: loile-ptabs-fade 0.3s ease;
}

.loile-ptabs__media {
    flex: 0 0 58%;
    max-width: calc(58% - 40px);
    position: relative;
    aspect-ratio: 1 / 1;
}

.loile-ptabs__panel {
    position: absolute;
    inset: 0;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    background: #f7f7f7;
}

.loile-ptabs__panel.active {
    display: block;
    animation: loile-ptabs-fade 0.35s ease;
}

.loile-ptabs__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

@keyframes loile-ptabs-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .loile-ptabs {
        /* 20px binnenruimte: tekst in het kader valt zo op de 40px-gridlijn */
        padding: 20px;
    }

    .loile-ptabs__columns {
        flex-direction: column;
        gap: 28px;
    }

    .loile-ptabs__sidebar,
    .loile-ptabs__media {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .loile-ptabs__title {
        font-size: 2.4rem;
        margin-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loile-ptabs__group.active .loile-ptabs__content,
    .loile-ptabs__panel.active {
        animation: none;
    }
}

@media (max-width: 768px) {
    .loile-ptabs {
        /* Kader op de 40px-gridlijn, gelijk aan de FAQ-kaarten en tekstblokken */
        margin: 0 20px;
    }
}
