/* =========================================================
   Ahmed Fadl — index page design (light, cell / DNA helix layout)
   Palette sampled from landing.jpg: wall blue, board ink, desk wood, black shirt, plant green
   (the variable names still say teal / mint / sun; only their values changed)
   Loaded after index-custom-new.css. Page skin is scoped to
   body.mk-home; .mk-nav is shared with login/register/terms/privacy
   ========================================================= */
:root {
    --fx-bg: #f4f8fd;
    --fx-bg-2: #e6eff9;
    --fx-surface: #ffffff;
    --fx-surface-2: #f8fbfe;
    --fx-line: rgba(47, 111, 176, 0.22);
    --fx-mint: #2f6fb0;       /* DNA green, darkened for light backgrounds */
    --fx-emerald: #1f4f85;
    --fx-cyan: #5a8a34;       /* shirt / helix cyan */
    --fx-coral: #e8553f;      /* organs */
    --fx-sun: #b8763f;        /* cell highlights */
    --fx-text: #181822;
    --fx-dim: #5c6675;
    --fx-ink: #ffffff;        /* text on accent fills */
    --fx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Floating pill navbar (shared) ---------- */
.fixed-top.mk-nav {
    top: 12px;
    margin-inline: auto;
    width: min(1120px, calc(100% - 24px)) !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--fx-line);
    box-shadow: 0 18px 40px rgba(24, 24, 34, 0.12) !important;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.fixed-top.mk-nav.navbar-scrolled {
    padding: 0.45rem 1.1rem !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 22px 50px rgba(24, 24, 34, 0.19) !important;
}

.mk-nav .mk-logo {
    display: block;
    height: 46px;
    width: auto;
    padding: 3px;
    border-radius: 14px;
    background: #ffffff;
}

.mk-nav .btn-text {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}

.mk-nav .login-btn,
.mk-nav .register-btn {
    padding: 0.5rem 1.15rem;
    margin: 0 4px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    transition: transform 0.35s var(--fx-ease), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.mk-nav .login-btn {
    background: linear-gradient(135deg, var(--fx-mint) 0%, var(--fx-emerald) 100%);
    box-shadow: 0 8px 22px rgba(47, 111, 176, 0.35);
}

.mk-nav .login-btn .text-part-1,
.mk-nav .login-btn .text-part-2,
.mk-nav .login-btn .arrow-icon {
    color: var(--fx-ink);
}

.mk-nav .login-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5d9fd8 0%, var(--fx-emerald) 100%);
    box-shadow: 0 14px 30px rgba(47, 111, 176, 0.5);
    border-color: transparent;
}

.mk-nav .register-btn {
    background: transparent;
    border-color: rgba(47, 111, 176, 0.45);
    box-shadow: none;
}

.mk-nav .register-btn .text-part-1,
.mk-nav .register-btn .text-part-3 {
    color: var(--fx-text);
}

.mk-nav .register-btn:hover {
    transform: translateY(-2px);
    background: rgba(47, 111, 176, 0.12);
    border-color: var(--fx-mint);
    box-shadow: none;
}

.mk-nav .login-btn:focus-visible,
.mk-nav .register-btn:focus-visible,
.fx-btn:focus-visible {
    outline: 3px solid var(--fx-cyan);
    outline-offset: 3px;
}

.mk-nav .welcome-message {
    color: var(--fx-text);
}

.mk-nav #notificationsDropdown {
    color: #4b5563;
}

.mk-nav #notificationsDropdown:hover {
    color: var(--fx-mint);
    background: rgba(47, 111, 176, 0.14);
}

.mk-nav .text-danger {
    color: #d94a3a !important;
}

.mk-nav .btn-danger {
    background: linear-gradient(135deg, var(--fx-mint) 0%, var(--fx-emerald) 100%);
    border: 0;
    color: var(--fx-ink) !important;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(47, 111, 176, 0.35);
}

