/* =========================================================
   Mostafa Khaled — index page design
   Palette sampled from landing.png / login.jpg / register.jpg
   Loaded after index-custom-new.css. Page skin is scoped to
   body.mk-home; .mk-nav is shared with login/register/terms/privacy
   ========================================================= */
:root {
    --mk-night: #06101f;      /* register poster background */
    --mk-navy: #0b1d3a;
    --mk-navy-soft: #13294d;
    --mk-teal: #17b3a3;       /* register poster title */
    --mk-teal-soft: #5fe0d2;
    --mk-amber: #f6a21e;      /* landing sunset / login title */
    --mk-orange: #f0782a;
    --mk-red: #e0202e;        /* register slash / login stamp text */
    --mk-sky: #2e9be6;        /* login title blue */
    --mk-cream: #fbf3e4;      /* login stamp paper */
    --mk-paper: #f4e7cf;
    --mk-wood: #3a2416;       /* login library wood */
    --mk-ink: #10203a;
    --mk-muted: #5d6b82;
    --mk-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.mk-home {
    background: var(--mk-cream);
    color: var(--mk-ink);
}

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

/* ---------- Navbar ---------- */
.mk-nav {
    background: rgba(6, 16, 31, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(95, 224, 210, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.mk-nav .mk-logo {
    height: 44px;
    width: auto;
    display: block;
}

.mk-nav .register-btn,
.mk-nav .login-btn {
    transition: transform 0.35s var(--mk-ease), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

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

.mk-nav .register-btn {
    background: linear-gradient(135deg, var(--mk-amber) 0%, var(--mk-orange) 100%);
    box-shadow: 0 8px 22px rgba(240, 120, 42, 0.35);
}

.mk-nav .register-btn .text-part-1,
.mk-nav .register-btn .text-part-3 {
    color: #1b1206;
}

.mk-nav .register-btn svg {
    stroke: #1b1206;
}

.mk-nav .login-btn {
    background: transparent;
    border-color: rgba(95, 224, 210, 0.55);
    box-shadow: none;
}

.mk-nav .login-btn .text-part-2 {
    color: var(--mk-teal-soft);
}

.mk-nav .login-btn .arrow-icon {
    color: var(--mk-amber);
}

.mk-nav .register-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffb53d 0%, var(--mk-orange) 100%);
    box-shadow: 0 14px 30px rgba(240, 120, 42, 0.5);
    border-color: transparent;
}

.mk-nav .login-btn:hover {
    transform: translateY(-2px);
    background: rgba(23, 179, 163, 0.16);
    border-color: var(--mk-teal-soft);
    box-shadow: 0 10px 26px rgba(23, 179, 163, 0.25);
}

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

.mk-nav .welcome-message {
    color: #fff;
}

.mk-nav #notificationsDropdown {
    color: #d6e3f5;
}

.mk-nav #notificationsDropdown:hover {
    color: var(--mk-amber);
    background: rgba(246, 162, 30, 0.14);
}

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

.mk-nav .btn-danger {
    background: linear-gradient(135deg, var(--mk-amber) 0%, var(--mk-orange) 100%);
    border: 0;
    color: #1b1206 !important;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(240, 120, 42, 0.35);
}

/* ---------- Hero ---------- */
.mk-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 150px 0 150px;
    color: #fff;
    background:
        radial-gradient(60% 55% at 12% 92%, rgba(240, 120, 42, 0.42) 0%, transparent 70%),
        radial-gradient(45% 45% at 88% 8%, rgba(23, 179, 163, 0.30) 0%, transparent 70%),
        radial-gradient(40% 40% at 55% 45%, rgba(46, 155, 230, 0.14) 0%, transparent 70%),
        linear-gradient(160deg, var(--mk-night) 0%, var(--mk-navy) 58%, #0a1830 100%);
}

/* Circuit grid from the register poster */
.mk-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(95, 224, 210, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 224, 210, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(75% 70% at 50% 40%, #000 0%, transparent 100%);
    mask-image: radial-gradient(75% 70% at 50% 40%, #000 0%, transparent 100%);
    pointer-events: none;
}

/* Crimson slash closing the hero, like the register poster */
.mk-hero::before,
.mk-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 96px;
    pointer-events: none;
}

.mk-hero::before {
    background: linear-gradient(90deg, var(--mk-red) 0%, #ff4b3a 55%, var(--mk-amber) 100%);
    clip-path: polygon(0 calc(100% - 14px), 100% 0, 100% 100%, 0 100%);
    filter: drop-shadow(0 -6px 18px rgba(224, 32, 46, 0.6));
}

.mk-hero::after {
    background: var(--mk-cream);
    clip-path: polygon(0 100%, 100% 14px, 100% 100%);
}

.mk-hero .container {
    position: relative;
    z-index: 2;
}

.mk-hero-copy {
    max-width: 600px;
}

.mk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    background: rgba(23, 179, 163, 0.14);
    border: 1px solid rgba(95, 224, 210, 0.45);
    color: var(--mk-teal-soft);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.mk-badge i {
    color: var(--mk-amber);
}

.mk-title {
    font-size: clamp(2.3rem, 5.2vw, 4.4rem);
    line-height: 1.25;
    margin: 0 0 0.35rem;
    color: #fff;
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

.mk-title-prefix {
    font-size: 0.5em;
    color: var(--mk-teal-soft);
    margin-inline-end: 0.15em;
}

.mk-title-name {
    background: linear-gradient(100deg, #fff 0%, #ffe2ae 38%, var(--mk-amber) 72%, var(--mk-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-block: 0.12em;
}

.mk-sub {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    direction: ltr;
    justify-content: flex-end;
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.2rem;
}

.mk-sub::before {
    content: '';
    flex: 0 0 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--mk-red), var(--mk-amber));
}

.mk-sub b {
    color: var(--mk-sky);
}

.mk-tagline {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 2;
    color: rgba(226, 235, 248, 0.86);
    margin: 0 0 1.7rem;
    max-width: 520px;
}

.mk-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.75rem 1.7rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.02rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.35s var(--mk-ease), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.mk-btn-primary {
    background: linear-gradient(135deg, var(--mk-amber) 0%, var(--mk-orange) 100%);
    color: #1b1206;
    box-shadow: 0 14px 30px rgba(240, 120, 42, 0.38);
}

.mk-btn-primary:hover {
    color: #1b1206;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(240, 120, 42, 0.55);
}

.mk-btn-ghost {
    color: #fff;
    border-color: rgba(95, 224, 210, 0.55);
    background: rgba(255, 255, 255, 0.04);
}

.mk-btn-ghost:hover {
    color: #fff;
    transform: translateY(-3px);
    background: rgba(23, 179, 163, 0.18);
    border-color: var(--mk-teal-soft);
}

.mk-btn:active {
    transform: translateY(-1px);
}

.mk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mk-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
}

.mk-chips li:nth-child(1) i { color: var(--mk-sky); }
.mk-chips li:nth-child(2) i { color: var(--mk-amber); }
.mk-chips li:nth-child(3) i { color: var(--mk-teal-soft); }

/* Poster */
.mk-poster {
    position: relative;
    margin: 0 auto;
    max-width: 580px;
}

.mk-poster-frame {
    position: relative;
    padding: 5px;
    border-radius: 30px;
    background: linear-gradient(140deg, var(--mk-amber) 0%, var(--mk-red) 45%, var(--mk-teal) 100%);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.55),
        0 0 70px rgba(240, 120, 42, 0.28);
    transform: rotate(-1.6deg);
    transition: transform 0.6s var(--mk-ease);
}

.mk-poster:hover .mk-poster-frame {
    transform: rotate(0deg) translateY(-6px);
}

.mk-poster-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 960 / 768;
    object-fit: cover;
    border-radius: 26px;
}

