/* Modern homepage concept */
body.home-modern-page {
    padding-top: 126px;
    background: #fbfbfe;
}

body.home-modern-page main {
    overflow: hidden;
}

body.home-modern-page .mh-site-header {
    border: 0;
    box-shadow: none;
}

.manhaj-home {
    --mh-primary: #5146c7;
    --mh-primary-dark: #302879;
    --mh-primary-soft: #eeeefe;
    --mh-cyan: #23b5c4;
    --mh-cyan-soft: #e8fbfc;
    --mh-green: #21a67a;
    --mh-gold: #f3ae3d;
    --mh-ink: #1c1933;
    --mh-copy: #65647a;
    --mh-line: #e9e8f1;
    --mh-surface: #ffffff;
    color: var(--mh-ink);
    background: #fbfbfe;
}

.manhaj-home .container {
    width: min(92%, 1280px);
    max-width: 1280px;
    padding-inline: 20px;
}

.manhaj-home h1,
.manhaj-home h2,
.manhaj-home h3,
.manhaj-home p {
    margin-top: 0;
    font-family: "Alexandria", sans-serif;
}

.manhaj-home h1,
.manhaj-home h2,
.manhaj-home h3 {
    background: none;
    color: var(--mh-ink);
    -webkit-text-fill-color: currentColor;
}

.manhaj-home a:focus-visible,
.manhaj-home button:focus-visible {
    outline: 3px solid rgba(35, 181, 196, 0.42);
    outline-offset: 4px;
}

.mh-button {
    gap: 11px;
    min-height: 52px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.mh-button:hover {
    transform: translateY(-3px);
}

.mh-button-primary {
    background: linear-gradient(135deg, var(--mh-primary) 0%, #6e63dc 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(81, 70, 199, 0.25);
}

.mh-button-primary:hover {
    color: #fff;
    box-shadow: 0 18px 34px rgba(81, 70, 199, 0.32);
}

.mh-button-secondary {
    border-color: rgba(81, 70, 199, 0.18);
    background: rgba(255, 255, 255, 0.86);
    color: var(--mh-primary-dark);
    box-shadow: 0 10px 24px rgba(37, 32, 85, 0.07);
}

.mh-button-secondary:hover {
    border-color: rgba(81, 70, 199, 0.34);
    color: var(--mh-primary);
    box-shadow: 0 14px 28px rgba(37, 32, 85, 0.11);
}

.mh-button-white {
    background: #fff;
    color: var(--mh-primary-dark);
    box-shadow: 0 14px 30px rgba(17, 13, 56, 0.16);
}

.mh-button-white:hover {
    color: var(--mh-primary);
    box-shadow: 0 18px 38px rgba(17, 13, 56, 0.22);
}

/* Hero */
.mh-hero {
    position: relative;
    isolation: isolate;
    padding: 42px 0 36px;
    background:
        radial-gradient(circle at 12% 14%, rgba(35, 181, 196, 0.12), transparent 25%),
        radial-gradient(circle at 91% 8%, rgba(81, 70, 199, 0.15), transparent 29%),
        linear-gradient(180deg, #f8f7ff 0%, #ffffff 100%);
}

.mh-hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.mh-hero-orb-one {
    top: 80px;
    right: -90px;
    width: 230px;
    height: 230px;
    border: 55px solid rgba(81, 70, 199, 0.05);
}

.mh-hero-orb-two {
    bottom: 170px;
    left: -65px;
    width: 150px;
    height: 150px;
    background: rgba(35, 181, 196, 0.06);
}

.mh-hero-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 38px;
    background:
        radial-gradient(circle at 8% 18%, rgba(133, 113, 235, 0.34), transparent 30%),
        radial-gradient(circle at 92% 82%, rgba(35, 181, 196, 0.2), transparent 34%),
        linear-gradient(135deg, #211956 0%, #342978 50%, #214f68 118%);
    box-shadow: 0 34px 85px rgba(38, 29, 101, 0.22);
}

.mh-hero-shell::before {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 22px 22px;
    content: "";
    mask-image: linear-gradient(90deg, #000, transparent 48%);
    pointer-events: none;
}

.mh-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(430px, 0.94fr);
    align-items: center;
    gap: clamp(28px, 4vw, 58px);
    min-height: 610px;
    padding: clamp(34px, 4.8vw, 64px);
}

.mh-hero-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

.mh-hero-message {
    position: relative;
    isolation: isolate;
    max-width: 690px;
    margin-bottom: 26px;
    padding: 30px 32px 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.72) 72%, rgba(238, 238, 254, 0.7) 100%);
    box-shadow:
        0 28px 70px rgba(47, 39, 124, 0.14),
        0 8px 24px rgba(35, 181, 196, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.mh-hero-message::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -95px;
    right: -75px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 99, 220, 0.24) 0%, rgba(81, 70, 199, 0.08) 46%, transparent 72%);
    filter: blur(2px);
    pointer-events: none;
}

.mh-hero-message::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: -95px;
    left: -55px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(35, 181, 196, 0.18) 0%, rgba(35, 181, 196, 0.05) 48%, transparent 72%);
    pointer-events: none;
}

.mh-eyebrow,
.mh-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mh-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.mh-eyebrow {
    margin-bottom: 24px;
    padding: 7px 10px 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 9, 49, 0.1);
    backdrop-filter: blur(8px);
}

.mh-eyebrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(126, 226, 229, 0.16);
    color: #8ae7e9;
}

.mh-hero h1 {
    max-width: 650px;
    margin-bottom: 22px;
    color: #fff;
    font-size: clamp(2.2rem, 3.3vw, 3.45rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.mh-hero h1 span {
    color: #86e3e6;
}

.mh-hero-lead {
    max-width: 630px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.02rem;
    line-height: 1.95;
}

.mh-hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 25px;
}

.mh-hero-benefit {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.mh-hero-benefit > span {
    display: inline-flex;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 0.76rem;
}

.mh-hero-benefit > span.purple { color: #d7d0ff; background: rgba(156, 134, 240, 0.2); }
.mh-hero-benefit > span.cyan { color: #8ae7e9; background: rgba(35, 181, 196, 0.18); }
.mh-hero-benefit > span.green { color: #8de5c4; background: rgba(33, 166, 122, 0.18); }

.mh-hero-benefit strong,
.mh-hero-benefit small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mh-hero-benefit strong {
    margin-bottom: 2px;
    color: #fff;
    font-size: 0.7rem;
}

.mh-hero-benefit small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.56rem;
}

.mh-hero-actions {
    gap: 12px;
    margin: 27px 0 25px;
}

.mh-hero .mh-button-primary {
    background: #fff;
    color: #302879;
    box-shadow: 0 15px 32px rgba(11, 8, 42, 0.22);
}

.mh-hero .mh-button-primary:hover {
    color: #5146c7;
    box-shadow: 0 19px 38px rgba(11, 8, 42, 0.28);
}

.mh-hero .mh-button-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: none;
}

.mh-hero .mh-button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.mh-hero-trust {
    gap: 14px;
}

.mh-trust-avatars {
    padding-inline-start: 10px;
}

.mh-trust-avatars span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-inline-start: -10px;
    border: 3px solid #332873;
    border-radius: 50%;
    color: #fff;
    font-size: 0.76rem;
    box-shadow: 0 7px 18px rgba(36, 31, 83, 0.12);
}

.mh-trust-avatars span:nth-child(1) { background: var(--mh-primary); }
.mh-trust-avatars span:nth-child(2) { background: var(--mh-cyan); }
.mh-trust-avatars span:nth-child(3) { background: var(--mh-green); }

.mh-hero-trust > div:last-child {
    display: grid;
    gap: 2px;
}

.mh-hero-trust strong {
    color: #fff;
    font-size: 0.78rem;
}

.mh-hero-trust > div:last-child span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.68rem;
}

.mh-hero-trust > div:last-child i {
    margin-inline-end: 3px;
    color: #82dfc0;
}

.mh-hero-visual {
    position: relative;
    height: 540px;
}

.mh-hero-visual-panel {
    position: absolute;
    inset: 12px 10px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.15), transparent 28%),
        linear-gradient(155deg, rgba(113, 96, 209, 0.62), rgba(30, 145, 154, 0.28));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mh-visual-panel-label {
    position: absolute;
    z-index: 4;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(28, 21, 79, 0.28);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.62rem;
    font-weight: 700;
    backdrop-filter: blur(9px);
}

