.accordion-with-image {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;

    gap: 30px;

    --animation-duration: .3s;

    margin-bottom: 30px;

    height: 540px;
}

.accordion-with-image-details {
    flex-basis: 587px;
    flex-grow: 1;
    flex-shrink: 1;
}

.accordion-with-image-details details > summary::marker,
.accordion-with-image-details details > summary::-webkit-details-marker {
  display: none;
}

.accordion-with-image-details details {
    position: relative;
    padding: 10px 24px;
    background-color: rgba(231, 238, 248, 0);
    border-radius: 6px;

    transition: background-color var(--animation-duration) linear;
}

.accordion-with-image-details details[open] {
    background-color: rgba(231, 238, 248, 1);
}

.accordion-with-image-details details > summary {
    display: block;
    cursor: pointer;

    font-size: 18px;
    font-weight: 400;
    line-height: 32px;

    display: flex;
    align-items: center;
    gap: 10px;

    transition: color 300ms linear;
}

.accordion-with-image-details details:not([open]) > summary:hover {
    color: #3067DB;
}

.accordion-with-image-details details > summary svg {
    margin-left: auto;
    transition: transform var(--animation-duration) linear;
}

.accordion-with-image-details details[open] > summary svg {
    transform: rotate(180deg);
}

.accordion-with-image-content {
    transform: translateY(0px);
    opacity: 1;
}

.accordion-with-image-content p {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

.accordion-with-image-images {
    flex-basis: 677px;
    flex-grow: 1;
    flex-shrink: 1;

    position: relative;
}

.accordion-with-image-image {
    opacity: 1;
    transition: opacity var(--animation-duration) linear;
}

.accordion-with-image-image[hidden] {
    display: block;
    opacity: 0;
    width: 0;
    height: 0;
}

.accordion-with-image-image-show {
    opacity: 1;
}

.accordion-with-image-image-hide {
    opacity: 0;
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.accordion-with-image-images img {
    height: auto;
    max-width: 100%;
}

.accordion-with-image-openning .accordion-with-image-content,
.accordion-with-image-closing .accordion-with-image-content {
    height: var(--height);
    overflow: hidden;


    transition: all var(--animation-duration) linear;
}

.accordion-with-image-openning .accordion-with-image-content {
    /* height: 0px; */
}

.accordion-with-image-details details:not([open]) .accordion-with-image-content,
.accordion-with-image-closing .accordion-with-image-content {
    transform: translateY(22px);
    opacity: .5;
}


details[open].accordion-with-image-closing > summary svg {
    transform: rotate(0deg);
}
details[open].accordion-with-image-closing {
    background-color: rgba(231, 238, 248, 0);
}


.accordion-with-image-learn-more {
    margin-bottom: 10px;
}

.accordion-with-image-learn-more a {
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    color: #3067DB;

    display: flex;
    gap: .3em;
}

.accordion-with-image-learn-more a svg {
    transition: transform .3s linear;
}

.accordion-with-image-learn-more a:hover svg,
.accordion-with-image-learn-more a:active svg {
    transform: translateX(8px);
}

.accordion-with-image-details details:not([open]):not(:first-child)::after {
    content: '';
    top: 0;
    border-bottom: 1px solid #BDCCF9;
    display: block;
    position: relative;
    width: 100%;
    position: absolute;
    left: 0;
}

.accordion-with-image-details details[open] + details::after {
    display: none !important;
}

@media screen and (max-width: 800px) {
    .accordion-with-image {
        height: auto;
    }
    .accordion-with-image-images {
        display: none;
    }

    .accordion-with-image-content-image {
        display: block;
        margin-top: 20px;
    }
}