.nav-link {
  color: white;
}

.nav-link:hover {
  color: rgb(255, 156, 35);
}

.dropdown-menu {
  color: white;
  background-color: rgb(0, 0, 0, 0.7);
  text-align: center;
  border-bottom: solid white;
  border-left: solid white;
  border-right: solid white;
}

.dropdown-item {
  color: white;
}

.dropdown-item:hover {
  color: rgb(255, 156, 35);
  background-color: rgb(255, 255, 255, 0.2);
}

#DropCss1:first-child {
  color: white;
}

#DropCss1:hover {
  color: rgb(255, 156, 35);
}

#DropCss2:first-child {
  color: white;
}

#DropCss2:hover {
  color: rgb(255, 156, 35);
}

#DropCss3:first-child {
  color: white;
}

#DropCss3:hover {
  color: rgb(255, 156, 35);
}

#DropCss4 {
  color: white;
}

#DropCss4:hover {
  color: rgb(255, 156, 35);
}

#Brand {
  font-family: cursive;
}

#Brand:hover {
  font-family: cursive;
  color: rgb(255, 156, 35);
}

@media only screen and (max-width: 575px) {

  #collapsibleNavbar .navbar-nav {
    align-items: center;
    /* center all nav items horizontally */
  }

  #profileDropdown {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 35px;
    text-decoration: dotted;
    /* net iets breder dan het icoon */
    position: relative;
  }

  hr {
    display: none;
  }

  .car-card-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px;
    scroll-snap-type: x mandatory;
    max-width: 100%;
    box-sizing: border-box;
  }

  .car-card {
    flex: 0 0 auto;
    width: 280px;
    /* Or use max-width if dynamic */
    scroll-snap-align: start;
  }




  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }


  /* Prevent page overflow on mobile */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    position: sticky;
  }


  .dropdown-menu[aria-labelledby="profileDropdown"] {
    position: relative;
    border-right: none;
    border-bottom: none;
    background: none;
    top: 100% !important;
    /* direct onder */
    left: 50% !important;
    /* horizontaal midden */
    transform: translateX(-50%) !important;
    /* echt centered */
    margin-top: 0.25rem;
    min-width: 8rem;
    /* Optioneel: iets hoger z-index als het overlapt */
    z-index: 1050;
  }

  #profileDropdown::after {
    display: none;
  }

  .nav-link {
    color: white;
    text-align: center;
  }

  #NavButton {
    color: white;
  }

  #LoginButton {
    display: inline-block;
    color: white;
    border: 2px solid white;
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 8px;
    text-align: center;
    width: 100%;
  }

  .vr {
    display: none;
    /* Splitter verbergen op mobiel voor netheid */
  }

  .navbar-collapse {
    background-color: rgb(0, 0, 0, 0.7) !important;
    border-bottom: solid white;
    border-right: solid white;
    border-left: solid white;
    border-radius: 8px;
    /* Optioneel: voor afgeronde hoeken */
    padding-top: 20px;
    /* Ruimte bovenaan */
    padding-bottom: 20px;
    /* Ruimte onderaan */
  }

  body {
    padding-top: 60px;
    font-size: 16px;
    line-height: 1.5;
  }

  h1,
  h2,
  h3 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid white;
    border-radius: 8px;
    padding: 20px 10px;
  }

  .nav-link {
    text-align: center;
    padding: 12px 0;
    font-size: 1.1rem;
  }

  #LoginButton {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 1rem;
  }

  .vr {
    display: none;
  }

  .hero-overlay {
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 10px;
  }

  .features-container {
    flex-direction: column;
    padding: 20px 10px;
  }

  .feature-box {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .card,
  .MCcard {
    width: 100%;
    margin: 10px 0;
  }

  .card-body {
    height: auto;
    padding: 10px;
  }

  .carousel-wrapper {
    padding: 10px;
  }

  .car-card {
    flex: 0 0 90%;
  }

  .carousel-control-prev,
  .carousel-control-next,
  #HelpImgDiv,
  .PopCars {
    display: none !important;
  }

  .section-title,
  .Helping-title {
    font-size: 22px;
  }

  .scroll-btn {
    display: none;
  }
}

