* {
    margin: 0;
    padding: 0;
    font-family: 'Oswald', sans-serif;
    box-sizing: border-box;
    max-width: 100vw;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    background-color: black;
}

.header {
    background-color: black;
    position: relative;
}

.header .logo-container {
    background-color: black;
    padding: 4vh 10vw 4vh 10vw;
    height: auto;
    position: relative;
    z-index: 2;
}

.header .logo-container img {
    height: 11h;
    width: auto;
    margin: 0;
}

.popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #ccc;
    padding: 20px;
    z-index: 1000;
    width: 80%;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.popup-content a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #1e1e1e;
}

.popup-content a:hover {
    text-decoration: underline;
}

.header .text-box {
    text-align: left;
    height: clamp(50vh, 70vh, 80vh);
    width: 80vw;
    margin: 0 10vw;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 5vh;
    position: relative;
    z-index: 2;
    background-image: url('assets/coming-soon-banner.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header .text-box .l1 {
    font-size: clamp(4vw, 10vh, 12vh);
    font-weight: 500;
    margin-bottom: clamp(5px, 1vh, 15px);
    margin-top: 0;
    line-height: 1.1;
}

.header .text-box .l2 {
    font-size: clamp(3vw, 7vh, 9vh);
    margin-bottom: clamp(5px, 1vh, 15px);
    margin-top: 0;
    line-height: 1.1;
}

/*----Car Search Box----*/
.car-search-box {
    margin-top: 3vh;
    background-color: rgba(20, 20, 20, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-end;
}

.search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.search-dropdown {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(40, 40, 40, 0.9);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
}

.search-dropdown:hover {
    border-color: #007bff;
    background-color: rgba(50, 50, 50, 0.9);
}

.search-dropdown:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    background-color: rgba(50, 50, 50, 0.9);
}

.search-dropdown option {
    background-color: #2a2a2a;
    color: #ffffff;
}

.search-dropdown.full-width {
    width: 100%;
}

.search-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-button:hover {
    background-color: #0056b3;
}

.search-button:active {
    transform: scale(0.98);
}

/*----Price Slider Styles----*/
.price-slider-container {
    flex-direction: column;
    margin-bottom: 20px;
}

.slider-wrapper {
    width: 100%;
}

.slider-label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: 0.5px;
}

#price-display {
    color: #007bff;
    font-weight: 600;
    font-size: 18px;
}

.single-slider {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
}

.price-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #007bff;
    border-radius: 3px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0, 123, 255, 0.6);
}

.price-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0, 123, 255, 0.6);
}

.price-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.price-slider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/*----Latest-News----*/
.car-types {
    padding: 15px 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    max-width: 100vw;
    overflow: hidden;
    width: 100%;
}

.category-container {
    width: 80vw;
    max-width: 80vw;
    overflow: hidden;
    order: 2;
}

.categories {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px;
    width: 100%;
    max-width: 100%;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-item:hover {
    color: #676767;
}

.category {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 120px;
    height: 120px;
    padding: 10px;
    background-color: #dbdbdb;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    width: 100%;
    height: 100%;
}

.category-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 5px;
}

.category-item span {
    font-size: 12px;
    font-weight: 500;
}


.category:hover {
    transform: scale(1.05);
    background-color: #444;
}

.category img {
    height: 70px;
    width: auto;
    border-radius: 16px;
}

.category-item {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
}

.category-item:hover {
    color: lightskyblue;
}

