/**
 * Mohamed Saleh V2 — Public Marketing Components
 * Version: 1.0.30
 *
 * Shared Gutenberg-pattern presentation.
 * Namespaced classes allow the same patterns to be inserted on
 * Homepage, About, Services, articles and future landing pages.
 */

.ms-v2-section,
.editor-styles-wrapper .ms-v2-section {
    --ms-blue: #4A7CC6;
    --ms-blue-hover: #356CB8;
    --ms-orange: #F79A10;
    --ms-orange-hover: #E68900;
    --ms-navy: #354963;
    --ms-dark: #243447;
    --ms-heading: #1B2430;
    --ms-body: #4F5B6A;
    --ms-muted: #7B8794;
    --ms-border: #DCE3EA;
    --ms-border-soft: #EDF1F5;
    --ms-bg: #F6F8FB;
    --ms-white: #FFFFFF;
    --ms-soft-blue: #EEF5FD;
    --ms-soft-orange: #FFF4E5;

    width: 100%;
    margin: 0;
    padding: 72px 0;
    font-family: "Tajawal", sans-serif;
    direction: rtl;
}

.ms-v2-section *,
.ms-v2-section *::before,
.ms-v2-section *::after,
.editor-styles-wrapper .ms-v2-section *,
.editor-styles-wrapper .ms-v2-section *::before,
.editor-styles-wrapper .ms-v2-section *::after {
    box-sizing: border-box;
}

.ms-v2-section > .wp-block-group__inner-container,
.ms-v2-section.ms-v2-section > .wp-block-group__inner-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.ms-v2-section.is-style-ms-light {
    background: var(--ms-bg);
}

.ms-v2-section.is-style-ms-white {
    background: var(--ms-white);
}

.ms-v2-section.is-style-ms-soft-blue {
    background: var(--ms-soft-blue);
}

.ms-v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 0 0 12px !important;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--ms-soft-blue);
    color: var(--ms-blue-hover) !important;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.5;
}

.ms-v2-section-title {
    margin: 0 !important;
    color: var(--ms-heading) !important;
    font-size: clamp(28px, 3vw, 40px) !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
}

.ms-v2-section-copy {
    max-width: 760px;
    margin: 12px 0 0 !important;
    color: var(--ms-body) !important;
    font-size: 17px !important;
    line-height: 1.9 !important;
}

.ms-v2-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px !important;
}

.ms-v2-buttons .wp-block-button {
    margin: 0 !important;
}

.ms-v2-button .wp-block-button__link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 8px;
    font-family: "Tajawal", sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none !important;
    box-shadow: none;
}

.ms-v2-button--primary .wp-block-button__link {
    border: 1px solid var(--ms-orange);
    background: var(--ms-orange);
    color: #fff !important;
}

.ms-v2-button--primary .wp-block-button__link:hover {
    border-color: var(--ms-orange-hover);
    background: var(--ms-orange-hover);
}

.ms-v2-button--secondary .wp-block-button__link {
    border: 1px solid var(--ms-blue);
    background: var(--ms-white);
    color: var(--ms-blue) !important;
}

.ms-v2-button--secondary .wp-block-button__link:hover {
    background: var(--ms-soft-blue);
    color: var(--ms-blue-hover) !important;
}

/* Generic cards */
.ms-v2-card {
    height: 100%;
    padding: 22px;
    border: 1px solid var(--ms-border);
    border-radius: 14px;
    background: var(--ms-white);
    box-shadow: 0 6px 20px rgba(27, 36, 48, .04);
}

.ms-v2-card h3 {
    margin: 0 0 8px !important;
    color: var(--ms-heading) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
}

.ms-v2-card p {
    margin: 0 !important;
    color: var(--ms-body) !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

/* ==========================================================
   HOME HERO
   ========================================================== */

.ms-home-hero {
    position: relative;
    overflow: hidden;

    padding-top: 72px;
    padding-bottom: 72px;

    background: #FFFFFF;
}


/*
 * Same visual width as the previous section.
 * The hero is intentionally compact rather than full-bleed.
 */
.ms-home-hero > .wp-block-group__inner-container {
    width: min(1040px, calc(100% - 48px)) !important;
}


/* ==========================================================
   EXACT OLD-SECTION MIRROR
   LEFT  = IMAGE
   RIGHT = COPY
   Both columns share the exact same grid-row height.
   ========================================================== */

.ms-home-hero__grid {
    display: grid !important;

    grid-template-columns:
        minmax(0, .94fr)
        minmax(0, 1.06fr);

    grid-template-areas:
        "media copy";

    gap: 64px;

    align-items: stretch !important;

    margin: 0 !important;

    direction: ltr;
}


/*
 * Gutenberg stores inline flex-basis values in the Pattern.
 * Once the parent becomes CSS Grid, explicitly neutralize them.
 */
.ms-home-hero__grid > .wp-block-column {
    width: auto !important;
    min-width: 0;
    max-width: none !important;

    flex: none !important;
    flex-basis: auto !important;

    margin: 0 !important;
}


.ms-home-hero__copy {
    grid-area: copy;

    direction: rtl;

    min-width: 0;

    display: flex !important;
    flex-direction: column;

    /*
     * Critical:
     * content begins exactly at the grid row top and ends at its own
     * natural bottom. The image column stretches to this exact row height.
     */
    justify-content: flex-start;
    align-items: stretch;

    padding: 0 !important;

    text-align: right;
}


.ms-home-hero__media-column {
    grid-area: media;

    direction: rtl;

    position: relative;

    /*
     * No fixed/min height here.
     * Grid stretch makes this column exactly the same height as copy.
     */
    min-height: 0 !important;
    height: auto;

    display: flex !important;
    align-items: stretch;
    justify-content: stretch;

    overflow: visible;

    padding: 0 !important;

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;

    isolation: isolate;
}


/* ==========================================================
   COPY — MATCH PREVIOUS SECTION
   ========================================================== */

.ms-home-hero .ms-v2-eyebrow {
    align-self: flex-start;

    width: fit-content;

    margin:
        0 0 14px !important;

    padding:
        5px 11px;

    border:
        1px solid rgba(74, 124, 198, .15);

    border-radius:
        999px;

    background:
        #EEF5FD;

    color:
        #356CB8 !important;

    font-size:
        12px !important;

    font-weight:
        700;

    line-height:
        1.5;
}


.ms-home-hero h1 {
    max-width: 100%;

    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        clamp(30px, 2.65vw, 39px) !important;

    font-weight:
        800 !important;

    line-height:
        1.43 !important;

    letter-spacing:
        -.012em;

    text-align:
        center;
}


.ms-home-hero h1 strong {
    color:
        #4A7CC6;
}


.ms-home-hero__lead {
    max-width:
        620px;

    margin:
        16px auto 0 !important;

    color:
        #4F5B6A !important;

    font-size:
        15px !important;

    line-height:
        1.95 !important;

    text-align:
        center;
}


/* Buttons follow the same right-aligned rhythm as the old section. */
.ms-home-hero .ms-v2-buttons {
    display: flex !important;

    flex-wrap: wrap;

    justify-content:
        center;

    gap:
        10px;

    margin-top:
        22px !important;
}


.ms-home-hero .ms-v2-button .wp-block-button__link {
    min-height:
        44px;

    padding:
        9px 18px;

    font-size:
        14px;
}


/*
 * The expertise chips are the final element in the text column.
 * Their bottom edge therefore becomes the exact bottom edge used by
 * the image column through CSS Grid stretch.
 */
.ms-home-hero__micro {
    display: flex !important;

    flex-wrap: nowrap;

    justify-content:
        center;

    gap:
        8px;

    width:
        100%;

    margin-top:
        28px !important;

    margin-bottom:
        0 !important;
}


.ms-home-hero__micro > * {
    margin:
        0 !important;

    padding:
        6px 10px;

    border:
        1px solid #DCE3EA;

    border-radius:
        7px;

    background:
        #FFFFFF;

    color:
        #4F5B6A !important;

    font-size:
        10.5px !important;

    font-weight:
        600;

    line-height:
        1.5;

    white-space:
        nowrap;

    box-shadow:
        0 3px 10px
        rgba(27, 36, 48, .025);
}


/* ==========================================================
   PORTRAIT — EXACT HEIGHT OF COPY COLUMN
   ========================================================== */

/* Soft orange accent behind the image. */
.ms-home-hero__media-column::before {
    content: "";

    position: absolute;

    width:
        155px;

    height:
        155px;

    inset-inline-end:
        -18px;

    inset-block-start:
        50%;

    border-radius:
        42% 58% 55% 45% / 45% 42% 58% 55%;

    background:
        #FFF4E5;

    transform:
        translateY(-50%)
        rotate(12deg);

    pointer-events:
        none;

    z-index:
        0;
}


/* Subtle blue geometry. */
.ms-home-hero__media-column::after {
    content: "";

    position: absolute;

    width:
        250px;

    height:
        250px;

    inset-inline-start:
        -10px;

    inset-block-start:
        50%;

    border:
        1px solid
        rgba(74, 124, 198, .13);

    border-radius:
        50%;

    background:
        rgba(238, 245, 253, .34);

    transform:
        translateY(-50%);

    pointer-events:
        none;

    z-index:
        0;
}


/*
 * The Figure fills the complete media grid cell.
 * No max-height, no fixed height.
 */
.ms-home-hero__portrait {
    position: relative;

    z-index:
        2;

    width:
        100%;

    height:
        100%;

    min-height:
        100%;

    max-width:
        none;

    display:
        flex;

    align-items:
        stretch;

    margin:
        0 !important;
}


.ms-home-hero__portrait img {
    display:
        block;

    width:
        100%;

    height:
        100% !important;

    min-height:
        100%;

    max-height:
        none !important;

    object-fit:
        cover;

    object-position:
        center 22%;

    border-radius:
        18px;

    box-shadow:
        0 16px 36px
        rgba(36, 52, 71, .12);

    filter:
        none;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


/*
 * No vertical translate on hover because it would break the requested
 * ruler-perfect top/bottom alignment.
 */
body:not(.block-editor-page)
.ms-home-hero__media-column:hover
.ms-home-hero__portrait img {
    transform:
        scale(1.008);

    box-shadow:
        0 19px 40px
        rgba(36, 52, 71, .14);
}


/* Gutenberg editor safety. */
.editor-styles-wrapper
.ms-home-hero__media-column::before,
.editor-styles-wrapper
.ms-home-hero__media-column::after {
    pointer-events:
        none !important;
}


.editor-styles-wrapper
.ms-home-hero__portrait {
    position:
        relative;

    z-index:
        10;

    cursor:
        pointer;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-hero__micro {
        flex-wrap:
            wrap;
    }

    .ms-home-hero {
        padding-top:
            58px;

        padding-bottom:
            58px;
    }


    .ms-home-hero > .wp-block-group__inner-container {
        width:
            calc(100% - 40px) !important;
    }


    .ms-home-hero__grid {
        grid-template-columns:
            minmax(0, .92fr)
            minmax(0, 1.08fr);

        gap:
            38px;
    }


    .ms-home-hero h1 {
        font-size:
            clamp(29px, 4.1vw, 37px) !important;
    }

}


/* ==========================================================
   MOBILE — STACK COPY FIRST, IMAGE SECOND
   ========================================================== */

@media (max-width: 781px) {

    .ms-home-hero__grid {
        display:
            flex !important;

        flex-direction:
            column;

        gap:
            32px;

        direction:
            rtl;
    }


    .ms-home-hero__copy {
        order:
            1;

        width:
            100%;

        align-items:
            center;

        text-align:
            center;
    }


    .ms-home-hero__media-column {
        order:
            2;

        width:
            min(100%, 420px);

        min-height:
            360px !important;

        align-self:
            center;
    }


    .ms-home-hero .ms-v2-eyebrow {
        align-self:
            center;
    }


    .ms-home-hero h1,
    .ms-home-hero__lead {
        max-width:
            680px;

        margin-inline:
            auto !important;

        text-align:
            center;
    }


    .ms-home-hero .ms-v2-buttons,
    .ms-home-hero__micro {
        justify-content:
            center;
    }


    .ms-home-hero__portrait {
        min-height:
            360px;
    }


    .ms-home-hero__portrait img {
        min-height:
            360px;

        object-position:
            center 20%;
    }

}


@media (max-width: 600px) {

    .ms-home-hero {
        padding-top:
            44px;

        padding-bottom:
            46px;
    }


    .ms-home-hero > .wp-block-group__inner-container {
        width:
            calc(100% - 28px) !important;
    }


    .ms-home-hero h1 {
        font-size:
            31px !important;

        line-height:
            1.48 !important;
    }


    .ms-home-hero__lead {
        font-size:
            15px !important;
    }


    .ms-home-hero .ms-v2-buttons {
        display:
            grid !important;

        grid-template-columns:
            1fr;

        width:
            min(100%, 360px);

        margin-inline:
            auto !important;
    }


    .ms-home-hero .ms-v2-button,
    .ms-home-hero .ms-v2-button .wp-block-button__link {
        width:
            100%;
    }


    .ms-home-hero__micro {
        margin-top:
            22px !important;
    }


    .ms-home-hero__media-column,
    .ms-home-hero__portrait,
    .ms-home-hero__portrait img {
        min-height:
            330px !important;
    }


    .ms-home-hero__media-column {
        width:
            min(100%, 360px);
    }


    .ms-home-hero__media-column::before {
        width:
            120px;

        height:
            120px;
    }


    .ms-home-hero__media-column::after {
        width:
            200px;

        height:
            200px;
    }

}


/* ==========================================================
   AUTHORITY / SOCIAL PROOF
   Version: 1.0.2
   Core Columns + Core Social Links
   ========================================================== */

.ms-home-authority {
    padding-top: 34px;
    padding-bottom: 26px;

    border-top: 1px solid #DCE3EA;
    border-bottom: 1px solid #DCE3EA;

    background: #F6F8FB;
}


.ms-home-authority > .wp-block-group__inner-container,
.ms-home-authority {
    --ms-authority-border: #DCE3EA;
}


/*
 * Gutenberg Core Columns are used deliberately here.
 * Force one horizontal row on desktop regardless of Astra/Gutenberg
 * inherited layout rules.
 */
.ms-home-authority__columns {
    display: flex !important;

    flex-wrap: nowrap !important;

    align-items: stretch !important;

    gap: 0 !important;

    width: 100%;

    max-width: 1180px;

    margin: 0 auto !important;
}


.ms-home-authority__columns > .wp-block-column {
    flex: 1 1 25% !important;

    width: 25% !important;
    min-width: 0 !important;

    margin: 0 !important;

    padding: 0 !important;
}


.ms-home-authority__item {
    position: relative;

    width: 100%;
    height: 100%;

    display: grid !important;

    grid-template-columns:
        52px minmax(0, 1fr);

    align-items: center;

    gap: 14px;

    margin: 0 !important;

    padding:
        14px 26px;

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;

    text-align: right;
}


/* Separators belong to columns, not internal Group layout. */
.ms-home-authority__columns
> .wp-block-column
+ .wp-block-column {
    border-inline-start:
        1px solid var(--ms-authority-border);
}


.ms-home-authority__item::before {
    content: "";

    width: 48px;
    height: 48px;

    display: block;

    border-radius: 12px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}


/* Experience — clock */
.ms-home-authority__item--experience::before {
    background-color:
        #EEF5FD;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A7CC6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}


/* Google certified — star */
.ms-home-authority__item--google::before {
    background-color:
        #FFF4E5;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F79A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8L12 3Z'/%3E%3C/svg%3E");
}


/* Region — globe */
.ms-home-authority__item--region::before {
    background-color:
        #EEF5FD;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A7CC6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M4.5 12h15M12 4c2 2.2 3 4.8 3 8s-1 5.8-3 8c-2-2.2-3-4.8-3-8s1-5.8 3-8Z'/%3E%3C/svg%3E");
}


/* Delivery — chart */
.ms-home-authority__item--delivery::before {
    background-color:
        #FFF4E5;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F79A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19V9M10 19V5M15 19v-7M20 19V3M3 19h19'/%3E%3C/svg%3E");
}


.ms-home-authority__text {
    min-width: 0;

    margin: 0 !important;
}


.ms-home-authority__title {
    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        17px !important;

    font-weight:
        800 !important;

    line-height:
        1.45 !important;

    text-align:
        right;
}


.ms-home-authority__description {
    margin:
        5px 0 0 !important;

    color:
        #7B8794 !important;

    font-size:
        12.5px !important;

    font-weight:
        400;

    line-height:
        1.7 !important;

    text-align:
        right;
}


/* ==========================================================
   SOCIAL STRIP — WORDPRESS CORE SOCIAL ICONS
   ========================================================== */

.ms-home-authority__social {
    display: flex !important;

    flex-direction: row !important;

    flex-wrap: nowrap !important;

    align-items: center;

    justify-content: center;

    gap: 18px;

    width: min(1180px, 100%);

    margin:
        28px auto 0 !important;

    padding-top:
        20px;

    border-top:
        1px solid var(--ms-authority-border);
}


.ms-home-authority__social-label {
    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        15px !important;

    font-weight:
        800 !important;

    line-height:
        1.5;

    white-space:
        nowrap;
}


/*
 * Core Social Links supplies the real network logos.
 * We only style their circles; no fake letters or external icon library.
 */
.ms-home-authority__social-links {
    display: flex !important;

    flex-direction: row !important;

    flex-wrap: nowrap !important;

    align-items: center;

    justify-content: center;

    gap: 8px !important;

    margin: 0 !important;

    padding: 0 !important;
}


.ms-home-authority__social-links
.wp-social-link {
    margin: 0 !important;

    border:
        1px solid #DCE3EA;

    border-radius:
        999px;

    background:
        #FFFFFF !important;

    color:
        #4A7CC6 !important;

    box-shadow:
        none;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.ms-home-authority__social-links
.wp-social-link:hover {
    border-color:
        #4A7CC6;

    background:
        #EEF5FD !important;

    transform:
        translateY(-2px);
}


.ms-home-authority__social-links
.wp-social-link a {
    width:
        40px;

    height:
        40px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        9px !important;
}


.ms-home-authority__social-links
.wp-social-link svg {
    width:
        20px !important;

    height:
        20px !important;

    fill:
        currentColor !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-authority__columns {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 0 !important;
    }


    .ms-home-authority__columns > .wp-block-column {
        width:
            auto !important;

        flex:
            none !important;
    }


    .ms-home-authority__columns
    > .wp-block-column
    + .wp-block-column {
        border-inline-start:
            0;
    }


    .ms-home-authority__columns
    > .wp-block-column:nth-child(even) {
        border-inline-start:
            1px solid var(--ms-authority-border);
    }


    .ms-home-authority__columns
    > .wp-block-column:nth-child(n+3) {
        border-top:
            1px solid #E8EDF2;
    }


    .ms-home-authority__item {
        padding:
            16px 20px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .ms-home-authority {
        padding-top:
            24px;

        padding-bottom:
            22px;
    }


    .ms-home-authority__columns {
        grid-template-columns:
            1fr;
    }


    .ms-home-authority__columns
    > .wp-block-column:nth-child(even) {
        border-inline-start:
            0;
    }


    .ms-home-authority__columns
    > .wp-block-column:nth-child(n+2) {
        border-top:
            1px solid #E8EDF2;
    }


    .ms-home-authority__item {
        grid-template-columns:
            48px minmax(0, 1fr);

        padding:
            14px 6px;
    }


    .ms-home-authority__title {
        font-size:
            16px !important;
    }


    .ms-home-authority__social {
        flex-direction:
            column !important;

        gap:
            13px;

        margin-top:
            18px !important;
    }


    .ms-home-authority__social-links {
        gap:
            7px !important;
    }


    .ms-home-authority__social-links
    .wp-social-link a {
        width:
            38px;

        height:
            38px;

        padding:
            9px !important;
    }

}


/* ==========================================================
   SOLUTIONS
   Version: 1.0.1
   ========================================================== */

.ms-home-solutions {
    padding-top: 58px;
    padding-bottom: 58px;

    background: #FFFFFF;
}


.ms-home-solutions > .wp-block-group__inner-container {
    width: min(1120px, calc(100% - 48px)) !important;
}


/* Section heading */
.ms-home-solutions__head {
    max-width: 760px;

    margin:
        0 auto 28px !important;

    text-align: center;
}


.ms-home-solutions__head .ms-v2-eyebrow {
    margin:
        0 auto 12px !important;
}


.ms-home-solutions__head .ms-v2-section-title {
    text-align: center;
}


.ms-home-solutions__head .ms-v2-section-copy {
    max-width: 690px;

    margin:
        10px auto 0 !important;

    text-align: center;
}


/* ==========================================================
   FOUR SOLUTION CARDS
   ========================================================== */

.ms-home-solutions__grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    width: 100%;

    margin:
        0 !important;
}


.ms-home-solution-card {
    position: relative;

    min-width: 0;
    min-height: 250px;

    display: flex !important;
    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    overflow: hidden;

    margin:
        0 !important;

    padding:
        24px 20px 22px;

    border:
        1px solid #DCE3EA;

    border-radius:
        14px;

    background:
        #FFFFFF;

    box-shadow:
        0 7px 22px
        rgba(27, 36, 48, .045);

    text-align:
        center;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}


.ms-home-solution-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(74, 124, 198, .38);

    box-shadow:
        0 13px 30px
        rgba(27, 36, 48, .075);
}


/* Small color accent */
.ms-home-solution-card::before {
    content: "";

    position: absolute;

    inset-block-start: 0;
    inset-inline: 22px;

    height: 3px;

    border-radius:
        0 0 999px 999px;

    background:
        #4A7CC6;
}


.ms-home-solution-card:nth-child(even)::before {
    background:
        #F79A10;
}


/* Icon circle */
.ms-home-solution-card__icon {
    width: 54px;
    height: 54px;

    display: grid !important;
    place-items: center;

    margin:
        0 auto 18px !important;

    border-radius:
        14px;

    background:
        #EEF5FD;
}


.ms-home-solution-card:nth-child(even)
.ms-home-solution-card__icon {
    background:
        #FFF4E5;
}


.ms-home-solution-card__icon::before {
    content: "";

    width: 26px;
    height: 26px;

    display: block;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px 26px;
}


/* Ads / acquisition */
.ms-home-solution-card--ads
.ms-home-solution-card__icon::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A7CC6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14h4l7 4V6l-7 4H4v4Z'/%3E%3Cpath d='M8 14v4'/%3E%3Cpath d='M18 9c1 .8 1.5 1.8 1.5 3S19 14.2 18 15'/%3E%3C/svg%3E");
}


/* Search / SEO */
.ms-home-solution-card--search
.ms-home-solution-card__icon::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F79A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='m15 15 4 4'/%3E%3Cpath d='M8.5 10.5h4'/%3E%3C/svg%3E");
}


/* Website / funnel */
.ms-home-solution-card--website
.ms-home-solution-card__icon::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A7CC6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='15' rx='2'/%3E%3Cpath d='M3 8h18'/%3E%3Cpath d='M7 6h.01M10 6h.01'/%3E%3Cpath d='m8 13 3 2 5-4'/%3E%3C/svg%3E");
}