@media only screen and (max-width: 1050px) and (min-width: 575px) {
  .nav-text {
    display: none;
  }

  .nav-item {
    font-size: 24px;
  }
}

#BarBrand {
  height: 70px;
}

.navbar-brand h1 {
  font-size: 1.8rem;
  line-height: 70px;
}

.navbar-nav .btn {
  padding: 4px 12px;
  font-size: 0.9rem;
  border-radius: 6px;
}

#LoginButton:hover {
  color: rgb(255, 156, 35);
  border-color: rgb(255, 156, 35);
  background-color: transparent;
}

body {
  padding-top: 4%;
  /* ruimte voor navbar van 70px + wat extra */
  background-color: #F5F5F5;
  text-align: center;
  height: 100%;
  overflow-x: hidden;
}

/* Main */
#PageTitleBlock {
  backdrop-filter: blur(8px);
  /* maakt achtergrond wazig */
  -webkit-backdrop-filter: blur(8px);
  /* Safari ondersteuning */
  border-radius: 10px;
  position: relative;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.9);
  /* Donker glasachtig */
  color: white;
  box-shadow: 0 0 15px rgba(0, 0, 255, 0.4);
  /* rode gloed past bij rand */
  text-align: center;
  padding: 2%;
  margin-bottom: 3%;
}

#PageTitleBlock:hover {
  transform: scale(1.03);
  /* lichte zoom bij hover */
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.6);
}

.card {
  width: 100%;
  background-color: #1c1c1e;
  /* donkergrijs/zwart */
  color: #d0d0d0;
  /* lichtgrijze tekst */
  margin-top: 20px;
  margin-bottom: 5px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(227, 114, 1, 0.3);
  /* rode gloed */
  border: 4px solid black;
  /* opvallende rode rand */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(227, 114, 1, 0.7);
  /* rode gloed */
}


@media (max-width: 768px) {

  #HelpImgDiv {
    display: none;
  }

  .PopCars {
    display: none;
  }

}

#SaleCarCarRow {
  margin-bottom: 2%;
  padding: 1%;
  text-align: center;
  border-radius: 10px;
  color: rgb(0, 0, 0);
}

.card-img-top {
  height: 100px;
  border: none;
  border-radius: 8px 8px 0 0;
}

.card-body {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* subtiele scheiding */
  padding: 15px;
  background-color: rgba(28, 28, 30, 0.95);
  /* semi-transparant dark */
  height: 150px;
  padding: 1px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price {
  color: #ff6f00;
  /* brand orange */
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 10px;
}

.CardDisc {
  font-size: larger;
  margin: 0;
}

.features-container {
  display: flex;
  justify-content: space-around;
  padding: 50px 20px;
  background-color: #e4e0e0;
  text-align: center;
  align-items: center;
}

.feature-box {
  flex: 1;
  max-width: 300px;
  margin: 0 10px;
  padding: 20px;
}

.feature-box i {
  font-size: 40px;
  color: #ff6f00;
  /* Oranje tint zoals in Autohero */
  margin-bottom: 15px;
}

.feature-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.feature-text {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}

#Pop-title {
  font-size: 35px;
  font-weight: bold;
  color: #1a0a42;
  margin: 0;
}

.section-header {
  text-align: center;
  margin-top: 1%;
  padding-top: 3%;
}

.section-line {
  width: 100px;
  height: 4px;
  background-color: #ff6f00;
  /* Oranje streep */
  margin: 0 auto 15px auto;
  border-radius: 2px;
  margin-top: 5px;
}

.section-title {
  font-size: 40px;
  font-weight: bold;
  color: #1a0a42;
  margin: 0;
}