/* ---------- Page shell ---------- */
.mk-home {
    --bx-teal: #2f6fb0;       /* wall and board blue */
    --bx-teal-2: #1f4f85;
    --bx-mint: #e3eefa;
    --bx-peach: #f3dfcd;      /* brain sticker */
    --bx-coral: #ee6a52;
    --bx-sun: #c98a4b;
    --bx-ink: #181822;
    --bx-dim: #5c6675;
    --bx-white: #ffffff;
    --bx-line: rgba(47, 111, 176, 0.18);
    --bx-shadow: 0 22px 54px rgba(24, 24, 34, 0.1);
    --bx-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --bx-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--bx-ink);
    background-color: #f7fafd;
    /* scattered cell outlines */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%232f6fb0' stroke-opacity='.10' stroke-width='2'%3E%3Ccircle cx='42' cy='48' r='22'/%3E%3Ccircle cx='42' cy='48' r='7'/%3E%3Cellipse cx='190' cy='96' rx='30' ry='18' transform='rotate(-24 190 96)'/%3E%3Ccircle cx='110' cy='196' r='14'/%3E%3Ccircle cx='222' cy='214' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

.mk-home .mt-12 {
    margin-top: 0;
}

.mk-home .scroll-progress {
    background: linear-gradient(90deg, var(--bx-teal), var(--bx-sun), var(--bx-coral));
}

/* ---------- Hero ---------- */
.bx-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 150px 0 4.5rem;
}

.bx-hero::before,
.bx-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.bx-hero::before {
    top: 40px;
    left: -120px;
    width: 460px;
    height: 460px;
    background: rgba(47, 111, 176, 0.26);
}

.bx-hero::after {
    right: 8%;
    bottom: -60px;
    width: 340px;
    height: 340px;
    background: rgba(255, 190, 160, 0.42);
}

.bx-hero-in {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.4rem;
}

.bx-in {
    animation: bxUp 1s var(--bx-ease) both;
    animation-delay: calc(0.85s + var(--d, 0s));
}

@keyframes bxUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

.bx-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
    padding: 0.42rem 1.05rem 0.42rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--bx-teal-2);
    background: var(--bx-white);
    border: 1px solid var(--bx-line);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(24, 24, 34, 0.06);
}

.bx-tag i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    color: #ffffff;
    background: var(--bx-teal);
    border-radius: 50%;
}

.bx-title {
    margin: 0 0 1.2rem;
    font-size: clamp(3rem, 6.4vw, 5.4rem);
    line-height: 1.28;
    color: var(--bx-ink);
}

/* the tall hamza of "أحمد" rises above its line, so the small word needs real room under it */
.bx-title small {
    display: block;
    margin-bottom: 0;
    padding-bottom: clamp(1.1rem, 2.9vw, 2.6rem);
    font-family: Almarai, sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 700;
    line-height: 1.6;
    color: var(--bx-dim);
}

/* "فضل" in the main colour, with a highlighter band behind its lower half */
.bx-title em {
    font-style: normal;
    color: var(--bx-teal);
    padding-inline: 0.08em;
    background: linear-gradient(transparent 66%, rgba(201, 138, 75, 0.42) 66%, rgba(201, 138, 75, 0.42) 92%, transparent 92%);
}

.bx-lead {
    max-width: 500px;
    margin: 0 0 2rem;
    font-size: clamp(1.02rem, 1.7vw, 1.18rem);
    line-height: 2;
    color: var(--bx-dim);
}

.bx-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.2rem;
}

.bx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 58px;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.4s var(--bx-spring), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.bx-btn:focus-visible {
    outline: 3px solid var(--bx-sun);
    outline-offset: 3px;
}

.bx-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #5d9fd8 0%, var(--bx-teal-2) 100%);
    box-shadow: 0 18px 38px rgba(47, 111, 176, 0.4);
}

.bx-btn-primary:hover {
    color: #ffffff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 26px 50px rgba(47, 111, 176, 0.52);
}