/* Training / digital product */
.ms-home-solution-card--training
.ms-home-solution-card__icon::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F79A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-5 9 5-9 5-9-5Z'/%3E%3Cpath d='M7 12v4c2.5 2 7.5 2 10 0v-4'/%3E%3C/svg%3E");
}


.ms-home-solution-card h3 {
    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        19px !important;

    font-weight:
        800 !important;

    line-height:
        1.5 !important;

    text-align:
        center;
}


.ms-home-solution-card p {
    margin:
        9px 0 0 !important;

    color:
        #667282 !important;

    font-size:
        13.5px !important;

    line-height:
        1.85 !important;

    text-align:
        center;
}


/* Small bottom link */
.ms-home-solution-card__link {
    margin:
        auto 0 0 !important;

    padding-top:
        15px;

    color:
        #4A7CC6 !important;

    font-size:
        12.5px !important;

    font-weight:
        700;

    line-height:
        1.5;

    text-decoration:
        none !important;
}


.ms-home-solution-card__link:hover {
    color:
        #356CB8 !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-solutions {
        padding-top:
            50px;

        padding-bottom:
            50px;
    }


    .ms-home-solutions > .wp-block-group__inner-container {
        width:
            calc(100% - 40px) !important;
    }


    .ms-home-solutions__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            14px;
    }


    .ms-home-solution-card {
        min-height:
            225px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .ms-home-solutions {
        padding-top:
            42px;

        padding-bottom:
            42px;
    }


    .ms-home-solutions > .wp-block-group__inner-container {
        width:
            calc(100% - 28px) !important;
    }


    .ms-home-solutions__head {
        margin-bottom:
            22px !important;
    }


    .ms-home-solutions__grid {
        grid-template-columns:
            1fr;
    }


    .ms-home-solution-card {
        min-height:
            0;

        padding:
            22px 18px;
    }

}


/* ==========================================================
   FINAL CTA
   ========================================================== */

.ms-v2-final-cta {
    padding-top: 64px;
    padding-bottom: 64px;
    background: var(--ms-bg);
}

.ms-v2-final-cta__panel {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 34px 38px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 10%, rgba(74,124,198,.27), transparent 38%),
        var(--ms-dark);
    box-shadow: 0 16px 38px rgba(27,36,48,.12);
}

.ms-v2-final-cta__copy h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(27px, 3vw, 38px) !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
}

.ms-v2-final-cta__copy p {
    max-width: 700px;
    margin: 9px 0 0 !important;
    color: #e7edf4 !important;
    font-size: 16px !important;
    line-height: 1.85 !important;
}

.ms-v2-final-cta .ms-v2-buttons {
    margin-top: 0 !important;
}

