/* HEADER */
.header {
    background-color: var(--background);
    box-shadow: 0 4px 40px 0 #eaeef1;
}

.header-wrapper {
    color: var(--black)000;
    padding: 1em 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a img {
    display: block;
    height: 70px;
}

.header-nav {
    color: var(--black)000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.header-nav a {
    color: var(--black);
    font-size: 16px;
    transition: all 0.1s ease-in-out;
    display: inline-block;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: transform 0.25s ease-out;
    transform-origin: bottom right;
}

.header-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.header-button .button {
    padding: 10px 20px;
    height: 40px;
    transition: background 0.2s;
}

.header-button .button:hover {
    background: var(--primary-light);
}




/* MOBILE NAVBAR */
.mobile-header-wrapper {
    opacity: 0;
}

#menuToggle {
    display: block;
    position: fixed;
    top: 32px;
    left: 30px;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
}

#menuToggle a {
    text-decoration: none;
    color: #232323;
    transition: color 0.3s ease;
}

#menuToggle a:hover {
    color: var(--primary);
}

#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
}

#menuToggle span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: var(--primary);
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

#menuToggle input:checked~span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
}

#menuToggle input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked~span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}

#menu {
    position: absolute;
    max-width: 400px;
    width: 100vw;
    max-height: 100vh;
    margin: -100px 0 0 -50px;
    padding: 50px;
    padding-top: 125px;
    box-sizing: border-box;
    overflow-y: auto;
    background: var(--primary-content);
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    border-radius: 0 0 20px 0;
}

#menu li {
    padding: 10px 0;
    font-size: 22px;
}

#menu li label {
    cursor: pointer;
}

#menuToggle input:checked~ul {
    transform: none;
}













/* ABOUT */

.about {
    padding-top: 120px;
    margin-bottom: 120px;
    background-image: url('/assets/img/hero_bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: calc(100dvh - 82px);
}

.about-info {
    height: 100%;
}

.about-info h1 {
    padding-top: calc(100dvh / 2 - 260px);
    text-align: center;
    color: var(--primary);
    font-size: 56px;
}

.about-info a {
    display: none;
    margin: 0 auto;
    margin-top: 95px;
    width: 350px;
    padding: 10px 20px;
    height: 70px;
    font-size: 20px;
    background: linear-gradient(100deg, var(--primary-light) 0%, var(--primary) 100%);
    transition: background 0.4s ease, transform 0.3s ease;
    background-size: 200% 100%;
    background-position: 0% 0%;
}

.about-info p {
    text-align: center;
    color: var(--black-light);
    font-size: 26px;
    font-weight: 600;
    margin-top: 80px;
}

.about-info a:hover {
    background-position: 100% 0%;
    transform: scale(1.05)
}


.about-img {
    margin-top: 60px;
}

.about-img img {
    display: block;
    margin: 0 auto;
}




/* TEACHERS / TUTORS */

.teachers {
    padding-top: 20px;
    padding-bottom: 163px;
    background: linear-gradient(to bottom, var(--background), #f8faff);
}

.teachers-wrapper h2 {
    font-size: 48px;
    text-align: center;
}

.teachers-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}


.teacher-card {
    width: 300px;
    height: 400px;
    perspective: 1000px;
}

.teacher-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}


/* Desktop: flip on hover. Mobile: flip with .flipped class */
.teacher-card:hover .teacher-card-inner {
    transform: rotateY(180deg);
}

.teacher-card-inner.flipped {
    transform: rotateY(0deg) !important;
}


.teacher-card-front,
.teacher-card-back {
    overflow: hidden;
    border-radius: 20px;
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.teacher-card-front {
    color: black;
}

#teacher-mykhailo .teacher-card-inner .teacher-card-front {
    border: var(--secondary-light) 4px solid;
    width: 308px;
    height: 408px;
    margin-top: -8px;
}

#teacher-mykhailo .teacher-card-inner .teacher-card-back {
    border: var(--secondary-light) 4px solid;
    width: 308px;
    height: 408px;
    margin-top: -8px;
}

.teacher-card-front img {
    width: 100%;
    height: 100%;
}

.teacher-card-back {
    background-color: var(--background);
    color: rgb(0, 0, 0);
    transform: rotateY(180deg);
    border: 2px solid var(--black);
    text-align: left;
}

