/* ==========================================================
   Programs page — Intro / top section
   Scoped only to: .page-program .main-body > .wrapper > .top
   ========================================================== */

   .page-program .main-body > .wrapper > .top {
    --ms-program-bg: #f7f7f7;
    --ms-program-surface: rgba(255, 255, 255, 0.54);
    --ms-program-text: #26322f;
    --ms-program-muted: #68736f;
    --ms-program-accent: #3f9f88;
    --ms-program-accent-dark: #26745f;
    --ms-program-accent-soft: rgba(73, 191, 165, 0.12);
    --ms-program-purple-soft: rgba(110, 79, 179, 0.07);
    --ms-program-line: rgba(38, 116, 95, 0.16);
    --ms-program-white: #ffffff;

    --ms-program-transition-fast: 180ms ease;
    --ms-program-transition: 280ms cubic-bezier(.22, 1, .36, 1);
    --ms-program-transition-slow: 520ms cubic-bezier(.22, 1, .36, 1);

    position: relative;
    isolation: isolate;
    padding: 2rem 0 4.5rem;
}

.page-program .main-body > .wrapper > .top::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: -6.25rem;
    bottom: -2.5rem;
    left: 50%;
    width: 100vw;
    max-width: 100rem;
    pointer-events: none;
    opacity: 0.96;
    transform: translate3d(-50%, 0, 0);
    background:
        radial-gradient(
            circle at 13% 18%,
            var(--ms-program-accent-soft) 0%,
            rgba(73, 191, 165, 0) 31%
        ),
        radial-gradient(
            circle at 88% 9%,
            var(--ms-program-purple-soft) 0%,
            rgba(110, 79, 179, 0) 28%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.84) 0%,
            rgba(247, 247, 247, 0.34) 70%,
            rgba(247, 247, 247, 0) 100%
        );
    animation: msProgramIntroAmbient 12s ease-in-out infinite alternate;
}

.page-program .main-body > .wrapper > .top::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(38, 116, 95, 0) 0%,
        var(--ms-program-line) 18%,
        var(--ms-program-line) 82%,
        rgba(38, 116, 95, 0) 100%
    );
}

.page-program .main-body > .wrapper > .top > .sub-heading,
.page-program .main-body > .wrapper > .top > .title-wrapper {
    position: relative;
    z-index: 1;
}

/* Subheading */

.page-program .main-body > .wrapper > .top > .sub-heading {
    justify-content: flex-start;
    margin: 0 0 1.75rem;
    animation:
        msProgramIntroFadeUp
        700ms
        cubic-bezier(.22, 1, .36, 1)
        80ms
        both;
}

.page-program .main-body > .wrapper > .top > .sub-heading .dot {
    width: 0.5rem;
    height: 0.5rem;
    flex: 0 0 0.5rem;
    box-shadow: 0 0 0 0.375rem rgba(73, 191, 165, 0.09);
    transition:
        transform var(--ms-program-transition),
        box-shadow var(--ms-program-transition);
}

.page-program .main-body > .wrapper > .top > .sub-heading .line {
    width: 4.5rem;
    height: 1px;
    flex: 0 0 4.5rem;
    margin: 0 0.75rem 0 0.625rem;
    transform-origin: left center;
    transition:
        transform var(--ms-program-transition),
        opacity var(--ms-program-transition-fast);
}

.page-program .main-body > .wrapper > .top > .sub-heading .text {
    font-family:
        'RobotoSlab-Medium',
        'RobotoSlab-Regular',
        Georgia,
        serif;
    font-size: 0.8125rem;
    line-height: 1.35;
    letter-spacing: 0.1em;
}

/* Main composition */

.page-program .main-body > .wrapper > .top > .title-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    margin: 0;
}

/* Main title */

.page-program .main-body > .wrapper > .top > .title-wrapper > .title {
    flex: 1 1 58%;
    width: auto;
    max-width: 47.5rem;
    margin: 0;
    color: var(--ms-program-text);
    font-family: 'RobotoSlab-Bold', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
    animation:
        msProgramIntroFadeUp
        760ms
        cubic-bezier(.22, 1, .36, 1)
        150ms
        both;
}