.row {
  background-color: #e4e0e0;
}

.hero {
  position: relative;
  background-image: url('../IMG/SpotLightMainImg.png');
  /* vervang dit door jouw afbeelding */
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  text-align: center;
  color: #003057;

}

.hero-overlay {
  background-color: rgba(255, 255, 255, 0.9);
  display: inline-block;
  padding: 40px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  color: #333;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  display: inline-block;
}

.btnhelp {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-top: 3%;
}

.btnhelp:hover {
  background-color: #e4e0e0;
  color: #d96300;
}

.orange-btn {
  background-color: #ff6f00;
  color: white;
}

.blue-btn {
  background-color: #003057;
  color: white;
}

.trustpilot {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.trustpilot-logo {
  height: 18px;
  margin-left: 10px;
  vertical-align: middle;
}

.stars {
  height: 16px;
  margin-left: 5px;
  vertical-align: middle;
}

.HelpingImg {

  width: 100%;
  height: auto;
  max-height: 450px;
  /* optional cap for very tall images */
  object-fit: cover;
  /* crops while keeping aspect ratio */
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#Helping {
  padding: 2%;
}

.Helping-line {
  width: 60px;
  height: 2px;
  background-color: #ff6f00;
  /* Oranje streep */
  margin: 0 auto 15px auto;
  border-radius: 2px;
  margin-top: 5px;
}

.Helping-title {
  font-size: 28px;
  font-weight: bold;
  color: #1a0a42;
  margin: 0;
}

#HelpImgDiv {
  height: 450px;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  padding: 20px;
}

.car-card-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
  scroll-snap-type: x mandatory;
}

.car-card-carousel::-webkit-scrollbar {
  display: none;
}

.car-card {
  scroll-snap-align: start;
  flex: 0 0 250px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding: 16px;
}

.car-card:hover {
  transform: scale(1.03);
  border: gray solid;
}

.car-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  max-height: 144px;
  background-attachment: fixed;
  background-size: cover;
  size: fixed;
}

.car-card h3 {
  color: #000000;
  height: 50px;
  /* vaste hoogte instellen */
  line-height: 1.2;
  font-size: 1.1rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* maximaal 2 regels */
  -webkit-box-orient: vertical;
}

.car-card p {
  margin: 4px 0;
  color: #555;
}

.car-card .price {
  font-weight: bold;
  font-size: 1.1rem;
  color: #222;
}

.car-card .monthly {
  color: #f47400;
  font-weight: 600;
}

.car-card .info {
  font-size: 0.85rem;
  color: #777;
}

.car-card-button {
  display: inline-block;
  margin-top: 10px;
  background-color: #f47400;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}

.car-card-button:hover {
  background-color: white;
  color: #f47400;
}


.scroll-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}

.scroll-btn.left {
  margin-right: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  color: white;
}

.scroll-btn.right {
  margin-left: 10px;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.1);
  color: white;
}


/* Footer */

footer {
  padding: 2% 0;
  backdrop-filter: blur(8px);
  /* maakt achtergrond wazig */
  -webkit-backdrop-filter: blur(8px);
  /* Safari ondersteuning */
  background-color: rgb(0, 0, 0);
  /* Donker glasachtig */
  color: white;
  border-top: solid gray;
  /* Rood accent blijft */
  text-align: center;
  width: 100%;
}

.FooterList {
  list-style: none;
}

.FooterLink {
  color: white;
  text-decoration: none;
}

.SponserImg {
  max-height: 80px;
  object-fit: contain;
  /* Ensures image fits without stretching */
  width: 120px;
  margin-top: 3%;
  max-width: 80px;
  border-radius: 12px;
  margin-right: 1%;
  border: white solid 2px;
  height: auto;
  display: inline-block;
}

.footerrow {
  background-color: black;
  margin-right: 0;
  margin-left: 0;
}