.landing-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
}

.landing-slider .carousel,
.landing-slider .carousel-inner,
.landing-slider .carousel-item {
    width: 100%;
    height: 100%;
}

.landing-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .landing-slider,
    .landing-slider .carousel,
    .landing-slider .carousel-inner,
    .landing-slider .carousel-item,
    .landing-slider .carousel-item img {
        height: auto !important;
    }

    .landing-slider .carousel-item img {
        object-fit: contain;
    }
}

.landing-section {
    padding: 80px 0;
}

.landing-section h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

.landing-section p {
    color: #6c757d;
    line-height: 1.9;
}

.landing-section.bg-light-section {
    background-color: #f8f9fa;
}

.landing-slider .carousel-caption {
    bottom: 0%;
    right: 2%;
    left: auto;
    text-align: right;
}

.landing-slider-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #033e66;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.landing-slider-btn:hover {
    background-color: #0b5ed7;
    color: #fff;
}

.latest-cars-section {
    padding: 70px 0;
}

.latest-cars-section .section-title {
    font-weight: 700;
    color: #033e66;
    margin-bottom: 30px;
}

.car-card {
    position: relative;
    background-color: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 20px;
    height: 100%;
}

.car-card-title-link {
    text-decoration: none;
}

.car-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #033e66;
    margin: 0 0 4px;
    line-height: 1.5;
}

.car-card-year {
    color: #6c757d;
    font-size: 13px;
    display: block;
    margin-bottom: 10px;
}

.car-card-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.car-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.car-card-specs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eef0f2;
    border-bottom: 1px solid #eef0f2;
    padding: 12px 0;
    margin-bottom: 16px;
}

.car-card-spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #033e66;
    font-weight: 600;
}

.car-card-spec-item i {
    color: #6c757d;
    font-size: 15px;
}

.car-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.car-card-browse-btn {
    flex-shrink: 0;
    background-color: #033e66;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 26px;
    border-radius: 8px;
}

.car-card-browse-btn:hover {
    background-color: #022c49;
    color: #fff;
}

.car-card-status-badge {
    flex-shrink: 0;
    border: 1px solid #f0ad4e;
    color: #b8860b;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Search bar */
.car-search-section {
    padding: 30px 0 10px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.car-search-box {
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.car-search-label {
    display: block;
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 6px;
}

.car-search-input-wrap {
    position: relative;
}

.car-search-input-wrap i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #6c757d;
}

.car-search-input-wrap input {
    padding-left: 38px;
}

.car-search-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.car-search-fields .form-control,
.car-search-fields .form-select,
.car-search-btn {
    height: 44px;
    box-sizing: border-box;
    margin: 0;
}

.car-search-field {
    flex: 1 1 150px;
    min-width: 150px;
}

.car-search-field-main {
    flex: 2 1 260px;
    min-width: 220px;
}

.car-search-actions {
    flex: 0 0 auto;
}

.car-search-label-spacer {
    visibility: hidden;
}

.car-search-btn {
    background-color: #033e66;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    width: 100%;
}

.car-search-btn:hover {
    background-color: #022c49;
    color: #fff;
}

@media (max-width: 991px) {
    .car-search-section {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .car-search-actions {
        flex-basis: 100%;
    }
}

/* Why-us section */
.why-us-section {
    padding: 70px 0;
}

.why-us-section .section-title {
    font-weight: 700;
    color: #033e66;
    text-align: center;
    margin-bottom: 18px;
}

.why-us-intro {
    color: #6c757d;
    line-height: 1.9;
    text-align: center;
    max-width: 950px;
    margin: 0 auto 40px;
}

.why-us-item {
    text-align: center;
}

.contact-card {
    background-color: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 30px;
    height: 100%;
    text-align: right;
    display: block;
}

.contact-card .form-label {
    text-align: right;
    display: block;
}

.why-us-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5e6c8;
    border-radius: 20px;
    color: #b8860b;
    font-size: 36px;
}

.why-us-item h3 {
    color: #033e66;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
}

.why-us-item p {
    color: #6c757d;
    line-height: 1.9;
    margin-bottom: 18px;
}

.why-us-more-btn {
    display: inline-block;
    border: 1px solid #d4a017;
    color: #b8860b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 24px;
    border-radius: 8px;
}

.why-us-more-btn:hover {
    background-color: #fdf6e3;
    color: #b8860b;
}

/* Testimonials */
.testimonials-section {
    padding: 70px 0;
    background-color: #f8f9fa;
}

.testimonials-section .section-title {
    font-weight: 700;
    color: #033e66;
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-carousel {
    padding: 0 55px;
}

.testimonials-carousel .carousel-control-prev,
.testimonials-carousel .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #033e66;
    border-radius: 50%;
    opacity: 1;
}

.testimonials-carousel .carousel-control-prev:hover,
.testimonials-carousel .carousel-control-next:hover {
    background-color: #022c49;
}

@media (max-width: 575px) {
    .testimonials-carousel {
        padding: 0 40px;
    }
}

.testimonial-card {
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 26px;
    height: 100%;
}

.testimonial-card .testimonial-rating {
    color: #f0ad4e;
    font-size: 14px;
    margin-bottom: 12px;
}

.testimonial-card .testimonial-comment {
    color: #444;
    line-height: 1.9;
    margin-bottom: 20px;
    min-height: 80px;
}

.testimonial-card .testimonial-customer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eaf2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #033e66;
    font-size: 20px;
    flex-shrink: 0;
}

.testimonial-card .testimonial-name {
    font-weight: 700;
    color: #033e66;
    margin: 0;
}

/* Our cars page */
.our-cars-section {
    padding: 40px 0 70px;
}

.our-cars-filter {
    background-color: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 22px;
    position: sticky;
    top: 90px;
}

.our-cars-filter-title {
    font-weight: 700;
    color: #033e66;
    font-size: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Finance CTA section */
.finance-cta-section {
    padding: 0;
}

.finance-cta-content {
    padding: 60px 50px;
}

.finance-cta-content h2 {
    color: #033e66;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.finance-cta-content p {
    color: #6c757d;
    line-height: 1.9;
    margin-bottom: 0;
}

.finance-cta-btn-primary,
.finance-cta-btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.finance-cta-btn-primary {
    background-color: #033e66;
    color: #fff;
}

.finance-cta-btn-primary:hover {
    background-color: #022c49;
    color: #fff;
}

.finance-cta-btn-outline {
    background-color: transparent;
    color: #b8860b;
    border: 1px solid #d4a017;
}

.finance-cta-btn-outline:hover {
    background-color: #fdf6e3;
    color: #b8860b;
}

.finance-cta-image {
    height: 100%;
    min-height: 380px;
}

.finance-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .finance-cta-content {
        padding: 40px 24px;
        text-align: center;
    }

    .finance-cta-content .d-flex {
        justify-content: center;
    }

    .finance-cta-image {
        min-height: 260px;
    }
}

/* Finance partners marquee section */
.finance-partners-section {
    padding: 55px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.finance-partners-section .section-title {
    font-weight: 700;
    color: #033e66;
    text-align: center;
    margin-bottom: 35px;
}

.finance-partners-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    direction: ltr;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.finance-partners-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: finance-partners-scroll 15s linear infinite;
}

.finance-partners-marquee:hover .finance-partners-track {
    animation-play-state: paused;
}

.finance-partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 140px;
}