@media (max-width: 921px) {
    .ms-v2-section {
        padding: 58px 0;
    }

    .ms-v2-section > .wp-block-group__inner-container,
    .ms-v2-section.ms-v2-section > .wp-block-group__inner-container {
        width: calc(100% - 40px);
    }

    .ms-home-hero__grid {
        gap: 34px;
    }

    .ms-home-hero__media {
        min-height: 360px;
    }

    .ms-home-hero__portrait {
        max-width: 330px;
    }

    .ms-home-authority__items {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .ms-v2-final-cta__panel {
        grid-template-columns: 1fr;
    }

    .ms-v2-final-cta .ms-v2-buttons {
        margin-top: 18px !important;
    }
}

@media (max-width: 600px) {
    .ms-v2-section {
        padding: 46px 0;
    }

    .ms-v2-section > .wp-block-group__inner-container,
    .ms-v2-section.ms-v2-section > .wp-block-group__inner-container {
        width: calc(100% - 28px);
    }

    .ms-home-hero {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .ms-home-hero__grid {
        display: block !important;
    }

    .ms-home-hero__grid > .wp-block-column + .wp-block-column {
        margin-top: 30px;
    }

    .ms-home-hero h1 {
        font-size: 34px !important;
    }

    .ms-home-hero__lead {
        font-size: 16px !important;
    }

    .ms-home-hero__media {
        min-height: 290px;
        border-radius: 17px;
    }

    .ms-v2-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ms-v2-button,
    .ms-v2-button .wp-block-button__link {
        width: 100%;
    }

    .ms-home-authority__items {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ms-home-authority__item {
        padding: 12px 8px;
        font-size: 12px !important;
    }

    .ms-home-solutions__grid {
        display: block !important;
    }

    .ms-home-solutions__grid > .wp-block-column + .wp-block-column {
        margin-top: 12px;
    }

    .ms-v2-final-cta__panel {
        padding: 25px 20px;
        border-radius: 14px;
    }
}

/* ==========================================================
   AUTHORITY COMPATIBILITY LAYER
   Version: 1.0.10
   Supports BOTH:
   1) old inserted Pattern:
      .ms-home-authority__items
      .ms-home-authority__social-link
   2) new Pattern:
      .ms-home-authority__columns
      Core Social Links
   ========================================================== */


/* ----------------------------------------------------------
   OLD PATTERN: FORCE FOUR ITEMS INTO ONE DESKTOP ROW
   ---------------------------------------------------------- */

.ms-home-authority__items {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    grid-auto-flow:
        column !important;

    align-items:
        stretch !important;

    gap:
        0 !important;

    width:
        100% !important;

    max-width:
        1180px;

    margin:
        0 auto !important;
}


.ms-home-authority__items
> .ms-home-authority__item {
    width:
        100% !important;

    min-width:
        0 !important;

    height:
        100%;

    margin:
        0 !important;

    padding:
        14px 26px !important;
}


.ms-home-authority__items
> .ms-home-authority__item
+ .ms-home-authority__item {
    border-inline-start:
        1px solid #DCE3EA !important;
}


/* ----------------------------------------------------------
   OLD PATTERN SOCIAL BUTTONS:
   convert the existing letter buttons to real network SVG logos.
   ---------------------------------------------------------- */

.ms-home-authority__social
.ms-home-authority__social-links {
    display:
        flex !important;

    flex-direction:
        row !important;

    flex-wrap:
        nowrap !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    gap:
        8px !important;

    margin:
        0 !important;
}


.ms-home-authority__social-link
.wp-block-button__link {
    position:
        relative;

    width:
        40px !important;

    min-width:
        40px !important;

    height:
        40px !important;

    min-height:
        40px !important;

    padding:
        0 !important;

    overflow:
        hidden;

    border:
        1px solid #DCE3EA !important;

    border-radius:
        999px !important;

    background-color:
        #FFFFFF !important;

    background-repeat:
        no-repeat !important;

    background-position:
        center !important;

    background-size:
        19px 19px !important;

    color:
        transparent !important;

    font-size:
        0 !important;

    line-height:
        0 !important;

    text-indent:
        -9999px;

    box-shadow:
        none !important;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}


.ms-home-authority__social-link
.wp-block-button__link:hover {
    border-color:
        #4A7CC6 !important;

    background-color:
        #EEF5FD !important;

    transform:
        translateY(-2px);
}


/* Facebook */
.ms-home-authority__social-link--facebook
.wp-block-button__link {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234A7CC6' d='M13.5 8H16V5h-2.5C10.5 5 9 6.8 9 9.4V11H7v3h2v5h3v-5h2.6l.4-3H12V9.6c0-1 .4-1.6 1.5-1.6Z'/%3E%3C/svg%3E") !important;
}


/* YouTube */
.ms-home-authority__social-link--youtube
.wp-block-button__link {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234A7CC6' d='M20.5 7.1a2.5 2.5 0 0 0-1.8-1.8C17.1 5 12 5 12 5s-5.1 0-6.7.3a2.5 2.5 0 0 0-1.8 1.8A26 26 0 0 0 3.2 12a26 26 0 0 0 .3 4.9 2.5 2.5 0 0 0 1.8 1.8C6.9 19 12 19 12 19s5.1 0 6.7-.3a2.5 2.5 0 0 0 1.8-1.8 26 26 0 0 0 .3-4.9 26 26 0 0 0-.3-4.9ZM10 15.3V8.7l5.7 3.3L10 15.3Z'/%3E%3C/svg%3E") !important;
}


/* LinkedIn */
.ms-home-authority__social-link--linkedin
.wp-block-button__link {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234A7CC6' d='M6.5 8.5H3.6V18h2.9V8.5ZM5 4A1.7 1.7 0 1 0 5 7.4 1.7 1.7 0 0 0 5 4ZM20 12.5c0-2.9-1.5-4.3-3.6-4.3-1.7 0-2.4.9-2.8 1.5V8.5h-2.9V18h2.9v-4.7c0-1.2.2-2.4 1.8-2.4 1.5 0 1.6 1.4 1.6 2.5V18H20v-5.5Z'/%3E%3C/svg%3E") !important;
}


/* Instagram */
.ms-home-authority__social-link--instagram
.wp-block-button__link {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%234A7CC6' stroke-width='1.8' d='M8 3h8a5 5 0 0 1 5 5v8a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5V8a5 5 0 0 1 5-5Z'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='%234A7CC6' stroke-width='1.8'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.1' fill='%234A7CC6'/%3E%3C/svg%3E") !important;
}


/* TikTok */
.ms-home-authority__social-link--tiktok
.wp-block-button__link {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234A7CC6' d='M15.2 3c.3 2 1.4 3.2 3.3 3.5v2.8c-1.1 0-2.2-.3-3.2-.9v5.3a5.1 5.1 0 1 1-4.4-5.1v2.9a2.3 2.3 0 1 0 1.5 2.2V3h2.8Z'/%3E%3C/svg%3E") !important;
}


/* X */
.ms-home-authority__social-link--x
.wp-block-button__link {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234A7CC6' d='M5 4h3.8l4 5.4L17.5 4H19l-5.5 6.4L20 20h-3.8l-4.4-6-5.2 6H5l6-7L5 4Zm3 1.3 8.9 13.4H18L9.1 5.3H8Z'/%3E%3C/svg%3E") !important;
}


/* ----------------------------------------------------------
   RESPONSIVE COMPATIBILITY FOR OLD INSERTED PATTERN
   ---------------------------------------------------------- */

@media (max-width: 921px) {

    .ms-home-authority__items {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        grid-auto-flow:
            row !important;
    }


    .ms-home-authority__items
    > .ms-home-authority__item
    + .ms-home-authority__item {
        border-inline-start:
            0 !important;
    }


    .ms-home-authority__items
    > .ms-home-authority__item:nth-child(even) {
        border-inline-start:
            1px solid #DCE3EA !important;
    }


    .ms-home-authority__items
    > .ms-home-authority__item:nth-child(n+3) {
        border-top:
            1px solid #E8EDF2 !important;
    }

}


@media (max-width: 600px) {

    .ms-home-authority__items {
        grid-template-columns:
            1fr !important;
    }


    .ms-home-authority__items
    > .ms-home-authority__item:nth-child(even) {
        border-inline-start:
            0 !important;
    }


    .ms-home-authority__items
    > .ms-home-authority__item:nth-child(n+2) {
        border-top:
            1px solid #E8EDF2 !important;
    }


    .ms-home-authority__social
    .ms-home-authority__social-links {
        flex-wrap:
            wrap !important;
    }

}

/* ==========================================================
   AUTHORITY OLD-PATTERN WRAPPER FIX
   Version: 1.0.11
   Gutenberg/Astra may insert .wp-block-group__inner-container.
   The four proof items must be laid out INSIDE that wrapper.
   Social icon rules from v1.0.10 remain unchanged.
   ========================================================== */


/*
 * Do not make the outer Group itself the four-column grid.
 * In classic Group markup it has only one direct child:
 * .wp-block-group__inner-container.
 */
.ms-home-authority__items {
    display:
        block !important;

    width:
        100% !important;

    max-width:
        1180px !important;

    margin:
        0 auto !important;
}


/*
 * Primary markup used by Astra/Gutenberg on this installation.
 */
.ms-home-authority__items
> .wp-block-group__inner-container {
    display:
        grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    grid-auto-flow:
        row !important;

    align-items:
        stretch !important;

    gap:
        0 !important;

    width:
        100% !important;

    max-width:
        none !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


/*
 * Each proof item occupies exactly one quarter.
 */
.ms-home-authority__items
> .wp-block-group__inner-container
> .ms-home-authority__item {
    width:
        100% !important;

    min-width:
        0 !important;

    max-width:
        none !important;

    height:
        auto !important;

    min-height:
        88px;

    margin:
        0 !important;

    padding:
        14px 26px !important;

    align-self:
        stretch;
}


/* Rebuild vertical separators on the real item siblings. */
.ms-home-authority__items
> .wp-block-group__inner-container
> .ms-home-authority__item
+ .ms-home-authority__item {
    border-inline-start:
        1px solid #DCE3EA !important;

    border-top:
        0 !important;
}


/*
 * Fallback for WordPress versions that render Group children directly
 * without the inner-container wrapper.
 */
.ms-home-authority__items:not(:has(> .wp-block-group__inner-container)) {
    display:
        grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    grid-auto-flow:
        row !important;

    align-items:
        stretch !important;

    gap:
        0 !important;
}


.ms-home-authority__items:not(:has(> .wp-block-group__inner-container))
> .ms-home-authority__item {
    min-height:
        88px;

    margin:
        0 !important;
}


/* ==========================================================
   TABLET WRAPPER FIX
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-authority__items
    > .wp-block-group__inner-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    .ms-home-authority__items
    > .wp-block-group__inner-container
    > .ms-home-authority__item
    + .ms-home-authority__item {
        border-inline-start:
            0 !important;
    }


    .ms-home-authority__items
    > .wp-block-group__inner-container
    > .ms-home-authority__item:nth-child(even) {
        border-inline-start:
            1px solid #DCE3EA !important;
    }


    .ms-home-authority__items
    > .wp-block-group__inner-container
    > .ms-home-authority__item:nth-child(n+3) {
        border-top:
            1px solid #E8EDF2 !important;
    }


    .ms-home-authority__items:not(:has(> .wp-block-group__inner-container)) {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}


/* ==========================================================
   MOBILE WRAPPER FIX
   ========================================================== */

@media (max-width: 600px) {

    .ms-home-authority__items
    > .wp-block-group__inner-container {
        grid-template-columns:
            1fr !important;
    }


    .ms-home-authority__items
    > .wp-block-group__inner-container
    > .ms-home-authority__item {
        min-height:
            0;
    }


    .ms-home-authority__items
    > .wp-block-group__inner-container
    > .ms-home-authority__item:nth-child(even) {
        border-inline-start:
            0 !important;
    }


    .ms-home-authority__items
    > .wp-block-group__inner-container
    > .ms-home-authority__item:nth-child(n+2) {
        border-top:
            1px solid #E8EDF2 !important;
    }


    .ms-home-authority__items:not(:has(> .wp-block-group__inner-container)) {
        grid-template-columns:
            1fr !important;
    }

}

/* ==========================================================
   AUTHORITY COMPACT SPACING
   Version: 1.0.12
   Reduce vertical whitespace to the minimum practical level.
   ========================================================== */

.ms-home-authority {
    padding-top: 12px !important;
    padding-bottom: 10px !important;
}


/* Remove any inherited height that may enlarge the first row. */
.ms-home-authority__items,
.ms-home-authority__items > .wp-block-group__inner-container {
    min-height: 0 !important;
    height: auto !important;
}


/* Compact proof cells. */
.ms-home-authority__items
> .wp-block-group__inner-container
> .ms-home-authority__item,
.ms-home-authority__items:not(:has(> .wp-block-group__inner-container))
> .ms-home-authority__item,
.ms-home-authority__columns
> .wp-block-column
.ms-home-authority__item {
    min-height: 0 !important;
    height: auto !important;

    padding-top: 8px !important;
    padding-bottom: 8px !important;
}


/* Slightly smaller icon boxes to help the row stay compact. */
.ms-home-authority__item::before {
    width: 44px !important;
    height: 44px !important;

    background-size: 22px 22px !important;
}


/* Tighten title/description rhythm. */
.ms-home-authority__description {
    margin-top: 3px !important;
}


/* Bring the social strip much closer to the proof row. */
.ms-home-authority__social {
    margin-top: 12px !important;
    padding-top: 10px !important;
    padding-bottom: 0 !important;
}


/* No extra margin below the social icons. */
.ms-home-authority__social-links,
.ms-home-authority__social-label {
    margin-bottom: 0 !important;
}


/* Tablet */
@media (max-width: 921px) {
    .ms-home-authority {
        padding-top: 10px !important;
        padding-bottom: 9px !important;
    }

    .ms-home-authority__item {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .ms-home-authority__social {
        margin-top: 10px !important;
        padding-top: 9px !important;
    }
}


/* Mobile */
@media (max-width: 600px) {
    .ms-home-authority {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .ms-home-authority__item {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .ms-home-authority__social {
        margin-top: 8px !important;
        padding-top: 8px !important;
    }
}

/* ==========================================================
   AUTHORITY TIGHT PROOF ROW
   Version: 1.0.13
   Make the four proof items close in height to the social strip.
   ========================================================== */

@media (min-width: 922px) {

    /*
     * New Core Columns pattern.
     */
    .ms-home-authority__columns {
        min-height: 92px !important;
        height: 92px !important;

        align-items: stretch !important;
    }


    .ms-home-authority__columns
    > .wp-block-column {
        min-height: 92px !important;
        height: 92px !important;
    }


    .ms-home-authority__columns
    .ms-home-authority__item {
        min-height: 92px !important;
        height: 92px !important;

        padding-top: 8px !important;
        padding-bottom: 8px !important;

        align-content: center !important;
    }


    /*
     * Old inserted Group pattern with Gutenberg/Astra inner wrapper.
     */
    .ms-home-authority__items {
        min-height: 92px !important;
        height: 92px !important;
    }


    .ms-home-authority__items
    > .wp-block-group__inner-container {
        min-height: 92px !important;
        height: 92px !important;

        align-items: stretch !important;
    }


    .ms-home-authority__items
    > .wp-block-group__inner-container
    > .ms-home-authority__item {
        min-height: 92px !important;
        height: 92px !important;

        padding-top: 8px !important;
        padding-bottom: 8px !important;

        align-content: center !important;
    }


    /*
     * Fallback markup without the Gutenberg inner wrapper.
     */
    .ms-home-authority__items:not(:has(> .wp-block-group__inner-container)) {
        min-height: 92px !important;
        height: 92px !important;

        align-items: stretch !important;
    }


    .ms-home-authority__items:not(:has(> .wp-block-group__inner-container))
    > .ms-home-authority__item {
        min-height: 92px !important;
        height: 92px !important;

        padding-top: 8px !important;
        padding-bottom: 8px !important;

        align-content: center !important;
    }


    /*
     * Keep the icon/text vertically centered inside the compact row.
     */
    .ms-home-authority__item {
        align-items: center !important;
    }


    .ms-home-authority__text {
        align-self: center !important;
    }


    /*
     * Social strip remains compact and is brought closer to the proof row.
     */
    .ms-home-authority__social {
        margin-top: 8px !important;
        padding-top: 8px !important;
    }

}

/* ==========================================================
   SOLUTIONS WRAPPER COMPATIBILITY FIX
   Version: 1.0.15
   Supports both:
   1) existing Group-based inserted pattern
   2) future Core Columns pattern
   ========================================================== */


/* ----------------------------------------------------------
   EXISTING GROUP PATTERN
   ---------------------------------------------------------- */

/*
 * The outer Group may contain only one Gutenberg wrapper child,
 * so do not make the outer element the four-card grid.
 */
.ms-home-solutions__grid {
    display:
        block !important;

    width:
        100% !important;

    margin:
        0 !important;
}


/*
 * Actual four-card grid lives inside Gutenberg's inner container.
 */
.ms-home-solutions__grid
> .wp-block-group__inner-container {
    display:
        grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap:
        14px !important;

    align-items:
        stretch !important;

    width:
        100% !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


.ms-home-solutions__grid
> .wp-block-group__inner-container
> .ms-home-solution-card {
    width:
        100% !important;

    min-width:
        0 !important;

    max-width:
        none !important;

    height:
        100%;

    margin:
        0 !important;
}


/*
 * Fallback for WordPress versions rendering Group children directly.
 */
.ms-home-solutions__grid:not(:has(> .wp-block-group__inner-container)) {
    display:
        grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap:
        14px !important;

    align-items:
        stretch !important;
}


/* ----------------------------------------------------------
   FUTURE CORE COLUMNS PATTERN
   ---------------------------------------------------------- */

.ms-home-solutions__columns {
    display:
        flex !important;

    flex-wrap:
        nowrap !important;

    align-items:
        stretch !important;

    gap:
        14px !important;

    width:
        100%;

    margin:
        0 !important;
}


.ms-home-solutions__columns
> .wp-block-column {
    flex:
        1 1 25% !important;

    width:
        25% !important;

    min-width:
        0 !important;

    margin:
        0 !important;
}


.ms-home-solutions__columns
.ms-home-solution-card {
    height:
        100%;
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 921px) {

    .ms-home-solutions__grid
    > .wp-block-group__inner-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    .ms-home-solutions__grid:not(:has(> .wp-block-group__inner-container)) {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    .ms-home-solutions__columns {
        display:
            grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            14px !important;
    }


    .ms-home-solutions__columns
    > .wp-block-column {
        width:
            auto !important;

        flex:
            none !important;
    }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .ms-home-solutions__grid
    > .wp-block-group__inner-container {
        grid-template-columns:
            1fr !important;
    }


    .ms-home-solutions__grid:not(:has(> .wp-block-group__inner-container)) {
        grid-template-columns:
            1fr !important;
    }


    .ms-home-solutions__columns {
        grid-template-columns:
            1fr;
    }

}

/* ==========================================================
   SOLUTIONS TIGHT HEADER-TO-CARDS GAP
   Version: 1.0.16
   Remove inherited Gutenberg/Astra block spacing between the
   section heading group and the cards grid.
   ========================================================== */

.ms-home-solutions {
    --wp--style--block-gap: 0px !important;
}


/* Root constrained wrapper: no automatic block gap. */
.ms-home-solutions
> .wp-block-group__inner-container {
    display: block !important;

    row-gap: 0 !important;
    column-gap: 0 !important;

    gap: 0 !important;
}


/* Neutralize Gutenberg's sibling block margin. */
.ms-home-solutions
> .wp-block-group__inner-container
> * {
    margin-block-start: 0 !important;
}


.ms-home-solutions
> .wp-block-group__inner-container
> * + * {
    margin-block-start: 0 !important;
}


/* Keep only the exact visual gap we want. */
.ms-home-solutions__head {
    margin:
        0 auto 16px !important;
}


.ms-home-solutions__grid,
.ms-home-solutions__columns {
    margin-top:
        0 !important;

    padding-top:
        0 !important;
}


/* If the existing Group pattern has an inner wrapper, it must not
   introduce another vertical margin before the cards. */
.ms-home-solutions__grid
> .wp-block-group__inner-container {
    margin-top:
        0 !important;

    padding-top:
        0 !important;
}


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

    .ms-home-solutions__head {
        margin-bottom:
            14px !important;
    }

}


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

    .ms-home-solutions__head {
        margin-bottom:
            12px !important;
    }

}

/* ==========================================================
   HOMEPAGE SERVICES
   Version: 1.0.1
   2x2 execution-focused service cards
   ========================================================== */

.ms-home-services {
    padding-top: 58px;
    padding-bottom: 58px;

    background: #F6F8FB;
}


.ms-home-services > .wp-block-group__inner-container {
    width: min(1120px, calc(100% - 48px)) !important;
}


/* Heading */
.ms-home-services__head {
    max-width: 760px;

    margin:
        0 auto 24px !important;

    text-align: center;
}


.ms-home-services__head .ms-v2-eyebrow {
    margin:
        0 auto 12px !important;
}


.ms-home-services__head .ms-v2-section-title,
.ms-home-services__head .ms-v2-section-copy {
    text-align: center;
}


.ms-home-services__head .ms-v2-section-copy {
    max-width: 700px;

    margin:
        10px auto 0 !important;
}


/* ==========================================================
   2x2 GRID
   ========================================================== */

.ms-home-services__grid {
    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    width: 100%;

    margin:
        0 !important;
}


.ms-home-service-card {
    position: relative;

    min-width: 0;

    display: grid !important;

    grid-template-columns:
        64px minmax(0, 1fr);

    gap: 18px;

    align-items: start;

    margin:
        0 !important;

    padding:
        24px;

    border:
        1px solid #DCE3EA;

    border-radius:
        16px;

    background:
        #FFFFFF;

    box-shadow:
        0 7px 22px
        rgba(27, 36, 48, .04);

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}


.ms-home-service-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(74, 124, 198, .35);

    box-shadow:
        0 12px 28px
        rgba(27, 36, 48, .07);
}


/* Decorative top accent */
.ms-home-service-card::before {
    content: "";

    position: absolute;

    inset-block-start: 0;
    inset-inline-start: 24px;

    width: 54px;
    height: 3px;

    border-radius:
        0 0 999px 999px;

    background:
        #4A7CC6;
}


.ms-home-service-card:nth-child(even)::before {
    background:
        #F79A10;
}


/* Service icon */
.ms-home-service-card__icon {
    width: 58px;
    height: 58px;

    display: grid !important;
    place-items: center;

    margin:
        0 !important;

    border-radius:
        14px;

    background:
        #EEF5FD;
}


.ms-home-service-card:nth-child(even)
.ms-home-service-card__icon {
    background:
        #FFF4E5;
}


.ms-home-service-card__icon::before {
    content: "";

    width: 28px;
    height: 28px;

    display: block;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
}


/* Consulting */
.ms-home-service-card--consulting
.ms-home-service-card__icon::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A7CC6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19v-5a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v5'/%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cpath d='M8 16h8'/%3E%3C/svg%3E");
}


/* Ads */
.ms-home-service-card--ads
.ms-home-service-card__icon::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F79A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14h4l7 4V6l-7 4H4v4Z'/%3E%3Cpath d='M8 14v4'/%3E%3Cpath d='M18 9c1 .8 1.5 1.8 1.5 3S19 14.2 18 15'/%3E%3C/svg%3E");
}


/* SEO/AIO */
.ms-home-service-card--seo
.ms-home-service-card__icon::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A7CC6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='m15 15 4 4'/%3E%3Cpath d='M8 10h5M8 12.8h3'/%3E%3C/svg%3E");
}


/* Website/Funnels */
.ms-home-service-card--web
.ms-home-service-card__icon::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F79A10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='15' rx='2'/%3E%3Cpath d='M3 8h18'/%3E%3Cpath d='M7 6h.01M10 6h.01'/%3E%3Cpath d='m8 14 3-3 2 2 3-3'/%3E%3C/svg%3E");
}


.ms-home-service-card__body {
    min-width: 0;
}


.ms-home-service-card__label {
    margin:
        0 0 5px !important;

    color:
        #4A7CC6 !important;

    font-size:
        11.5px !important;

    font-weight:
        700;

    line-height:
        1.5;
}


.ms-home-service-card:nth-child(even)
.ms-home-service-card__label {
    color:
        #D97E00 !important;
}


.ms-home-service-card h3 {
    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        20px !important;

    font-weight:
        800 !important;

    line-height:
        1.5 !important;

    text-align:
        right;
}


.ms-home-service-card__copy {
    margin:
        8px 0 0 !important;

    color:
        #667282 !important;

    font-size:
        13.5px !important;

    line-height:
        1.85 !important;

    text-align:
        right;
}


/* Compact bullets */
.ms-home-service-card__features {
    display: flex !important;

    flex-wrap: wrap;

    gap:
        7px;

    margin-top:
        14px !important;
}


.ms-home-service-card__features > * {
    margin:
        0 !important;

    padding:
        5px 8px;

    border:
        1px solid #E6EBF0;

    border-radius:
        7px;

    background:
        #FAFBFD;

    color:
        #4F5B6A !important;

    font-size:
        11px !important;

    font-weight:
        600;

    line-height:
        1.4;
}


/* CTA */
.ms-home-service-card__cta {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    width: fit-content;

    margin:
        16px 0 0 !important;

    color:
        #4A7CC6 !important;

    font-size:
        12.5px !important;

    font-weight:
        800;

    line-height:
        1.5;

    text-decoration:
        none !important;
}


.ms-home-service-card__cta::after {
    content: "←";

    font-size:
        14px;
}


.ms-home-service-card__cta:hover {
    color:
        #356CB8 !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-services {
        padding-top:
            50px;

        padding-bottom:
            50px;
    }


    .ms-home-services > .wp-block-group__inner-container {
        width:
            calc(100% - 40px) !important;
    }


    .ms-home-service-card {
        grid-template-columns:
            56px minmax(0, 1fr);

        gap:
            14px;

        padding:
            20px;
    }


    .ms-home-service-card__icon {
        width:
            52px;

        height:
            52px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .ms-home-services__grid {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 600px) {

    .ms-home-services {
        padding-top:
            42px;

        padding-bottom:
            42px;
    }


    .ms-home-services > .wp-block-group__inner-container {
        width:
            calc(100% - 28px) !important;
    }


    .ms-home-services__head {
        margin-bottom:
            18px !important;
    }


    .ms-home-service-card {
        grid-template-columns:
            50px minmax(0, 1fr);

        padding:
            18px;

        border-radius:
            14px;
    }


    .ms-home-service-card__icon {
        width:
            48px;

        height:
            48px;

        border-radius:
            12px;
    }


    .ms-home-service-card h3 {
        font-size:
            18px !important;
    }

}

/* ==========================================================
   V2 PATTERN LAYOUT FOUNDATION
   Version: 1.0.18

   IMPORTANT ARCHITECTURE RULE:
   - Do NOT use a Group as the horizontal Grid container.
   - Horizontal layouts in all future Patterns use Core Columns.
   - Existing old Group-based Patterns remain supported below.
   ========================================================== */


/* ----------------------------------------------------------
   BACKWARD COMPATIBILITY: CURRENT SERVICES PATTERN
   ---------------------------------------------------------- */

/*
 * Existing inserted services Pattern may be:
 *
 * .ms-home-services__grid
 *   > .wp-block-group__inner-container
 *       > .ms-home-service-card
 *
 * Apply the 2x2 grid to the INNER wrapper, not the outer Group.
 */
.ms-home-services__grid {
    display:
        block !important;

    width:
        100% !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


.ms-home-services__grid
> .wp-block-group__inner-container {
    display:
        grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap:
        14px !important;

    align-items:
        stretch !important;

    width:
        100% !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


.ms-home-services__grid
> .wp-block-group__inner-container
> .ms-home-service-card {
    width:
        100% !important;

    min-width:
        0 !important;

    max-width:
        none !important;

    height:
        100%;

    margin:
        0 !important;
}


/*
 * Fallback for Gutenberg versions that render Group children directly.
 */
.ms-home-services__grid:not(:has(> .wp-block-group__inner-container)) {
    display:
        grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap:
        14px !important;

    align-items:
        stretch !important;
}


/* ----------------------------------------------------------
   NEW CORE-COLUMNS SERVICES PATTERN
   ---------------------------------------------------------- */

.ms-home-services__rows {
    width:
        100%;

    margin:
        0 !important;
}


.ms-home-services__row {
    display:
        flex !important;

    flex-wrap:
        nowrap !important;

    align-items:
        stretch !important;

    gap:
        14px !important;

    width:
        100%;

    margin:
        0 !important;
}


.ms-home-services__row
+ .ms-home-services__row {
    margin-top:
        14px !important;
}


.ms-home-services__row
> .wp-block-column {
    flex:
        1 1 50% !important;

    width:
        50% !important;

    min-width:
        0 !important;

    margin:
        0 !important;
}


.ms-home-services__row
.ms-home-service-card {
    height:
        100%;
}


/* ----------------------------------------------------------
   GENERIC V2 COLUMNS UTILITIES FOR FUTURE PATTERNS
   ---------------------------------------------------------- */

/*
 * These utilities will be used from now on instead of Group grids.
 * They are safe because Gutenberg Core Columns owns the horizontal layout.
 */
.ms-v2-columns-2,
.ms-v2-columns-3,
.ms-v2-columns-4 {
    display:
        flex !important;

    flex-wrap:
        nowrap !important;

    align-items:
        stretch !important;

    gap:
        14px !important;

    width:
        100%;

    margin:
        0 !important;
}


.ms-v2-columns-2
> .wp-block-column {
    flex:
        1 1 50% !important;

    width:
        50% !important;
}


.ms-v2-columns-3
> .wp-block-column {
    flex:
        1 1 33.333% !important;

    width:
        33.333% !important;
}


.ms-v2-columns-4
> .wp-block-column {
    flex:
        1 1 25% !important;

    width:
        25% !important;
}


.ms-v2-columns-2
> .wp-block-column,
.ms-v2-columns-3
> .wp-block-column,
.ms-v2-columns-4
> .wp-block-column {
    min-width:
        0 !important;

    margin:
        0 !important;
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 921px) {

    .ms-home-services__grid
    > .wp-block-group__inner-container,
    .ms-home-services__grid:not(:has(> .wp-block-group__inner-container)) {
        grid-template-columns:
            1fr 1fr !important;
    }


    .ms-v2-columns-4 {
        display:
            grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .ms-v2-columns-4
    > .wp-block-column {
        width:
            auto !important;

        flex:
            none !important;
    }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 700px) {

    .ms-home-services__grid
    > .wp-block-group__inner-container,
    .ms-home-services__grid:not(:has(> .wp-block-group__inner-container)) {
        grid-template-columns:
            1fr !important;
    }


    .ms-home-services__row {
        flex-direction:
            column;
    }


    .ms-home-services__row
    > .wp-block-column {
        width:
            100% !important;

        flex:
            1 1 auto !important;
    }


    .ms-v2-columns-2,
    .ms-v2-columns-3,
    .ms-v2-columns-4 {
        display:
            flex !important;

        flex-direction:
            column;

        gap:
            14px !important;
    }


    .ms-v2-columns-2
    > .wp-block-column,
    .ms-v2-columns-3
    > .wp-block-column,
    .ms-v2-columns-4
    > .wp-block-column {
        width:
            100% !important;

        flex:
            1 1 auto !important;
    }

}

/* ==========================================================
   SERVICE CARD INNER WRAPPER FIX
   Version: 1.0.19
   Gutenberg/Astra inserts .wp-block-group__inner-container
   inside each service card. The icon + body grid must be applied
   to that wrapper, not to the outer Group itself.
   ========================================================== */


/* Outer card remains the visual shell only. */
.ms-home-service-card {
    display: block !important;

    min-height: 0 !important;
    height: 100%;

    padding: 0 !important;

    overflow: hidden;
}


/* Actual internal layout: icon + body. */
.ms-home-service-card
> .wp-block-group__inner-container {
    display: grid !important;

    grid-template-columns:
        64px minmax(0, 1fr);

    gap:
        18px;

    align-items:
        start;

    width:
        100%;

    min-height:
        100%;

    margin:
        0 !important;

    padding:
        24px !important;
}


/* Keep the top brand accent relative to the outer shell. */
.ms-home-service-card::before {
    z-index:
        3;
}


/* Never let Gutenberg wrappers add extra vertical spacing. */
.ms-home-service-card
> .wp-block-group__inner-container
> * {
    margin-block-start:
        0 !important;
}


/* Icon stays compact. */
.ms-home-service-card__icon {
    align-self:
        start;
}


/* Body uses its full grid column width. */
.ms-home-service-card__body {
    width:
        100% !important;

    min-width:
        0 !important;

    max-width:
        none !important;

    margin:
        0 !important;
}


/*
 * Body itself may also have Gutenberg's inner wrapper.
 * Keep it vertical and remove inherited gaps.
 */
.ms-home-service-card__body
> .wp-block-group__inner-container {
    display:
        block !important;

    width:
        100% !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


/* Restore explicit spacing inside the copy. */
.ms-home-service-card__body
> .wp-block-group__inner-container
> * {
    margin-block-start:
        0 !important;
}


.ms-home-service-card__body
> .wp-block-group__inner-container
> .ms-home-service-card__copy {
    margin-top:
        8px !important;
}


.ms-home-service-card__body
> .wp-block-group__inner-container
> .ms-home-service-card__features {
    margin-top:
        14px !important;
}


.ms-home-service-card__body
> .wp-block-group__inner-container
> p:has(.ms-home-service-card__cta) {
    margin:
        16px 0 0 !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-service-card
    > .wp-block-group__inner-container {
        grid-template-columns:
            56px minmax(0, 1fr);

        gap:
            14px;

        padding:
            20px !important;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .ms-home-service-card
    > .wp-block-group__inner-container {
        grid-template-columns:
            50px minmax(0, 1fr);

        gap:
            13px;

        padding:
            18px !important;
    }

}

/* ==========================================================
   SERVICE CARD COMPACT CONTENT + CTA BUTTON
   Version: 1.0.20
   ========================================================== */


/* ----------------------------------------------------------
   Remove inherited Gutenberg vertical gaps inside card content
   ---------------------------------------------------------- */

.ms-home-service-card {
    --wp--style--block-gap: 0px !important;
}


.ms-home-service-card
> .wp-block-group__inner-container {
    row-gap: 0 !important;
    column-gap: 18px !important;
}


.ms-home-service-card__body,
.ms-home-service-card__body
> .wp-block-group__inner-container {
    --wp--style--block-gap: 0px !important;

    gap: 0 !important;

    min-height: 0 !important;
    height: auto !important;
}


.ms-home-service-card__body
> .wp-block-group__inner-container
> * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}


/* Label */
.ms-home-service-card__label {
    margin:
        0 0 4px !important;
}


/* Heading */
.ms-home-service-card h3 {
    margin:
        0 !important;
}


/* Description */
.ms-home-service-card__copy {
    margin:
        7px 0 0 !important;
}


/* ----------------------------------------------------------
   FEATURES / CHIPS
   Fix nested Group wrapper
   ---------------------------------------------------------- */

.ms-home-service-card__features {
    display:
        block !important;

    width:
        100% !important;

    min-height:
        0 !important;

    height:
        auto !important;

    margin:
        11px 0 0 !important;

    padding:
        0 !important;

    --wp--style--block-gap:
        0px !important;
}


.ms-home-service-card__features
> .wp-block-group__inner-container {
    display:
        flex !important;

    flex-direction:
        row !important;

    flex-wrap:
        wrap !important;

    align-items:
        center !important;

    justify-content:
        flex-start !important;

    gap:
        6px !important;

    width:
        100% !important;

    min-height:
        0 !important;

    height:
        auto !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


.ms-home-service-card__features
> .wp-block-group__inner-container
> * {
    margin:
        0 !important;
}


/* Support markup without inner wrapper too */
.ms-home-service-card__features:not(:has(> .wp-block-group__inner-container)) {
    display:
        flex !important;

    flex-direction:
        row !important;

    flex-wrap:
        wrap !important;

    gap:
        6px !important;
}


/* Compact chips */
.ms-home-service-card__features p {
    padding:
        5px 8px !important;

    margin:
        0 !important;

    line-height:
        1.35 !important;
}


/* ----------------------------------------------------------
   CTA PARAGRAPH
   ---------------------------------------------------------- */

.ms-home-service-card__body
p:has(.ms-home-service-card__cta) {
    margin:
        13px 0 0 !important;

    padding:
        0 !important;

    min-height:
        0 !important;

    height:
        auto !important;
}


/* ----------------------------------------------------------
   CTA BUTTON
   ---------------------------------------------------------- */

.ms-home-service-card__cta {
    display:
        inline-flex !important;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    width:
        fit-content;

    min-height:
        38px;

    margin:
        0 !important;

    padding:
        8px 14px;

    border:
        1px solid #F79A10;

    border-radius:
        8px;

    background:
        #F79A10;

    color:
        #FFFFFF !important;

    font-size:
        12.5px !important;

    font-weight:
        800;

    line-height:
        1.4;

    text-decoration:
        none !important;

    box-shadow:
        0 5px 14px
        rgba(247, 154, 16, .16);

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.ms-home-service-card__cta::after {
    content:
        "←";

    font-size:
        14px;

    line-height:
        1;
}


.ms-home-service-card__cta:hover {
    background:
        #E68900;

    border-color:
        #E68900;

    color:
        #FFFFFF !important;

    transform:
        translateY(-1px);

    box-shadow:
        0 7px 18px
        rgba(247, 154, 16, .22);
}


/* ----------------------------------------------------------
   Compact overall card vertical rhythm
   ---------------------------------------------------------- */

.ms-home-service-card
> .wp-block-group__inner-container {
    padding-top:
        18px !important;

    padding-bottom:
        18px !important;
}


.ms-home-service-card__icon {
    margin:
        0 !important;
}


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

    .ms-home-service-card
    > .wp-block-group__inner-container {
        padding-top:
            17px !important;

        padding-bottom:
            17px !important;
    }

}


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

    .ms-home-service-card
    > .wp-block-group__inner-container {
        padding-top:
            16px !important;

        padding-bottom:
            16px !important;
    }


    .ms-home-service-card__cta {
        min-height:
            40px;

        padding:
            9px 14px;
    }

}

/* ==========================================================
   SERVICE CARD BALANCED DENSITY
   Version: 1.0.21
   Larger type + tighter vertical rhythm + no forced empty height.
   ========================================================== */


/* ----------------------------------------------------------
   STOP CARDS FROM STRETCHING TALLER THAN THEIR CONTENT
   ---------------------------------------------------------- */

.ms-home-services__row {
    align-items:
        flex-start !important;
}


.ms-home-services__row
> .wp-block-column {
    align-self:
        flex-start !important;
}


.ms-home-services__row
.ms-home-service-card,
.ms-home-services__grid
.ms-home-service-card,
.ms-home-service-card {
    height:
        auto !important;

    min-height:
        0 !important;
}


.ms-home-service-card
> .wp-block-group__inner-container {
    min-height:
        0 !important;

    height:
        auto !important;
}


/* Old Group-grid pattern too */
.ms-home-services__grid
> .wp-block-group__inner-container {
    align-items:
        start !important;
}


/* ----------------------------------------------------------
   CARD PADDING
   ---------------------------------------------------------- */

.ms-home-service-card
> .wp-block-group__inner-container {
    padding:
        16px 18px !important;

    column-gap:
        15px !important;
}


/* ----------------------------------------------------------
   ICON
   ---------------------------------------------------------- */

.ms-home-service-card__icon {
    width:
        54px !important;

    height:
        54px !important;

    border-radius:
        13px !important;
}


.ms-home-service-card__icon::before {
    width:
        26px !important;

    height:
        26px !important;

    background-size:
        26px 26px !important;
}


/* ----------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------- */

.ms-home-service-card__label {
    margin:
        0 0 4px !important;

    font-size:
        12.5px !important;

    line-height:
        1.45 !important;
}


.ms-home-service-card h3 {
    margin:
        0 !important;

    font-size:
        22px !important;

    line-height:
        1.42 !important;
}


.ms-home-service-card__copy {
    margin:
        6px 0 0 !important;

    font-size:
        14.5px !important;

    line-height:
        1.75 !important;
}


/* ----------------------------------------------------------
   FEATURES / CHIPS
   ---------------------------------------------------------- */

.ms-home-service-card__features {
    margin:
        10px 0 0 !important;
}


.ms-home-service-card__features
> .wp-block-group__inner-container {
    gap:
        6px !important;
}


.ms-home-service-card__features p {
    padding:
        5px 8px !important;

    font-size:
        11.5px !important;

    line-height:
        1.3 !important;
}


/* ----------------------------------------------------------
   CTA
   ---------------------------------------------------------- */

.ms-home-service-card__body
p:has(.ms-home-service-card__cta) {
    margin:
        11px 0 0 !important;
}


.ms-home-service-card__cta {
    min-height:
        38px !important;

    padding:
        8px 14px !important;

    font-size:
        13px !important;
}


/* ----------------------------------------------------------
   TIGHTEN BODY WRAPPER
   ---------------------------------------------------------- */

.ms-home-service-card__body,
.ms-home-service-card__body
> .wp-block-group__inner-container {
    min-height:
        0 !important;

    height:
        auto !important;
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 921px) {

    .ms-home-service-card
    > .wp-block-group__inner-container {
        padding:
            15px 16px !important;

        column-gap:
            13px !important;
    }


    .ms-home-service-card h3 {
        font-size:
            20px !important;
    }


    .ms-home-service-card__copy {
        font-size:
            14px !important;
    }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .ms-home-service-card
    > .wp-block-group__inner-container {
        padding:
            15px !important;
    }


    .ms-home-service-card h3 {
        font-size:
            19px !important;
    }


    .ms-home-service-card__copy {
        font-size:
            13.5px !important;
    }

}

/* ==========================================================
   HOMEPAGE PROCESS / HOW I WORK
   Version: 1.0.1
   Core Columns only — no Group-based horizontal grid
   ========================================================== */

.ms-home-process {
    padding-top: 58px;
    padding-bottom: 58px;

    background: #FFFFFF;
}


.ms-home-process > .wp-block-group__inner-container {
    width: min(1120px, calc(100% - 48px)) !important;
}


/* ----------------------------------------------------------
   SECTION HEAD
   ---------------------------------------------------------- */

.ms-home-process__head {
    max-width: 760px;

    margin:
        0 auto 26px !important;

    text-align: center;
}


.ms-home-process__head .ms-v2-eyebrow {
    margin:
        0 auto 12px !important;
}


.ms-home-process__head .ms-v2-section-title,
.ms-home-process__head .ms-v2-section-copy {
    text-align: center;
}


.ms-home-process__head .ms-v2-section-copy {
    max-width: 700px;

    margin:
        10px auto 0 !important;
}


/* ----------------------------------------------------------
   PROCESS COLUMNS
   ---------------------------------------------------------- */

.ms-home-process__steps {
    position: relative;

    display: flex !important;

    flex-wrap: nowrap !important;

    align-items: stretch !important;

    gap: 14px !important;

    width: 100%;

    margin: 0 !important;
}


/* Connector line */
.ms-home-process__steps::before {
    content: "";

    position: absolute;

    inset-block-start: 38px;
    inset-inline-start: 8%;
    inset-inline-end: 8%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(74, 124, 198, .10),
            rgba(74, 124, 198, .32),
            rgba(247, 154, 16, .32),
            rgba(74, 124, 198, .10)
        );

    pointer-events: none;

    z-index: 0;
}


.ms-home-process__step {
    position: relative;

    flex: 1 1 25% !important;

    width: 25% !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding:
        18px 18px 20px;

    border:
        1px solid #DCE3EA;

    border-radius:
        14px;

    background:
        #FFFFFF;

    box-shadow:
        0 7px 22px
        rgba(27, 36, 48, .04);

    text-align: center;

    z-index: 1;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}


.ms-home-process__step:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(74, 124, 198, .35);

    box-shadow:
        0 12px 28px
        rgba(27, 36, 48, .07);
}


/* Alternating accent */
.ms-home-process__step:nth-child(odd) {
    border-top:
        3px solid #4A7CC6;
}


.ms-home-process__step:nth-child(even) {
    border-top:
        3px solid #F79A10;
}


/* Step number */
.ms-home-process__number {
    position: relative;

    z-index: 2;

    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 14px !important;

    border:
        4px solid #FFFFFF;

    border-radius:
        999px;

    background:
        #EEF5FD;

    color:
        #4A7CC6 !important;

    font-family:
        Arial, sans-serif;

    font-size:
        15px !important;

    font-weight:
        800;

    line-height:
        1;
}


.ms-home-process__step:nth-child(even)
.ms-home-process__number {
    background:
        #FFF4E5;

    color:
        #D97E00 !important;
}


/* Small phase label */
.ms-home-process__label {
    margin:
        0 0 5px !important;

    color:
        #4A7CC6 !important;

    font-size:
        11.5px !important;

    font-weight:
        700;

    line-height:
        1.45;
}


.ms-home-process__step:nth-child(even)
.ms-home-process__label {
    color:
        #D97E00 !important;
}


/* Step title */
.ms-home-process__step h3 {
    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        19px !important;

    font-weight:
        800 !important;

    line-height:
        1.5 !important;

    text-align:
        center;
}


/* Step copy */
.ms-home-process__step-copy {
    margin:
        8px 0 0 !important;

    color:
        #667282 !important;

    font-size:
        13.5px !important;

    line-height:
        1.8 !important;

    text-align:
        center;
}


/* Bottom output chip */
.ms-home-process__output {
    width: fit-content;

    margin:
        13px auto 0 !important;

    padding:
        5px 9px;

    border:
        1px solid #E6EBF0;

    border-radius:
        7px;

    background:
        #FAFBFD;

    color:
        #4F5B6A !important;

    font-size:
        10.8px !important;

    font-weight:
        700;

    line-height:
        1.4;

    white-space:
        nowrap;
}


/* ----------------------------------------------------------
   SMALL CTA UNDER STEPS
   ---------------------------------------------------------- */

.ms-home-process__cta {
    display: flex !important;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    margin-top:
        22px !important;
}


.ms-home-process__cta p {
    margin:
        0 !important;

    color:
        #667282 !important;

    font-size:
        13px !important;

    line-height:
        1.6;
}


.ms-home-process__cta .wp-block-button {
    margin:
        0 !important;
}


.ms-home-process__cta .wp-block-button__link {
    min-height:
        40px;

    padding:
        8px 15px;

    border-radius:
        8px;

    background:
        #F79A10;

    color:
        #FFFFFF !important;

    font-size:
        12.5px;

    font-weight:
        800;

    box-shadow:
        0 5px 14px
        rgba(247, 154, 16, .16);
}


.ms-home-process__cta .wp-block-button__link:hover {
    background:
        #E68900;

    color:
        #FFFFFF !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-process {
        padding-top:
            50px;

        padding-bottom:
            50px;
    }


    .ms-home-process > .wp-block-group__inner-container {
        width:
            calc(100% - 40px) !important;
    }


    .ms-home-process__steps {
        display:
            grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            14px !important;
    }


    .ms-home-process__steps::before {
        display:
            none;
    }


    .ms-home-process__step {
        width:
            auto !important;

        flex:
            none !important;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .ms-home-process {
        padding-top:
            42px;

        padding-bottom:
            42px;
    }


    .ms-home-process > .wp-block-group__inner-container {
        width:
            calc(100% - 28px) !important;
    }


    .ms-home-process__head {
        margin-bottom:
            20px !important;
    }


    .ms-home-process__steps {
        grid-template-columns:
            1fr;
    }


    .ms-home-process__step {
        padding:
            17px 16px 18px;
    }


    .ms-home-process__cta {
        flex-direction:
            column;

        gap:
            9px;

        margin-top:
            18px !important;
    }

}

/* ==========================================================
   HOMEPAGE PORTFOLIO / RESULTS
   Version: 1.0.1
   Core Columns only
   ========================================================== */

.ms-home-portfolio {
    padding-top: 58px;
    padding-bottom: 58px;

    background: #F6F8FB;
}


.ms-home-portfolio > .wp-block-group__inner-container {
    width: min(1120px, calc(100% - 48px)) !important;
}


/* ----------------------------------------------------------
   SECTION HEAD
   ---------------------------------------------------------- */

.ms-home-portfolio__head {
    max-width: 760px;

    margin:
        0 auto 24px !important;

    text-align: center;
}


.ms-home-portfolio__head .ms-v2-eyebrow {
    margin:
        0 auto 12px !important;
}


.ms-home-portfolio__head .ms-v2-section-title,
.ms-home-portfolio__head .ms-v2-section-copy {
    text-align: center;
}


.ms-home-portfolio__head .ms-v2-section-copy {
    max-width: 700px;

    margin:
        10px auto 0 !important;
}


/* ----------------------------------------------------------
   PORTFOLIO COLUMNS
   ---------------------------------------------------------- */

.ms-home-portfolio__cards {
    display: flex !important;

    flex-wrap: nowrap !important;

    align-items: stretch !important;

    gap: 14px !important;

    width: 100%;

    margin: 0 !important;
}


.ms-home-portfolio__card {
    position: relative;

    flex: 1 1 33.333% !important;

    width: 33.333% !important;

    min-width: 0 !important;

    overflow: hidden;

    margin: 0 !important;

    padding: 0 !important;

    border:
        1px solid #DCE3EA;

    border-radius:
        16px;

    background:
        #FFFFFF;

    box-shadow:
        0 7px 22px
        rgba(27, 36, 48, .04);

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}


.ms-home-portfolio__card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(74, 124, 198, .35);

    box-shadow:
        0 12px 28px
        rgba(27, 36, 48, .07);
}


/* ----------------------------------------------------------
   VISUAL AREA
   No image block required yet.
   Can later be replaced with a real project screenshot.
   ---------------------------------------------------------- */

.ms-home-portfolio__visual {
    position: relative;

    min-height: 170px;

    display: flex !important;

    align-items: flex-end;

    justify-content: flex-start;

    overflow: hidden;

    margin: 0 !important;

    padding:
        18px;

    border-bottom:
        1px solid #E7ECF1;

    background:
        linear-gradient(
            145deg,
            #EEF5FD 0%,
            #F9FBFD 65%,
            #FFFFFF 100%
        );
}


.ms-home-portfolio__card:nth-child(2)
.ms-home-portfolio__visual {
    background:
        linear-gradient(
            145deg,
            #FFF4E5 0%,
            #FFF9F1 65%,
            #FFFFFF 100%
        );
}


.ms-home-portfolio__visual::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    inset-inline-end: 18px;
    inset-block-start: 18px;

    border:
        1px solid rgba(74, 124, 198, .15);

    border-radius:
        50%;

    background:
        rgba(255, 255, 255, .45);
}


.ms-home-portfolio__card:nth-child(2)
.ms-home-portfolio__visual::before {
    border-color:
        rgba(247, 154, 16, .20);
}


.ms-home-portfolio__visual::after {
    content: "";

    position: absolute;

    width: 62%;
    height: 78px;

    inset-inline-end: 18px;
    inset-block-end: 22px;

    border:
        1px solid rgba(74, 124, 198, .16);

    border-radius:
        10px;

    background:
        rgba(255, 255, 255, .72);

    box-shadow:
        0 8px 18px
        rgba(27, 36, 48, .05);
}


.ms-home-portfolio__card:nth-child(2)
.ms-home-portfolio__visual::after {
    border-color:
        rgba(247, 154, 16, .18);
}


/* Visual category pill */
.ms-home-portfolio__visual-label {
    position: relative;

    z-index: 2;

    width: fit-content;

    margin: 0 !important;

    padding:
        5px 9px;

    border:
        1px solid rgba(74, 124, 198, .15);

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, .90);

    color:
        #4A7CC6 !important;

    font-size:
        11px !important;

    font-weight:
        800;

    line-height:
        1.4;
}


.ms-home-portfolio__card:nth-child(2)
.ms-home-portfolio__visual-label {
    border-color:
        rgba(247, 154, 16, .20);

    color:
        #D97E00 !important;
}


/* ----------------------------------------------------------
   CARD BODY
   ---------------------------------------------------------- */

.ms-home-portfolio__body {
    margin: 0 !important;

    padding:
        19px 20px 20px;

    --wp--style--block-gap:
        0px !important;
}


.ms-home-portfolio__body
> .wp-block-group__inner-container {
    display: block !important;

    margin: 0 !important;

    padding: 0 !important;

    --wp--style--block-gap:
        0px !important;
}


.ms-home-portfolio__body
> .wp-block-group__inner-container
> * {
    margin-block-start:
        0 !important;

    margin-block-end:
        0 !important;
}


.ms-home-portfolio__type {
    margin:
        0 0 5px !important;

    color:
        #4A7CC6 !important;

    font-size:
        11.5px !important;

    font-weight:
        700;

    line-height:
        1.45;
}


.ms-home-portfolio__card:nth-child(2)
.ms-home-portfolio__type {
    color:
        #D97E00 !important;
}


.ms-home-portfolio__card h3 {
    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        20px !important;

    font-weight:
        800 !important;

    line-height:
        1.5 !important;

    text-align:
        right;
}


.ms-home-portfolio__copy {
    margin:
        7px 0 0 !important;

    color:
        #667282 !important;

    font-size:
        13.5px !important;

    line-height:
        1.8 !important;

    text-align:
        right;
}


/* Outcome tags */
.ms-home-portfolio__tags {
    display: block !important;

    margin:
        11px 0 0 !important;

    --wp--style--block-gap:
        0px !important;
}


.ms-home-portfolio__tags
> .wp-block-group__inner-container {
    display: flex !important;

    flex-wrap: wrap !important;

    gap:
        6px !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


.ms-home-portfolio__tags p {
    margin:
        0 !important;

    padding:
        5px 8px;

    border:
        1px solid #E6EBF0;

    border-radius:
        7px;

    background:
        #FAFBFD;

    color:
        #4F5B6A !important;

    font-size:
        10.8px !important;

    font-weight:
        600;

    line-height:
        1.35;
}


/* ----------------------------------------------------------
   SECTION CTA
   ---------------------------------------------------------- */

.ms-home-portfolio__cta {
    display: flex !important;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    margin-top:
        22px !important;
}


.ms-home-portfolio__cta p {
    margin:
        0 !important;

    color:
        #667282 !important;

    font-size:
        13px !important;

    line-height:
        1.6;
}


.ms-home-portfolio__cta .wp-block-button {
    margin:
        0 !important;
}


.ms-home-portfolio__cta .wp-block-button__link {
    min-height:
        40px;

    padding:
        8px 15px;

    border-radius:
        8px;

    background:
        #F79A10;

    color:
        #FFFFFF !important;

    font-size:
        12.5px;

    font-weight:
        800;

    box-shadow:
        0 5px 14px
        rgba(247, 154, 16, .16);
}


.ms-home-portfolio__cta .wp-block-button__link:hover {
    background:
        #E68900;

    color:
        #FFFFFF !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-portfolio {
        padding-top:
            50px;

        padding-bottom:
            50px;
    }


    .ms-home-portfolio > .wp-block-group__inner-container {
        width:
            calc(100% - 40px) !important;
    }


    .ms-home-portfolio__cards {
        display:
            grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            14px !important;
    }


    .ms-home-portfolio__card {
        width:
            auto !important;

        flex:
            none !important;
    }


    .ms-home-portfolio__card:last-child {
        grid-column:
            1 / -1;

        width:
            min(100%, 540px) !important;

        justify-self:
            center;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .ms-home-portfolio {
        padding-top:
            42px;

        padding-bottom:
            42px;
    }


    .ms-home-portfolio > .wp-block-group__inner-container {
        width:
            calc(100% - 28px) !important;
    }


    .ms-home-portfolio__head {
        margin-bottom:
            20px !important;
    }


    .ms-home-portfolio__cards {
        grid-template-columns:
            1fr;
    }


    .ms-home-portfolio__card:last-child {
        grid-column:
            auto;

        width:
            100% !important;
    }


    .ms-home-portfolio__visual {
        min-height:
            150px;
    }


    .ms-home-portfolio__cta {
        flex-direction:
            column;

        gap:
            9px;

        margin-top:
            18px !important;
    }

}

/* ==========================================================
   HOMEPAGE TRAINING
   Version: 1.0.1
   Core Columns only
   ========================================================== */

.ms-home-training {
    padding-top: 58px;
    padding-bottom: 58px;

    background: #FFFFFF;
}


.ms-home-training > .wp-block-group__inner-container {
    width: min(1120px, calc(100% - 48px)) !important;
}


/* ----------------------------------------------------------
   SECTION HEAD
   ---------------------------------------------------------- */

.ms-home-training__head {
    max-width: 760px;

    margin:
        0 auto 24px !important;

    text-align: center;
}


.ms-home-training__head .ms-v2-eyebrow {
    margin:
        0 auto 12px !important;
}


.ms-home-training__head .ms-v2-section-title,
.ms-home-training__head .ms-v2-section-copy {
    text-align: center;
}


.ms-home-training__head .ms-v2-section-copy {
    max-width: 700px;

    margin:
        10px auto 0 !important;
}


/* ----------------------------------------------------------
   MAIN TRAINING LAYOUT
   ---------------------------------------------------------- */

.ms-home-training__layout {
    display: flex !important;

    flex-wrap: nowrap !important;

    align-items: stretch !important;

    gap: 14px !important;

    width: 100%;

    margin: 0 !important;
}


.ms-home-training__layout
> .wp-block-column {
    min-width: 0 !important;

    margin: 0 !important;
}


/* Featured program */
.ms-home-training__featured {
    flex: 1.35 1 0 !important;

    width: auto !important;

    overflow: hidden;

    padding: 0 !important;

    border:
        1px solid #DCE3EA;

    border-radius:
        18px;

    background:
        linear-gradient(
            145deg,
            #EEF5FD 0%,
            #FFFFFF 72%
        );

    box-shadow:
        0 10px 26px
        rgba(27, 36, 48, .05);
}


.ms-home-training__featured-inner {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        190px;

    gap:
        24px;

    align-items: center;

    min-height: 100%;

    margin: 0 !important;

    padding:
        26px;
}


.ms-home-training__featured-copy {
    min-width: 0;
}


.ms-home-training__featured-label {
    width: fit-content;

    margin:
        0 0 8px !important;

    padding:
        5px 9px;

    border:
        1px solid rgba(74, 124, 198, .16);

    border-radius:
        999px;

    background:
        #FFFFFF;

    color:
        #4A7CC6 !important;

    font-size:
        11px !important;

    font-weight:
        800;

    line-height:
        1.4;
}


.ms-home-training__featured h3 {
    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        25px !important;

    font-weight:
        800 !important;

    line-height:
        1.45 !important;

    text-align:
        right;
}


.ms-home-training__featured-description {
    margin:
        9px 0 0 !important;

    color:
        #5F6B7A !important;

    font-size:
        14px !important;

    line-height:
        1.85 !important;

    text-align:
        right;
}


.ms-home-training__featured-tags {
    display: block !important;

    margin:
        13px 0 0 !important;

    --wp--style--block-gap:
        0px !important;
}


.ms-home-training__featured-tags
> .wp-block-group__inner-container {
    display: flex !important;

    flex-wrap: wrap !important;

    gap:
        6px !important;

    margin: 0 !important;

    padding: 0 !important;
}


.ms-home-training__featured-tags p {
    margin:
        0 !important;

    padding:
        5px 8px;

    border:
        1px solid #DCE3EA;

    border-radius:
        7px;

    background:
        rgba(255,255,255,.8);

    color:
        #4F5B6A !important;

    font-size:
        10.8px !important;

    font-weight:
        700;
}


/* CTA button */
.ms-home-training__featured-cta {
    margin:
        15px 0 0 !important;
}


.ms-home-training__featured-cta
.wp-block-button__link {
    min-height:
        40px;

    padding:
        8px 15px;

    border-radius:
        8px;

    background:
        #F79A10;

    color:
        #FFFFFF !important;

    font-size:
        12.5px;

    font-weight:
        800;

    box-shadow:
        0 5px 14px
        rgba(247, 154, 16, .16);
}


.ms-home-training__featured-cta
.wp-block-button__link:hover {
    background:
        #E68900;

    color:
        #FFFFFF !important;
}


/* Visual */
.ms-home-training__visual {
    position: relative;

    min-height:
        220px;

    overflow: hidden;

    border-radius:
        14px;

    background:
        linear-gradient(
            145deg,
            #E6EFFB 0%,
            #FFFFFF 100%
        );
}


.ms-home-training__visual::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    inset-block-start: 28px;
    inset-inline-start: 50%;

    border:
        1px solid rgba(74, 124, 198, .18);

    border-radius:
        50%;

    background:
        rgba(255,255,255,.42);

    transform:
        translateX(-50%);
}


.ms-home-training__visual::after {
    content: "";

    position: absolute;

    width: 72%;
    height: 72px;

    inset-inline-start: 50%;
    inset-block-end: 28px;

    border:
        1px solid rgba(74, 124, 198, .18);

    border-radius:
        10px;

    background:
        rgba(255,255,255,.72);

    transform:
        translateX(-50%);

    box-shadow:
        0 8px 18px
        rgba(27, 36, 48, .05);
}


/* ----------------------------------------------------------
   SIDE PROGRAMS
   ---------------------------------------------------------- */

.ms-home-training__side {
    flex: .85 1 0 !important;

    width: auto !important;

    display: flex !important;

    flex-direction: column;

    gap:
        14px;

    margin: 0 !important;
}


.ms-home-training__card {
    position: relative;

    flex:
        1 1 0;

    margin:
        0 !important;

    padding:
        20px;

    border:
        1px solid #DCE3EA;

    border-radius:
        16px;

    background:
        #FFFFFF;

    box-shadow:
        0 7px 22px
        rgba(27, 36, 48, .04);
}


.ms-home-training__card::before {
    content: "";

    position: absolute;

    inset-block-start: 0;
    inset-inline-start: 20px;

    width: 50px;
    height: 3px;

    border-radius:
        0 0 999px 999px;

    background:
        #4A7CC6;
}


.ms-home-training__card:nth-child(2)::before {
    background:
        #F79A10;
}


.ms-home-training__card-label {
    margin:
        0 0 5px !important;

    color:
        #4A7CC6 !important;

    font-size:
        11px !important;

    font-weight:
        800;
}


.ms-home-training__card:nth-child(2)
.ms-home-training__card-label {
    color:
        #D97E00 !important;
}


.ms-home-training__card h3 {
    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        19px !important;

    font-weight:
        800 !important;

    line-height:
        1.5 !important;

    text-align:
        right;
}


.ms-home-training__card-copy {
    margin:
        7px 0 0 !important;

    color:
        #667282 !important;

    font-size:
        13px !important;

    line-height:
        1.75 !important;

    text-align:
        right;
}


.ms-home-training__card-link {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

    margin-top:
        11px !important;

    color:
        #4A7CC6 !important;

    font-size:
        12px !important;

    font-weight:
        800;

    text-decoration:
        none !important;
}


.ms-home-training__card-link::after {
    content:
        "←";
}


/* ----------------------------------------------------------
   SECTION CTA
   ---------------------------------------------------------- */

.ms-home-training__footer {
    display: flex !important;

    align-items: center;

    justify-content: center;

    gap:
        10px;

    margin-top:
        22px !important;
}


.ms-home-training__footer p {
    margin:
        0 !important;

    color:
        #667282 !important;

    font-size:
        13px !important;
}


.ms-home-training__footer
.wp-block-button__link {
    min-height:
        40px;

    padding:
        8px 15px;

    border-radius:
        8px;

    background:
        #4A7CC6;

    color:
        #FFFFFF !important;

    font-size:
        12.5px;

    font-weight:
        800;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-training {
        padding-top:
            50px;

        padding-bottom:
            50px;
    }


    .ms-home-training > .wp-block-group__inner-container {
        width:
            calc(100% - 40px) !important;
    }


    .ms-home-training__layout {
        flex-direction:
            column;
    }


    .ms-home-training__featured,
    .ms-home-training__side {
        width:
            100% !important;

        flex:
            1 1 auto !important;
    }


    .ms-home-training__side {
        display:
            grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .ms-home-training {
        padding-top:
            42px;

        padding-bottom:
            42px;
    }


    .ms-home-training > .wp-block-group__inner-container {
        width:
            calc(100% - 28px) !important;
    }


    .ms-home-training__head {
        margin-bottom:
            20px !important;
    }


    .ms-home-training__featured-inner {
        grid-template-columns:
            1fr;

        gap:
            18px;

        padding:
            20px;
    }


    .ms-home-training__visual {
        min-height:
            170px;
    }


    .ms-home-training__side {
        grid-template-columns:
            1fr;
    }


    .ms-home-training__footer {
        flex-direction:
            column;

        gap:
            9px;

        margin-top:
            18px !important;
    }

}

/* ==========================================================
   HOMEPAGE ABOUT
   Version: 1.0.1
   Core Columns only
   ========================================================== */

.ms-home-about {
    padding-top: 58px;
    padding-bottom: 58px;

    background: #F6F8FB;
}


.ms-home-about > .wp-block-group__inner-container {
    width: min(1080px, calc(100% - 48px)) !important;
}


/* ----------------------------------------------------------
   TWO-COLUMN LAYOUT
   ---------------------------------------------------------- */

.ms-home-about__layout {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, .92fr);

    grid-template-areas:
        "copy media";

    gap: 56px;

    align-items: stretch !important;

    width: 100%;

    margin: 0 !important;

    direction: ltr;
}


.ms-home-about__layout
> .wp-block-column {
    width: auto !important;
    min-width: 0 !important;

    flex: none !important;
    flex-basis: auto !important;

    margin: 0 !important;
}


.ms-home-about__copy {
    grid-area: copy;

    direction: rtl;

    display: flex !important;
    flex-direction: column;

    align-items: flex-start;
    justify-content: flex-start;

    text-align: right;
}


.ms-home-about__media {
    grid-area: media;

    direction: rtl;

    position: relative;

    display: flex !important;

    align-items: stretch;
    justify-content: stretch;

    min-height: 0;

    overflow: visible;

    margin: 0 !important;
}


/* ----------------------------------------------------------
   COPY
   ---------------------------------------------------------- */

.ms-home-about__copy .ms-v2-eyebrow {
    margin:
        0 0 12px !important;
}


.ms-home-about__copy h2 {
    max-width: 620px;

    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        clamp(30px, 2.7vw, 40px) !important;

    font-weight:
        800 !important;

    line-height:
        1.45 !important;

    text-align:
        right;
}


.ms-home-about__copy h2 strong {
    color:
        #4A7CC6;
}


.ms-home-about__intro {
    max-width:
        630px;

    margin:
        14px 0 0 !important;

    color:
        #5F6B7A !important;

    font-size:
        14.5px !important;

    line-height:
        1.9 !important;

    text-align:
        right;
}


/* Key points */
.ms-home-about__points {
    display: block !important;

    width: 100%;

    margin:
        18px 0 0 !important;

    --wp--style--block-gap:
        0px !important;
}


.ms-home-about__points
> .wp-block-group__inner-container {
    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        9px;

    margin:
        0 !important;

    padding:
        0 !important;
}


.ms-home-about__point {
    position: relative;

    margin:
        0 !important;

    padding:
        10px 34px 10px 12px;

    border:
        1px solid #E1E7ED;

    border-radius:
        10px;

    background:
        #FFFFFF;

    color:
        #4F5B6A !important;

    font-size:
        12.5px !important;

    font-weight:
        700;

    line-height:
        1.55;

    text-align:
        right;
}


.ms-home-about__point::before {
    content:
        "✓";

    position:
        absolute;

    inset-inline-start:
        11px;

    inset-block-start:
        50%;

    width:
        18px;

    height:
        18px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #EEF5FD;

    color:
        #4A7CC6;

    font-size:
        11px;

    font-weight:
        800;

    transform:
        translateY(-50%);
}


/* About CTA */
.ms-home-about__actions {
    display: flex !important;

    flex-wrap: wrap;

    align-items: center;

    gap:
        10px;

    margin-top:
        18px !important;
}


.ms-home-about__actions
.wp-block-button {
    margin:
        0 !important;
}


.ms-home-about__actions
.wp-block-button__link {
    min-height:
        40px;

    padding:
        8px 15px;

    border-radius:
        8px;

    font-size:
        12.5px;

    font-weight:
        800;
}


.ms-home-about__actions
.wp-block-button:first-child
.wp-block-button__link {
    background:
        #F79A10;

    color:
        #FFFFFF !important;
}


.ms-home-about__actions
.wp-block-button:last-child
.wp-block-button__link {
    border:
        1px solid #4A7CC6;

    background:
        #FFFFFF;

    color:
        #4A7CC6 !important;
}


/* ----------------------------------------------------------
   IMAGE
   ---------------------------------------------------------- */

.ms-home-about__portrait {
    position: relative;

    z-index: 2;

    width:
        100%;

    height:
        100%;

    min-height:
        100%;

    display:
        flex;

    align-items:
        stretch;

    margin:
        0 !important;
}


.ms-home-about__portrait img {
    display:
        block;

    width:
        100%;

    height:
        100% !important;

    min-height:
        100%;

    max-height:
        none !important;

    object-fit:
        cover;

    object-position:
        center 20%;

    border-radius:
        18px;

    box-shadow:
        0 16px 36px
        rgba(36, 52, 71, .12);
}


/* Decorative shapes */
.ms-home-about__media::before {
    content: "";

    position: absolute;

    width:
        150px;

    height:
        150px;

    inset-inline-start:
        -22px;

    inset-block-start:
        50%;

    border-radius:
        44% 56% 52% 48% / 48% 44% 56% 52%;

    background:
        #FFF4E5;

    transform:
        translateY(-50%)
        rotate(-10deg);

    pointer-events:
        none;

    z-index:
        0;
}


.ms-home-about__media::after {
    content: "";

    position: absolute;

    width:
        230px;

    height:
        230px;

    inset-inline-end:
        -6px;

    inset-block-start:
        50%;

    border:
        1px solid rgba(74, 124, 198, .14);

    border-radius:
        50%;

    background:
        rgba(238, 245, 253, .34);

    transform:
        translateY(-50%);

    pointer-events:
        none;

    z-index:
        0;
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 921px) {

    .ms-home-about {
        padding-top:
            50px;

        padding-bottom:
            50px;
    }


    .ms-home-about > .wp-block-group__inner-container {
        width:
            calc(100% - 40px) !important;
    }


    .ms-home-about__layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, .88fr);

        gap:
            34px;
    }


    .ms-home-about__copy h2 {
        font-size:
            clamp(29px, 4vw, 37px) !important;
    }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 781px) {

    .ms-home-about__layout {
        display:
            flex !important;

        flex-direction:
            column;

        gap:
            30px;

        direction:
            rtl;
    }


    .ms-home-about__copy {
        order:
            1;

        align-items:
            center;

        width:
            100%;

        text-align:
            center;
    }


    .ms-home-about__media {
        order:
            2;

        width:
            min(100%, 420px);

        min-height:
            360px;

        align-self:
            center;
    }


    .ms-home-about__copy .ms-v2-eyebrow {
        margin-inline:
            auto !important;
    }


    .ms-home-about__copy h2,
    .ms-home-about__intro {
        max-width:
            680px;

        margin-inline:
            auto !important;

        text-align:
            center;
    }


    .ms-home-about__actions {
        justify-content:
            center;
    }

}