.mh-student-stage {
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 96%;
    height: 90%;
}

.mh-stage-ring {
    position: absolute;
    z-index: -1;
    right: 7%;
    bottom: 2%;
    width: 88%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.035), 0 0 0 64px rgba(35, 181, 196, 0.04);
}

.mh-hero-student {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 24px 28px rgba(34, 28, 83, 0.16));
    animation: mhHeroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mh-visual-dots {
    position: absolute;
    top: 9%;
    left: 2%;
    width: 110px;
    height: 110px;
    opacity: 0.25;
    background-image: radial-gradient(#fff 1.5px, transparent 1.5px);
    background-size: 15px 15px;
}

.mh-floating-card {
    position: absolute;
    z-index: 3;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 18px 44px rgba(43, 38, 93, 0.15);
    backdrop-filter: blur(12px);
    animation: mhFloat 4.8s ease-in-out infinite;
}

.mh-floating-card small,
.mh-floating-card strong {
    display: block;
    white-space: nowrap;
}

.mh-floating-card small {
    color: var(--mh-copy);
    font-size: 0.61rem;
}

.mh-floating-card strong {
    color: var(--mh-ink);
    font-size: 0.76rem;
}

.mh-live-card {
    top: 29%;
    right: -5%;
}

.mh-live-icon,
.mh-progress-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #fff0f0;
    color: #ef5f64;
}

.mh-live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef5f64;
    box-shadow: 0 0 0 5px rgba(239, 95, 100, 0.12);
}

.mh-progress-card {
    bottom: 13%;
    left: -4%;
    animation-delay: -1.3s;
}

.mh-progress-icon {
    background: var(--mh-cyan-soft);
    color: var(--mh-cyan);
}

.mh-progress-card strong {
    color: var(--mh-green);
    font-size: 0.82rem;
}

.mh-score-card {
    top: 8%;
    left: 2%;
    animation-delay: -2.1s;
}

.mh-score-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eaf9f4;
    color: var(--mh-green);
}

/* Shared section headings */
.mh-section {
    padding: 100px 0;
}

.mh-systems {
    padding-top: 64px;
}

.mh-section-heading {
    margin-bottom: 44px;
}

.mh-heading-split {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
}

.mh-section-kicker {
    margin-bottom: 12px;
}

.mh-section-kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mh-section-heading h2,
.mh-family-copy h2,
.mh-vision-copy h2,
.mh-cta-copy h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 3.3vw, 3.2rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.mh-heading-split > p,
.mh-heading-centered > p {
    margin-bottom: 0;
    color: var(--mh-copy);
    font-size: 0.96rem;
    line-height: 1.95;
}

.mh-heading-centered {
    max-width: 770px;
}

.mh-heading-centered .mh-section-kicker {
    justify-content: center;
}

.mh-heading-centered h2 {
    margin-bottom: 13px;
}

/* Systems */
.mh-systems {
    background: #fff;
}

.mh-system-card {
    position: relative;
    min-height: 270px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--mh-line);
    border-radius: 22px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

a.mh-system-card:hover {
    border-color: rgba(81, 70, 199, 0.25);
    color: inherit;
    box-shadow: 0 22px 45px rgba(35, 29, 84, 0.1);
    transform: translateY(-7px);
}

.mh-system-number {
    position: absolute;
    top: 16px;
    left: 18px;
    color: #e5e4ed;
    font-size: 2rem;
    font-weight: 800;
}

.mh-system-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 35px;
    border-radius: 16px;
    font-size: 1.2rem;
}

.mh-system-icon.purple { background: var(--mh-primary-soft); color: var(--mh-primary); }
.mh-system-icon.cyan { background: var(--mh-cyan-soft); color: #1599a8; }
.mh-system-icon.green { background: #eaf9f4; color: var(--mh-green); }
.mh-system-icon.gold { background: #fff6e6; color: #d98e18; }

.mh-system-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 750;
}

.mh-system-card p {
    margin-bottom: 20px;
    color: var(--mh-copy);
    font-size: 0.78rem;
    line-height: 1.85;
}

.mh-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: auto;
    margin-inline-start: auto;
    border-radius: 10px;
    background: #f5f4fb;
    color: var(--mh-primary);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

a.mh-system-card:hover .mh-card-arrow {
    background: var(--mh-primary);
    color: #fff;
    transform: translateX(-4px);
}

.mh-coming-card {
    background: linear-gradient(145deg, #fbfaff, #f7f7fb);
}

.mh-coming-label {
    position: absolute;
    right: 88px;
    top: 27px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff1d9;
    color: #ac6b05;
    font-size: 0.58rem;
    font-weight: 700;
}

/* Family spotlight */
.mh-family-section {
    padding: 20px 0 105px;
    background: #fff;
}

.mh-family-card {
    position: relative;
    min-height: 535px;
    overflow: hidden;
    border-radius: 30px;
    background: #f6eee9;
    box-shadow: 0 24px 60px rgba(63, 43, 32, 0.1);
}

.mh-family-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-family-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 253, 252, 0.99) 0%, rgba(255, 253, 252, 0.95) 31%, rgba(255, 253, 252, 0.54) 51%, rgba(255, 253, 252, 0) 72%);
}

.mh-family-copy {
    position: relative;
    z-index: 2;
    width: 49%;
    margin-right: auto;
    padding: 62px 58px 55px;
}

.mh-family-copy h2 {
    margin-bottom: 15px;
}

.mh-family-copy > p {
    margin-bottom: 23px;
    color: var(--mh-copy);
    font-size: 0.92rem;
    line-height: 1.95;
}