.teacher-card h3 {
    text-align: center;
    margin-top: 6px;
}

.teacher-card-back ul {
    margin-top: 24px;
    padding-right: 0px;
    padding-left: 28px;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
}

.teacher-card-back li {
    margin-bottom: 8px;
}









/* WHY US / PROS */

.pros {
    padding-top: 20px;
    padding-bottom: 120px;
    background: rgba(0, 0, 0, 0.5);
    background-image: url(/assets/img/classroomPhoto.webp);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.pros-wrapper h2 {
    font-size: 48px;
    text-align: center;
}

.pros-items {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.pros-item {
    width: 40%;
    border-radius: 36px;
    padding: 20px;
    color: var(--foreground);
}

.pros-item img {
    width: 100px;
    display: block;
    margin-bottom: 20px;
}

.pros-item h3 {
    font-size: 26px;
    margin-bottom: 4px;
    color: var(--black);
}

.pros-item p {
    color: var(--black);
}

#pros-item-1 {
    background-color: var(--primary);

    h3 {
        color: var(--foreground);
    }

    p {
        color: var(--foreground);
    }
}

#pros-item-2 {
    color: var(--black);
    background-color: var(--secondary);

    p {
        color: var(--black);
    }
}

#pros-item-3 {
    background-color: var(--tertiary);

    h3 {
        color: var(--foreground);
    }

    p {
        color: var(--foreground);
    }
}

.bonus-pros-item {
    background-color: none;
    color: var(--black);
    border: var(--primary) 4px solid;
    border-radius: 36px;
    padding: 40px;
    margin-top: 20px;
    display: flex;
    gap: 40px;
}

.bonus-pros-item img {
    width: 160px;
    display: block;
    margin-right: 20px;
}

.bonus-pros-item h3 {
    color: var(--primary);
}

.bonus-pros-item .content-right p {
    margin-top: 8px;
    font-size: 18px;
}

.bonus-pros-item .button {
    margin-top: 60px;
    width: 400px;
    padding: 10px 20px;
    height: 70px;
    font-size: 20px;
    background: var(--tertiary);
    color: var(--foreground);
    font-weight: 600;
    transition: background 0.4s ease, transform 0.3s ease;
    background-size: 200% 100%;
    background-position: 0% 0%;
}

.bonus-pros-item .button:hover {
    background-position: 100% 0%;
    transform: scale(1.05)
}





.cources {
    padding-top: 20px;
    padding-bottom: 120px;
    background: linear-gradient(to top, var(--background), #f8faff);
}

.cources-wrapper h2 {
    font-size: 48px;
    text-align: center;
}

.cources-items {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cource-item {
    width: 50%;
    border-radius: 36px;
    padding: 20px;
    background-color: none;
    border: 2px solid #bbbbbb;
    display: flex;
    flex-direction: column;
}

#cource-item-1 {
    background-color: #e9ffea;
}

#cource-item-2 {
    background-color: #f7eeff;
}

.cource-item img {
    margin: 0 auto;
    width: 100px;
    display: block;
    margin-bottom: 20px;
}

.cource-item h3 {
    font-size: 32px;
    text-align: center;
}

.cource-item ul {
    padding-left: 25px;
    font-size: 18px;
}

.cource-item ul li {
    margin-bottom: 8px;
}

.cources-items .price {
    color: var(--black);
    font-size: 30px;
    font-weight: 800;
    display: block;
    margin: 0 auto;
    text-align: center;
    padding: 10px 20px;
    border-radius: 100px;
    margin-top: auto;
}

.cources-items .price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
}

.cources-wrapper a {
    margin: 0 auto;
    margin-top: 60px;
    width: 350px;
    padding: 10px 20px;
    height: 70px;
    font-size: 20px;
    background: linear-gradient(100deg, var(--primary-light) 0%, var(--primary) 100%);
    transition: background 0.4s ease, transform 0.3s ease;
    background-size: 200% 100%;
    background-position: 0% 0%;
}

.cources-wrapper a:hover {
    background-position: 100% 0%;
    transform: scale(1.05)
}