/* Postage stamp, borrowed from the login poster */
.mk-stamp {
    position: absolute;
    top: -22px;
    inset-inline-start: -14px;
    z-index: 2;
    padding: 7px;
    background: radial-gradient(circle, transparent 3.5px, var(--mk-cream) 4px) -7px -7px / 14px 14px;
    transform: rotate(7deg);
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
    animation: mkStampFloat 6s ease-in-out infinite;
}

.mk-stamp span {
    display: block;
    padding: 0.5rem 0.95rem;
    background: var(--mk-cream);
    color: var(--mk-red);
    font-size: 1.15rem;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

.mk-stamp small {
    display: block;
    font-family: Almarai, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mk-wood);
    letter-spacing: 0.04em;
}

@keyframes mkStampFloat {
    0%, 100% { transform: rotate(7deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-8px); }
}

/* Hero entrance — waits for the global loader (body.hero-ready) */
.mk-anim {
    transition:
        opacity 0.95s var(--mk-ease) var(--d, 0s),
        translate 0.95s var(--mk-ease) var(--d, 0s);
}

html.js .mk-anim {
    opacity: 0;
    translate: 0 26px;
}

body.hero-ready .mk-anim {
    opacity: 1;
    translate: 0 0;
}

.mk-tagline .w {
    display: inline-block;
    opacity: 0;
    translate: 0 0.6em;
    transition:
        opacity 0.75s var(--mk-ease) calc(0.7s + var(--i, 0) * 0.04s),
        translate 0.75s var(--mk-ease) calc(0.7s + var(--i, 0) * 0.04s);
}

