@media(max-width:1399px){
    #header .site-logo{
        margin-bottom:15px;
    }
    
    #header .social-icons {
        margin-top: 1px;
    }
    
    #block-toyotires-mainnavlive{
        height:auto;
        width: 83%;
    }
    
    /* Show toggle button on mobile */
    .footer-toggle-btn {
        display: block !important;
        width: 11%;
        padding: 12px 15px;
        font-size: 18px;
        background: #ffffff;
        color: #0068b3;
        border: none;
        text-align: left;
        cursor: pointer;
        margin-bottom: 10px;
        text-align: center;
        margin-left: 49rem;
        font-weight: bold;
        float: right;
    }
    
    #src-mnu1-open-responsive{
        margin-top: 57px !important;
    }

    /* Hide all footer menu content by default */
    .footer-toggle-wrapper {
        display: none;
    }

    /* When active (after clicking), show menu */
    .footer-toggle-wrapper.active {
        display: block;
    }

    /* ------------------------------------------
       FIX: Restore footer menu layout
       ------------------------------------------ */

    #footer ul li {
        width: auto !important;
        display: list-item !important;
        border: none !important;
        padding: 3px 0 !important;
        margin: 0 !important;
        background: none !important;
    }

    /* Footer column layout */
    #footer .region-1 > div {
        float: left;
        width: 50%;  /* change to 25% if needed */
    }
    
    #footer .responsive-menus-simple,
    #footer .rm-removed,
    #footer ul.rm-removed,
    #footer div.rm-removed {
        display: none;
        visibility: visible !important;
        height: auto !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding: 10px;
    }
    
    .responsive-menus-simple{
        position: absolute;
        bottom: 11rem;
        background: white;
        width: 50%;
    }
    
    #footer li a{
        color: black;
        font-size: 17px;
        margin-right: 9px;
        vertical-align: middle;
    }
    
    #block-multiblock-2{
        background: white;
        padding: 10px;
        border-radius: 6px;
    }
    #block-toyotires-toyotiresworldwide{
        position: unset;
    }
    
    .responsive-footer-region{
        display: flex;
        display: block;
    }
    
    #block-toyotires-toyotiresworldwide, #block-toyotires-toyotiresworldwide-2 {
        float: left;
    }
    
    #footer .form-select{
        padding: 14px;
    }
    
    .footer-toggle-btn {
        display: block;
    }
    
}

@media(max-width: 1368px){
    #src-mnu1-open-responsive{
        margin-top: 0px !important;
    }
}
@media(max-width:1199px){
    #content-bottom #block-views-content_bottom-block_1 {
        width: auto; 
        float: none; 
        margin-right: 0;
    }
    
    .not-front #content-bottom {
        width: 100%;
        margin: 0 0 18px 0;
        display:flex;
    }
    
    .block__content .tire-pattern-details .product-details img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .block__content .tire-pattern-details .view-content img {
        object-fit: contain;
    }
    
    .tire-pattern-details .viewfeature .insHdnTab{
        font-size: 2.6em;
    }
    
    .tire-pattern-details .viewfeature h3{
        font-size: 1.6em;
    }
    
    .tire-pattern-details .viewfeature .tire-features-title {
        font-size: 1.5em !important;
    }
    
    .block__content .tire-pattern-details .view-content .tss img{
        width:auto;
    }
    
    .tire-pattern-details .reviews-wrap .ratingLeft {
        width: 40%;
        padding-right: 15px;
    }
    
    .tire-pattern-details .reviews-wrap .ratingRight {
        width: 60%;
    }
    
    .footer-toggle-btn {
        display: block;
    }
    
    #main .container {
        margin-top: 0rem; 
    }
    
}

@media(max-width: 1024px) {
    #block-toyotires-toyotiresworldwide {
        bottom: 18rem !important;
        left: 14px !important;
    }
    
    .region-2 {
        position: relative !important;
        bottom: 17rem !important;
        right: 33px !important;
    }
    
    .footer-toggle-btn {
        display: block;
    }
}

@media(max-width: 1023px){
    #header #block-locale-language, #header #block-toyotires-languageswitcher, #footer #block-toyotires-languageswitcher {
    margin: 0 95px 0 0;
    }
    
    .tire-finder-drop-wrapper{
        top:13px;
    }
    
    .slider-pagination {
        bottom: 20px;
    }
    
    body.front .flex-control-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .flex-control-nav.flex-control-paging li a{
        background-color:#00a1e1;
    }
    
    .flex-control-paging li a.flex-active {
        background: none repeat scroll 0 0 rgba(255, 255, 255, 1);
    }
    
    #block-views-content_bottom-block{
        margin-left:0;
    }
    
    .not-front #content-bottom{
        display:inline-block;
    }
    
    #content-bottom #block-views-tweets_block-block {
        width: 100%;
        margin-bottom: 15px;
    }
    
    #content-bottom #block-views-content_bottom-block_1 {
        width: 50%;
        margin-left: 2%;
    }
    
    .not-front #header .header-background {
        display: block;
    }
    
    .main-content-area{
        margin-top:60px;
    }
    
    .slide-content h1{
        height:auto;
        margin-bottom:0;
    }
    
    .slide-content p{
        margin-bottom:0;
        margin-top:10px;
        line-height: 20px;
    }
    
    .video-container{
        margin: 10px 0 0 0;
    }
    
    .slide-button{
        margin-top:10px;
    }
    
    .video-container img{
        max-width:160px;
    }
    
    .new_prdt_part .graphic-title {
        max-width: 100%;
        width:auto;
        height: auto;
    }
    
    .main-content-area .new_prdt_part ol, .main-content-area .new_prdt_part ul{
        padding-left: 0;
    }
    
    .tire-pattern-details .new_prdt_part .product-slider {
        max-width: 460px;
        margin: 0 auto;
        float: none;
    }
    
    .tire-pattern-details .node-tire-pattern .product-details{
        width: 100%;
        margin-top: 30px;
    }
    
    .tire-pattern-details .video-slider-wrapper .flexslider .slides li {
        max-width: 100%;
    }
    
    .tire-pattern-details .video-slider-wrapper .flexslider .slides img{
        width: 100%;
    }
    
    .tire-pattern-details .view-tire-features .views-field-field-image {
        margin-bottom: 20px;
    }
    
    .tire-pattern-details .reviews-wrap .ratingLeft {
        width: 50%;
    }
    
    .tire-pattern-details .reviews-wrap .ratingRight {
        width: 50%;
    }
    
    .tire-pattern-details .ratingBtm{
        margin-bottom: 0;
    }
    
    .tire-pattern-details .ratting-wrap{
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    #block-views-tweets_block-block .views-field-text a, #block-views-tweets_block-block_1 .views-field-text a {
        word-wrap: break-word;
    }
    
    .footer-toggle-btn {
        display: block;
    }
    
    .blog-main-content-area {
        display: block;
    }
    
    .main-content-area {
        margin-top: 0;
    }
    
    .node-header-image {
        height: 20rem;
    }
    
    #page-title-header {
        top: 50%;
    }
    
    .not-front .header-background img{
        min-width:100%;
    }
    
    .block__content img {
        height:auto;
    }
}


