/**
 * Case Study Elementor Widgets
 * Hero + Header widget styles
 */

/* ==========================================================================
   SHARED
   ========================================================================== */

.mw-cs-hero__container,
.mw-cs-header__container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   MW CASE STUDY HERO
   ========================================================================== */

.mw-cs-hero {
    background-color: #0D0C33;
}

/* ---- Mobile (default) ---- */

.mw-cs-hero__desktop {
    display: none;
}

.mw-cs-hero__mobile {
    display: block;
}

.mw-cs-hero__mobile .mw-cs-hero__container {
    padding-top: 40px;
    padding-bottom: 30px;
}

.mw-cs-hero__category {
    color: #00C9FF;
    font-size: 14px;
    line-height: calc(28 / 14);
}

.mw-cs-hero__mobile .mw-cs-hero__title {
    color: #ffffff;
    font-size: 20px;
    line-height: calc(28 / 20);
    margin: 0 0 8px;
}

.mw-cs-hero__mobile .mw-cs-hero__tagline {
    color: #ffffff;
    font-size: 16px;
    line-height: calc(24 / 16);
}

.mw-cs-hero__featured-image {
    position: relative;
    overflow: hidden;
}

.mw-cs-hero__featured-image::after {
    display: block;
    content: '';
    padding-top: calc(231.72 / 375 * 100%);
}

.mw-cs-hero__featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* ---- Desktop (1024px+) ---- */

@media (min-width: 1024px) {

    .mw-cs-hero__mobile {
        display: none;
    }

    .mw-cs-hero__desktop {
        display: block;
    }

    .mw-cs-hero__desktop .mw-cs-hero__container {
        padding-top: 120px;
        padding-bottom: 35px;
    }

    .mw-cs-hero__desktop .mw-cs-hero__category {
        font-size: 16px;
        line-height: calc(22 / 16);
        margin-bottom: 10px;
    }

    .mw-cs-hero__desktop .mw-cs-hero__title {
        color: #ffffff;
        font-size: 60px;
        line-height: calc(70 / 60);
        margin: 0;
    }

    /* SVG Pattern Band */
    .mw-cs-hero__pattern-band {
        height: 350px;
        display: flex;
        justify-content: center;
        overflow-x: hidden;
    }

    .mw-cs-hero__pattern-left,
    .mw-cs-hero__pattern-right {
        height: 100%;
        width: 700px;
        background-repeat: repeat-x;
        background-size: auto 100%;
    }

    .mw-cs-hero__pattern-left {
        background-position: right center;
    }

    .mw-cs-hero__pattern-right {
        background-position: left center;
    }

    .mw-cs-hero__pattern-center {
        height: 100%;
        width: 1366px;
        flex-shrink: 0;
        position: relative;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
    }

    .mw-cs-hero__pattern-center .mw-cs-hero__tagline {
        width: 450px;
        height: 175px;
        position: absolute;
        top: 90px;
        right: 90px;
        color: #ffffff;
        font-size: 26px;
        line-height: calc(34 / 26);
        display: flex;
        justify-content: center;
        align-items: center;
    }
}


/* ==========================================================================
   MW CASE STUDY HEADER
   ========================================================================== */

.mw-cs-header {
    background-color: #2F31FC;
    padding-top: 50px;
    padding-bottom: 15px;
}

/* ---- Mobile (default) ---- */

.mw-cs-header__desktop {
    display: none;
}

.mw-cs-header__mobile {
    display: block;
}

.mw-cs-header__description {
    color: #ffffff;
    font-size: 20px;
    line-height: calc(28 / 20);
    margin-bottom: 20px;
}

.mw-cs-header__client-logo {
    margin-bottom: 40px;
}

.mw-cs-header__client-logo img {
    max-width: 180px;
    height: auto;
}

