/* service a css start here  */
.service-a .service-a-row {
    display: flex;
    flex-wrap: wrap;
    /* margin-left: -0.75rem;
    margin-right: -0.75rem; */

    /* gap-y-6 → 1.5rem vertical gap */
}
.service-a-card{
border-radius: clamp(15px, 1.58vw, 30px);
    overflow: hidden;
    position: relative;
        height: 100%;
}
/* Style for the service-a-content-box */
.service-a-content-box {
      background-color: var(--primary-color);
    color: var(--white);
    position: absolute;
    bottom: 20px;            /* Previously: clamp(15px, 2.1vw, 40px) */
    left: 20px;              /* Previously: clamp(15px, 2.1vw, 40px) */
    border-radius: 10px;     /* Previously: clamp(7px, 0.53vw, 10px) */
    padding: 20px;           /* Previously: clamp(15px, 1.58vw, 30px) */
    display: flex;
    gap: 20px;               /* Previously: clamp(15px, 1.58vw, 30px) */
    align-items: center;
    max-width: 100%;
    margin-right: 20px;      /* Previously: clamp(15px, 2.1vw, 40px) */
    /* transform: translateY(50%); */
    /* opacity: 0; */
    transition: 0.4s ease;
}
.service-a-card:hover .service-a-content-box {
    transform: translateY(0);
    opacity: 1;
}
.service-a-text {
    width: 92%;
}
.service-a-img-box {
    height: 100%;
}
.service-a-title:hover{
    color: #000;
}
.service-a-title {
     display: -webkit-box;
  -webkit-line-clamp: 2;      /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
    line-height: normal;
    font-size: 20px;
    /* text-[20px] */
    color: #fff;
    /* text-white */
    font-weight: bold;
    /* font-bold */
    margin-bottom: 0.5rem;
    /* mb-2 (equivalent to 8px) */
    /* leading-normal */

    /* Hover state */
    transition: color 0.3s ease-in-out;
    /* Optional smooth transition on hover */
}

@media (min-width: 768px) {
    .service-a-title {
        font-size: 26px;
        /* md:text-[26px] (applies on medium and larger screens) */
    }

    .service-a-title:hover {
        color: black;
        /* hover:text-black */
    }
}

.service-a-arrow {
    min-width: 47px;
    /* Ensures the minimum width is 47px */
    width: 47px;
    /* Sets the width to 47px */
    height: 47px;
    /* Sets the height to 47px */
    border-radius: 50%;
    /* Makes the element circular */
    background-color: #d1d5db;
    /* bg-gray-300 */
    display: flex;
    color: #000;
    /* Uses flexbox */
    align-items: center;
    /* Vertically centers the content */
    justify-content: center;
    /* Horizontally centers the content */
    transform: rotate(48deg);
    /* Rotates the element by 48 degrees */
    transition: ease-in 0.2s;
}
.service-a-arrow:hover{
    background-color: var(--white);
}

.service-a-col .service-a-img-box img {
    aspect-ratio: 450 / 480;
}

.service-a-img-box img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}




.text-with-icon::before {
    content: '';
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3e%3c!--!Font Awesome Free v5.15.4 by %40fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3e%3cpath fill='%23eb5310' d='M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z'/%3e%3c/svg%3e") !important;
    position: relative;
    width: 10px;
    height: 10px;
    left: 0;
}
.short-des {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* show only 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 767px){
.service-a-content-box {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.service-a-col {
    margin-bottom: 20px;
    width: 100%;
}
}
@media (min-width: 768px) {
    /* .service-a-content-box{
        max-width: 370px;
    } */
    .service-a .service-a-row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    row-gap: 1.5rem;

}
    .service-a-col {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
    .service-a-col:nth-child(4n+1),
    .service-a-col:nth-child(4n+4) {
        width: 66.666667%;
        /* md:w-2/3 */
    }

    .service-a-col:nth-child(4n+2),
    .service-a-col:nth-child(4n+3) {
        width: 33.333333%;
        /* md:w-1/3 */
    }

    .service-a-col:nth-child(4n+1) .service-a-img-box img,
    .service-a-col:nth-child(4n+4) .service-a-img-box img {
        aspect-ratio: 930 / 480;
    }

    .service-a-col:nth-child(4n+2) .service-a-img-box img,
    .service-a-col:nth-child(4n+3) .service-a-img-box img {
        aspect-ratio: 450 / 480;
    }

    /* .service-a-col:nth-child(4n+2) .service-a-content-box,
    .service-a-col:nth-child(4n+3) .service-a-content-box {
        left: 50% !important;
        max-width: unset;
        width: 96%;
        --tw-translate-x: -50%;
    } */
}


.service-a-content-box .leading-normal {
    line-height: 1.2;
}

/* service a css end here  */