.content {
    padding: 100px 10% 50px 10%;
    background-color: #F5F5F5;
}

.car-title {
    font-size: 35px;
    font-family: PoppinsBold;
}

.car-title-detail {
    font-size: 20px;
}

.car-container {
    margin-top: 50px;
    display: flex;
    gap: 100px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.car-image {
    flex: 1;
    aspect-ratio: 4/3;
    display: flex;
    margin-top: 15px;
        align-items: flex-start;
        
}

.car-image img {
    width: 100%;
    min-width: 450px;
    display: block;
    border-radius: 20px;
}

.car-infos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.car-info {
    width: 100%;
}

.car-info-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: PoppinsBold;
}
.spec {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 5px;
}

.name, .value {
    font-size: 25px;
}

.value {
    font-weight: bold;
    text-align: right;
}

.car-detail {
    margin-top: 75px;
}

.car-detail-title {
    font-size: 35px;
    font-family: PoppinsBold;
}

.car-detail p {
    padding: 25px 0;
    font-size: 25px;
}

.car-protocol {
    font-size: 25px;
}

ul {
    margin: 0;
    padding-left: 25px;
}

ul li {
    font-size: 25px;
}

.car-additional-info {
    background-color: #262626;
    padding: 75px 10%;
    color: white;
}

.car-additional-info-title {
    font-size: 35px;
    font-family: PoppinsBold;
}

.car-additional-info p {
    padding: 25px 0;
    font-size: 25px;
}

.car-detail-desc {
    padding: 75px 10%;
    color: #262626;
}

.car-detail-desc-title {
    font-size: 35px;
    font-family: PoppinsBold;
    margin-bottom: 10px;
}

.car-detail-desc p {
    font-size: 25px;
}



.car-gallery-title {
    color: white;
    font-size: 35px;
    font-family: PoppinsBold;
    margin-bottom: 20px;
}

.swiper {
    width: 100%;
    height: 300px;
    border-radius: 30px;
}

.swiper-slide {
    border-radius: 30px;
    user-select: none;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    user-select: none;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
}

.swiper-button-next, .swiper-button-prev {
    color: #219EFF !important;
    font-weight: bold;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
}

.car-footer {
    background-color: #F5F5F5;
    padding: 25px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 100px;
}

.car-footer p {
    font-weight: bold;
    font-size: 25px;
    width: 60%;
}

.car-footer a {
    padding: 10px 25px;
    font-size: 25px;
    width: 225px;
}


.car-gallery {
  position: relative;
  max-width: 50%;
  margin: 20px 0px 0px 0px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 20px;
}

.gallery-main img.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0px 15px 5px 15px;
  cursor: pointer;
  z-index: 2;
  border-radius: 10px;
}
.gallery-arrow.left { left: 10px; }
.gallery-arrow.right { right: 10px; }

.gallery-thumbs {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease-in-out;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  outline: 2px solid #007BFF;
}

/* Lightbox */
.lightbox {
    position: fixed;
  display: none;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: scaleIn 0.3s ease-in-out;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-25%);
  font-size: 2.5rem;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  cursor: pointer;
  padding: 0px 20px 8px 20px;
  z-index: 10000;
  border-radius: 10px;
}

.lightbox-arrow.left { left: 8%; }
.lightbox-arrow.right { right: 8%; }


.lightbox-content img {
  max-width: 60vw;
  max-height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 20px 20px 25px 20px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}


@media (max-width: 1150px) {
    .car-footer {
        flex-direction: column;
        gap: 25px;
    }

    .car-footer p {
        width: 100%;
        text-align: center;
    }

    .car-footer a {
        width: auto;
    }

.car-gallery {
    position: relative;
    max-width: 100%;
    margin: 20px 0px 0px 0px;
}


}

@media (max-width: 720px) {

    .content {
        padding: 50px 5%;
    }

    .car-container {
        flex-direction: column;
    }

    .car-image {
        width: 100%;
        box-sizing: border-box;
    }

    .car-image img {
        min-width: 0;
    }

    .spec {
        gap: 25px;
    }

    .car-info-title {
        font-size: 25px;
    }

    .name, .value {
        font-size: 20px;
    }

    .car-additional-info {
        padding: 50px 5%;
    }

    .car-detail-desc {
        padding: 50px 5%;
    }

    .car-gallery {
        padding: 50px 5%;
    }

    ul li {
        font-size: 20px;
    }

    .car-detail-desc p {
        font-size: 20px;
    }

    .car-footer {
        padding: 50px 5%;
    }
}