@media (max-width: 600px) {

    .ms-home-about {
        padding-top:
            42px;

        padding-bottom:
            42px;
    }


    .ms-home-about > .wp-block-group__inner-container {
        width:
            calc(100% - 28px) !important;
    }


    .ms-home-about__copy h2 {
        font-size:
            30px !important;
    }


    .ms-home-about__points
    > .wp-block-group__inner-container {
        grid-template-columns:
            1fr;
    }


    .ms-home-about__media {
        min-height:
            330px;

        width:
            min(100%, 360px);
    }

}

/* ==========================================================
   HOMEPAGE BLOG / LATEST CONTENT
   Version: 1.0.1
   Dynamic WordPress Query Loop
   ========================================================== */

.ms-home-blog {
    padding-top: 58px;
    padding-bottom: 58px;

    background: #FFFFFF;
}


.ms-home-blog > .wp-block-group__inner-container {
    width: min(1120px, calc(100% - 48px)) !important;
}


/* ----------------------------------------------------------
   SECTION HEAD
   ---------------------------------------------------------- */

.ms-home-blog__head {
    max-width: 780px;

    margin:
        0 auto 24px !important;

    text-align: center;
}


.ms-home-blog__head .ms-v2-eyebrow {
    margin:
        0 auto 12px !important;
}