/* Description and CTA column */

.page-program .main-body > .wrapper > .top > .title-wrapper > .cta-sub {
    position: relative;
    display: flex;
    flex: 1 1 38%;
    flex-direction: column;
    gap: 1.125rem;
    width: auto;
    max-width: 31rem;
    margin: 0.5rem 0 0;
    padding-left: 2rem;
    animation:
        msProgramIntroFadeUp
        820ms
        cubic-bezier(.22, 1, .36, 1)
        230ms
        both;
}

.page-program .main-body > .wrapper > .top > .title-wrapper > .cta-sub::after {
    content: "";
    position: absolute;
    top: 0.125rem;
    bottom: 0.125rem;
    left: 0;
    width: 1px;
    height: auto;
    background: linear-gradient(
        180deg,
        var(--ms-program-accent) 0%,
        rgba(63, 159, 136, 0.22) 74%,
        rgba(63, 159, 136, 0) 100%
    );
}

.page-program .main-body > .wrapper > .top .cta-sub .sub-title,
.page-program .main-body > .wrapper > .top .cta-sub .cta-content {
    position: relative;
    margin: 0;
    color: var(--ms-program-muted);
    font-family: 'RobotoSlab-Regular', Georgia, serif;
    font-size: 1rem;
    line-height: 1.72;
    letter-spacing: 0.005em;
}

.page-program .main-body > .wrapper > .top .cta-sub .sub-title {
    max-width: 43ch;
}

.page-program .main-body > .wrapper > .top .cta-sub .cta-content {
    padding-top: 1.125rem;
    border-top: 1px solid var(--ms-program-line);
    color: #56625e;
}

.page-program .main-body > .wrapper > .top .cta-sub .cta-content p {
    margin: 0;
}

/* Editorial CTA link */

.page-program .main-body > .wrapper > .top .cta-sub .cta-content a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0;
    color: var(--ms-program-accent-dark);
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    background-image: linear-gradient(
        90deg,
        var(--ms-program-accent) 0%,
        var(--ms-program-accent-dark) 100%
    );
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition:
        transform var(--ms-program-transition),
        color var(--ms-program-transition-fast),
        background-size var(--ms-program-transition),
        opacity var(--ms-program-transition-fast);
}

.page-program .main-body > .wrapper > .top .cta-sub .cta-content a::after {
    content: "→";
    display: inline-block;
    font-family: Georgia, serif;
    font-size: 1em;
    line-height: 1;
    transform: translateX(0);
    transition: transform var(--ms-program-transition);
}

.page-program .main-body > .wrapper > .top .cta-sub .cta-content a strong {
    font-family: 'RobotoSlab-Bold', Georgia, serif;
    font-weight: 700;
}

.page-program .main-body > .wrapper > .top .cta-sub .cta-content a:focus-visible {
    outline: 3px solid rgba(63, 159, 136, 0.28);
    outline-offset: 0.25rem;
    border-radius: 0.25rem;
}

/* Pointer hover interactions */

@media (hover: hover) and (pointer: fine) {
    .page-program .main-body > .wrapper > .top:hover > .sub-heading .dot {
        transform: scale(1.08);
        box-shadow: 0 0 0 0.5rem rgba(73, 191, 165, 0.1);
    }

    .page-program .main-body > .wrapper > .top:hover > .sub-heading .line {
        opacity: 0.9;
        transform: scaleX(1.08);
    }

    .page-program .main-body > .wrapper > .top .cta-sub .cta-content a:hover {
        color: var(--ms-program-accent);
        background-size: 68% 1px;
        transform: translateY(-1px);
    }

    .page-program .main-body > .wrapper > .top .cta-sub .cta-content a:hover::after {
        transform: translateX(0.25rem);
    }
}

/* Entrance animation */

@keyframes msProgramIntroFadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 1.125rem, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Very subtle background movement */

@keyframes msProgramIntroAmbient {
    from {
        opacity: 0.84;
        transform: translate3d(-50%, 0, 0) scale(1);
    }

    to {
        opacity: 1;
        transform: translate3d(-50%, 0.5rem, 0) scale(1.015);
    }
}