body.hero-ready .mk-tagline .w {
    opacity: 1;
    translate: 0 0;
}

/* ---------- Steps band ---------- */
.mk-steps {
    position: relative;
    z-index: 3;
    margin-top: -46px;
    padding-bottom: 1rem;
}

.mk-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(16, 32, 58, 0.14);
    border: 1px solid rgba(16, 32, 58, 0.06);
    overflow: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mk-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.6rem;
    border-inline-start: 1px dashed rgba(16, 32, 58, 0.14);
}

.mk-step:first-child {
    border-inline-start: 0;
}

.mk-step-num {
    flex: 0 0 auto;
    font-size: 2.4rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--c);
    direction: ltr;
}

.mk-step h3 {
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    color: var(--mk-ink);
}

.mk-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mk-muted);
    line-height: 1.7;
}

/* ---------- Section headings ---------- */
.mk-section {
    padding: 5.5rem 0;
    position: relative;
}

.mk-head {
    text-align: center;
    margin-bottom: 3rem;
}

.mk-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--mk-red);
    margin-bottom: 0.5rem;
}

.mk-h2 {
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    line-height: 1.4;
    margin: 0 0 0.5rem;
    color: var(--mk-ink);
}

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

.mk-lead {
    font-size: 1.05rem;
    color: var(--mk-muted);
    margin: 0 auto;
    max-width: 560px;
    line-height: 1.9;
}

/* ---------- Curriculum units ---------- */
.mk-units {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.mk-unit {
    --c: var(--mk-teal);
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 1.7rem 1.5rem 1.5rem;
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(16, 32, 58, 0.07);
    box-shadow: 0 10px 30px rgba(16, 32, 58, 0.06);
    transition: transform 0.45s var(--mk-ease), box-shadow 0.45s ease, border-color 0.45s ease;
}

.mk-unit::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 5px;
    background: var(--c);
}

.mk-unit:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--c) 45%, transparent);
    box-shadow: 0 24px 50px color-mix(in srgb, var(--c) 22%, transparent);
}

.mk-unit-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.mk-unit-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.4rem;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 13%, #fff);
}

.mk-unit-num {
    font-size: 3rem;
    line-height: 1;
    direction: ltr;
    color: transparent;
    -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 55%, transparent);
}

.mk-unit h3 {
    font-size: 1.22rem;
    font-weight: 800;
    margin: 0 0 0.45rem;
    color: var(--mk-ink);
}

.mk-unit p {
    font-size: 0.94rem;
    line-height: 1.85;
    color: var(--mk-muted);
    margin: 0 0 1rem;
}

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

.mk-unit li {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mk-ink);
    background: var(--mk-cream);
    border: 1px solid var(--mk-paper);
}

/* Grade label above each group of units */
.mk-grade {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.4rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mk-ink);
}

.mk-grade::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to left, rgba(16, 32, 58, 0.16), transparent);
}

.mk-grade span {
    padding: 0.3rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #fff;
    background: var(--mk-navy);
}

.mk-grade-next {
    margin-top: 3.2rem;
}

