:root {
    --panel-title-speed: .25s;
}


.panel {
    margin-block: 6rem;
    margin-right: 1rem;
    display: flex;
    justify-content: center;
}

.panel article {
    flex: 1;
    padding: 1rem;
    padding-right: 1.5rem;
    box-shadow: 0 .5rem 3rem rgb(0, 0, 0, .1);
    transition: background-color var(--panel-title-speed) ease-out;
}

.panel:hover article {
    background-color: rgb(255, 255, 255, .9);
}

.panel article .title {
    margin-block: .5rem;
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: color var(--panel-title-speed) ease-out;
}

.panel:hover article .title {
    color: white;
}

.panel article .title::before {
    content: "";
    width: 1rem;
    position: absolute;
    inset-block: 0;
    left: -1.5rem;
    z-index: -1;
    background-color: var(--logo-blue-color);
    transition: width var(--panel-title-speed) ease-out;
}

.panel:hover article .title::before {
    width: calc(100% + 1.5rem + 2rem);
}

.panel article .text {
    padding-inline: .5rem;
    padding-bottom: 1rem;
}

.panel img {
    width: 45%;
    /* max-height: 90vh; */
    margin: -1rem;
    z-index: 1;
    object-fit: cover;
    box-shadow: 0 .5rem 1rem rgb(0, 0, 0, .3);
}



@media (max-width: 992px) {
    .panel {
        margin-right: 0;
        flex-direction: column;
    }

    .panel article {
        padding-bottom: 2rem;
        background-color: rgb(255, 255, 255, .9);
    }

    .panel img {
        width: 90%;
        margin-top: -2rem;
        margin-inline: auto;
    }
}
