/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background-color:navy;
  color: white;
  padding: 1rem 0;
}

header .logo h1 {
  font-size: 2rem;
  font-size: 1.8rem;
}

nav {
  float: right;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-right: 1.5rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.3rem 0.5rem;
}

.nav-links li a:hover,
.nav-links li a.active {
  background-color: #001f66;
  border-radius: 4px;
}

/* Clearfix for header */
header::after {
  content: "";
  display: table;
  clear: both;
}

/* Hero Section */
.hero {
  background: url('../images/hero-bg.jpg') center center/cover no-repeat;
  height: 350px;
  display: flex;
  align-items: center;
  color: navy;
  text-align: center;
  margin-bottom: 2rem;
}

.hero .container {
  max-width: 700px;
  margin: auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background-color: #003399;
  color: white;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #001f66;
}

/* Featured Vehicles */
.featured-vehicles h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #003399;
}

.vehicle-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.vehicle-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  /* width: 350px; */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.vehicle-card:hover {
  transform: translateY(-10px);
}

.vehicle-card img {
  max-width: 100%;
  border-bottom: 1px solid #ddd;
  border-radius: 6px 6px 0 0;
}

.vehicle-card h4 {
  margin: 1rem 0 0.5rem;
  color: #003399;
}

.vehicle-card p {
  padding: 0 1rem 1rem;
  font-size: 1rem;
}

/* Footer */
footer {
  background-color: #003399;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Responsive */
@media(max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background-color: #003399;
    position: absolute;
    right: 0;
    top: 60px;
    width: 100%;
    display: none;
  }
  .nav-links li {
    margin: 1rem 0;
    text-align: center;
  }
  nav.active .nav-links {
    display: flex;
  }
  .vehicle-list {
    flex-direction: column;
    align-items: center;
  }
}

/* Products Page */
.products .vehicle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Services */
.services ul {
  list-style: disc inside;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 1rem auto;
  color: #333;
}

/* Contact Form */
.contact form {
  max-width: 500px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
}

.contact label {
  margin: 0.5rem 0 0.2rem;
  font-weight: bold;
}

.contact input, 
.contact textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.contact button.btn {
  margin-top: 1rem;
  width: 150px;
  align-self: flex-start;
}

/* Reviews */
.reviews {
  max-width: 800px;
  margin: 1rem auto;
}

.review-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-card h4 {
  text-align: right;
  margin-top: 1rem;
  color: #003399;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: #003399 1px solid;
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
  color: #333;
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: auto
}
th, td {
  padding: 0.5rem;
  border: 2px solid #ddd;
}

/* Hero for About Page */
.hero {
  background: linear-gradient(to right, #003399, navy);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 20px 20px 20px 20px;
}

.hero h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #0055cc;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #003399;
}

/* About Us Section */
.about-us {
  margin: 3rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  line-height: 1.7;
}

.about-us h3 {
  text-align: center;
  font-size: 2rem;
  color: #003399;
  margin-bottom: 1rem;
}

.about-us .tagline {
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.about-us p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #444;
}

.about-us .services-list {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: none;
}

.about-us .services-list li {
  margin: 0.4rem 0;
  font-size: 1rem;
}

.about-us .closing-line {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #003399;
}

.services ul {
  list-style: none;
  padding: 0;
}

.services li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.service-img {
  width: 216px;
  height: auto;
  margin-right: 20px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