.mh-check-list {
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    color: #3d3a50;
    font-size: 0.8rem;
    font-weight: 600;
}

.mh-check-list li {
    gap: 10px;
}

.mh-check-list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 8px;
    background: #eaf9f4;
    color: var(--mh-green);
    font-size: 0.66rem;
}

.mh-text-link {
    gap: 8px;
    color: var(--mh-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.mh-text-link:hover {
    color: var(--mh-primary-dark);
}

.mh-text-link i {
    transition: transform 0.2s ease;
}

.mh-text-link:hover i {
    transform: translateX(-4px);
}

/* Subjects */
.mh-subjects {
    background: #f7f7fc;
}

.mh-subjects-grid {
    --bs-gutter-x: 15px;
    --bs-gutter-y: 15px;
}

.mh-subject-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    min-height: 112px;
    padding: 17px 19px;
    border: 1px solid var(--mh-line);
    border-radius: 19px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(36, 31, 82, 0.035);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mh-subject-card:hover {
    border-color: rgba(81, 70, 199, 0.26);
    color: inherit;
    box-shadow: 0 18px 38px rgba(36, 31, 82, 0.09);
    transform: translateY(-5px);
}

.mh-subject-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: linear-gradient(145deg, var(--mh-primary-soft), #f7f6ff);
    color: var(--mh-primary);
    font-size: 1.24rem;
}

.mh-subject-content {
    min-width: 0;
    gap: 2px;
}

.mh-subject-content small {
    color: #9a98aa;
    font-size: 0.58rem;
}

.mh-subject-content strong {
    overflow: hidden;
    color: var(--mh-ink);
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mh-subject-content > span {
    color: var(--mh-primary);
    font-size: 0.63rem;
    font-weight: 600;
}

.mh-subject-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f7f7fb;
    color: #aaa8b8;
    font-size: 0.7rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mh-subject-card:hover .mh-subject-arrow {
    background: var(--mh-primary);
    color: #fff;
    transform: translateX(-3px);
}

.mh-subjects-empty {
    padding: 50px 25px;
    border: 1px dashed #dcdbe8;
    border-radius: 20px;
    text-align: center;
}

.mh-subjects-empty > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    border-radius: 18px;
    background: var(--mh-primary-soft);
    color: var(--mh-primary);
}

.mh-subjects-empty h3 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.mh-subjects-empty p {
    margin: 0;
    color: var(--mh-copy);
    font-size: 0.8rem;
}

/* Feature bento */
.mh-features {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 15%, rgba(35, 181, 196, 0.16), transparent 24%),
        radial-gradient(circle at 92% 85%, rgba(125, 112, 235, 0.17), transparent 27%),
        #181431;
}

.mh-features::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.mh-features .container {
    position: relative;
    z-index: 1;
}

.mh-features .mh-section-kicker.light,
.mh-features .mh-section-heading h2 {
    color: #fff;
}

.mh-features .mh-heading-split > p {
    color: rgba(255, 255, 255, 0.66);
}

.mh-feature-bento,
.mh-feature-bento .row {
    --bs-gutter-x: 15px;
    --bs-gutter-y: 15px;
}

.mh-feature-card {
    position: relative;
    min-height: 230px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.mh-feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.mh-feature-card h3 {
    margin-bottom: 9px;
    color: #fff;
    font-size: 1rem;
    font-weight: 750;
}

.mh-feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    line-height: 1.9;
}

.mh-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    margin-bottom: 45px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
}

.mh-feature-icon.soft-purple { background: rgba(136, 122, 255, 0.18); color: #b6adff; }
.mh-feature-icon.soft-cyan { background: rgba(35, 181, 196, 0.16); color: #72e3ec; }
.mh-feature-icon.soft-green { background: rgba(33, 166, 122, 0.17); color: #70dbb6; }
.mh-feature-icon.soft-gold { background: rgba(243, 174, 61, 0.17); color: #ffd17f; }

.mh-feature-main {
    min-height: 475px;
    padding: 34px;
    background: linear-gradient(145deg, rgba(98, 85, 211, 0.45), rgba(35, 181, 196, 0.11));
}

.mh-feature-main .mh-feature-icon {
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.16);
}

.mh-feature-main > div:not(.mh-mini-class) {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.mh-mini-label {
    display: block;
    margin-bottom: 8px;
    color: #89edf4;
    font-size: 0.68rem;
    font-weight: 700;
}

.mh-feature-main h3 {
    font-size: 1.55rem;
    line-height: 1.55;
}

.mh-feature-main p {
    max-width: 400px;
    font-size: 0.82rem;
}

.mh-mini-class {
    position: absolute;
    left: -18px;
    bottom: -12px;
    width: 190px;
    height: 152px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 19px 0 0 0;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-3deg);
}

.mh-mini-class-top {
    gap: 5px;
    padding: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mh-mini-class-top span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.mh-mini-class-body {
    gap: 12px;
    padding: 23px 16px;
}

.mh-teacher-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    border-radius: 16px;
    background: rgba(35, 181, 196, 0.25);
    color: #8cf2f7;
}

.mh-mini-class-body > div {
    gap: 8px;
    flex: 1;
}

.mh-mini-class-body i {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.23);
}

.mh-mini-class-body i:nth-child(2) { width: 72%; }
.mh-mini-class-body i:nth-child(3) { width: 48%; }

/* Journey */
.mh-journey {
    background: #fff;
}

.mh-journey-grid {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 20px;
}

.mh-journey-step {
    position: relative;
    padding: 31px 25px;
    border: 1px solid var(--mh-line);
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 14px 35px rgba(36, 31, 82, 0.055);
}

.mh-step-number {
    position: absolute;
    top: 15px;
    left: 17px;
    color: #e5e4ed;
    font-size: 1.45rem;
    font-weight: 800;
}

.mh-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 17px;
    border-radius: 18px;
    background: var(--mh-primary-soft);
    color: var(--mh-primary);
    font-size: 1.2rem;
}

.mh-journey-step.is-cyan .mh-step-icon {
    background: var(--mh-cyan-soft);
    color: #1698a6;
}

.mh-journey-step.is-green .mh-step-icon {
    background: #eaf9f4;
    color: var(--mh-green);
}

.mh-journey-step h3 {
    margin-bottom: 7px;
    font-size: 1rem;
}

.mh-journey-step p {
    margin: 0;
    color: var(--mh-copy);
    font-size: 0.75rem;
    line-height: 1.8;
}

.mh-step-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px dashed rgba(81, 70, 199, 0.32);
    border-radius: 50%;
    color: var(--mh-primary);
    font-size: 0.75rem;
}

/* Vision */
.mh-vision-section {
    padding: 0 0 112px;
    background: #fff;
}

.mh-vision-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 500px;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(145deg, #332a82, #1c1948);
    box-shadow: 0 28px 65px rgba(32, 26, 78, 0.18);
}

.mh-vision-copy {
    padding: 55px;
}

.mh-vision-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #8ce1c6;
    font-size: 0.67rem;
    font-weight: 700;
}

