/* =========================
   Services Ultra 1
========================= */
.services-ultra-1{
    padding: 5rem 0;
    background: var(--color-white);
}

.services-ultra-1 > h3{
    margin: 0 0 2.8rem;
    text-align: right;
    color: var(--color-primary);
    display: inline-block;
    z-index: 1;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    background: var(--color-secondary);
    width: 40rem;
    padding: 1.4rem;
}


.services-ultra-1 .service-items{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* =========================
   Card
========================= */
.services-ultra-1 .service-item{
    --pad: 0rem;
    --img-h: 41rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M13 2L3 14h7l-1 8 10-12h-7l1-8z'/%3E%3C/svg%3E");

    --badge-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Crect x='0' y='0' width='44' height='44'/%3E%3C/svg%3E");

    position: relative;
    background: var(--color-white);
    padding: var(--pad);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 24px 55px rgba(0,0,0,.10);
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
    overflow: hidden;
        width: fit-content;
}

.services-ultra-1 .service-item img{
        width: 100%;
    height: var(--img-h);
    object-fit: cover;
    display: block;
    border: 0;
    border-bottom: 4px solid var(--color-primary);
    transition: transform .22s ease, filter .22s ease;
}

.services-ultra-1 .service-item::after{
    content:"";
    position:absolute;
    left: var(--pad);
    right: var(--pad);
    top: var(--pad);
    height: var(--img-h);
    pointer-events: none;
    opacity: 0;
    transition: opacity .22s ease;
    background:
        linear-gradient(0deg, rgba(237,85,33,.72), rgba(237,85,33,.72)),
        repeating-linear-gradient(45deg, rgba(0,0,0,.22) 0 2px, rgba(0,0,0,0) 2px 6px);
}

.services-ultra-1 .service-item::before{
    content:"";
    position:absolute;
  width: 44px;   
    height: 44px;
    left: calc(var(--pad) + 10px);
    top: calc(var(--pad) + var(--img-h) - 18px);
    background-color: var(--color-primary);
    background-image: var(--service-icon);
    background-repeat: no-repeat;
    background-size: 22px 22px;
    background-position: right 11px center;

    -webkit-mask: var(--badge-mask) no-repeat center / contain;
            mask: var(--badge-mask) no-repeat center / contain;

    z-index: 3;
}

/* متن‌ها */
.services-ultra-1 .service-item h4{
    margin: 16px 0 10px;
    font-size: 20px;
    padding: 0 1.4rem;
    font-weight: 800;
    color: var(--color-black);
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    width: 100%;
    color: var(--color-black);
    overflow: hidden;
    text-overflow: ellipsis;
    display: box;
    box-orient: vertical;
    line-clamp: 1;
}
.services-ultra-1 .service-item p{
    margin: 0 0 14px;
    padding: 0 12px;
    text-align: justify;
    font-size: 16px;
    line-height: 2.05;
    color: rgba(52,52,52,.78);
	    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    width: 90%;
    color: var(--color-black);
    overflow: hidden;
    text-overflow: ellipsis;
    display: box;
    box-orient: vertical;
    line-clamp: 2;
}

.services-ultra-1 .service-item a{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 10px;

    width: calc(100% + (var(--pad) * 2));
    margin: 1rem calc(var(--pad) * -1) calc(var(--pad) * -1);
    padding: 14px 18px;

    background: var(--color-secondary);
    color: var(--color-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;

    box-shadow: inset 0 1px 0 rgba(0,0,0,.06);
    transition: background-color .22s ease, color .22s ease, justify-content .22s ease;
}

.services-ultra-1 .service-item a svg{
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
.services-ultra-1 .service-item a svg path{
    stroke: currentColor !important;
}

/* =========================
   Hover 
========================= */
.services-ultra-1 .service-item:hover{
    background: var(--color-secondary);
    transform: translateY(-6px);
    z-index: 5;
    box-shadow: 0 34px 70px rgba(0,0,0,.16);
}

.services-ultra-1 .service-item:hover::after{
    opacity: 1;
}

.services-ultra-1 .service-item:hover img{
    transform: scale(1.02);
    filter: saturate(1.05);
}

.services-ultra-1 .service-item:hover a{
    background: var(--color-primary);
    color: var(--color-white);
    justify-content: center;
}


/* =========================
   Responsive
========================= */
@media (max-width: 992px){
    .services-ultra-1{ padding: 38px 26px 60px; }
    .services-ultra-1 .service-items{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
    .services-ultra-1 .service-items{ grid-template-columns: 1fr; }
    .services-ultra-1 .service-item{ --img-h: 21rem; }
    .services-ultra-1 .service-item img{
        width:100%;}
}