/* REVIEWS */
.reviews {
    padding-top: 60px;
    padding-bottom: 120px;
    background: rgba(0, 0, 0, 0.5);
    background-image: url(/assets/img/classroomPhoto.webp);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

.reviews-wrapper h2 {
    font-size: 48px;
    text-align: center;
}


.swiper {
    margin-top: 40px;
    width: 660px;
    height: 440px;
}

.swiper-slide {
    border: var(--border) 1px solid;
    border-radius: 18px;
    font-size: 18px;
    padding: 12px 20px 0px 20px;
    background: linear-gradient(30deg, #ffffff, #d7eed7);
}



.swiper-slide>.review-image>img {
    max-height: 340px;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

.review-image{
    width: 100%;
    height: calc(100% - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.reviewer-info {
    display: flex;
    position: absolute;
    bottom: 28px;
    gap: 16px;
}

.reviewer-info img {
    width: 56px;
}

.reviewer-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.reviewer-text span {
    font-weight: 700;
}

.reviewer-text p {
    font-weight: 400;
}

.swiper-slide:nth-child(1n) {
    background-color: rgb(206, 17, 17);
}

.swiper-slide:nth-child(2n) {
    background-color: rgb(0, 140, 255);
}

.swiper-slide:nth-child(3n) {
    background-color: rgb(10, 184, 111);
}

.swiper-slide:nth-child(4n) {
    background-color: rgb(211, 122, 7);
}

.swiper-slide:nth-child(5n) {
    background-color: rgb(118, 163, 12);
}

.swiper-slide:nth-child(6n) {
    background-color: rgb(180, 10, 47);
}

.swiper-slide:nth-child(7n) {
    background-color: rgb(35, 99, 19);
}

.swiper-slide:nth-child(8n) {
    background-color: rgb(0, 68, 255);
}

.swiper-slide:nth-child(9n) {
    background-color: rgb(218, 12, 218);
}

.swiper-slide:nth-child(10n) {
    background-color: rgb(54, 94, 77);
}






/* FREEBIES / TEST THEMES */

.freebies {
    padding-top: 20px;
    padding-bottom: 120px;
}

.freebies-wrapper h2 {
    font-size: 48px;
    text-align: center;
}

.freebies-items {
    margin-top: 60px;

    font-size: 18px;
}

.freebies-items>.main-item {
    color: var(--background);
    background-color: var(--primary);
    border-radius: 36px;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: left;
    gap: 40px;
}

.freebies-items>.main-item>.main-item-text {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
}

.freebies-items>.main-item>.main-item-text>.top-text p {
    margin-top: 8px;
}

.freebies-items>.main-item .banner {
    width: 200px;
    border-radius: 24px;
}

.freebies-items>.main-item .banner-mobile {
    display: none;
}

.freebie-button {
    height: 50px;
    width: 250px;
    background-color: var(--background);
    color: var(--primary);
    transition: background 0.2s;
}

.freebie-button:hover {
    background-color: var(--background-dark);
    transition: background 0.2s;
}

.two-items {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.two-items .freebie-item {
    color: var(--black)000;
    border: 2px solid var(--primary-light);
    border-radius: 36px;
    width: 100%;
    padding: 20px;
    gap: 100px;
}

.two-items .freebie-item img {
    border-radius: 24px;
    display: block;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
}

.two-items .freebie-item p {
    margin-top: 4px;
    margin-bottom: 20px;
}

.two-items .freebie-item .freebie-button {
    background-color: var(--primary);
    color: var(--background);
    transition: background 0.2s;
}

.two-items .freebie-item .freebie-button:hover {
    background-color: var(--primary-light);
    transition: background 0.2s;
}

.freebies-wrapper>a {
    margin: 0 auto;
    margin-top: 60px;
    width: 350px;
    padding: 10px 20px;
    height: 70px;
    font-size: 20px;
    background: linear-gradient(100deg, var(--primary-light) 0%, var(--primary) 100%);
    transition: background 0.4s ease, transform 0.3s ease;
    background-size: 200% 100%;
    background-position: 0% 0%;
}

.freebies-wrapper>a:hover {
    background-position: 100% 0%;
    transform: scale(1.05)
}




/* FREE THEME PAGE */

.freeTheme {
    padding-top: 120px;
    padding-bottom: 120px;
}

.home-button {
    width: 350px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: var(--primary);
    color: var(--foreground);
    transition: background 0.2s;
    margin-bottom: 20px;
}

.home-button:hover {
    background-color: var(--primary-light);
    transition: background 0.2s;
}



.freeTheme-wrapper h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 40px;
}


.freeTheme-video {
    margin-bottom: 40px;
}

.freeTheme-video .video-inner {
    width: 900px;
    height: 500px;
    margin: 0 auto;
}

.freeTheme-video .video-inner iframe {
    width: 100%;
    height: 100%;
}

.freeTheme-video a {
    margin-top: 12px;
    color: var(--black);
    display: block;
    text-align: center;
}

.freeTheme-video a img {
    width: 14px;
}








.materials-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.materials-item {
    border: 4px solid var(--primary);
    border-radius: 36px;
    padding: 20px;
    width: 440px;
    text-align: center;
}

.materials-item img {
    width: 200px;
}

.materials-button {
    margin: 0 auto;
    margin-top: 20px;
    color: var(--background) !important;
    padding: 10px 20px;
    height: 44px;
    width: 250px;
    transition: background 0.2s;
}

.materials-button:hover {
    background: var(--primary-light);
}

.test-item {
    margin: 0 auto;
    margin-top: 40px;
    border: 4px solid var(--primary);
    border-radius: 36px;
    padding: 20px;
    width: 920px;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 40px;
}

.test-item img {
    width: 200px;
}


.test-button {
    text-align: center;
    margin-top: 24px;
    color: var(--background) !important;
    padding: 10px 20px;
    height: 44px;
    width: 250px;
    transition: background 0.2s;
}

.test-button:hover {
    background: var(--primary-light);
}






/* FOOTER */

.footer {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #152230;
    color: var(--background);
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-wrapper>p {
    font-size: 14px;
    margin-bottom: 40px;
}

.footer-wrapper>.copyright {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #91a7c0;
}



.socials {
    margin: 0 auto;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
}

.social-item {
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 0.5px solid #46505c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

.social-item img {
    width: 24px;
    height: 24px;
}


.contact {
    margin: 0 auto;
    margin-bottom: 40px;
    display: flex;
    gap: 28px;
}

.contact-item {
    font-size: 16px;
    color: #91a7c0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-item a{
    color: #91a7c0 !important;
    text-decoration: none;
}

.contact-item:hover {
    filter: brightness(1.4);
}

.contact-item img {
    width: 20px;
    height: 20px;
}

.division-line {
    width: 1px;
    height: 20px;
    background-color: #2e3c4d;
}








/* MODAL (POPUP for sign-ups) */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 20px;
    width: 60%;
    height: min-content;
}

.modal-content h3 {
    text-align: center;
}

.messenger-selection {
    margin-top: 40px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.messenger-selection>a>img {
    width: 100px;
    display: block;
    margin: 0 auto;
}

.modal-content .contact-number {
    font-size: 24px;
    font-weight: 700;
    display: block;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    color: var(--black);
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-top: -10px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}























/* RESPONSIVE */

/* Large: 992px - 1199px */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .about {
        margin-bottom: 60px;
    }

    .about-info h1 {
        padding-top: calc(100dvh / 2 - 350px);
    }

    .about-info .button {
        margin-top: 60px;
    }

    .about-info p {
        margin-top: 60px;
    }

    .about-img img {
        width: 870px;
    }

    .teachers-wrapper h2 {
        font-size: 40px;
    }

    .teacher-card {
        width: 250px;
        height: 333px;
    }

    #teacher-mykhailo .teacher-card-inner .teacher-card-front {
        width: 258px;
        height: 341px;
        margin-top: -8px;
    }

    #teacher-mykhailo .teacher-card-inner .teacher-card-back {
        width: 258px;
        height: 341px;
        margin-top: -8px;
    }


    .header-button {
        display: none;
    }

    .header-nav {
        margin: 0 auto;
    }

    .about-info a {
        display: flex;
    }

    .teacher-card-back ul {
        font-size: 14px;
    }

    .swiper {
        width: 550px;
        height: 366px;
    }
    

    .swiper-slide {
        padding: 20px;
        font-size: 16px;
    }

    .swiper-slide>.review-image>img {
        max-width: 500px;
        max-height: 280px;
        display: block;
        margin: 0 auto;
    }

    .review-image{
        height: calc(100% - 70px);
    }

    .reviewer-info img {
        width: 48px;
        border-radius: 50%;
    }

    .pros-wrapper h2 {
        font-size: 40px;
    }

    .cources-wrapper h2 {
        font-size: 40px;
    }

    .reviews-wrapper h2 {
        font-size: 40px;
    }

    .freebies-wrapper h2 {
        font-size: 40px;
    }

    .freeTheme-wrapper h2 {
        font-size: 40px;
    }
}

/* Medium: 768px - 991px */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .about {
        padding-top: 60px;
        padding-bottom: 60px;
        margin-bottom: 0;
    }


    .teachers {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .pros {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .cources {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .reviews {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .freebies {
        padding-top: 60px;
        padding-bottom: 60px;
    }


    .header-logo a img {
        height: 50px;
    }

    .header-nav a {
        font-size: 14px;
    }

    .about-info h1 {
        font-size: 36px;
    }

    .about-info p {
        font-size: 18px;
    }

    .about-info a {
        width: 300px;
        height: 60px;
        font-size: 18px;
    }

    .about-img {
        margin-top: 20px;
    }

    .about-img img {
        width: 600px;
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 100px 40px;
        padding-bottom: 40px;
    }

    .teacher-card {
        margin: 0 auto;
    }

    .cources-items {
        gap: 10px;
    }

    .cource-item {
        padding: 5px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .cource-item h3 {
        font-size: 28px;
    }

    .cource-item ul {
        padding-left: 20px;
    }

    .cources-items .price {
        font-size: 28px;
    }

    .freebies-items h3 {
        font-size: 24px;
    }

    .freeTheme-wrapper h2 {
        font-size: 32px;
    }


    .freeTheme-video .video-inner {
        width: 700px;
        height: 380px;
    }

    .test-item {
        width: 100%;
    }
}

/* Small: 576рx - 767px */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    .header {
        position: relative;
        z-index: 100;
    }

    .header-nav {
        display: none;
    }

    .header-logo {
        margin: 0 auto;
    }

    .mobile-header-wrapper {
        opacity: 1;
    }

    .about-info h1 {
        font-size: 32px;
    }

    .about-info p {
        font-size: 16px;
    }

    .about-info a {
        width: 250px;
        height: 50px;
        font-size: 16px;
    }

    .about-img img {
        width: 480px;
    }

    .teacher-card {
        width: 200px;
        height: 266px;
    }

    .teacher-card-back ul {
        font-size: 11px;
    }

    #teacher-mykhailo .teacher-card-inner .teacher-card-front {
        width: 208px;
        height: 274px;
        margin-top: -8px;
    }

    #teacher-mykhailo .teacher-card-inner .teacher-card-back {
        width: 208px;
        height: 274px;
        margin-top: -8px;
    }

    .pros-items {
        flex-direction: column;
        gap: 20px;
    }

    .pros-item {
        width: 100%;
    }

    .bonus-pros-item .content-right .button {
        width: 240px;
    }

    .swiper {
        width: 450px;
        height: 300px;
    }

    .swiper-slide {
        padding: 20px;
        font-size: 14px;
    }

    .swiper-slide>.review-image>img {
        max-width: 400px;
        max-height: 200px;
        display: block;
        margin: 0 auto;
    }

    .review-image{
        height: calc(100% - 60px);
    }

    .freebie-item .button {
        width: 200px;
    }

    .main-item p {
        font-size: 14px;
    }

    .freebie-item p {
        font-size: 14px;
    }

    .freeTheme {
        padding-top: 60px;
    }

    .freeTheme-video .video-inner {
        width: 500px;
        height: 280px;
    }

    .materials-item {
        width: 250px;
    }

    .materials-item img {
        width: 150px;
    }

    .materials-button {
        width: 200px;
    }

    .test-button {
        width: 200px;
    }

    .materials-item h3 {
        font-size: 24px;
    }

    .test-item .right-content h3 {
        font-size: 24px;
    }

    .test-item p {
        font-size: 14px;
    }

    .about {
        background-image: url('/assets/img/hero-bg-mobile.webp');
    }
}

/* Extra small: 0px (320px) - 575px */
@media (max-width: 575px) {
    .container {
        width: 95vw;
        padding: 0 15px;
    }




    .teachers-wrapper h2 {
        font-size: 28px;
    }

    .teachers-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 80px;
    }

    .teacher-card {
        width: 250px;
        height: 333px;
    }

    .teacher-card h3 {
        font-size: 24px;
        margin-top: 12px;
    }

    .teacher-card-back ul {
        font-size: 12px;
    }

    #teacher-mykhailo {
        order: -1;
    }

    #teacher-mykhailo .teacher-card-inner .teacher-card-front {
        width: 258px;
        height: 341px;
        margin-top: -8px;
    }

    #teacher-mykhailo .teacher-card-inner .teacher-card-back {
        width: 258px;
        height: 341px;
        margin-top: -8px;
    }

    .pros-wrapper h2 {
        font-size: 28px;
    }

    .pros-item h3 {
        font-size: 24px;
    }

    .pros-item p {
        font-size: 14px;
    }

    .bonus-pros-item {
        flex-direction: column;
        padding: 20px;
    }

    .cources-wrapper h2 {
        font-size: 28px;
    }

    .cources-items {
        flex-direction: column;
        gap: 20px;
    }

    .cource-item {
        width: 100%;
        padding: 20px;
    }

    .cource-item h3 {
        font-size: 24px;
    }

    .cource-item li {
        font-size: 14px;
    }

    .cources .button {
        width: 100%;
        text-align: center;
    }

    .reviews-wrapper h2 {
        font-size: 28px;
    }

    .swiper {
        width: 100%;
    }

    .swiper-slide {
        padding: 0px 10px 10px 10px;
    }

    .swiper-slide>.review-image>img {
        max-width: 90%;
        max-height: 200px;
        display: block;
        margin: 0 auto;
    }

    .review-image{
        height: calc(100% - 50px);
    }

    .slide-text span {
        display: none;
    }

    .slide-text p {
        font-size: 14px;
    }

    .reviewer-info img {
        width: 48px;
        height: 48px;
    }

    .reviewer-text {

        gap: 0;
    }

    .freebies-wrapper h2 {
        font-size: 28px;
    }

    .main-item {
        flex-direction: column;
        gap: 20px !important;
    }

    .main-item .banner {
        display: none;
    }

    .main-item .banner-mobile {
        display: block !important;
        border-radius: 20px;
    }

    .main-item-text .top-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .main-item-text>.button {
        margin-top: 20px;
        width: 100%;
    }

    .two-items {
        flex-direction: column;
    }

    .freebies-wrapper>.button {
        width: 100%;
    }

    .freebie-button {
        margin: 0 auto;
    }

    .contact {
        flex-direction: column;
    }

    .division-line {
        display: none;
    }

    .freeTheme-wrapper>a {
        font-size: 14px;
    }

    .freeTheme-wrapper h2 {
        font-size: 24px;
    }


    .freeTheme-video .video-inner {
        width: 100%;
        height: 200px;
    }

    .materials-grid {
        flex-direction: column;
        margin-top: 60px;
    }

    .materials-item {
        margin: 0 auto;
    }

    .test-item {
        flex-direction: column;
        width: 250px;
    }

    .test-item img {
        width: 150px;
    }

    .modal-content {
        width: 90%;
        height: auto;
    }

    .modal-content .contact-number {
        font-size: 18px;
    }
}










@media (max-height: 500px) {
    .about {
        height: 400px;
    }
}


@media (max-width: 1199px) and (max-height: 550px) {
    .about {
        height: 500px;
    }
}

@media (max-width: 991px) and (max-height: 420px) {
    .about {
        height: 400px;
    }
}

@media (max-width: 767px) and (max-height: 420px) {
    .about {
        height: 400px;
    }
}

@media (max-width: 575px) and (max-height: 480px) {
    .about {
        height: 420px;
    }
}

@media (max-width: 991px) and (orientation: portrait) {
    .about {
        background-image: url('/assets/img/hero-bg-mobile.webp');
    }

    .about-info h1 {
        padding-top: calc(100dvh / 2 - 234px);
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    .about-info h1 {
        padding-top: calc(100dvh / 2 - 224px);
    }
}