.ms-home-blog__head h2 {
    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        clamp(30px, 2.8vw, 40px) !important;

    font-weight:
        800 !important;

    line-height:
        1.45 !important;

    text-align:
        center;
}


.ms-home-blog__intro {
    max-width:
        720px;

    margin:
        10px auto 0 !important;

    color:
        #5F6B7A !important;

    font-size:
        14.5px !important;

    line-height:
        1.9 !important;

    text-align:
        center;
}


/* ----------------------------------------------------------
   QUERY LOOP
   ---------------------------------------------------------- */

.ms-home-blog__query {
    width:
        100%;

    margin:
        0 !important;
}


.ms-home-blog__posts {
    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        14px !important;

    width:
        100%;

    margin:
        0 !important;

    padding:
        0 !important;

    list-style:
        none !important;
}


.ms-home-blog__posts
> .wp-block-post {
    min-width:
        0;

    overflow:
        hidden;

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        1px solid #DCE3EA;

    border-radius:
        16px;

    background:
        #FFFFFF;

    box-shadow:
        0 7px 22px
        rgba(27, 36, 48, .04);

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}


.ms-home-blog__posts
> .wp-block-post:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(74, 124, 198, .35);

    box-shadow:
        0 12px 28px
        rgba(27, 36, 48, .07);
}