.mk-grade-next span {
    background: var(--mk-teal);
}

.mk-units-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mk-c-red { --c: var(--mk-red) !important; }
.mk-c-sky { --c: var(--mk-sky) !important; }
.mk-c-amber { --c: var(--mk-orange) !important; }
.mk-c-teal { --c: var(--mk-teal) !important; }

/* ---------- Facts band (night) ---------- */
.mk-facts {
    position: relative;
    overflow: hidden;
    margin-top: 3.5rem;
    padding: 2.2rem 2rem;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(50% 120% at 100% 0%, rgba(23, 179, 163, 0.28) 0%, transparent 70%),
        radial-gradient(45% 120% at 0% 100%, rgba(224, 32, 46, 0.30) 0%, transparent 70%),
        linear-gradient(135deg, var(--mk-night) 0%, var(--mk-navy) 100%);
    box-shadow: 0 30px 60px rgba(6, 16, 31, 0.3);
}

.mk-facts-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    color: #fff;
}

.mk-facts-title i {
    color: var(--mk-amber);
}

.mk-facts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.9rem;
    margin: 0;
}

.mk-fact {
    padding: 1rem 0.8rem;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s var(--mk-ease), border-color 0.4s ease, background 0.4s ease;
}

.mk-fact:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 162, 30, 0.6);
    background: rgba(246, 162, 30, 0.08);
}

.mk-fact dt {

    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.6;
    color: rgba(226, 235, 248, 0.78);
}

.mk-fact dd {
    margin: 0 0 0.35rem;
    font-size: 1.3rem;
    font-weight: 800;
    direction: ltr;
    color: var(--mk-amber);
    font-variant-numeric: tabular-nums;
}

.mk-fact {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
}

/* ---------- Formula stamps ---------- */
.mk-formulas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
}

.mk-formula {
    --c: var(--mk-sky);
    padding: 7px;
    background: radial-gradient(circle, transparent 3.5px, var(--mk-paper) 4px) -7px -7px / 14px 14px;
    filter: drop-shadow(0 12px 20px rgba(58, 36, 22, 0.14));
    transition: transform 0.45s var(--mk-ease), filter 0.45s ease;
}

.mk-formula:hover {
    transform: translateY(-6px) rotate(-1.2deg);
    filter: drop-shadow(0 22px 30px rgba(58, 36, 22, 0.24));
}

.mk-formula-in {
    height: 100%;
    padding: 1.5rem 1.1rem 1.3rem;
    background: var(--mk-paper);
    text-align: center;
}

.mk-formula-math {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.7;
    color: var(--c);
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 2px dashed rgba(58, 36, 22, 0.22);
}

.mk-formula h4 {
    font-size: 1.02rem;
    font-weight: 800;
    margin: 0 0 0.3rem;
    color: var(--mk-wood);
}

.mk-formula p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.8;
    color: #6d5846;
}

.mk-subhead {
    text-align: center;
    margin: 4.5rem 0 2.2rem;
}

.mk-subhead h3 {
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    margin: 0 0 0.3rem;
    color: var(--mk-ink);
}

.mk-subhead p {
    margin: 0;
    color: var(--mk-muted);
}

/* ---------- Existing dynamic sections, re-skinned ---------- */
.mk-home .latest-courses-section,
.mk-home .honor-roll-section,
.mk-home .honor-roll-section.bg-light {
    background: #fff !important;
}

.mk-home .courses-section {
    background:
        radial-gradient(45% 80% at 0% 100%, rgba(240, 120, 42, 0.28) 0%, transparent 70%),
        radial-gradient(40% 70% at 100% 0%, rgba(23, 179, 163, 0.24) 0%, transparent 70%),
        linear-gradient(150deg, var(--mk-night) 0%, var(--mk-navy) 100%);
    padding-block: 5rem !important;
}

.mk-home .courses-section::before {
    opacity: 0;
}

.mk-home .courses-section .title-main {
    color: #fff;
}

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

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

.mk-home .courses-section .section-subtitle {
    color: rgba(226, 235, 248, 0.82);
}

.mk-home .courses-section .feature-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.mk-home .courses-section .feature-item span {
    color: #fff;
}

