/* ========================= UNIVERSAL STYLES ========================= */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 400;
  background-color: #f4f4f4;
  color: #000000;
}

p {
  line-height: 190%;
}

a {
  text-decoration: none;
  color: grey;
}

/* ========================= MENU ========================= */
#menu {
  background-color: #1a1a1a;
  height: 100px;
}

#menu ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-align: center;
}

#menu li {
  display: inline-block;
}

#menu a {
  letter-spacing: 1px;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 100px;
  color: #d40000;
  padding: 0px 40px;
  border: none;
  display: block;
}

#menu a:hover {
  background-color: gray;
}

/* ========================= HEADER ========================= */
#header {
  height: 150px;
  padding: 60px 0px 40px 0px;
  background-color: gray;
  text-align: center;
}

#header h1 {
  letter-spacing: 0.1em;
  font-size: 44px;
  color: #ffffff;
}

#header p {
  letter-spacing: 0.1em;
  color: #ffffff;
}

/* ========================== BANNER ========================== */
#banner {
  height: 350px;
}

#banner img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* ========================== PAGES ========================== */
#page {
  min-height: 500px;
  padding: 20px;
  background-color: #f4f4f4;
}

#page h2 {
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 18px;
  color: #d40000;
  font-size: 20px;
  font-weight: bold;
}

#page p {
  margin-bottom: 20px;
  line-height: 190%;
  font-size: 14px;
}

/*============= CONTENT =============*/
#content {
  float: left;
  width: 70%;
}

/*============= SIDEBAR =============*/
#sidebar {
  float: right;
  width: 25%;
}

/*============= LISTS =============*/
ul.styled {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

ul.styled li {
  border-top: solid 1px #e5e5e5;
  padding: 14px 0px;
}

/* ========================== GRID ==========================*/
#featured-grid {
  background-color: #000000;
  padding: 30px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 18px;
  color: #d40000;
  font-size: 20px;
  font-weight: bold;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.vehicle-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

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

.card-details {
  padding: 15px;
  text-align: center;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #d40000;
  margin: 10px 0;
}

.btn {
  display: inline-block;
  padding: 6px;
  background-color: grey;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: #e74c3c;
}

/* ========================== FOOTER ========================== */
#footer {
  width: 100%;
  height: 340px;
  background-color: grey;
  padding-top: 25px;
  padding-left: 22px;
  clear: both;
}

#footer h2 {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
}

#footer p {
  color: #000000;
}

#footer a {
  color: #000000;
}

#box1 {
  float: left;
  width: 30%;
  padding-right: 30px;
}

#box2 {
  float: left;
  width: 30%;
  padding-right: 30px;
}

#box3 {
  float: right;
  width: 30%;
  padding-right: 30px;
}

/* ========================== COPYRIGHT ========================== */
#copyright {
  width: 100%;
  height: 130px;
  text-align: center;
  background-color: #1a1a1a;
  padding-top: 55px;
  clear: both;
}

#copyright p {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

/*========================== VEHICLE STYLING ==========================*/
.info-gallery {
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  background: #f4f4f4;
  border: 4px solid grey;
  padding: 15px;
  border-radius: 8px;
}

/*===== The Large Top Image =====*/
.main-car-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 5px;
}

/*===== The Row for the 3 smaller images =====*/
.sub-images-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.sub-images-row img {
  width: 33%;
  height: 130px;
  object-fit: cover;
  border: 1px solid #000000;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease-in;
}

.sub-images-row img:hover {
  transform: scale(2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/*===== The Text section beneath the images =====*/
.car-info-stack {
  margin-top: 20px;
  text-align: left;
}

#closing-lines p {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}
