/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
  }
  header {
    /* width: 1000%; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    /* background: rgba(255, 255, 255, 0.54); */
    /* position: fixed; */
    width: 98%;
    top: 0;
    left: 0;
    height: 10vh;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-shadow: 0 40 40 black;
    /* gap: 100px; */
  }
 
  
  .logo {
    font-size: 26px;
    font-weight: bold;
    color: black;
  }
  
  #icon {
    color: #007bff;;
  }
  ::-webkit-scrollbar{
    width: 0;
    /* color: blue; */
    background-color: white;
  }
  nav a {
    /* color: black; */
    color: black;
    text-decoration: none;
    margin: 0 15px;
    font-size: 22px;
    font-weight: 1000;
    transition: 1.1s;
  }
  
  nav a:hover {
    color: #007bff;;
  }
  #truck{
    color: #007bff;;
    transition: 0.9s;
    font-weight: 1000;
  }
  #truck:hover{
    color: black;
  }
    
  /* Main content (to avoid header overlap) */
  main {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  
  /* Footer */
  footer {
    background: #f4f4f4;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
  }
  
  .footer-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
  }
  
  /* Buttons */
  .btn {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .btn:hover {
    background: #d62839;
  }
  
  /* Hero Section (Landing Page) */
  .hero {
    text-align: center;
    padding: 40px 20px;
  }
  
  /* Services Links */
  .services {
    margin: 20px 0;
  }
  
  .services a {
    margin-right: 20px;
  }
  
  /* Filter Section */
  .filter-section {
    margin: 20px;
    text-align: center;
  }
  
  .filter-section form select,
  .filter-section form input {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  /* Container for truck listings */
.truck-listings {
  display: flex;
  flex-wrap: wrap; /* Ensures items wrap to the next line */
  justify-content: center; /* Center align items */
  gap: 20px; /* Space between items */
  padding: 20px;
}

/* Individual truck item */
.truck-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  max-width: 300px; /* Ensures each item has a reasonable width */
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* Truck images */
.truck-img {
  width: 100%; /* Ensures images do not overflow */
  height: auto; /* Maintain aspect ratio */
  max-width: 100%;
  border-radius: 5px;
}

/* Truck name/title */
.truck-title {
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
}

/* Truck details */
.truck-details {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .truck-item {
      max-width: 100%; /* Full width for smaller screens */
  }
}
  
  /* Account & Contact Forms */
  .account-form,
  .contact-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
  }
  
  .account-form form input,
  .contact-form form input,
  .contact-form form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  /* Truck Detail Page */
  #truckDetailContainer {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
  }
  
  #truckDetailContainer img {
    width: 100%;
    border-radius: 10px;
  }
  
  #truckDetailContainer h1 {
    margin: 20px 0;
    font-size: 28px;
    color: #333;
  }
  
  #truckDetailContainer p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
  }
  
  #truckDetailContainer span {
    font-size: 20px;
    color: #e63946;
    font-weight: bold;
    display: block;
    margin: 20px 0;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    header, nav a {
      font-size: 16px;
    }
    .truck-listings {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
  }
  @media (max-width: 1024px) {
    header {
      padding: 15px 20px; /* slightly smaller padding */
    }
    nav a {
      font-size: 20px; /* adjust font size */
      margin: 0 10px;  /* reduce spacing between nav items */
    }
    .hero {
      margin: 50px auto;       /* center and reduce margin */
      padding: 50px 20px;       /* reduce padding */
      width: 90%;              /* use more of the screen width */
      height: auto;            /* let content define height */
    }
    .hero .b {
      font-size: 50px;         /* slightly smaller headline */
    }
    .services a {
      padding: 20px;           /* reduce button padding */
      font-size: 18px;         /* adjust button font size */
    }
  }
  
  /* For mobile devices */
  @media (max-width: 600px) {
    header {
      flex-direction: column; /* stack header content vertically */
      align-items: flex-start;
      height: auto;           /* let content height adjust */
    }
    .logo {
      font-size: 22px;        /* slightly smaller logo */
      margin-bottom: 10px;
    }
    nav {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 10px;
    }
    nav a {
      margin: 5px;            /* tighter spacing for nav items */
      font-size: 16px;        /* smaller nav text */
    }
    .hero {
      margin: 200px auto;      /* reduce outer spacing */
      padding: 30px 15px;      /* reduce inner padding */
      width: 95%;             /* nearly full width */
      height: auto;
    }
    .hero .b {
      font-size: 35px;        /* adjust headline size for mobile */
    }
    .services {
      margin-top: 30px;       /* reduce margin above the buttons */
    }
    .services a {
      padding: 15px;          /* smaller padding for buttons */
      font-size: 16px;        /* adjust button text size */
      display: block;         /* stack buttons vertically if needed */
      margin: 10px auto;      /* center buttons with vertical spacing */
      width: 80%;             /* have buttons take up a good portion of the screen */
      text-align: center;
    }
  }
  