.mh-vision-copy h2 {
    margin-bottom: 15px;
    color: #fff;
}

.mh-vision-copy > p {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
    line-height: 1.95;
}

.mh-vision-points {
    gap: 9px;
    margin-bottom: 27px;
}

.mh-vision-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.83);
    font-size: 0.63rem;
}

.mh-vision-points i {
    color: #68d4af;
}

.mh-vision-image-wrap {
    position: relative;
    overflow: hidden;
}

.mh-vision-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 72, 0.6), transparent 35%);
}

.mh-vision-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 71% center;
}

/* Testimonials */
.mh-testimonials {
    background:
        radial-gradient(circle at 10% 18%, rgba(35, 181, 196, 0.08), transparent 24%),
        radial-gradient(circle at 90% 72%, rgba(81, 70, 199, 0.09), transparent 25%),
        #f7f7fc;
}

.mh-testimonial-carousel {
    position: relative;
}

.mh-testimonial-viewport {
    direction: ltr;
    margin-inline: -3px;
    padding: 12px 3px 10px;
    overflow: hidden;
    touch-action: pan-y;
}

.mh-testimonial-track {
    gap: 17px;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.mh-testimonial-card {
    position: relative;
    flex: 0 0 calc((100% - 34px) / 3);
    min-height: 350px;
    padding: 27px;
    border: 1px solid var(--mh-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(36, 31, 82, 0.05);
    direction: rtl;
}

.mh-testimonial-featured {
    border-color: rgba(81, 70, 199, 0.22);
    box-shadow: 0 20px 45px rgba(54, 45, 133, 0.1);
    transform: translateY(-10px);
}

.mh-quote-mark {
    position: absolute;
    top: 22px;
    left: 25px;
    color: #ecebf5;
    font-size: 2rem;
}

.mh-stars {
    gap: 3px;
    margin-bottom: 17px;
    color: var(--mh-gold);
    font-size: 0.68rem;
}

.mh-testimonial-service {
    display: inline-flex;
    width: fit-content;
    min-height: 29px;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(81, 70, 199, 0.1);
    border-radius: 999px;
    background: var(--mh-primary-soft);
    color: var(--mh-primary);
    font-size: 0.61rem;
    font-weight: 700;
}

.mh-testimonial-card blockquote {
    margin: 18px 0 28px;
    color: #48465a;
    font-size: 0.86rem;
    line-height: 2;
}

.mh-testimonial-card footer {
    gap: 11px;
    margin-top: auto;
    padding: 0;
    background: transparent !important;
}

.mh-review-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.mh-review-avatar.purple { background: var(--mh-primary); }
.mh-review-avatar.cyan { background: var(--mh-cyan); }
.mh-review-avatar.green { background: var(--mh-green); }
.mh-review-avatar.rose { background: #e8658f; }
.mh-review-avatar.amber { background: #ee9f32; }
.mh-review-avatar.blue { background: #3978d4; }
.mh-review-avatar.violet { background: #8464cf; }
.mh-review-avatar.teal { background: #218f83; }
.mh-review-avatar.indigo { background: #3e4f9a; }
.mh-review-avatar.coral { background: #db6b5f; }
.mh-review-avatar.emerald { background: #168b68; }
.mh-review-avatar.navy { background: #294c72; }

.mh-testimonial-card footer div {
    gap: 2px;
}

.mh-testimonial-card footer strong {
    color: var(--mh-ink);
    font-size: 0.77rem;
}

.mh-testimonial-card footer small {
    color: var(--mh-copy);
    font-size: 0.62rem;
}

.mh-testimonial-navigation {
    gap: 15px;
    margin-top: 24px;
}

.mh-carousel-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid rgba(81, 70, 199, 0.2);
    border-radius: 50%;
    background: #fff;
    color: var(--mh-primary);
    box-shadow: 0 8px 20px rgba(54, 45, 133, 0.08);
    font-size: 0.72rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mh-carousel-control:hover {
    background: var(--mh-primary);
    color: #fff;
    box-shadow: 0 11px 24px rgba(54, 45, 133, 0.18);
    transform: translateY(-2px);
}

.mh-carousel-control:focus-visible,
.mh-carousel-dot:focus-visible {
    outline: 3px solid rgba(50, 190, 193, 0.32);
    outline-offset: 3px;
}

.mh-carousel-pagination {
    gap: 7px;
    min-width: 44px;
}

.mh-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c9c6dd;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.mh-carousel-dot.is-active {
    width: 25px;
    background: var(--mh-primary);
}

/* Final CTA */
.mh-final-cta {
    padding: 105px 0;
    background: #fff;
}

.mh-cta-card {
    position: relative;
    gap: 45px;
    min-height: 300px;
    padding: 50px 60px;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 25%, rgba(59, 206, 218, 0.28), transparent 28%),
        linear-gradient(135deg, #5146c7 0%, #342d87 72%);
    box-shadow: 0 28px 65px rgba(59, 49, 145, 0.22);
}

.mh-cta-copy,
.mh-cta-actions {
    position: relative;
    z-index: 2;
}

.mh-cta-copy > span {
    display: block;
    margin-bottom: 9px;
    color: #92edf2;
    font-size: 0.7rem;
    font-weight: 700;
}

.mh-cta-copy h2 {
    margin-bottom: 9px;
    color: #fff;
}

.mh-cta-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.83rem;
}

.mh-cta-actions {
    gap: 12px;
    min-width: 180px;
}

.mh-cta-actions .mh-button {
    width: 100%;
}

.mh-cta-contact {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mh-cta-contact:hover {
    color: #fff;
}

.mh-cta-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
}

.mh-cta-shape.shape-one {
    right: -90px;
    bottom: -150px;
    width: 350px;
    height: 350px;
    box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.025);
}

.mh-cta-shape.shape-two {
    top: -85px;
    left: 30%;
    width: 180px;
    height: 180px;
}

@keyframes mhHeroIn {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mhFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (min-width: 992px) {
    .mh-heading-split {
        --bs-gutter-x: 50px;
    }
}

@media (max-width: 1199.98px) {
    .mh-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(370px, 0.9fr);
        gap: 30px;
    }

    .mh-hero-visual {
        height: 540px;
    }

    .mh-system-card {
        min-height: 245px;
    }

    .mh-family-copy {
        width: 55%;
        padding-inline: 45px;
    }

}

@media (max-width: 991.98px) {
    body.home-modern-page {
        padding-top: 80px;
    }

    .manhaj-home section {
        scroll-margin-top: 90px;
    }

    .mh-hero {
        padding: 34px 0 32px;
    }

    .mh-hero-shell {
        border-radius: 32px;
    }

    .mh-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 46px;
    }

    .mh-hero-copy {
        max-width: 760px;
        padding-bottom: 15px;
    }

    .mh-hero h1 {
        font-size: clamp(2.15rem, 6vw, 3.15rem);
    }

    .mh-hero-visual {
        width: min(100%, 620px);
        height: 540px;
        margin-inline: auto;
    }

    .mh-family-card {
        min-height: 600px;
    }

    .mh-family-image {
        object-position: 67% center;
    }

    .mh-family-shade {
        background: linear-gradient(90deg, rgba(255, 253, 252, 0.99) 0%, rgba(255, 253, 252, 0.92) 42%, rgba(255, 253, 252, 0.32) 77%);
    }

    .mh-family-copy {
        width: 62%;
        padding: 55px 38px;
    }

    .mh-feature-main {
        min-height: 410px;
    }

    .mh-step-line {
        transform: rotate(-90deg);
        margin-inline: auto;
    }

    .mh-vision-card {
        grid-template-columns: 1fr;
    }

    .mh-vision-image-wrap {
        min-height: 330px;
        order: -1;
    }

    .mh-vision-image-wrap::after {
        background: linear-gradient(0deg, #332a82, transparent 38%);
    }

    .mh-testimonial-card {
        flex-basis: calc((100% - 17px) / 2);
        min-height: 260px;
    }

    .mh-testimonial-featured {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .manhaj-home .container {
        width: 100%;
        padding-inline: 18px;
    }

    .mh-section {
        padding: 82px 0;
    }

    .mh-hero-copy {
        text-align: center;
    }

    .mh-hero-benefit {
        text-align: right;
    }

    .mh-hero-message {
        margin-inline: auto;
        padding: 27px 24px 24px;
        border-radius: 26px;
    }

    .mh-eyebrow {
        justify-content: center;
    }

    .mh-hero h1 {
        margin-inline: auto;
        font-size: clamp(1.95rem, 8.5vw, 2.55rem);
    }

    .mh-hero-lead {
        margin-inline: auto;
        font-size: 0.93rem;
    }

    .mh-hero-actions,
    .mh-hero-trust {
        justify-content: center;
    }

    .mh-hero-visual {
        height: 500px;
    }

    .mh-live-card {
        right: 0;
    }

    .mh-progress-card {
        left: 0;
    }

    .mh-section-heading {
        margin-bottom: 32px;
    }

    .mh-section-heading h2,
    .mh-family-copy h2,
    .mh-vision-copy h2,
    .mh-cta-copy h2 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .mh-system-card {
        min-height: 230px;
    }

    .mh-family-section {
        padding-bottom: 82px;
    }

    .mh-family-card {
        display: flex;
        min-height: 680px;
        align-items: flex-end;
    }

    .mh-family-image {
        object-position: 66% center;
    }

    .mh-family-shade {
        background: linear-gradient(0deg, rgba(255, 253, 252, 1) 0%, rgba(255, 253, 252, 0.98) 45%, rgba(255, 253, 252, 0.24) 78%);
    }

    .mh-family-copy {
        width: 100%;
        padding: 34px 26px;
    }

    .mh-feature-main {
        min-height: 430px;
    }

    .mh-feature-card {
        min-height: 215px;
    }

    .mh-vision-copy {
        padding: 38px 28px;
    }

    .mh-vision-section {
        padding-bottom: 82px;
    }

    .mh-vision-image-wrap {
        min-height: 270px;
    }

    .mh-final-cta {
        padding: 82px 0;
    }

    .mh-cta-card {
        gap: 28px;
        padding: 40px 28px;
        text-align: center;
    }

    .mh-cta-actions {
        width: min(100%, 250px);
        margin-inline: auto;
    }
}

@media (max-width: 575.98px) {
    .mh-hero {
        padding: 24px 0 24px;
    }

    .mh-systems {
        padding-top: 48px;
    }

    .mh-hero-shell {
        border-radius: 24px;
    }

    .mh-hero-grid {
        padding: 27px 16px 18px;
    }

    .mh-eyebrow {
        font-size: 0.67rem;
    }

    .mh-hero-message {
        margin-bottom: 22px;
        padding: 22px 15px 20px;
        border-radius: 22px;
        box-shadow:
            0 22px 50px rgba(47, 39, 124, 0.12),
            0 6px 18px rgba(35, 181, 196, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    .mh-hero h1 {
        letter-spacing: -0.055em;
    }

    .mh-hero-benefits {
        grid-template-columns: 1fr;
    }

    .mh-hero-benefit {
        padding: 10px 12px;
    }

    .mh-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mh-hero-actions .mh-button {
        width: 100%;
    }

    .mh-hero-trust {
        align-items: flex-start;
    }

    .mh-hero-trust > div:last-child {
        text-align: right;
    }

    .mh-hero-visual {
        height: 400px;
        margin-top: 12px;
    }

    .mh-hero-visual-panel {
        inset-inline: 0;
        border-radius: 23px;
    }

    .mh-visual-panel-label {
        top: 15px;
        right: 15px;
    }

    .mh-student-stage {
        right: 0;
        width: 100%;
    }

    .mh-stage-ring {
        right: 8%;
        width: 84%;
    }

    .mh-floating-card {
        padding: 9px 10px;
        border-radius: 12px;
    }

    .mh-floating-card strong {
        font-size: 0.63rem;
    }

    .mh-live-icon,
    .mh-progress-icon {
        width: 30px;
        height: 30px;
    }

    .mh-score-card {
        top: 10%;
        left: 0;
    }

    .mh-live-card {
        top: 28%;
    }

    .mh-progress-card {
        bottom: 14%;
    }

    .mh-subject-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mh-subject-arrow {
        display: none;
    }

    .mh-feature-main {
        min-height: 455px;
        padding: 26px;
    }

    .mh-feature-main .mh-feature-icon {
        margin-bottom: 60px;
    }

    .mh-mini-class {
        width: 155px;
        height: 125px;
    }

    .mh-testimonial-card {
        flex-basis: 100%;
        min-height: 285px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-hero-student,
    .mh-floating-card {
        animation: none;
    }

    .mh-testimonial-track {
        transition: none;
    }

    .manhaj-home *,
    .manhaj-home *::before,
    .manhaj-home *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Public-facing Views/Main pages */
/* Public content pages built on top of the shared landing shell. */
:root {
    --mh-public-primary: #5146c7;
    --mh-public-primary-dark: #302879;
    --mh-public-cyan: #1eaab8;
    --mh-public-ink: #1d1934;
    --mh-public-copy: #666279;
    --mh-public-muted: #8b879b;
    --mh-public-line: #e7e5f1;
    --mh-public-soft: #f5f4fc;
    --mh-public-surface: #fff;
    --mh-public-shadow: 0 22px 60px rgba(36, 29, 91, 0.09);
}

.mh-public-body .mh-site-main {
    background:
        radial-gradient(circle at 8% 8%, rgba(35, 181, 196, 0.08), transparent 25%),
        radial-gradient(circle at 92% 16%, rgba(81, 70, 199, 0.09), transparent 27%),
        #fbfbfe;
}

/* Neutralize the legacy global header rule inside modern public content. */
.mh-public-page header {
    position: static;
    top: auto;
    z-index: auto;
    width: auto;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: none;
}

/* Neutralize the legacy global header rule inside modern public content. */
.mh-public-page header {
    position: static;
    top: auto;
    z-index: auto;
    width: auto;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: none;
}

/* Neutralize the legacy global header rule inside modern public content. */
.mh-public-page header {
    position: static;
    top: auto;
    z-index: auto;
    width: auto;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: none;
}

.mh-public-page {
    color: var(--mh-public-ink);
}

.mh-public-page * {
    box-sizing: border-box;
}

.mh-public-hero {
    position: relative;
    padding: 38px 0 74px;
    overflow: hidden;
}

.mh-public-hero::before,
.mh-public-hero::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.mh-public-hero::before {
    top: -170px;
    right: -120px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(81, 70, 199, 0.1);
}

.mh-public-hero::after {
    bottom: 4px;
    left: 7%;
    width: 140px;
    height: 140px;
    background: rgba(35, 181, 196, 0.06);
    filter: blur(2px);
}

.mh-public-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    align-items: center;
    gap: clamp(38px, 7vw, 92px);
}

.mh-public-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    padding: 8px 12px;
    border: 1px solid rgba(81, 70, 199, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--mh-public-primary);
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(48, 40, 121, 0.06);
}

.mh-public-eyebrow i {
    color: var(--mh-public-cyan);
}

.mh-public-title {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--mh-public-ink);
    font-size: clamp(2.2rem, 5vw, 4.45rem);
    font-weight: 900;
    line-height: 1.13;
    letter-spacing: -0.045em;
}

.mh-public-title span {
    color: var(--mh-public-primary);
}

.mh-public-lead {
    max-width: 670px;
    margin: 0;
    color: var(--mh-public-copy);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 2;
}

.mh-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 29px;
}

.mh-public-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 21px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mh-public-button:hover {
    transform: translateY(-2px);
}

.mh-public-button.is-primary {
    background: linear-gradient(120deg, var(--mh-public-primary-dark), var(--mh-public-primary) 68%, #338fa5);
    color: #fff;
    box-shadow: 0 13px 28px rgba(61, 51, 155, 0.23);
}

.mh-public-button.is-primary:hover {
    color: #fff;
    box-shadow: 0 17px 34px rgba(61, 51, 155, 0.3);
}

.mh-public-button.is-secondary {
    border-color: rgba(81, 70, 199, 0.19);
    background: #fff;
    color: var(--mh-public-primary-dark);
    box-shadow: 0 9px 25px rgba(40, 33, 95, 0.07);
}

.mh-public-button.is-secondary:hover {
    border-color: rgba(81, 70, 199, 0.35);
    color: var(--mh-public-primary);
}

.mh-public-visual {
    position: relative;
    min-height: 390px;
    padding: 30px;
    border: 1px solid rgba(81, 70, 199, 0.11);
    border-radius: 32px;
    background:
        radial-gradient(circle at 78% 18%, rgba(35, 181, 196, 0.17), transparent 29%),
        linear-gradient(145deg, #fff, #f5f3ff 72%);
    box-shadow: var(--mh-public-shadow);
}

.mh-public-visual::before {
    position: absolute;
    inset: 17px;
    border: 1px dashed rgba(81, 70, 199, 0.12);
    border-radius: 23px;
    content: "";
}

.mh-public-visual-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mh-public-visual-heading > span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--mh-public-primary), #7367e7);
    color: #fff;
    box-shadow: 0 11px 24px rgba(81, 70, 199, 0.24);
}

.mh-public-visual-heading strong,
.mh-public-visual-heading small {
    display: block;
}

.mh-public-visual-heading strong {
    margin-bottom: 3px;
    font-size: 1rem;
}

.mh-public-visual-heading small {
    color: var(--mh-public-muted);
    font-size: 0.68rem;
}

.mh-public-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mh-public-feature-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(81, 70, 199, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.83);
}

.mh-public-feature-list i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eeecff;
    color: var(--mh-public-primary);
}

.mh-public-feature-list strong,
.mh-public-feature-list small {
    display: block;
}

.mh-public-feature-list strong {
    margin-bottom: 2px;
    font-size: 0.8rem;
}

.mh-public-feature-list small {
    color: var(--mh-public-muted);
    font-size: 0.65rem;
    line-height: 1.7;
}

.mh-public-section {
    padding: 76px 0;
}

.mh-public-section.is-soft {
    border-block: 1px solid rgba(81, 70, 199, 0.07);
    background: rgba(242, 240, 251, 0.72);
}

.mh-public-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 31px;
}

.mh-public-section-heading > div:first-child {
    max-width: 700px;
}

.mh-public-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--mh-public-cyan);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.mh-public-section-title {
    margin: 0;
    color: var(--mh-public-ink);
    font-size: clamp(1.65rem, 3vw, 2.7rem);
    font-weight: 900;
    line-height: 1.35;
}

.mh-public-section-copy {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--mh-public-copy);
    line-height: 1.95;
}

.mh-public-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.mh-public-card {
    position: relative;
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--mh-public-line);
    border-radius: 21px;
    background: var(--mh-public-surface);
    box-shadow: 0 14px 40px rgba(38, 31, 92, 0.065);
}

.mh-public-card-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 15px;
    background: #eeecff;
    color: var(--mh-public-primary);
    font-size: 1rem;
}

.mh-public-card:nth-child(2n) .mh-public-card-icon {
    background: #e7f8fa;
    color: #138c99;
}

.mh-public-card h3,
.mh-public-card h4 {
    margin: 0 0 10px;
    color: var(--mh-public-ink);
    font-size: 1rem;
    font-weight: 800;
}

.mh-public-card p {
    margin: 0;
    color: var(--mh-public-copy);
    font-size: 0.78rem;
    line-height: 1.85;
}

.mh-public-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: stretch;
    gap: 22px;
}

.mh-public-story-card {
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--mh-public-line);
    border-radius: 27px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(38, 31, 92, 0.07);
}

.mh-public-story-card.is-accent {
    background:
        radial-gradient(circle at 15% 10%, rgba(35, 181, 196, 0.17), transparent 29%),
        linear-gradient(140deg, #26205f, #5146c7 67%, #287f93);
    color: #fff;
}

.mh-public-story-card h2,
.mh-public-story-card h3 {
    margin: 0 0 16px;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    font-weight: 900;
}

.mh-public-story-card p {
    margin: 0;
    color: var(--mh-public-copy);
    line-height: 2;
}

.mh-public-story-card p + p {
    margin-top: 13px;
}

.mh-public-story-card.is-accent p {
    color: rgba(255, 255, 255, 0.82);
}

.mh-public-story-card.is-accent h2,
.mh-public-story-card.is-accent h3 {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.mh-public-story-mark {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.11);
    color: #8ff0ed;
    font-size: 1.15rem;
}

.mh-public-cta {
    padding: 20px 0 84px;
}

.mh-public-cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    padding: clamp(30px, 5vw, 54px);
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 13% 10%, rgba(35, 181, 196, 0.21), transparent 27%),
        linear-gradient(120deg, #24205f, #5146c7 62%, #277d92);
    color: #fff;
    box-shadow: 0 25px 65px rgba(39, 31, 105, 0.22);
}

.mh-public-cta-inner::after {
    position: absolute;
    top: -90px;
    left: -55px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
}

.mh-public-cta-copy {
    position: relative;
    z-index: 1;
}

.mh-public-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.55rem, 3.5vw, 2.7rem);
    font-weight: 900;
}

