/* טקסט RTL בתוך הסקשן */
#services .subtitle,
#services h2,
#services .lead,
#services h3,
#services span {
    direction: rtl;
    text-align: center;
}

/* העטיפה הכללית של האזור של הכרטיסים */
.services-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
}

/* ה-track: במובייל הוא שורה אופקית נגללת עם snap */
.services-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-inline: 1rem;
    /* מסתיר scrollbar מכוער במובייל */
    scrollbar-width: none; /* Firefox */
}
.services-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* כל כרטיס במובייל */
.service-card {
    position: relative;

    color: #fff;
    border-radius: 8px;
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
    overflow: hidden;
}

/* התמונה של השירות */
.service-img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* האוברליי בחלק העליון - אתה כבר שם radial-gradient-color
   נשאיר אותו, אבל נוודא שהוא לא נעלם */
.radial-gradient-color,
.abs.hover-op-1 {
    pointer-events: none;
}

/* הקופסה המטושטשת למטה */
.bg-blur {
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    text-align: center;
}
.bg-blur h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}
.bg-blur span {
    font-size: .8rem;
    line-height: 1.4;
    color: #dcdcdc;
}

/* חיצים למובייל */
.services-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 20px;
    line-height: 38px;
    text-align: center;
    z-index: 10;
}
.services-prev { left: 10px; }
.services-next { right: 10px; }

/* -------- דסקטופ -------- */
@media (min-width: 992px) {

    /* אין more scroll במחשב, זה גריד */
    .services-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        row-gap: 2rem;
        column-gap: 2rem;
        overflow: visible;
        padding-inline: 0;
    }

    .service-card {
        flex: unset;
        max-width: 100%;
        scroll-snap-align: unset;
    }

    .service-img {
        height: 320px;
    }

    /* חיצים מוסתרים בדסקטופ */
    .services-arrow {
        display: none !important;
    }
}

.bg-blur {
    backdrop-filter: blur(4px); /* במקום 10px */
}


/* סקשן שירותים – רקע שקוף */
#services {
    background: transparent;
}

/* טקסט RTL בתוך הסקשן */
#services .subtitle,
#services h2,
#services .lead,
#services h3,
#services span {
    direction: rtl;
    text-align: center;
}

/* העטיפה הכללית של האזור של הכרטיסים */
.services-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
}

/* ה-track: במובייל הוא שורה אופקית נגללת עם snap */
.services-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-inline: 1rem;
    /* מסתיר scrollbar במובייל */
    scrollbar-width: none; /* Firefox */
}
.services-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* כל כרטיס במובייל */
.service-card {
    position: relative;
    background-color: transparent;   /* בלי שחור מאחורה */
    color: #fff;
    border-radius: 8px;
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
    overflow: hidden;
    text-align: center;
}

/* התמונה של השירות */
.service-img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* הלייבל התחתון (הטקסט על התמונה) */
.service-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1rem;
    padding: 8px 20px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    width: max-content;
    white-space: nowrap;
}

/* חיצים למובייל */
.services-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 20px;
    line-height: 38px;
    text-align: center;
    z-index: 10;
}
.services-prev { left: 10px; }
.services-next { right: 10px; }

/* -------- דסקטופ -------- */
@media (min-width: 992px) {

    /* במחשב זה גריד, לא scroll */
    .services-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        row-gap: 2rem;
        column-gap: 2rem;
        overflow: visible;
        padding-inline: 0;
    }

    .service-card {
        flex: unset;
        max-width: 100%;
        scroll-snap-align: unset;
    }

    .service-img {
        height: 320px;
    }

    /* חיצים מוסתרים בדסקטופ */
    .services-arrow {
        display: none !important;
    }
}