.scroll-btn {
    flex: 0 0 auto;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.car-types:hover .scroll-btn,
.latest-news:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.scroll-btn.left {
    order: 1;
}

.scroll-btn.right {
    order: 3;
}

.latest-news {
    width: 80vw;
    max-width: 80vw;
    margin: 0 10vw;
    padding-top: -50px;
    overflow: hidden;
}

.latest-news hr {
    width: 20%;
    margin-top: -1px;
    margin-left: 0px;
    height: 10px;
    background-color: lightskyblue;
    border: 1px solid lightskyblue;
}

.latest-news h3 {
    text-align: left;
    color: #fff;
    font-size: 50px;
}

.container {
    width: 90;
}

.blog-section {
    width: 100%;
    margin-top: 20px;
}

.blog-section .cards {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    margin: 25px auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.blog-section .cards .card {
    width: 100%;
    position: relative;
}

.blog-section .image-section {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
}

.blog-section .image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    border-radius: 16px;
}

.blog-section a {
    text-decoration: none;
}

.blog-section p {
    color: lightskyblue;
    font-size: 12px;
    padding-top: 5px;
}

.blog-section h3 {
    color: #fff;
    font-size: 22px;
    padding-top: 5px;
    transition: filter 0.3s ease;
}

.blog-section h5 {
    color: #fff;
    padding-top: 5px;
    font-weight: normal;
}

.blog-section .card:hover img {
    filter: grayscale(50%);
    border-radius: 16px;
}

.blog-section .card:hover h3 {
    text-decoration: none;
    color: lightskyblue;
}

.blog-section .card hr {
    height: 2px;
    margin-top: 7px;
    color: rgb(128, 206, 255);
    width: 40px;
}

.hr hr {
    margin-top: 100px;
}

/*-----Videos------*/
.videos {
    width: 80vw;
    max-width: 80vw;
    margin: 100px auto 0;
    padding: 0;
    overflow: hidden;
}

.videos hr {
    width: 20%;
    margin: -101px 0 0 0;
    height: 10px;
    background-color: lightskyblue;
    border: 1px solid lightskyblue;
}

.videos h3 {
    text-align: left;
    color: #fff;
    font-size: 50px;
    margin-left: 0;
}

.videos .head {
    display: flex;
    gap: 40px;
    margin: 20px 0;
    padding-left: 0;
}

.videos .container1 {
    width: 100%;
    margin-left: 0;
    margin-top: 50px;
}

.videos .head .image-container {
    flex: 0 0 500px;
}

.videos .head img {
    width: 100%;
    height: auto;
    transition: filter 0.3s ease;
    border-radius: 16px;
}

.videos .head .content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.videos .head h4 {
    color: lightskyblue;
    font-size: 15px;
    margin: 0;
    transition: text-decoration 0.3s ease;
}

.videos .head h5 {
    color: #fff;
    font-size: 5px;
    margin: 10px 0;
    padding: 0;
    transition: text-decoration 0.3s ease;
}

.videos .head p {
    color: #fff;
    margin: 10px 0;
}

.videos .head .p p {
    color: #fff;
    margin: 5px 0;
}

.head .hero-btn {
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 25px;
    font-size: 13px;
    background: transparent;
    cursor: pointer;
    width: fit-content;
    margin-top: auto;
    border-radius: 12px;
}

.container1 .blog-section1 {
    width: 100%;
    margin-top: 20px;
}

.blog-section1 .cards1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    margin: 25px auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.cards1 .card {
    width: 100%;
    position: relative;
}

.blog-section1 .image-section {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
}

.blog-section1 .image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    border-radius: 16px;
}

.blog-section1 a {
    text-decoration: none;
}

.blog-section1 p {
    color: lightskyblue;
    font-size: 12px;
    padding-top: 5px;
}

.blog-section1 h3 {
    color: #fff;
    font-size: 22px;
    padding-top: 5px;
    transition: filter 0.3s ease;
    margin-left: 0;
}

.blog-section1 h5 {
    color: #fff;
    padding-top: 5px;
    font-weight: normal;
}

.blog-section1 .card:hover img {
    filter: grayscale(50%);
    border-radius: 16px;
}

.blog-section1 .card:hover h3 {
    text-decoration: none;
    color: lightskyblue;
}

.blog-section1 .card hr {
    height: 2px;
    margin-top: 7px;
    color: rgb(128, 206, 255);
    width: 40px;
    margin-left: 0;
}

.blog-section1 .more-button {
    width: 150px;
    display: block;
    margin: 30px auto;
    text-align: center;
    padding: 12px 20px;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    cursor: pointer;
    border-radius: 12px;
}

.blog-section1 .more-button:hover {
    color: black;
    background-color: lightskyblue;
}

.hr1 hr {
    margin-top: 50px;
}

.blogs {
    width: 80vw;
    max-width: 80vw;
    margin: 0 10vw;
    overflow: hidden;
}

.blogs hr {
    width: 20%;
    margin-top: 0px;
    margin-left: 0;
    height: 10px;
    background-color: lightskyblue;
    border: 1px solid lightskyblue;
}

.blogs h3 {
    text-align: left;
    color: #fff;
    font-size: 50px;
    margin-left: 0;
}

.blogs .head img {
    margin-left: 0;
    margin-top: 20px;
    width: 60%;
    max-width: 60%;
    height: auto;
    transition: filter 0.3s ease;
    border-radius: 16px;
}

.blogs .head {
    display: flex;
    gap: 40px;
    margin: 20px 0;
    align-items: flex-start;
}

.blogs .head .image-container {
    flex: 0 0 60%;
}

.blogs .head .content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blogs .head h4 {
    color: lightskyblue;
    font-size: 15px;
    margin: 0 0 10px 0;
    transition: text-decoration 0.3s ease;
}

.blogs .head h3 {
    color: #fff;
    font-size: 25px;
    margin: 0 0 15px 0;
    transition: text-decoration 0.3s ease;
}