.mw-cs-header__divider {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Stats */
.mw-cs-header__stats {
    padding-top: 40px;
}

.mw-cs-header__stat {
    padding-bottom: 35px;
}

.mw-cs-header__stat-number {
    color: #ffffff;
    font-size: 80px;
    line-height: 1;
    display: flex;
    align-items: flex-end;
}

.mw-cs-header__stat-prefix,
.mw-cs-header__stat-append {
    line-height: 1.05;
}

.mw-cs-header__stat-desc {
    color: #ffffff;
    font-size: 16px;
    line-height: calc(24 / 16);
}

.mw-cs-header__small-desc {
    color: #ffffff;
    font-size: 10px;
    line-height: calc(14 / 10);
    margin-bottom: 20px;
}

/* Team — Mobile */
.mw-cs-header__team-title {
    color: #ffffff;
    font-size: 16px;
    line-height: calc(24 / 16);
    margin-top: 40px;
    margin-bottom: 20px;
}

.mw-cs-header__team-grid--mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mw-cs-header__team-card {
    padding-bottom: 35px;
}

.mw-cs-header__team-card a {
    text-decoration: none;
    color: inherit;
}

.mw-cs-header__team-image {
    position: relative;
    margin-bottom: 18px;
    overflow: hidden;
}

.mw-cs-header__team-image::after {
    display: block;
    content: '';
    padding-top: calc(99.64 / 155 * 100%);
}

.mw-cs-header__team-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.mw-cs-header__team-name {
    color: #ffffff;
    font-size: 16px;
    line-height: calc(20 / 16);
}

.mw-cs-header__team-position {
    color: #ffffff;
    font-size: 14px;
    line-height: calc(20 / 14);
}


/* ---- Desktop (1024px+) ---- */

@media (min-width: 1024px) {

    .mw-cs-header {
        padding-top: 75px;
    }

    .mw-cs-header__mobile {
        display: none;
    }

    .mw-cs-header__desktop {
        display: block;
        padding-bottom: 20px;
    }

    .mw-cs-header__columns {
        display: grid;
        grid-template-columns: 9fr 1fr 2fr;
        gap: 0;
    }

    /* Left column */
    .mw-cs-header__left {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .mw-cs-header__desktop .mw-cs-header__description {
        font-size: 26px;
        line-height: calc(34 / 26);
        margin-bottom: 25px;
    }

    .mw-cs-header__desktop .mw-cs-header__client-logo {
        margin-bottom: 40px;
    }

    .mw-cs-header__desktop .mw-cs-header__stats {
        display: flex;
        justify-content: space-between;
        padding-top: 65px;
    }

    .mw-cs-header__desktop .mw-cs-header__stat {
        width: 50%;
        padding-bottom: 0;
    }

    .mw-cs-header__desktop .mw-cs-header__stat-number {
        font-size: 130px;
        line-height: 1;
    }

    .mw-cs-header__desktop .mw-cs-header__stat-prefix,
    .mw-cs-header__desktop .mw-cs-header__stat-append {
        display: inline-block;
        line-height: 1.1;
    }

    .mw-cs-header__desktop .mw-cs-header__stat-desc {
        font-size: 20px;
        line-height: calc(28 / 20);
    }

    .mw-cs-header__desktop .mw-cs-header__small-desc {
        font-size: 11px;
        line-height: calc(15 / 11);
    }

    /* Vertical divider */
    .mw-cs-header__vdivider {
        display: flex;
        justify-content: center;
    }

    .mw-cs-header__vline {
        width: 1px;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.8);
    }

    /* Right column — Team */
    .mw-cs-header__desktop .mw-cs-header__team-title {
        font-size: 20px;
        line-height: calc(28 / 20);
        margin-top: 0;
        margin-bottom: 15px;
    }

    .mw-cs-header__desktop .mw-cs-header__team-grid {
        display: flex;
        flex-direction: column;
    }

    .mw-cs-header__desktop .mw-cs-header__team-image::after {
        padding-top: calc(114.38 / 176.98 * 100%);
    }

    .mw-cs-header__desktop .mw-cs-header__team-name {
        font-size: 20px;
        line-height: calc(28 / 20);
    }

    .mw-cs-header__desktop .mw-cs-header__team-position {
        font-size: 16px;
        line-height: calc(22 / 16);
    }

    .mw-cs-header__team-card--last {
        padding-bottom: 20px;
    }
}


/* ==========================================================================
   MW CASE STUDY CONTENT
   ========================================================================== */

.mw-cs-content {
    /* Wrapper for legacy page_sections output */
}

.mw-cs-content .page-section {
    /* Legacy page sections render inside here */
}
