  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
  }

  body {
    overflow-x: hidden;
    background-color: #f7f7f7;
  }

  /* NAVBAR */
  .navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;          
    max-width: 1200px;   
    background: #d9d9d9;
    border-radius: 30px;  
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    transition: top 0.3s ease;
    z-index: 1000;
  }

  /* Sections */
  .navbar .logo {
    font-size: 24px;
    font-weight: 700;
    color: #111;
  }

  .navbar .nav-links {
    display: flex;
    gap: 25px;
  }

  .navbar .nav-links a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    transition: color 0.3s ease;
  }

  .navbar .nav-links a:hover {
    color: #0a66c2;
  }

  .navbar .search-bar input {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    transition: border 0.3s ease;
  }

  .navbar .search-bar input:focus {
    border-color: #0a66c2;
  }

  /* HERO IMAGE */
  .hero-section {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-text {
    font-family: "times new roman", serif;
    position: absolute;
    color: #fff;
    font-size: 48px;
    text-align: center;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    max-width: 90%;
    margin-top: 20%;
    margin-left: -55%;
  }

  /* PAGE CONTENT*/
  .page-content {
    padding: 100px 8%;
    background: #f5f5f5;
  }

  .page-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #111;
  }

  .page-content p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px auto;
    color: #555;
    text-align: center;
  }

  @media(max-width: 768px) {
    .navbar {
      flex-direction: column;
      gap: 10px;
      padding: 10px 20px;
    }
    .navbar .nav-links {
      flex-wrap: wrap;
      justify-content: center;
    }
    .navbar .search-bar input {
      width: 100%;
    }
  }

/* color box */
.color-box {
    background-color: #F2F2F2;
    padding: 60px 20px;      
    border-radius: 0;        
    width: 100vw;            
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;        
    margin-right: -50vw;
    box-sizing: border-box;
    text-align: center;
}

.color-box h2 {
    color: #2e1a5f;
    font-size: 36px;
    margin-bottom: 20px;
}

.color-box p {
    color: #333;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* FILTER SECTION */

/* FILTER SECTION */
#filter {
    padding: 60px 20px;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f8f8;
}

/* Flex container for left & right */
.filter-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap; /* responsive wrap */
}

/* Left: Filter box */
.filter-container {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: linear-gradient(145deg, #f7f7f7, #ffffff);
}

#filter h1 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 32px;
    color: #4b0082;
}

/* Filter options styling */
.filter-option {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.filter-option label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

#priceRange {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    -webkit-appearance: none;
}

#priceRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4b0082;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

select {
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #4b0082;
    box-shadow: 0 0 10px rgba(75,0,130,0.2);
}

/* Right: Image styling */
.filter-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.filter-image img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Responsive: stack on small screens */
@media screen and (max-width: 900px) {
    .filter-section {
        flex-direction: column-reverse;
        gap: 30px;
    }
}

/* cards */

/* Grid for car listings */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card Styling */
.listing-card .card-box {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.listing-card .card-box:hover {
  transform: translateY(-5px);
}

.image-section {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4b4b;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
}

.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  color: #ff4b4b;
  cursor: pointer;
}

.content {
  padding: 20px;
}

.car-name {
  font-size: 20px;
  font-weight: bold;
  color: #4b0082;
  margin: 10px 0;
}

.car-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

.price-tag.great {
  color: green;
  font-weight: 600;
  margin: 5px 0;
}

.rent-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background-color: #374dce;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.rent-btn:hover {
  background-color: #0723c2;
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
}

/* EV Footer */

.ev-footer-section {
background-color: #f8f8f8;
  position: relative;
  width: 100%;
  height: 100vh;
}

.ev-footer-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Modern footer overlay */
.ev-footer-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: white;
  font-family: sans-serif;
  padding: 40px 50px 20px;
}

.ev-footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.ev-footer-col {
  min-width: 200px;
}

.ev-footer-col h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  border-bottom: 2px solid #fff3;
  display: inline-block;
  padding-bottom: 5px;
}

.ev-footer-col p, 
.ev-footer-col ul, 
.ev-footer-col a {
  color: #eee;
  font-size: 0.95em;
  text-decoration: none;
}

.ev-footer-col ul {
  list-style: none;
}

.ev-footer-col ul li {
  margin-bottom: 6px;
}

.ev-social-links a {
  color: #eee;
  margin: 0 5px;
  text-decoration: none;
  font-weight: 500;
}

.ev-footer-bottom {
  text-align: center;
  font-size: 0.85em;
  color: #ccc;
}

.ev-footer-bottom a {
  color: #ccc;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .ev-footer-top {
    flex-direction: column;
    gap: 15px;
  }
  .ev-footer-col {
    min-width: auto;
  }
}

/* text box */

.page-content {
  max-width: 900px;       
  margin: 50px auto;     
  padding: 30px 40px;   
  background-color: #e6f2ff; 
  border-radius: 15px;  
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
  line-height: 1.6;   
  font-family: 'Segoe UI', sans-serif;
}

.page-content h2 {
  color: #2c44e3;       
  font-size: 2em;
  margin-bottom: 20px;
}

.page-content p {
  color: #333;          
  font-size: 1.1em;
  margin-bottom: 15px;
}