.blogs .head a {
    text-decoration: none;
    color: inherit;
}

.blogs .head:hover img {
    filter: grayscale(50%);
    border-radius: 16px;
}

.blogs .head:hover h3 {
    text-decoration: underline;
    color: lightskyblue;
}

.blogs .head p {
    color: #fff;
    margin: 10px 0;
}

.blogs .p p {
    margin-top: 5px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header .text-box {
        padding: 5vh;
        text-align: center;
        width: 90vw;
        margin: 0 5vw;
        height: auto;
        min-height: 40vh;
        background-image: none;
    }

    .header .text-box .l1 {
        font-size: clamp(6vw, 8vw, 10vw);
        line-height: 1.2;
    }

    .header .text-box .l2 {
        font-size: clamp(4vw, 6vw, 8vw);
        line-height: 1.2;
    }

    /* Car Search Box Mobile Styles */
    .car-search-box {
        padding: 20px;
        margin-top: 2vh;
    }

    .search-row {
        flex-direction: column;
        gap: 10px;
    }

    .search-dropdown {
        padding: 12px;
        font-size: 14px;
    }

    .search-button {
        padding: 12px;
        font-size: 16px;
    }

    /* Hide desktop search */
    .desktop-search {
        display: none;
    }

    /* Show mobile search inside menu */
    .mobile-search {
        display: block;
        order: -1; /* Ensure search appears first */
    }

    /* Show hamburger menu */
    nav .fa {
        display: block;
    }

    /* Hide default navigation */
    .nav-links {
        position: fixed;
        background: #000000;
        height: 100vh;
        width: 250px;
        /* Increased width to accommodate search */
        top: 0;
        right: -250px;
        /* Adjusted for new width */
        text-align: left;
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 60px;
        border-left: 2px solid lightskyblue;
        overflow-y: auto;
        /* Add scroll if content is too long */
        display: flex;
        flex-direction: column;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }

    .nav-links ul li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid #333;
    }

    .nav-links ul li a {
        display: block;
        padding: 10px 0;
        color: white;
        font-size: 16px;
    }

    .nav-links ul li a:hover {
        color: lightskyblue;
        padding-left: 10px;
        transition: all 0.3s ease;
    }

    /* Close button styling */
    .nav-links .fa-times {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }


    /* Car categories mobile */
    .car-types {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 15px 0 10px 0;
        overflow: hidden;
    }

    /* Hide scroll buttons on mobile */
    .scroll-btn {
        display: none;
    }

    /* Update category container for grid layout */
    .category-container {
        width: 90vw;
        max-width: 90vw;
        padding: 0 5vw;
        overflow: hidden;
    }
    
    .categories {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
        grid-template-rows: repeat(3, 1fr);    /* 3 rows */
        gap: 10px;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .category {
        width: auto; /* Let grid control the width */
        height: 40px; /* Smaller height for mobile grid */
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide images in category cards on mobile */
    .category img {
        display: none;
    }
    
    .category-item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .category-item span {
        font-size: 12px; /* Smaller text for mobile */
        text-align: center;
        color: #000000;
    }

    /* Blog sections mobile */
    .blog-section .cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .card {
        max-width: 100%;
    }

    .card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .blog-section .image-section,
    .blog-section1 .image-section {
        height: 180px;
    }

    .card .content {
        padding: 15px;
    }

    .card h3 {
        font-size: 18px;
        line-height: 1.3;
    }

    .card:nth-child(n+4) {
        display: none;
    }

    /* Videos section mobile */
    .blog-section1 .cards1 {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* Blogs section mobile */
    .blogs {
        width: 95vw;
        margin: 0 2.5vw;
    }

    .blogs .head {
        flex-direction: column;
        gap: 20px;
    }

    .blogs .head .image-container {
        flex: none;
    }

    .blogs .head img {
        width: 100%;
    }

    .blogs h3 {
        font-size: 35px;
    }

    /* Contact card mobile */
    .contact-card {
        padding: 30px 20px;
        text-align: center;
    }

    .contact-card img {
        height: 60px;
    }

    .social-icons {
        gap: 15px;
        margin: 20px 0;
    }

    .contact-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {

    .text-box .l1,
    .text-box .l2 {
        font-size: 20px;
    }

    .categories {
        gap: 10px;
    }

    .category {
        min-width: 100px;
    }

    .category img {
        width: 80px;
        height: 80px;
    }

    .blog-section .cards {
        padding: 0 15px;
    }

    .card h3 {
        font-size: 16px;
    }

    .blog-section .image-section,
    .blog-section1 .image-section {
        height: 160px;
    }
}