/* ----------------------------------------------------------
   FEATURED IMAGE
   ---------------------------------------------------------- */

.ms-home-blog__image {
    width:
        100%;

    margin:
        0 !important;

    overflow:
        hidden;

    border-bottom:
        1px solid #E7ECF1;

    background:
        #EEF5FD;
}


.ms-home-blog__image a {
    display:
        block;

    width:
        100%;

    overflow:
        hidden;
}


.ms-home-blog__image img {
    display:
        block;

    width:
        100% !important;

    aspect-ratio:
        16 / 9;

    height:
        auto !important;

    object-fit:
        cover;

    transition:
        transform .35s ease;
}


.ms-home-blog__posts
> .wp-block-post:hover
.ms-home-blog__image img {
    transform:
        scale(1.025);
}


/* ----------------------------------------------------------
   CARD CONTENT
   ---------------------------------------------------------- */

.ms-home-blog__content {
    margin:
        0 !important;

    padding:
        18px 18px 19px;

    --wp--style--block-gap:
        0px !important;
}


.ms-home-blog__content
> .wp-block-group__inner-container {
    display:
        block !important;

    margin:
        0 !important;

    padding:
        0 !important;

    --wp--style--block-gap:
        0px !important;
}


.ms-home-blog__content
> .wp-block-group__inner-container
> * {
    margin-block-start:
        0 !important;

    margin-block-end:
        0 !important;
}