.mh-public-cta p {
    max-width: 710px;
    margin: 0;
    color: rgba(255, 255, 255, 0.79);
    line-height: 1.85;
}

.mh-public-cta .mh-public-button {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--mh-public-primary-dark);
    box-shadow: 0 13px 30px rgba(19, 15, 52, 0.2);
}

.mh-public-cta .mh-public-button:hover {
    color: var(--mh-public-primary);
}

/* Teacher discovery */
.mh-teachers-hero .mh-public-hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
}

.mh-teachers-count {
    display: grid;
    width: 210px;
    min-height: 210px;
    place-items: center;
    padding: 24px;
    border: 1px solid rgba(81, 70, 199, 0.12);
    border-radius: 31px;
    background: linear-gradient(145deg, #fff, #f1efff);
    box-shadow: var(--mh-public-shadow);
    text-align: center;
}

.mh-teachers-count > span {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--mh-public-primary), #7669e7);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 13px 28px rgba(81, 70, 199, 0.24);
}

.mh-teachers-count strong {
    display: block;
    color: var(--mh-public-ink);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

.mh-teachers-count small {
    color: var(--mh-public-copy);
    font-size: 0.72rem;
}

.mh-teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mh-teacher-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--mh-public-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(35, 29, 86, 0.075);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mh-teacher-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--mh-public-primary), var(--mh-public-cyan));
    content: "";
}

