@media(max-width: 1600px) {
    .search_by_kw {
        width: 480px;
        margin: auto;
    }

}

@media(max-width: 1400px) {
    .slider_item {
        min-height: 100vh;
    }

    .key {
        padding: 0 15px;
    }

    .search_by_kw form {
        width: 85%;
    }

    .search_by_kw {
        width: 370px;
        margin: auto;
    }
}

@media(max-width: 1280px) {
    .car-paginate-btn {
        width: 15%;
    }
}

@media(max-width: 1200px) {
    .laptop-hide {
        display: none;
    }

    .brand_list ul li a .brand_logo {
        width: 25px;
        margin-right: 0px;
    }

    .right_aside {
        display: none !important;
    }

    .top_bar {
        padding: 10px 0px;
    }

    .main_bar {
        padding: 5px 0px;
    }

    .search_by_kw {
        width: 450px;
        margin-right: 50px;
    }

    .ad_section {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

}

@media (max-width: 1024px) {
    .search_by_kw {
        width: 350px;
        margin-right: 0;
    }
}

@media(max-width: 991px) {

    .top_bar ul,
    .right_nav_items ul {
        justify-content: center !important;
        margin-bottom: 5px;
    }

    .toggler-btn {
        display: block;
        margin-left: 10px;
    }

    .headring_title h4 {
        font-size: 16px;
    }

    .bid-cars {
        padding-left: 0px;
    }

    .heading {
        justify-content: flex-start;
        gap: 15px;
    }

    .search-by-make-btn {
        display: flex !important;
    }

    .search-by-make-btn ul {
        display: flex;
        flex-wrap: wrap;
        align-items: start;
    }

    .search-by-make-btn ul {
        padding: 0px 5px;
    }

    .search-by-make-btn {
        display: flex !important;
    }

    .car_icon {
        font-size: 20px;
    }

    .dibcars-stock {
        justify-content: end;
        /* margin-top: 10px; */
        padding: 0;
    }

    .tablet-hide {
        display: none;
    }

    .currency {
        padding: 2px 6px;
    }

    .currency select {
        font-size: 16px;
    }

    /* .dibcars-stock {
        justify-content: start;
    } */
    .bid-cars a,
    .instock a {
        font-size: 14px;
    }

    .show-mobile.buy-search-stock-btn {
        left: 100px;
        top: 150px;
    }

    .show-mobile i {
        font-size: 10px;
    }

    .single_person img {
        height: 200px;
    }

    .person_details p {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .person_details {
        height: 200px;
    }

    .slogan h3 {
        font-size: 40px;
    }

    .sidebar_title {
        font-size: 14px;
    }

    .sidebar_title img {
        margin-right: 10px;
        width: 16px;
    }

    .arrow {
        display: none;
    }

    .slider_item {
        min-height: 50vh;
    }

    .search_block {
        left: 40px;
    }

    .search_by_kw form {
        width: 70%;
    }

    .key {
        padding: 0 0px;
    }

    .keyword_search_block .stock_button img {
        margin-left: 0;
    }

    .brand_list ul li {
        margin-left: 0%;
    }

    .post_items {
        margin-bottom: 20px;
    }

    .signup_section {
        margin-top: 0px !important;
    }

    /* .main_header {
        display: none;
    } */

    .header_desktop_none {
        display: block;
    }

    .search-form form {
        background-color: #FFF9F9;
        border: 1px solid rgb(184, 184, 184);
        padding: 15px 15px;
        margin-top: 20px;
    }

    .search-form form .col-md-2 {
        padding: 0px 3px;
    }

    .search-form label {
        font-size: 12px;
    }

    .search-form input {
        padding: 8px;
    }

    .btn-submit {
        font-size: 14px;
    }

    .brand_list {
        padding: 0px;
    }

    .custom_padding {
        padding: 0 5px;
    }

    .brand_logo {
        width: 20px;
    }

    .brand_list ul li a {
        font-size: 14px;
    }

    .search-form .color-options {
        padding: 4px 10px 2px;
    }

    .search-form .color-options label {
        width: 12px;
        height: 12px;
    }

    .filter-row label {
        font-size: 10px;
    }

    .filter-row button {
        padding: 4px 5px;
        font-size: 10px;
    }

    .filter-row .col-auto {
        padding: 0 5px;
    }

    .sortToggle {
        font-size: 10px;
    }

    .col-lg-2.col-md-4.col-6.p-1 {
        flex: 0 0 20%;
    }

    .ask-btn {
        position: static;
        transform: translate(0px, 0px);
        width: 200px;
        margin: auto;
    }

    .showONDesktop {
        display: block;
        bottom: 100px;
        opacity: 1;
    }

    .download-btn {
        text-align: center !important;
    }

    .sticky-buttons {
        display: block;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-52%);
        z-index: 100;
    }

    .showONDesktop {
        display: none;
    }

    .filter_button_mobile.about_page {
        display: block;
    }

    .filter_button_mobile.home_page {
        display: none;
    }

    .about_page .brand_list ul {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .about_page .brand_list ul li {
        width: 15%;
        margin-left: 0;
        margin-bottom: 5px;
        margin: 1px;
    }

    .about_page .brand_list ul li a {
        display: block;
        text-align: center !important;
        font-size: 12px;
        border: 1px solid rgba(217, 217, 217, 1);
        border-radius: 4px;
        background: #F3F3F3;
        padding: 10px 0px;
        margin: 4px;
        width: 100%;
    }

    .about_page .brand_list ul li a .brand_logo {
        margin: auto;
        margin-bottom: 5px;
    }

    .about_page #wrap_search_by_car_card {
        display: block;
    }

    /* .about_page.home_page #wrap_search_by_car_card{
    display: none;
} */
    .steps-btn .btn-steps .steps-text {
        border-radius: 2px;
    }

    .menu-img-1 {
        position: relative;
    }

    .menu-img-2 {
        position: relative;
    }

    .show-mobile {
        display: block;
    }

    .buy-search-menu-stock-btn {
        position: absolute;
        top: 50%;
        left: 12%;
        padding: 3px 0px;
        border: 2px solid #E7E7E7;
        width: auto;
        display: flex;
    }

    .buy-search-menu-stock-btn h4 {
        margin-bottom: 0;
        font-size: 6px;
        padding: 0 2px;
        font-weight: 700;
    }

    .menu-img-3 {
        width: 55%;
        margin: auto;
    }

    .steps-btn .btn-steps {
        padding: 8px 15px 2px 25px;
    }

    /* Tablet Footer Adjustment: Use Desktop HTML but wrap links */
    footer .mobile_none .col-md-8 .d-flex {
        flex-wrap: wrap;
        gap: 20px 0;
        /* Add vertical gap between rows */
    }

    footer .mobile_none .col-md-8 .d-flex .quick_list {
        width: 33%;
        /* 3 columns per row */
        margin-bottom: 10px;
    }
}


@media(max-width: 890px) {
    .slider_item {
        min-height: 60vh;

    }

    /* .top_bar ul li {
        font-size: 13px;
        margin-right: 8px;
    } */

    /* .top_bar ul li.mobile_none {
        display: none !important;
    } */

    /* .top_bar ul li i {
        margin-right: 6px;
        font-size: 5px;
    } */

    .search_by_kw {
        width: 400px;
        margin-right: 0 !important;

    }
}

@media (max-width: 767px) {

    .heading.desktop_hide .headring_title {
        color: rgb(0, 0, 0);
        margin-left: 5px;
    }

    .heading.desktop_hide .headring_title h4 {
        font-size: 20px;
    }

    .heading.desktop_hide {
        background-color: rgb(255, 255, 255);
        display: flex;
        justify-content: start;
        padding: 5px 15px;
    }

    .heading.desktop_hide .car_icon {
        color: rgb(220, 53, 69);
    }

    .search_by_kw input {
        background-color: #fff;
        color: rgba(143, 139, 139, 1);
        padding: 6px 10px;
        font-size: 15px;
    }
}

@media(max-width: 820px) {
    .btn-submit {
        margin-right: 0;
    }

    .sidebar_title {
        flex-wrap: wrap;
    }

    .sidebar_title img {
        display: block;
    }

    .bid-cars {
        padding: 0;
        margin-top: 10px;
    }

    .instock {
        padding: 0;
        margin-left: 4px;
        margin-top: 10px;
    }

    .bid-cars a,
    .instock a {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .gallery-modal-header {
        padding: 15px 20px;
    }

    /* Hide Desktop Elements */
    .gallery-modal-specs,
    .btn-download-all {
        display: none;
    }

    /* Adjust Header Layout */
    .gallery-modal-header {
        justify-content: space-between;
    }

    .gallery-modal-title h5 {
        font-size: 14px;
        margin-bottom: 0;
    }

    /* Show Mobile Info */
    .mobile-modal-info {
        display: block;
        margin-bottom: 20px;
    }

    .mobile-specs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
        background-color: #F8F8F8;
        padding: 8px 15px;
        border-radius: 20px;
        width: fit-content;
    }

    .mobile-specs span {
        font-size: 12px;
        color: #8E8D92;
        font-weight: 500;
    }

    .mobile-specs .divider {
        width: 1px;
        height: 12px;
        background-color: #E2E2E2;
        display: inline-block;
    }

    .mobile-download-link {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--dark-red);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-download-link:hover {
        color: var(--dark-red);
    }

    /* Adjust Modal Body */
    #galleryModal .modal-body {
        padding: 15px;
    }

    /* Hide Arrows on Mobile (Optional, based on design preference for cleaner look) */
    .modal-arrow {
        display: none;
    }

    .thumb-scroll-container {
        gap: 4px;
    }

    .thumb-strip {
        width: 60px;
        height: 45px;
    }
}