.bx-btn-ghost {
    color: var(--bx-ink);
    background: var(--bx-white);
    border-color: var(--bx-line);
    box-shadow: 0 10px 26px rgba(24, 24, 34, 0.06);
}

.bx-btn-ghost:hover {
    color: var(--bx-teal-2);
    transform: translateY(-4px);
    border-color: var(--bx-teal);
}

.bx-btn-ghost i {
    transition: transform 0.4s var(--bx-spring);
}

.bx-btn-ghost:hover i {
    transform: translateY(4px);
}

.bx-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.bx-meta li {
    --c: var(--bx-teal);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem 0.5rem 0.55rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--bx-ink);
    background: var(--bx-white);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(24, 24, 34, 0.06);
}

.bx-meta i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    color: var(--c);
    border-radius: 11px;
    background: color-mix(in srgb, var(--c) 14%, #ffffff);
}

/* One tall picture, with the cell membrane turning behind it */
.bx-cells {
    position: relative;
    width: min(430px, 100%);
    aspect-ratio: 1122 / 1402;
    margin-inline: auto;
}

.bx-membrane {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 122%;
    aspect-ratio: 1;
    margin: -61% 0 0 -61%;
    border: 3px dashed rgba(47, 111, 176, 0.5);
    border-radius: 50%;
    animation: bxSpin 70s linear infinite;
}

.bx-membrane::before,
.bx-membrane::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bx-sun);
    box-shadow: 0 0 0 5px rgba(201, 138, 75, 0.25);
}

.bx-membrane::before { top: 6%; left: 18%; }
.bx-membrane::after { bottom: 10%; right: 12%; background: var(--bx-coral); box-shadow: 0 0 0 5px rgba(238, 106, 82, 0.25); }

@keyframes bxSpin {
    to { transform: rotate(360deg); }
}

.bx-cell {
    position: absolute;
    overflow: hidden;
    border: 8px solid var(--bx-white);
    border-radius: 34px;
    background: var(--bx-mint);
    box-shadow: 0 34px 70px rgba(24, 24, 34, 0.28);
    rotate: -2deg;
    transition: rotate 0.7s var(--bx-ease);
}

.bx-cells:hover .bx-cell {
    rotate: 0deg;
}

.bx-cell img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--bx-ease);
}

.bx-cell:hover img {
    transform: scale(1.07);
}

.bx-cell-1 {
    inset: 0;
}

.bx-sticker {
    position: absolute;
    z-index: 2;
    width: var(--w, 90px);
    height: auto;
    rotate: var(--r, 0deg);
    filter: drop-shadow(0 12px 14px rgba(24, 24, 34, 0.24));
    animation: bxBob 6s ease-in-out infinite;
    animation-delay: var(--dl, 0s);
    pointer-events: none;
}

/* the stickers sit on the corners of the frame, clear of the face */
.bx-sticker-1 { top: -6%; left: -13%; --w: 24%; --r: -12deg; }
.bx-sticker-2 { right: -15%; bottom: 3%; --w: 28%; --r: 10deg; --dl: -2s; }
.bx-sticker-3 { top: -7%; right: -14%; --w: 26%; --r: 8deg; --dl: -4s; }

@keyframes bxBob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

/* ---------- Sections ---------- */
.bx-section {
    padding: 6rem 0 0;
}

.bx-head {
    max-width: 660px;
    margin: 0 auto 3rem;
    text-align: center;
}

.bx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding: 0.35rem 1rem;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--bx-teal-2);
    background: var(--bx-mint);
    border-radius: 999px;
}

.bx-h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(2.1rem, 4.8vw, 3.5rem);
    line-height: 1.35;
    color: var(--bx-ink);
}

.bx-h2 em {
    font-style: normal;
    color: var(--bx-teal);
}

.bx-head p {
    margin: 0;
    line-height: 1.95;
    color: var(--bx-dim);
}

/* Steps as capsules */
.bx-caps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.bx-cap {
    --c: var(--bx-teal);
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: stretch;
    min-height: 132px;
    overflow: hidden;
    background: var(--bx-white);
    border-radius: 999px;
    box-shadow: var(--bx-shadow);
    transition: transform 0.5s var(--bx-spring), box-shadow 0.5s ease;
}

