/* ************** */
/* *** BASICS *** */
/* ************** */

.mb-0 {
    margin-bottom: 0 !important;
}


/* ********************* */
/* *** COURSE FILTER *** */
/* ********************* */

.e-form__academy .e-form__group {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin-left: -10px;
    margin-right: -10px;
}

.e-form__academy .e-form__wrap {
    flex: 1 0 0;
    max-width: 100%;
    padding: 0;
    margin: 0 10px 1.875rem;
}

.e-form__academy .e-form__wrap:last-child {
    flex: 0 0 auto;
}

.e-form__academy .e-form__wrap--select .e-form__field {
    padding: .8rem calc(1.875rem * 2 + .75rem) .8rem 1.875rem;
}

.e-form__academy .e-form__wrap--select .e-form__field:focus {
    border: solid 0.0625rem transparent;
}

.e-form__academy .e-form__wrap--select::after {
    top: inherit;
    right: 1.6rem;
    bottom: 23px;
    pointer-events: none;
}

.e-form__academy .e-form__label {
    padding-left: 1.125rem;
}

.e-form__academy .e-form__field {
    padding-top: .8rem;
    padding-bottom: .8rem;
    border-radius: 30px;
}

.e-form__academy .e-form__field:focus-visible {
    border-color: transparent;
    outline: 2px solid #72babd;
}

.s-studentchina .e-form__academy .e-form__field:focus-visible {
    outline: 2px solid #3387c3;
}

.e-form__academy .e-form__field[type="date"] {
    padding-right: 19px;
    cursor: pointer;
}

::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.e-form__academy .e-form__submit--small {
    margin-bottom: 7px;
    position: relative;
    top: 0;
    right: 0;
    transform: none;
}


/* ************************ */
/* *** EVENTS & COURSES *** */
/* ************************ */

.academy-events,
.academy-leader,
.academy-courses,
.academy-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.academy-events .is-one,
.academy-leader .is--one,
.academy-courses .is--one,
.academy-images .is--one {
    flex: 0 0 100%;
    max-width: 100%;
}

.academy-events .c-categoryteaser .c-categoryteaser__inner {
    flex-direction: column;
    min-height: inherit;
}

.academy-events .c-categoryteaser .c-categoryteaser__inner .c-categoryteaser__header,
.academy-events .c-categoryteaser .c-categoryteaser__inner .c-categoryteaser__footer {
    width: 100%;
}

.academy-events {
    .c-categoryteaser .c-categoryteaser__inner .c-categoryteaser__footer {
        padding: 2rem;

        &:has(.icon-wrapper) {
            padding-top: 1rem;
        }

        .c-categoryteaser__title-wrapper {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            margin-bottom: 1.25rem;

            .c-categoryteaser__title {
                margin: 0;
            }

            .icon-wrapper {
                display: flex;
            }
        }
    }
}

.academy-courses {
    .c-cta__inner:has(.icon-wrapper) {
        padding-top: 1rem;
    }

    @media screen and (min-width: 576px) {
        .academy-courses_course-time:has(.icon-wrapper) {
            align-items: flex-end;
        }
    }

    .academy-courses_course-date-time-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: -1rem;

        @media screen and (min-width: 576px) {
            flex-direction: row;
            align-items: flex-end;
            justify-content: flex-end;
            gap: 0;
            margin-bottom: 0;
        }
    }

    .icon-wrapper {
        display: flex;
        justify-content: flex-end;
        order: 1;

        @media screen and (min-width: 576px) {
            justify-content: flex-start;
            order: 0;
            margin-right: 1rem;
        }
    }
}

.academy-courses a {
    color: #fff;
    text-decoration: none;
}

.academy-courses_course-time {
    font-size: 1.125rem;
    display: inline-flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
}

.academy-courses .is--secondary-1 .c-cta__inner,
.academy-courses .is--secondary-1 .c-cta__inner .c-text p,
.academy-courses .is--secondary-1 .c-cta__inner .c-text span,
.academy-courses .is--secondary-1 .c-cta__inner p,
.academy-courses .is--secondary-2 .c-cta__inner,
.academy-courses .is--secondary-2 .c-cta__inner .c-text p,
.academy-courses .is--secondary-2 .c-cta__inner .c-text span,
.academy-courses .is--secondary-2 .c-cta__inner p{
    color: #fff !important;
}

