/* Service Card Styles */
.service-card {
    width: 100%;
    aspect-ratio: 4/5;
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    transition: transform 0.6s ease !important;
}

.service-card-link {
    cursor: pointer;
}

.service-link-indicator {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 4;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.9);
    color: #1d3557;
    font-size: 0.85rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, background-color 0.3s ease;
    pointer-events: none;
}

.service-card-link:hover .service-link-indicator {
    transform: translateY(-2px) scale(1.08);
    background: #ffffff;
}

.service-card:hover {
    transform: scale(1.05) !important; /* تكبير الكارت */
    transform: translateY(-1rem) !important;
}

.service-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* التدرج اللوني (الـ Layer) */
.service-card .card-img-overlay {
    /* التدرج يبدأ شفاف 0% وينتهي بلون أسود عند 100% */
    /* التعديل هنا: خليناه يبدأ يغمق من نص الكارت تقريباً 50% */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        /* شفاف تماماً فوق */ rgba(0, 0, 0, 0.4) 40%,
        /* يبدأ يغمق بدري شوية */ rgba(0, 0, 0, 0.95) 100%
            /* أسود صريح تحت الكلام */
    );

    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* يخلي الكلام تحت */
    padding: 1.5rem;
    border-radius: 1.5rem;
}

html:lang(ar) .service-link-indicator {
    right: auto;
    left: 0.85rem;
}

.service-title {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    color: white;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}