/* Date */
.ms-home-blog__date {
    margin:
        0 0 6px !important;

    color:
        #7B8794 !important;

    font-size:
        11.5px !important;

    font-weight:
        600;

    line-height:
        1.4;
}


.ms-home-blog__date time {
    color:
        inherit;
}


/* Title */
.ms-home-blog__title {
    margin:
        0 !important;

    font-size:
        19px !important;

    font-weight:
        800 !important;

    line-height:
        1.55 !important;

    text-align:
        right;
}


.ms-home-blog__title a {
    color:
        #1B2430 !important;

    text-decoration:
        none !important;
}


.ms-home-blog__title a:hover {
    color:
        #4A7CC6 !important;
}


/* Excerpt */
.ms-home-blog__excerpt {
    margin:
        8px 0 0 !important;

    color:
        #667282 !important;

    font-size:
        13.2px !important;

    line-height:
        1.8 !important;

    text-align:
        right;
}


.ms-home-blog__excerpt p {
    margin:
        0 !important;
}


/* Read more */
.ms-home-blog__read-more {
    margin:
        13px 0 0 !important;

    font-size:
        12.5px !important;

    font-weight:
        800;

    line-height:
        1.5;
}


.ms-home-blog__read-more a {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

    color:
        #4A7CC6 !important;

    text-decoration:
        none !important;
}


.ms-home-blog__read-more a::after {
    content:
        "←";

    font-size:
        14px;
}


.ms-home-blog__read-more a:hover {
    color:
        #356CB8 !important;
}


/* ----------------------------------------------------------
   SECTION CTA
   ---------------------------------------------------------- */

.ms-home-blog__cta {
    display:
        flex !important;

    justify-content:
        center;

    width:
        100%;

    margin-top:
        22px !important;
}


.ms-home-blog__cta
.wp-block-button {
    margin:
        0 !important;
}


.ms-home-blog__cta
.wp-block-button__link {
    min-height:
        42px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        9px 18px;

    border:
        1px solid #F79A10;

    border-radius:
        8px;

    background:
        #F79A10;

    color:
        #FFFFFF !important;

    font-size:
        13px;

    font-weight:
        800;

    box-shadow:
        0 5px 14px
        rgba(247, 154, 16, .16);

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.ms-home-blog__cta
.wp-block-button__link:hover {
    border-color:
        #E68900;

    background:
        #E68900;

    color:
        #FFFFFF !important;

    transform:
        translateY(-1px);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-blog {
        padding-top:
            50px;

        padding-bottom:
            50px;
    }


    .ms-home-blog > .wp-block-group__inner-container {
        width:
            calc(100% - 40px) !important;
    }


    .ms-home-blog__posts {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .ms-home-blog__posts
    > .wp-block-post:last-child {
        grid-column:
            1 / -1;

        width:
            min(100%, 540px);

        justify-self:
            center;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .ms-home-blog {
        padding-top:
            42px;

        padding-bottom:
            42px;
    }


    .ms-home-blog > .wp-block-group__inner-container {
        width:
            calc(100% - 28px) !important;
    }


    .ms-home-blog__head {
        margin-bottom:
            20px !important;
    }


    .ms-home-blog__head h2 {
        font-size:
            30px !important;
    }


    .ms-home-blog__posts {
        grid-template-columns:
            1fr;
    }


    .ms-home-blog__posts
    > .wp-block-post:last-child {
        grid-column:
            auto;

        width:
            100%;
    }


    .ms-home-blog__content {
        padding:
            16px;
    }


    .ms-home-blog__title {
        font-size:
            18px !important;
    }


    .ms-home-blog__cta {
        margin-top:
            18px !important;
    }

}

/* ==========================================================
   GLOBAL HOMEPAGE CONTAINER ALIGNMENT
   Version: 1.0.27

   Header reference:
   .ms-site-header__inner
   width: min(1240px, calc(100% - 48px))

   All homepage sections now use the exact same left/right bounds.
   ========================================================== */

:root {
    --ms-v2-page-max:
        1240px;

    --ms-v2-page-gutter:
        48px;
}


/*
 * Base V2 section container.
 */
.ms-v2-section
> .wp-block-group__inner-container {
    width:
        min(
            var(--ms-v2-page-max),
            calc(
                100%
                - var(--ms-v2-page-gutter)
            )
        ) !important;

    max-width:
        none !important;

    margin-inline:
        auto !important;
}


/*
 * Explicit homepage overrides.
 *
 * Earlier section-specific versions used 1040 / 1080 / 1120px.
 * These rules deliberately override those widths so every section
 * follows the exact same vertical guides as the V2 header.
 */
.ms-home-hero
> .wp-block-group__inner-container,

.ms-home-authority
> .wp-block-group__inner-container,

.ms-home-solutions
> .wp-block-group__inner-container,

.ms-home-services
> .wp-block-group__inner-container,

.ms-home-process
> .wp-block-group__inner-container,

.ms-home-portfolio
> .wp-block-group__inner-container,

.ms-home-training
> .wp-block-group__inner-container,

.ms-home-about
> .wp-block-group__inner-container,

.ms-home-blog
> .wp-block-group__inner-container {
    width:
        min(
            var(--ms-v2-page-max),
            calc(
                100%
                - var(--ms-v2-page-gutter)
            )
        ) !important;

    max-width:
        none !important;

    margin-inline:
        auto !important;
}


/*
 * Prevent Astra/Gutenberg alignment widths from pushing
 * a homepage section outside the shared container.
 */
body.ms-v2-home
.ms-v2-section
> .wp-block-group__inner-container {
    margin-left:
        auto !important;

    margin-right:
        auto !important;
}


/* ==========================================================
   MOBILE — match header.css exactly
   Header changes to calc(100% - 28px) at <= 544px.
   ========================================================== */

@media (max-width: 544px) {

    :root {
        --ms-v2-page-gutter:
            28px;
    }


    .ms-v2-section
    > .wp-block-group__inner-container,

    .ms-home-hero
    > .wp-block-group__inner-container,

    .ms-home-authority
    > .wp-block-group__inner-container,

    .ms-home-solutions
    > .wp-block-group__inner-container,

    .ms-home-services
    > .wp-block-group__inner-container,

    .ms-home-process
    > .wp-block-group__inner-container,

    .ms-home-portfolio
    > .wp-block-group__inner-container,

    .ms-home-training
    > .wp-block-group__inner-container,

    .ms-home-about
    > .wp-block-group__inner-container,

    .ms-home-blog
    > .wp-block-group__inner-container {
        width:
            calc(100% - 28px) !important;
    }

}

/* ==========================================================
   HOMEPAGE RESOURCES / LEAD MAGNET
   Version: 1.0.1
   ========================================================== */

.ms-home-resources {
    padding-top: 58px;
    padding-bottom: 58px;

    background: #F6F8FB;
}


.ms-home-resources__layout {
    display: flex !important;

    flex-wrap: nowrap !important;

    align-items: center !important;

    gap: 46px !important;

    width: 100%;

    margin: 0 !important;
}


.ms-home-resources__layout
> .wp-block-column {
    min-width: 0 !important;

    margin: 0 !important;
}


.ms-home-resources__copy {
    flex: 1.12 1 0 !important;
}


.ms-home-resources__media {
    flex: .88 1 0 !important;

    position: relative;

    display: flex !important;

    align-items: center;
    justify-content: center;

    min-height: 390px;

    overflow: visible;
}


/* Copy */
.ms-home-resources__copy .ms-v2-eyebrow {
    margin:
        0 0 12px !important;
}


.ms-home-resources__copy h2 {
    max-width: 650px;

    margin:
        0 !important;

    color:
        #1B2430 !important;

    font-size:
        clamp(30px, 2.8vw, 40px) !important;

    font-weight:
        800 !important;

    line-height:
        1.45 !important;

    text-align:
        right;
}


.ms-home-resources__intro {
    max-width: 650px;

    margin:
        12px 0 0 !important;

    color:
        #5F6B7A !important;

    font-size:
        14.5px !important;

    line-height:
        1.9 !important;

    text-align:
        right;
}


/* Benefit chips */
.ms-home-resources__benefits {
    display: block !important;

    width: 100%;

    margin:
        18px 0 0 !important;

    --wp--style--block-gap: 0 !important;
}


.ms-home-resources__benefits
> .wp-block-group__inner-container {
    display: flex !important;

    flex-wrap: wrap !important;

    gap: 8px !important;

    margin: 0 !important;

    padding: 0 !important;
}


.ms-home-resources__benefit {
    position: relative;

    margin: 0 !important;

    padding:
        8px 31px 8px 11px;

    border:
        1px solid #DCE3EA;

    border-radius:
        9px;

    background:
        #FFFFFF;

    color:
        #4F5B6A !important;

    font-size:
        12px !important;

    font-weight:
        700;

    line-height:
        1.45;
}


.ms-home-resources__benefit::before {
    content: "✓";

    position: absolute;

    inset-inline-start: 10px;
    inset-block-start: 50%;

    width: 17px;
    height: 17px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #EEF5FD;

    color: #4A7CC6;

    font-size: 10px;
    font-weight: 800;

    transform: translateY(-50%);
}


/* Actions */
.ms-home-resources__actions {
    display: flex !important;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin-top:
        18px !important;
}


.ms-home-resources__actions
.wp-block-button {
    margin: 0 !important;
}


.ms-home-resources__actions
.wp-block-button__link {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 16px;

    border-radius: 8px;

    font-size: 12.5px;
    font-weight: 800;
}


.ms-home-resources__actions
.wp-block-button:first-child
.wp-block-button__link {
    border: 1px solid #F79A10;

    background: #F79A10;

    color: #FFFFFF !important;

    box-shadow:
        0 5px 14px
        rgba(247, 154, 16, .16);
}


.ms-home-resources__actions
.wp-block-button:last-child
.wp-block-button__link {
    border: 1px solid #4A7CC6;

    background: #FFFFFF;

    color: #4A7CC6 !important;
}


/* Resource cover */
.ms-home-resources__book {
    position: relative;

    z-index: 2;

    width: min(100%, 330px);

    margin: 0 !important;
}


.ms-home-resources__book img {
    display: block;

    width: 100% !important;
    height: auto !important;

    max-height: 390px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 18px 28px
            rgba(36, 52, 71, .14)
        );
}


.ms-home-resources__media::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    inset-inline-start: 50%;
    inset-block-start: 50%;

    border-radius: 50%;

    background:
        #EAF2FC;

    transform:
        translate(-50%, -50%);

    z-index: 0;
}


.ms-home-resources__media::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    inset-inline-end: 8%;
    inset-block-end: 4%;

    border-radius:
        42% 58% 60% 40% / 50% 42% 58% 50%;

    background:
        #FFF1DE;

    transform:
        rotate(12deg);

    z-index: 1;
}


