/* css/home-stats.css */
.home-stats-sec {
    position: relative;
    padding: 0 0 50px 0;
    z-index: 1;
}

.stats-top-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--rblight);
    /* using the light background from style.css */
    z-index: -1;
}

/* Left Card: Customer Satisfaction */
.cust-satis {
    position: relative;
    border-radius: 4px;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    color: var(--rbwhite);
    background-size: cover;
    background-position: center;
    z-index: 1;
    overflow: hidden;
    min-height: 280px;
    height: 100%;
}

.cust-satis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #091d3e;
    /* Dark blue overlay */
    z-index: -1;
    opacity: 0.6;
}

.cust-satis .progressbar {
    margin-right: 30px;
    flex-shrink: 0;
}

.cust-satis .circle {
    position: relative;
    width: 160px;
    height: 160px;
}

.cust-satis .circle canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.cust-satis .circle strong {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    color: var(--rbwhite);
}

.cust-satis .content {
    position: relative;
    z-index: 2;
}

.cust-satis .content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--rbwhite);
}

.cust-satis .content p {
    font-size: 15px;
    line-height: 1.8;
    color: #d1d5db;
    margin: 0;
}

/* Right Card */
.stat-card {
    border-radius: 4px;
    padding: 40px 40px;
    position: relative;
    overflow: hidden;
    color: var(--rbwhite);
    min-height: 280px;
}

.stat-card-right {
    background: linear-gradient(134deg, #1152df 0%, #8800ff 100%);
}

.stat-particle-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/particle.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    z-index: 1;
    opacity: 0.6;
}

.stat-card-right .stat-card-content {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    color: var(--rbwhite);
}

.stat-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--rbwhite);
}

.stat-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #d1d5db;
}

/* Responsive */
@media (max-width: 991px) {
    .stat-card {
        padding: 30px 20px;
    }

    .cust-satis {
        padding: 30px 20px;
    }

    .cust-satis .circle {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 767px) {
    .cust-satis {
        flex-direction: column;
        text-align: center;
    }

    .cust-satis .progressbar {
        margin-right: 0 !important;
        margin-bottom: 25px;
    }

    .stat-card-right .stat-card-content {
        text-align: center;
    }

    .stat-number {
        font-size: 46px;
    }
}