/* ==========================
   SAARTHI SERVICE GRID
========================== */

.ssg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.ssg-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 380px;
    background: #000;
}


.ssg-card img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.ssg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.75) 35%,
        rgba(0,0,0,0.20) 70%,
        rgba(0,0,0,0.05) 100%
    );
        padding-right: 20px;

}
.ssg-content {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 25px;
    z-index: 10;
}

.ssg-content h3 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ssg-content p {
    color: rgba(255,255,255,.9);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
        padding-right: 80px;

}

.ssg-btn {
    position: absolute;
    right: 25px;
    bottom: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #ff9800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ssg-btn:hover {
    transform: translateX(5px);
}

/* ==========================
   HOVER EFFECTS
========================== */

.ssg-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}



.ssg-card:hover .ssg-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.30) 40%,
        rgba(0, 0, 0, 0.95) 100%
    );
}


.ssg-card img {
    transition: transform .5s ease;
}

.ssg-card:hover img {
    transform: scale(1.08);
}

/* ==========================
   TABLET
========================== */

@media (max-width: 1024px) {

    .ssg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ssg-card {
        min-height: 380px;
    }

   

}

/* ==========================
   MOBILE
========================== */

@media (max-width: 767px) {

    .ssg-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ssg-card {
        min-height: 320px;
    }

  

    .ssg-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .ssg-content h3 {
        font-size: 22px;
    }

    .ssg-content p {
        font-size: 14px;
    }

}

/* ==========================
   LARGE DESKTOP
========================== */

@media (min-width: 1400px) {

    .ssg-grid {
        gap: 30px;
    }

    .ssg-card {
        min-height: 480px;
    }

  

}


.ssg-card{
    position:relative;
    height:420px;
    min-height:420px;
}

.ssg-card img{
    position:absolute;
    inset:0;
    width:100%;
    object-fit:cover;
}

.ssg-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:flex-end;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.95) 0%,
        rgba(0,0,0,.85) 25%,
        rgba(0,0,0,.45) 55%,
        rgba(0,0,0,.10) 100%
    );
    padding-right:20px;

}

.ssg-content{
    width:100%;
    padding:25px;
    position:relative;
}

.ssg-icon{
    width:70px;
    height:70px;
    border-radius:20px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:20px;
}

.ssg-icon i{
    color:#fff;
    font-size:34px;
}

.ssg-content h3{
    font-size:18px;
    color:#fff;
    margin-bottom:10px;
}

.ssg-content p{
    color:#fff;
    opacity:.9;
    font-size:15px;
    line-height:1.7;
    padding-right:80px;
}

.ssg-btn{
    position:absolute;
    right:25px;
    bottom:25px;
    width:55px;
    height:55px;
    border-radius:12px;
    background:#ff9800;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:24px;
}