.serv_container {
    padding: 0 8rem 0 0;
}

.services__section {
    padding: 60px 0;
    background-color: #EFEFEF;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

.services-slider .item {
    position: relative;
    overflow: hidden;
    border-radius: 11px;
    height: 360px;
    margin: 0 0.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.services-slider .item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.services-slider .item:before {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../includes/images/aservAfter.png') no-repeat;
    background-size: 100% 100%;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.services-slider .item:hover:before {
    opacity: 0.8;
}

.services-slider .item .image {
    height: 100%;
    width: 100%;
}

.services-slider .item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: opacity 0.4s;
}

.services-slider .item .caption {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.05));
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    z-index: 3;
    transition: background 0.3s ease-in-out;
}

.services-slider .item .caption h4 {
    font-size: 2.1rem;
    font-weight: bold;
    line-height: 44px;
    transition: transform 0.3s;
    font-family: 'AwanZaman Md';
}
.services-slider .item .caption a span:nth-child(1){
    padding-left:5px;
}
.services-slider .item .caption a span svg{
    width:20px;
    height:20px;
    
}
.services-slider .item:hover .caption h4 {
    transform: translateY(-6px);
}

.services-slider .item .caption h4 span {
    display: block;
}

.services-slider .item .caption .btn {
    background-color: #000;
    color: #fff;
    padding: 6px 18px;
    font-size: 14px;
    border-radius: 50px;
    display: inline-block;
    align-self: flex-start;
    transition: background 0.3s;
}

.services-slider .item .caption .btn:hover {
    background-color: #333;
}

/* Responsive Design */

@media (max-width: 768px) {
    .serv_container {
        padding: 0 1rem;
    }

    .services-slider .item {
        height: 200px;
    }

    .services-slider .item .caption h4 span {
        font-size: 1.8rem;
        line-height: 20px;
    }

    .services-slider .item .caption .btn {
        font-size: 12px;
        padding: 4px 12px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .services-slider .item {
        height: 280px;
    }
    .services-slider .item .caption h4 {
    font-size: 1.5rem;
}
}

@media (max-width: 1191px) and (min-width: 992px) {
    .services-slider .item {
        height: 310px;
    }
    .services-slider .item .caption h4 {
    font-size: 1.5rem;
}
}

@media (max-width: 1366px) and (min-width: 1191px) {
    .services-slider .item {
        height: 330px;
    }
}
