.body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  /* Prevent horizontal scroll from carousels */
}

.p {
  font-weight: normal;
}

.brand img {
  height: 100px;
}

.year img {
  height: 120px;
}

.jumbotron {
  height: 70vh;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

header h1 {
  font-size: 2.2rem;
}

@media (max-width: 768px) {
  .jumbotron {
    height: 40vh;
  }

  header h1 {
    font-size: 1.2rem !important;
  }

  /* MDB Multi-item Carousel Mobile Fix */
  .carousel-multi-item .carousel-inner .carousel-item {
    display: none;
    text-align: center;
  }

  .carousel-multi-item .carousel-inner .carousel-item.active {
    display: block;
  }

  .carousel-multi-item .carousel-item .col-md-4 {
    padding: 0 15px;
  }

  .carousel-multi-item .carousel-item .col-md-4:first-child {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .navbar-brand {
    color: #fff !important;
    /* Ensure white color on mobile gradient */
    font-size: 14px;
    font-weight: bold;
    white-space: normal;
    max-width: 80%;
  }

  .brand img {
    height: 60px;
  }

  .year img {
    height: 70px;
  }
}

/* Uniform card and image sizing for MDB Carousel */
.carousel-multi-item .card-img-top {
  height: 220px;
  object-fit: cover;
}

.carousel-multi-item .card {
  height: 480px;
  /* Force same height for all cards */
}

.carousel-multi-item .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.navbar-nav li {
  padding-right: 20px;
  padding-left: 20px;
}

.nav-link {
  font-size: 1.1em;
  color: white !important;
}

.jumbotron img {
  height: 20px;
  width: 15px;
}

.nav a.white-text:hover {
  color: #e0e0e0 !important;
}

@media (max-width: 991.98px) {

  /* Site title on mobile - increased specificity and size */
  nav.navbar a.navbar-brand.d-lg-none {
    white-space: normal !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    max-width: 75% !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    color: #fff !important;
  }

  /* Fix for the dropdown menu offset in mobile view */
  .navbar-collapse .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    /* Subtle background for sub-items */
    border: none !important;
    box-shadow: none !important;
  }

  /* Reset right alignment on mobile which causes offset issues */
  .navbar-collapse .dropdown-menu-right {
    right: auto !important;
    left: auto !important;
  }

  /* Ensure dropdown items wrap and are legible on mobile */
  .dropdown-item {
    white-space: normal !important;
    word-wrap: break-word;
    color: #fff !important;
    padding-left: 1.5rem !important;
    /* Indent sub-items */
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}