/* =============================================
   WP Stats Story Section - Main Styles
   ============================================= */

/* Section Container */
.umu-counter-section {
    display: flex !important;
    align-items: center !important;
    gap: 60px !important;
    padding: 100px 30px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
    background-color: #ffffff;
    font-family: var(--theme-font-body, inherit);
    color: var(--theme-text-color, #333);
}

/* ── Content ── */
.umu-counter-content {
    flex: 1.2;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.umu-counter-content h2 {
    font-size: 4em;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 30px;
    font-family: var(--theme-font-heading, inherit);
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.umu-counter-content p {
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 50px;
    margin-left: 10px;
    margin-right: 10px;
    max-width: 90%;
    color: #4a4a4a;
    animation: slideInLeft 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* ── Stats Grid ── */
.umu-counter-stats {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;

}

.umu-stat-item {
    text-align: left;
    animation: slideInUp 0.8s ease-out forwards;
}

.umu-stat-item:nth-child(2) { animation-delay: 0.2s; }
.umu-stat-item:nth-child(3) { animation-delay: 0.4s; }

.umu-stat-number {
    display: block;
    font-size: 3.8em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    color: #ff0000;
}

.umu-stat-label {
    font-size: 1.1em;
    font-weight: 600;
    color: #222;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Image Collage ── */
.umu-counter-collage {
    flex: 1;
    position: relative;
    height: 600px;
    order: -1;
}

.umu-collage-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.umu-collage-img {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.umu-collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-1 {
    top: 0;
    left: 0;
    width: 75%;
    height: 55%;
    border-radius: 100px 0 100px 0;
    z-index: 1;
}

.img-2 {
    bottom: 50px;
    right: 0;
    width: 55%;
    height: 55%;
    border-radius: 0 100px 0 100px;
    border: 15px solid #ffffff;
    z-index: 3;
}

.img-3 {
    bottom: 0;
    left: 0;
    width: 45%;
    height: 85%;
    border-radius: 0 0 0 100px;
    z-index: 0;
}

/* =============================================
   Responsive
   ============================================= */

/* Tablet */
@media (max-width: 1280px) {
    .umu-counter-collage {
        height: 500px;
    }

    .img-1 {
        width: 70%;
        height: 55%;
    }

    .img-2 {
        width: 55%;
        height: 55%;
        border: none;
    }

    .img-3 {
        width: 45%;
        height: 80%;
    }
}

/* Small Tablet */
@media (max-width: 1100px) {
    .umu-counter-section {
        flex-direction: column;
        padding: 60px 30px;
        text-align: center;
    }

    .umu-counter-content {
        margin-bottom: 40px;
    }

    .umu-counter-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .umu-counter-stats {
        justify-content: center;
    }

    .umu-counter-collage {
        width: 100%;
        max-width: 600px;
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .umu-counter-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 0;
    }

    .umu-counter-content {
        width: 100%;
    }

    .umu-counter-content h2 {
        font-size: 2.2em;
        margin-bottom: 20px;
    }

    .umu-counter-content p {
        font-size: 0.95em;
        line-height: 1.6;
        margin-bottom: 30px;
        max-width: 100%;
        margin-left: 10px;
        margin-right: 10px;
    }

    .umu-counter-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 30px;
        width: 100%;
    }

    .umu-stat-item {
        text-align: center;
        flex: 0 1 auto;
    }

    .umu-stat-number {
        font-size: 2.5em;
    }

    /* Improved collage for mobile */
    .umu-counter-collage {
        width: 100%;
        height: 380px;
        margin-top: 30px;
    }

    .umu-collage-container {
        width: 100%;
        height: 100%;
    }

    .img-1 {
        width: 65%;
        height: 60%;
        border-radius: 40px 0 40px 0;
        top: 0;
        left: 0;
    }

    .img-2 {
        width: 52%;
        height: 50%;
        border-radius: 0 40px 0 40px;
        border: 8px solid #ffffff;
        bottom: 10px;
        right: 0;
    }

    .img-3 {
        width: 45%;
        height: 75%;
        border-radius: 0 0 0 40px;
        bottom: 0;
        left: 0;
    }
}