/* Laptop */

@media (max-width: 73.75rem) {
    .page-program .main-body > .wrapper > .top {
        padding-bottom: 4rem;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper {
        gap: 3rem;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper > .title {
        font-size: 2.5rem;
    }
}

/* Tablet */

@media (max-width: 61.9375rem) {
    .page-program .main-body > .wrapper > .top {
        padding-top: 1.5rem;
        padding-bottom: 3.75rem;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2rem;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper > .title,
    .page-program .main-body > .wrapper > .top > .title-wrapper > .cta-sub {
        flex-basis: auto;
        width: 100%;
        max-width: 47.5rem;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper > .title {
        font-size: 2.25rem;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper > .cta-sub {
        margin-top: 0;
        padding-left: 1.75rem;
    }

    .page-program .main-body > .wrapper > .top .cta-sub .sub-title {
        max-width: 60ch;
    }
}

/* Mobile */

@media (max-width: 47.9375rem) {
    .page-program .main-body > .wrapper > .top {
        padding-top: 1rem;
        padding-bottom: 3rem;
    }

    .page-program .main-body > .wrapper > .top::before {
        top: -4.5rem;
        bottom: -1.5rem;
    }

    .page-program .main-body > .wrapper > .top > .sub-heading {
        margin-bottom: 1.375rem;
    }

    .page-program .main-body > .wrapper > .top > .sub-heading .line {
        width: 3.5rem;
        flex-basis: 3.5rem;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper {
        gap: 1.75rem;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper > .title {
        font-size: 2rem;
        line-height: 1.24;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper > .cta-sub {
        gap: 1rem;
        padding-left: 1.25rem;
    }

    .page-program .main-body > .wrapper > .top .cta-sub .sub-title,
    .page-program .main-body > .wrapper > .top .cta-sub .cta-content {
        font-size: 0.96875rem;
        line-height: 1.68;
    }
}

/* Small mobile */

@media (max-width: 30rem) {
    .page-program .main-body > .wrapper > .top {
        padding-bottom: 2.75rem;
    }

    .page-program .main-body > .wrapper > .top > .sub-heading .text {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper > .title {
        font-size: 1.8125rem;
        line-height: 1.26;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper > .cta-sub {
        gap: 0.875rem;
        padding-top: 1.5rem;
        padding-left: 0;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper > .cta-sub::after {
        top: 0;
        right: auto;
        bottom: auto;
        left: 0;
        width: 4.5rem;
        height: 1px;
        background: linear-gradient(
            90deg,
            var(--ms-program-accent) 0%,
            rgba(63, 159, 136, 0) 100%
        );
    }

    .page-program .main-body > .wrapper > .top .cta-sub .cta-content {
        padding-top: 0;
        border-top: 0;
    }
}

/* Very small mobile */

@media (max-width: 23.75rem) {
    .page-program .main-body > .wrapper > .top {
        padding-top: 0.75rem;
        padding-bottom: 2.5rem;
    }

    .page-program .main-body > .wrapper > .top > .sub-heading {
        margin-bottom: 1.125rem;
    }

    .page-program .main-body > .wrapper > .top > .sub-heading .dot {
        width: 0.4375rem;
        height: 0.4375rem;
        flex-basis: 0.4375rem;
    }

    .page-program .main-body > .wrapper > .top > .sub-heading .line {
        width: 2.625rem;
        flex-basis: 2.625rem;
        margin-right: 0.625rem;
        margin-left: 0.5rem;
    }

    .page-program .main-body > .wrapper > .top > .sub-heading .text {
        font-size: 0.6875rem;
        letter-spacing: 0.065em;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper {
        gap: 1.5rem;
    }

    .page-program .main-body > .wrapper > .top > .title-wrapper > .title {
        font-size: 1.6875rem;
    }

    .page-program .main-body > .wrapper > .top .cta-sub .sub-title,
    .page-program .main-body > .wrapper > .top .cta-sub .cta-content {
        font-size: 0.9375rem;
        line-height: 1.64;
    }
}

/* Motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .page-program .main-body > .wrapper > .top,
    .page-program .main-body > .wrapper > .top *,
    .page-program .main-body > .wrapper > .top *::before,
    .page-program .main-body > .wrapper > .top *::after {
        animation: none;
        transition: none;
        scroll-behavior: auto;
    }

    .page-program .main-body > .wrapper > .top::before,
    .page-program .main-body > .wrapper > .top > .sub-heading,
    .page-program .main-body > .wrapper > .top > .title-wrapper > .title,
    .page-program .main-body > .wrapper > .top > .title-wrapper > .cta-sub,
    .page-program .main-body > .wrapper > .top .cta-sub .cta-content a,
    .page-program .main-body > .wrapper > .top .cta-sub .cta-content a::after {
        transform: none;
    }
}

.page strong {
    font-family: 'RobotoSlab-Bold', sans-serif;
}

/* =========================================================
   PROGRAMS LIST — Mind & Soul
   Premium editorial therapy flow / Flexbox only
   Scoped to .page-program .main-body .bot
   ========================================================= */

   .page-program .main-body .bot {
    --ms-programs-bg: #f7faf8;
    --ms-programs-text: #243632;
    --ms-programs-muted: #65746f;
    --ms-programs-accent: #4f9283;
    --ms-programs-accent-light: #4f9a82;
    --ms-programs-accent-dark: #347d68;
    --ms-programs-accent-soft: rgba(79, 146, 131, 0.12);
    --ms-programs-purple: #6e4fb3;
    --ms-programs-purple-soft: rgba(110, 79, 179, 0.08);
    --ms-programs-line: rgba(79, 146, 131, 0.18);
    --ms-programs-line-soft: rgba(36, 54, 50, 0.09);
    --ms-programs-white: #ffffff;

    --ms-programs-radius-small: 14px;
    --ms-programs-radius-medium: 22px;
    --ms-programs-radius-large: 34px;

    --ms-programs-transition-fast: 180ms ease;
    --ms-programs-transition: 280ms cubic-bezier(.22, 1, .36, 1);
    --ms-programs-transition-slow: 520ms cubic-bezier(.22, 1, .36, 1);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 58px 0 90px;
    padding: 72px 0 34px;
    color: var(--ms-programs-text);
    counter-reset: msProgramItem;
    background:
        radial-gradient(
            circle at 5% 8%,
            rgba(79, 146, 131, 0.12) 0,
            rgba(79, 146, 131, 0.05) 24%,
            rgba(79, 146, 131, 0) 43%
        ),
        radial-gradient(
            circle at 96% 74%,
            rgba(110, 79, 179, 0.08) 0,
            rgba(110, 79, 179, 0.035) 23%,
            rgba(110, 79, 179, 0) 43%
        ),
        linear-gradient(
            180deg,
            rgba(247, 250, 248, 0) 0%,
            rgba(247, 250, 248, 0.82) 16%,
            rgba(247, 250, 248, 0.82) 84%,
            rgba(247, 250, 248, 0) 100%
        );
}

.page-program .main-body .bot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;
    width: 92%;
    max-width: 1060px;
    height: 1px;
    transform: translateX(-50%);
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(79, 146, 131, 0),
        rgba(79, 146, 131, 0.26),
        rgba(110, 79, 179, 0.14),
        rgba(79, 146, 131, 0)
    );
}

.page-program .main-body .bot::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: 8%;
    z-index: 0;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    background: radial-gradient(
        circle,
        rgba(79, 146, 131, 0.11) 0,
        rgba(79, 146, 131, 0.05) 34%,
        rgba(79, 146, 131, 0) 69%
    );
    animation: msProgramsAura 10s ease-in-out infinite alternate;
}

/* Main service row */

.page-program .main-body .bot .card {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 68px;
    margin: 0;
    padding: 48px 18px;
    border: 0;
    border-bottom: 1px solid var(--ms-programs-line-soft);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    counter-increment: msProgramItem;
    animation: msProgramsFadeUp 720ms cubic-bezier(.22, 1, .36, 1) both;
}

.page-program .main-body .bot .card:nth-child(even) {
    flex-direction: row-reverse;
}

.page-program .main-body .bot .card:first-child {
    padding-top: 18px;
}

.page-program .main-body .bot .card:last-child {
    padding-bottom: 18px;
    border-bottom: 0;
}

/* Staggered entrance */

.page-program .main-body .bot .card:nth-child(2) {
    animation-delay: 70ms;
}

.page-program .main-body .bot .card:nth-child(3) {
    animation-delay: 120ms;
}

.page-program .main-body .bot .card:nth-child(4) {
    animation-delay: 170ms;
}

.page-program .main-body .bot .card:nth-child(5) {
    animation-delay: 220ms;
}

.page-program .main-body .bot .card:nth-child(6) {
    animation-delay: 270ms;
}

.page-program .main-body .bot .card:nth-child(7) {
    animation-delay: 320ms;
}

.page-program .main-body .bot .card:nth-child(8) {
    animation-delay: 370ms;
}

/* Image */

.page-program .main-body .bot .card .card-image {
    position: relative;
    flex: 0 1 49%;
    width: 49%;
    max-width: 560px;
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius:
        var(--ms-programs-radius-large)
        var(--ms-programs-radius-small)
        var(--ms-programs-radius-large)
        var(--ms-programs-radius-small);
    background:
        linear-gradient(
            135deg,
            rgba(79, 154, 130, 0.12) 0%,
            rgba(52, 125, 104, 0.08) 100%
        ),
        var(--ms-programs-bg);
    box-shadow: 0 24px 52px rgba(36, 54, 50, 0.11);
    transform: translateZ(0);
    transition:
        transform var(--ms-programs-transition),
        opacity var(--ms-programs-transition),
        border-color var(--ms-programs-transition-fast),
        box-shadow var(--ms-programs-transition-slow);
}

.page-program .main-body .bot .card:nth-child(even) .card-image {
    border-radius:
        var(--ms-programs-radius-small)
        var(--ms-programs-radius-large)
        var(--ms-programs-radius-small)
        var(--ms-programs-radius-large);
}

.page-program .main-body .bot .card .card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(20, 42, 36, 0) 54%,
            rgba(20, 42, 36, 0.15) 100%
        ),
        linear-gradient(
            135deg,
            rgba(79, 146, 131, 0.08) 0%,
            rgba(110, 79, 179, 0.035) 100%
        );
    opacity: 0.72;
    transition: opacity var(--ms-programs-transition);
}

.page-program .main-body .bot .card .card-image picture,
.page-program .main-body .bot .card .card-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.page-program .main-body .bot .card .card-image img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    filter: saturate(0.92) contrast(0.98);
    transition:
        transform var(--ms-programs-transition-slow),
        filter var(--ms-programs-transition),
        opacity var(--ms-programs-transition);
}

/* Information */

.page-program .main-body .bot .card .card-info {
    position: relative;
    flex: 1 1 45%;
    width: auto;
    max-width: 500px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    color: var(--ms-programs-text);
    background: transparent;
}

.page-program .main-body .bot .card .card-info::before {
    content: counter(msProgramItem, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    margin: 0 0 18px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--ms-programs-accent-dark);
    background: var(--ms-programs-accent-soft);
    font-family: 'RobotoSlab-Bold', Georgia, serif;
    font-size: 0.78rem;
    line-height: 1;
    letter-spacing: 0.08em;
}

/* Title */

.page-program .main-body .bot .card .card-info h2 {
    width: 100%;
    margin: 0;
    color: var(--ms-programs-text);
    font-family: 'RobotoSlab-Bold', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.022em;
}

.page-program .main-body .bot .card .card-info h2 a {
    position: relative;
    display: inline;
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(
        90deg,
        var(--ms-programs-accent) 0%,
        rgba(110, 79, 179, 0.72) 100%
    );
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition:
        color var(--ms-programs-transition-fast),
        background-size var(--ms-programs-transition),
        opacity var(--ms-programs-transition-fast);
}

/* Excerpt */

.page-program .main-body .bot .card .card-info .excerpt {
    width: 100%;
    max-width: 48ch;
    margin: 20px 0 0;
    color: var(--ms-programs-muted);
    font-size: 1rem;
    line-height: 1.78;
    letter-spacing: 0.004em;
}

.page-program .main-body .bot .card .card-info .excerpt:empty {
    display: none;
}

/* Read more CTA */

.page-program .main-body .bot .card .card-info .read-more {
    position: relative;
    width: auto;
    margin: 30px 0 0;
    padding: 0;
    border: 0;
}

.page-program .main-body .bot .card .card-info .read-more > a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    min-height: 48px;
    color: var(--ms-programs-accent-dark);
    text-decoration: none;
    transition:
        transform var(--ms-programs-transition),
        opacity var(--ms-programs-transition-fast),
        color var(--ms-programs-transition-fast),
        background var(--ms-programs-transition),
        border-color var(--ms-programs-transition-fast),
        box-shadow var(--ms-programs-transition);
}

.page-program .main-body .bot .card .card-info .read-more .link-text {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    color: var(--ms-programs-accent-dark);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    font-family: 'RobotoSlab-Bold', Georgia, serif;
    font-size: 0.98rem;
    line-height: 1.2;
    letter-spacing: 0.025em;
}

.page-program .main-body .bot .card .card-info .read-more .link-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0.42);
    transform-origin: left center;
    background: linear-gradient(
        90deg,
        var(--ms-programs-accent) 0%,
        rgba(110, 79, 179, 0.66) 100%
    );
    transition:
        transform var(--ms-programs-transition),
        opacity var(--ms-programs-transition-fast);
}

.page-program .main-body .bot .card .card-info .read-more .service__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border-radius: 50%;
    color: var(--ms-programs-white);
    background: linear-gradient(
        135deg,
        var(--ms-programs-accent-light) 0%,
        var(--ms-programs-accent-dark) 100%
    );
    box-shadow: 0 10px 24px rgba(52, 125, 104, 0.2);
    transition:
        transform var(--ms-programs-transition),
        opacity var(--ms-programs-transition-fast),
        background var(--ms-programs-transition),
        box-shadow var(--ms-programs-transition);
}

.page-program .main-body .bot .card .card-info .read-more .service__arrow svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
    transform: translateX(0);
    transition: transform var(--ms-programs-transition);
}

/* Keyboard accessibility */

.page-program .main-body .bot .card .card-info h2 a:focus-visible,
.page-program .main-body .bot .card .card-info .read-more > a:focus-visible {
    outline: 3px solid rgba(79, 146, 131, 0.32);
    outline-offset: 5px;
    border-radius: 8px;
}

/* Hover interactions only on devices that support hover */

@media (hover: hover) and (pointer: fine) {
    .page-program .main-body .bot .card:hover .card-image {
        transform: translateY(-3px);
        box-shadow: 0 30px 64px rgba(36, 54, 50, 0.15);
    }

    .page-program .main-body .bot .card:hover .card-image::after {
        opacity: 0.46;
    }

    .page-program .main-body .bot .card:hover .card-image img {
        transform: scale(1.045);
        filter: saturate(1) contrast(1);
    }

    .page-program .main-body .bot .card .card-info h2 a:hover {
        color: var(--ms-programs-accent-dark);
        background-size: 100% 2px;
    }

    .page-program .main-body .bot .card .card-info .read-more > a:hover {
        color: var(--ms-programs-accent-dark);
        transform: translateY(-2px);
    }

    .page-program .main-body .bot .card .card-info .read-more > a:hover .link-text::after {
        transform: scaleX(1);
    }

    .page-program .main-body .bot .card .card-info .read-more > a:hover .service__arrow {
        transform: translateX(3px);
        box-shadow: 0 14px 28px rgba(52, 125, 104, 0.26);
    }

    .page-program .main-body .bot .card .card-info .read-more > a:hover .service__arrow svg {
        transform: translateX(2px);
    }
}

/* Animations */

@keyframes msProgramsFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes msProgramsAura {
    from {
        transform: translate3d(0, -10px, 0) scale(0.96);
        opacity: 0.5;
    }

    to {
        transform: translate3d(-24px, 16px, 0) scale(1.04);
        opacity: 0.78;
    }
}

/* Laptop */

@media (max-width: 1199px) {
    .page-program .main-body .bot {
        margin-bottom: 82px;
        padding-top: 64px;
    }

    .page-program .main-body .bot .card {
        gap: 52px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .page-program .main-body .bot .card .card-info h2 {
        font-size: 1.82rem;
    }
}

/* Tablet */

@media (max-width: 991px) {
    .page-program .main-body .bot {
        margin-top: 48px;
        margin-bottom: 72px;
        padding-top: 58px;
    }

    .page-program .main-body .bot .card {
        gap: 38px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-program .main-body .bot .card .card-image {
        flex-basis: 46%;
        width: 46%;
        border-radius: 26px 12px 26px 12px;
    }

    .page-program .main-body .bot .card:nth-child(even) .card-image {
        border-radius: 12px 26px 12px 26px;
    }

    .page-program .main-body .bot .card .card-info {
        flex-basis: 50%;
    }

    .page-program .main-body .bot .card .card-info h2 {
        font-size: 1.65rem;
    }

    .page-program .main-body .bot .card .card-info .excerpt {
        margin-top: 16px;
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .page-program .main-body .bot .card .card-info .read-more {
        margin-top: 24px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .page-program .main-body .bot {
        margin: 42px 0 62px;
        padding: 50px 0 20px;
        background:
            radial-gradient(
                circle at 7% 5%,
                rgba(79, 146, 131, 0.11) 0,
                rgba(79, 146, 131, 0.04) 25%,
                rgba(79, 146, 131, 0) 45%
            ),
            linear-gradient(
                180deg,
                rgba(247, 250, 248, 0) 0%,
                rgba(247, 250, 248, 0.92) 14%,
                rgba(247, 250, 248, 0.92) 86%,
                rgba(247, 250, 248, 0) 100%
            );
    }

    .page-program .main-body .bot::after {
        right: -240px;
        width: 400px;
        height: 400px;
        opacity: 0.5;
    }

    .page-program .main-body .bot .card,
    .page-program .main-body .bot .card:nth-child(even) {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        padding: 36px 0;
    }

    .page-program .main-body .bot .card:first-child {
        padding-top: 10px;
    }

    .page-program .main-body .bot .card:last-child {
        padding-bottom: 10px;
    }

    .page-program .main-body .bot .card .card-image,
    .page-program .main-body .bot .card:nth-child(even) .card-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        border-radius: 24px 10px 24px 10px;
        box-shadow: 0 20px 42px rgba(36, 54, 50, 0.11);
    }

    .page-program .main-body .bot .card:nth-child(even) .card-image {
        border-radius: 10px 24px 10px 24px;
    }

    .page-program .main-body .bot .card .card-info {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        padding: 0 4px 2px;
    }

    .page-program .main-body .bot .card .card-info::before {
        margin-bottom: 14px;
    }

    .page-program .main-body .bot .card .card-info h2 {
        font-size: 1.62rem;
        line-height: 1.25;
    }

    .page-program .main-body .bot .card .card-info .excerpt {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.72;
    }
}

/* Small mobile */

@media (max-width: 479px) {
    .page-program .main-body .bot {
        margin-top: 36px;
        margin-bottom: 54px;
        padding-top: 44px;
    }

    .page-program .main-body .bot .card {
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .page-program .main-body .bot .card .card-info {
        padding-right: 2px;
        padding-left: 2px;
    }

    .page-program .main-body .bot .card .card-info h2 {
        font-size: 1.42rem;
        letter-spacing: -0.016em;
    }

    .page-program .main-body .bot .card .card-info .excerpt {
        margin-top: 14px;
        font-size: 0.96rem;
        line-height: 1.68;
    }

    .page-program .main-body .bot .card .card-info .read-more {
        margin-top: 22px;
    }

    .page-program .main-body .bot .card .card-info .read-more > a {
        min-height: 46px;
        gap: 11px;
    }

    .page-program .main-body .bot .card .card-info .read-more .service__arrow {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

/* Very small mobile */

@media (max-width: 380px) {
    .page-program .main-body .bot {
        margin-top: 32px;
        margin-bottom: 48px;
        padding-top: 40px;
    }

    .page-program .main-body .bot .card {
        gap: 22px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .page-program .main-body .bot .card .card-image,
    .page-program .main-body .bot .card:nth-child(even) .card-image {
        border-radius: 20px 8px 20px 8px;
    }

    .page-program .main-body .bot .card:nth-child(even) .card-image {
        border-radius: 8px 20px 8px 20px;
    }

    .page-program .main-body .bot .card .card-info::before {
        min-width: 40px;
        min-height: 28px;
        margin-bottom: 13px;
        font-size: 0.74rem;
    }

    .page-program .main-body .bot .card .card-info h2 {
        font-size: 1.3rem;
        line-height: 1.28;
    }

    .page-program .main-body .bot .card .card-info .excerpt {
        font-size: 0.93rem;
    }

    .page-program .main-body .bot .card .card-info .read-more .link-text {
        font-size: 0.92rem;
    }
}

/* Motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .page-program .main-body .bot,
    .page-program .main-body .bot *,
    .page-program .main-body .bot *::before,
    .page-program .main-body .bot *::after {
        animation: none;
        transition: none;
        scroll-behavior: auto;
    }
}

.page-program .open-appointments .btn-group > a {
    padding: 0;
    box-sizing: border-box;
    width: 150px;
    text-align: center;
    padding-block: 4px;
}

.contact .left-side > .title {
    font-size: 23px;
    margin: 14px 0 30px;
    letter-spacing: 0.5px;
    color: #1f1f1f;
}

.contact .left-side .items {
    display: flex;
    flex-direction: column;
}

.contact .left-side .items .item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    list-style: none;
    display: flex;
    gap: 20px;
}

.contact .left-side .items .item .icon {
    width: 45px;
    height: 45px;
}

.contact .left-side .items .item .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact .left-side .items .item .info > h2 {
    font-size: 17px;
    line-height: 0.9;
    margin-bottom: 15px;
    color: #1f1f1f;
}

.contact .left-side .items .item .info .text {
    font-size: 15px;
    line-height: 1.1;
    color: #5a5a5a;
}

.contact .left-side .items .item .info > a,
.contact .left-side .items .item .info div.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    text-decoration: none;
}

.contact .left-side .items .item .info .text.bold {
    font-family: 'RobotoSlab-Bold';
    color: #6e52b3;
}

.page .contact {
    display: flex;
}

.page .contact .left-side {
    width: calc(45% - 50px);
    flex: 0 0 calc(45% - 50px);
    margin-right: 50px;
}

.page .contact .right-side {
    width: calc(55% - 50px);
    flex: 0 0 calc(55% - 50px);
    margin-left: 50px;
}



.page .contact .right-side .form-container {
    background-color: #f1f1f1;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.page .contact .right-side .form-container > h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.page .contact .right-side .form-container > p {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
}

.page .contact .right-side .form-container .row {
    display: flex;
    gap: 20px;
}

.page .contact .right-side .form-container .row.by-2 .form-group {
    width: calc(50% - 10px);
    flex: 0 0 calc(50% - 10px);
}

.page .contact .right-side .form-container .form-group {
    margin-bottom: 15px;
}
.page .contact .right-side .form-container .form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 13px;
    padding-left: 6px;
}
.page .contact .right-side .form-container .form-group input,
.page .contact .right-side .form-container .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
}
.page .contact .right-side .form-container .form-group textarea {
    resize: vertical;
    height: 100px;
}
.page .contact .right-side .form-container .submit-button {
    background-color: #66d26b;
    color: #000000;
    line-height: 1.2;
    letter-spacing: 1px;
    font-size: 14px;
    padding: 15px 30px 15px 30px;
    border-radius: 4px;
}

.page .contact .right-side .form-container .form-group.submit {
    margin-bottom: 0;
    text-align: center;
}

.page .map iframe {
    width: 100%;
}

.prices .page .consultation-prices {
    border-top: none;
}