@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Minimalist / Clean Light Setup */
.ifag-counter-wrapper {
    background-color: #ffffff;
    border: 1px solid #e5e7eb; /* Soft light gray border */
    border-radius: 20px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Subtle initial shadow */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    min-height: 250px;
}

/* Subtle accent line at the top revealing on hover */
.ifag-counter-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background-color: #D21E31; /* IFAG Red */
    opacity: 0;
    transform: scaleX(0.8);
    transition: all 0.4s ease;
}

.ifag-counter-wrapper:hover::before {
    opacity: 1; 
    transform: scaleX(1); /* Expands out smoothly */
}

/* Elevation on hover */
.ifag-counter-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #ffffff; /* Fade border into the shadow */
}

/* Clean Icon Presentation */
.ifag-counter-icon {
    width: 64px; 
    height: 64px;
    background-color: rgba(210, 30, 49, 0.05); /* Very soft red background */
    border-radius: 18px; /* Modern squircle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #D21E31; /* IFAG Red */
    font-size: 26px;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.ifag-counter-icon svg, .ifag-counter-icon i {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.ifag-counter-wrapper:hover .ifag-counter-icon {
    transform: translateY(-3px) scale(1.05); /* Gentle lift */
    background-color: rgba(210, 30, 49, 0.1); 
}

/* Layout for the numbers */
.ifag-counter-number-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
}

/* Clean, crisp numbers */
.ifag-counter-value {
    color: #111827; /* Near black for maximum contrast and clean look */
    font-size: 58px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
}

/* Prefix and Suffix styling (+, %, €, etc) */
.ifag-counter-prefix, .ifag-counter-suffix {
    font-size: 32px;
    font-weight: 700;
    color: #D21E31; /* Bright Red punch */
    margin: 0 6px;
}

/* Minimalist bottom Title */
.ifag-counter-title {
    color: #6b7280; /* Soft slate gray */
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ifag-counter-value {
        font-size: 46px;
    }
    .ifag-counter-prefix, .ifag-counter-suffix {
        font-size: 26px;
    }
    .ifag-counter-wrapper {
        padding: 35px 20px;
        min-height: 220px;
    }
}