/* ==========================================================
   NEWSLETTER + GOOGLE PREFERRED SOURCE
   Version: 1.0.1
   ========================================================== */

.ms-home-subscribe {
    padding-top: 58px;
    padding-bottom: 58px;

    background: #FFFFFF;
}


.ms-home-subscribe__shell {
    overflow: hidden;

    margin: 0 !important;

    padding: 34px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #17283E 0%,
            #203853 100%
        );

    box-shadow:
        0 16px 34px
        rgba(22, 38, 60, .14);
}


.ms-home-subscribe__head {
    max-width: 760px;

    margin:
        0 auto 24px !important;

    text-align: center;
}


.ms-home-subscribe__eyebrow {
    width: fit-content;

    margin:
        0 auto 10px !important;

    padding:
        5px 10px;

    border:
        1px solid rgba(255,255,255,.13);

    border-radius: 999px;

    background:
        rgba(255,255,255,.06);

    color:
        #AFC9EC !important;

    font-size:
        11.5px !important;

    font-weight: 800;
}


.ms-home-subscribe__head h2 {
    margin: 0 !important;

    color: #FFFFFF !important;

    font-size:
        clamp(28px, 2.6vw, 38px) !important;

    font-weight: 800 !important;

    line-height: 1.5 !important;

    text-align: center;
}


.ms-home-subscribe__intro {
    max-width: 700px;

    margin:
        10px auto 0 !important;

    color:
        rgba(255,255,255,.72) !important;

    font-size: 14px !important;

    line-height: 1.85 !important;

    text-align: center;
}


/* Two conversion cards */
.ms-home-subscribe__columns {
    display: flex !important;

    flex-wrap: nowrap !important;

    align-items: stretch !important;

    gap: 14px !important;

    width: 100%;

    margin: 0 !important;
}


.ms-home-subscribe__card {
    flex: 1 1 50% !important;

    width: 50% !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 22px;

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 14px;

    background:
        rgba(255,255,255,.065);
}


.ms-home-subscribe__card-label {
    margin:
        0 0 5px !important;

    color:
        #AFC9EC !important;

    font-size:
        11px !important;

    font-weight: 800;
}


.ms-home-subscribe__card:nth-child(2)
.ms-home-subscribe__card-label {
    color:
        #FFC266 !important;
}


.ms-home-subscribe__card h3 {
    margin: 0 !important;

    color:
        #FFFFFF !important;

    font-size:
        20px !important;

    font-weight:
        800 !important;

    line-height:
        1.55 !important;

    text-align: right;
}


.ms-home-subscribe__card-copy {
    margin:
        7px 0 0 !important;

    color:
        rgba(255,255,255,.70) !important;

    font-size:
        13px !important;

    line-height:
        1.8 !important;

    text-align: right;
}


/* ----------------------------------------------------------
   FLUENT FORMS NEWSLETTER
   ---------------------------------------------------------- */

.ms-home-subscribe__form {
    margin-top:
        14px !important;
}


.ms-home-subscribe__form
.fluentform {
    margin: 0 !important;
}


.ms-home-subscribe__form
.ff-el-group {
    margin-bottom:
        9px !important;
}


.ms-home-subscribe__form
.ff-el-input--label {
    display: none !important;
}


.ms-home-subscribe__form
.ff-el-form-control {
    min-height:
        42px !important;

    border:
        1px solid rgba(255,255,255,.14) !important;

    border-radius:
        8px !important;

    background:
        rgba(255,255,255,.96) !important;

    color:
        #1B2430 !important;

    font-size:
        13px !important;
}


.ms-home-subscribe__form
.ff-btn-submit {
    min-height:
        42px !important;

    width:
        100% !important;

    margin:
        0 !important;

    border:
        0 !important;

    border-radius:
        8px !important;

    background:
        #F79A10 !important;

    color:
        #FFFFFF !important;

    font-size:
        13px !important;

    font-weight:
        800 !important;
}


.ms-home-subscribe__privacy {
    margin:
        8px 0 0 !important;

    color:
        rgba(255,255,255,.48) !important;

    font-size:
        10.5px !important;

    line-height:
        1.6;
}


/* ----------------------------------------------------------
   GOOGLE PREFERRED SOURCE
   ---------------------------------------------------------- */

.ms-home-subscribe__preferred-box {
    margin-top:
        15px !important;

    padding:
        15px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius:
        10px;

    background:
        rgba(0,0,0,.10);
}


.ms-home-subscribe__google-button {
    min-height:
        42px;

    display: flex;

    align-items: center;

    justify-content: flex-start;
}


/*
 * Standard Google interactive control is enabled automatically
 * only on the production mesaleh.com host.
 */
.ms-home-subscribe__preferred-standard {
    display: none;
}


body.ms-v2-google-preferred-live
.ms-home-subscribe__preferred-standard {
    display: block;
}


body.ms-v2-google-preferred-live
.ms-home-subscribe__preferred-fallback {
    display: none !important;
}


/*
 * On staging we intentionally use a fixed mesaleh.com deeplink,
 * preventing accidental selection of mesaleh.com.
 */
.ms-home-subscribe__preferred-fallback {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    min-height:
        42px;

    padding:
        9px 14px;

    border:
        1px solid rgba(255,255,255,.20);

    border-radius:
        8px;

    background:
        #FFFFFF;

    color:
        #1B2430 !important;

    font-size:
        12.5px !important;

    font-weight:
        800;

    text-decoration:
        none !important;
}


.ms-home-subscribe__preferred-fallback::after {
    content:
        "←";

    color:
        #4A7CC6;
}


.ms-home-subscribe__preferred-note {
    margin:
        10px 0 0 !important;

    color:
        rgba(255,255,255,.50) !important;

    font-size:
        10.8px !important;

    line-height:
        1.65;
}


/* Editor preview fallback */
.editor-styles-wrapper
.ms-home-subscribe__preferred-standard
[google-add-preferred-source-btn]:empty::before {
    content:
        "Google Preferred Source";

    display:
        inline-flex;

    align-items:
        center;

    min-height:
        40px;

    padding:
        8px 12px;

    border-radius:
        8px;

    background:
        #FFFFFF;

    color:
        #1B2430;

    font-size:
        12px;

    font-weight:
        700;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 921px) {

    .ms-home-resources,
    .ms-home-subscribe {
        padding-top:
            50px;

        padding-bottom:
            50px;
    }


    .ms-home-resources__layout {
        gap:
            30px !important;
    }


    .ms-home-resources__media {
        min-height:
            330px;
    }


    .ms-home-subscribe__shell {
        padding:
            28px;
    }

}


@media (max-width: 781px) {

    .ms-home-resources__layout {
        flex-direction:
            column;

        gap:
            26px !important;
    }


    .ms-home-resources__copy,
    .ms-home-resources__media {
        width:
            100% !important;

        flex:
            1 1 auto !important;
    }


    .ms-home-resources__copy {
        text-align:
            center;
    }


    .ms-home-resources__copy .ms-v2-eyebrow {
        margin-inline:
            auto !important;
    }


    .ms-home-resources__copy h2,
    .ms-home-resources__intro {
        margin-inline:
            auto !important;

        text-align:
            center;
    }


    .ms-home-resources__benefits
    > .wp-block-group__inner-container,
    .ms-home-resources__actions {
        justify-content:
            center;
    }


    .ms-home-resources__media {
        min-height:
            300px;
    }


    .ms-home-resources__book {
        width:
            min(100%, 285px);
    }


    .ms-home-subscribe__columns {
        flex-direction:
            column;
    }


    .ms-home-subscribe__card {
        width:
            100% !important;

        flex:
            1 1 auto !important;
    }

}


@media (max-width: 600px) {

    .ms-home-resources,
    .ms-home-subscribe {
        padding-top:
            42px;

        padding-bottom:
            42px;
    }


    .ms-home-resources__copy h2 {
        font-size:
            30px !important;
    }


    .ms-home-subscribe__shell {
        padding:
            22px 16px;

        border-radius:
            14px;
    }


    .ms-home-subscribe__head {
        margin-bottom:
            19px !important;
    }


    .ms-home-subscribe__head h2 {
        font-size:
            28px !important;
    }


    .ms-home-subscribe__card {
        padding:
            18px;
    }

}

/* ==========================================================
   BLOG PAGE / ARCHIVE
   Version: 1.0.1
   12 dynamic posts — 3 per row
   ========================================================== */

.ms-blog-page {
    padding-top: 54px;
    padding-bottom: 64px;
    background: #FFFFFF;
}

.ms-blog-page > .wp-block-group__inner-container {
    width:
        min(
            var(--ms-v2-page-max, 1240px),
            calc(100% - var(--ms-v2-page-gutter, 48px))
        ) !important;

    max-width: none !important;
    margin-inline: auto !important;
}


/* PAGE INTRO */

.ms-blog-page__head {
    max-width: 800px;
    margin: 0 auto 34px !important;
    text-align: center;
}

.ms-blog-page__head .ms-v2-eyebrow {
    margin: 0 auto 12px !important;
}

.ms-blog-page__head h1 {
    margin: 0 !important;

    color: #1B2430 !important;

    font-size:
        clamp(34px, 3vw, 44px) !important;

    font-weight: 800 !important;
    line-height: 1.45 !important;
    text-align: center;
}

.ms-blog-page__intro {
    max-width: 720px;
    margin: 11px auto 0 !important;

    color: #5F6B7A !important;

    font-size: 14.5px !important;
    line-height: 1.9 !important;
    text-align: center;
}


/* QUERY LOOP */

.ms-blog-page__query {
    width: 100%;
    margin: 0 !important;
}

.ms-blog-page__posts {
    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px 14px !important;

    width: 100%;
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.ms-blog-page__posts > .wp-block-post {
    min-width: 0;
    overflow: hidden;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #DCE3EA;
    border-radius: 16px;

    background: #FFFFFF;

    box-shadow:
        0 7px 22px
        rgba(27, 36, 48, .04);

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.ms-blog-page__posts > .wp-block-post:hover {
    transform: translateY(-3px);

    border-color:
        rgba(74, 124, 198, .35);

    box-shadow:
        0 12px 28px
        rgba(27, 36, 48, .07);
}


/* FEATURED IMAGE */

.ms-blog-page__image {
    width: 100%;
    margin: 0 !important;
    overflow: hidden;

    border-bottom: 1px solid #E7ECF1;

    background: #EEF5FD;
}

.ms-blog-page__image a {
    display: block;
    width: 100%;
    overflow: hidden;
}

.ms-blog-page__image img {
    display: block;

    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;

    object-fit: cover;

    transition:
        transform .35s ease;
}

.ms-blog-page__posts
> .wp-block-post:hover
.ms-blog-page__image img {
    transform:
        scale(1.025);
}


/* CARD CONTENT */

.ms-blog-page__content {
    margin: 0 !important;
    padding: 18px 18px 19px;

    --wp--style--block-gap:
        0 !important;
}

.ms-blog-page__content
> .wp-block-group__inner-container {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    --wp--style--block-gap:
        0 !important;
}

.ms-blog-page__content
> .wp-block-group__inner-container
> * {
    margin-block-start:
        0 !important;

    margin-block-end:
        0 !important;
}

.ms-blog-page__date {
    margin:
        0 0 6px !important;

    color:
        #7B8794 !important;

    font-size:
        11.5px !important;

    font-weight:
        600;

    line-height:
        1.4;
}

.ms-blog-page__title {
    margin:
        0 !important;

    font-size:
        19px !important;

    font-weight:
        800 !important;

    line-height:
        1.55 !important;

    text-align:
        right;
}

.ms-blog-page__title a {
    color:
        #1B2430 !important;

    text-decoration:
        none !important;
}

.ms-blog-page__title a:hover {
    color:
        #4A7CC6 !important;
}

.ms-blog-page__excerpt {
    margin:
        8px 0 0 !important;

    color:
        #667282 !important;

    font-size:
        13.2px !important;

    line-height:
        1.8 !important;

    text-align:
        right;
}

.ms-blog-page__excerpt p {
    margin:
        0 !important;
}

.ms-blog-page__read-more {
    margin:
        13px 0 0 !important;

    font-size:
        12.5px !important;

    font-weight:
        800;

    line-height:
        1.5;
}

.ms-blog-page__read-more a {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

    color:
        #4A7CC6 !important;

    text-decoration:
        none !important;
}

.ms-blog-page__read-more a::after {
    content:
        "←";

    font-size:
        14px;
}


/* PAGINATION — NEXT PAGE BUTTON ONLY */

.ms-blog-page__pagination {
    display:
        flex !important;

    justify-content:
        center;

    width:
        100%;

    margin:
        30px 0 0 !important;
}

.ms-blog-page__pagination
.wp-block-query-pagination-next {
    min-height:
        42px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    padding:
        9px 18px;

    border:
        1px solid #F79A10;

    border-radius:
        8px;

    background:
        #F79A10;

    color:
        #FFFFFF !important;

    font-size:
        13px !important;

    font-weight:
        800;

    line-height:
        1.4;

    text-decoration:
        none !important;

    box-shadow:
        0 5px 14px
        rgba(247, 154, 16, .16);

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.ms-blog-page__pagination
.wp-block-query-pagination-next::after {
    content:
        "←";

    font-size:
        14px;
}

.ms-blog-page__pagination
.wp-block-query-pagination-next:hover {
    border-color:
        #E68900;

    background:
        #E68900;

    color:
        #FFFFFF !important;

    transform:
        translateY(-1px);
}


/* TABLET */

@media (max-width: 921px) {

    .ms-blog-page {
        padding-top:
            48px;

        padding-bottom:
            56px;
    }

    .ms-blog-page__posts {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            16px 14px !important;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .ms-blog-page {
        padding-top:
            40px;

        padding-bottom:
            48px;
    }

    .ms-blog-page
    > .wp-block-group__inner-container {
        width:
            calc(100% - 28px) !important;
    }

    .ms-blog-page__head {
        margin-bottom:
            24px !important;
    }

    .ms-blog-page__head h1 {
        font-size:
            31px !important;
    }

    .ms-blog-page__posts {
        grid-template-columns:
            1fr;
    }

    .ms-blog-page__content {
        padding:
            16px;
    }

    .ms-blog-page__title {
        font-size:
            18px !important;
    }

    .ms-blog-page__pagination {
        margin-top:
            24px !important;
    }

}

/* ==========================================================
   BLOG CARD READ-MORE BUTTON
   Version: 1.0.30
   Small centered CTA anchored at the bottom of each card
   ========================================================== */

.ms-blog-page__posts
> .wp-block-post {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.ms-blog-page__content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
}

.ms-blog-page__content
> .wp-block-group__inner-container {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
}

.ms-blog-page__read-more {
    width: 100% !important;
    margin: auto 0 0 !important;
    padding-top: 14px !important;
    text-align: center !important;
}

.ms-blog-page__read-more a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;

    min-height: 34px !important;
    padding: 7px 12px !important;

    border: 1px solid #4A7CC6 !important;
    border-radius: 7px !important;

    background: #4A7CC6 !important;
    color: #FFFFFF !important;

    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;

    box-shadow:
        0 4px 10px
        rgba(74, 124, 198, .14);

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.ms-blog-page__read-more a::after {
    content: "←";
    color: #FFFFFF !important;
    font-size: 13px !important;
    line-height: 1;
}

.ms-blog-page__read-more a:hover {
    border-color: #356CB8 !important;
    background: #356CB8 !important;
    color: #FFFFFF !important;

    transform: translateY(-1px);

    box-shadow:
        0 6px 14px
        rgba(74, 124, 198, .20);
}

@media (max-width: 600px) {

    .ms-blog-page__read-more {
        padding-top: 12px !important;
    }

    .ms-blog-page__read-more a {
        min-height: 34px !important;
        padding: 7px 12px !important;
    }

}

