/* Homepage design concepts — extends mg-page-hero.css */

.mg-home-preview-banner {
    background: #1e293b;
    color: #f8fafc;
    font-size: 1.15rem;
}

.mg-home-preview-link {
    color: #fde68a;
    text-decoration: none;
    font-weight: 600;
}

.mg-home-preview-link:hover {
    color: #fff;
    text-decoration: underline;
}

.mg-home-concept {
    --ink: #1c1917;
    --muted: #57534e;
    --surface: #fafaf9;
    --line: rgba(28, 25, 23, 0.08);
    --text-base: 1.5rem;
    --text-sm: 1.25rem;
    --text-lg: 1.75rem;
    --text-xl: clamp(2.25rem, 4vw, 3rem);
    --text-hero: clamp(2.75rem, 5vw, 4rem);
    --text-eyebrow: 1.15rem;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink);
}

/* Hero typography inside concept previews */
.mg-home-concept .mg-page-hero {
    --hero-text: var(--text-base);
    --hero-heading-sm: var(--text-eyebrow);
}

.mg-home-concept .mg-page-hero-title {
    font-size: var(--text-hero);
    max-width: 16ch;
}

.mg-home-concept .mg-page-hero-lead {
    font-size: var(--text-base);
    line-height: 1.65;
}

.mg-home-concept .mg-page-hero-eyebrow {
    font-size: var(--text-eyebrow);
}

.mg-home-concept .mg-page-hero-btn {
    font-size: var(--text-base);
}

.mg-home-concept section {
    padding: 4.5rem 0;
}

.mg-home-concept .mg-home-section-head {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.mg-home-concept .mg-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: var(--text-eyebrow);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.8);
    margin-bottom: 1rem;
}

.mg-home-concept .mg-home-eyebrow i {
    font-size: 1.25rem;
}

