﻿
:root {
    --ihlp-green-bg: #8fa972; /* green strip */
    --ihlp-green: #1b5e20; /* numbers/title */
    --ihlp-text: #333333; /* labels */
}

/* SECTION BASE (white background behind cards) */
.ihlp-facts {
    background-color: transparent;   /*#fff;*/
    position: relative;
    overflow: visible; /* IMPORTANT for overlap */
    padding-bottom: 44px; /* space under cards */
}

.ihlp-facts__bg .div-statistic {
    position: absolute;
}
/* GREEN HEADER STRIP ONLY */
.ihlp-facts__bg {
    background: var(--ihlp-green-bg);
    padding: 44px 0 150px; /* extra bottom padding to allow overlap */
    position: relative;
    z-index: 1;
    margin-bottom:160px;
}

.ihlp-facts__title {
    text-align: center;
    color: var(--ihlp-text) !important;
    font-weight: bold;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    margin: 0;
    letter-spacing: .02em;
    padding-bottom: 15px;
}
.ihlp-facts__title:before{
    background:none!important;
}

/* CARDS WRAPPER PULLED UP OVER GREEN */
.ihlp-facts__cards {
    position: relative;
    z-index: 2; /* cards above green */
    /*margin-top: -115px*/; /* THIS creates the overlap */
    margin-top:0;
}

.ihlp-facts__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.ihlp-fact {
    background: #fff;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 12px 0 rgba(0,0,0,.12), 0 10px 22px rgba(0,0,0,.14);
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Icon holder top-left (fixed size so layout doesn’t shift even if image missing) */
.ihlp-fact__icon {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

    .ihlp-fact__icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.ihlp-fact__value {
    margin-top: 58px; /* space under icon */
    font-weight: bold;
    color: var(--ihlp-green);
    /*font-size: clamp(3.2rem, 3.6vw, 4.3rem);*/
    font-size: clamp(2.2rem, 2vw, 3rem);
    line-height: 1;
}

.ihlp-fact__label {
    margin-top: 12px;
    font-weight: 800;
    color: var(--ihlp-text);
    font-size: 1.25rem;
    line-height: 1.15;
}

.ihlp-fact__label--small {
    font-size: 1.05rem;
    line-height: 1.2;
    max-width: 260px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .ihlp-facts__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ihlp-facts__cards {
        /*margin-top: -95px;*/
        margin-top: 15px;
    }
    .ihlp-facts__bg .div-statistic{
        position:unset;
    }

    .ihlp-facts {
        padding-bottom:0;
    }
    .ihlp-facts__bg{
        padding-bottom:75px;
        margin-bottom:20px;
    }
}

@media (max-width: 768px) {
    /*.ihlp-facts__bg {
        padding-bottom: 130px;
    }*/

    .ihlp-facts__grid {
        /*grid-template-columns: repeat(2, minmax(0, 1fr));*/
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 16px;
    }

    .ihlp-facts__cards {
        /*margin-top: -90px;*/
    }

    .ihlp-fact {
        min-height: 225px;
    }
}

@media (max-width: 420px) {
    .ihlp-facts__grid {
        grid-template-columns: 1fr;
    }

    .ihlp-facts__cards {
       /* margin-top: -80px;*/
    }
}