.mh-teacher-card:hover {
    border-color: rgba(81, 70, 199, 0.22);
    box-shadow: 0 22px 54px rgba(35, 29, 86, 0.12);
    transform: translateY(-5px);
}

.mh-teacher-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.mh-teacher-avatar {
    position: relative;
    display: inline-flex;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #f0effa;
    border-radius: 24px;
    background: linear-gradient(145deg, #eeecff, #e5f8fa);
    color: var(--mh-public-primary);
    font-size: 1.65rem;
}

.mh-teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-teacher-card h2,
.mh-teacher-card h3 {
    margin: 0 0 7px;
    color: var(--mh-public-ink);
    font-size: 1.08rem;
    font-weight: 900;
}

.mh-teacher-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #118777;
    font-size: 0.68rem;
    font-weight: 800;
}

.mh-teacher-meta {
    display: grid;
    gap: 9px;
    margin: 0 0 22px;
    padding: 15px;
    border-radius: 15px;
    background: #f8f7fc;
}

.mh-teacher-meta span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--mh-public-copy);
    font-size: 0.72rem;
}

.mh-teacher-meta i {
    width: 20px;
    color: var(--mh-public-primary);
    text-align: center;
}

.mh-teacher-card .mh-public-button {
    width: 100%;
    min-height: 46px;
    margin-top: auto;
}