@media(max-width: 600px) {
    /* .left_sidebar ul {
        display: flex;
        flex-wrap: wrap;
        align-items: start;
        margin: 15px 0;
        justify-content: start;
    } */

    /* .left_sidebar ul li a {
        display: block;
        text-align: center;
        color: #000;
        font-size: 14px;
    } */
    /* 
    .left_sidebar .brand_logo {
        width: 40px;
        margin: auto;
    } */

    /* .left_sidebar ul li {
        width: 8%;
    } */

    /* .left_sidebar ul {
        display: flex;
        flex-wrap: wrap;
        align-items: start;
        list-style: none;
    } */

    .left_sidebar .desktop_hide {
        display: block;
        padding: 0;
    }

    /* .left_sidebar ul li a {
        font-size: 12px;
        color: black;
    }

    .left_sidebar ul li {
        margin: 10px;
    } */

    /* .left_sidebar .brand_logo {
        margin-right: 5px;
    } */

    /* -------------- */
    .car_list button {
        font-size: 12px;
        padding: 8px 10px;
    }

    .sort-select option {
        font-size: 14px;
    }

    .sorting_row h2 {
        font-size: 16px;
    }

    .sorting-field {
        width: 240px;
        margin-left: 0;
        margin-top: 10px;
    }

    .sorting_row .sorting-field label {
        font-size: 14px;
    }

    .sort-select {
        font-size: 14px;
    }

    .search-by-make-btn {
        padding: 8px 10px;
    }

    .headring_title h4 {
        font-size: 14px;
    }

    .car_icon {
        font-size: 14px;
    }

    .ad_section {
        display: block !important;
    }

    .moile-search-block {
        display: flex !important;
        margin-top: 10px;
    }

    .left_sidebar ul li {
        width: 15%;
        margin: 4px;
    }

    .main_bar ul li {
        margin: 6px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #444;
        line-height: 35px !important;
        font-size: 14px;
    }

    .search_by_kw {
        width: 80%;
        margin-right: 0 !important;
        margin-left: 0;
    }

    .desktop_hide {
        display: inherit;
    }

    .tablet-hide {
        display: inherit;
    }

    .carousel_block .owl-dot.active span {

        height: 6px;
        width: 16px;

    }

    .carousel_block .owl-dot span {

        height: 4px;
        width: 10px;
        margin: 2px;
    }

    .btn-submit {
        width: 100%;
    }

    form label {
        font-size: 14px;
    }

    .select2-container .select2-selection--single {
        height: 35px !important;
    }

    .reset-filter {
        margin-right: 10px;
        font-size: 12px;
        font-weight: 600;
        padding: 6px 12px;
    }


    .currency {
        margin-right: 0 !important;
    }

    .top_bar ul {
        justify-content: space-between;
    }

    /* .top_bar ul li {
        font-size: 12px;
    } */

    .breadcrumbs {
        display: block;
    }

    .filter_button_mobile.home_page {
        display: block;
    }

    .inner-intro {
        height: 250px;
        display: block;
    }

    .controls {
        margin: 20px 0;
    }

    .intro-title {
        height: 250px;
    }

    .controls button {
        font-size: 14px;
    }

    .steps-btn .btn-steps .steps-title {
        font-size: 25px;
        line-height: 18px;
    }

    .btn-steps.col-6 {
        flex: 0 0 auto;
        width: 50% !important;
    }

    .steps-btn .btn-steps .steps-title {
        font-size: 31px;
        padding-top: 3px;
    }

    .img-div1 img {
        width: 100%;
    }

    .how-to-buy {
        font-size: 50px;
        margin-bottom: 25px;
    }

    .steps-btn .btn-steps {
        height: 200px;
    }

    .show-mobile.buy-search-stock-btn {
        left: 90px;
        top: 130px;
    }

    .show-mobile h4 {
        font-size: 14px;
    }



    .about_page .brand_list ul li {
        width: 23%;
        margin-left: 0;
        margin-bottom: 5px;
        margin: 1px;
    }

    .person_details {
        height: fit-content;
    }

    .slogan h2 {
        width: 100%;
        font-size: 40px;
        line-height: 130%;
        padding: 0;
    }

    .memorable_gallery h2 {
        font-size: 40px;
    }

    .contact_row h6 {
        font-size: 40px;
    }

    .slogan h3 {
        font-size: 24px;
        line-height: 130%;
    }

    .slogan_block p {
        font-size: 20px;
    }

    .banking_details h2 {
        font-size: 40px;
        color: #db2d2e;
        margin-bottom: 20px;
    }

    .about-details h2 {
        font-size: 32px;
        line-height: 150%;
        margin: 20px 0;
    }

    .about-details h3 {
        margin-top: 15px;
    }

    .why_choose h2 {
        font-size: 40px;
        line-height: 130%;
    }

    .padd {
        padding: 0;
    }

    .team h2 {
        font-size: 40px;
        line-height: 130%;
    }

    .search-form .color-options {
        padding: 11px 10px 4px;
    }

    .search-form .color-options label {
        width: 17px;
        height: 17px;
    }

    .dbl_select {
        width: 70% !important;
    }

    /* Single Product Page Mobile Fixes */
    .tablet-hide {
        display: none !important;
    }

    .car-info {
        margin-top: 10px;
        flex-direction: column;
    }

    .car-title h2 {
        font-size: 24px;
        margin-bottom: 10px;
        margin-left: 5px;
    }

    .car-title p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .price h2 {
        font-size: 14px;
        margin-top: 6px;
    }

    .car-galleries .col-md-8,
    .car-galleries .col-md-4 {
        width: 100%;
        padding: 0 15px;
    }

    .car-galleries .col-md-4 {
        margin-top: 10px;
    }

    .car-galleries .col-md-4 .row>div {
        width: 33.33% !important;
        padding: 2px !important;
    }

    .car-galleries .col-md-4 .row>div:nth-child(n+3):not(:last-child) {
        display: none !important;
    }

    .car-full-details .col-4 {
        width: 50%;
        /* 2 items per row on mobile for details */
    }

    .car-full-details .info {
        padding: 15px 5px;
    }

    .car-full-details .info h6 {
        font-size: 12px;
    }

    .car-full-details .info img {
        width: 20px;
    }

    .car-specifications .col-sm-6 {
        width: 50%;
        /* 2 items per row for specs */
    }

    .spec-item {
        font-size: 12px;
        padding: 8px;
    }

    .cars_info_box ul {
        flex-wrap: wrap;
    }

    .modal-dialog {
        width: 90%;
        margin: 30px auto 0;
    }

    .asking_price .modal-body {
        padding: 14px 0;
    }

    .subscribe_checkbox p {
        font-size: 12px;
    }

    .car_information {
        margin: 0 10px 10px;
    }

    .asking_price .alert-info {
        padding: 10px;
    }

    .asking_price .alert-info ul p {
        font-size: 12px;
    }

    .car_query_form {
        padding: 20px 10px;
        margin: 0 10px;
    }

    .car_query_form label {
        font-size: 12px;
    }

    .car_query_form input,
    .car_query_form select {
        font-size: 12px;
    }

    .filter_button_mobile .row .col-4 {
        padding: 5px;
    }

    .fw-bold {
        margin-right: 0;
    }

    .search-form h2 {
        font-size: 16px;
    }

    .card {
        margin-bottom: 20px;
    }

    .filter-row {
        margin: 0;
    }

    .sortToggle {
        font-size: 10px !important;
    }

    .desktop_filter_options {
        display: none;
    }

    .filter_button_mobile {
        display: block;
    }

    .desktop_brand_list {
        display: none;
    }

    .quick_list h5,
    .social_icon h5 {
        margin-bottom: 5px;
        margin-top: 15px;
    }

    .hero_section {
        background-image: url(../img/Mobile-3.png);
        background-position: top center;
        background-repeat: no-repeat;
        background-size: cover;
        min-height: 105vh;
    }

    .search_block {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        top: 200px;
    }

    .navbar-brand {
        width: 30%;
    }

    /* .right_nav_items img {
        width: 80px;
    } */

    .currency p,
    .currency select {
        font-size: 10px;
    }

    .currency {
        padding: 0px 4px;
    }

    /* .mobile_none {
        display: none !important;
    } */

    .desktop_none {
        display: block;
    }

    .desktop_none .search_by_kw {
        display: flex;
        padding: 4px;
        margin-bottom: 10px;
    }

    .key {
        padding-left: 5;
    }

    .search_by_kw button {
        padding: 8px 10px;
        font-size: 14px;
    }



    .search_by_kw form {
        width: 65%;
    }

    .keyword_search_block .stock_button {
        padding: 12px 0;
        font-size: 14px;
    }

    .keyword_search_block .bid_cars {
        padding: 4px 0;
        justify-content: start;
    }

    .bid_cars P {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
    }

    .bid_cars P span {
        display: none;
    }

    .bid_cars img {
        margin-right: 4px;
    }

    .keyword_search_block .stock_button img {
        width: 24px;
    }

    .keyword_search_block .bid_cars img {
        margin-right: 6px !important;
        width: 35px !important;
        margin-left: 17px !important;
    }

    .brand_list ul {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .brand_list ul li {
        width: 23%;
        margin-left: 0;
        margin-bottom: 5px;
        margin: 1px;
    }

    .brand_list ul li a {
        display: block;
        text-align: center !important;
        font-size: 12px;
        border: 1px solid rgba(217, 217, 217, 1);
        border-radius: 4px;
        background: #F3F3F3;
        padding: 10px 0px;
        margin: 4px;
        width: 100%;
    }

    .brand_list ul li a .brand_logo {
        margin: auto;
        margin-bottom: 5px;
    }

    .items_list ul li a {
        align-items: flex-start;
    }

    /* .items_list ul li a img {
    margin-top: 4px;
} */
    .items_list ul li a {
        font-size: 9px;
    }

    .post_items {
        margin-bottom: 16px;
    }

    .signup_section img {
        width: auto !important;
    }

    .show_all_btn {
        display: block;
    }

    .ad_carousel {
        margin-top: 30px;
    }

    .mobile_nav .navbar-nav {
        margin-bottom: 0px !important;
    }

    .price_button {
        margin-top: 8px;
    }

    .price_button p {
        font-size: 11px;
    }

    .cars_info_box h3 {
        font-size: 14px;
    }

    .cars_info_box p {
        font-size: 9px;
    }

    .cars_info_box ul li .others_info {
        font-size: 10px;
    }

    .cars_info_box ul li p {
        font-size: 10px;
    }

    .cars_info_box ul li {
        margin-right: 10px;
    }

    .price_button {
        margin-top: 8px;
    }

    .price_button p {
        font-size: 11px;
    }

    .price_button button {
        font-size: 12px;
        padding: 7px 0px;
    }

    .cars_info_box {
        padding: 0;
    }

    .filter_button_mobile {
        display: block;
    }
}

@media(max-width: 480px) {
    .mobile_none {
        display: none;
    }

    .top_bar {
        border-radius: 20px;
    }

    .main_navbar {
        border-radius: 20px;
    }

    .top_bar ul li {
        font-size: 10px;
        margin-left: 8px;
    }

    .currency select {
        font-size: 10px;
        padding: 4px;
    }

    .customer-login-btn {
        font-size: 10px;
    }

    .right_nav_items li:last-child {
        margin-right: 6px;
    }

    .right_nav_items li:first-child {
        margin-right: 0;
    }

    .navbar-brand img {
        width: 80%;
    }

    .slider-image .slider-item img {
        border-radius: 15px;
    }

    .mobile_search_form form {
        width: 82%;
    }

    .search_by_kw input {
        background-color: #E2E2E2;
        font-size: 10px;
        padding: 9px;
        color: #8E8D92;
    }

    .search_by_kw button {
        font-size: 10px;
        border-radius: 30px;
        margin-left: -50px;
        padding: 12px auto;
        padding-right: 12px;
        font-size: 12px;
    }

    .search_by_kw button button i {
        font-size: 18px;
    }

    .car-paginate-btn {
        width: 30%;
    }

    .newsletter-section {
        padding: 40px 10px
    }

    .newsletter-section form {
        width: 100%;
    }

    .post_items {
        border-radius: 20px;
    }

    .post_items img {
        border-radius: 20px;
    }

    .post_items h3 {
        margin: 10px;
        margin-bottom: 15px;
        font-size: 12px;
        line-height: 20px;
    }

    .post_items a {
        color: var(--dark-red);
        background-color: var(--light-red);
        padding: 4px 12px;
        margin-left: 10px;
        font-size: 12px;
    }

    .mobile_recent_blogs {
        display: block;
    }

    .right_aside {
        display: none;
    }

    footer {
        padding: 20px 0px 0px;
    }

    .mobile_footer {
        display: block
    }

    .car-search-summary {
        font-size: 12px;
    }

    .car-search-summary p {
        padding-top: 6px;
    }

    .list-pagination {
        display: block;
    }

    .list-pagination .pagination {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
    }

    .teams .our_ceo {
        display: block;
    }
}

@media(max-width: 430px) {
    .hero_section {
        min-height: 95vh;
    }
}

@media(max-width: 375px) {}

@media(max-width: 360px) {

    .menu span,
    .menu span:before,
    .menu span:after {
        width: 20px;
        height: 2px;
    }

    .menu {
        margin: 0px !important;
    }

    .price_button button {
        font-size: 10px;
        width: 55%;
    }

    .price_button p {
        font-size: 9px;
    }

    .car-search-summary {
        font-size: 11px;
    }
}