.service-box{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 0 40px;
    background: var(--bg-white);
}

.service-box > h2{
    margin: 0 0 26px 0;
    text-align: center;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.service-box-base{
    width: min(1200px, 92%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* Card */
.box-card{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid #eef2f7;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
    min-height: 420px;
}

/* Accent line (teal) */
.box-card::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 6px;
    width: 100%;
    background: rgba(58, 168, 163, 0.55); /* #3AA8A3 */
    opacity: 0.35;
}

/* Soft glow on hover */
.box-card::after{
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 30% 10%, rgba(58,168,163,0.18), transparent 55%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.box-card:hover{
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(58,168,163,0.35);
}

.box-card:hover::after{
    opacity: 1;
}

/* Image area */
.box-card-content{
    width: 100%;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    min-height: 260px;
}

.card-img{
    width: min(300px, 100%);
    height: auto;
    display: block;
    transform: translateY(0);
    transition: transform .25s ease;
}

.box-card:hover .card-img{
    transform: translateY(-4px);
}

/* Text content */
.box-link-content{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px 6px 10px;
}

.box-link-content p:first-child{
    color: var(--text-main);
}

.box-link-content p:last-child{
    color: var(--text-muted);
    line-height: 1.55;
}

/* Optional old unused classes kept safe */
.service-card,
.service-card-content,
.box-link,
.bottom-img{
    /* not used by this HTML but kept if you re-use elsewhere */
}

/* Responsive */
@media (max-width: 1100px){
    .service-box-base{
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .box-card{
        min-height: unset;
    }
    .box-card-content{
        min-height: 220px;
    }
}

@media (max-width: 520px){
    .box-card{
        padding: 16px;
        border-radius: 18px;
    }
    .box-card-content{
        padding: 14px;
        border-radius: 16px;
    }
}
