.text-image-section {
    position: relative;
    padding-block: 48px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    @media (min-width: 991.8px) {
        padding-block: 80px;
        min-height: 756px;
    }
}
.layout-image-text .text-image-section__text-wrapper{
    order: 1;
    @media screen and (min-width: 991.8px) {
        order: 2;
    }
}
.layout-image-text .text-image-section__image-wrapper{
    order: 2;
    @media screen and (min-width: 991.8px) {
        order: 1;
    }
}
.text-image-section .container {
    position: relative;
}

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

.text-image-section .row {
    row-gap: 32px;
}

.text-image-section__text-wrapper h2,
.text-image-section__text-wrapper h4 {
    margin-bottom: 14px;
    @media screen and(min-width: 767.8px) {
        margin-bottom: 24px;
    }
}

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

.text-image-section__text-wrapper .text-content{
    margin-bottom: 24px;
}
.text-image-section__text-wrapper .text-content a {
    color: var(--black-200);
    text-decoration-line: none;
    position: relative;
    display: inline-block;
}

.text-image-section__text-wrapper .text-content a::before {
    content: "";
    display: block;
    position: absolute;
    bottom: -3px;
    height: 3px;
    background-color: var(--black-200);
    width: 100%;
    transition: 0.4s all;
}
.text-image-section__text-wrapper .text-content a:hover{
    color: var(--orange-200);
}
.text-image-section__text-wrapper .text-content a:hover::before{
    background-color: var(--orange-200);
}
.text-image-section__button-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    @media screen and (min-width: 991.8px) {
        justify-content: flex-start;
    }
}

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

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

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

.text-image-section__iframe-wrapper img {

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

}

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

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

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

.text-image-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;
}

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

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

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

.text-image-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;
    }

}

.text-image-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;
    }
}

.text-image-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;
    }
}

.text-image-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;
    }
}

.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);
    }
}