.mk-home .courses-section .feature-item .text-primary { color: var(--mk-sky) !important; }
.mk-home .courses-section .feature-item .text-success { color: var(--mk-teal-soft) !important; }
.mk-home .courses-section .feature-item .text-info { color: var(--mk-amber) !important; }

.mk-home .modern-carousel {
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(246, 162, 30, 0.35);
}

.mk-home .student-opinions-section {
    background: var(--mk-cream);
}

.mk-home .latest-courses-section .section-title,
.mk-home .honor-roll-section .section-title,
.mk-home .student-opinions-section .section-title {
    color: var(--mk-ink);
}

.mk-home .latest-courses-section .section-subtitle,
.mk-home .honor-roll-section .section-subtitle,
.mk-home .student-opinions-section .section-subtitle {
    color: var(--mk-muted);
}

.mk-home .decoration-line {
    background: linear-gradient(90deg, transparent, var(--mk-teal), transparent);
}

.mk-home .decoration-icon {
    background: linear-gradient(135deg, var(--mk-amber), var(--mk-orange));
    color: #1b1206;
    box-shadow: 0 8px 20px rgba(240, 120, 42, 0.35);
}

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

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

.mk-home .latest-courses-section .btn-primary:hover,
.mk-home .student-opinions-section .btn-primary:hover {
    background: linear-gradient(135deg, var(--mk-amber) 0%, var(--mk-orange) 100%);
    color: #1b1206;
}

.mk-home .latest-courses-section .btn-outline-primary {
    color: var(--mk-navy);
    border-color: var(--mk-navy);
    border-width: 2px;
    border-radius: 14px;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
}

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

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

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

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

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

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

.mk-home .footer-with-swave {
    background: var(--mk-cream);
}

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

@media (max-width: 991.98px) {
    .mk-hero {
        padding: 130px 0 130px;
        text-align: center;
    }

    .mk-hero-copy { margin-inline: auto; }
    .mk-tagline { margin-inline: auto; }
    .mk-sub { justify-content: center; }
    .mk-cta, .mk-chips { justify-content: center; }
    .mk-poster { max-width: 520px; margin-top: 1rem; }
    .mk-units { grid-template-columns: repeat(2, 1fr); }
    .mk-steps-grid { grid-template-columns: 1fr; }

    .mk-step {
        border-inline-start: 0;
        border-top: 1px dashed rgba(16, 32, 58, 0.14);
    }

    .mk-step:first-child { border-top: 0; }
}

@media (max-width: 575.98px) {
    .mk-nav .mk-logo { height: 34px; }

    .mk-badge { border-radius: 14px; font-size: 0.82rem; line-height: 1.7; }

    .mk-hero { padding: 112px 0 110px; }
    .mk-hero::before, .mk-hero::after { height: 56px; }
    .mk-hero::before { clip-path: polygon(0 calc(100% - 9px), 100% 0, 100% 100%, 0 100%); }
    .mk-hero::after { clip-path: polygon(0 100%, 100% 9px, 100% 100%); }

    .mk-sub { letter-spacing: 0.14em; }
    .mk-sub::before { flex-basis: 32px; }
    .mk-btn { flex: 1 1 100%; }
    .mk-stamp { top: -18px; inset-inline-start: -4px; }
    .mk-stamp span { font-size: 0.95rem; padding: 0.35rem 0.7rem; }
    .mk-poster-frame { border-radius: 22px; }
    .mk-poster-frame img { border-radius: 18px; }

    .mk-section { padding: 3.8rem 0; }
    .mk-units, .mk-units-2, .mk-formulas { grid-template-columns: 1fr; }
    .mk-facts { padding: 1.6rem 1.1rem; border-radius: 22px; }
    .mk-facts-grid { grid-template-columns: repeat(2, 1fr); }
    .mk-steps { margin-top: -30px; }
}

@media (prefers-reduced-motion: reduce) {
    .mk-anim,
    .mk-tagline .w {
        opacity: 1 !important;
        translate: none !important;
        transition: none !important;
    }

    .mk-stamp { animation: none; }

    .mk-poster-frame,
    .mk-unit,
    .mk-formula,
    .mk-fact,
    .mk-btn {
        transition: none;
    }
}
