/* Home-only layout refinements. Keep these selectors scoped so inner-page sliders stay unchanged. */
#home.home-main-slider,
#home.home-main-slider .main-slider__carousel,
#home.home-main-slider .owl-stage-outer,
#home.home-main-slider .owl-stage,
#home.home-main-slider .owl-item,
#home.home-main-slider .item {
    height: clamp(330px, 36vw, 480px);
    min-height: 0;
}

#home.home-main-slider .item {
    padding: 0 !important;
}

#home.home-main-slider .main-slider__bg {
    background-position: center center;
    background-size: cover;
    -webkit-transform: scale(1) !important;
    transform: scale(1) !important;
    -webkit-transition: none !important;
    transition: none !important;
}

#home.home-main-slider .owl-item.active .main-slider__bg,
#home.home-main-slider .active .main-slider__bg {
    -webkit-transform: scale(1) !important;
    transform: scale(1) !important;
}

@media (max-width: 767.98px) {
    #home.home-main-slider,
    #home.home-main-slider .main-slider__carousel,
    #home.home-main-slider .owl-stage-outer,
    #home.home-main-slider .owl-stage,
    #home.home-main-slider .owl-item,
    #home.home-main-slider .item {
        height: clamp(220px, 62vw, 300px);
    }
}

@media (max-width: 420px) {
    #home.home-main-slider,
    #home.home-main-slider .main-slider__carousel,
    #home.home-main-slider .owl-stage-outer,
    #home.home-main-slider .owl-stage,
    #home.home-main-slider .owl-item,
    #home.home-main-slider .item {
        height: 220px;
    }
}

/* Equal-height testimonial cards with expandable text. */
.testimonial-two__carousel .owl-stage {
    display: flex;
}

.testimonial-two__carousel .owl-item {
    display: flex;
    height: auto;
}

.testimonial-two__carousel .owl-item > .item {
    display: flex;
    width: 100%;
}

.testimonial-two__carousel .testimonial-two__single {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 430px;
    height: 100%;
}

.testimonial-two__text.testimonial-text-collapsible {
    display: -webkit-box;
    min-height: 145px;
    max-height: 145px;
    margin-bottom: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
}

.testimonial-two__text.testimonial-text-collapsible.is-expanded {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    scrollbar-width: thin;
    scrollbar-color: #e52025 rgba(255, 255, 255, .08);
}

.testimonial-two__text.testimonial-text-collapsible.is-expanded::-webkit-scrollbar {
    width: 5px;
}

.testimonial-two__text.testimonial-text-collapsible.is-expanded::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #e52025;
}

.testimonial-read-toggle {
    align-self: flex-start;
    margin-top: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e52025;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
    cursor: pointer;
}

.testimonial-read-toggle:hover,
.testimonial-read-toggle:focus {
    color: #fff;
}

.testimonial-two__single .testimonial-two__client-info {
    margin-top: auto;
    padding-top: 20px;
}

@media (max-width: 575.98px) {
    .testimonial-two__carousel .testimonial-two__single {
        min-height: 410px;
    }

    .testimonial-two__text.testimonial-text-collapsible {
        min-height: 135px;
        max-height: 135px;
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }
}

/* Home package cards. */
.hala-packages-section .listing-two__content,
.hala-packages-section .listing-two__title,
.hala-packages-section .listing-two__title a {
    width: 100%;
    text-align: center !important;
}

.hala-packages-section .listing-two__title a {
    display: block;
}

.hala-packages-section .listing-one__car-rent-box,
.hala-packages-section .listing-one__car-rent,
.hala-packages-section .listing-one__car-rent > span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hala-packages-section .listing-one__car-rent > span {
    gap: 7px;
    color: #fff !important;
}

.hala-packages-section img[src*="sar-symbol.svg"] {
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
    filter: brightness(0) invert(1) !important;
}

/* Skip layout/paint work for below-the-fold home sections until they approach
   the viewport. The intrinsic size prevents scroll jumps while they are skipped. */
@supports (content-visibility: auto) {
    #home-cars-section,
    .hala-packages-section,
    .blog-one,
    .testimonial-two,
    .popular-car-one {
        content-visibility: auto;
        contain-intrinsic-size: auto 760px;
    }
}
