body {
        font-family: 'Trebuchet MS', sans-serif;
        line-height: 32px;
        margin: 0;
        padding: 0;
    }

    .car-details {
        position: relative;
        height: 700px;
        color: white;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .car-details img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
    }

.car-details h3 {
    font-size: 2em;
    margin: 0;
}

.car-details p {
    font-size: 1.2em;
}

.model-info {
    background-color: black;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.model-info h3 {
    font-size: 2em;
    margin-bottom: 30px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.links a {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    transition: background-color 0.3s, color 0.3s;
}

.links a:hover {
    background-color: white;
    color: black;
}

.car-specs {
    padding: 50px 20px;
    background-color: #f2f2f2;
    text-align: center;
    background-size: cover; 
    background-attachment: fixed;
}

.specs-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.spec-column {
    width: 20%;
    min-width: 200px;
    background-color:rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.spec-column h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;

}

.spec-column p {
    font-size: 1em;
    margin: 5px 0;
    color: white;
}

.car-exterior {
    padding: 10px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.car-exterior .main-image img {
    width: 100%;
    border-radius: 10px;
    height: auto;
    transition: transform .2s;
}

.thumbnail-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.thumbnail {
    width: 32%;
    text-align: center;
}

.thumbnail img {
    border-radius: 15px;
    transition: transform .2s;
    width: 100%;
    height: auto;
}

.thumbnail p {
    margin-top: 10px;
    font-size: 1em;
}

.car-interior {
    padding: 50px 20px;
    background-color: #e9e9e9;
    text-align: center;
}

.car-interior .main-image img {
    width: 100%;
    transition: transform .2s;
    border-radius: 25px;
    height: auto;
}

.interior-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.interior-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.interior-item.reverse {
    flex-direction: row-reverse;
}

.interior-image {
    width: 60%;
}

.interior-image img {
    width: 70%;
    transition: transform .2s;
    border-radius: 20px;
    height: auto;
}

.interior-description {
    width: 40%;
    padding: 0 20px;
}

.interior-description p {
    font-size: 1em;

}

.car-technology {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

.car-technology .main-image img {
    width: 70%;
    transition: transform .2s;
    height: auto;
}

.car-technology .thumbnail-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.car-technology .thumbnail {
    width: 32%;
    text-align: center;
}

.car-technology .thumbnail img {
    width: 100%;
    border-radius: 15px;
    transition: transform .2s;
    height: auto;
}

.car-technology .thumbnail p {
    margin-top: 10px;
    font-size: 1em;
}


.car-technology .thumbnail img:hover,.car-technology
.main-image img:hover,.thumbnail img:hover,.model img:hover,
.special-features .feature-main-image img:hover,.pagination button:hover,.slide img:hover{
    -ms-transform: scale(1.08); /* IE 9 */
    -webkit-transform: scale(1.08); /* Safari 3-8 */
    transform: scale(1.08); 
}
.interior-image img:hover,.car-interior .main-image img:hover,
.car-exterior .main-image img:hover,.special-features .feature-thumbnail img:hover{
    -ms-transform: scale(0.98); /* IE 9 */
    -webkit-transform: scale(0.98); /* Safari 3-8 */
    transform: scale(0.98); 
}


/* huitieme Section */
.special-features {
    background-color: #ffffff;
    text-align: center;
}

.special-features .feature-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.special-features .feature-main-image {
    width: 70%;
}

.special-features .feature-main-image img {
    transition: transform .2s;
    width: 98%;
    height: auto;
}

.special-features .feature-description {
    width: 30%;
    padding: 0 20px;
}

.special-features .feature-description p {
    font-size: 1em;
}

.special-features .feature-thumbnails {
    display: flex;
    justify-content: space-between;
}

.special-features .feature-thumbnail {
    width: 47%;
    text-align: center;
}

.special-features .feature-thumbnail img {
    transition: transform .2s;
    width: 98%;
    height: auto;
}

.special-features .feature-thumbnail p {
    margin-top: 10px;
    font-size: 1em;
}

/*neuvieme Section */
.similar-models {
    padding: 10px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.models-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.model {
    width: 32%;
    text-align: center;
}

.model img {
    width: 100%;
    transition: transform .2s;
    height: auto;
}

.model h4 {
    margin-top: 10px;
    font-size: 1.2em;
}

.discover-link {
    display: inline-block;
    margin-top: 4px;
    padding: 10px 20px;
    border: 2px solid  #cfcbcb;
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.discover-link:hover {
    background-color: #f19215;
    color: white;
}



.slider-container {
    position: relative;
    width: 100%; /* Adjusted to allow space for the textmodel */
    max-width: 800px;
    overflow: hidden;
    background-image: linear-gradient(90deg, #3a3850 0%, #090979 35%, #00d4ff 100%);
    border-top: 1px solid rgba(255, 49, 49, 0.5);
    border-right: 1px solid rgba(0, 255, 255, 0.5);
    border-bottom: 1px solid rgba(57, 255, 20, 0.5);
    border-left: 1px solid rgba(255, 255, 113, 0.5);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    display: flex;
}

.slide img {
    width: 100%;
    transition: transform .5s;
    display: none;
}

.slide img.active {
    display: block;
}

.pagination-container {
    position: absolute;
    bottom: 7px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.pagination {
    display: flex;
    gap: 6px;
}


.pagination button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    transition: transform .4s;
    padding: 15px;
    border-radius: 48%;
    cursor: pointer;
}

.slidetext {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


  /* Media Queries */

/* Car Exterior Thumbnail Rows */
@media (max-width: 600px) {
    .car-exterior .thumbnail-row {
        flex-direction: column;
        align-items: center;
    }
    .car-exterior .thumbnail-row .thumbnail{
      width: 100%;
    }
  }
  
  /* Car Interior Items */
  @media (max-width: 860px) {
    .car-interior .interior-item {
        flex-direction: column;
    }
    .car-interior .interior-description, .car-interior .interior-image {
        width: 100%;
    }
  }
  
  /* Car Technology Thumbnail Rows */
  @media (max-width: 760px) {
    .car-technology .thumbnail-row {
        flex-wrap: wrap;
    }
    .car-technology .thumbnail {
        width: 48%;
        margin-bottom: 10px;
    }
  }
  
  @media (max-width: 520px) {
    .car-technology .thumbnail {
        width: 100%;
    }
  }
  
  /* Special Features Section */
  @media (max-width: 920px) {
    .special-features .feature-main {
        flex-direction: column;
    }
    .special-features .feature-main-image, .special-features .feature-description {
        width: 97%;
    }
  }
  
  @media (max-width: 720px) {
    .special-features .feature-thumbnails {
        flex-direction: column;
    }
    .special-features .feature-thumbnail {
        width: 97%;
        margin-bottom: 10px;
    }
  }
  
  /* Similar Models Rows */
  @media (max-width: 575px) {
    .similar-models .models-row {
        flex-direction: column;
    }
    .similar-models .model {
        width: 100%;
        margin-bottom: 20px;
    }
  }


    /* slidetext  and swpipe */

@media (max-width: 800px) {
    .slidetext {
        flex-direction: column;
        align-items: center;
        
    }

    .slider-container,
    .textmodel {
        width: 100%;
        margin: 10px 0;
    }
    .pagination button{
        padding : 10px
    }
    .textmodel {
        margin-left: 0;
    }
}