@import url('https://v1.fontapi.ir/css/Dana');

.elementor-widget-stats_counter .stats-counter-widget {
    display: block;
    width: 100%;
}

.elementor-widget-stats_counter .hero-section {
    background-color: #26544B;
    width: 100%;
    max-width: 1920px;
    height: 276px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.elementor-widget-stats_counter .container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.elementor-widget-stats_counter .content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.elementor-widget-stats_counter .content.animated {
    opacity: 1;
    transform: translateY(0);
}

.elementor-widget-stats_counter .stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.elementor-widget-stats_counter .stat-item {
    flex: 1;
    text-align: center;
}

.elementor-widget-stats_counter .stat-number {
    font-family: 'Dana', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    line-height: 1;
}

.elementor-widget-stats_counter .stat-text {
    font-family: 'Dana', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.2;
}

/* RTL Support */
.elementor-widget-stats_counter[dir="rtl"] .hero-section,
.rtl .elementor-widget-stats_counter .hero-section,
.elementor-widget-stats_counter .hero-section[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .elementor-widget-stats_counter .hero-section {
        height: 300px;
    }

    .elementor-widget-stats_counter .stats-container {
        gap: 100px;
        max-width: 1000px;
    }

    .elementor-widget-stats_counter .stat-number {
        font-size: 3.5rem;
    }

    .elementor-widget-stats_counter .stat-text {
        font-size: 1.2rem;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .elementor-widget-stats_counter .hero-section {
        height: 276px;
    }

    .elementor-widget-stats_counter .stats-container {
        gap: 80px;
        max-width: 900px;
    }

    .elementor-widget-stats_counter .stat-number {
        font-size: 3rem;
    }

    .elementor-widget-stats_counter .stat-text {
        font-size: 1.1rem;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .elementor-widget-stats_counter .hero-section {
        height: 250px;
    }

    .elementor-widget-stats_counter .container {
        padding: 0 30px;
    }

    .elementor-widget-stats_counter .stats-container {
        gap: 50px;
        max-width: 700px;
    }

    .elementor-widget-stats_counter .stat-number {
        font-size: 2.5rem;
    }

    .elementor-widget-stats_counter .stat-text {
        font-size: 0.95rem;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .elementor-widget-stats_counter .hero-section {
        height: 220px;
    }

    .elementor-widget-stats_counter .container {
        padding: 0 25px;
    }

    .elementor-widget-stats_counter .stats-container {
        gap: 30px;
        max-width: 500px;
    }

    .elementor-widget-stats_counter .stat-number {
        font-size: 2rem;
    }

    .elementor-widget-stats_counter .stat-text {
        font-size: 0.85rem;
    }
}

/* Mobile Large (480px - 575px) */
@media (max-width: 575px) and (min-width: 480px) {
    .elementor-widget-stats_counter .hero-section {
        height: 200px;
    }

    .elementor-widget-stats_counter .container {
        padding: 0 20px;
    }

    .elementor-widget-stats_counter .stats-container {
        gap: 20px;
        max-width: 420px;
    }

    .elementor-widget-stats_counter .stat-number {
        font-size: 1.8rem;
    }

    .elementor-widget-stats_counter .stat-text {
        font-size: 0.75rem;
    }
}

/* Mobile Small (Below 480px) */
@media (max-width: 479px) {
    .elementor-widget-stats_counter .hero-section {
        height: 180px;
    }

    .elementor-widget-stats_counter .container {
        padding: 0 15px;
    }

    .elementor-widget-stats_counter .stats-container {
        gap: 15px;
        max-width: 350px;
    }

    .elementor-widget-stats_counter .stat-number {
        font-size: 1.5rem;
    }

    .elementor-widget-stats_counter .stat-text {
        font-size: 0.7rem;
    }
}

/* Extra Small Mobile (Below 360px) */
@media (max-width: 359px) {
    .elementor-widget-stats_counter .hero-section {
        height: 160px;
    }

    .elementor-widget-stats_counter .container {
        padding: 0 10px;
    }

    .elementor-widget-stats_counter .stats-container {
        gap: 10px;
        max-width: 300px;
    }

    .elementor-widget-stats_counter .stat-number {
        font-size: 1.3rem;
    }

    .elementor-widget-stats_counter .stat-text {
        font-size: 0.65rem;
    }
}