@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aboreto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.mariposa-case-study-section {
    padding: 120px 0;
}

.mariposa-case-study-h2 {
    font-size: 64px;
    font-weight: 500;
    font-family: "Baloo 2", sans-serif;
    background: linear-gradient(90deg, #EE71C5 20.4%, #4137FF 84.39%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.mariposa-case-study-h3 {
    font-size: 48px;
    font-weight: 500;
    font-family: "Baloo 2", sans-serif;
    line-height: 100%;
}

.mariposa-case-study-para1 {
    font-family: "Baloo 2", sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #FFFFFF;
}


.font-wt-400 {
    font-weight: 400 !important;
}

.font-wt-500 {
    font-weight: 500 !important;
}

.font-wt-600 {
    font-weight: 600 !important;
}

.font-wt-700 {
    font-weight: 700 !important;
}


/* hero section style ------------------------------------------------- */


.mariposa-hero-section {
    background-color: #0A0404;
    background-image: url('./img/mariposa-hero-bg-bannerr.webp');
    padding-top: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    height: auto;
}

@media (min-width: 992px) {
    .mariposa-hero-section {
        height: 100vh;
    }
}

@media (max-width: 575.98px) {
    .mariposa-hero-section {
        height: 100vh;
    }
}

.mariposa-case-study-hero-h1 {
    font-weight: 400;
    font-size: 32px;
    line-height: 137%;
    letter-spacing: 0%;
    font-family: "Baloo 2", sans-serif;
    color: #1A1A1A;
}

.mariposa-hero-content {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mariposa-hero-banner-container {
    position: absolute;
    bottom: -140px;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    padding-right: 100px;
}


@media (max-width: 991.98px) {
    .mariposa-hero-banner-container {
        position: relative;
        bottom: auto;
        padding-right: 0;
        height: auto;
        bottom: 0px;
        padding-right: 0px;
    }

    .mariposa-case-study-hero-h1 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .mariposa-hero-section {
        background-color: #ECECEC;
        background-image:
            url('./img/mariposa-hero-banner-mobile.webp'),
            linear-gradient(182.26deg, #ECECEC 1.9%, #E8F2FF 104.08%);
        background-size: cover, cover;
        background-position: center, center;
        background-repeat: no-repeat, no-repeat;
    }

    .mariposa-hero-content {
        min-height: auto;
        margin-bottom: 0px !important;
    }

    .mariposa-logo {
        width: 60% !important;
    }

}

/* overview section style --------------------------------------------- */

.mariposa-overview-content {
    max-width: 1040px;
    margin-inline: auto;
    position: relative;
}

.mariposa-overview-section .mariposa-case-study-h3 {
    background: linear-gradient(164.81deg, #AF59F6 22.81%, #0090FF 83.99%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.mariposa-overview-section {
    background-color: #FFFFFF;
    position: relative;
    z-index: 2;
}

.mariposa-left-quote {
    position: absolute;
    left: -20px;
    top: -60px;
}

.mariposa-right-quote {
    position: absolute;
    right: 220px;
    bottom: -50px;
}

/* Insights section style start ---------------------------------------- */

.mariposa-insights-image {
    position: absolute;
    right: 40px;
    top: 50px;
}

.mariposa-insights-section {
    background: radial-gradient(77.35% 77.35% at 51.32% 7.29%, #62E1FF 0%, #00BFEB 100%)
}

.mariposa-insights-content {
    margin-top: 100px;
    display: flex;
    gap: 50px;
    align-items: start;
    justify-content: center;
}

.mariposa-insights-content .insights-content-text-1 {
    position: relative;
    padding: 40px;
    padding-left: 50px;
    border-top-left-radius: 89px;
    overflow: hidden;
    z-index: 1;
    max-width: 464px;
    width: 100%;
}

.mariposa-insights-content .insights-content-text-2 {
    width: 100%;
    max-width: 464px;
    position: relative;
    padding: 40px;
    border-top-right-radius: 89px;
    overflow: hidden;
    z-index: 1;
}

.mariposa-insights-content .insights-content-text-1::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top-left-radius: 89px;
    padding: 0;
    z-index: -1;
    pointer-events: none;
    /* Create the gradient border using a pseudo-element */
    background: linear-gradient(180deg, #FFFFFF 0%, #00BFEB 100%);
    /* The next line creates the border effect by using a mask */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    /* Set the border width here */
    padding: 1px;
}

.mariposa-insights-content .insights-content-text-2::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top-right-radius: 89px;
    padding: 0;
    z-index: -1;
    pointer-events: none;
    /* Create the gradient border using a pseudo-element */
    background: linear-gradient(180deg, #FFFFFF 0%, #00BFEB 100%);
    /* The next line creates the border effect by using a mask */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    /* Set the border width here */
    padding: 1px;
}

/* Complete Care tabs custom styles ------------------ */
.mariposa-complete-care-section #completeCareTabs {
    background-color: #EAEAEA;
    border-radius: 999px;
    padding: 0px 50px;
    width: 100%;
    /* max-width: 980px; */
    margin: 0 auto 32px auto;
    display: flex;
    justify-content: space-between !important;
    align-items: center;
}

.mariposa-complete-care-section #completeCareTabs .nav-link {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #49454F !important;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 24px;
    position: relative;
    padding: 25px 10px;
}

.mariposa-complete-care-section #completeCareTabs .nav-link:hover {
    color: #6750A4;
}

.mariposa-complete-care-section #completeCareTabs .nav-link.active {
    color: #6750A4 !important;
}

.mariposa-complete-care-section #completeCareTabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: #6750A4
        /* background: linear-gradient(90deg, #EE71C5 20.4%, #4137FF 84.39%); */
}

