* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-color: white;
}

.header {
   display: flex;
   justify-content: center;
    align-items: center;
    background-color: white;
    padding: 20px 0;
    height: 60px;
    margin-top: 6px;
    margin-bottom: 10px;
    box-shadow: none;

}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    margin-right: 3px;
    padding-right: 20px;
}

.logo-highlight {
    color: #007BFF;
}

.nav-menu {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none; 
  color: #333;
  font-weight: 500;
  padding: 10px;
  transition: color 0.3s ease;
}


/* Dropdown arrow */
.arrow {
  margin-left: 5px;
  font-size: 0.7rem;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.auth-logins {
  display: flex;
  gap: 20px;
  margin-left: 300px;
  color: #007bff; 
}

.register-btn {
  background-color: white;
  color:#007bff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  border: 1px solid #007bff;
  font-size: 14px;
  height: 35px;
  text-align: center;
}


.hero-content {
  text-align: center;
  padding: 60px 20px 20px 20px;
  background-image: url("https://images.unsplash.com/photo-1683907994660-f8e9ede86386?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1170");
  background-size: cover;
  background-position: center;
  background-position: center;
  text-align: center;
  color: white;
  height: 500px;
  width: 1400px;
  margin: auto;
  border-radius: 10px;
  position: relative;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 160px;
  margin-right: 265px;
}
.hero-text h1 {
  font-size: 38px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.search-wrapper {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  margin: auto;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
}

.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.car-dropdown {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid white;
  min-width: 100px;
}

.car-input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid white;
  min-width: 200px;
}

.filter-button {
  background-color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  padding-left: 10px;
  border-left: grey 2px solid;
}


.search-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #0056b3;
}

.e-content-container {
  padding: 2rem;
  font-family: Arial, sans-serif;
  background-color: white;
}

.featured-section h2 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: black;
  margin-left: 70px;
  margin-top: 1.5rem;
}

.views-cars {
  display: flex;
  gap: 1rem;
  margin-left: 70px;
  margin-top: 20px;
  margin-bottom: 2rem;
}

.view-option {
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: #eee;
  border-radius: 5px;
  color: #0056b3;
  font-weight: bold;
}

.view-option.active {
  background-color: skyblue;
  color: #0056b3;
}

.featured-cars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-left: 70px;
  margin-right: 70px;
}

.car-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.car-card:hover {
  transform: translateY(-5px);
}

.car-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.car-info {
  padding: 1rem;
}

.car-info h3 {
  color: #007bff;
  margin-bottom: 0.5rem;
}

.car-info p {
  margin: 0.3rem 0;
  color: #555;
}

.popular-section {
  padding: 2rem;
  background-color: white;
  font-family: Arial, sans-serif;
  margin-left: 70px;
  margin-right: 70px;
}

.popular-section h3 {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: #333;
  text-align: center;
}

.popular-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.popular-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #007bff;
   margin-right: 120px;
}

.popular-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-column li {
  margin-bottom: 0.5rem;
  color: #555;
  transition: color 0.2s ease;
}

.popular-column li:hover {
  color: #007bff;
  cursor: pointer;
}

.popular-column a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.popular-column a:hover {
  text-decoration: underline;
}

.calculator-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: white;
  border-radius: 12px;
  margin-top: 170px;
  margin-left: 100px;
  margin-right: 100px;
}

.calculator-left,
.calculator-right {
  flex: 1;
  min-width: 300px;
}

.calculator-left h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.calculator-left p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.calculator-left img {
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
}

.finance-form {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  
}

.finance-form h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.interest-note {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.credit-note {
  font-size: 0.8rem;
  color: #007bff;
  margin-top: 0.3rem;
  text-align: center;
}

.submit-button {
  background-color: #007bff;
  color: white;
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 30px;
  margin-right: 30px;
}

.submit-button:hover {
  background-color: #0056b3;
}