.mg-home-concept .mg-home-title {
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.mg-home-concept .mg-home-title--hero {
    font-size: var(--text-hero);
    max-width: 14ch;
}

.mg-home-concept .mg-home-title-gradient {
    background: linear-gradient(120deg, #c2410c, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mg-home-concept .mg-home-lead {
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}

.mg-home-concept .mg-home-section-intro {
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
    max-width: 40rem;
}

.mg-home-concept .mg-home-section-head.text-center .mg-home-section-intro {
    margin-left: auto;
    margin-right: auto;
}

.mg-home-concept .mg-home-panel-intro {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 1rem;
}

.mg-home-concept .mg-home-surface {
    background: var(--surface);
}

.mg-home-concept .mg-home-card {
    height: 100%;
    padding: 1.6rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mg-home-concept a.mg-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.mg-home-concept .mg-home-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.mg-home-concept .mg-home-card h3 {
    font-size: var(--text-lg);
    font-weight: 800;
    margin-bottom: 0.65rem;
    line-height: 1.25;
}

.mg-home-concept .mg-home-card p {
    font-size: var(--text-base);
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.mg-home-concept .mg-home-card-link {
    font-size: var(--text-base);
    font-weight: 700;
    color: #c2410c;
    text-decoration: none;
}

.mg-home-concept .mg-home-card-link i {
    vertical-align: -2px;
}

/* Concept A — audience paths */
.mg-home-a-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

@media (max-width: 767.98px) {
    .mg-home-a-paths {
        grid-template-columns: 1fr;
    }
}

.mg-home-a-path {
    display: block;
    padding: 1.35rem 1.4rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mg-home-a-path:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.mg-home-a-path strong {
    display: block;
    font-size: var(--text-lg);
    margin-bottom: 0.45rem;
}

.mg-home-a-path span {
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.mg-home-a-path--student {
    border-color: rgba(234, 88, 12, 0.2);
    background: linear-gradient(145deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.9));
}

.mg-home-a-path--teacher {
    border-color: rgba(124, 58, 237, 0.2);
    background: linear-gradient(145deg, rgba(237, 233, 254, 0.95), rgba(255, 255, 255, 0.9));
}

.mg-home-a-hero .mg-page-hero-title {
    font-size: clamp(3.25rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.045em;
    max-width: none;
    margin-bottom: 1.25rem;
}

.mg-home-a-hero .mg-page-hero-title .mg-home-title-gradient {
    display: inline-block;
}

.mg-home-a-hero .mg-page-hero-lead {
    font-size: var(--text-lg);
    max-width: 36rem;
    color: var(--ink);
    opacity: 0.88;
}

.mg-home-a-hero-img-col {
    display: none;
}

@media (min-width: 992px) {
    .mg-home-a-hero-img-col {
        display: block;
    }
}

.mg-home-a-hero-img {
    max-width: min(100%, 260px);
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.mg-home-a-split {
    align-items: stretch;
}

.mg-home-a-visual-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mg-home-a-visual-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    color: var(--ink);
}

.mg-home-a-visual-panel-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, #ffedd5, #ede9fe);
}

.mg-home-a-visual-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mg-home-a-visual-panel-body {
    padding: 1.5rem 1.6rem 1.75rem;
}

.mg-home-a-visual-panel-body .mg-home-title {
    font-size: var(--text-lg);
    margin-bottom: 0.75rem;
}

.mg-home-a-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.mg-home-a-bullets li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.5rem;
    font-size: var(--text-base);
    color: var(--muted);
    line-height: 1.5;
}

.mg-home-a-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ea580c, #7c3aed);
}

.mg-home-a-course-row {
    margin-top: 0.5rem;
}

.mg-home-a-course-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    font-size: var(--text-lg);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mg-home-a-course-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    color: var(--ink);
}

.mg-home-a-course-tile img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.mg-home-a-tool-tile {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease;
}

.mg-home-a-tool-tile:hover {
    transform: translateY(-3px);
    color: inherit;
}

.mg-home-a-tool-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.mg-home-a-tool-tile span {
    display: block;
    padding: 1rem 1.2rem;
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--ink);
}

.mg-home-a-trust {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #fff 0%, #fafaf9 45%, #fff7ed 100%);
}

.mg-home-a-schools-section {
    padding-top: 0;
}

.mg-home-a-schools-band {
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
    margin-bottom: 0;
}

.mg-home-a-schools-lead {
    max-width: 32rem;
    margin-bottom: 2rem !important;
}

.mg-home-a-schools-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .mg-home-a-schools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .mg-home-a-schools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mg-home-a-school-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(160deg, #fafaf9, #fff);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mg-home-a-school-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.mg-home-a-school-logo img {
    max-height: 3.75rem;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.mg-home-a-stats--inline {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mg-home-a-stats--center {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.mg-home-a-feedback {
    padding-top: 0.5rem;
}

.mg-home-a-feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (max-width: 991.98px) {
    .mg-home-a-feedback-grid {
        grid-template-columns: 1fr;
    }
}

.mg-home-a-feedback-card {
    margin: 0;
    padding: 1.75rem 1.6rem;
    border-radius: 22px;
    background: #fff;
    border: 2px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 14px 36px rgba(124, 58, 237, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.mg-home-a-feedback-icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    object-fit: contain;
}

.mg-home-a-feedback-text {
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--ink);
    font-weight: 500;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.mg-home-a-feedback-author {
    font-size: var(--text-sm);
    font-weight: 800;
    color: var(--ink);
}

.mg-home-a-feedback-author span {
    display: block;
    font-weight: 600;
    color: var(--muted);
    margin-top: 0.2rem;
}

@media (max-width: 575.98px) {
    .mg-home-a-stats--inline {
        grid-template-columns: 1fr;
    }
}

.mg-home-a-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 991.98px) {
    .mg-home-a-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mg-home-a-stat {
    text-align: center;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.mg-home-a-stat strong {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #7c3aed;
}

.mg-home-a-stat span {
    font-size: var(--text-sm);
    color: var(--muted);
}

.mg-home-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 991.98px) {
    .mg-home-video-grid {
        grid-template-columns: 1fr;
    }
}

.mg-home-video-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.mg-home-video-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.mg-home-video-card .mg-home-video-body {
    padding: 1.1rem 1.2rem 1.3rem;
}

.mg-home-video-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.mg-home-video-card p {
    font-size: var(--text-sm);
    color: var(--muted);
    margin: 0;
}

.mg-home-quote-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .mg-home-quote-row {
        grid-template-columns: 1fr;
    }
}

.mg-home-quote {
    padding: 1.5rem 1.5rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--muted);
}

.mg-home-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 700;
    color: var(--ink);
    font-size: var(--text-sm);
}

.mg-home-schools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0.85;
}

.mg-home-schools img {
    max-height: 42px;
    width: auto;
}

.mg-home-cta-band {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #1e293b, #312e81);
    color: #fff;
    text-align: center;
}

.mg-home-cta-band h2,
.mg-home-cta-band .mg-home-cta-title {
    font-size: var(--text-xl);
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 1rem;
}

.mg-home-cta-band p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    font-size: var(--text-base);
    line-height: 1.65;
}

