html,
body {
    overflow-x: hidden;
}

.header_ms ul.elementor-icon-list-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul#menu-1-24190ed .elementor-item-active {
    font-weight: 600;
}

.header_ms .e--pointer-double-line .elementor-item:after,
.e--pointer-underline .elementor-item:after {
    border-radius: 20px;
    background: #003658 !important;
    width: 32px !important;
}

/* Center the form */
.footer_form_ms {
    display: flex;
    justify-content: center;
}

.footer_form_ms .elementor-form {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 520px;
}

/* Make the fields wrapper a single row */
.footer_form_ms .elementor-form-fields-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 26px;
    overflow: hidden;
    padding: 11px;
    width: 100%;
    gap: 4px;
}

/* Email field takes remaining space */
.footer_form_ms .elementor-field-group-email {
    flex: 1;
    width: auto !important;
    align-items: center;
    justify-content: center;
}

.footer_form_ms .elementor-field-group-email input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
}

/* Button sits inside the wrapper */
.footer_form_ms .elementor-field-type-submit {
    width: 35% !important;
    flex-shrink: 0;
    border-radius: 18px;
}

.footer_form_ms .elementor-field-type-submit .elementor-button {
    border-radius: 18px;
    padding: 10px 20px;
    font-size: 15px;
    white-space: nowrap;
}

.footer_form_ms .elementor-field-type-email.elementor-field-group.elementor-column.elementor-field-group-email.elementor-col-80.elementor-field-required {
    margin-bottom: 0px;
}

.footer_form_ms .elementor-field-group.elementor-column.elementor-field-type-submit.elementor-col-20.e-form__buttons {
    margin-bottom: 0px;
}

.span-color {
    color: #003658;
    font-weight: 700;
}

.span-heading-value {
    color: #000;
    font-weight: 300;
}

.span-heading-color {
    color: #003658;
    font-weight: 500;
}

.span-heading-color-ms {
    color: #FFF;
    font-weight: 500;
}

.your_program_may_include_ms {
    backdrop-filter: blur(60px);
}


.program_overview_homepage_ms {
    padding-left: calc((100vw - 1482px) / 2);
}


