* {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}
.header .wrapper{
    display: block;
}
.header .header-container{
    display: none;
}
@media (min-width: 769px) and (max-width: 1024px) {
    .latest_words{
        padding: 24px 16px;
    }
    .sessions{
        padding: 24px;
    }
    .sessions .tabs {
        gap: 18px;
    }
    .latest_words .word .word_header {
        padding: 14px 18px;
    }
    .latest_words h3{
        margin-bottom: 16px;
    }
    .teachers, .topics{
        padding: 24px;
    }
    .topics h2{
        margin-bottom: 18px;
    }
    .topic_container{
        gap: 14px;
    }
    .smartcard{
        padding: 90px 40px 40px 40px;
    }
    .voc_words {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .col {
        flex: 100%;
    }
    .voc_words {
        grid-template-columns: repeat(1, 1fr);
        gap: 14px;
    }
    .voc_session {
        padding: 16px;
    }
    .voc_item {
        min-height: 150px;
        cursor: pointer;
    }
    .voc_item:hover {
        box-shadow: none;
        position: static;
        z-index: auto;
    }
    .voc_item:hover .next_task {
        display:none;
    }

    .voc_item:hover ul {
        display: none;
    }

    .voc_item:hover .origin {
        display: block;
    }

    .voc_item:hover .translation {
        display: none;
    }
    .voc_item p {
        height: 60px;
        font-size: 14px;
        font-weight: 600;
        margin: 0;
    }
    .voc_item a {
        display: none;
    }
    .voc_session .voc_header h3  {
        display: flex;
        flex-direction: column;
    }
    .voc_session .voc_header h3 strong{
        color: #6D6D6D;
    }
    .voc_session .collapse_button {
        margin-top: 14px;
    }
    .voc_session .voc_words{
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    .voc_session .voc_words.expanded {
        max-height: fit-content;
        margin-top: 28px;
    }

    .voc_session .collapse_button .icon{
        display: inline-block;
        transition: transform 0.3s ease-in-out;
        cursor: pointer;
    }
    .voc_session .collapse_button .icon.active {
        transform: rotate(-180deg);
    }
    .smartcard{
        width: 90%;
        padding: 100px 16px 16px;
        top: 0;
    }
    .open_next_task {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .smartcard .shortcut {
        left: 16px;
        right: 16px;
        bottom: 84px;
    }
    .smartcard h3 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 50px!important;
    }
    .smartcard span {
        font-size: 14px;
    }
    .smartcard p {
        font-size: 16px;
        font-weight: 500;
    }
    .smartcard td {
        font-size: 16px;
    }
    .smartcard .progress {
        margin-bottom: 18px;
    }
    .smartcard .close-button{
        display: block;
        position:relative;
        margin: -45px 0 18px auto;
        width: fit-content;
    }

    .header .wrapper{
        display: none!important;
    }
    .header .header-container{
        display: flex!important;
    }
    .page-content:has(.teacher-page){
        width: fit-content!important;
    }
    .header:has(.teacher-page) .wrapper{
        display: flex!important;
        margin-top: 20px;
        width: 100%;
    }
    .header:has(.teacher-page) .header-container{
        display: none!important;
    }

    /*    ----- Header styles ----      */
    .header {
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0;
        height: 70px;
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        background: #061F1D;
        z-index: 1;
    }
    .header:has(.teacher-page){
        height: 90px;
        width: 1024px;
    }

    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }

    .header-container .logo {
        margin-left: 0;
    }

    .nav-icons {
        display: flex;
        align-items: center;
        gap: 18px;
        margin-right: 3px;
    }
    .nav-icons .globe-icon svg{
        color: #1FDA92;
    }
    .navigation-modal{
        height: 100%;
        top: 0;
        border-radius: 0;
        background-color: #061F1D;
        color: #FFF;
        padding: 0;
    }
    .navigation-modal .navigation_header{
        height: 70px;
        background-color: #1FDA92;
        /*padding: 24px 27px;*/
        display: flex;
        align-items: center;
        padding: 12px 14px;
        justify-content: space-between;
    }
    .navigation-modal .navigation_profile{
        width: 100%;
        margin: 0 auto;
        color: #FFF;
        padding: 36px 16px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .navigation_profile img{
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }
    .navigation_profile .profile_info{
        padding-top: 12px;
        color: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 54px;
    }
    .navigation_profile .profile_info h3{
        font-size: 24px;
        margin: 0 0 6px 0;
        text-align: center;
    }
    .navigation_profile .profile_info p{
        font-size: 14px;
        color: #ffffff;
        margin: 0 0 6px 0;
        text-align: center;
    }
    .navigation-modal .navigation_links{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 46px;
        color: #ffffff;
    }
    .navigation-modal .navigation_links a{
        color: #ffffff;
        text-decoration: none;
        font-size: 18px;
    }
    .globe-icon, .hamburger {
        width: 24px;
        height: 24px;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .globe-icon:hover, .hamburger:hover {
        transform: scale(1.1);
    }

    .hamburger {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .hamburger.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:last-child {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Mobile Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
        z-index: 1000;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .menu-overlay.active {
        right: 0;
    }

    .menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        background: rgba(0,0,0,0.1);
    }

    .menu-logo {
        font-size: 1.5rem;
        font-weight: bold;
        letter-spacing: 2px;
        color: white;
    }

    .close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-btn:hover {
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
    }

    .menu-profile {
        text-align: center;
        padding: 2rem 1.5rem;
        color: white;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        margin: 0 auto 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: rgba(255,255,255,0.8);
    }

    .profile-name {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
    }

    .profile-role {
        font-size: 1rem;
        opacity: 0.8;
        margin-bottom: 0.25rem;
    }

    .profile-location {
        font-size: 0.9rem;
        opacity: 0.7;
        margin-bottom: 0.25rem;
    }

    .profile-date {
        font-size: 0.9rem;
        opacity: 0.7;
    }

    .menu-nav {
        flex: 1;
        padding: 1rem 0;
    }

    .menu-nav ul {
        list-style: none;
    }

    .menu-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-nav a {
        display: block;
        padding: 1rem 1.5rem;
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
        transition: background-color 0.2s ease;
    }

    .menu-nav a:hover {
        background-color: rgba(255,255,255,0.1);
    }

    /* Main content styles */
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    .balance-card {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 2rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .balance-text {
        color: #666;
        margin-bottom: 0.5rem;
    }

    .balance-amount {
        font-size: 2rem;
        font-weight: bold;
        color: #00b894;
        margin-bottom: 1rem;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        width: 100%;
        text-align: center;

    }

    .btn-primary {
        background-color: #1a4b3a;
        color: white;
    }

    .btn-secondary {
        background-color: #00b894;
        color: white;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

/*    ----- Main styles ----      */
    .main{
        max-width: 100% !important;
        margin: 70px 0 0 !important;
        border-radius: 0;
        padding: 36px 16px;
        background: #F6F6F6;
    }
    .main.teacher-page{
        /*background-color: red;*/
        max-width: 1024px !important;
        border-radius: 0!important;
    }
    .headline{
        flex-direction: column;
        align-items: start;
        margin-bottom: 44px;
    }
    .headline h1{
        width: 150px;
        font-size: 18px;
    }
    .headline h1 span{
        font-size: 24px;
        font-weight: 700;
    }
    .headline .secondary_buttons{
        margin-top: 24px;
        gap: 11px;
        width: fit-content;
    }
    .headline .buttons_container{
        width: 100%;
        overflow-x: scroll;
        padding-bottom: 5px;
    }
    .headline .secondary_buttons a{
        background: #026D63;
        border-radius: 100px;
        color: #EDF5E6;
        padding: 5px 12px;
        white-space: nowrap;
    }
    .headline .secondary_buttons a img{
        display: none;
    }
    .sessions-container{
        flex-direction: column;
        gap: 54px;
    }
    .sessions-container .sessions{
        order: 1;
        width: 100%;
        padding: 0;
        border-radius: 0;
    }
    .sessions-container .latest_words{
        order: 2;
        width: 100%;
        padding: 0;
        border-radius: 0;
    }
    .latest_words h3{
        font-size: 24px;
        margin-bottom: 14px;
    }
    .latest_words a{
        padding: 11px 24px;
        font-size: 14px;
        font-weight: 600;
    }
    .topics{
        padding: 0;
        margin-top: 36px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .topics h2{
        font-size: 24px;
        margin: 0;
    }
    .topics .topic_container{
        flex-direction: column;
        gap: 16px;
    }
    .topics .topic_container .main_topic{
        max-width: 100%;
    }
    .session_card{
        padding: 20px;
        display: flex;
        flex-direction: column;
    }
    .session_card .teacher img{
        border-radius: 16px;
    }
    .session_card .teacher .teacher_info{
        align-items: start!important;
    }
    .session_card .details {
        padding: 25px 0;
        margin: 16px 0;
        border-bottom: 1px solid #eee;
    }
    .meeting_link{
        margin: 0;
        text-align: center;
    }
    .session_card .details li {
        min-width: unset;
    }
    .session_card .details li b {
        font-size: 12px;
        font-weight: 500;
    }
    .session_card .details li span {
        font-size: 12px;
        font-weight: 500;
    }
    .session_card .teacher h3 a{
        text-decoration: unset;
    }
    .sessions .tabs a{
        font-size: 16px;
    }
    .footer-buttons{
        position: fixed;
        bottom: 50px;
        width: 100%;
    }
    .footer-buttons .call-button{
        right: 0.75rem;
        position: fixed;
        bottom: 50px;
    }
    .footer-buttons .lang-button{
        display: none;
    }
    .language_modal .lang_container{
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .language_modal .lang_container .lang_button{
        border: 1px solid #B0B0B0;
        color: #6D6D6D;
        font-weight: 500;
        background: #ffffff;
        padding: 16px;
        border-radius: 10px;
        font-size: 18px;
        width: 100%;
        cursor: pointer;
    }
    .language_modal .lang_container .lang_button.active{
        color: #ffffff;
        border-color: #061F1D;
        background-color: #3f776f;
    }
    .footer{
        background-color: #F6F6F6;
    }
    body:has(.teacher-page) .footer{
        width: 1024px;
    }
    .teachers h2{
        margin-bottom: 16px;
    }
    .teacher-header{
        margin-bottom: 36px;
        flex-direction: column;
        padding: 0 !important;
    }
    .teacher-header .topic{
        width: fit-content;
    }
    .teacher_list{
        padding: 0;
    }
    .teacher_list .teacher_card{
        width: 100%;
        padding: 20px;
        margin: 0!important;
    }
    .teacher_card .teacher_info{
        gap: 16px;
        padding: 0!important;
        margin-top: 0!important;
        flex-direction: row!important;
    }
    .teacher_card .teacher_info .info_container{
        align-items: start;
        text-align: start;
    }
    .teacher_card .teacher_info img{
        width: 117px;
        height: 117px;
        border-radius: 16px;
    }
    .teacher_card .teacher_info p{
        display: block!important;
    }
    .teacher_card a{
        margin: 24px 0 0 0;
        width: 100%;
    }
    .main .teacher_info{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .main .teacher_info img {
        margin: 0;
    }
    .main .teacher_info .headline {
        width: 100%;
        align-items: center;
    }
    .main .teacher_info .headline h1{
        width: fit-content;
    }
    .teacher_page .teacher_info .teacher_card{
        justify-content: center;
        align-items: center;
        padding: 24px 0;
        width: 100%;
        border-radius: 24px;
    }
    .teacher_page .teacher_info .biography{
        margin: 0;
    }

    .headline .book_big{
        width: 100%;
    }
    .topics .topic_header{
        padding: 0;
        flex-direction: column;
        align-items: start;
        gap: 16px;
    }
    .calendar{
        padding: 0;
    }
    .topic_container .main_topic img{
        /*height: 100%;*/
        width: 100%;
    }
    .topic_container .main_topic:first-child img{
        height: 100%;
        width: auto;
    }
    .topic_container .main_topic h3{
        max-width: 150px;
    }
    .topic_container .main_topic{
        background-size: 150px auto;
    }
    .teacher_calendar table{
        border-collapse: separate;
        border-spacing: 6px;
    }
    .teacher_calendar .week_selector{
        padding: 0 0 14px;
    }
    .teacher_calendar .calendar{
        margin-top: 18px;
        position: relative;
    }
    .teacher_calendar .calendar .teacher_times{
        position: absolute;
        width: calc(100% + 34px);
        overflow-x: scroll;
        margin-left: -18px;
    }
    .calendar table th{
        border-radius: 18px;
        min-width: 80px;
    }
    .calendar .dayoff, .calendar td:has(.dayoff){
        background: transparent;
    }
    .calendar table td{
        background: transparent;
    }
    .calendar .slot{
        margin: 6px 3px;
        /*border: none;*/
        border-radius: 5px;
        border: 2px solid transparent;
        background-color: #E4F2F1;
    }
    .calendar .slot.available{
        background-color: #15bba2;
        border-color: #00D9B9;
        color:#fff;
    }
    .calendar .past{
        background: #EBEDED!important;
        color: #4F4F4F!important;
        opacity: 1;
    }
    #confirm.modal{
        width: 100%;
        bottom: 0;
        top: auto;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    #success.modal{
        bottom: 0;
        top: auto!important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    #subtopics.modal{
        bottom: 0;
        top: auto!important;
        width: 100% !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    #balance_modal.modal{
        bottom: 0;
        top: auto!important;
        width: 100% !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    body:not(.teacher-page) #balance_modal.modal {
        top: 30px!important;
        bottom: unset;
        width: fit-content!important;
        border-radius: 16px!important;
    }
        .teacher .meeting_link span{
        display: block;
    }
    .profile-container{
        width: 100%;
        background-color: transparent;
    }
    .main:has(.profile-container){
        padding: 0;
    }
    .profile-container .seperator span {
        background: #F6F6F6;
    }
    .profile-container input[type='submit']{
        width: 100% !important;
    }
    .photo-input{
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .photo-input input{
        display: none;
    }
    .photo-input label{
        font-size: 18px;
        font-weight: 500;
    }
    .photo-input button{
        width: 64px;
        height: 64px;
        border-radius: 17px;
        border: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        background-color: #F0FDF9;
    }
    .session-analyze{
        width: 100%;
        margin-top: 0;
        padding-top: 0;
    }
    .session-analyze .back{
        display: none;
    }
    .session-analyze .sidebar, .session-analyze .session_box{
        width: 100%;
    }
    .session_box.fixed {
        left: 16px;
        right: 16px;
        width: auto;
        top: 70px;
    }
    .session-analyze .container {
        flex-direction: column;
        padding: 0;
    }
    .session-analyze .conversation{
        margin: 0 0 70px;
        width: 100%;
        background: #fff;
        padding: 16px;
        border-radius: 16px;
        height: 570px;
        overflow-y: scroll;
        overflow-x: hidden;
    }
    .session-analyze .chat p{
        max-width: 90%;
    }
    .session-analyze .chat b {
        width: 90%;
    }

    .session-analyze .session_box{
        background: #FFF;
        padding: 16px;
        margin-bottom: 26px;
    }
    .session-analyze .session_info .teacher_photo, .session-analyze .session_info table{
        display: none;
    }
    .session-analyze .teacher-info{
        display: flex;
        /*justify-content: center;*/
        align-items: center;
        justify-content: space-between;
    }
    .session-analyze .teacher-info *{
        margin: 0;
    }
    .session-analyze .session_info audio{
        border-radius: 27px;
        background-color: #F2F3F4;
    }
    .word_bar .selected-header {
        margin-bottom: 0;
    }
    .word_bar .icon{
        display: inline-block;
        transition: transform 0.3s ease-in-out;
        cursor: pointer;
    }
    .word_bar .icon.active {
        transform: rotate(-180deg);
    }

    .word_bar .icon {
        display: block;
    }
    .word_bar .selected-header div{
        display: flex;
        gap: 20px;
        align-items: center;
    }
    .word_bar input {
        /*display: none;*/
    }
    .word_bar form{
        margin: 0;
    }
    .word_bar .word_list {
        min-height: 0;
        display: none;
        transition: max-height 0.5s ease-in-out;
        margin-top: 0;
    }
    .word_bar .word_list.expanded {
        display: block;
        min-height: 50px;
        margin-top: 8px;
    }
    .main.vocabulary_page{
        background-color: #ffffff;
    }
    .topup-form .current-balance{
        display: none;
    }
    #promo_modal.modal{
        width: 357px;
    }
    #list_transactions.modal{
        width: 357px;
    }
    #promoStatus {
        max-width: fit-content;
        margin: 16px;
    }
    #promoStatus .modal-container {
        flex-direction: column;
    }
    #promoStatus .promo-info {
        width: 100%;
        padding: 16px;
        order: 2;
    }
    #promoStatus .modal-container .promo-video {
        width: 100%;
        padding: 16px;
        order: 1;
    }
    .promo-video .video-container {
        height: 160px;
        width: 100%;
    }
    #promoVideo {
        object-position: center center;
    }
    #playPauseButton {
        width: 47px;
        height: 47px;
    }
    #timeLeftIndicator {
        bottom: 12px;
        right: 12px;
    }
    .promo-video .close-button {
        width: 28px;
        height: 28px;
    }
    .promo-video .close-button svg{
        width: 14px;
        height: 14px;
    }
    .promo-info .promo-header {
        margin-bottom: 14px;
        font-size: 14px;
    }
    .promo-info .promo-text {
        font-size: 14px;
    }
    .promo-info .progress-container {
        margin-top: 18px;
    }
    .promo-info .submit-button {
        margin-top: 17px;
    }
    .error-message{
        z-index: 5;
    }
}