.mh-public-empty {
    padding: 55px 25px;
    border: 1px dashed rgba(81, 70, 199, 0.28);
    border-radius: 24px;
    background: #fff;
    text-align: center;
}

.mh-public-empty > span {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 20px;
    background: #efedff;
    color: var(--mh-public-primary);
    font-size: 1.35rem;
}

.mh-public-empty h2,
.mh-public-empty h3 {
    margin: 0 0 9px;
    font-size: 1.2rem;
    font-weight: 900;
}

.mh-public-empty p {
    margin: 0 0 20px;
    color: var(--mh-public-copy);
}

/* Teacher profile */
.mh-profile-hero {
    padding-bottom: 48px;
}

.mh-profile-hero-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: clamp(25px, 4vw, 42px);
    border: 1px solid rgba(81, 70, 199, 0.12);
    border-radius: 29px;
    background:
        radial-gradient(circle at 13% 15%, rgba(35, 181, 196, 0.12), transparent 27%),
        linear-gradient(145deg, #fff, #f6f4ff);
    box-shadow: var(--mh-public-shadow);
}

.mh-profile-avatar {
    display: inline-flex;
    width: 142px;
    height: 142px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 34px;
    background: linear-gradient(145deg, #e9e6ff, #dff7f8);
    color: var(--mh-public-primary);
    box-shadow: 0 16px 38px rgba(45, 36, 113, 0.16);
    font-size: 2.6rem;
}

.mh-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-profile-copy h1 {
    margin: 4px 0 8px;
    color: var(--mh-public-ink);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
}

.mh-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mh-profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(81, 70, 199, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.83);
    color: var(--mh-public-copy);
    font-size: 0.68rem;
    font-weight: 700;
}

.mh-profile-tag.is-verified {
    background: #eaf9f5;
    color: #0d7e70;
}

.mh-profile-actions {
    display: grid;
    gap: 9px;
    min-width: 190px;
}

.mh-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 22px;
    padding-bottom: 76px;
}

.mh-profile-content {
    display: grid;
    gap: 18px;
}

.mh-profile-panel {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--mh-public-line);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 15px 42px rgba(38, 31, 92, 0.065);
}

.mh-profile-panel-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.mh-profile-panel-heading > span {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eeecff;
    color: var(--mh-public-primary);
}

.mh-profile-panel-heading h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 900;
}

.mh-profile-description {
    margin: 0;
    color: var(--mh-public-copy);
    line-height: 2;
    white-space: pre-line;
}

.mh-profile-resource {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px;
    border: 1px solid var(--mh-public-line);
    border-radius: 17px;
    background: #f9f8fc;
}

.mh-profile-resource-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mh-profile-resource-copy > span {
    display: inline-flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #e9f8f5;
    color: #0c8274;
}

.mh-profile-resource-copy strong,
.mh-profile-resource-copy small {
    display: block;
}

.mh-profile-resource-copy strong {
    margin-bottom: 3px;
    font-size: 0.8rem;
}

.mh-profile-resource-copy small {
    color: var(--mh-public-muted);
    font-size: 0.66rem;
}

.mh-profile-media {
    overflow: hidden;
    border-radius: 18px;
    background: #17142f;
    box-shadow: 0 15px 35px rgba(21, 18, 47, 0.18);
}

.mh-profile-media video {
    display: block;
    width: 100%;
    max-height: 480px;
}

.mh-profile-missing {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px dashed rgba(81, 70, 199, 0.2);
    border-radius: 16px;
    background: #f8f7fc;
    color: var(--mh-public-copy);
    font-size: 0.74rem;
}

.mh-profile-missing i {
    color: var(--mh-public-primary);
}

.mh-profile-aside {
    position: sticky;
    top: 104px;
    padding: 25px;
    border: 1px solid var(--mh-public-line);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 15px 42px rgba(38, 31, 92, 0.065);
}