/* Target the active slide's card background */
.carousel_ms .swiper-slide-active .elementor-element-0bfa713,
.carousel_ms .swiper-slide-active .elementor-element-f5522b7,
.carousel_ms .swiper-slide-active .elementor-element-8ac366d,
.carousel_ms .swiper-slide-active .elementor-element-83f0e3d {
    background: linear-gradient(359.8deg, rgba(109, 170, 79, 0) 0.15%, #6DAA4F 80.76%, #003658 161.71%) !important;
    color: #FFF !important;
}

/* Ensure all text inside inherits white */
.carousel_ms .swiper-slide-active .elementor-widget-heading .elementor-heading-title,
.carousel_ms .swiper-slide-active .elementor-widget-text-editor p {
    color: #FFF !important;
}


.zoom-in-ms {
    position: relative;
    overflow: hidden;
}

.zoom-in-ms::before {
    content: "";
    position: absolute;
    inset: 0;

    /* inherit Elementor background */
    background: inherit;
    background-size: cover;
    background-position: center;

    transform: scale(1);
    transition: transform 0.5s ease;
    z-index: 0;
}

/* Zoom effect */
.zoom-in-ms:hover::before {
    transform: scale(1.1);
}

/* Keep inner content above */
.zoom-in-ms>* {
    position: relative;
    z-index: 1;
}

.carousel_ms .swiper-wrapper {
    transition-timing-function: linear !important;
    will-change: transform;
}

/* smoother rendering */
.carousel_ms .swiper {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Base card */
.cards_hover_ms {
    transition: all 0.4s ease;
}

/* Text + icon default state */
.cards_hover_ms .elementor-icon-list-text,
.cards_hover_ms .elementor-icon-list-icon svg {
    transition: all 0.4s ease;
}

/* Hover state */
.cards_hover_ms:hover {
    background-color: #003658 !important;
}

/* Text turns white */
.cards_hover_ms:hover .elementor-icon-list-text {
    color: #ffffff !important;
}

/* Icon turns white */
.cards_hover_ms:hover .elementor-icon-list-icon svg path {
    fill: #ffffff !important;
}

.span-heading-how-it-works {
    font-weight: 700;
}

/* Active/open accordion item */
.faqs_ms .e-n-accordion-item[open] {
    background: #F1F5F9;
    border-color: none;
    border-radius: 12px;
}

/* Hide the close (X) icon for inactive items */
.faqs_ms .e-n-accordion-item .e-closed {
    display: flex;
}

.faqs_ms .e-n-accordion-item .e-opened {
    display: none;
}

/* Show X icon, hide + icon when open */
.faqs_ms .e-n-accordion-item[open] .e-closed {
    display: none;
}

.faqs_ms .e-n-accordion-item[open] .e-opened {
    display: flex;
}

.faqs_ms .e-n-accordion-item[open] summary.e-n-accordion-item-title {
    border: none !important;
}

.btn_ms .elementor-button:hover {

    background-color: transparent !important;
    background-image: url('') !important;
    background-size: cover;
    background-position: bottom right;
}


.btn_ms .elementor-button:hover {
    background-color: transparent !important;
    background-image: url(/wp-content/uploads/2026/05/blue-bg-p.png) !important;
    background-size: cover;
    background-position: bottom right;
}


.product-author-by {
    color: #555555;
}


/* ── Product Starting Price - Desktop ── */
.product-starting-price-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
}

.product-starting-label {
    font-family: 'Sofia Pro', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 36px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #000000;
}

.product-starting-price {
    font-family: 'Sofia Pro', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 36px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #000000;
}

.product-starting-period {
    font-family: 'Sofia Pro', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 36px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #000000;
}

.product-starting-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-starting-price {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.price-amount {
    display: inline-block;
    line-height: 1;
}

.product-starting-period {
    display: inline-block;
    margin-left: 0;
    line-height: 1;
    vertical-align: baseline;
}


.span-single-product-page {
    color: #070707;
    font-size: 20px;
}


.program-cost-wrapper {
    font-family: Sofia Pro;
    font-weight: 500;
    font-style: Medium;
    font-size: 18px;
    line-height: 36px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #FFF;
}



.medical-fee-wrapper {
    font-family: Sofia Pro;
    font-weight: 500;
    font-style: Medium;
    font-size: 18px;
    line-height: 36px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #FFF;
}



.total-due-wrapper {
    font-family: Sofia Pro;
    font-weight: 400;
    font-style: Regular;
    font-size: 38px;
    line-height: 36px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #FFFFFF;
}


.single-product-background-width-ms {
    width: 70%;
}

span.last-word {
    font-weight: 700;
}

.post-type-archive-product .cta_footer {
    display: none;
}


/* Initial state - normal position */
.header_sticky {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Sticky state - added via JS after scroll */
.header_sticky.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

dd.variation-TargetCustomer {
    margin: 0px !important;
}

dd.variation-IncludedOfferings {
    margin: 0px !important;
}

td.woocommerce-table__product-name.product-name ul.wc-item-meta {
    padding: 0px;
}

.header-myaccount-cart-ms {
    margin-top: 5px;
}

button#co-minicart-close:hover {
    background: transparent;
}


.subscriptions-shop-ms .shop-loop-ms img {
    min-height: 520px;
}

.co-program-products .co-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.co-program-products .co-product-card>a:first-child {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.co-program-products .co-product-card h3 {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-program-products .co-product-card .button {
    margin-top: auto;
}


@media(max-width:1518px) {
    .single-product-background-width-ms {
        width: 100%;
    }
}


@media (min-width: 1366px) and (max-width: 1440px) {
    .footer-cta-ms {
        min-height: 580px;
    }
}


/* DESKTOP ONLY (1440px and up) */
@media (min-width: 1440px) {

    /* PARENT STACK */
    .cards-stack {
        position: relative;
        display: block !important;
        height: 380px;
        overflow: visible;
    }

    /* ALL CARDS */
    .cards-stack .card-item {
        position: absolute !important;
        top: 50%;
        left: 50%;
        width: 340px;
        transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* STACKED STATE — card 1 on top */
    .cards-stack .card-item:nth-child(1) {
        transform: translate(-50%, -50%) scale(1);
        z-index: 4;
    }

    .cards-stack .card-item:nth-child(2) {
        transform: translate(-50%, -50%) scale(0.96);
        z-index: 3;
    }

    .cards-stack .card-item:nth-child(3) {
        transform: translate(-50%, -50%) scale(0.92);
        z-index: 2;
    }

    .cards-stack .card-item:nth-child(4) {
        transform: translate(-50%, -50%) scale(0.88);
        z-index: 1;
    }

    /* SPREAD STATE */
    .hero_section_ms.is-spread .card-item:nth-child(1) {
        transform: translate(calc(-50% - 540px), -50%) scale(1);
        z-index: 1;
    }

    .hero_section_ms.is-spread .card-item:nth-child(2) {
        transform: translate(calc(-50% - 180px), -50%) scale(1);
        z-index: 2;
    }

    .hero_section_ms.is-spread .card-item:nth-child(3) {
        transform: translate(calc(-50% + 180px), -50%) scale(1);
        z-index: 3;
    }

    .hero_section_ms.is-spread .card-item:nth-child(4) {
        transform: translate(calc(-50% + 540px), -50%) scale(1);
        z-index: 4;
    }

}

/* 1440px and below */
@media (max-width: 1440px) {
    .program_overview_homepage_ms {
        padding-left: clamp(16px, 5vw, 90vw);
    }

    .subscriptions-shop-ms .shop-loop-ms img {
        min-height: 450px;
    }
}


@media (min-width: 1082px) and (max-width: 1240px) {
    .elementor-element.elementor-element-3b72338 {
        width: 65% !important;
    }

    .elementor-element.elementor-element-22520bd {
        width: 20% !important;
    }

    .elementor-element.elementor-element-7a3bd63 .elementor-nav-menu .elementor-item {
        font-size: 14px !important;
    }
}


@media(max-width:1200px) {
    .total-due-wrapper {
        font-size: 24px;
    }

    .medical-fee-wrapper {
        font-size: 16px;
    }

    .program-cost-wrapper {
        font-size: 16px;
    }

    p.med-footer-name {
        font-size: 18px;
        line-height: 20px;
    }

    .subscriptions-shop-ms .shop-loop-ms img {
        min-height: 380px;
    }
}


@media(min-width:1082px) {
    #menu-1-7a3bd63 li.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-782 a {
        display: none;
    }
}

/* ── Tablet (max 1081px) ── */
@media (max-width: 1081px) {

    .product-starting-label,
    .product-starting-price,
    .product-starting-period {
        font-size: 16px;
        line-height: 32px;
    }

    /* Get Started Button Styling */
    ul#menu-2-7a3bd63 li.menu-item-782 a.elementor-item {
        border-radius: 18px;
        padding: 15px;
        box-shadow: 0px 4px 34px 0px rgba(0, 0, 0, 0.12);
        color: #FFF !important;
        background-color: #000;
        font-size: 14px;
        font-weight: 400;
        line-height: 1em;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        margin-left: 20px;
    }

    /* Hover Effect */
    ul#menu-2-7a3bd63 li.menu-item-782 a.elementor-item:hover {
        transform: translateY(-2px);
        box-shadow: 0px 6px 38px 0px rgba(0, 0, 0, 0.18);
        background: #FFF;
        color: #000;
    }

    .navbar_ms nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
        padding: 0px 0px 20px 0px;
    }
}


@media(max-width:1024px) {
    .subscriptions-shop-ms .shop-loop-ms img {
        min-height: 320px;
    }
}


@media (max-width: 992px) {
    .how_it_works_homepage_ms .elementor-element.elementor-element-00ff976.e-con-full.zoom-in-ms.e-flex.e-con.e-child {
        flex-direction: column;
    }

    .how_it_works_homepage_ms .elementor-element.elementor-element-dc70049.e-con-full.zoom-in-ms.e-flex.e-con.e-child {
        height: 600px;
    }
}


@media (max-width: 980px) and (min-width: 810px) {
    .med-image-wrap {
        min-height: 200px !important;
    }

    .med-image-wrap img {
        max-height: 120px !important;
        margin-top: 20px;
    }
}

/* ── Mobile (max 767px) ── */
@media (max-width: 767px) {

    .product-starting-label,
    .product-starting-price,
    .product-starting-period {
        font-size: 15px;
        line-height: 28px;
    }

    p.med-footer-name {
        font-size: 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        line-height: 20px;
    }

    .med-footer,
    .med-card.is-featured .med-footer {
        margin: 10px;
    }
}

/* 766px and below → remove padding completely */
@media (max-width: 766px) {
    .program_overview_homepage_ms {
        padding-left: 0;
    }
}

/* Center align WooCommerce info notice on My Account pages */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px !important;
    gap: 12px;
    border-left: none !important;
    border-top: 4px solid var(--co-navy, #003658) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before {
    position: static !important;
    margin-right: 0 !important;
    font-size: 20px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button {
    margin-top: 4px;
}

/* Category Tabs and Grouped Shop Styling */
.co-category-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 45px;
    width: 100%;
}

.co-category-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 30px;
    gap: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.co-category-tab {
    border: none;
    background: transparent;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Sofia Pro', sans-serif !important;
    outline: none;
    user-select: none;
}

.co-category-tab:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.co-category-tab.active {
    background: #003658;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 54, 88, 0.15);
}

.co-category-section {
    margin-bottom: 60px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.co-category-title {
    font-size: 26px;
    font-weight: 700;
    color: #003658;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    font-family: 'Sofia Pro', sans-serif !important;
    text-transform: capitalize;
}

.co-category-title span {
    position: relative;
    display: inline-block;
}

.co-category-title span::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #6daa4f;
}