@media (max-width: 991.98px) {
    .mariposa-complete-care-section #completeCareTabs {
        margin-bottom: 16px;
    }
}

/* Custom Dropdown Styles */
.mariposa-custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: auto;
}

.mariposa-dropdown-toggle {
    width: 100%;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #49454F;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mariposa-dropdown-toggle:hover {
    border-color: #6750A4;
    box-shadow: 0 4px 12px rgba(103, 80, 164, 0.15);
}

.mariposa-dropdown-toggle:focus {
    outline: none;
    border-color: #6750A4;
    box-shadow: 0 0 0 3px rgba(103, 80, 164, 0.2);
}

.mariposa-dropdown-arrow {
    color: #6750A4;
    transition: transform 0.3s ease;
}

.mariposa-dropdown-toggle[aria-expanded="true"] .mariposa-dropdown-arrow {
    transform: rotate(180deg);
}

.mariposa-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.mariposa-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mariposa-dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #49454F;
    transition: all 0.2s ease;
    border-bottom: 1px solid #F5F5F5;
}

.mariposa-dropdown-item:last-child {
    border-bottom: none;
}

.mariposa-dropdown-item:hover {
    background-color: #F8F9FF;
    color: #6750A4;
}

.mariposa-dropdown-item[aria-selected="true"] {
    background-color: #F0F0FF;
    color: #6750A4;
    font-weight: 600;
}

.mariposa-dropdown-selected {
    color: #49454F;
}

.mariposa-dropdown-item[aria-selected="true"]+.mariposa-dropdown-selected {
    color: #6750A4;
}

.mariposa-complete-care-section .mariposa-case-study-h3 {
    color: #1024A1;
    line-height: 104%;
}

.mariposa-complete-care-section .mariposa-case-study-para1 {
    color: #161313;
    line-height: 145%;
}


/* Impat section style ------------------------------------------------ */

/* Impact / Outcomes Section Styles */
.mariposa-impact-section {
    background: #006A83;
    color: #FFFFFF;
}

.mariposa-impact-title {
    font-family: "Baloo 2", sans-serif;
    font-size: 99px;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.mariposa-impact-card {
    background: transparent;
    border: 1.3px solid;
    border-image: linear-gradient(180deg, #FFFFFF 0%, #00BFEB 100%);
    border-image-slice: 1;
    padding: 49px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.mariposa-impact-card:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for Impact section */
@media (max-width: 1199.98px) {
    .mariposa-impact-title {
        font-size: 42px;
        margin-bottom: 50px;
    }

    .mariposa-impact-card {
        padding: 35px 25px;
    }

}

@media (max-width: 991.98px) {
    .mariposa-hero-section {
        padding-top: 140px;
        text-align: center;
    }

    .mariposa-case-study-section {
        padding: 80px 0;
    }

    .mariposa-case-study-h2 {
        font-size: 48px;
    }

    .mariposa-case-study-h3 {
        font-size: 32px;
    }

    .mariposa-case-study-para1 {
        font-size: 26px;
    }

    .mariposa-left-quote {
        left: -10px;
        top: -40px;
        width: 10%;
    }

    .mariposa-right-quote {
        width: 10%;
        right: 40px;
        bottom: -20px;
    }

    .mariposa-insights-image {
        right: 20px;
        top: 20px;
        width: 80%;
    }

    .mariposa-insights-content {
        margin-top: 40px;
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .mariposa-insights-content .insights-content-text-1 {
        padding: 30px;
        border-top-left-radius: 39px;
    }

    .mariposa-insights-content .insights-content-text-2 {
        width: 100%;
        padding: 30px;
        border-top-right-radius: 39px;

    }

    .mariposa-complete-care-section img {
        margin-bottom: 20px;
    }
    
    .mariposa-complete-care-section .mariposa-case-study-para1 {
    margin-bottom: 30px !important;
    }


    .mariposa-impact-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .mariposa-impact-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .mariposa-impact-title {
        font-size: 32px;
        margin-bottom: 35px;
        letter-spacing: 1.5px;
    }

    .mariposa-impact-card {
        padding: 25px 15px;
        margin-bottom: 15px;
    }

}

@media (max-width: 575.98px) {
    .mariposa-impact-title {
        font-size: 28px;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }

    .mariposa-impact-card {
        padding: 20px 12px;
        margin-bottom: 12px;
    }

}