.finance-partner-item img {
    height: 55px;
    max-width: 130px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.finance-partner-item span {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.finance-partner-item:hover img {
    transform: scale(1.05);
}

.finance-partner-item:hover span {
    color: #033e66;
}

@keyframes finance-partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .finance-partners-track {
        animation: none;
    }
}

/* Brands marquee section */
.brands-section {
    padding: 55px 0;
    overflow: hidden;
}

.brands-section .section-title {
    font-weight: 700;
    color: #033e66;
    text-align: center;
    margin-bottom: 35px;
}

.brands-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    direction: ltr;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: finance-partners-scroll 290s linear infinite reverse;
}

.brands-marquee:hover .brands-track {
    animation-play-state: paused;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 140px;
}

.brand-item img {
    height: 55px;
    max-width: 130px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-item-icon {
    height: 55px;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #033e66;
    font-size: 24px;
    transition: all 0.3s ease;
}

.brand-item span {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.brand-item:hover img,
.brand-item:hover .brand-item-icon {
    transform: scale(1.05);
}

.brand-item:hover span {
    color: #033e66;
}

@media (prefers-reduced-motion: reduce) {
    .brands-track {
        animation: none;
    }
}

.brand-item {
    text-decoration: none;
}

/* ---------- Finance partners header ---------- */
.finance-partners-section {
    padding: 70px 0 60px;
    background: linear-gradient(180deg, #f4f7fc 0%, #f8f9fa 100%);
}

.finance-partners-head {
    text-align: center;
    margin-bottom: 40px;
}

.installment-tagline {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 12px 12px 30px;
    margin-bottom: 34px;
    background: #fff;
    border: 1px solid #dfe7f5;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(3, 62, 102, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.installment-tagline:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(3, 62, 102, 0.13);
}

.installment-tagline-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f4fa8 0%, #033e66 100%);
    color: #fff;
    font-size: 23px;
    box-shadow: 0 6px 16px rgba(47, 79, 168, 0.35);
}

.installment-tagline-text {
    font-size: 25px;
    font-weight: 500;
    color: #2f4fa8;
    line-height: 1.5;
}

.installment-tagline-text strong {
    position: relative;
    z-index: 0;
    font-weight: 800;
    color: #033e66;
    white-space: nowrap;
}

.installment-tagline-text strong::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 3px;
    height: 9px;
    border-radius: 4px;
    background: rgba(47, 79, 168, 0.18);
    z-index: -1;
}

.finance-partners-head .section-title {
    position: relative;
    display: block;
    margin-bottom: 14px;
    padding-bottom: 16px;
    font-size: 32px;
    font-weight: 800;
}

.finance-partners-head .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2f4fa8, #033e66);
}

.finance-partners-subtitle {
    max-width: 560px;
    margin: 0 auto;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 576px) {
    .finance-partners-section {
        padding: 50px 0 45px;
    }

    .installment-tagline {
        gap: 10px;
        padding: 8px 8px 8px 18px;
        margin-bottom: 26px;
    }

    .installment-tagline-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .installment-tagline-text {
        font-size: 17px;
    }

    .finance-partners-head .section-title {
        font-size: 26px;
    }
}
