.motors-featured-carousel-wrapper {
    margin: 40px 0;
    position: relative;
}

.mfc-header {
    margin-bottom: 30px;
}

.mfc-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #000000;
}

.colored-separator {
    display: flex;
    margin-bottom: 25px;
}

.colored-separator .first-long {
    width: 50px;
    height: 4px;
    background-color: #e22d36; /* Red Accent */
    margin-right: 5px;
}

.colored-separator .last-short {
    width: 15px;
    height: 4px;
    background-color: #e22d36;
}

.mfc-carousel {
    padding-bottom: 50px;
    overflow: hidden;
}

.mfc-carousel .swiper-slide {
    height: auto; /* Allow slides to have natural height */
    display: flex;
}

.mfc-carousel .listing-car-item {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 4px;
    transition: transform 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.mfc-carousel .listing-car-item-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mfc-carousel .listing-car-item-inner > a {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.mfc-carousel .listing-car-item:hover {
    transform: translateY(-5px);
}

.mfc-carousel .image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2; /* Ensures 300x200 proportions */
    background: #f5f5f5;
}

.mfc-carousel .image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Ensures image fills the area without stretching */
}

.mfc-carousel .price {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #67be54;
    color: #fff;
    padding: 8px 12px;
    font-weight: 700;
    z-index: 5;
}

.mfc-carousel .price .regular-price {
    text-decoration: line-through;
    font-size: 0.8em;
    opacity: 0.8;
}

.mfc-carousel .price .label-price {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
    font-weight: 400;
    opacity: 0.9;
}

.mfc-carousel .listing-car-item-meta {
    padding: 20px;
    flex-grow: 1; /* Pushes bottom meta to the bottom */
    display: flex;
    flex-direction: column;
}

.mfc-carousel .car-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    color: #000;
    line-height: 1.4;
    min-height: 45px; /* Ensures titles take up same vertical space */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mfc-carousel .car-description-snippet {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mfc-carousel .car-meta-bottom {
    margin-top: auto; /* Pushes this to the bottom of the meta container */
}

.mfc-carousel .car-meta-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.mfc-carousel .car-meta-bottom ul li {
    margin-right: 12px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.mfc-carousel .car-meta-bottom ul li i {
    margin-right: 5px;
    color: #6fba3b; /* Green Accent */
}

/* Controls */
.mfc-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-100%);
    pointer-events: none;
    z-index: 10;
}

.mfc-prev, .mfc-next {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: #333;
}

.mfc-prev:hover, .mfc-next:hover {
    background: #e22d36;
    color: #fff;
}

.mfc-prev { left: -20px; }
.mfc-next { right: -20px; }

.mfc-carousel .swiper-pagination {
    bottom: 5px !important;
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    z-index: 20;
}

.mfc-carousel .swiper-pagination-bullet-active {
    background: #e22d36;
}

@media (max-width: 1200px) {
    .mfc-prev { left: 0; }
    .mfc-next { right: 0; }
}

@media (max-width: 768px) {
    .mfc-carousel .image {
        height: 180px;
    }
}
