.how-it-works {
    /* padding-top: 4rem; */
    display: grid;
    row-gap: 2rem;
}

.how-it-works h2 {
    text-align: center;
}

.guide-container {
    display: flex;
    column-gap: 2rem;
    row-gap: 2rem;
    /* justify-content: center; */
    flex-wrap: wrap-reverse;
}

.listers-guide {
    flex-wrap: wrap;
}

.guide-container > * {
    border-radius: .8rem;
    padding: 2rem 1rem;
    box-shadow: var(--slimBoxShadow);
    min-height: 29rem;
    position: relative;
    overflow: hidden;
    display: grid;
}

.guide-container > *:not(article) {
    background: linear-gradient(to bottom right, var(--primaryGreen), #4A8A43);
    background-color: var(--primaryGreen);
    width: min(30rem, 90vw);
}



.guide-ellipse {
    width: 22rem;
    position: absolute;
}

.guide-ellipse.top-right {
    top: -4rem;
    right: 0;
}

.guide-ellipse.bottom-left {
    left: -1rem;
    bottom: -2rem;
}
.guide-ellipse.bottom-right {
    right: -1rem;
    bottom: -6rem;
}

.guide-img {
    position: absolute;
    bottom: 0;
    width: 50%;
    min-width: 15rem;
    justify-self: center;
    z-index: var(--indexTwo);
}

.guide-container header {
    display: grid;
    row-gap: 1rem;
    align-content: flex-start;
}

.guide-container article {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    flex-grow: 1;
    align-items: center;
}


.guide-container > article > * {
    max-width: 30rem;
}

.guide-container ul {
    display: grid;
    row-gap: 1rem;
    padding: 0;
}

.guide-container article li {
    background-color: var(--backgroundGray);
    padding: .5rem 1rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    column-gap: .5rem;
}

.guide-container li > :first-child {
    background-color: var(--primaryWhite);
    border-radius: var(--circularBorderRadius);
    width: 2rem;
    height: 2rem;
    padding: .3rem;
    display: grid;
    place-content: center;
}

.guide-container li > :first-child img {
    width: 1.3rem;
    height: 100%;
}


.guide-cta {
    border: 1px solid var(--primaryGreen);
    text-align: center;
    color: var(--primaryWhite);
    background-color: var(--primaryGreen);
    font-size: .8rem;
    padding: .5rem 1rem;
    border-radius: .5rem;
    width: max-content;
    justify-self: center;
    margin: 0 auto;
    transition: .2s ease-in-out;
}
.guide-cta:hover {
    background-color: var(--secondaryGreen);
    transition: .2s ease-in-out;
}
.guide-cta:active {
    transform: scale(.8);
    transition: .2s ease-in-out;
}


.lister-db-img {
    position: absolute;
    bottom: -2rem;
    width: 100%;
    min-width: 25rem;
    right: -.5rem;
}

.lister-rating-img {
    position: absolute;
    top: 2rem;
    width: 80%;
    justify-self: center;
    height: 5.5rem;
}

.client-guide-image {
    height: 20.5rem;
    /* height: auto; */
}

.client-notification-img {
    position: absolute;
    top: 4rem;
    width: 80%;
    justify-self: center;
    height: 5.5rem;
}


/* agents design */
.agents-guide {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0 1rem;
}

.agents-guide > * {
    border: 1px solid #F1F1F1;
    border-radius: 1rem;
    row-gap: 2rem;
    padding: .5rem .5rem 3rem .5rem;
    min-height: 25rem;
    overflow: hidden;
}

.agents-guide a {
    height: 2.5rem;
    padding: 1rem;
    width: max-content;
}



.agents-guide > :first-child {
    display: grid;
    align-content: flex-start;
    width: min(30rem, 100%);
}

.agents-guide > :first-child a {
    justify-self: center;
}
.agents-banner img {
    width: 100%;
    height: 15rem;
    /* height: 100%; */
    border-radius: 1rem;
}



.agents-guide > :nth-child(2) {
    width: min(40rem, 100%);
    display: grid;
    justify-items: center;
    position: relative;
}

.agents-guide > :nth-child(2) > div {
    /* background-color: peru; */
    width: min(25rem, 100%);
    display: grid;
    align-content: center;
    row-gap: 2rem;
}
.how-it-work-ellipses > * {
    position: absolute;
    /* outline: 1px solid greenyellow; */
    width: 100%;
    z-index: var(--indexBehind);
    /* height: 50%; */
}
.how-it-work-ellipses img {
    width: 100%;
}

.how-it-work-ellipses > :first-child {
    right: -10rem;
    top: -10rem;
}
.how-it-work-ellipses > :nth-child(2) {
    left: -10rem;
    bottom: -10rem;
}
.agents-guide h3 {
    font-size: clamp(1.2rem, 5vw + .2rem, 1.8rem);
}








/* media queries */
@media screen and (max-width: 600px) {
    .agents-guide {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 400px) {
    .lister-rating-img, .client-notification-img {
        width: 98%;
        height: 5rem;
    }
}

@media screen and (max-width: 380px) {
    .lister-db-img {
        right: -3rem;
    }
}