.hero-section {
    position: relative;
    padding-block: 48px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
    @media (min-width: 991.8px) {
        padding-block: 80px;
        min-height: 756px;
    }
}

.hero-section.layout-simple {
    min-height: auto;
    background-color: #14B8A6;
    text-align: center;
    margin-bottom: 24px;
    @media (min-width: 991.8px) {
        margin-bottom: 80px;
    }
}

.hero-section.layout-simple > * {
    text-align: center;
}

.hero-section .container {
    position: relative;
}

.hero-section.align-center .row {
    align-items: center;
    row-gap: 32px;
}

.hero-section .row {
    row-gap: 32px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-section__text-wrapper h1 {
    margin-bottom: 14px;
    @media screen and(min-width: 767.8px) {
        margin-bottom: 24px;
    }
}

.hero-section__text-wrapper p {
    margin-bottom: 18px;
    @media screen and(min-width: 767.8px) {
        margin-bottom: 32px;
    }
}

.hero-section__button-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    @media screen and (min-width: 991.8px) {
        justify-content: flex-start;
    }
}

.hero-section__button-wrapper .btn {
    width: 100%;
    @media screen and (min-width: 575.8px) {
        width: auto;
    }
}

.hero-section-image-holder {
    position: relative;
}

.hero-section__iframe-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-block: 40px;
}

.hero-section__iframe-wrapper img {

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 48px);
    max-height: 100%;

}

.hero-section__iframe-wrapper iframe {
    position: relative;
    border-radius: 16px;
    z-index: 4;
}

.hero-section__teacher-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-section__teacher-inner {
    position: relative;
    width: 100%;
    /*padding-top: 100%;*/
}

.hero-section__teacher-image {
    background-image: url("/wp-content/plugins/twoforty-acf-blocks/blocks/hero-section/assets/images/hero-holder.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
}

.hero-section__teacher-image img {
    max-height: calc(100% - 30px);
    margin-inline: auto;
}

.hero-section__teacher-image {
    position: relative;
    width: 100%;
    height: 100%;
}

/*.hero-section__teacher-inner {*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    width: 100%;*/
/*    height: auto;*/
/*}*/

.hero-section__teacher-info {
    position: absolute;
    bottom: 0;
    width: 500px;
    max-width: calc(100% - 48px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    border-radius: 24px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    @media screen and (min-width: 575.8px) {
        padding: 24px 32px;
    }

}

.hero-section__teacher-info .teacher-name {
    font-size: 14px;
    line-height: 100%;
    font-weight: 700;
    width: 100%;
    flex-basis: 100%;
    @media screen and (min-width: 575.8px) {
        font-size: 24px;
    }
}

.hero-section__teacher-info .teacher-experience {
    font-size: 12px;
    line-height: 100%;
    font-weight: 400;
    width: 100%;
    flex-basis: 100%;
    @media screen and (min-width: 575.8px) {
        font-size: 18px;
    }
}

.hero-section__teacher-info .teacher-position {
    font-size: 12px;
    line-height: 100%;
    font-weight: 400;
    width: 100%;
    flex-basis: 100%;
    @media screen and (min-width: 575.8px) {
        font-size: 18px;
    }
}

.hero-section__image-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-section__image-wrapper .image-holder {
    position: relative;
    width: 410px;
    max-width: 100%;
    margin-inline: auto;
    background-color: #5EEAD4;
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

}

.hero-section__image-wrapper .image-holder img {
    position: relative;
}

.dot {
    width: 12px;
    height: 12px;
    position: absolute;
    border-radius: 50%;
    animation-name: md-circle-rotate;
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    display: none;
    z-index: 2;
    @media screen and (min-width: 991.8px) {
        display: block;
    }
}

.dot.orange {
    background-color: var(--orange-100);
}

.dot.purple {
    background-color: var(--purple-100);
}

.dot.blue {
    background-color: var(--blue-200);
}

.dot.green {
    background-color: var(--green-200);
}


.dot-1 {
    left: 0;
    top: -50px;
}

.dot-2 {
    left: 400px;
    top: 0;
}

.dot-3 {
    right: calc(50% - 50px);
    top: 50px;
}

.dot-4 {
    right: 120px;
    top: -50px;
}

.dot-5 {
    right: 50px;
    top: 50px;
}

.dot-6 {
    left: 0;
    bottom: -50px;
}

.dot-7 {
    left: calc(50% - 50px);
    bottom: 50px;
}

.dot-8 {
    right: 0;
    bottom: 50px;
}

@keyframes md-circle-rotate {
    0% {
        transform: translate(0, 25px);
    }

    12.5% {
        transform: translate(-20px, 15px);
    }

    25% {
        transform: translate(-25px, 0);
    }

    37.5% {
        transform: translate(-20px, -15px);
    }

    50% {
        transform: translate(0, -25px);
    }

    62.5% {
        transform: translate(20px, -15px);
    }

    75% {
        transform: translate(25px, 0);
    }

    87.5% {
        transform: translate(20px, 15px);
    }

    100% {
        transform: translate(0, 25px);
    }
}

.hero-section.has-custom-background-image .background-image {
    display: block;
    position: absolute;
    z-index: 0;
    width: 150%;
    bottom: -50%;
    left: -25%;
    max-width: initial;
    @media screen and (min-width: 991.8px) {
        bottom: -50%;
        right: -25%;
        left: auto;
        width: 50%;
        max-width: 100%;
    }
}