/* ================================
   Stats 1 Widget
================================ */

.ycstats1-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

/* ================================
   Left Image
================================ */

.ycstats1-left {
    position: sticky;
    top: 110px;
    flex: 1 1 520px;
    min-width: 0;
    max-width: 590px;
}

.ycstats1-img {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgb(0 0 0 / 7%);
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 18%, rgb(255 111 0 / 8%) 0, transparent 34%),
        linear-gradient(135deg, #fff3df, #fffaf2);
    box-shadow: 0 18px 50px rgb(0 0 0 / 8%);
}

.ycstats1-img::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 20%) 100%);
    opacity: .65;
}

.ycstats1-img::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset-inline-end: -62px;
    top: -62px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgb(255 255 255 / 18%);
    pointer-events: none;
}

.ycstats1-img img {
    width: 100%;
    height: auto;
    min-height: 460px;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    transition:
        transform .55s ease,
        filter .55s ease;
}

.ycstats1-img:hover img {
    transform: scale(1.06);
    filter: saturate(1.06) contrast(1.03);
}

/* ================================
   Right Content
================================ */

.ycstats1-right {
    flex: 1 1 420px;
    min-width: 0;
}

.ycstats1-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* ================================
   Stat Card
================================ */

.ycstats1-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    max-width: none;
    padding: 26px 22px;
    border: 1px solid rgb(0 0 0 / 7%);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 0, rgb(255 111 0 / 6%) 0, transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
    box-shadow: 0 14px 38px rgb(0 0 0 / 6%);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.ycstats1-card::before {
    content: "";
    position: absolute;
    inset-block: 22px;
    inset-inline-start: 0;
    z-index: 2;
    width: 4px;
    border-radius: 999px;
    background: var(--uicolor);
    opacity: 0;
    transition: opacity .25s ease;
}

.ycstats1-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-end: -58px;
    top: -58px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgb(255 111 0 / 7%);
    pointer-events: none;
    transition:
        transform .32s ease,
        opacity .32s ease;
}

.ycstats1-card:hover {
    transform: translateY(-6px);
    border-color: rgb(255 111 0 / 16%);
    box-shadow: 0 26px 62px rgb(0 0 0 / 12%);
}

.ycstats1-card:hover::before {
    opacity: 1;
}

.ycstats1-card:hover::after {
    transform: scale(1.12);
}

/* ================================
   Card Text
================================ */

.ycstats1-num {
    position: relative;
    z-index: 3;
    margin: 0 0 10px;
    color: var(--uicolor);
    font-family: var(--f-number, inherit);
    font-size: 44px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.ycstats1-title {
    position: relative;
    z-index: 3;
    margin: 0 0 10px;
    color: var(--primary-text);
    font-size: 20px;
    line-height: 1.45;
    font-weight: 900;
}

.ycstats1-desc {
    position: relative;
    z-index: 3;
    margin: 0;
    color: var(--secondarytext);
    font-size: 16px;
    line-height: 1.85;
    font-weight: 500;
}

/* ================================
   Responsive
================================ */

@media (max-width: 1050px) {
    .ycstats1-wrap {
        gap: 22px;
    }

    .ycstats1-left,
    .ycstats1-right {
        min-width: 0;
    }

    .ycstats1-left {
        max-width: 100%;
    }

    .ycstats1-img img {
        min-height: 380px;
    }

    .ycstats1-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .ycstats1-num {
        font-size: 38px;
    }

    .ycstats1-title {
        font-size: 18px;
    }

    .ycstats1-desc {
        font-size: 15px;
        line-height: 1.8;
    }
}

@media (max-width: 1024px) {
    .ycstats1-wrap {
        flex-direction: column;
    }

    .ycstats1-left,
    .ycstats1-right {
        position: relative;
        top: 0;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }

    .ycstats1-img img {
        width: 100%;
        height: auto;
        min-height: 320px;
        display: block;
    }
}

@media (max-width: 720px) {
    .ycstats1-wrap {
        gap: 18px;
    }

    .ycstats1-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ycstats1-img {
        border-radius: 22px;
    }

    .ycstats1-img img {
        min-height: 240px;
    }

    .ycstats1-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .ycstats1-card:hover {
        transform: translateY(-3px);
    }

    .ycstats1-num {
        font-size: 32px;
    }

    .ycstats1-title {
        font-size: 17px;
    }

    .ycstats1-desc {
        font-size: 14px;
        line-height: 1.75;
    }
}

@media (max-width: 420px) {
    .ycstats1-wrap {
        gap: 16px;
    }

    .ycstats1-cards {
        gap: 10px;
    }

    .ycstats1-img {
        border-radius: 18px;
    }

    .ycstats1-img img {
        min-height: 200px;
    }

    .ycstats1-card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .ycstats1-num {
        font-size: 29px;
    }

    .ycstats1-title {
        font-size: 16px;
    }

    .ycstats1-desc {
        font-size: 13.5px;
    }
}
