﻿/* Default card */
#home-solutions .home-box {
    background: #f7f8f9;
    border: 1px solid #e3e7ea;
    border-top: 3px solid var(--primary-green);
    box-shadow: 0 2px 10px rgba(44, 73, 100, 0.08);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    #home-solutions .home-box:hover {
        background: #d9d9d9;
        border-top: 3px solid var(--primary-green);
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(44, 73, 100, 0.14);
    }
        /* Keep title and description readable */
        #home-solutions .home-box:hover h4,
        #home-solutions .home-box:hover p,
        #home-solutions .home-box:hover .home-box-header-link {
            color: var(--primary-dark) !important;
        }

    #home-solutions .home-box h4 {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
        margin: 0 0 14px;
        min-height: 48px;
    }


#home-solutions .solution-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    isolation: isolate;
}

    #home-solutions .solution-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin: 0;
    }

#home-solutions .solution-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: rgba(8, 54, 84, .86);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 15px;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

#home-solutions .solution-overlay-content {
    transform: translateY(10px);
    transition: transform .3s ease;
}

#home-solutions .solution-overlay strong {
    display: block;
    color: #fff;
    font-size: clamp(14px, 1.4vw, 20px);
    line-height: 1.25;
    margin-bottom: 7px;
}

#home-solutions .solution-overlay span {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
}

#home-solutions .home-box:hover .solution-overlay,
#home-solutions .home-box:focus-within .solution-overlay {
    opacity: 1;
}

#home-solutions .home-box:hover .solution-overlay-content,
#home-solutions .home-box:focus-within .solution-overlay-content {
    transform: translateY(0);
}

#home-solutions .home-box .home-box-text,
#home-solutions .home-box:hover .home-box-text {
    color: #52636d !important;
    font-size: 14px;
    line-height: 1.5;
    margin: 15px 0;
}

#home-solutions .solution-details {
    display: block;
    margin-top: auto;
    padding: 9px 12px;
    background: #fff;
    color: #195e70;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color .3s ease, color .3s ease;
}

    #home-solutions .solution-details .solution-arrow {
        display: inline-block;
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: max-width .3s ease, opacity .3s ease;
    }

    #home-solutions .home-box:hover .solution-details,
    #home-solutions .home-box:focus-within .solution-details,
    #home-solutions .solution-details:hover {
        background: #155e70;
        color: #fff;
    }

#home-solutions .home-box:hover .solution-arrow,
#home-solutions .home-box:focus-within .solution-arrow {
    max-width: 25px;
    opacity: 1;
}

.statistic .count-box i {
    color: var(--primary-dark);
    font-size: 55px;
}

.statistic .cap,
.statistic .sub-cap,
.statistic .count-box i {
    color: var(--primary-dark) !important;
}