.bx-cap:hover {
    transform: translateY(-8px) rotate(-1.5deg);
    box-shadow: 0 34px 70px color-mix(in srgb, var(--c) 26%, transparent);
}

.bx-cap-num {
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    direction: ltr;
    color: #ffffff;
    background: linear-gradient(160deg, color-mix(in srgb, var(--c) 78%, #ffffff), var(--c));
    box-shadow: inset -10px 0 18px rgba(255, 255, 255, 0.22);
}

.bx-cap-body {
    align-self: center;
    padding: 1rem 1.2rem 1rem 2rem;
}

.bx-cap h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--bx-ink);
}

.bx-cap p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.75;
    color: var(--bx-dim);
}

/* Chapters on a DNA double helix */
.bx-dna {
    position: relative;
    display: grid;
    gap: 1.3rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.bx-dna::before {
    content: '';
    position: absolute;
    top: -30px;
    bottom: -30px;
    left: 50%;
    width: 76px;
    margin-left: -38px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='132' viewBox='0 0 76 132'%3E%3Cg fill='none' stroke-width='6' stroke-linecap='round'%3E%3Cpath d='M12 0 C12 33 64 33 64 66 S12 99 12 132' stroke='%232f6fb0'/%3E%3Cpath d='M64 0 C64 33 12 33 12 66 S64 99 64 132' stroke='%23ee6a52'/%3E%3C/g%3E%3C/svg%3E") repeat-y center top / 76px 132px;
    pointer-events: none;
}

.bx-pair {
    --c: var(--bx-teal);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 190px 1fr;
    align-items: center;
}

/* base-pair rung through the helix */
.bx-rung {
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 12px;
    margin-inline: 4px;
    border-radius: 12px;
    background: linear-gradient(to left, var(--c) 0 50%, var(--c2, var(--bx-sun)) 50% 100%);
    box-shadow: 0 6px 14px rgba(24, 24, 34, 0.14);
}

.bx-rung b {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    direction: ltr;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 1.05rem;
    color: #ffffff;
    border: 4px solid #f7fafd;
    border-radius: 50%;
    background: var(--c);
    transition: transform 0.5s var(--bx-spring);
}

.bx-rung b:last-child {
    background: var(--c2, var(--bx-sun));
}

.bx-pair:hover .bx-rung b {
    transform: scale(1.22) rotate(-10deg);
}

.bx-chapter {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    padding: 1.6rem 1.6rem 1.5rem;
    background: var(--bx-white);
    border: 1px solid rgba(24, 24, 34, 0.06);
    border-radius: 28px;
    box-shadow: var(--bx-shadow);
    transition: transform 0.5s var(--bx-ease), box-shadow 0.5s ease, border-color 0.5s ease;
}

.bx-pair:nth-child(even) .bx-chapter {
    grid-column: 3;
}

.bx-pair:hover .bx-chapter {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--c) 45%, transparent);
    box-shadow: 0 32px 66px color-mix(in srgb, var(--c) 22%, transparent);
}

.bx-chapter-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.7rem;
}

.bx-chapter-icon {
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
    color: #ffffff;
    border-radius: 18px;
    background: var(--c);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--c) 34%, transparent);
}

.bx-chapter small {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--c);
}

.bx-chapter h3 {
    margin: 0;
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--bx-ink);
}

.bx-chapter p {
    margin: 0 0 1rem;
    line-height: 1.9;
    color: var(--bx-dim);
}

.bx-chapter ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.bx-chapter li {
    padding: 0.3rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bx-ink);
    background: color-mix(in srgb, var(--c) 10%, #ffffff);
    border-radius: 999px;
}

/* the empty side of each rung carries the chapter number */
.bx-ghost {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    font-size: 8rem;
    line-height: 1;
    direction: ltr;
    color: transparent;
    -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 30%, transparent);
    transition: -webkit-text-stroke-color 0.5s ease, transform 0.6s var(--bx-spring);
}

