.navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.navbar__toggle.active span:nth-child(3){
    display: none;
}

.navbar__toggle.active span:nth-child(2) {
    transform: rotate(-45deg);
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9998;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-overlay {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.mobile-menu-content {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #222222;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
}

.mobile-menu-header {
    display: none;
}

.mobile-logo img {
    max-height: 50px;
    object-fit: contain;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-nav {
    flex: 1;
    padding: 0;
    border-top: 3px solid #00b6ff;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

.mobile-menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.mobile-menu-list a {
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    padding: 15px 20px;
    display: block;
    transition: color 0.3s ease;
}

.mobile-menu-item-wrapper a {
    padding: 0;
    flex: 1;
}

.mobile-menu-list li.menu-item-has-children > a {
    padding: 0;
}

.mobile-menu-list a:hover {
    color: #02b7ff;
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.mobile-submenu-toggle:hover {
    background-color: rgba(2, 183, 255, 0.1);
    color: #02b7ff;
}

.mobile-submenu-toggle.active {
    transform: rotate(180deg);
    color: #02b7ff;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #222222;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-submenu.open {
    max-height: 100%;
    padding: 10px 0;
}

.mobile-submenu li {
    border-bottom: 1px solid #e1e5e9;
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu a {
    /* padding: 12px 40px; */
    font-size: 14px;
    color: #ffffff;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-submenu a:hover {
    color: #02b7ff;
    border-left-color: #02b7ff;
    background-color: rgba(2, 183, 255, 0.05);
}

.mobile-contact-info {
    display: none;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-contact-item:hover {
    color: #02b7ff;
}

.mobile-contact-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Responsive adjustments for mobile menu */
@media only screen and (max-width: 480px) {
    .mobile-menu-content {
        width: 100%;
    }
}

/* Hide desktop menu on mobile */
@media only screen and (max-width: 1024px) {
    .desktop-menu {
        display: none !important;
    }
    
    .navbar__toggle {
        z-index: 10000;
        position: relative;
    }
}

/* Show desktop menu on larger screens and hide mobile menu elements */
@media only screen and (min-width: 1025px) {
    .mobile-menu {
        display: none !important;
    }
    
    .navbar__toggle {
        display: none !important;
    }
}

@media only screen and (max-width: 991px) {
    .custom-contact-form {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-contact-form input[type="text"],
    .custom-contact-form input[type="email"],
    .custom-contact-form input[type="tel"],
    .custom-contact-form input[type="submit"] {
        width: 100%;
    }
}


@media only screen and (max-width: 640px) {
    h2{
        font-size: 24px;
    }
    .navbar__menu .container{
        padding: 15px;
    }
    .main-logo{
        display: flex;
        justify-content: space-between;
    }
    .main-logo img{
        max-height:65px !important;
    }
    .custom-contact-form{
        padding: 15px;
    }
    .before_item img{
        height: 200px;
    }
    .team_slider .swiper-slide{
        padding: 20px;
    }
    .custom-contact-form .form-top input[type="submit"]{
        padding: 15px 20px;
    }

    .hero_section h1{
        font-size: 35px;
    }

    .calculator_left img{
        width: 100%;
    }
    .dantura_grid3{
        grid-template-columns: repeat(1, 1fr);
    }
    .why_column_right{
        padding-left: 0;
    }
    .more__info{
        flex-direction: column;
    }
    .more__info .more_item{
        width: 100%;
    }
    .dantura_section2 img{
        height: 252px;
        object-fit: cover;
    }
    .before_content{
        grid-template-columns: repeat(1, 1fr);
    }
    .list_buttons{
        gap: 10px;
        flex-direction: column;
    }
    .dantura-info{
        flex-direction: column;
        padding: 20px;
    }
    .dantura_bg img{
        width: 100%;
        height: 300px;
        object-fit: contain;
    }
    .offert_right{
        width: 100%;
    }
    .info_header{
        display: none !important;
    }
    .young_section h2{
        font-size: 30px;
    }
    .young_content{
        max-width: 100%;
    }
    .calculator_section .container .row{
        padding: 20px;
    }
    .block_gradient h2{
        font-size: 24px;
    }
    .question_section .block_title h2{
        font-size: 24px;
    }
    .block_title{
        width: 100%;
    }
    .question_left{
        padding-right: 0;
        margin-bottom: 40px;
    }
    .lp-calculator{
        padding: 20px;
    }
    .dantura_left1{
        padding-right: 0;
    }
    .hero_left{
        padding-right: 0;
        margin-bottom: 30px;
    }
    .hero_right{
        padding: 15px;
    }
    .hero__right{
        margin-top: 20px;
        padding-left: 0;
    }
    .dr_hero img{
        object-fit: contain;
    }
    .bg_happy .d-flex{
        flex-direction: column;
        gap: 20px;
    }
    .happy_left .happy_img{
        width: 100%;
        position: relative;
        left: 0;
        bottom: 0;
    }
    .happy_left .happy_img{
        height: 180px;
    }
    .happy_right{
        margin-top: 40px;
    }
    .team_section h2{
        font-size: 24px;
    }
    .more__info{
        padding: 0 15px;
    }
    .dantura_content .d-flex{
        flex-direction: column;
    }
    .dantura_content .d-flex .col-md-6{
        width: 100%;
    }
    .dantura__right{
        padding-left: 0;
    }
    .question_section h3{
        font-size: 18px;
    }
    .certification_section .block_title h2{
        font-size: 24px;
    }
    .block_title h2{
        font-size: 24px;
    }
    .question_section .faq__section{
        padding: 15px;
    }
    .team_slider .swiper-slide .d-flex{
        flex-direction: column;
    }
    .team_right{
        margin-top: 25px;
        padding-left: 0;
    }
    .contact_section1 .custom-contact-form{
        max-width: 100%;
    }
    .contact_form {
        padding-top: 30px;
        padding-right: 20px;
        padding-left: 20px;
    }
    .contact_section1 .custom-contact-form .form-top .wpcf7-form-control-wrap{
        width: 100%;
    }
    .bg_contact_form{
        height: auto;
    }
    .young_section .container .content_young{
        padding: 40px 15px;
    }
    .modal-content .custom-contact-form .form-top .wpcf7-form-control-wrap{
        width: 100%;
    }
    .modal-content{
        margin: 50% auto;
    }
    .footer{
        padding: 35px 0;
    }
    .benefits_list{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}


@media only screen and (min-width: 641px) and (max-width: 1023px) {
    .navbar__menu .container{
        padding: 15px;
    }
    .hero_section .row:first-child{
        flex-direction: column;
    }
    .hero_section .col-md-5,
    .hero_section .col-md-7{
        width: 100%;
        max-width: 100%;
    }
    .hero_left{
        padding-right: 0;
    }
    .dantura_section .row{
        flex-direction: column;
    }
    .dantura_section .col-md-8,
    .dantura_section .col-md-4
    {
        width: 100%;
        max-width: 100%;
    }
    .dantura_section .col-md-4{
        margin-top: 30px;
    }
    .dantura_left{
        padding-right: 0;
    }
    .dantura_section1 .row{
        flex-direction: column;
    }
    .dantura_section1 .col-md-6{
        width: 100%;
    }
    .dantura_left1{
        padding-right: 0;
    }
    .dantura_section2 img{
        object-fit: cover;
    }
    .dantura_section2 img{
        height: 463px;
    }
    .dantura_section1 h2{
        margin-bottom: 20px;
    }
    .young_content{
        max-width: 80%;
    }
    .happy_section .row{
        flex-direction: column;
    }
    .happy_left .happy_img{
        position: relative;
    }
    .happy_section .col-md-7,
    .happy_section .col-md-5{
        width: 100%;
        max-width: 100%;
    }
    .happy_left .happy_img{
        width: 100%;
        left: 0;
        bottom: 0;
    }
    .happy_left.col-md-7{
        margin-right: 0;
    }
    .happy_right.col-md-5{
        margin-top: 30px;
        margin-left: 0;
    }
    .calculator_left{
        width: 100%;
        margin-bottom: 40px;
    }
    .calculator_left img{
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
    .calculator_right{
        width: 100%;
    }
    .team_slider .swiper-slide{
        padding: 20px;
    }
    .contact_form{
        padding-top: 50px;
        height: 30px;
    }
    .bg_contact_form{
        height: 425px;
    }
    .young_section h2{
        font-size: 40px;
    }
    .dantura_content .d-flex{
        flex-direction: column;
    }
    .dantura_content .d-flex .col-md-6{
        width: 100%;
    }
    .dantura__right{
        padding-left: 0;
    }
    .question_section .faq__section{
        padding: 20px;
    }
    .before_item img{
        height: 200px;
    }
    .about_denture .row{
        flex-direction: column;
    }
    .about_denture .col-md-6{
        width: 100%;
    }
    .why_column_right h3{
        margin-top: 30px;
    }
    .why_column_right{
        padding-left: 0;
    }
    .faq__section{
        flex-direction: column;
    }
    .faq__section .col-md-6{
        width: 100%;
    }
    .question_left{
        padding-right: 0;
    }
    .more__info{
        padding: 0 15px;
    }
    .hero_right{
        margin-top: 40px;
    }
    .hero__right{
        margin-top: 40px;
        padding-left: 0;
    }
    .hero_right .col-md-4,
    .hero_right .col-md-8{
        width: 100%;
    }
    .dr_hero img{
        object-fit: contain;
    }
    .block_title{
        width: 100%;
    }
    .hero_services .d-flex:first-child{
        gap: 0 !important;
    }
    .hero_services .d-flex:first-child .col-md-8{
        padding-right: 30px;
    }
    .hero_services .d-flex:first-child .services_item:first-child{
        margin-bottom: 20px;
    }
    .bg_hero{
        flex-direction: row !important;
    }
    .more__info{
        flex-wrap: wrap;
        justify-content: center;
    }
    .more__info .more_item{
        width: 46%;
    }
    .benefits_list{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 1024px) {
    .navbar__toggle {
        display: flex;
    }

    .info_header ul{
        display: none;
    }

    .main-logo{
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    /* Hide the old mobile menu system */
    .navbar__menu__items{
        display: none !important;
    }

    .menu-principal-container{
        width: 100%;
    }

    /* Keep desktop menu visible on desktop */
    .desktop-menu {
        display: block;
    }

    /* Mobile menu is handled by the new system above */
}

@media only screen and (min-width: 1024px) and (max-width: 1365px) {
    .navbar__menu{
        padding: 20px;
    }
    .main_logo{
        flex-direction: row-reverse;
    }
    .dantura_section2 img{
        height: 587px;
        object-fit: cover;
    }
    .bg_contact_form{
        height: 573px !important;
    }
    .contact_form{
        padding-top: 40px;
    }
    .happy_left .happy_img{
        height: 271px;
    }
    .hero_right .row{
        flex-direction: column;
    }
    .hero_right .d-flex{
        width: 100%;
        flex-direction: row !important;
    }
    .hero_list{
        width: 100%;
    }
    .hero__right{
        margin-top: 20px;
        padding-left: 0;
        width: 100%;
    }
    .dantura-info{
        flex-direction: column;
    }
    .offert_right{
        margin-top: 0;
        width: 100%;
    }
    .dantura-info .btn_button{
        margin-bottom: 30px;
    }
    .why_column_right{
        padding-left: 30px;
    }
    .dantura_bg img{
        width: 100%;
        object-fit: contain;
    }
    .more__info{
        padding: 0 15px;
    }
    .hero_left{
        justify-content: flex-start;
    }
    .hero_services .d-flex{
        flex-direction: column;
    }
    .hero_services .col-md-8,
    .hero_services .col-md-4{
        width: 100%;
    }
    .dr_hero img{
        object-fit: contain;
    }

    .bg_hero .col-md-6{
        width: 100%;
    }
    .dantura_section .row{
        flex-direction: column;
    }
    .dantura_section .col-md-8,
    .dantura_section .col-md-4{
        width: 100%;
    }
    .dantura_left{
        padding-right: 0;
        margin-bottom: 30px;
    }
    .calculator_left img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .calculator_section .container .row{
        padding: 30px;
    }
    .dantura_content .d-flex{
        flex-direction: column;
    }
    .dantura__left, .dantura__right{
        width: 100%;
    }
    .dantura__left{
        margin-bottom: 40px;
    }
    .team_slider .swiper-slide{
        padding: 20px;
    }
    .bg_team img{
        height: auto;
    }
    .bg_team{
        height: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
    }
    .benefits_item{
        justify-content: space-between;
    }

    .main-logo{
        flex-direction: row-reverse !important;
    }
    /*.hero_section .row{*/
    /*    flex-direction: column;*/
    /*}*/
    /*.hero_section .col-md-5,*/
    /*.hero_section .col-md-7{*/
    /*    width: 100%;*/
    /*}*/
}