/* Numbers Section Styles */
.numbers-section {
    position: relative;
    height: 820px;
    /* display: flex;
    align-items: center; */
    overflow: hidden;
    @media(max-width:1440px){
        height: 750px;    
    }
    @media(max-width:1280px){
        height: auto;    
        min-height: 660px;
    }
}

.numbers-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.numbers-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.numbers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

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

@media (max-width: 768px) {
    .numbers-content {
        text-align: center;
        margin-bottom: 40px;
    }
}

.numbers-tabs-section {
    position: relative;
    z-index: 2;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .numbers-tabs-section {
        margin-top: 40px;
    }
}

/* Custom Tab Styles */
.numbers-nav-tabs {
    border: none;
    margin-bottom: 60px;
    gap: 40px;
}

@media (max-width: 768px) {
    .numbers-nav-tabs {
        gap: 20px;
        margin-bottom: 40px;
        justify-content: center;
    }
}
@media (max-width: 576px) {
    .numbers-nav-tabs {
        gap: 15px;
        margin-bottom: 30px;
    }
}

.numbers-nav-tabs .nav-item {
    position: relative;
}

.numbers-nav-tabs .nav-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-type2);
    font-size: 21px;
    font-weight: 400;
    padding: 0 0 8px 0;
    border-radius: 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .numbers-nav-tabs .nav-link {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .numbers-nav-tabs .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 16px;
    }
}

.numbers-nav-tabs .nav-link.active,
.numbers-nav-tabs .nav-link:hover {
    color: var(--white);
    background: none;
    border: none;
}

.numbers-nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
}

@media (max-width: 576px) {
    .numbers-nav-tabs .nav-link.active::after {
        display: none;
    }
}

/* Numbers Stats Styles */
.numbers-stats-row {
    position: relative;
}

.number-stat-item {
    text-align: center;
    padding: 20px 15px;
    position: relative;
}

@media (max-width: 768px) {
    .number-stat-item {
        margin-bottom: 0px;
    }
}

.number-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
}

@media (max-width: 991px) {
    .number-stat-item:not(:last-child)::after {
        display: none;
    }
}

.stat-number {
    color: var(--white);
    font-family: var(--font-type2);
    font-size: 81px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 10px;
}
[dir="rtl"] .stat-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'FS Alvar' !important;
}
@media (max-width: 1200px) {
    .stat-number {
        font-size: 70px;
    }
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 60px;
    }
}

@media (max-width: 576px) {
    .stat-number {
        font-size: 50px;
    }
}

.stat-unit {
    font-size: 0.6em;
    opacity: 0.9;
}

.stat-label {
    color: var(--white);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .stat-label {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .stat-label {
        font-size: 16px;
    }
}

/* Counter Animation Effects */
[data-counter] {
    transition: all 0.3s ease;
}

.counter-completed {
    transform: scale(1.05);
    animation: pulse 0.6s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* RTL Support */
[dir="rtl"] .numbers-content {
    @media (max-width: 768px) {
        text-align: center;
    }
}

[dir="rtl"] .numbers-nav-tabs {
    @media (max-width: 768px) {
        justify-content: center;
    }
}

[dir="rtl"] .number-stat-item:not(:last-child)::after {
    right: auto;
    left: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .numbers-stats-row .col-md-6:nth-child(2n) .number-stat-item::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .numbers-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .numbers-stats-row .col-12 {
        margin-bottom: 20px;
    }
    
    .numbers-stats-row .col-12:last-child {
        margin-bottom: 0;
    }
}
