/**
 * YouYou Serv Public CSS
 */
.youyou-serv-slider-container {
    margin: 0 0 10px 0;
    /* Removed top margin to bring closer to the line */
    padding-bottom: 0px;
    position: relative;
}

.youyou-serv-slider {
    margin-bottom: 0px;
    /* Removed margin to bring dots closer */
}

.youyou-serv-slide {
    padding: 30px 0 0 0;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease;
    /* Default for slides outside the visible 5 */
    transform: perspective(1000px) translateX(0) translateZ(-400px) rotateY(55deg) scale(0.75);
    opacity: 0;
    position: relative;
    z-index: 1;
}

/* ----- Right Side ----- */
/* Inner Right */
.youyou-serv-slider .slick-center + .slick-slide {
    transform: perspective(1000px) translateX(0) translateZ(-100px) rotateY(-35deg) scale(0.95);
    opacity: 0.9;
    z-index: 3;
}
/* Outer Right */
.youyou-serv-slider .slick-center + .slick-slide + .slick-slide {
    transform: perspective(1000px) translateX(0) translateZ(-250px) rotateY(-45deg) scale(0.85);
    opacity: 0.6;
    z-index: 2;
}
/* 3rd Right (hide gracefully) */
.youyou-serv-slider .slick-center + .slick-slide + .slick-slide + .slick-slide {
    transform: perspective(1000px) translateX(0) translateZ(-400px) rotateY(-55deg) scale(0.75);
    opacity: 0;
    z-index: 1;
}

/* ----- Left Side ----- */
/* Inner Left */
.youyou-serv-slide:has(+ .slick-center) {
    transform: perspective(1000px) translateX(0) translateZ(-100px) rotateY(35deg) scale(0.95);
    opacity: 0.9;
    z-index: 3;
}
/* Outer Left */
.youyou-serv-slide:has(+ .slick-slide + .slick-center) {
    transform: perspective(1000px) translateX(0) translateZ(-250px) rotateY(45deg) scale(0.85);
    opacity: 0.6;
    z-index: 2;
}
/* 3rd Left (hide gracefully) */
.youyou-serv-slide:has(+ .slick-slide + .slick-slide + .slick-center) {
    transform: perspective(1000px) translateX(0) translateZ(-400px) rotateY(55deg) scale(0.75);
    opacity: 0;
    z-index: 1;
}

/* ----- Center ----- */
.youyou-serv-slider .slick-center {
    transform: perspective(1000px) translateX(0) translateZ(0) rotateY(0deg) scale(1.05);
    opacity: 1;
    z-index: 10;
}

.youyou-serv-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 10px;
    position: relative;
}

/* Active Card Accent */
.youyou-serv-slider .slick-center .youyou-serv-slide-link {
    box-shadow: 0 20px 40px rgba(221, 63, 62, 0.15);
}

.youyou-serv-slide-link:hover {
    box-shadow: 0 15px 40px rgba(221, 63, 62, 0.2);
    transform: translateY(-5px);
}

.youyou-serv-slide-image-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    max-width: 300px;
    width: 100%;
    margin: 0 auto 15px;
    border-radius: 8px;
}

/* Colorful Gradient Overlay */
.youyou-serv-slide-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(31, 41, 55, 0.5) 0%, rgba(31, 41, 55, 0) 50%);
    pointer-events: none;
    transition: background 0.5s ease;
    border-radius: 8px;
}

/* Active Image Gradient */
.youyou-serv-slider .slick-center .youyou-serv-slide-image-container::after {
    background: linear-gradient(to top, rgba(221, 63, 62, 0.6) 0%, rgba(221, 63, 62, 0) 60%);
}

.youyou-serv-slide-image {
    width: 100%;
    height: 400px;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
    /* للحفاظ على نسبة العرض إلى الارتفاع */
}

.youyou-serv-slide-link:hover .youyou-serv-slide-image {
    transform: scale(1.05);
}

.youyou-serv-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 15px;
    background-color: transparent;
}

.youyou-serv-hover-image {
    max-width: 15%;
    max-height: 15%;
    object-fit: contain;
}

.youyou-serv-slider-container .youyou-serv-slide-title,
.youyou-serv-slide-title {
    font-size: 20px !important;
    margin: 15px 0 5px;
    font-weight: 700 !important;
    color: #9ca3af !important;
    /* Muted gray for inactive */
    font-family: 'Rubik', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    letter-spacing: -0.02em;
    transition: color 0.5s ease;
}

/* Active Title */
.youyou-serv-slider .slick-center .youyou-serv-slide-title {
    color: #1f2937 !important;
    /* Dark Slate */
}

/* Hover Title */
.youyou-serv-slide-link:hover .youyou-serv-slide-title {
    color: #DD3F3E !important;
}

.youyou-serv-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.youyou-serv-prev,
.youyou-serv-next {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 3px;
    margin: 0 10px;
}

.youyou-serv-dots {
    display: flex;
    justify-content: center;
    margin-top: -10px;
    /* Lifted closer to the cards */
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 20;
}

.youyou-serv-dots ul {
    display: flex;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    justify-content: center;
}

.youyou-serv-dots li {
    margin: 0 6px;
    width: auto;
    height: auto;
}

.youyou-serv-dots li button {
    font-size: 0;
    border: 0;
    background: #d1d5db;
    width: 8px;
    /* Thinner and more elegant */
    height: 8px;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

/* إخفاء النقطة السوداء الافتراضية الخاصة بـ Slick */
.youyou-serv-dots li button:before {
    display: none !important;
    content: '' !important;
}

.youyou-serv-dots li.slick-active button {
    background: #DD3F3E;
    width: 30px;
}

/* Responsive styles */
/* Progress Bar Slider */
.youyou-serv-progress {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 5px;
    position: relative;
    z-index: 20;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.youyou-serv-progress-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px !important;
    border-radius: 4px;
    background-color: #e5e7eb !important;
    border-radius: 4px;
    outline: none;
    padding: 0 !important;
    margin: 0;
    cursor: pointer;
    border: none !important;
    box-shadow: none !important;
}

.youyou-serv-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 55px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #DD3F3E, #ff6b6b);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(221, 63, 62, 0.35);
    margin-top: -2px;
}

.youyou-serv-progress-bar::-webkit-slider-thumb:hover {
    transform: scaleY(1.2);
    box-shadow: 0 6px 15px rgba(221, 63, 62, 0.45);
}

.youyou-serv-progress-bar::-moz-range-thumb {
    width: 55px;
    height: 8px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #DD3F3E, #ff6b6b);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(221, 63, 62, 0.35);
}

.youyou-serv-progress-bar::-moz-range-thumb:hover {
    transform: scaleY(1.2);
    box-shadow: 0 6px 15px rgba(221, 63, 62, 0.45);
}
@media (max-width: 768px) {
    .youyou-serv-slide-title {
        font-size: 18px;
    }
    
    /* جعل الشريط نظيف ومتناسق في الجوال كشريط تمرير عادي */
    .youyou-serv-slide,
    .youyou-serv-slider .slick-slide {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .youyou-serv-slider .slick-center {
        transform: none !important;
        opacity: 1 !important;
        z-index: 10 !important;
    }

    /* تقليل المسافات الجانبية بين الصور وتوسيعها قليلاً، وتقليل المسافة تحت الصورة */
    .youyou-serv-slide-image-container {
        max-width: 94%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .youyou-serv-slide-title {
        font-size: 14px;
    }

    .youyou-serv-prev,
    .youyou-serv-next {
        padding: 5px 10px;
    }
}