@font-face {
    font-family: "MKS Features Inter";
    src: url("../fonts/inter-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

.single-content .mks-home-features {
    --mks-features-unit: clamp(1px, 0.130208vw, 2px);
    --mks-features-brand: #5a2ab7;
    --mks-features-ink: #2b1848;
    --mks-features-copy: #4e425d;
    --mks-features-lavender: #f2edfc;
    --mks-features-border: #e4daf6;

    margin-block: 0;
    padding-block: calc(12.5 * var(--mks-features-unit)) calc(30 * var(--mks-features-unit));
    background-color: #fff;
    background-image: radial-gradient(circle, #dedde4 calc(.65 * var(--mks-features-unit)), transparent calc(.9 * var(--mks-features-unit)));
    background-size: calc(16 * var(--mks-features-unit)) calc(16 * var(--mks-features-unit));
    color: var(--mks-features-ink);
    font-family: "MKS Features Inter", system-ui, sans-serif;
}

.mks-home-features__inner {
    box-sizing: border-box;
    width: calc(100% - 64 * var(--mks-features-unit));
    max-width: 1408px;
    margin-inline: auto;
    padding: calc(28 * var(--mks-features-unit));
    border-top: calc(3 * var(--mks-features-unit)) solid var(--mks-features-brand);
    border-radius: calc(18 * var(--mks-features-unit));
    background: var(--mks-features-lavender);
}

.mks-home-features__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: calc(12 * var(--mks-features-unit)) calc(22 * var(--mks-features-unit));
    margin-bottom: calc(24 * var(--mks-features-unit));
}

.single-content .mks-home-features h2,
.single-content .mks-home-features h3 {
    font-family: inherit;
    color: var(--mks-features-ink);
}

.single-content .mks-home-features h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.04em;
    scroll-margin-top: 105px;
}

.single-content .mks-home-features p {
    margin: 0;
    color: var(--mks-features-copy);
    font-size: max(.875rem, var(--wp--preset--font-size--small, .9rem));
    line-height: 1.52;
}

.single-content .mks-home-features__intro p {
    max-width: calc(430 * var(--mks-features-unit));
    margin-top: calc(8 * var(--mks-features-unit));
}

.single-content .mks-home-features__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(7 * var(--mks-features-unit));
    min-width: calc(173.5 * var(--mks-features-unit));
    min-height: calc(44 * var(--mks-features-unit));
    padding: calc(5 * var(--mks-features-unit)) calc(13 * var(--mks-features-unit));
    border-radius: calc(8 * var(--mks-features-unit));
    background: var(--mks-features-brand);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.mks-home-features__cta span {
    font-family: Arial, sans-serif;
    font-size: 1.18em;
    font-weight: 400;
}

.single-content .mks-home-features__cta:hover {
    background: #472087;
    color: #fff;
}

.single-content .mks-home-features__cta:focus-visible {
    outline: 3px solid var(--mks-features-brand);
    outline-offset: 3px;
}

.single-content .mks-home-features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(14 * var(--mks-features-unit));
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-content .mks-home-features__grid li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(10 * var(--mks-features-unit));
    min-width: 0;
    margin: 0;
    padding: calc(15 * var(--mks-features-unit));
    border: var(--mks-features-unit) solid var(--mks-features-border);
    border-radius: calc(16 * var(--mks-features-unit));
    background: #fff;
}

.single-content .mks-home-features__grid h3 {
    margin: 0 0 calc(4 * var(--mks-features-unit));
    font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
    font-weight: 700;
    line-height: 1.25;
}

.mks-home-features__icon {
    display: grid;
    flex: 0 0 auto;
    width: calc(34 * var(--mks-features-unit));
    height: calc(34 * var(--mks-features-unit));
    place-items: center;
    border-radius: calc(9 * var(--mks-features-unit));
    background: var(--mks-features-lavender);
}

.mks-home-features__icon::before {
    width: calc(16 * var(--mks-features-unit));
    height: calc(16 * var(--mks-features-unit));
    background: var(--mks-features-brand);
    content: "";
    mask: var(--mks-feature-icon) center / contain no-repeat;
}

.mks-home-features__icon--monitor {
    --mks-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8m-4-4v4'/%3E%3C/svg%3E");
}

.mks-home-features__icon--video {
    --mks-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='14' height='14' rx='2'/%3E%3Cpath d='m16 10 6-4v12l-6-4'/%3E%3C/svg%3E");
}

.mks-home-features__icon--instructor {
    --mks-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 10 10-5 10 5-10 5zM6 12v5c3 3 9 3 12 0v-5m4-2v6'/%3E%3C/svg%3E");
}

.mks-home-features__icon--app {
    --mks-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

.mks-home-features__icon--timer {
    --mks-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='14' r='8'/%3E%3Cpath d='M10 2h4m-2 0v4m0 8 3-3'/%3E%3C/svg%3E");
}

.mks-home-features__icon--portal {
    --mks-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='9' rx='1'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1'/%3E%3C/svg%3E");
}

@media (max-width: 729px) {
    .mks-home-features__inner {
        width: calc(100% - 32px);
        padding: 22px;
    }

    .single-content .mks-home-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .mks-home-features__inner {
        width: calc(100% - 24px);
        padding: 18px;
    }

    .mks-home-features__intro {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        margin-bottom: 18px;
    }

    .single-content .mks-home-features__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .single-content .mks-home-features__grid li {
        flex-direction: row;
        padding: 12px;
    }
}