.bx-pair:nth-child(even) .bx-ghost {
    grid-column: 1;
}

.bx-pair:hover .bx-ghost {
    -webkit-text-stroke-color: var(--c);
    transform: scale(1.08);
}

.bx-c-coral { --c: var(--bx-coral) !important; --c2: var(--bx-teal); }
.bx-c-teal { --c: var(--bx-teal) !important; --c2: var(--bx-coral); }
.bx-c-sun { --c: #b8763f !important; --c2: #5a8a34; }
.bx-c-blue { --c: #5a8a34 !important; --c2: var(--bx-sun); }

/* Review sheet */
.bx-sheet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--bx-white);
    border-radius: 36px;
    box-shadow: 0 34px 80px rgba(24, 24, 34, 0.14);
}

.bx-sheet-side {
    padding: 2.4rem 2.2rem;
}

.bx-sheet-side + .bx-sheet-side {
    color: #ffffff;
    background:
        radial-gradient(420px 260px at 0% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
        linear-gradient(150deg, var(--bx-teal) 0%, var(--bx-teal-2) 100%);
}

.bx-sheet h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: inherit;
}

.bx-sheet h3 i {
    font-size: 1.1rem;
    color: var(--bx-sun);
}

.bx-nums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin: 0;
}

.bx-num {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: 1.1rem 0.6rem;
    text-align: center;
    background: #f7fafd;
    border-radius: 22px;
    transition: transform 0.4s var(--bx-spring), background 0.4s ease;
}

.bx-num:hover {
    transform: translateY(-6px);
    background: var(--bx-mint);
}

.bx-num dd {
    margin: 0 0 0.2rem;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    line-height: 1.15;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    color: var(--bx-teal-2);
}

.bx-num dt {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--bx-dim);
}

.bx-rules {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.bx-rule {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    transition: background 0.35s ease, transform 0.35s var(--bx-ease);
}

.bx-rule:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-6px);
}

.bx-rule b {
    display: block;
    font-weight: 800;
    color: #ffffff;
}

.bx-rule span {
    font-size: 0.86rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.bx-rule code {
    direction: ltr;
    padding: 0.35rem 0.7rem;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--bx-teal-2);
    background: #ffffff;
    border-radius: 10px;
}

/* ---------- Existing dynamic sections ---------- */
.mk-home .latest-courses-section,
.mk-home .courses-section,
.mk-home .honor-roll-section,
.mk-home .honor-roll-section.bg-light,
.mk-home .student-opinions-section {
    background: transparent !important;
}

.mk-home .latest-courses-section,
.mk-home .courses-section {
    padding-top: 6rem !important;
}

.mk-home .courses-section::before,
.mk-home .honor-roll-section::before,
.mk-home .student-opinions-section::before {
    opacity: 0;
}

.mk-home .section-title,
.mk-home .courses-section .title-main {
    color: var(--bx-ink);
}

.mk-home .courses-section .title-accent {
    color: var(--bx-teal);
}

.mk-home .courses-section .title-accent + .title-accent {
    color: var(--bx-coral);
}

.mk-home .section-subtitle,
.mk-home .student-opinions-section .col-12.text-center > p {
    color: var(--bx-dim);
}

.mk-home .courses-section .feature-item {
    background: var(--bx-white);
    border: 1px solid var(--bx-line);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(24, 24, 34, 0.05);
}

.mk-home .courses-section .feature-item span {
    color: var(--bx-ink);
}

.mk-home .courses-section .feature-item .text-primary { color: #5a8a34 !important; }
.mk-home .courses-section .feature-item .text-success { color: var(--bx-teal) !important; }
.mk-home .courses-section .feature-item .text-info { color: #b8763f !important; }

.mk-home .modern-carousel {
    border-radius: 34px;
    box-shadow: 0 34px 80px rgba(24, 24, 34, 0.22), 0 0 0 6px var(--bx-white);
}

.mk-home .title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1rem;
}

.mk-home .decoration-line {
    flex: 0 0 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--bx-teal), transparent);
}