.academy-courses .is--secondary-3 .c-cta__inner,
.academy-courses .is--secondary-3 .c-cta__inner .c-text p,
.academy-courses .is--secondary-3 .c-cta__inner .c-text span,
.academy-courses .is--secondary-3 .c-cta__inner p {
    color: #158c92 !important;
}

.s-studentchina .academy-courses .is--secondary-3 .c-cta__inner,
.s-studentchina .academy-courses .is--secondary-3 .c-cta__inner .c-text p,
.s-studentchina .academy-courses .is--secondary-3 .c-cta__inner .c-text span,
.s-studentchina .academy-courses .is--secondary-3 .c-cta__inner p {
    color: #0069b4 !important;
}


.academy-courses .is--secondary-4 .c-cta__inner {
    background-color: #dceeef !important;
}

.academy-courses .is--secondary-4 .c-cta__inner,
.academy-courses .is--secondary-4 .c-cta__inner .c-text p,
.academy-courses .is--secondary-4 .c-cta__inner .c-text span,
.academy-courses .is--secondary-4 .c-cta__inner p {
    color: #158c92;
}

.s-studentchina .is--secondary-4 .c-cta__inner,
.s-studentchina .academy-courses .is--secondary-4 .c-cta__inner .c-text p,
.s-studentchina .academy-courses .is--secondary-4 .c-cta__inner .c-text span,
.s-studentchina .academy-courses .is--secondary-4 .c-cta__inner p {
    color: #0069b4;
}

.academy-leader .c-counterpart .c-counterpart__header {
    aspect-ratio: 1 / 1;
    height: inherit;
    max-height: inherit;
}

.icon-legend {
    margin-bottom: 1.25rem;

    .legend-title {
        margin-bottom: .25rem;
    }
}

.event-detail-icon-wrapper, .course-detail-icon-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0 1rem;

    @media screen and (min-width: 576px) {
    }

    @media screen and (min-width: 1024px) {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        margin-left: 1rem;
    }

    .icon {
        margin: 0;
    }
}


/* ********************* */
/* *** MEDIA QUERIES *** */
/* ********************* */

@media (min-width: 53.85rem) {
    .academy-form.o-content__inner.is--three {
        width: 100%;
    }

    .e-form__academy .e-form__group {
        flex-direction: row;
        align-items: flex-end;
    }

    .e-form__academy .e-form__wrap {
        flex: 1 0 0;
        max-width: 33%;
    }

    .academy-events {
        margin: 3.75rem -.625rem 0;
    }

    .academy-leader,
    .academy-courses,
    .academy-images {
        margin-left: -.625rem;
        margin-right: -.625rem;
    }

    .academy-events .is--one,
    .academy-leader .is--one,
    .academy-courses .is--one,
    .academy-images .is--one {
        flex: 0 0 50%;
    }

    .academy-events .o-content__inner,
    .academy-leader .o-content__inner,
    .academy-courses .o-content__inner,
    .academy-images .o-content__inner {
        padding: .625rem;
    }

    .academy-leader .c-counterpart,
    .academy-courses .c-cta__inner {
        height: 100%;
    }
}

@media (min-width: 64.1rem) {
    .academy-form.o-content__inner.is--three {
        width: 66%;
    }

    .e-form__academy {
        margin-top: 3.75rem;
    }

    .academy-events .is--one,
    .academy-leader .is--one,
    .academy-courses .is--one,
    .academy-images .is--one {
        flex: 0 0 calc(100% / 3);
        padding: 0 .625rem 2.5rem;
    }

    .academy-images .is--one,
    .academy-courses .is--one {
        padding: 0 .625rem;
    }

    .academy-leader .c-counterpart {
        margin-bottom: 0;
    }
}

@media (min-width: 80.1rem) {
    .academy-events .c-categoryteaser .c-categoryteaser__inner {
        min-height: 53.88rem;
    }
}
