.new-layout .testimonial-section {
    max-width: 100%;
    margin: 0 80px;
    padding: 80px 10px;
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    background-image: url(/new-home/assets/images/quote.png);
    background-repeat: no-repeat;
    background-position: 98% 20%;
}

@media (min-width: 1600px) {
    .new-layout .testimonial-section {
        max-width: 1530px;
        margin: 0 auto;

    }
}

@media (max-width: 1400px) {
    .new-layout .testimonial-section {
        margin: 0 80px;
    }
}

@media (max-width: 1200px) {
    .new-layout .testimonial-section {
        margin: 0 60px;
    }
}

@media (max-width: 1024px) {
    .new-layout .testimonial-section {
        margin: 0 40px;
    }
}



@media (max-width: 768px) {
    .new-layout #testimonials.testimonial-section {
        background:none;
    }
    .new-layout .testimonial-section {
        margin: 0;
    }
}


.new-layout #testimonials .view-all-link {
    width: fit-content;
    border-radius: 16px;
    padding: 5px 25px;
    color:  rgb(3, 101, 124);;
    background-color: #03657c1a;
    margin: 0 auto 15px;
    font-weight: 400;
    font-size: 16px;
    text-transform: capitalize;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media(max-width: 480px){
    .new-layout #testimonials .view-all-link {
        font-size: 14px !important;

    }
}







.new-layout #testimonials .section-title {
    text-align: center;
    font-size: 32px !important;
    font-weight: 500 !important;
    color: black !important;
    margin-bottom: 50px;
}

[dir=rtl] .new-layout #testimonials .section-title {
    font-family: tajawal,sans-serif!important
}

.new-layout #testimonials .testimonial-carousel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;

    margin: 0 auto;
    box-sizing: border-box;
    overflow: visible;
}

.new-layout #testimonials .owl-stage-outer {
    padding: 40px 0 60px !important;
    margin: 0;
    width: 100%;
    min-height: 500px;
}

.new-layout #testimonials .owl-stage {
    height: auto !important;
    display: flex !important;
    align-items: center !important;
}

.new-layout #testimonials .owl-item {
    height: auto !important;
    display: flex !important;
    align-items: center;
}

.new-layout #testimonials .owl-stage {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.new-layout #testimonials .owl-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.new-layout #testimonials .testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin: 20px -40px;
    transition: all 300ms ease !important;
    position: relative;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: auto !important;
    width: 380px;
    transform: scale(0.95);
    transform-origin: center center;
    overflow: hidden;
    box-sizing: border-box;
    will-change: transform, height;
    filter: drop-shadow(0 4px 7px rgba(161, 172, 200, 0.3));
}
@media (min-width:1680px){
    .new-layout #testimonials .testimonial-card {
        width: 440px !important;
    }
}
@media (min-width:1481px) and (max-width:1679px){
    .new-layout #testimonials .testimonial-card {
        width: 400px !important;
    }
}

@media (min-width:1367px) and (max-width:1480px){
    .new-layout #testimonials .testimonial-card {
        width: 350px !important;
    }
}
@media(max-width: 1366px){
    .new-layout #testimonials .testimonial-card {
        width: 320px !important;
    }
}
@media(max-width: 1280px){
    .new-layout #testimonials .testimonial-card {
        width: 300px !important;
    }
}

@media (max-width:768px){
    .new-layout #testimonials .testimonial-card {
        width: 280px !important;
    }
}

@media (max-width: 480px) {
    .new-layout #testimonials .testimonial-card {
        width: 250px !important;
    }
}

@media (max-width: 376px) {
    .new-layout #testimonials .testimonial-card {
        width: 240px !important;
    }
}

.new-layout #testimonials .testimonial-card.center {
    transform: scale(1.1);
    z-index: 10;
    width: 400px;
    /* height: 430px !important; */
    margin: 0 -60px !important;
    position: relative;
}

.new-layout #testimonials .testimonial-card .card-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.new-layout #testimonials .testimonial-card .card-image {
    height: 0;
    padding-bottom: 60%; /* Adjust this percentage to control the image height */
    position: relative;
    overflow: hidden;
}

.new-layout #testimonials .testimonial-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-layout #testimonials .testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-layout #testimonials .rating-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    width: 100%;
}

.new-layout #testimonials .star-rating {
    color: #FFC107;
    font-size: 30px;
    letter-spacing: 1px;
    line-height: 1;
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
    unicode-bidi: bidi-override;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 2px;
}