.mh-profile-aside > span {
    display: inline-flex;
    width: 49px;
    height: 49px;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 15px;
    background: #e7f8fa;
    color: #128d9a;
}

.mh-profile-aside h2 {
    margin: 0 0 9px;
    font-size: 1.05rem;
    font-weight: 900;
}

.mh-profile-aside p {
    margin: 0 0 18px;
    color: var(--mh-public-copy);
    font-size: 0.74rem;
    line-height: 1.85;
}

.mh-profile-aside .mh-public-button {
    width: 100%;
}

/* Legal documents */
.mh-legal-page {
    padding-bottom: 80px;
}

.mh-legal-hero {
    padding: 35px 0 48px;
}

.mh-legal-hero-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 19px;
    padding: 27px 30px;
    border: 1px solid rgba(81, 70, 199, 0.1);
    border-radius: 23px;
    background: linear-gradient(145deg, #fff, #f5f3ff);
    box-shadow: 0 16px 44px rgba(37, 30, 91, 0.07);
}

.mh-legal-hero-icon {
    display: inline-flex;
    width: 61px;
    height: 61px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--mh-public-primary), #7266e5);
    color: #fff;
    box-shadow: 0 13px 28px rgba(81, 70, 199, 0.23);
    font-size: 1.22rem;
}

.mh-legal-hero h1 {
    margin: 0 0 7px;
    color: var(--mh-public-ink);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 900;
}

.mh-legal-hero p {
    margin: 0;
    color: var(--mh-public-copy);
    line-height: 1.8;
}

.mh-legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 23px;
}

.mh-legal-nav {
    position: sticky;
    top: 104px;
    padding: 19px;
    border: 1px solid var(--mh-public-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(37, 30, 91, 0.06);
}

.mh-legal-nav strong {
    display: block;
    margin-bottom: 12px;
    color: var(--mh-public-ink);
    font-size: 0.78rem;
}

.mh-legal-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--mh-public-copy);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.55;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.mh-legal-nav a:hover,
.mh-legal-nav a:focus-visible {
    background: #f0effd;
    color: var(--mh-public-primary-dark);
}

.mh-legal-nav i {
    color: var(--mh-public-cyan);
    font-size: 0.56rem;
}

.mh-legal-document {
    padding: clamp(23px, 4vw, 40px);
    border: 1px solid var(--mh-public-line);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 17px 46px rgba(37, 30, 91, 0.065);
}

.mh-legal-document > h2,
.mh-legal-document > h5 {
    margin: 8px 0 20px;
    padding-top: 7px;
    color: var(--mh-public-ink);
    font-size: 1.18rem;
    font-weight: 900;
    scroll-margin-top: 105px;
}

.mh-legal-document > h2:not(:first-child),
.mh-legal-document > h5:not(:first-child) {
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid var(--mh-public-line);
}

.mh-legal-section,
.mh-legal-document > .bg-light {
    margin-bottom: 13px;
    padding: 20px;
    border: 1px solid #ebe9f3;
    border-radius: 17px;
    background: #faf9fd;
}

.mh-legal-section:last-child,
.mh-legal-document > .bg-light:last-child {
    margin-bottom: 0;
}

.mh-legal-section h3,
.mh-legal-section h6,
.mh-legal-document > .bg-light h3,
.mh-legal-document > .bg-light h6 {
    margin: 0 0 13px;
    color: var(--mh-public-ink);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.7;
}

.mh-legal-section .badge,
.mh-legal-document > .bg-light .badge {
    margin-left: 7px;
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--mh-public-primary-dark) !important;
    font-size: 0.58rem;
}

.mh-legal-section p,
.mh-legal-section li,
.mh-legal-document > .bg-light p,
.mh-legal-document > .bg-light li {
    color: #58546a;
    font-size: 0.76rem;
    line-height: 2;
}

.mh-legal-section ul,
.mh-legal-document > .bg-light ul {
    margin-bottom: 0;
    padding-right: 1.15rem;
}

.mh-legal-section[id],
.mh-legal-document > .bg-light[id] {
    scroll-margin-top: 105px;
}

.mh-legal-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 23px;
    padding: 24px 26px;
    border-radius: 20px;
    background: linear-gradient(120deg, #292363, #5146c7);
    color: #fff;
}

.mh-legal-support h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
}

.mh-legal-support p {
    margin: 0;
    color: rgba(255, 255, 255, 0.77);
    font-size: 0.72rem;
}

.mh-legal-support .mh-public-button {
    min-width: 160px;
    background: #fff;
    color: var(--mh-public-primary-dark);
}

@media (max-width: 1199.98px) {
    .mh-public-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mh-teacher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .mh-public-hero {
        padding-top: 24px;
    }

    .mh-public-hero-grid,
    .mh-teachers-hero .mh-public-hero-grid,
    .mh-public-story-grid,
    .mh-profile-layout,
    .mh-legal-layout {
        grid-template-columns: 1fr;
    }

    .mh-public-visual {
        min-height: auto;
    }

    .mh-teachers-count {
        width: 100%;
        min-height: 150px;
        grid-template-columns: auto auto auto;
        justify-content: center;
        gap: 20px;
    }

    .mh-profile-hero-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mh-profile-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mh-profile-aside,
    .mh-legal-nav {
        position: static;
    }

    .mh-legal-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .mh-legal-nav strong {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .mh-public-hero {
        padding-bottom: 52px;
    }

    .mh-public-section {
        padding: 56px 0;
    }

    .mh-public-section-heading,
    .mh-public-cta-inner,
    .mh-legal-support {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .mh-public-grid,
    .mh-teacher-grid {
        grid-template-columns: 1fr;
    }

    .mh-public-title {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    .mh-public-visual {
        padding: 22px;
        border-radius: 24px;
    }

    .mh-public-cta-inner {
        display: flex;
    }

    .mh-public-cta .mh-public-button,
    .mh-legal-support .mh-public-button {
        width: 100%;
    }

    .mh-profile-hero-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mh-profile-avatar {
        margin-inline: auto;
    }

    .mh-profile-tags {
        justify-content: center;
    }

    .mh-profile-actions {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .mh-profile-resource {
        align-items: stretch;
        flex-direction: column;
    }

    .mh-legal-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mh-legal-hero-icon {
        margin-inline: auto;
    }
}

@media (max-width: 479.98px) {
    .mh-public-actions {
        display: grid;
    }

    .mh-public-button {
        width: 100%;
    }

    .mh-teachers-count {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mh-teacher-card-head {
        align-items: flex-start;
    }

    .mh-teacher-avatar {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
        border-radius: 20px;
    }

    .mh-legal-document,
    .mh-legal-section,
    .mh-legal-document > .bg-light {
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-public-page *,
    .mh-public-button,
    .mh-teacher-card {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .mh-legal-page .mh-legal-nav,
    .mh-legal-page .mh-legal-support,
    .mh-legal-page ~ .mh-quick-contact {
        display: none !important;
    }

    .mh-legal-layout {
        display: block;
    }

    .mh-legal-document {
        border: 0;
        box-shadow: none;
    }
}