.mk-home .decoration-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5d9fd8, var(--bx-teal-2));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(47, 111, 176, 0.35);
}

.mk-home .decoration-icon i {
    color: #ffffff !important;
}

.mk-home .latest-courses-section .btn-primary,
.mk-home .student-opinions-section .btn-primary {
    background: linear-gradient(135deg, #5d9fd8 0%, var(--bx-teal-2) 100%);
    border-color: transparent;
    font-weight: 700;
}

.mk-home .latest-courses-section .btn-outline-primary {
    color: var(--bx-teal-2);
    background: var(--bx-white);
    border: 2px solid var(--bx-teal);
    border-radius: 999px;
    font-weight: 700;
    padding: 0.65rem 1.7rem;
}

.mk-home .latest-courses-section .btn-outline-primary:hover {
    background: var(--bx-teal);
    color: #ffffff;
}

.mk-home .latest-courses-section .badge.bg-primary {
    background: var(--bx-coral) !important;
}

.mk-home .latest-courses-section .divider-2.bg-info {
    background: var(--bx-teal) !important;
}

.mk-home .opinion-card.featured {
    border-color: var(--bx-teal);
}

.mk-home .opinion-card .quote-icon {
    color: var(--bx-teal);
}

.mk-home .opinion-rating .fa-star.active {
    color: var(--bx-sun);
}

.mk-home .footer-with-swave {
    background: transparent;
}

/* scroll-reveal sets overflow hidden on animated elements */
.mk-home .bx-pair,
.mk-home .bx-dna {
    overflow: visible !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .bx-nums { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
    .bx-hero { padding: 125px 0 4rem; }

    .bx-hero-in {
        grid-template-columns: 1fr;
        gap: 3.4rem;
        text-align: center;
    }

    .bx-lead { margin-inline: auto; }
    .bx-cta, .bx-meta { justify-content: center; }
    .bx-cells { width: min(360px, 76%); }

    .bx-caps { grid-template-columns: 1fr; }

    /* the helix moves to the side and the chapters stack */
    .bx-dna::before {
        left: auto;
        right: 0;
        width: 46px;
        margin-left: 0;
        background-size: 46px 80px;
    }

    .bx-pair {
        grid-template-columns: 1fr;
        padding-inline-start: 62px;
    }

    .bx-pair .bx-chapter,
    .bx-pair:nth-child(even) .bx-chapter { grid-column: 1; }

    .bx-rung,
    .bx-ghost { display: none; }

    .bx-sheet { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .bx-hero { padding: 104px 0 3.6rem; }
    .bx-btn { flex: 1 1 100%; }
    .bx-cell { border-width: 6px; border-radius: 26px; }
    .bx-cells { width: min(320px, 78%); }

    .bx-section { padding-top: 4.4rem; }
    .bx-cap { grid-template-columns: 78px 1fr; min-height: 112px; }
    .bx-cap-num { font-size: 2.1rem; }
    .bx-cap-body { padding: 0.9rem 1rem 0.9rem 1.6rem; }

    .bx-dna::before { width: 36px; background-size: 36px 62px; }
    .bx-pair { padding-inline-start: 48px; }
    .bx-chapter { padding: 1.3rem 1.2rem; border-radius: 22px; }
    .bx-chapter h3 { font-size: 1.2rem; }

    .bx-sheet { border-radius: 26px; }
    .bx-sheet-side { padding: 1.7rem 1.2rem; }

    .bx-rule {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .bx-rule code { justify-self: start; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .bx-in,
    .bx-membrane,
    .bx-sticker {
        animation: none !important;
    }

    .bx-btn,
    .bx-cap,
    .bx-chapter,
    .bx-rung b,
    .bx-ghost,
    .bx-num,
    .bx-rule,
    .bx-cell,
    .bx-cell img {
        transition: none;
    }
}
