@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
  
}

html, body {
  height: 100%;
}

/*Navbar*/
nav ul{
    gap: 20px;
  
}

.nav-brand{
    font-weight: bold;
}

/*Slider*/
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 550px;
  overflow: hidden;
  margin: 0 auto;
}

.carousel {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  width: 100%;
  height: 550px;
  background-size: 100% 100%; 
  background-position: center;
  background-repeat: no-repeat;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.7);
}

.prev { left: 10px; }
.next { right: 10px; }


/*Buy Sell Toggle*/
.car-tab-wrapper {
  width: 100%;
  margin-top: 0; /* or try -20px if needed */
  padding-top: 0;
  padding: 20px;
}

.tab-buttons {
  display: flex;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
}

.tab-btn {
  flex: 1;
  padding: 15px 0;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  background-color: #e0e0e0;
  color: #333;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.tab-btn.active {
  background-color: #2a9d8f;
  color: white;
  
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
 
}

.tab-btn:nth-child(2).active {
  background-color: #2a9d8f;
}

.tab-btn:nth-child(2).active::after {
  border-top: 12px solid #2a9d8f;
}

/* Form Box */
.form-box {
  background: rgb(0, 0, 0);
  padding: 25px 20px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tab-form {
  display: none;
  gap: 15px;
  flex-wrap: wrap;
}

.tab-form.active-form {
  display: flex;
}

.tab-form select {
  flex: 1;
  min-width: 200px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  background: white;
  appearance: none;
}

.search-btn {
  background-color: #2a9d8f;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tab-form#sell-form .search-btn {
  background-color: #2a9d8f;
}

.search-btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .tab-form {
    flex-direction: column;
  }

  .tab-form select,
  .search-btn {
    width: 100%;
  }
}




/*The Name with Right side INFO*/
.information {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px;
background-color: #212529;
}

.brand {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  padding: 20px;
}

.brand span:first-child {
  color: #2A9D8F;
}

.brand span:last-child {
  color: #ffffff;
}

.rightinfo {
  flex: 2 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  text-align: right;
}

.rightinfo p {
  margin: 10px 0;
  color: #ffffff;
}

@media (max-width: 768px) {
  .information {
    flex-direction: column;
    text-align: center;
  }

  .rightinfo {
    text-align: center;
  }
}

.select{
    background-color: black;
}




/*Brand Cars*/
.outer{
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 30px;
}
.brand-box {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 25px;
  max-width: 1200px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  font-family: "Segoe UI", sans-serif;
}

.brand-title {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
}

.brand-scroll-wrapper {
  position: relative;
  overflow: hidden;
}

.brand-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.brand-scroll::-webkit-scrollbar {
  display: none;
}

.brand-item {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  padding: 10px;
  display: flex;              
  flex-direction: column;    
  align-items: center;        
  justify-content: center;    
  transition: transform 0.3s ease;
}


.brand-item:hover {
  transform: translateY(-5px);
}

.brand-item img {
  max-width: 180px;
  max-height: 180px;
  margin-bottom: 8px;
}

.brand-item span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Scroll Button */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 1;
  transition: background 0.3s ease;
}

.scroll-btn:hover {
  background-color: #f0f0f0;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}
                      
.scroll-btn:hover {
  background-color: #f0f0f0;
}

.brandBtn {
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  padding: 5px 10px;
}

.brandBtn:focus {
  outline: none;
}

.brandBtn:hover {
  color: #007bff; /* Optional: change color on hover */
}

/*Car Cards*/
.car-section-title {
  width: 100%;
  text-align: center;
  color: white;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.card-container {
  background-color: #212429;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 40px 20px;
}

.car-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 270px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.car-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.car-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.car-info h4 {
  font-size: 17px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-info .details {
  font-size: 14px;
  color: #666;
}

.car-info .price {
  font-size: 18px;
  color: #000;
  font-weight: 700;
}

.car-info .seller {
  font-size: 14px;
  color: #2a9d8f;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.car-info .seller:hover {
  color: #1e7c72;
  text-decoration: underline;
}

.car-info .location {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #444;
  margin-top: 4px;
}

.location::before {
  content: "📍";
  margin-right: 5px;
  font-size: 14px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .car-card {
    width: 90%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .car-card {
    width: 45%;
  }
}


/*Testimonials*/

/*Footer*/
.trustdrive-footer {
  background-color: #212429;
  color: white;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.footer-brand,
.footer-links,
.footer-social {
  flex: 1 1 250px;
  min-width: 200px;
}

.footer-brand h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #ccc;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 10px;
  color: #2A9D8F;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: white;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #2A9D8F;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #2A9D8F;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}


@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-links ul {
    padding: 0;
  }
}