@media (max-width: 900px) {

    /* Show toggle button on mobile */
    .footer-toggle-btn {
        display: block;
        width: 100%;
        padding: 12px 15px;
        font-size: 18px;
        background: #333;
        color: #fff;
        border: none;
        text-align: left;
        cursor: pointer;
        margin-bottom: 10px;
        text-align: center;
        margin-left: 0px;
    }

    /* Hide all footer menu content by default */
    .footer-toggle-wrapper {
        display: none;
    }

    /* When active (after clicking), show menu */
    .footer-toggle-wrapper.active {
        display: block;
    }

    /* ------------------------------------------
       FIX: Restore footer menu layout
       ------------------------------------------ */

    #footer ul li {
        width: auto !important;
        display: list-item !important;
        border: none !important;
        padding: 3px 0 !important;
        margin: 0 !important;
        background: none !important;
    }

    /* Footer column layout */
    #footer .region-1 > div {
        float: left;
        width: 50%;  /* change to 25% if needed */
    }
    
     #footer .responsive-menus-simple,
    #footer .rm-removed,
    #footer ul.rm-removed,
    #footer div.rm-removed {
        display: none;
        visibility: visible !important;
        height: auto !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding: 10px;
    }
    
    .responsive-menus-simple{
        position: absolute;
        bottom: 11rem;
        background: white;
        width: 50%;
    }
    
    #footer .form-select{
        padding: 0px;
        margin-left: 75px !important;
    }
    
    #block-multiblock-2 {
        background: white;
        padding: 2px;
        border-radius: 6px;
        margin: 9px;
        margin-left: 77px;
    }
    
    .footer-toggle-btn {
        display: block;
    }
}

@media(max-width: 767px){
    .tire-finder-drop-wrapper{
        top:52px;
    }
    
    #header #block-locale-language, #header #block-toyotires-languageswitcher, #footer #block-toyotires-languageswitcher {
        margin: 0;
    }
    
    #header .social-icons .block-inner .content{
        display:flex;
        margin-bottom: 24px;
    }
    
    #header .tb-megamenu .btn.tb-megamenu-button {
        top: 52px !important;
    }
    
    #content-bottom #block-views-content_bottom-block{
        width:100%;
    }
    
    #content-bottom #block-views-content_bottom-block_1 {
        width: 100%;
        margin-left: 0;
    }
    
    .slide-content{
        padding:20px;
    }
    
    .slide-content h1{
        font-size: 22px;
    }
    
    .tire-pattern-details .reviews-wrap .ratingLeft {
        width: 100%;
    }
    
    .tire-pattern-details .reviews-wrap .ratingRight {
        width: 100%;
    }
    
    .tire-pattern-details .accordBlock h3.insHdnTab{
        font-size: 18px !important;
    }
    
    .tire-pattern-details .view-tire-features .views-row-odd.views-row-first {
        margin-top: 40px;
    }
    
    .tire-pattern-details .viewfeature .tire-features-title {
        font-size: 1.2em !important;
    }
    
    .tire-pattern-details .viewfeature h3 {
        font-size: 1.5em;
    }
    
    .tire-pattern-details .video-slider-wrapper .flexslider .slides li{
        flex: 0 0 100%;
    }
    
    .tire-pattern-details .video-slider-wrapper .flexslider .slides img{
        object-fit: cover;
    }
    
    .tire-pattern-details .viewfeature .insHdnTab {
        font-size: 2em;
    }
    
    .tire-phts{
        width: 48%;
    }
    
    .cstm-home-page .styleas_h2, .styleas_h2_title {
        font-size: 20px !important;
    }
    
    .cstm-home-page .slide-button {
        margin: 10px auto 0;
    }
    
    .cstm-home-page .banner-slider .video-container{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .blog-main-content-area{
        display: block;
    }
    
    #content-area.blog-main-content-area .view-blog-landing-page .views-field-field-image {
        float: none; 
        margin: 0;
    }
    
    .blog-main-content-area .view-blog-landing-page .views-field-view-node{
        float: none; 
    }
    
    .blog-main-content-area .view-blog-landing-page .views-field-view-node a{
        margin-right: 0;
    }
    
    .blog-main-content-area .field-content img{
        height: auto;
    }
    
    .node-header-image {
        height: 10rem;
    }
    
}