.new-layout #testimonials .google-icon {
    width: 30px !important;

    object-fit: contain;
    vertical-align: middle;
    /* opacity: 0.9; */
    margin-left: auto;
    display: block;
}

.new-layout #testimonials .testimonial-text {
    color: black;
    font-size: 16px;
    flex-grow: 1;
    /* padding: 0 25px; */
    font-style: normal;
}
@media (max-width: 768px) {
    .new-layout #testimonials .testimonial-text {
        font-size: 12px;
    }
}

.new-layout #testimonials .customer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.new-layout #testimonials .customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.new-layout #testimonials .customer-details {
    display: flex;
    flex-direction: column;
}

.new-layout #testimonials .customer-name {
    color: black;
    font-size: 14px;
    font-weight: bold;
    margin:  10px 0;
}

.new-layout #testimonials .customer-role {
    color: #888;
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}

.new-layout #testimonials .google-review-section {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.new-layout #testimonials .google-logo {
    font-size: 18px;
    font-weight: 500;
    color: #4285f4;
}

.new-layout #testimonials .rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-layout #testimonials .rating-score {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.new-layout #testimonials .rating-stars {
    color: #ffc107;
    font-size: 20px;
}

.new-layout #testimonials .read-review-link {
    color: #1976D2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}



.new-layout #testimonials .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto;
}

.new-layout #testimonials .owl-nav button {
    background: none !important;
    color: #333 !important;
    border: 1px solid #2790a9 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: all;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.new-layout #testimonials .owl-nav button i {
    font-size: 14px;
    color: #2790a9;
    transition: all 0.3s ease;
}

.new-layout #testimonials .owl-nav button:hover {
    background: #f8f9fa !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.new-layout #testimonials .owl-nav button:active {
    transform: scale(0.95);
}

.new-layout #testimonials .owl-nav .owl-prev {
    left: 0 !important;
    margin-left: -20px !important;
}

.new-layout #testimonials .owl-nav .owl-next {
    right: 0 !important;
    margin-right: -20px !important;
}

@media (max-width: 767px) {
    .new-layout #testimonials .owl-nav {
        margin: 0 -15px;
    }
    
    .new-layout #testimonials .owl-nav button {
        width: 36px !important;
        height: 36px !important;
    }
    
    .new-layout #testimonials .owl-nav button svg {
        width: 18px;
        height: 18px;
    }
}

.new-layout #testimonials .owl-nav button i {
    font-size: 14px;
    color: #2790a9;
    transition: all 0.3s ease;
}

.new-layout #testimonials .owl-nav button:hover {
    background: #f8f9fa !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.new-layout #testimonials .owl-nav button:active {
    transform: scale(0.95);
}

.new-layout #testimonials .owl-nav .owl-prev {
    left: 0 !important;
    margin-left: -20px !important;
}

.new-layout #testimonials .owl-nav .owl-next {
    right: 0 !important;
    margin-right: -20px !important;
}

[dir=rtl] .new-layout #testimonials .owl-nav  {
    flex-direction: row-reverse !important;
    transform: scaleX(-1);

}
    

@media (max-width: 767px) {
    /* .testimonial-card {
        margin: 0 10px;
        min-height: 400px;
        border-radius: 12px;
        width: 300px !important;
        transform: scale(1) !important;
    }
     */
    .new-layout #testimonials .owl-stage-outer {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .new-layout #testimonials .owl-stage {
        padding: 0 !important;
    }
    
    /* Hide navigation arrows on mobile */
    .new-layout #testimonials .owl-nav {
        display: none !important;
    }
}

/* Disabled navigation buttons */
.new-layout #testimonials .owl-nav button:disabled,
.new-layout #testimonials .owl-nav button.disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
}
    
.new-layout #testimonials .owl-item {
    padding: 0 !important;
}

.new-layout #testimonials .owl-dots {
    display: none;
}

@media (max-width: 768px) {
    .new-layout #testimonials  .section-title {
        font-size: 16px !important;
        font-weight: 400 !important;
        margin-bottom: 20px !important;

    }
}

@media (max-width: 1024px) {
    .new-layout #testimonials .owl-nav {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .new-layout #testimonials  .section-title {
        font-size: 16px !important;
        font-weight: 400 !important;
        margin-bottom: 20px !important;
    }
    
    .new-layout #testimonials . .testimonial-section {
        padding: 30px 10px;
    }
}



/* .new-layout #testimonials .owl-item.active {
    width: 370px !important;
} */


@media (min-width: 768px) {
    .new-layout #testimonials .owl-item:not(.active) {
        visibility: hidden !important;
        
    }
}