.success-stories {
    overflow: hidden;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.success-stories__wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.success-stories__header {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.success-stories__header h2 {
    font-size: 14px;
    font-family: var(--body-font-family);
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 5px;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__header h2 {
        font-size: 15px;
    }
}

.success-stories__header p {
    font-size: 14px;
    font-weight: normal;
    text-transform: uppercase;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__header p {
        font-size: 15px;
    }
}

.success-stories__header hr {
    margin-top: 1rem;
    width: 100%;
    border-color: var(--gray);
    border-style: dotted;
}

.success-stories__description {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__description {
        width: 30%;
    }
}

.success-stories__description h3 {
    color: var(--primary-color);
    font-size: 24px;
    letter-spacing: -1px;
    line-height: 1;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__description h3 {
        font-size: 36px;
    }
}

.success-stories__testimonials {
    width: 100%;
    padding-top: 2rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__testimonials {
        width: 65%;
    }
}

.success-stories__testimonials article {
    height: auto;
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__testimonials article {
        display: block;
        aspect-ratio: 1 / 1;
        background-color: inherit;
    }
}

.success-stories__testimonials article figure {
    flex: 1;
    aspect-ratio: 16 / 9;
    height: 100%;
    padding: 15px;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__testimonials article figure {
        flex: inherit;
        display: block;
        position: relative;
        z-index: 1;
        width: 100%;
        padding: unset;
    }
}

.success-stories__testimonials article figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
}

.success-stories__testimonials article section {
    width: 100%;
    padding: 15px;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__testimonials article section {
        visibility: hidden;
        position: absolute;
        z-index: 2;
        width: 100%;
        height: 100%;
        padding: unset;
    }
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__testimonials article:hover section {
        visibility: visible !important;
    }
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__testimonials article section aside {
        position: absolute;
        z-index: 2;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.75);
        border-top-right-radius: 50px;
        border-bottom-left-radius: 50px;
    }
}


/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__testimonials article section header {
        padding: 2rem;
        padding-bottom: 0;
        position: relative;
        z-index: 3;
    }
}

.success-stories__testimonials article section header p {
    font-size: 13px;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__testimonials article section header p {
        color: var(--white);
        font-size: 13px;
    }
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__testimonials article section footer {
        padding: 2rem;
        position: relative;
        z-index: 3;
    }
}

.success-stories__testimonials article section footer p {
    font-size: 12px;
}

/* For tablet landscape up */
@media (min-width: 900px) {
    .success-stories__testimonials article section footer p {
        color: var(--white);
        font-size: 13px;
    }
}

.success-stories__testimonials article section footer hr {
    border-style: dotted;
    border-color: var(--white);
    margin-bottom: 1rem;
}
