/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/*GLOBAL*/

:root {
    --ms-primary-rgb: 31, 40, 57;
    --primary: 217 91% 60%;
    --accent: 210 100% 56%;
}


:root {
    --my-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

:root {
    --ms-primary-rgb: 31, 40, 57;
    --ms-back-orange-gradient: linear-gradient(to bottom right,
            #fffbeb,
            #fff7ed);
    --ms-orange-border: hsl(48, 97%, 77%);
    --ms-light-orange-border: rgb(254, 243, 199);
    --ms-orange: #ea580c;
    --ms-brown: rgb(120 53 15 / 1);
    --ms-light-brown: rgb(180 83 9 / 1);
    --ms-orange-gradient: linear-gradient(to right, #f59e0b, #f97316);
    --ms-sm-container-width: 1024px;
    --ms-heavy-shadow: 0 0 #0000, 0 0 #0000, 0 20px 25px -5px #0000001a,
        0 8px 10px -6px #0000001a;
    --ms-transition-tf: cubic-bezier(0.4, 0, 0.2, 1);
}

.one-container.both-right .site-main,
.one-container.right-sidebar .site-main {
    margin-right: 0 !important;
}

body:has(.modal.active) {
    overflow: hidden;
}

.container.grid-container {
    width: 100% !important;
}

.form__inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.form__label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form__label-text {
    font-size: 16px;
}

.form__input {
    padding: 14px 20px;
    border: 1px solid rgb(226 232 240 / 1) !important;
    border-radius: 12px !important;
}

.form__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.form__link {
    color: rgb(100 116 139 / 1);
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    padding: 0;
    background: transparent;
}

.form__submit {
    padding: 14px 20px;
    border: 1px solid rgb(226 232 240 / 1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 52.5px;
    background: transparent;
    width: 100%;
    cursor: pointer;
    color: #000;
    text-align: center;
}

.form__submit:hover {
    background: rgb(248 250 252 / 1);
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.2s ease;
    visibility: hidden;
    opacity: 0;
    padding: 20px;
    overflow: auto;
    z-index: 1000;
    background: #00000080;
    height: 100vh;
    scrollbar-width: thin;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    display: flex;
    justify-content: center;
}

.modal-wrapper {
    padding: 30px;
    border-radius: 20px;
    background: #fff;
    /* width: max-content; */
    position: relative;
    height: max-content;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    background: transparent;
}

.mobile-overlay {
    display: none !important
}

.ex-nav-next.blocked {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.ms-status-card-second {
    position: relative;
}

.ms-status-icon-second {
    position: absolute;
    top: -5px;
    right: -5px;
    color: white;
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.ms-status-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    color: white;
    width: 35px;
    height: 35px;
    padding: 7px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.ms-status-card.completed .ms-status-icon,
.ms-status-card-second.completed .ms-status-icon-second {
    background: var(--global-color-20);
}

.ms-status-card.completed .ms-status-icon .lock-svg,
.ms-status-card-second.completed .ms-status-icon-second .lock-svg {
    display: none;
}

.ms-status-card {
    position: relative;
}

.ms-status-card>*:not(.ms-status-icon) {
    height: 100%;
}

.ms-status-card.blocked>*:not(.ms-status-icon),
.ms-status-card-second.blocked>*:not(.ms-status-icon-second) {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.ms-status-card.blocked .ms-status-icon,
.ms-status-card-second.blocked .ms-status-icon-second {
    background: #a7a7a7;
}

.ms-status-card.blocked .ms-status-icon .complete-svg,
.ms-status-card-second.blocked .ms-status-icon-second .complete-svg {
    display: none;
}

.ms-status-card.available .ms-status-icon,
.ms-status-card-second.available .ms-status-icon-second {
    display: none;
}

/* Next exercise/topic/unit flashing animation */
.ms-status-card.next-exercise .ms-exercise-card,
.ms-status-card.next-topic .ms-topic-card,
.ms-status-card.next-unit .ms-unit-card {
    animation: pulse-glow 0.8s ease-in-out 1;
    animation-delay: 1.5s;
    border: 3px solid var(--accent-color, #2563eb);
}

/* Next topic inside unit card on course page */
.ms-topic-link.next-topic-inner {
    border: 1px solid currentColor;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px 5px var(--accent-color, #2563eb), 0 0 40px 10px rgba(37, 99, 235, 0.3);
        transform: scale(1.03);
    }
}


/*GLOBAL*/
body {
    font-family: system-ui, sans-serif;
    background: #eef4ff;
    color: #374151;
}

.grid-container {
    width: 100%;
    max-width: 100%;
}

.site {
    min-height: calc(100vh - 60px)
}

p {
    margin-bottom: 10px;
    /*     direction: rtl; */
}

h2 {
    font-size: 1.2rem;
    color: #1e2e57;
    font-weight: 700 !important;
}

.ms-icon-wrapper {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 50%;
    margin-bottom: 10px;

}

.ms-box {
    padding: 1.5em 1rem;
    border-radius: 0.5rem;
    width: 100%;
    transition: .5s;
}

.ms-box-shadow {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Music Player - Account Page */
.ms-music-player {
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: 999;
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    padding: 12px 24px;
    background-color: #16a148;
}

.ms-music-player:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.ms-music-player:active {
    transform: scale(0.95);
}

.ms-music-player svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@media only screen and (max-width: 768px) {
    .ms-music-player {
        bottom: 20px;
    }
    
    .ms-music-player svg {
        width: 22px;
        height: 22px;
    }
}

.ms-box-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}


/*GLOBAL Layout*/

body .site-content {
    padding: 0 16px 40px !important;
}

.t-container {
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

.ms-wrap {
    width: 100%;
}

.ms-container {
    width: 100%;
    max-width: 1600px;
    margin: auto;
}

.ms-en:lang(he) {
    display: none;
}

.ms-he:lang(en) {
    display: none;
}

.ms-radius-box {
    border-radius: 12px;
}

.wp-block-separator {
    margin: 20px 0;
}


/*GLOBAL Layout Full width*/
body.layout-full .grid-container {
    max-width: 100%;
}

body.layout-full .site-content {
    max-width: none !important;
    padding: 0 !important;
}


/*GLOBAL Layout в контейнере*/
body.layout-narrow .site-content,
body.layout-wide .site-content {
    margin: auto;
    border-bottom: 1px solid var(--ms-light-grey);
}

body.layout-wide .site-content {
    max-width: 1600px;
}

/*GLOBAL Layout узкий*/

body.layout-narrow .site-content {
    max-width: 850px;
    margin: 2rem auto;
    background: #fdfeff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem !important;
}

@media only screen and (max-width: 768px) {
    body.layout-narrow .site-content {
        
        padding: 8rem 2rem 2rem 2rem!important;
    }
}

/* Remove margin on course page */
body.layout-narrow.single-course .site-content {
    margin: 0 auto;
}

@media only screen and (min-width: 1620px) {
    body .site-content {
        padding: 30px 0;
    }
}


/*GLOBAL Fonts*/

.ms-page-title {
    background: linear-gradient(90deg, #5CA8FF, #7679F9);
    color: white;
    text-align: center;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(68, 57, 211, 0.25);
    backdrop-filter: blur(10px);
}

.ms-page-title h1 {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 36px;
}

.ms-page-title p {
    margin-bottom: 0;
}

.ms-page-subtitle {
    margin-bottom: 25px;
    font-size: 32px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2em;
}

.ms-text-font {
    font-size: 18px;
    font-weight: normal;
    line-height: 1.4em;
}

.ms-middle-title-font {
    font-size: 24px;
    line-height: 1.2em;
    font-weight: 700;
}

.ms-small-title-font {
    font-size: 18px;
    line-height: 1.2em;
    font-weight: 700;

}

.ms-small-font {
    font-size: 16px;
    line-height: 1.4em;
}

.ms-extra-small-font {
    font-size: 14px;
}

.ms-text-center {
    text-align: center;
}


/*GLOBAL Buttons*/

.ms-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: .5s;
    padding: 10px 20px;
}

.ms-button:hover {
    color: white;
}

.ms-button-blue {
    background: linear-gradient(to right, #3b82f6, #6366f1);
}

.ms-button-blue:hover {
    background: linear-gradient(to left, #3b82f6, #6366f1);
}

.ms-button-green {
    background: linear-gradient(to right, green, #23c55e);
}

.ms-button-green:hover {
    background: linear-gradient(to left, green, #23c55e);
}

.ms-button-orange {
    background: linear-gradient(to right, var(--global-color-24), #ff9157);
}

.ms-button-orange:hover {
    background: linear-gradient(to left, var(--global-color-24), #ff9157);
}

/*GLOBAL List*/

.ms-list {
    list-style: none;
    padding: 0;
}

.ms-success-list li {
    padding-inline-start: 1.5em;
    position: relative;
    margin-bottom: 0.5rem;
    text-align: start;
}

.ms-success-list li::before {
    content: "✔";
    color: #28c76f;
    position: absolute;
    right: 0;
}


/*HEADER*/
.header {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px 20px;
    gap: 20px;
}

.header__logo {
    width: 150px;
}

/* Hamburger Button - Hidden on desktop */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    color: #374151;
    transition: color 0.3s ease;
}

.header__hamburger:hover {
    color: #f97316;
}

.header__hamburger-icon,
.header__close-icon {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header__hamburger .header__close-icon {
    display: none;
}

.header__hamburger.active .header__hamburger-icon {
    display: none;
}

.header__hamburger.active .header__close-icon {
    display: block;
}

/* Desktop Menu */
.header__menu {
    display: flex;
    align-items: center;
}

.header__menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.header__menu-list li {
    margin: 0;
}

.header__menu-list a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

/* Override WordPress automatic menu classes to prevent conflicts */
.header__menu-list .current-menu-item:not(.active) a,
.header__menu-list .current_page_item:not(.active) a,
.header__menu-list .current-page-ancestor:not(.active) a,
.header__menu-list .current-menu-ancestor:not(.active) a {
    color: #374151 !important;
}

.header__menu-list a:hover {
    color: #f97316;
}

/* Desktop Buttons */
.header__buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__discord {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.header__discord:hover {
    transform: scale(1.1);
}

.header__discord svg {
    width: 24px;
    height: 24px;
    fill: #5865F2;
}

.header__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #f97316;
    border-radius: 8px;
    background: transparent;
    color: #f97316;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.header__btn:hover {
    background: #f97316;
    color: white;
}

.header__btn svg {
    width: 24px;
    height: 24px;
}

.header__btn--login,
.header__btn--account {
    background: #f97316;
    color: white;
}

.header__btn--login:hover,
.header__btn--account:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: white;
}

/* Mobile Menu Overlay - Hidden by default */
.header__mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.header__mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.header__mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.header__mobile-overlay.active .header__mobile-menu {
    transform: translateX(0);
}

/* Mobile Menu Logo */
.header__mobile-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.header__mobile-logo img {
    width: 150px;
    max-width: 100%;
    height: auto;
}

/* Mobile Navigation */
.header__mobile-nav {
    margin-bottom: 30px;
}

.header__mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__mobile-menu-list li {
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.header__mobile-menu-list a {
    display: block;
    padding: 15px 10px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.header__mobile-menu-list a:hover,
.header__mobile-menu-list a.active {
    color: #f97316;
    background: #fff7ed;
}

/* Mobile Buttons */
.header__mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header__mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #f97316;
    border-radius: 8px;
    background: transparent;
    color: #f97316;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: center;
}

.header__mobile-btn:hover {
    background: #f97316;
    color: white;
}

.header__mobile-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.header__mobile-discord {
    background: #5865F2;
    border-color: #5865F2;
    color: white;
}

.header__mobile-discord:hover {
    background: #4752C4;
    border-color: #4752C4;
}

.header__mobile-discord svg {
    fill: white;
}

/* Mobile Responsive - Show hamburger below 921px */
@media only screen and (max-width: 921px) {
    .header__hamburger {
        display: flex;
    }

    /* Hide all desktop navigation and buttons on mobile */
    .header__menu,
    .header__buttons,
    .header__discord,
    .header__btn {
        display: none !important;
    }

    .header__mobile-overlay {
        display: block;
    }

    .header__container {
        padding: 12px 15px;
    }

}

/* Desktop - Hide mobile menu above 921px */
@media only screen and (min-width: 922px) {
    .header__hamburger,
    .header__mobile-overlay {
        display: none !important;
    }
}

.main-navigation {
    background-color: white;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.inside-navigation {
    /*     flex-direction: row-reverse; */
    align-content: center;
    justify-content: space-between !important;
    max-width: 1600px;
    margin: auto;
    padding: 5px 10px;

}

.main-title a {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.svg-home-wrapper {
    box-shadow: var(--my-shadow-lg);
    padding: 1.25rem;

    background-image: linear-gradient(to bottom right, #f97316, #f59e0b);
    border-radius: 0.75rem 12px;
}

.svg-home-wrapper svg {
    color: white;
    width: 3rem;
    height: 3rem;
}

.home h1 {
    font-size: 3.75rem !important;
}

.navigation-branding {
    margin: 0 !important;
}

nav.has-branding a {
    color: #4f46e5;
}

@media(max-width: 575px) {
    .home h1 {
        font-size: 2rem !important;
    }

    .navigate__prev-text,
    .navigate__next-text {
        display: none;
    }
}


/*Pages*/
.ms-banner-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    min-height: 300px;
    padding: 50px 10px;
    position: relative;
    /*  	 overflow: hidden;  */
}

.ms-banner-section,
.ms-banner-section a {
    color: white;
}

.ms-banner-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--ms-primary-rgb), 0.5);
    z-index: 1;
}

/* Поднимаем контент поверх оверлея */
.ms-banner-section>* {
    position: relative;
    z-index: 2;
}

@media only screen and (max-width: 768px) {
    .ms-banner-section {
        min-height: 250px;
    }
}


/* EXERCISES NAVIGATION */
.ex-nav-back {
    margin-bottom: 26px;
    max-width: 992px;
    margin-inline: auto;
    width: 100%;
}

.ex-nav-container {
    flex-direction: row-reverse;
    max-width: 992px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 1rem;
    width: 100%;
}

.ex-nav-prev {
    background: #dbeafe;
    flex-direction: row-reverse;
    color: #1d4ed8 !important;
}

.ex-nav-prev:hover {
    background: #bfdbfe;
}

.ex-nav-pages {
    background: #dbeafe;
    border: 2px solid #bfdbfe;
    padding: 8px 16px;
    border-radius: 0.75rem;
    color: #1d4ed8;
}

.ex-nav-next {
    flex-direction: row-reverse;
}

.ex-nav-next,
.ex-nav-prev {
    margin: 0 !important;
}


/*Elementor*/
.elementor-text-editor p:last-of-type {
    margin: 0;
}

.rtl input#form-field-phone {
    text-align: right;
}

/*404*/

.error404 .inside-article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 10px;
    /* 	height: 400px; */
    position: relative;
    overflow: hidden;
    text-align: center;
}

.error404 .inside-article::before {
    content: "404";
    font-weight: bold;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(100px, 50vw, 400px);
    /* адаптивный размер: от 100px до 250px */
    color: rgba(0, 0, 0, 0.05);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.error404 .inside-article .search-form {
    display: flex;
    justify-content: center;
    align-items: center;
}





/*Other*/

#toc-icon svg {
    display: inline-block;
    transition: transform 0.3s ease;
}

#toc-list {
    max-height: 500px;
    overflow: hidden;
    transition: 0.5s;
}

.toc-closed #toc-icon svg {
    transform: rotate(180deg);
}

.toc-closed #toc-list {
    max-height: 0;
    margin: 0;
    transition: 0.5s;
}

.scramble__canvas {
    position: fixed;
    top: 0px;
    left: 0px;
    pointer-events: none;
    z-index: 100;
    width: 100%;
    height: 100%;
}

/*FLOATING WHATSAPP BUTTON*/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 45px;
    height: 45px;
}

/*FOOTER*/

footer .inside-site-info {
    justify-content: center;
    position: relative;
}

.copyright-bar {
    margin: 0 !important;
}


@media only screen and (max-width: 921px) {
    footer .inside-site-info {
        flex-direction: column-reverse;
    }
}


@media only screen and (max-width: 921px) {
    .inside-footer-widgets {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .inside-footer-widgets>div {
        flex: 0 0 calc(50% - 10px);
    }

    .inside-footer-widgets>div:first-child {
        flex: 0 0 100%;
    }
}


/*ANIMATIONS*/

.animate-bounce {
    animation: bounce 1s infinite;
}


@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-20deg);
    }

    75% {
        transform: rotate(20deg);
    }
}

@keyframes rotate {
    0% {
        transform: none;
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rising {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse {
    50% {
        opacity: 0.5;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    70% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.submitting .btn,
.state-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
    background: #222 !important;
}

.submitting .btn:before,
.state-loading:before {
    content: "";
    display: inline-block;
    width: 4rem;
    height: 4rem;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0iIiB3aWR0aD0iMjAwcHgiIGhlaWdodD0iMjAwcHgiIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+CjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0U5QjQzRSIgc3Ryb2tlLXdpZHRoPSIyIj4KICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJyIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxcyIgdmFsdWVzPSIwOzQwIiBrZXlUaW1lcz0iMDsxIiBrZXlTcGxpbmVzPSIwIDAuMiAwLjggMSIgY2FsY01vZGU9InNwbGluZSIgYmVnaW49IjBzIi8+CiAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMXMiIHZhbHVlcz0iMTswIiBrZXlUaW1lcz0iMDsxIiBrZXlTcGxpbmVzPSIwLjIgMCAwLjggMSIgY2FsY01vZGU9InNwbGluZSIgYmVnaW49IjBzIi8+CjwvY2lyY2xlPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2VlZSIgc3Ryb2tlLXdpZHRoPSIyIj4KICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJyIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxcyIgdmFsdWVzPSIwOzQwIiBrZXlUaW1lcz0iMDsxIiBrZXlTcGxpbmVzPSIwIDAuMiAwLjggMSIgY2FsY01vZGU9InNwbGluZSIgYmVnaW49Ii0wLjVzIi8+CiAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMXMiIHZhbHVlcz0iMTswIiBrZXlUaW1lcz0iMDsxIiBrZXlTcGxpbmVzPSIwLjIgMCAwLjggMSIgY2FsY01vZGU9InNwbGluZSIgYmVnaW49Ii0wLjVzIi8+CjwvY2lyY2xlPgo8L3N2Zz4=) no-repeat center/cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 22;
}

/* ========================================
   Additional Custom CSS from WordPress Admin
   ======================================== */

@media only screen and (min-width: 768px) {
	.woocommerce-Price-amount bdi {
    font-size: 32px !important;
    font-weight: bold;
	}	
}

@media only screen and (max-width: 768px) {
.account-header {
	flex-direction: column-reverse;
}
}

@media only screen and (min-width: 768px) {
	.ms-promo-video-container {
		display: none;
	}
}

.woocommerce-lost-password .entry-content {
    max-width: 1000px;
    margin: auto;
}

.woocommerce-lost-password .woocommerce-ResetPassword p:first-child {
    text-align: center;
    font-weight: bold;
}

.woocommerce-lost-password .woocommerce-ResetPassword {
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  flex-direction: column;
	  flex-wrap: nowrap;
	max-width: 600px;
	margin: auto;
}

header .footer__network {
	background-color: rgb(249 115 22 / 1);
}

header .footer__network:hover {
	background-color: rgb(234 88 12 / 1);
}

/* по умолчанию скрываем */
.account-community { display: none; }

body:has(#community-tab:checked) .account-community {
	display: block;
}

.account-community__inner {
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  flex-direction: column;
	  flex-wrap: nowrap;
	  gap: 20px;
}
.account-community__text {
	font-weight: bold;
	font-size: 20px;
}

@media only screen and (max-width: 768px) {
	.ms-topic-page {
		padding: 0;
	}
	
	.t-container {
		padding: 10px 0; 
	}
}

.woocommerce-billing-fields label {
   	font-weight: 700;
   	font-size: .875rem;
   	margin-bottom: 5px;
   }

   .woocommerce form input {
   	background-color: hsl(250 100% 98%) !important;
   	border-color: hsl(240 6% 90%) !important;
   	color: grey !important;
   }

   .woocommerce-privacy-policy-text {
   	font-size: 0.875rem;
   	line-height: 1.25rem;
   }

   .woocommerce-billing-fields h3 {
   	font-size: 1.5rem;
   	font-weight: 700 !important;
   }

 .woocommerce form  button[type = "submit"] {
   	width: 100%;
   	margin-top: 10px !important;
   	background: green !important;
   }

  @media (max-width: 991px) {
    .account-courses__progress, .account-courses__cards, .account-tabs {
      grid-template-columns: 2fr !important;
    }
  }

html {
	scroll-behavior: smooth;
}

body {
	padding-top: 80px;
}

/* Remove padding-top on single templates */
body.single-course,
body.single-unit,
body.single-topic,
body.single-exercise {
	padding-top: 0;
}

/* Note: .header styles below may override existing .header styles above */
.header {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translate(-50%, 0);
	width: 100vw;
	z-index: 10;
	background: #fff;
	width: 100%;
}

.header.header-t {
	background: #fffc;
	--tw-backdrop-blur: blur(12px);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.header__container {
	padding: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

.header__right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.header__title {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 700;
	margin: 0;
}

.header__subtitle {
	font-size: 0.875rem;
	line-height: 1.25rem;
	margin: 0;
}

body:has(.nh_content) .header__menu {
	display: flex;
}

.header__menu {
	align-items: center;
	justify-content: center;
}

.nh-contacts-card-button a {
	text-align: center;
}

.nh-contacts-card-button:hover a {
	color: white;
}

.header__menu .header__menu-list {
	display: flex;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.header__menu-link {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0.5rem 1rem;
	color: hsl(240 5% 55%);
	font-size: 0.875rem;
	line-height: 1.25rem;
	border-radius: 10px;
	text-align: center;
}

.header__menu-item.active .header__menu-link,
.header__menu-item:hover .header__menu-link {
	font-weight: 500;
	color: hsl(0 0% 100%);
	background-color: hsl(217 91% 60%);
}

.header__btn {
	padding: 8px 24px;
	background: rgb(249 115 22 / 1);
	transition: background 0.2s ease;
	cursor: pointer;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	border-radius: 9999px;
	gap: 10px;
	border: 1px solid rgb(249 115 22 / 1);
}

.header__btn svg {
	width: 28px;
	height: 28px;
}

.header__btn:hover {
	background: rgb(234 88 12 / 1);
	border: 1px solid rgb(234 88 12 / 1);
}

.header__btn:hover svg {
	fill: white;
}

.header__buttons {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header__btn--account svg {
	fill: white;
}

.header__btn--logout:not(:hover),
.header__btn--login:not(:hover) {
	background: transparent;
	color: rgb(249 115 22 / 1) !important;
}

@media (max-width: 921px) {
	.header__container {
		padding: 5px 10px;
	}

	.header__menu .header__menu-list {
		gap: 5px;
	}

	.header__menu-link {
		padding: 5px 10px;
	}

	.header__menu {
		grid-column: 1 / 3;
		grid-row: 2 / 3;
	}

	.header__buttons {
		justify-content: end;
	}
}

@media (max-width: 570px) {
	.header__text {
		display: none;
	}

	.header__menu-link {
		padding: 5px;
		font-size: 12px;
	}

	.header__btn {
		padding: 5px 15px;
		gap: 5px;
		font-size: 13px;
	}

	.header__btn svg {
		width: 20px;
		height: 20px;
	}
}

.main-what__card {
	height: 100%;
}

.main-what__cards {
	max-width: 1000px;
	margin: auto;
}

/* Основные кнопки WooCommerce (оплата, добавить в корзину и т.п.) */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .checkout-button,
.woocommerce .single_add_to_cart_button,
.woocommerce .place-order .button,
.woocommerce .woocommerce-Button.button {
  background: linear-gradient(90deg, #50C878, #3ABF6C); /* зеленый градиент */
  color: #fff !important;
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(56, 183, 130, 0.25);
  backdrop-filter: blur(10px);
  border: none;
  padding: 0.75em 1.5em;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Ховер и фокус */
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .checkout-button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .place-order .button:hover,
.woocommerce .woocommerce-Button.button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(56, 183, 130, 0.35);
}

/* Disabled состояния */
.woocommerce button.button:disabled,
.woocommerce button.button:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ms-contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.ms-contacts-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: #333;
}

.ms-contacts-list svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: #004952; /* основной цвет иконок */
  transition: color 0.3s;
}

.ms-contacts-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

.ms-contacts-list a:hover,
.ms-contacts-list a:focus {
  color: #007B8F;
  text-decoration: underline;
}

.ms-contacts-list .ms-he,
.ms-contacts-list .ms-en {
  line-height: 1.4;
}

@media (max-width: 480px) {
  .ms-contacts-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .ms-contacts-list svg {
    margin-bottom: 0.25rem;
  }
}

.footer__network svg.lucide {
	fill:transparent;
	stroke: #202938;
}

.footer__network svg:not(.lucide) {
	fill:#202938;
}

.f-quiz__head-translate {
    direction: rtl;
    text-align: center;
}

.f-end__translate {
    direction: rtl;
}

.footer__network {
    padding: 5px;
}

.price-modal__card-title {
    margin-bottom: 0 ;
}

.woocommerce-Price-amount bdi {
    font-size: 22px;
    font-weight: bold;
}

.header__buttons a, .header__buttons a:hover {
    color: white;
}

.header__text {
    color: black;
}

.price-modal__card-list {
    max-width: 300px;
    margin: 20px auto;
}
.price-modal__card-list-item {
        font-size: 16px !important;
}

.price-modal__card-list-item::before {
    content: "";
    width: 0px;
    height: 0px;
}

.price-modal__card-button, .price-modal__card-button:hover {
    margin-top: auto;
    color: white;
}

@media only screen and (max-width: 921px) {
    .price-modal__subtitle {
        margin-bottom: 20px;
    }       
}

/*Checkout*/
.rtl .woocommerce .col2-set .col-1, .rtl .woocommerce-page .col2-set .col-1, .rtl .woocommerce .col2-set .col-2, .rtl .woocommerce-page .col2-set .col-2 {
    width: 100%;
    margin-bottom: 40px;
}

.rtl .woocommerce .col2-set .col-2, .rtl .woocommerce-page .col2-set .col-2 {
    display: none;
}

.player__content,
.ms-topic-page,
.vocabulary-2 .vocabulary,
.vocabulary-1,
.mini-story,
.scramble,
.f-quiz,
.vocabulary__continue,
.fill_in_the-blanks .exercises,
.story,
.challenge,
.f-end,
.certificate,
.modal__window {
	direction: ltr;
}

.ms-unit-title-he {
	direction: rtl;
	text-align: left;
}

.ms-back-home-wrap .ms-button,
.ms-topic-header .ms-button {
	flex-direction: row-reverse;
}

.basic__head {
	direction: ltr;
}

.vocabulary__card-translate {
	direction: rtl;
}

.fill_in_the-blanks {
	direction: rtl;
}

.f-quiz__head-translate {
	direction: rtl;
	text-align: end;
}

.f-quiz__translate {
	direction: rtl;
}

.t-container {
	direction: rtl;
}

.ms-topic-header {
	direction: rtl;
}
.ms-topic-page .ms-page-subtitle, 
.story__head-text {
	direction: rtl;
}

/*HEADER*/

    .main-navigation {
        display: none;
    }

    .header {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translate(-50%, 0);
        width: 100vw;
        z-index: 10;
        background: #fff;
    }

    .header.header-t {
        background: #fffc;
        --tw-backdrop-blur: blur(12px);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .header__container {
        padding: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .header__btn {
        padding: 8px 24px;
        background: rgb(249 115 22 / 1);
        transition: background .2s ease;
        cursor: pointer;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        font-size: .875rem;
        line-height: 1.25rem;
        font-weight: 500;
        border-radius: 9999px;
    }

    .header__btn:hover {
        background: rgb(234 88 12 / 1);
    }

    .header__right {
        display: flex;
        align-items: center;
        gap: .75rem;
    }

    .header__icon {
        width: 48px;
        height: 48px;
        border-radius: .75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background-image: linear-gradient(to bottom right, #fb923c, #ea580c);
        font-size: 1.25rem;
        line-height: 1.75rem;
        font-weight: 700;
    }

    .header__title {
        font-size: 1.25rem;
        line-height: 1.75rem;
        font-weight: 700;
        margin: 0;
    }

    .header__subtitle {
        font-size: .875rem;
        line-height: 1.25rem;
        margin: 0;
    }

.exercise__translate {
    direction: rtl;
}

p[lang="he"] {
  direction: rtl !important;
}

/*Topic*/

/* Обёртка страницы */
.ms-topic-page {
	max-width: 1024px;
	width: 100%;
	margin: 0 auto;
	padding: 2rem 1rem;
}

@media only screen and (max-width: 768px) {
    .ms-topic-page {
        padding: 8rem 0 2rem 0 !important;
    }
}

/* Верхняя панель: кнопка и статус */
.ms-topic-header {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.ms-exercise-progress {
	margin-top: auto;
}

.ms-topic-progress-label,
.ms-topic-progress-label:hover {
	font-size: 0.95rem;
	color: var(--global-color-12);
	background-color: #daeaff;
	box-shadow: 0 0px 0px 0px rgba(0, 0, 0, 0);
	cursor: default;
}

/* Заголовок темы */
.ms-topic-title {
	margin-bottom: 2rem;
	text-align: center;
}

/* Прогресс-блок */
.ms-topic-progress-bar {
	margin-bottom: 2rem;
	background-color: white;
}

/* Сетка упражнений */
.ms-exercise-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

/* Карточка упражнения */
.ms-exercise-card {
	position: relative;
	background-color: rgba(255, 255, 255, 0.7);
	transition: transform 0.2s ease;
	min-height: 180px;
}

.ms-exercise-card:hover {
	transform: translateY(-2px);
}

/* Галочка завершения */
.ms-exercise-complete-icon {
	position: absolute;
	top: -8px;
	right: -8px;
	background: var(--global-color-20);
	color: white;
	width: 35px;
	height: 35px;
	padding: 7px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Иконка упражнения */
.ms-exercise-icon {
	margin-bottom: 0.5rem;
}

/* Заголовок */
.ms-exercise-card h3 {
	margin-bottom: 0.25rem;
}

/* Подзаголовок */
.ms-exercise-subtitle {
	color: #4b5563;
	text-align: center;
	margin-bottom: 0.75rem;
}

/* Прогресс внутри карточки */
.ms-exercise-progress {
	height: 6px;
	overflow: hidden;
	width: 100%;
	background-color: white;
}

.ms-exercise-progress-fill {
	height: 100%;
	border-radius: 999px;
}

/*UNIT*/

/* UNIT Progress */

.ms-unit-page {
	max-width: 1024px;
	margin: 0 auto;
	padding: 2rem 1rem;
	direction: ltr;
	display: flex;
	justify-content: start;
	align-items: start;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 30px;
}

@media only screen and (max-width: 768px) {
    .ms-unit-page {
        padding: 8rem 0 2rem 0 !important;
    }
}

.ms-unit-progress-wrap {
    background-color: white;
    padding: 1.5rem;
    width: 100%;
    direction: ltr;
    margin-bottom: 20px;
}

.ma-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 10px 0;
}

.ms-progress-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.ms-progress-fill {
    height: 100%;
    transition: width 0.4s ease;
}

.ms-progress-value {
    font-size: 0.9rem;
}

/* UNIT Unit Content */
.ms-unit-content {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
}

.ms-unit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ms-icon-wrapper {
    font-size: 2rem;
    border-radius: 12px;
    display: flex;
flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color, #f1f5f9);
}

.ms-unit-headings h1 {
    font-size: 1.7rem;
    margin: 0;
    color: var(--accent-color, #2563eb);
}

.ms-unit-title-he {
    font-size: 1rem;
    margin-top: 0.25rem;
    color: var(--accent-color, #2563eb);
}

.ms-unit-description {
    margin-top: 1rem;
    font-size: 1rem;
    color: #444;
}

.ms-unit-description p {
    direction: ltr;
}

/* UNIT topic grid */
.ms-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    width: 100%;
}

.ms-topic-card {
    background-color: var(--topic-bg);
    padding: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
}

.ms-topic-card:hover {
    background-color: var(--topic-accent);
}

.ms-topic-card .ms-icon-wrapper {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--topic-bg, #f1f5f9);
    border-radius: 50%;
}

.ms-topic-content h3,
.ms-topic-card:hover h3 {
    color: var(--topic-accent, #2563eb);
}

/*LEVEL*/

/* LEVEL Layout */
.site-content:has(.ms-course-page) {
    /* background: transparent !important; */
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0) !important;
}

.ms-course-page {
    width: 100%;
    text-align: center;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Mobile Header Container (Clickable Button) */
.ms-course-mobile-header {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 998;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    align-items: center;
    gap: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ms-course-mobile-header:hover {
    transform: scale(1.02);
}

/* Mobile Menu Toggle Icon */
.ms-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ms-sidebar-toggle:hover {
    transform: scale(1.05);
}

.ms-sidebar-toggle-icon,
.ms-sidebar-toggle-close {
    display: block;
    width: 24px;
    height: 24px;
    color: #374151;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ms-sidebar-toggle-close {
    display: none;
}

.ms-course-mobile-header.active .ms-sidebar-toggle-icon {
    display: none;
}

.ms-course-mobile-header.active .ms-sidebar-toggle-close {
    display: block;
}

/* Drawer Overlay */
.ms-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.ms-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Course Sidebar */
.ms-course-sidebar {
    position: sticky;
    top: 100px;
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: white;
    padding: 1rem;
    border-left: 1px solid #e5e7eb;
    min-height: calc(100vh - 120px);
}

/* Sidebar Close Button (Mobile Only) */
.ms-sidebar-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #374151;
    border-radius: 6px;
    transition: background 0.2s ease;
    z-index: 10;
}

.ms-sidebar-close:hover {
    background: #f3f4f6;
}

.ms-sidebar-close svg {
    width: 20px;
    height: 20px;
}

/* Sidebar Avatar */
.ms-sidebar-avatar {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 2px solid #e0e7ff;
}

.ms-sidebar-avatar:hover {
    transform: scale(1.05);
}

.ms-sidebar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-sidebar-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.ms-sidebar-avatar-placeholder svg {
    width: 28px;
    height: 28px;
}

/* Sidebar Progress */
.ms-sidebar-progress {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ms-sidebar-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ms-sidebar-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.ms-sidebar-progress-percent {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
}

.ms-sidebar-progress-bar {
    height: 5px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.ms-sidebar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 999px;
    transition: width 1.5s ease-out;
}

/* Sidebar Wallet */
.ms-sidebar-wallet {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ms-sidebar-wallet-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ms-sidebar-wallet-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ms-sidebar-wallet-icon svg {
    color: #ffffff;
    width: 16px;
    height: 16px;
}

.ms-sidebar-wallet-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.ms-sidebar-wallet-amount {
    font-size: 1.125rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

/* Sidebar Navigation */
.ms-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ms-sidebar-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.ms-sidebar-nav-link:hover {
    background: #e0e7ff;
    color: #2563eb;
}

.ms-sidebar-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ms-sidebar-nav-link.active {
    background: #2563eb;
    color: white;
}

.ms-sidebar-nav-link.active:hover {
    background: #1d4ed8;
}

/* Badges Section */
.ms-sidebar-badges {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.ms-sidebar-badges-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-align: center;
}

.ms-sidebar-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem 0.4rem;
    padding: 0;
}

.ms-badge {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ms-badge-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(100%) opacity(0.4);
    transition: filter 0.3s ease;
    border-radius: 6px;
    background: #f3f4f6;
}

.ms-badge.earned .ms-badge-img {
    filter: grayscale(0%) opacity(1);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 3px 8px rgba(251, 191, 36, 0.3);
}

.ms-badge-name {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: #6b7280;
    letter-spacing: 0.02em;
    line-height: 1;
}

.ms-badge.earned .ms-badge-name {
    color: #374151;
}

/* Badge Popup Notification */
.ms-badge-popup {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    direction: ltr;
}

.ms-badge-popup.show {
    top: 80px;
    opacity: 1;
}

.ms-badge-popup-content {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.4), 0 0 0 4px rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
}

.ms-badge-popup-icon {
    font-size: 2.5rem;
    line-height: 1;
    animation: badgeBounce 0.6s ease-in-out;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.ms-badge-popup-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ms-badge-popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.ms-badge-popup-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile adjustments for badge popup */
@media only screen and (max-width: 768px) {
    .ms-badge-popup.show {
        top: 20px;
    }

    .ms-badge-popup-content {
        padding: 1rem 1.25rem;
        min-width: 240px;
    }

    .ms-badge-popup-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }

    .ms-badge-popup-title {
        font-size: 1.1rem;
    }

    .ms-badge-popup-subtitle {
        font-size: 0.8rem;
    }
}

/* Course Content */
.ms-course-content {
    flex: 1;
    min-width: 0;
}

/* Hide main progress bar on desktop */
@media only screen and (min-width: 769px) {
    .ms-unit-progress-wrap {
        display: none;
    }
}

/* Site Logo - Inside Mobile Header */
.ms-course-logo {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.ms-course-logo {
    display: flex;
    align-items: center;
}

.ms-course-logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

.ms-course-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    display: block;
}

/* Sidebar Logo */
.ms-sidebar-logo {
    display: block;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #e5e7eb;
}

.ms-sidebar-logo a {
    display: block;
    text-decoration: none;
}


.ms-sidebar-logo-img {
    max-height: 60px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.ms-sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    text-align: center;
    display: block;
}

/* Responsive: Convert sidebar to drawer on mobile */
@media only screen and (max-width: 768px) {
    .ms-course-page {
        flex-direction: column;
        padding: 0; /* No padding on mobile */
    }

    /* Show mobile header container on mobile */
    .ms-course-mobile-header {
        display: flex;
    }

    /* Show overlay on mobile */
    .ms-sidebar-overlay {
        display: block;
    }

    /* Convert sidebar to drawer */
    .ms-course-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        z-index: 1000;
        border-radius: 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 1rem;
    }

    /* Drawer open state */
    .ms-course-sidebar.active {
        transform: translateX(0);
    }

    /* Show close button on mobile */
    .ms-sidebar-close {
        display: block;
    }

    /* Show logo in top right corner on mobile */
    .ms-course-logo {
        display: block;
    }

    /* Keep vertical layout in drawer */
    .ms-course-sidebar {
        flex-direction: column;
        align-items: stretch;
    }

    .ms-sidebar-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .ms-sidebar-progress {
        flex: none;
    }

    .ms-sidebar-nav {
        flex-direction: column;
    }

    /* Badges mobile styles */
    .ms-sidebar-badges {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .ms-sidebar-badges-title {
        font-size: 0.65rem;
        margin-bottom: 0.4rem;
    }

    .ms-sidebar-badges-grid {
        gap: 0.5rem 0.3rem;
    }

    .ms-badge {
        gap: 0.2rem;
    }

    .ms-badge-img {
        border-radius: 4px;
    }

    .ms-badge-name {
        font-size: 0.55rem;
    }

    /* Topics list mobile styles */
    .ms-topics-list {
        flex-wrap: nowrap;
        flex-direction: column;
    }

    .ms-topics-list li a {
        width: 100%;
        text-align: center;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .ms-course-sidebar {
        width: 180px;
    }
}

/* LEVEL Title */
.ms-course-title h1 {
    font-size: 2rem;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    margin-bottom: 0.5rem;
}

.ms-subtitle-en {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.ms-subtitle-he {
    font-size: 1rem;
    font-weight: bold;
    color: #2563eb;
}

.ms-units-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* LEVEL unit card */
.ms-unit-card {
    display: flex;
    direction: ltr;
    gap: 1rem;
    background-color: var(--unit-bg, #f8f9ff);
    color: var(--unit-accent, #333);
    position: relative;
    text-align: start;
    padding: 20px 10px;
    border-radius: 15px;
    background-color: white;
}

/* Левая колонка с эмоджи */
.ms-unit-emoji {
    font-size: 2.5rem;
}

.ms-unit-emoji .ms-icon-wrapper {
        background-color: var(--unit-accent-bg, #e0e7ff);
    border-radius: 10%;
}

/* Правая колонка */
.ms-curse-unit-content {
    flex: 1;
    position: relative;
}

.ms-unit-title-link {
    text-decoration: none;
    color: inherit;
}

.ms-unit-title-link h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.ms-unit-title-he {
    font-size: 1rem;
}

/* Список топиков */
.ms-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
    margin: 1rem 0 0 0;
}

.ms-topics-list li a {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.ms-topic-link {
        background-color: var(--unit-accent-bg, #e0e7ff);
    color: var(--unit-accent, #333);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ms-topic-link:hover {
    filter: brightness(1.05);
}

/* Иконка внизу */
.ms-unit-icon {
    position: absolute;
    top: 0;
    right: 1rem;
    font-size: 1.5rem;
}

/* Кнопка «Back to Home» */
.ms-back-home-wrap {
    margin-top: 3rem;
}

/*Footer*/

.footer {
        width: 100%;
        padding: 48px 16px;
        background-color: hsl(var(--accent) / .2);
    }

    .footer__container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .footer__row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
        padding-bottom: 32px;
        margin-bottom: 32px;
        border-bottom: 1px solid hsl(var(--muted-foreground));
;
    }

    .footer__logo-container {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }

    .footer__logo-icon {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        border-radius: .75rem;
        background: linear-gradient(to bottom right, #fb923c, #ea580c);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .footer__logo-title {
        font-size: 1.25rem;
        line-height: 1.75rem;
        font-weight: 700;
        margin: 0;
    }

    .footer__links-title,
    .footer__networks-title {
        margin-bottom: 16px;
        font-size: 1.125rem;
        line-height: 1.75rem;
        font-weight: 600;
    }

    .footer__links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        list-style: none;
        margin: 0;
    }

    .footer__link {
        font-size: 16px;
        color: hsl(var(--muted-foreground));
    }

    .footer__link:hover {
        color: hsl(var(--primary));
    }

    .footer__networks {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .footer__network {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        background: hsl(var(--primary));
        border-radius: 50%;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer__network svg.lucide {
        color: #fff;
		stroke: white;
    }

.footer__network svg:not(.lucide) {
	fill: white;
		stroke: white;
}

    .footer__footer {
        display: flex;
        justify-content: center;
    }

    .footer__text {
         color: hsl(var(--muted-foreground));
        font-size: 14px;
    }

    @media (max-width: 767px) {
        .footer__row {
            grid-template-columns: 1fr;
        }

    }

/* ========================================
   WooCommerce Account Edit Form - New Design
   ======================================== */

/* Main form container */
.woocommerce-EditAccountForm {
    max-width: 100%;
    padding: 0;
}

/* Form rows */
.woocommerce-form-row {
    margin-bottom: 24px;
}

.woocommerce-form-row:last-child {
    margin-bottom: 0;
}

/* Labels */
.woocommerce-EditAccountForm label,
.woocommerce-form-row label {
    display: block;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Input fields */
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-EditAccountForm input[type="tel"],
.woocommerce-EditAccountForm input[type="url"],
.woocommerce-EditAccountForm textarea,
.woocommerce-EditAccountForm select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-EditAccountForm textarea:focus,
.woocommerce-EditAccountForm select:focus {
    outline: none;
    border-color: #3098f0;
    box-shadow: 0 0 0 3px rgba(48, 152, 240, 0.1);
    background: #fff;
}

.woocommerce-EditAccountForm input::placeholder,
.woocommerce-EditAccountForm textarea::placeholder {
    color: #9ca3af;
}

/* Password fields container */
.woocommerce-EditAccountForm fieldset {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    background: #f8f9fa;
}

.woocommerce-EditAccountForm fieldset legend {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0 12px;
    margin-bottom: 0;
}

/* Submit button */
.woocommerce-EditAccountForm .woocommerce-Button,
.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-EditAccountForm input[type="submit"] {
    background: #3098f0;
    color: #fff;
    border: 2px solid #3098f0;
    border-radius: 12px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(48, 152, 240, 0.2);
}

.woocommerce-EditAccountForm .woocommerce-Button:hover,
.woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-EditAccountForm input[type="submit"]:hover {
    background: #1e7cd6;
    border-color: #1e7cd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 152, 240, 0.3);
}

.woocommerce-EditAccountForm .woocommerce-Button:active,
.woocommerce-EditAccountForm button[type="submit"]:active,
.woocommerce-EditAccountForm input[type="submit"]:active {
    transform: translateY(0);
}

/* Form row variations */
.woocommerce-form-row-first,
.woocommerce-form-row-last {
    width: 100%;
    float: none;
    margin-bottom: 24px;
}

.woocommerce-form-row-wide {
    width: 100%;
    margin-bottom: 24px;
}

/* Checkbox styling */
.woocommerce-EditAccountForm input[type="checkbox"] {
    width: auto;
    height: 20px;
    width: 20px;
    border-radius: 4px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.woocommerce-EditAccountForm input[type="checkbox"]:checked {
    background: #3098f0;
    border-color: #3098f0;
}

.woocommerce-EditAccountForm input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(48, 152, 240, 0.1);
}

/* Error messages */
.woocommerce-EditAccountForm .woocommerce-error,
.woocommerce-EditAccountForm .woocommerce-message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.woocommerce-EditAccountForm .woocommerce-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.woocommerce-EditAccountForm .woocommerce-message {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Form description text */
.woocommerce-EditAccountForm p {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .woocommerce-EditAccountForm fieldset {
        padding: 20px;
        border-radius: 12px;
    }

    .woocommerce-EditAccountForm input[type="text"],
    .woocommerce-EditAccountForm input[type="email"],
    .woocommerce-EditAccountForm input[type="password"],
    .woocommerce-EditAccountForm input[type="tel"],
    .woocommerce-EditAccountForm input[type="url"],
    .woocommerce-EditAccountForm textarea,
    .woocommerce-EditAccountForm select {
        padding: 10px 14px;
        font-size: 0.9375rem;
    }

    .woocommerce-EditAccountForm .woocommerce-Button,
    .woocommerce-EditAccountForm button[type="submit"],
    .woocommerce-EditAccountForm input[type="submit"] {
        width: 100%;
        max-width: 100%;
        padding: 14px 24px;
    }
}

/* General WooCommerce form inputs (for other forms too) */
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="password"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="url"],
.woocommerce form textarea,
.woocommerce form select {
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px !important;
    color: #1a1a1a !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.woocommerce form input:focus,
.woocommerce form textarea:focus,
.woocommerce form select:focus {
    border-color: #3098f0 !important;
    box-shadow: 0 0 0 3px rgba(48, 152, 240, 0.1) !important;
    outline: none !important;
}

.woocommerce form button[type="submit"],
.woocommerce form input[type="submit"],
.woocommerce .woocommerce-Button.button {
    background: #3098f0 !important;
    color: #fff !important;
    border: 2px solid #3098f0 !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(48, 152, 240, 0.2) !important;
}

.woocommerce form button[type="submit"]:hover,
.woocommerce form input[type="submit"]:hover,
.woocommerce .woocommerce-Button.button:hover {
    background: #1e7cd6 !important;
    border-color: #1e7cd6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(48, 152, 240, 0.3) !important;
}

.woocommerce-billing-fields label,
.woocommerce form label {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #1a1a1a !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.woocommerce-billing-fields h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
}