/* Concept B — editorial flow */
.mg-home-b-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, #fff7ed 0%, #fff 55%);
}

.mg-home-b-hero .mg-home-title {
    font-size: var(--text-hero);
    max-width: 14ch;
}

.mg-home-b-hero .mg-home-b-lead {
    font-size: var(--text-base);
    max-width: 36rem;
    line-height: 1.65;
    color: var(--muted);
}

.mg-home-b-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: home-step;
}

@media (max-width: 991.98px) {
    .mg-home-b-steps {
        grid-template-columns: 1fr;
    }
}

.mg-home-b-step {
    position: relative;
    padding: 1.5rem 1.4rem 1.4rem 4.5rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.mg-home-b-step::before {
    counter-increment: home-step;
    content: counter(home-step);
    position: absolute;
    left: 1.25rem;
    top: 1.35rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ea580c, #7c3aed);
}

.mg-home-b-step h3 {
    font-size: var(--text-lg);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.mg-home-b-step p {
    margin: 0;
    font-size: var(--text-base);
    color: var(--muted);
    line-height: 1.6;
}

.mg-home-b-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 991.98px) {
    .mg-home-b-split {
        grid-template-columns: 1fr;
    }
}

.mg-home-b-panel {
    padding: 2rem;
    border-radius: 22px;
    border: 1px solid var(--line);
}

.mg-home-b-panel--student {
    background: linear-gradient(160deg, #fff7ed, #fff);
}

.mg-home-b-panel--teacher {
    background: linear-gradient(160deg, #ede9fe, #fff);
}

.mg-home-b-panel h2 {
    font-size: var(--text-xl);
    font-weight: 800;
    margin-bottom: 0.85rem;
    line-height: 1.2;
}

.mg-home-b-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.mg-home-b-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-size: var(--text-base);
    color: var(--muted);
    line-height: 1.6;
}

.mg-home-b-list i {
    color: #c2410c;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.mg-home-b-panel--teacher .mg-home-b-list i {
    color: #7c3aed;
}

.mg-home-b-year-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.mg-home-b-year-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    padding: 1.35rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.mg-home-b-year-card:hover {
    transform: translateY(-2px);
    color: inherit;
}

.mg-home-b-year-card h3 {
    font-size: var(--text-lg);
    font-weight: 800;
    margin-bottom: 0.45rem;
    line-height: 1.25;
}

.mg-home-b-year-card p {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.55;
}

.mg-home-b-spotlight {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

@media (max-width: 991.98px) {
    .mg-home-b-spotlight {
        grid-template-columns: 1fr;
    }
}

.mg-home-b-spotlight img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.mg-home-b-trust {
    text-align: center;
    padding: 3rem 0;
}

.mg-home-b-spotlight h3 {
    font-size: var(--text-xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.mg-home-b-trust .mg-home-quote {
    max-width: 40rem;
    margin: 0 auto 2rem;
    font-size: var(--text-base);
}
