:root {
    --primary: #0f2f88;
    --primary-hover: #2b0ae6;
    --error: #dc3545;
    --text-primary: #2c3e50;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}


/*** Counter Facts Start ***/
.counter-facts {
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0.8));
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

.counter-facts .counter {
    position: relative;
    text-align: center;
    width: 200px;
    min-height: 215px;
    padding: 10px 15px;
    margin: 0 auto;
    border-radius: 100px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.2);
    background: var(--bg-white);
}

.counter-facts .counter:before {
    content: "";
    position: absolute;
    height: 105px;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 10px 10px 0 0;
    background-color: var(--text-secondary);

}

.counter-facts .counter .counter-icon {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 10px 10px 0 0;
    transform: translateY(-20px);
    font-size: 50px;
    line-height: 90px;
    color: var(--text-secondary);
    background: rgba(1, 143, 252, 0.5);
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

.counter-facts .counter .counter-icon:before {
    content: "";
    position: absolute;
    width: 120px;
    height: 90px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    background: #1062b9;
    z-index: -1;
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

.counter-facts .counter:hover .counter-icon i {
    transform: rotate(360deg);
    transition: all 0.3s ease;
}

.counter-facts .counter h3 {
    color: var(--primary);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}

.counter-facts .counter .counter-value {
    font-size: 30px;
    font-weight: 700;
    display: block;
    color: var(--text-secondary);
}

@media screen and (max-width: 1200px) {
    .counter-facts .counter {
        margin-bottom: 40px;
    }
}

.counter-icon {
    background-color: #007bff;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.counter-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.counter-value {
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
}

.counter-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6c757d;
}

.counter-facts {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
    width: 100%;
}

@media (max-width: 576px) {
    .counter-facts {
        min-height: 30vh;
    }

    .counter-facts .row {
        flex-direction: column;
    }

    .counter-facts .col {
        width: 100%;
        padding: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .counter-facts {
        min-height: 30vh;
    }

    .counter-facts .col {
        width: 50%;
        padding: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .counter-facts {
        min-height: 40vh;
    }

    .counter-facts .col {
        width: 33.33%;
        padding: 1rem;
    }
}

@media (min-width: 1200px) {
    .counter-facts {
        min-height: 20vh;
    }

    .counter-facts .col {
        width: 25%;
        padding: 1rem;
    }
}

/* Global Styles */
.stats-container {
    padding-top: 80px;
}

.stat-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.stat-box {
    background-color: var(--primary);
    padding: 30px;
    border: 5px solid var(--border);
    /* subtle semi-transparent border */
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    background: var(--primary-hover);
    /* subtle white background */
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    /* 🔸 makes it circular */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;

    transition: color 0.3s ease;
}

.stat-box:hover .stat-icon {
    color: #ffb300;
    /* Highlight color on hover */
}

.stat-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-top: 20px;
    letter-spacing: 1px;
}

.stat-box:hover .stat-content h3 {
    color: #ffb300;
}

/* Subtle Background Effect for Box */
.stat-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    /* background: var(--primary); */
    border-radius: 15px;
    z-index: -1;
    transition: all 0.3s ease;
}


.stat-box:hover::before {
    width: 130%;
    height: 130%;
}

.stat-icon i {
    background-color: var(--primary-hover);
    transition: transform 0.6s ease, color 0.3s ease;
    animation: iconPulse 3s infinite ease-in-out;
}

.stat-box:hover .stat-icon i {
    transform: rotate(360deg) scale(1.1);
    color: #ffb300;
}

@keyframes iconPulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
        transform: scale(1.05);
    }
}


/* Responsive Adjustments */
@media (max-width: 576px) {
    .stat-box {
        padding: 20px;
    }

    .stat-content h3 {
        font-size: 18px;
    }
}


/*** Section Title Start ***/
.section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--primary);
}

.section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: -6px;
    margin-left: -100px;
    border: 1px solid var(--text-secondary) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: -8px;
    margin-left: -50px;
    border: 1px solid var(--primary) !important;
}

.matter-title {

    color: var(--primary);
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--primary);
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: -8px;
    margin-right: -100px;
    border: 1px solid var(--primary) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: -6px;
    margin-right: -50px;
    border: 1px solid #064a70 !important;
}

#features {
    padding: 50px 0;
    text-align: center;
}

#features .feature {
    margin: 15px 0;
    padding: 0 20px;
    transition: all .2s ease-in-out;
}

#features .feature .feature-icon {
    background: url('/images/icons-bg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    width: 125px;
    height: 125px;
}

#features .feature .feature-icon svg {
    position: relative;
    top: 40px;
}

#features .feature h4 {
    margin: 25px 0;
}

#features .feature:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.feature-icon-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-icon {
    color: #007bff;
}

.feature-icon i {
    font-size: 2rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
    margin: 0;
}

.ml-3 {
    margin-left: 10px;
}

.feature-icon-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fea-icon {
    color: #007bff;
    background-color: var(--border);
    border-radius: 50%;
    padding: 3px;
}

.feature-icon i {
    font-size: 2rem;
}