/* Education frontend 281 scoped */
.mp-education .mp-education__breadcrumb{display:none!important}
.mp-education .mp-education__grade-header h1{font-size:clamp(24px,3vw,34px);text-align:center}
.mp-education .mp-education__book-grid{align-items:stretch}
.mp-education .mp-education-book-image{aspect-ratio:1/1;overflow:hidden}
.mp-education .mp-education-book-image img{width:100%;height:100%;object-fit:cover}
.mp-education .mp-education__book-body{text-align:center}
.mp-education .mp-education__book-body h3{font-size:20px;font-weight:700}
.mp-education .mp-education__book-meta{font-size:14px}
.mp-education .mp-education__book-cta{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:10px;background:#A44AFF;color:#fff;font-size:14px;font-weight:700;margin-top:10px}
.mp-education-book-header{background:#A44AFF;color:#fff;border-radius:16px;padding:18px 24px;text-align:center;margin-bottom:24px}
.mp-education-book-header h1{color:#fff;margin:0;font-size:clamp(20px,2.4vw,30px);line-height:1.7}
@media(max-width:600px){
 .mp-education .mp-education__book-body h3{font-size:18px}
 .mp-education .mp-education__book-cta{width:auto;min-height:44px}
 .mp-education-book-header{padding:14px 12px}
}

/* Education 282 UI overrides */
.mp-education .mp-education__breadcrumb{display:none!important}
.mp-education .mp-education__book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.mp-education .mp-education-book-image{aspect-ratio:1/1;width:100%;overflow:hidden;border-radius:14px}
.mp-education .mp-education-book-image img{width:100%;height:100%;object-fit:cover}
.mp-education .mp-education__book-body{text-align:center}
.mp-education .mp-education__book-body h3{font-size:20px;line-height:1.7}
.mp-education .mp-education__book-meta{display:flex;justify-content:space-between;align-items:center;font-size:15px;margin-top:10px}
.mp-education .mp-education__book-cta{background:none!important;color:#7C2EDB!important;padding:0!important;border-radius:0!important;font-weight:600}
.mp-education-book-header,.mp-education .mp-education__education-header{
background:linear-gradient(135deg,#A44AFF,#913BEF);
color:#fff;border-radius:18px;padding:16px 22px;text-align:center;box-shadow:0 8px 22px rgba(0,0,0,.08);margin-bottom:24px;
}
.mp-education-book-header h1,.mp-education .mp-education__education-header h1{color:#fff;margin:0;font-size:clamp(20px,2.4vw,30px);line-height:1.7;overflow-wrap:anywhere}
.mp-education .mp-education__education-header p{color:#fff;margin:6px 0 0}
@media(max-width:700px){
 .mp-education .mp-education__book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .mp-education .mp-education__book-body h3{font-size:14px}
 .mp-education .mp-education__book-meta{font-size:11px;gap:3px}
 .mp-education-book-header,.mp-education .mp-education__education-header{padding:12px 10px;border-radius:14px}
 .mp-education-book-header h1,.mp-education .mp-education__education-header h1{font-size:17px;line-height:1.8}
}

/* =========================================================
   Moallem Pars Education Frontend — Version 285
   Complete UI/UX refresh. Frontend only; scoped to .mp-education.
========================================================= */
.mp-education{
    --edu-green:#A44AFF;
    --edu-green-dark:#7C2EDB;
    --edu-text:#202a24;
    --edu-muted:#6f776f;
    --edu-border:#e7ede2;
    --edu-soft:#FAF7FF;
    --edu-radius:16px;
    --edu-shadow:0 5px 18px rgba(31,41,55,.045);
}
.mp-education .mp-education__container{
    width:min(100% - 28px,1180px);
    padding:24px 0 64px;
}
.mp-education .mp-education__breadcrumb{display:none!important}

/* Shared headers */
.mp-education .mp-education__grade-header{
    display:block;
    margin:0 0 24px;
    padding:10px 0 4px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    text-align:center;
}
.mp-education .mp-education__grade-heading h1{
    margin:0;
    color:var(--edu-text);
    font-size:clamp(24px,3vw,34px);
    line-height:1.55;
    font-weight:900;
}
.mp-education .mp-education__grade-heading p.mp-education__grade-count{
    margin:7px 0 0;
    color:var(--edu-green-dark);
    font-size:14px;
    font-weight:800;
}
.mp-education .mp-education__grade-heading > p:not(.mp-education__grade-count){display:none!important}

.mp-education .mp-education-book-header,
.mp-education .mp-education__education-header{
    margin:0 0 24px;
    padding:20px 24px;
    border:0;
    border-radius:18px;
    background:linear-gradient(135deg,#A44AFF 0%,#78b816 100%);
    color:#fff;
    text-align:center;
    box-shadow:0 7px 20px rgba(77,124,15,.13);
}
.mp-education .mp-education-book-header h1,
.mp-education .mp-education__education-header h1{
    margin:0;
    color:#fff;
    font-size:clamp(20px,2.5vw,30px);
    line-height:1.65;
    font-weight:900;
}
.mp-education .mp-education-book-header p,
.mp-education .mp-education__education-header p{
    max-width:760px;
    margin:7px auto 0;
    color:rgba(255,255,255,.92);
    font-size:13px;
    line-height:2;
}

/* Section headings */
.mp-education .mp-education__section-heading{
    display:block;
    margin:0 0 14px;
    text-align:center;
}
.mp-education .mp-education__section-heading h2{
    margin:0;
    color:var(--edu-text);
    font-size:19px;
    line-height:1.7;
    font-weight:900;
}
.mp-education .mp-education__section-kicker,
.mp-education .mp-education__section-count{display:none!important}

/* Books: 4 / 3 / 3 */
.mp-education .mp-education__book-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    align-items:stretch;
}
.mp-education .mp-education__book-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    height:100%;
    overflow:hidden;
    border:1px solid var(--edu-border);
    border-radius:var(--edu-radius);
    background:#fff;
    box-shadow:var(--edu-shadow);
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.mp-education .mp-education__book-card:hover,
.mp-education .mp-education__book-card:focus-visible{
    transform:translateY(-2px);
    border-color:rgba(164,74,255,.48);
    box-shadow:0 9px 24px rgba(31,41,55,.075);
}
.mp-education .mp-education-book-image,
.mp-education .mp-education__book-media{
    width:100%;
    aspect-ratio:1/1;
    height:auto!important;
    min-height:0!important;
    flex:none;
    overflow:hidden;
    border-radius:0;
    background:#f5f8f2;
}
.mp-education .mp-education-book-image img,
.mp-education .mp-education__book-media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.mp-education .mp-education__placeholder{
    display:flex;
    width:100%;
    height:100%;
    align-items:center;
    justify-content:center;
    color:var(--edu-green-dark);
}
.mp-education .mp-education__placeholder span{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#fff;
    box-shadow:0 4px 14px rgba(31,41,55,.06);
    font-size:0;
}
.mp-education .mp-education__placeholder span::before{
    content:"";
    width:18px;
    height:22px;
    border:2px solid var(--edu-green-dark);
    border-radius:3px;
    opacity:.7;
}
.mp-education .mp-education__book-body{
    display:flex;
    flex:1;
    min-width:0;
    flex-direction:column;
    justify-content:flex-start;
    padding:12px 13px 13px;
    text-align:center;
}
.mp-education .mp-education__book-body h3{
    display:-webkit-box;
    min-height:3.25em;
    margin:0;
    overflow:hidden;
    color:var(--edu-text);
    font-size:14px;
    line-height:1.65;
    font-weight:800;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}
.mp-education .mp-education__book-meta{
    order:3;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    margin-top:auto;
    padding-top:10px;
    color:var(--edu-muted);
    font-size:11px;
    line-height:1.6;
}
.mp-education .mp-education__book-meta span:first-child{color:var(--edu-green-dark)}
.mp-education .mp-education__book-cta{
    order:2;
    display:inline-block;
    margin-top:7px;
    padding:0!important;
    color:var(--edu-green-dark)!important;
    background:none!important;
    font-size:11px;
    font-weight:800;
    line-height:1.8;
    text-align:left;
}
.mp-education .mp-education__book-meta + h3{order:1}

/* Chapters */
.mp-education .mp-education__chapters{
    display:grid;
    gap:10px;
}
.mp-education .mp-education__chapter{
    padding:0;
    overflow:hidden;
    border:1px solid var(--edu-border);
    border-radius:var(--edu-radius);
    background:#fff;
    box-shadow:var(--edu-shadow);
}
.mp-education .mp-education__chapter-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    min-width:0;
    padding:15px 17px;
    cursor:pointer;
    list-style:none;
}
.mp-education .mp-education__chapter-summary::-webkit-details-marker{display:none}
.mp-education .mp-education__chapter-summary:focus-visible{
    outline:2px solid rgba(164,74,255,.55);
    outline-offset:-2px;
}
.mp-education .mp-education__chapter-title-wrap{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
}
.mp-education .mp-education__chapter-number{
    flex:0 0 auto;
    color:var(--edu-green-dark);
    font-size:11px;
    font-weight:900;
}
.mp-education .mp-education__chapter-title{
    min-width:0;
    overflow-wrap:anywhere;
    color:var(--edu-text);
    font-size:15px;
    line-height:1.8;
    font-weight:800;
}
.mp-education .mp-education__chapter-side{
    display:flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
}
.mp-education .mp-education__chapter-count{
    color:var(--edu-muted);
    font-size:11px;
    white-space:nowrap;
}
.mp-education .mp-education__chapter-toggle{
    display:flex;
    width:24px;
    height:24px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:var(--edu-soft);
    color:var(--edu-green-dark);
    font-size:17px;
    line-height:1;
    transition:transform .18s ease;
}
.mp-education .mp-education__chapter[open] .mp-education__chapter-toggle{transform:rotate(45deg)}
.mp-education .mp-education__chapter-panel{
    padding:0 13px 13px;
    border-top:1px solid #f0f3ed;
}
.mp-education .mp-education__chapter-empty{
    margin:12px 0 0;
    padding:12px;
    border-radius:10px;
    background:var(--edu-soft);
    color:var(--edu-muted);
    font-size:12px;
    line-height:1.9;
    text-align:center;
}

/* Lessons */
.mp-education .mp-education__lesson-list{
    display:grid;
    gap:7px;
    min-width:0;
}
.mp-education .mp-education__lesson-card{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    width:100%;
    padding:11px 12px;
    border:1px solid #F1EBFF;
    border-radius:11px;
    background:#fbfcfa;
    color:inherit;
    text-decoration:none;
    transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.mp-education .mp-education__lesson-card:hover,
.mp-education .mp-education__lesson-card:focus-visible{
    background:#fff;
    border-color:rgba(164,74,255,.42);
    transform:translateX(-1px);
}
.mp-education .mp-education__lesson-number{
    flex:0 0 52px;
    width:52px;
    height:30px;
    border-radius:9px;
    background:#f0f7e7;
    color:var(--edu-green-dark);
    font-size:11px;
    font-weight:900;
}
.mp-education .mp-education__lesson-main{
    flex:1;
    min-width:0;
}
.mp-education .mp-education__lesson-main strong{
    display:block;
    overflow:hidden;
    color:var(--edu-text);
    font-size:13px;
    line-height:1.8;
    font-weight:800;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-main small{
    display:block;
    margin-top:1px;
    overflow:hidden;
    color:var(--edu-muted);
    font-size:10px;
    line-height:1.7;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-action{
    flex:0 0 auto;
    color:var(--edu-green-dark);
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}

/* Content list */
.mp-education .mp-education__content-grid{
    display:grid;
    gap:9px;
}
.mp-education .mp-education__content-card{
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
    width:100%;
    padding:13px;
    border:1px solid var(--edu-border);
    border-radius:13px;
    background:#fff;
    color:inherit;
    text-decoration:none;
    box-shadow:var(--edu-shadow);
    transition:border-color .15s ease,transform .15s ease;
}
.mp-education .mp-education__content-card:hover,
.mp-education .mp-education__content-card:focus-visible{
    border-color:rgba(164,74,255,.45);
    transform:translateX(-1px);
}
.mp-education .mp-education__content-icon{
    flex:0 0 42px;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:11px;
    background:#F3E8FF;
    color:var(--edu-green-dark);
    font-size:10px;
    font-weight:900;
}
.mp-education .mp-education__content-main{
    flex:1;
    min-width:0;
}
.mp-education .mp-education__content-main strong{
    display:block;
    color:var(--edu-text);
    font-size:14px;
    line-height:1.8;
    font-weight:800;
    overflow-wrap:anywhere;
}
.mp-education .mp-education__content-main small{
    display:block;
    margin-top:1px;
    color:var(--edu-muted);
    font-size:10px;
    line-height:1.8;
}
.mp-education .mp-education__content-arrow{color:var(--edu-green-dark);font-size:15px}

/* Content reader */
.mp-education .mp-education__content-wrapper{
    width:min(100%,900px);
    margin:0 auto;
    padding:22px;
    border:1px solid var(--edu-border);
    border-radius:18px;
    background:#fff;
    box-shadow:var(--edu-shadow);
    overflow:hidden;
    color:var(--edu-text);
}
.mp-education .mp-education__content-wrapper,
.mp-education .mp-education__content-wrapper *{
    max-width:100%;
    overflow-wrap:anywhere;
}
.mp-education .mp-education__content-wrapper img,
.mp-education .mp-education__content-wrapper video,
.mp-education .mp-education__content-wrapper iframe{
    max-width:100%;
}
.mp-education .mp-education__content-wrapper p{
    font-size:15px;
    line-height:2.25;
}
.mp-education .mp-education__content-wrapper h2{
    margin-top:1.7em;
    font-size:23px;
    line-height:1.7;
}
.mp-education .mp-education__content-wrapper h3{
    margin-top:1.5em;
    font-size:19px;
    line-height:1.7;
}
.mp-education .mp-education__content-wrapper table{
    width:100%!important;
    max-width:100%;
    border-collapse:collapse;
}
.mp-education .mp-education__content-wrapper pre,
.mp-education .mp-education__content-wrapper code{
    max-width:100%;
    overflow:auto;
    white-space:pre-wrap;
}
.mp-education .mp-education__content-wrapper .mp-lesson-questions{width:100%;max-width:100%}

/* Empty state */
.mp-education .mp-education__empty{
    width:100%;
    padding:26px 16px;
    border:1px dashed #E9DFFF;
    border-radius:14px;
    background:#fbfcf9;
    text-align:center;
}
.mp-education .mp-education__empty-mark{
    display:block;
    width:30px;
    height:30px;
    margin:0 auto 9px;
    border:2px solid #b9cda0;
    border-radius:50%;
    position:relative;
}
.mp-education .mp-education__empty-mark::after{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--edu-green);
    transform:translate(-50%,-50%);
}
.mp-education .mp-education__empty p{
    margin:0;
    color:var(--edu-muted);
    font-size:13px;
    line-height:2;
}

/* Keyboard focus */
.mp-education a:focus-visible,
.mp-education summary:focus-visible{
    outline:2px solid rgba(164,74,255,.65);
    outline-offset:3px;
}

/* Responsive */
@media (max-width:899px){
    .mp-education .mp-education__book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
}
@media (max-width:599px){
    .mp-education .mp-education__container{
        width:min(100% - 18px,1180px);
        padding:18px 0 44px;
    }
    .mp-education .mp-education__grade-header{margin-bottom:18px;padding-top:3px}
    .mp-education .mp-education__grade-heading h1{font-size:22px}
    .mp-education .mp-education__grade-heading p.mp-education__grade-count{font-size:11px;margin-top:5px}
    .mp-education .mp-education__book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
    .mp-education .mp-education__book-card{border-radius:11px}
    .mp-education .mp-education__book-body{padding:8px 7px 9px}
    .mp-education .mp-education__book-body h3{font-size:11px;line-height:1.7;min-height:3.4em}
    .mp-education .mp-education__book-meta{font-size:8px;padding-top:7px}
    .mp-education .mp-education__book-cta{font-size:8px;margin-top:4px}
    .mp-education .mp-education-book-header,
    .mp-education .mp-education__education-header{
        margin-bottom:18px;
        padding:13px 11px;
        border-radius:14px;
    }
    .mp-education .mp-education-book-header h1,
    .mp-education .mp-education__education-header h1{font-size:14px;line-height:1.85}
    .mp-education .mp-education-book-header p,
    .mp-education .mp-education__education-header p{font-size:10px;line-height:1.9}
    .mp-education .mp-education__section-heading{margin-bottom:10px}
    .mp-education .mp-education__section-heading h2{font-size:14px}
    .mp-education .mp-education__chapter-summary{padding:12px 11px;gap:8px}
    .mp-education .mp-education__chapter-title-wrap{gap:6px}
    .mp-education .mp-education__chapter-number{font-size:9px}
    .mp-education .mp-education__chapter-title{font-size:12px}
    .mp-education .mp-education__chapter-count{font-size:9px}
    .mp-education .mp-education__chapter-toggle{width:21px;height:21px;font-size:15px}
    .mp-education .mp-education__chapter-panel{padding:0 8px 8px}
    .mp-education .mp-education__lesson-card{padding:9px 8px;gap:7px}
    .mp-education .mp-education__lesson-number{flex-basis:50px;width:50px;height:26px;font-size:9px}
    .mp-education .mp-education__lesson-main strong{font-size:11px}
    .mp-education .mp-education__lesson-main small{display:none}
    .mp-education .mp-education__lesson-action{font-size:9px}
    .mp-education .mp-education__content-wrapper{padding:14px;border-radius:14px}
    .mp-education .mp-education__content-wrapper p{font-size:13px;line-height:2.2}
}
@media (min-width:900px){
    .mp-education .mp-education__container{width:min(100% - 48px,1180px);padding-top:30px}
}
@media (prefers-reduced-motion:reduce){
    .mp-education *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* =========================================================
   Education Frontend — Version 286 refinements
   - Compact chevron indicator instead of plus
   - Softer, calmer page headers
   - Book lesson count + content link in one row
========================================================= */
.mp-education .mp-education-book-header,
.mp-education .mp-education__education-header{
    background:linear-gradient(135deg,#f7fbf1 0%,#eef6e4 100%) !important;
    color:var(--edu-text) !important;
    border:1px solid #e1ecd5 !important;
    box-shadow:0 4px 16px rgba(31,41,55,.045) !important;
    padding:18px 24px !important;
}
.mp-education .mp-education-book-header h1,
.mp-education .mp-education__education-header h1{
    color:var(--edu-text) !important;
    font-weight:850;
}
.mp-education .mp-education-book-header p,
.mp-education .mp-education__education-header p{
    color:var(--edu-muted) !important;
}
.mp-education .mp-education__book-meta{
    order:2 !important;
    width:100%;
    margin-top:auto !important;
    padding-top:10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-direction:row !important;
    gap:8px !important;
}
.mp-education .mp-education__book-meta > span:first-child{
    color:var(--edu-green-dark) !important;
    text-align:right;
}
.mp-education .mp-education__book-cta{
    order:initial !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    margin:0 !important;
    padding:0 !important;
    color:var(--edu-green-dark) !important;
    background:none !important;
    font-size:11px !important;
    font-weight:800 !important;
    line-height:1.7 !important;
    text-align:left !important;
    white-space:nowrap;
}
.mp-education .mp-education__book-body h3{order:1 !important}
.mp-education .mp-education__chapter-toggle{
    position:relative;
    width:20px !important;
    height:20px !important;
    border-radius:6px !important;
    background:transparent !important;
    color:var(--edu-green-dark) !important;
    font-size:0 !important;
}
.mp-education .mp-education__chapter-toggle::before{
    content:"";
    width:7px;
    height:7px;
    display:block;
    border-left:1.8px solid currentColor;
    border-bottom:1.8px solid currentColor;
    transform:rotate(45deg) translate(-1px,-1px);
    transition:transform .18s ease;
}
.mp-education .mp-education__chapter[open] .mp-education__chapter-toggle::before{
    transform:rotate(-45deg) translate(-1px,-1px);
}
.mp-education .mp-education__chapter[open] .mp-education__chapter-toggle{transform:none !important}
@media(max-width:599px){
    .mp-education .mp-education-book-header,
    .mp-education .mp-education__education-header{padding:12px 11px !important}
    .mp-education .mp-education__book-cta{font-size:8px !important}
    .mp-education .mp-education__book-meta{font-size:8px !important}
}

/* =========================================================
   Education Frontend — Version 287 refinements
   - Remove duplicate visible grade title on books page
   - Smaller primary grade title
   - Styled book count directly under title
   - Stable accordion chevron/down indicator and open state
========================================================= */
.mp-education .mp-education__grade-header{
    margin:0 0 22px !important;
    padding:8px 0 2px !important;
}
.mp-education .mp-education__grade-heading h1{
    font-size:clamp(20px,2.4vw,28px) !important;
    line-height:1.55 !important;
    font-weight:850 !important;
}
.mp-education .mp-education__grade-heading p.mp-education__grade-count{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    margin:7px auto 0 !important;
    padding:5px 12px;
    border:1px solid #e3edd8;
    border-radius:999px;
    background:#F8F3FF;
    color:var(--edu-green-dark) !important;
    font-size:12px !important;
    font-weight:750 !important;
    line-height:1.6;
}
.mp-education .mp-education__grade-books > .mp-education__section-heading{
    display:none !important;
}
.mp-education .mp-education__chapter-toggle{
    position:relative !important;
    width:18px !important;
    height:18px !important;
    padding:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:var(--edu-green-dark) !important;
    font-size:0 !important;
    flex:0 0 18px;
    transform:none !important;
}
.mp-education .mp-education__chapter-toggle::before{
    content:"" !important;
    position:absolute;
    top:4px;
    left:4px;
    width:7px;
    height:7px;
    border-right:1.7px solid currentColor;
    border-bottom:1.7px solid currentColor;
    transform:rotate(45deg) !important;
    transition:transform .18s ease;
}
.mp-education .mp-education__chapter[open] .mp-education__chapter-toggle::before{
    transform:rotate(225deg) !important;
}
.mp-education .mp-education__chapter-panel{
    background:#fff !important;
    border-top:1px solid #f0f3ed !important;
}
@media(max-width:700px){
    .mp-education .mp-education__grade-heading h1{font-size:19px !important}
    .mp-education .mp-education__grade-heading p.mp-education__grade-count{font-size:10px !important;padding:4px 10px}
}

/* =========================================================
   Education Frontend — Version 288 refinements
   - Compact mobile book-card spacing
   - Smaller inset book image on mobile
   - Reduce gap between site header and education headers
========================================================= */
@media (min-width:900px){
    .mp-education .mp-education__container{padding-top:16px !important}
}

@media (max-width:599px){
    /* Reduce the empty space between book title and the metadata row. */
    .mp-education .mp-education__book-body{
        padding:6px 6px 5px !important;
    }
    .mp-education .mp-education__book-body h3{
        min-height:0 !important;
        height:auto !important;
        margin:0 !important;
        line-height:1.55 !important;
    }
    .mp-education .mp-education__book-meta{
        margin-top:4px !important;
        padding-top:0 !important;
        line-height:1.45 !important;
    }

    /* Keep the book image square, but slightly smaller inside its card. */
    .mp-education .mp-education-book-image,
    .mp-education .mp-education__book-media{
        aspect-ratio:1/1 !important;
        padding:4px !important;
        box-sizing:border-box !important;
        background:#fff !important;
        border-radius:9px !important;
    }
    .mp-education .mp-education-book-image img,
    .mp-education .mp-education__book-media img{
        width:100% !important;
        height:100% !important;
        border-radius:7px !important;
        object-fit:cover !important;
    }

    /* Reduce the vertical gap between the main site header and education header. */
    .mp-education .mp-education__container{
        padding-top:8px !important;
    }

    /* Keep the book-page header compact without creating extra top space. */
    .mp-education .mp-education-book-header,
    .mp-education .mp-education__education-header{
        margin-top:0 !important;
    }
}


/* =========================================================
   Education Frontend — Version 292 deep spacing correction
   - Desktop: education grade title is pulled up toward the site header
   - Desktop: larger, intentional separation between title and book-count badge
   - Mobile: book metadata follows the title immediately
   - Mobile: metadata row is anchored to the bottom edge of the card
========================================================= */

@media (min-width: 900px){
    /* Remove the remaining top breathing room above the grade title. */
    .mp-education .mp-education__container{
        padding-top:0 !important;
    }
    .mp-education .mp-education__grade-header{
        margin-top:0 !important;
        margin-bottom:22px !important;
        padding-top:0 !important;
    }
    .mp-education .mp-education__grade-heading h1{
        margin:0 !important;
    }
    /* Deliberately increase the title → count separation. */
    .mp-education .mp-education__grade-heading p.mp-education__grade-count{
        margin-top:18px !important;
    }
}

@media (max-width: 599px){
    /* The title and metadata must touch: no auto margin or spacer. */
    .mp-education .mp-education__book-body{
        position:relative !important;
        padding:5px 6px 0 !important;
        justify-content:flex-start !important;
    }
    .mp-education .mp-education__book-body h3{
        margin:0 !important;
        padding:0 !important;
        min-height:0 !important;
        height:auto !important;
    }
    .mp-education .mp-education__book-meta{
        margin-top:0 !important;
        padding-top:0 !important;
        min-height:16px !important;
        height:16px !important;
        align-items:center !important;
        flex:0 0 16px !important;
    }
    /* Keep the information row at the very bottom of the card. */
    .mp-education .mp-education__book-cta{
        margin:0 !important;
        padding:0 !important;
        line-height:16px !important;
    }
    .mp-education .mp-education__book-meta > span:first-child{
        line-height:16px !important;
    }
}

/* =========================================================
   Education Frontend — Version 293
   Mobile spacing refinement
========================================================= */
@media (max-width: 599px){
    /* Give the grade title more breathing room before the book-count line. */
    .mp-education .mp-education__grade-heading p.mp-education__grade-count{
        margin-top:18px !important;
    }

    /* Add a deliberate gap after each book title while keeping the info row
       anchored at the bottom of the card body. */
    .mp-education .mp-education__book-body{
        display:flex !important;
        flex-direction:column !important;
        justify-content:flex-start !important;
    }
    .mp-education .mp-education__book-body h3{
        margin:0 0 8px !important;
    }
    .mp-education .mp-education__book-meta{
        margin-top:auto !important;
    }
}

/* =========================================================
   Education Frontend — Version 2978
   Desktop book metadata row refinement
========================================================= */
@media (min-width: 900px){
    .mp-education .mp-education__book-meta{
        font-size:17px !important;
        line-height:1.6 !important;
    }
    .mp-education .mp-education__book-meta > span:first-child,
    .mp-education .mp-education__book-cta{
        font-size:17px !important;
        line-height:1.6 !important;
    }
}

/* =========================================================
   Education Frontend — Version 302 final visual refinement
   - Grade title block is a compact white card
   - Title right, book count left on the same row
   - Same one-row layout on mobile
   - Book metadata is between previous and 2978 sizes
========================================================= */
.mp-education .mp-education__grade-header{
    background:#fff !important;
    border:1px solid #F1EBFF !important;
    border-radius:14px !important;
    box-shadow:0 2px 10px rgba(20,40,10,.035) !important;
    padding:14px 18px !important;
    margin:0 0 22px !important;
}
.mp-education .mp-education__grade-heading{
    width:100% !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:18px !important;
    direction:rtl !important;
}
.mp-education .mp-education__grade-heading h1{
    margin:0 !important;
    padding:0 !important;
    font-size:20px !important;
    line-height:1.5 !important;
    font-weight:750 !important;
    text-align:right !important;
    flex:1 1 auto !important;
    min-width:0 !important;
}
.mp-education .mp-education__grade-heading p.mp-education__grade-count{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#6b7280 !important;
    font-size:11px !important;
    line-height:1.5 !important;
    font-weight:600 !important;
    white-space:nowrap !important;
    flex:0 0 auto !important;
    order:2 !important;
}
.mp-education .mp-education__grade-heading h1{order:1 !important;}

/* Keep desktop book metadata balanced, not oversized. */
@media (min-width:900px){
    .mp-education .mp-education__book-meta,
    .mp-education .mp-education__book-meta > span:first-child,
    .mp-education .mp-education__book-cta{
        font-size:15px !important;
        line-height:1.5 !important;
    }
}

/* Mobile: title and count stay on one row, with the same hierarchy. */
@media (max-width:599px){
    .mp-education .mp-education__grade-header{
        padding:11px 12px !important;
        margin-bottom:16px !important;
        border-radius:12px !important;
    }
    .mp-education .mp-education__grade-heading{
        gap:10px !important;
    }
    .mp-education .mp-education__grade-heading h1{
        font-size:17px !important;
        line-height:1.5 !important;
        text-align:right !important;
    }
    .mp-education .mp-education__grade-heading p.mp-education__grade-count{
        font-size:10px !important;
        line-height:1.5 !important;
        white-space:nowrap !important;
    }
    .mp-education .mp-education__book-meta,
    .mp-education .mp-education__book-meta > span:first-child,
    .mp-education .mp-education__book-cta{
        font-size:10px !important;
        line-height:1.5 !important;
    }
}


/* =========================================================
   Education Frontend — Version 304
   - Dynamic grade books title: «کتاب‌های درسی پایه ...»
   - Mobile grade title stays on one line with ellipsis
   - Book count badge sits close to its label
   - Lesson count and «مشاهده» remain equal-sized in one row
========================================================= */

.mp-education .mp-education__grade-heading p.mp-education__grade-count{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:4px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    color:#6b7280 !important;
    white-space:nowrap !important;
    flex:0 0 auto !important;
}
.mp-education .mp-education__grade-count > span:last-child{
    white-space:nowrap !important;
}

@media (min-width:900px){
    .mp-education .mp-education__grade-heading h1{
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }
    .mp-education .mp-education__grade-heading p.mp-education__grade-count{
        font-size:11px !important;
        line-height:1.5 !important;
    }
        .mp-education .mp-education__book-meta,
    .mp-education .mp-education__book-meta > span:first-child,
    .mp-education .mp-education__book-cta{
        font-size:15px !important;
        line-height:1.5 !important;
    }
}

@media (max-width:899px){
    .mp-education .mp-education__grade-heading{
        gap:8px !important;
        min-width:0 !important;
    }
    .mp-education .mp-education__grade-heading h1{
        min-width:0 !important;
        max-width:100% !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        font-size:14px !important;
        line-height:1.35 !important;
    }
    .mp-education .mp-education__grade-heading p.mp-education__grade-count{
        gap:3px !important;
        font-size:9px !important;
        line-height:1.35 !important;
    }
    }

@media (max-width:599px){
    .mp-education .mp-education__grade-header{
        padding:10px 11px !important;
    }
    .mp-education .mp-education__grade-heading{
        gap:7px !important;
    }
    .mp-education .mp-education__grade-heading h1{
        font-size:15px !important;
        line-height:1.35 !important;
    }
    .mp-education .mp-education__grade-heading p.mp-education__grade-count{
        font-size:9px !important;
        flex:0 0 auto !important;
    }
        .mp-education .mp-education__book-meta,
    .mp-education .mp-education__book-meta > span:first-child,
    .mp-education .mp-education__book-cta{
        font-size:10px !important;
        line-height:1.5 !important;
        white-space:nowrap !important;
    }
    .mp-education .mp-education__book-meta{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:4px !important;
    }
}


/* =========================================================
   Education Frontend — Version 304
   - Grade book count keeps its number/text but removes the circular badge.
   - «مشاهده» and lesson count use the same, slightly larger type.
========================================================= */

.mp-education .mp-education__grade-count{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    color:#6b7280 !important;
    white-space:nowrap !important;
    flex:0 0 auto !important;
}

.mp-education .mp-education__grade-count > span{
    display:inline !important;
    width:auto !important;
    height:auto !important;
    min-width:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:inherit !important;
    font-size:inherit !important;
    font-weight:inherit !important;
    line-height:inherit !important;
}

.mp-education .mp-education__book-meta{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:6px !important;
    min-width:0 !important;
    white-space:nowrap !important;
}

.mp-education .mp-education__book-meta > span{
    font-size:14px !important;
    line-height:1.5 !important;
    white-space:nowrap !important;
    min-width:0 !important;
}

@media (max-width:899px){
    .mp-education .mp-education__book-meta > span{
        font-size:11px !important;
        line-height:1.5 !important;
    }
}

@media (max-width:599px){
    .mp-education .mp-education__book-meta{
        gap:4px !important;
    }
    .mp-education .mp-education__book-meta > span{
        font-size:11px !important;
        line-height:1.45 !important;
    }
}


/* =========================================================
   Education Frontend — Version 307 final refinement
   - Desktop: «مشاهده» slightly larger than lesson count.
   - Green count dot sits tightly beside «کتاب آموزشی».
   - Mobile remains compact and one-row.
========================================================= */
.mp-education .mp-education__grade-heading p.mp-education__grade-count::before{
    content:'' !important;
    display:inline-block !important;
    width:5px !important;
    height:5px !important;
    flex:0 0 5px !important;
    margin:0 2px 0 0 !important;
    border-radius:50% !important;
    background:#A44AFF !important;
}

@media (min-width:900px){
    .mp-education .mp-education__book-meta > span:first-child{
        font-size:14px !important;
        line-height:1.5 !important;
    }
    .mp-education .mp-education__book-meta .mp-education__book-cta{
        font-size:14px !important;
        line-height:1.5 !important;
    }
}

@media (max-width:899px){
    .mp-education .mp-education__book-meta > span:first-child,
    .mp-education .mp-education__book-meta .mp-education__book-cta{
        font-size:11px !important;
        line-height:1.5 !important;
    }
}

/* Version 310 - Education mobile footer text size */
@media (max-width: 767px) {
    .education-book-card .book-card-footer .book-lessons,
    .education-book-card .book-card-footer .book-view,
    .education-book-card .book-meta,
    .education-book-card .book-view-link,
    .education-book-card .lessons-count {
        font-size: 10px !important;
        line-height: 1.4 !important;
    }
}

/* =========================================================
   Education Frontend — Version 314
   - Chapter-page header uses the exact same header treatment as the book page.
   - Chapter expand/collapse indicator uses an inline SVG chevron.
========================================================= */
.mp-education .mp-education-book-header,
.mp-education .mp-education__education-header{
    margin:0 0 24px !important;
    padding:20px 24px !important;
    border:0 !important;
    border-radius:18px !important;
    background:linear-gradient(135deg,#A44AFF 0%,#78b816 100%) !important;
    color:#fff !important;
    text-align:center !important;
    box-shadow:0 7px 20px rgba(77,124,15,.13) !important;
}
.mp-education .mp-education-book-header h1,
.mp-education .mp-education__education-header h1{
    margin:0 !important;
    color:#fff !important;
    font-size:clamp(20px,2.5vw,30px) !important;
    line-height:1.65 !important;
    font-weight:900 !important;
}
.mp-education .mp-education-book-header p,
.mp-education .mp-education__education-header p{
    max-width:760px !important;
    margin:7px auto 0 !important;
    color:rgba(255,255,255,.92) !important;
    font-size:13px !important;
    line-height:2 !important;
}
.mp-education .mp-education__chapter-toggle{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:24px !important;
    height:24px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:8px !important;
    background:var(--edu-soft) !important;
    color:var(--edu-green-dark) !important;
    font-size:0 !important;
    line-height:0 !important;
    flex:0 0 24px !important;
    transform:none !important;
}
.mp-education .mp-education__chapter-chevron{
    display:block !important;
    width:16px !important;
    height:16px !important;
    transition:transform .18s ease !important;
}
.mp-education .mp-education__chapter[open] .mp-education__chapter-chevron{
    transform:rotate(180deg) !important;
}
@media(max-width:599px){
    .mp-education .mp-education-book-header,
    .mp-education .mp-education__education-header{
        padding:14px 12px !important;
        margin-bottom:18px !important;
    }
    .mp-education .mp-education-book-header h1,
    .mp-education .mp-education__education-header h1{
        font-size:clamp(18px,5vw,22px) !important;
        line-height:1.65 !important;
    }
    .mp-education .mp-education__chapter-toggle{
        width:22px !important;
        height:22px !important;
        flex-basis:22px !important;
    }
    .mp-education .mp-education__chapter-chevron{
        width:15px !important;
        height:15px !important;
    }
}

/* =========================================================
   Education Frontend — Version 315
   - Chapter-page title box is compact, white, bordered like chapter cards,
     right-aligned, with the chapter count in a green circle on the left.
   - Chapter expand/collapse control is a simple, clean plus sign.
========================================================= */
.mp-education .mp-education-book-header,
.mp-education .mp-education__education-header{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px !important;
    margin:0 0 18px !important;
    padding:12px 16px !important;
    min-height:0 !important;
    border:1px solid var(--edu-border,#e5e7eb) !important;
    border-radius:var(--edu-radius,14px) !important;
    background:#fff !important;
    color:var(--edu-text,#1f2937) !important;
    box-shadow:none !important;
    text-align:right !important;
}
.mp-education .mp-education-book-header .mp-education__book-header-copy,
.mp-education .mp-education__education-header > *:not(.mp-education__book-chapter-count){
    min-width:0 !important;
}
.mp-education .mp-education-book-header h1,
.mp-education .mp-education__education-header h1{
    margin:0 !important;
    color:var(--edu-text,#1f2937) !important;
    font-size:18px !important;
    line-height:1.7 !important;
    font-weight:850 !important;
    text-align:right !important;
}
.mp-education .mp-education-book-header p,
.mp-education .mp-education__education-header p{
    margin:3px 0 0 !important;
    color:var(--edu-muted,#6b7280) !important;
    font-size:11px !important;
    line-height:1.7 !important;
    text-align:right !important;
}
.mp-education .mp-education__book-chapter-count{
    display:inline-flex !important;
    flex:0 0 46px !important;
    width:46px !important;
    height:46px !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    background:#A44AFF !important;
    color:#fff !important;
    line-height:1 !important;
    box-sizing:border-box !important;
}
.mp-education .mp-education__book-chapter-count strong{
    display:block !important;
    margin:0 !important;
    font-size:16px !important;
    line-height:1.05 !important;
    font-weight:900 !important;
}
.mp-education .mp-education__book-chapter-count span{
    display:block !important;
    margin-top:3px !important;
    font-size:8px !important;
    line-height:1 !important;
    font-weight:700 !important;
}
.mp-education .mp-education__chapter-toggle{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:22px !important;
    height:22px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:var(--edu-green-dark,#7C2EDB) !important;
    font-family:Arial,sans-serif !important;
    font-size:22px !important;
    font-weight:400 !important;
    line-height:20px !important;
    flex:0 0 22px !important;
    transform:none !important;
}
.mp-education .mp-education__chapter-toggle::before,
.mp-education .mp-education__chapter-toggle::after{display:none !important;}

@media(max-width:599px){
    .mp-education .mp-education-book-header,
    .mp-education .mp-education__education-header{
        gap:10px !important;
        margin-bottom:14px !important;
        padding:9px 11px !important;
        border-radius:12px !important;
    }
    .mp-education .mp-education-book-header h1,
    .mp-education .mp-education__education-header h1{
        font-size:13px !important;
        line-height:1.8 !important;
    }
    .mp-education .mp-education-book-header p,
    .mp-education .mp-education__education-header p{
        font-size:9px !important;
        line-height:1.7 !important;
    }
    .mp-education .mp-education__book-chapter-count{
        flex-basis:38px !important;
        width:38px !important;
        height:38px !important;
    }
    .mp-education .mp-education__book-chapter-count strong{font-size:13px !important;}
    .mp-education .mp-education__book-chapter-count span{font-size:7px !important;margin-top:2px !important;}
    .mp-education .mp-education__chapter-toggle{
        width:20px !important;
        height:20px !important;
        flex-basis:20px !important;
        font-size:20px !important;
    }
}

/* =========================================================
   Education Frontend — Version 316
   - Replace the chapter plus sign with a clean expandable chevron.
   - No other chapter/page styling is changed.
========================================================= */
.mp-education .mp-education__chapter-toggle{
    width:22px !important;
    height:22px !important;
    flex:0 0 22px !important;
    padding:0 !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:0 !important;
    line-height:0 !important;
    background:transparent !important;
    border:0 !important;
    color:var(--edu-green-dark,#7C2EDB) !important;
    transform:none !important;
}
.mp-education .mp-education__chapter-toggle .mp-education__chapter-chevron{
    display:block !important;
    width:16px !important;
    height:16px !important;
    transition:transform .18s ease !important;
}
.mp-education .mp-education__chapter[open] .mp-education__chapter-toggle .mp-education__chapter-chevron{
    transform:rotate(180deg) !important;
}
@media(max-width:599px){
    .mp-education .mp-education__chapter-toggle{
        width:20px !important;
        height:20px !important;
        flex-basis:20px !important;
    }
    .mp-education .mp-education__chapter-toggle .mp-education__chapter-chevron{
        width:15px !important;
        height:15px !important;
    }
}


/* Lesson Page UI — Version 331 */
.mp-education .mp-education__lesson-page-header{
    margin:0 0 28px;
    padding:18px 0 22px;
    border-bottom:1px solid #e5e7eb;
    text-align:right;
}
.mp-education .mp-education__lesson-breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    margin:0 0 20px;
    color:#64748b;
    font-size:12px;
    line-height:1.8;
}
.mp-education .mp-education__lesson-breadcrumb a{
    color:#64748b;
    text-decoration:none;
    transition:color .18s ease;
}
.mp-education .mp-education__lesson-breadcrumb a:hover,
.mp-education .mp-education__lesson-breadcrumb a:focus-visible{color:#7C2EDB}
.mp-education .mp-education__lesson-breadcrumb span[aria-hidden="true"]{color:#94a3b8}
.mp-education .mp-education__lesson-page-eyebrow{font-size:13px;color:#64748b;margin-bottom:7px}
.mp-education .mp-education__lesson-page-header h1{margin:0;font-size:clamp(24px,3vw,34px);line-height:1.35;color:#1f2937}
.mp-education .mp-education__lesson-page-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;color:#64748b;font-size:13px}
.mp-education .mp-education__lesson-page-meta span+span:before{content:'·';margin-left:8px;color:#94a3b8}

.mp-education .mp-education__lesson-content-nav{
    margin:0 0 32px;
    padding:18px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 5px 18px rgba(15,23,42,.035);
}
.mp-education .mp-education__lesson-content-nav-head{margin:0 0 14px}
.mp-education .mp-education__lesson-content-nav-head h2{
    margin:0;
    font-size:17px;
    line-height:1.6;
    color:#1f2937;
}
.mp-education .mp-education__lesson-content-nav-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}
.mp-education .mp-education__lesson-content-nav-card{
    min-width:0;
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    padding:12px 13px;
    box-sizing:border-box;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    color:#334155;
    text-decoration:none;
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.mp-education .mp-education__lesson-content-nav-card:hover,
.mp-education .mp-education__lesson-content-nav-card:focus-visible,
.mp-education .mp-education__lesson-content-nav-card.is-active{
    border-color:#b7db78;
    background:#f7fee7;
    box-shadow:0 5px 16px rgba(77,124,15,.08);
}
.mp-education .mp-education__lesson-content-nav-card:hover{transform:translateY(-1px)}
.mp-education .mp-education__lesson-content-nav-icon,
.mp-education .mp-education__lesson-content-heading-icon{
    flex:0 0 auto;
    width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#f1f8e7;
    color:#7C2EDB;
    font-size:17px;
    font-weight:700;
    line-height:1;
}
.mp-education .mp-education__lesson-content-nav-label{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
    font-weight:700;
    line-height:1.7;
}

.mp-education .mp-education__lesson-content-stack{
    display:flex;
    flex-direction:column;
    gap:24px;
}
.mp-education .mp-education__lesson-content-block{
    min-width:0;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:22px;
    box-sizing:border-box;
    scroll-margin-top:100px;
}
.mp-education .mp-education__lesson-content-heading{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 18px;
    padding:0 0 13px;
    border-bottom:1px solid #eef2f7;
}
.mp-education .mp-education__lesson-content-heading--questions{justify-content:center;text-align:center}.mp-education .mp-education__lesson-content-heading--questions h2{margin-inline:auto;text-align:center}
.mp-education .mp-education__lesson-content-heading h2{
    min-width:0;
    margin:0;
    font-size:19px;
    line-height:1.6;
    color:#1f2937;
}
.mp-education .mp-education__lesson-content-body{min-width:0;overflow-wrap:anywhere}
.mp-education .mp-education-content-image{display:block;max-width:100%;height:auto;border-radius:10px}
.mp-education .mp-education-content-video iframe{max-width:100%;width:100%;min-height:360px}
.mp-education .mp-education-content-product-ad{padding:16px;border-radius:10px;background:#f7fee7;border:1px solid #d9f99d}

@media (max-width:900px){
    .mp-education .mp-education__lesson-content-nav-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:700px){
    .mp-education .mp-education__lesson-page-header{padding:14px 0 18px;margin-bottom:22px}
    .mp-education .mp-education__lesson-breadcrumb{margin-bottom:14px;font-size:11px;gap:5px}
    .mp-education .mp-education__lesson-page-header h1{font-size:24px}
    .mp-education .mp-education__lesson-content-nav{padding:14px;border-radius:13px;margin-bottom:24px}
    .mp-education .mp-education__lesson-content-nav-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .mp-education .mp-education__lesson-content-nav-card{min-height:62px;padding:9px 10px;border-radius:10px;gap:8px}
    .mp-education .mp-education__lesson-content-nav-icon{width:30px;height:30px;border-radius:8px;font-size:15px}
    .mp-education .mp-education__lesson-content-nav-label{font-size:11px}
    .mp-education .mp-education__lesson-content-stack{gap:16px}
    .mp-education .mp-education__lesson-content-block{padding:15px;border-radius:12px;scroll-margin-top:78px}
    .mp-education .mp-education__lesson-content-heading{margin-bottom:14px;padding-bottom:11px}
    .mp-education .mp-education__lesson-content-heading-icon{width:30px;height:30px;border-radius:8px;font-size:14px}
    .mp-education .mp-education__lesson-content-heading h2{font-size:17px}
    .mp-education .mp-education-content-video iframe{min-height:220px}
}
@media (max-width:360px){
    .mp-education .mp-education__lesson-content-nav-card{padding-left:8px;padding-right:8px}
    .mp-education .mp-education__lesson-content-nav-icon{width:28px;height:28px}
    .mp-education .mp-education__lesson-content-nav-label{font-size:10px}
}

/* Lesson page: one content view at a time */
.mp-education .mp-education__lesson-content-nav-card{appearance:none;border:0;cursor:pointer;font:inherit;text-align:inherit;width:100%}
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]{box-shadow:0 0 0 2px #A44AFF inset,0 7px 18px rgba(77,124,15,.10);transform:translateY(-1px)}
.mp-education .mp-education__lesson-content-block[hidden],
.mp-education .mp-education__lesson-welcome[hidden]{display:none!important}
.mp-education .mp-education__lesson-content-block{scroll-margin-top:90px}
.mp-education .mp-education__lesson-welcome{margin:0 auto 24px;padding:34px 24px;text-align:center;background:#fff;border:1px solid rgba(77,124,15,.12);border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.04)}
.mp-education .mp-education__lesson-welcome-icon{width:46px;height:46px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#A44AFF;color:#fff;font-weight:800;font-size:20px}
.mp-education .mp-education__lesson-welcome h2{margin:0 0 8px;font-size:22px;line-height:1.7}
.mp-education .mp-education__lesson-welcome p{margin:0;color:#64748b;font-size:14px;line-height:1.9}
.mp-education .mp-education__lesson-content-nav-head p{margin:4px 0 0;color:#64748b;font-size:13px}
@media (max-width:768px){
 .mp-education .mp-education__lesson-welcome{padding:28px 16px;border-radius:13px}
 .mp-education .mp-education__lesson-welcome h2{font-size:18px}
 .mp-education .mp-education__lesson-welcome p{font-size:12px}
 .mp-education .mp-education__lesson-content-block{scroll-margin-top:76px}
}


/* =========================================================
   Lesson Page — Compact Header & Single-Row Content Navigation
   Version 237
   Presentation-only override; Content Engine/Routes untouched.
========================================================= */
.mp-education .mp-education__lesson-page-header{
    margin:0 0 18px;
    padding:12px 0 16px;
    border-bottom:1px solid #e7ede2;
    text-align:right;
}
.mp-education .mp-education__lesson-breadcrumb{
    margin:0 0 10px;
    gap:5px;
    font-size:11px;
    line-height:1.7;
}
.mp-education .mp-education__lesson-page-eyebrow{
    display:inline-flex;
    align-items:center;
    margin:0 0 5px;
    padding:3px 9px;
    border-radius:999px;
    background:#f3f9e9;
    color:#7C2EDB;
    font-size:11px;
    font-weight:700;
}
.mp-education .mp-education__lesson-page-header h1{
    margin:0;
    font-size:clamp(22px,2.7vw,30px);
    line-height:1.35;
    font-weight:900;
    color:#1f2937;
}
.mp-education .mp-education__lesson-page-meta{
    gap:6px;
    margin-top:6px;
    font-size:12px;
}
.mp-education .mp-education__lesson-content-nav{
    margin:0 0 22px;
    padding:10px 12px;
    border:1px solid #e7ede2;
    border-radius:13px;
    box-shadow:0 4px 14px rgba(31,41,55,.035);
}
.mp-education .mp-education__lesson-content-nav-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:0 0 8px;
}
.mp-education .mp-education__lesson-content-nav-head h2{
    font-size:14px;
    line-height:1.5;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-content-nav-head p{
    margin:0;
    font-size:11px;
    color:#7a847a;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-content-nav-grid{
    display:flex;
    flex-wrap:nowrap;
    align-items:stretch;
    gap:7px;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    padding:2px 1px 5px;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
}
.mp-education .mp-education__lesson-content-nav-card{
    flex:0 0 auto;
    width:auto;
    min-width:104px;
    min-height:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:5px 9px;
    border-radius:9px;
    border:1px solid #e5e9e1;
    background:#fff;
    box-shadow:none;
}
.mp-education .mp-education__lesson-content-nav-card:hover{
    transform:none;
}
.mp-education .mp-education__lesson-content-nav-icon{
    width:24px;
    height:24px;
    border-radius:7px;
    font-size:13px;
}
.mp-education .mp-education__lesson-content-nav-label{
    font-size:12px;
    line-height:1.4;
    font-weight:700;
}
.mp-education .mp-education__lesson-content-stack{
    gap:18px;
}
.mp-education .mp-education__lesson-content-block{
    border-radius:14px;
    padding:18px;
}
@media (max-width:768px){
    .mp-education .mp-education__lesson-page-header{
        margin-bottom:14px;
        padding:9px 0 12px;
    }
    .mp-education .mp-education__lesson-breadcrumb{
        margin-bottom:7px;
        font-size:10px;
        gap:4px;
        overflow:hidden;
        white-space:nowrap;
    }
    .mp-education .mp-education__lesson-page-eyebrow{
        margin-bottom:4px;
        padding:2px 8px;
        font-size:10px;
    }
    .mp-education .mp-education__lesson-page-header h1{
        font-size:21px;
    }
    .mp-education .mp-education__lesson-page-meta{
        margin-top:4px;
        font-size:11px;
    }
    .mp-education .mp-education__lesson-content-nav{
        margin-bottom:18px;
        padding:8px 9px;
        border-radius:11px;
    }
    .mp-education .mp-education__lesson-content-nav-head{
        margin-bottom:6px;
    }
    .mp-education .mp-education__lesson-content-nav-head h2{
        font-size:12px;
    }
    .mp-education .mp-education__lesson-content-nav-head p{
        font-size:10px;
    }
    .mp-education .mp-education__lesson-content-nav-grid{
        gap:6px;
        padding-bottom:4px;
    }
    .mp-education .mp-education__lesson-content-nav-card{
        min-width:92px;
        height:36px;
        min-height:36px;
        padding:4px 8px;
        gap:5px;
        border-radius:8px;
    }
    .mp-education .mp-education__lesson-content-nav-icon{
        width:21px;
        height:21px;
        border-radius:6px;
        font-size:12px;
    }
    .mp-education .mp-education__lesson-content-nav-label{
        font-size:11px;
    }
    .mp-education .mp-education__lesson-content-block{
        padding:14px;
        border-radius:12px;
    }
}

/* =========================================================
   Lesson Page — Modern One-Line Header
   Version 238
   Presentation-only.
========================================================= */
.mp-education .mp-education__lesson-page-header{
    display:flex;
    align-items:center;
    gap:16px;
    min-width:0;
    margin:0 0 16px;
    padding:10px 0 12px;
    border-bottom:1px solid #e7ede2;
}
.mp-education .mp-education__lesson-breadcrumb{
    order:3;
    flex:0 1 auto;
    min-width:0;
    margin:0;
    gap:5px;
    font-size:10px;
    white-space:nowrap;
    overflow:hidden;
}
.mp-education .mp-education__lesson-breadcrumb span,
.mp-education .mp-education__lesson-breadcrumb a{
    overflow:hidden;
    text-overflow:ellipsis;
}
.mp-education .mp-education__lesson-page-eyebrow{
    order:2;
    flex:0 1 auto;
    margin:0;
    padding:3px 8px;
    white-space:nowrap;
    font-size:10px;
}
.mp-education .mp-education__lesson-page-header h1{
    order:1;
    flex:0 0 auto;
    margin:0;
    font-size:clamp(20px,2.4vw,28px);
    line-height:1.3;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-page-meta{
    order:4;
    flex:0 0 auto;
    margin:0;
    gap:5px;
    font-size:11px;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-page-meta span+span:before{
    margin-left:5px;
}

@media (max-width:768px){
    .mp-education .mp-education__lesson-page-header{
        gap:8px;
        margin-bottom:12px;
        padding:8px 0 10px;
        overflow:hidden;
    }
    .mp-education .mp-education__lesson-page-header h1{
        font-size:19px;
    }
    .mp-education .mp-education__lesson-page-eyebrow{
        padding:2px 7px;
        font-size:9px;
    }
    .mp-education .mp-education__lesson-page-meta{
        font-size:10px;
    }
    .mp-education .mp-education__lesson-breadcrumb{
        max-width:32%;
        font-size:9px;
    }
}

@media (max-width:420px){
    .mp-education .mp-education__lesson-page-header{gap:6px}
    .mp-education .mp-education__lesson-page-header h1{font-size:17px}
    .mp-education .mp-education__lesson-page-eyebrow{font-size:8px;padding:2px 6px}
    .mp-education .mp-education__lesson-page-meta{font-size:9px}
    .mp-education .mp-education__lesson-breadcrumb{max-width:28%;font-size:8px}
}


/* Lesson header v239: compact, single-row, grade/book/chapter/lesson only. */
.mp-education .mp-education__lesson-page-header{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    width:100%;
    min-width:0;
    margin:0 0 16px;
    padding:9px 12px;
    border:1px solid #e7ede2;
    border-radius:14px;
    background:#fff;
    box-shadow:0 4px 14px rgba(31,41,55,.035);
    overflow:hidden;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-header-item{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-width:0;
    flex:0 1 auto;
}
.mp-education .mp-education__lesson-header-label{
    color:#6b7280;
    font-size:11px;
    font-weight:600;
}
.mp-education .mp-education__lesson-header-item a,
.mp-education .mp-education__lesson-header-item > span:not(.mp-education__lesson-header-label),
.mp-education .mp-education__lesson-header-item strong{
    color:#1f2937;
    font-size:13px;
    font-weight:750;
    text-decoration:none;
    overflow:hidden;
    text-overflow:ellipsis;
}
.mp-education .mp-education__lesson-header-item a:hover,
.mp-education .mp-education__lesson-header-item a:focus-visible{
    color:#7C2EDB;
}
.mp-education .mp-education__lesson-header-lesson{
    margin-right:auto;
    padding:4px 9px;
    border-radius:9px;
    background:#f3f9e9;
}
.mp-education .mp-education__lesson-header-lesson .mp-education__lesson-header-label{
    color:#7C2EDB;
}
.mp-education .mp-education__lesson-header-lesson strong{
    color:#7C2EDB;
}
.mp-education .mp-education__lesson-header-separator{
    flex:0 0 auto;
    color:#c4cdbd;
    font-size:11px;
}

@media (max-width:768px){
    .mp-education .mp-education__lesson-page-header{
        gap:7px;
        margin-bottom:12px;
        padding:7px 9px;
        border-radius:11px;
    }
    .mp-education .mp-education__lesson-header-item{
        gap:4px;
    }
    .mp-education .mp-education__lesson-header-label{
        font-size:9px;
    }
    .mp-education .mp-education__lesson-header-item a,
    .mp-education .mp-education__lesson-header-item > span:not(.mp-education__lesson-header-label),
    .mp-education .mp-education__lesson-header-item strong{
        font-size:11px;
    }
    .mp-education .mp-education__lesson-header-lesson{
        padding:3px 7px;
    }
    .mp-education .mp-education__lesson-header-separator{
        font-size:9px;
    }
}
@media (max-width:420px){
    .mp-education .mp-education__lesson-page-header{
        gap:5px;
        padding:6px 7px;
    }
    .mp-education .mp-education__lesson-header-item{
        gap:3px;
    }
    .mp-education .mp-education__lesson-header-label{
        font-size:8px;
    }
    .mp-education .mp-education__lesson-header-item a,
    .mp-education .mp-education__lesson-header-item > span:not(.mp-education__lesson-header-label),
    .mp-education .mp-education__lesson-header-item strong{
        font-size:10px;
    }
    .mp-education .mp-education__lesson-header-lesson{
        padding:3px 6px;
    }
}

/* Lesson welcome v241: refined minimal welcome state. */
.mp-education .mp-education__lesson-welcome{
    max-width:720px;margin:30px auto 12px;padding:32px 24px;text-align:center;
    border:1px solid #e7ede2;border-radius:18px;background:#fff;
    box-shadow:0 8px 26px rgba(31,41,55,.045);
}
.mp-education .mp-education__lesson-welcome-icon{
    display:flex;align-items:center;justify-content:center;width:38px;height:38px;
    margin:0 auto 14px;border-radius:50%;background:#F3E8FF;color:#913BEF;
    font-size:17px;font-weight:800;
}
.mp-education .mp-education__lesson-welcome h2{
    margin:0 0 9px;color:#1f2937;font-size:clamp(20px,2.2vw,27px);
    line-height:1.6;font-weight:800;
}
.mp-education .mp-education__lesson-welcome p{
    max-width:540px;margin:0 auto;color:#6b7280;font-size:14px;line-height:2;
}
@media (max-width:600px){
    .mp-education .mp-education__lesson-welcome{margin:20px 0 8px;padding:25px 16px;border-radius:15px}
    .mp-education .mp-education__lesson-welcome-icon{width:34px;height:34px;margin-bottom:11px;font-size:15px}
    .mp-education .mp-education__lesson-welcome h2{font-size:19px;line-height:1.7}
    .mp-education .mp-education__lesson-welcome p{font-size:12px;line-height:1.9}
}

/* Lesson welcome v242 */
.mp-education .mp-education__lesson-welcome h2{
    font-size:20px;
    white-space:nowrap;
}
@media (max-width:600px){
    .mp-education .mp-education__lesson-welcome h2{
        font-size:15px;
        white-space:nowrap;
        letter-spacing:-.15px;
    }
    .mp-education .mp-education__lesson-welcome p{
        font-size:11.5px;
    }
}

/* Lesson presentation refinement v243 */

/* Compact content navigation */
.mp-education .mp-education__content-nav{
    display:flex;
    align-items:center;
    gap:7px;
    width:100%;
    margin:20px 0 28px;
    padding:7px;
    border:1px solid #e8eee3;
    border-radius:12px;
    background:#fff;
    box-shadow:0 4px 16px rgba(31,41,55,.035);
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
}
.mp-education .mp-education__content-nav > *{
    flex:0 0 auto;
}
.mp-education .mp-education__content-nav a,
.mp-education .mp-education__content-nav button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:38px;
    padding:7px 13px;
    border:1px solid transparent;
    border-radius:9px;
    background:transparent;
    color:#4b5563;
    font-size:12px;
    font-weight:700;
    line-height:1.4;
    white-space:nowrap;
    text-decoration:none;
    transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.mp-education .mp-education__content-nav a:hover,
.mp-education .mp-education__content-nav button:hover{
    color:#7C2EDB;
    background:#f5faee;
}
.mp-education .mp-education__content-nav a.is-active,
.mp-education .mp-education__content-nav button.is-active,
.mp-education .mp-education__content-nav a[aria-current="true"],
.mp-education .mp-education__content-nav button[aria-current="true"]{
    color:#7C2EDB;
    background:#F3E8FF;
    border-color:#dcebc8;
}
.mp-education .mp-education__content-nav svg{
    width:16px;
    height:16px;
    flex:0 0 16px;
}

/* Lightweight content sections */
.mp-education .mp-education__content-section{
    position:relative;
    margin:0 0 30px;
    padding:0 0 30px;
    border:0;
    border-bottom:1px solid #edf1ea;
    background:transparent;
    box-shadow:none;
    scroll-margin-top:90px;
}
.mp-education .mp-education__content-section:last-child{
    margin-bottom:0;
    padding-bottom:0;
    border-bottom:0;
}
.mp-education .mp-education__content-section > .mp-education__content-heading,
.mp-education .mp-education__content-section .mp-education-content-title{
    display:flex;
    align-items:center;
    gap:9px;
    margin:0 0 17px;
    color:#1f2937;
    font-size:17px;
    font-weight:800;
    line-height:1.7;
}
.mp-education .mp-education__content-section > .mp-education__content-heading::before,
.mp-education .mp-education__content-section .mp-education-content-title::before{
    content:"";
    width:4px;
    height:22px;
    flex:0 0 4px;
    border-radius:5px;
    background:#A44AFF;
}
@media (max-width:700px){
    .mp-education .mp-education__content-nav{
        margin:15px 0 22px;
        padding:5px;
        gap:4px;
        border-radius:10px;
    }
    .mp-education .mp-education__content-nav a,
    .mp-education .mp-education__content-nav button{
        min-height:34px;
        padding:6px 10px;
        font-size:11px;
        border-radius:8px;
    }
    .mp-education .mp-education__content-section{
        margin-bottom:24px;
        padding-bottom:24px;
        scroll-margin-top:70px;
    }
    .mp-education .mp-education__content-section > .mp-education__content-heading,
    .mp-education .mp-education__content-section .mp-education-content-title{
        margin-bottom:13px;
        font-size:15px;
    }
    .mp-education .mp-education__content-section > .mp-education__content-heading::before,
    .mp-education .mp-education__content-section .mp-education-content-title::before{
        height:19px;
    }
}

/* Empty/welcome state: more editorial and less card-heavy */
.mp-education .mp-education__lesson-welcome{
    max-width:680px;
    margin:34px auto 14px;
    padding:30px 22px;
    border:0;
    border-top:1px solid #e9eee5;
    border-bottom:1px solid #e9eee5;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}
.mp-education .mp-education__lesson-welcome-icon{
    width:34px;
    height:34px;
    margin-bottom:12px;
    background:#F3E8FF;
    color:#913BEF;
}
.mp-education .mp-education__lesson-welcome h2{
    margin-bottom:8px;
    font-size:19px;
}
.mp-education .mp-education__lesson-welcome p{
    font-size:13px;
    color:#737b86;
}
@media (max-width:600px){
    .mp-education .mp-education__lesson-welcome{
        margin:24px 0 8px;
        padding:24px 12px;
    }
    .mp-education .mp-education__lesson-welcome h2{font-size:15px}
    .mp-education .mp-education__lesson-welcome p{font-size:11.5px}
}

/* VERSION 245: compact lesson section navigation repair */

.mp-education .mp-education__lesson-content-nav{
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    margin:18px 0 24px;
    overflow:hidden;
}
.mp-education .mp-education__lesson-content-nav-head{
    margin:0 0 7px;
    padding:0 2px;
}
.mp-education .mp-education__lesson-content-nav-head h2{
    margin:0;
    font-size:13px;
    line-height:1.6;
    font-weight:800;
    color:#1f2937;
}
.mp-education .mp-education__lesson-content-nav-head p{
    display:none;
}
.mp-education .mp-education__lesson-content-nav-grid{
    display:flex;
    align-items:stretch;
    gap:2px;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
    padding:0 0 2px;
    border-bottom:1px solid #e8ece5;
    -webkit-overflow-scrolling:touch;
}
.mp-education .mp-education__lesson-content-nav-grid::-webkit-scrollbar{
    height:3px;
}
.mp-education .mp-education__lesson-content-nav-card{
    position:relative;
    flex:0 0 auto;
    width:auto;
    min-width:0;
    min-height:36px;
    height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:4px 11px 6px;
    border:0;
    border-radius:7px 7px 0 0;
    background:transparent;
    color:#697269;
    box-shadow:none;
    transform:none;
    transition:color .18s ease,background-color .18s ease;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-content-nav-card::after{
    content:"";
    position:absolute;
    right:8px;
    left:8px;
    bottom:0;
    height:2px;
    border-radius:3px 3px 0 0;
    background:transparent;
    transition:background-color .18s ease;
}
.mp-education .mp-education__lesson-content-nav-card:hover,
.mp-education .mp-education__lesson-content-nav-card:focus-visible{
    color:#7C2EDB;
    background:#F8F3FF;
    transform:none;
    outline:none;
}
.mp-education .mp-education__lesson-content-nav-card.is-active,
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]{
    color:#7C2EDB;
    background:#f3f9e9;
    box-shadow:none;
    transform:none;
    font-weight:800;
}
.mp-education .mp-education__lesson-content-nav-card.is-active::after,
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]::after{
    background:#A44AFF;
}
.mp-education .mp-education__lesson-content-nav-icon{
    width:auto;
    height:auto;
    display:inline-flex;
    border:0;
    border-radius:0;
    background:transparent;
    color:inherit;
    font-size:13px;
}
.mp-education .mp-education__lesson-content-nav-label{
    font-size:12px;
    line-height:1.35;
    font-weight:700;
    color:inherit;
}
@media (max-width:700px){
    .mp-education .mp-education__lesson-content-nav{
        margin:14px 0 20px;
    }
    .mp-education .mp-education__lesson-content-nav-head{
        margin-bottom:5px;
    }
    .mp-education .mp-education__lesson-content-nav-head h2{
        font-size:11.5px;
    }
    .mp-education .mp-education__lesson-content-nav-card{
        min-height:33px;
        height:33px;
        padding:4px 9px 5px;
        gap:4px;
    }
    .mp-education .mp-education__lesson-content-nav-label{
        font-size:10.5px;
    }
    .mp-education .mp-education__lesson-content-nav-icon{
        font-size:11px;
    }
}
@media (max-width:420px){
    .mp-education .mp-education__lesson-content-nav-head p{
        display:none;
    }
    .mp-education .mp-education__lesson-content-nav-card{
        padding-left:8px;
        padding-right:8px;
    }
    .mp-education .mp-education__lesson-content-nav-label{
        font-size:10px;
    }
}


/* VERSION 246 — compact green lesson-section navigation */
.mp-education .mp-education__lesson-content-nav{
    margin:16px 0 22px;
    padding:0;
    border:0;
    border-radius:10px;
    background:#A44AFF;
    box-shadow:none;
    overflow:hidden;
}
.mp-education .mp-education__lesson-content-nav-head{
    display:inline-flex;
    align-items:center;
    flex:0 0 auto;
    margin:0;
    padding:0 12px;
    min-height:42px;
    background:transparent;
}
.mp-education .mp-education__lesson-content-nav-head h2{
    margin:0;
    color:#fff;
    font-size:12px;
    line-height:1;
    font-weight:800;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-content-nav-head p{
    display:none!important;
}
.mp-education .mp-education__lesson-content-nav-grid{
    display:flex;
    align-items:center;
    gap:2px;
    width:100%;
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    padding:4px 6px;
    border:0;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}
.mp-education .mp-education__lesson-content-nav-grid::-webkit-scrollbar{
    display:none;
}
.mp-education .mp-education__lesson-content-nav-card{
    position:relative;
    flex:0 0 auto;
    width:auto;
    min-width:0;
    height:34px;
    min-height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:0;
    padding:0 11px;
    border:0;
    border-radius:7px;
    background:transparent;
    color:#fff;
    box-shadow:none;
    transform:none;
    transition:background-color .18s ease,color .18s ease;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-content-nav-card::after{
    display:none!important;
}
.mp-education .mp-education__lesson-content-nav-card:hover,
.mp-education .mp-education__lesson-content-nav-card:focus-visible{
    background:rgba(255,255,255,.16);
    color:#fff;
    transform:none;
    outline:none;
}
.mp-education .mp-education__lesson-content-nav-card.is-active,
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]{
    background:#fff;
    color:#7C2EDB;
    box-shadow:none;
    transform:none;
    font-weight:800;
}
.mp-education .mp-education__lesson-content-nav-icon{
    display:none!important;
}
.mp-education .mp-education__lesson-content-nav-label{
    color:inherit;
    font-size:11.5px;
    line-height:1;
    font-weight:700;
}
@media (min-width:701px){
    .mp-education .mp-education__lesson-content-nav{
        display:flex;
        align-items:center;
        min-height:42px;
    }
    .mp-education .mp-education__lesson-content-nav-head{
        flex:0 0 auto;
    }
    .mp-education .mp-education__lesson-content-nav-grid{
        flex:1 1 auto;
    }
}
@media (max-width:700px){
    .mp-education .mp-education__lesson-content-nav{
        margin:12px 0 18px;
        border-radius:8px;
    }
    .mp-education .mp-education__lesson-content-nav-head{
        padding:0 10px;
        min-height:38px;
    }
    .mp-education .mp-education__lesson-content-nav-head h2{
        font-size:10.5px;
    }
    .mp-education .mp-education__lesson-content-nav-grid{
        min-height:38px;
        padding:3px 5px;
    }
    .mp-education .mp-education__lesson-content-nav-card{
        height:31px;
        min-height:31px;
        padding:0 9px;
    }
    .mp-education .mp-education__lesson-content-nav-label{
        font-size:10px;
    }
}
@media (max-width:380px){
    .mp-education .mp-education__lesson-content-nav-head{
        padding:0 8px;
    }
    .mp-education .mp-education__lesson-content-nav-head h2{
        font-size:10px;
    }
    .mp-education .mp-education__lesson-content-nav-card{
        padding:0 8px;
    }
}


/* VERSION 248 — neutral content nav with inline mobile row */
.mp-education .mp-education__lesson-content-nav{
    display:flex;
    align-items:center;
    width:100%;
    min-width:0;
    margin:14px 0 20px;
    padding:4px 6px;
    border:1px solid #e5eadf;
    border-radius:10px;
    background:#fff;
    box-shadow:0 3px 12px rgba(31,41,55,.03);
    overflow:hidden;
}
.mp-education .mp-education__lesson-content-nav-head{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    min-height:34px;
    margin:0;
    padding:0 10px 0 6px;
    background:transparent;
}
.mp-education .mp-education__lesson-content-nav-head h2{
    margin:0;
    color:#7C2EDB;
    font-size:11px;
    line-height:1;
    font-weight:800;
    white-space:nowrap;
}
.mp-education .mp-education__lesson-content-nav-grid{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    align-items:center;
    gap:2px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0;
    margin:0;
    border:0;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}
.mp-education .mp-education__lesson-content-nav-grid::-webkit-scrollbar{
    display:none;
}
.mp-education .mp-education__lesson-content-nav-card{
    flex:0 0 auto;
    height:32px;
    min-height:32px;
    margin:0;
    padding:0 10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:7px;
    background:transparent;
    color:#5f675f;
    box-shadow:none;
    white-space:nowrap;
    font-size:11px;
}
.mp-education .mp-education__lesson-content-nav-card:hover,
.mp-education .mp-education__lesson-content-nav-card:focus-visible{
    color:#7C2EDB;
    background:#f5faee;
}
.mp-education .mp-education__lesson-content-nav-card.is-active,
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]{
    color:#7C2EDB;
    background:#F3E8FF;
    font-weight:800;
}
.mp-education .mp-education__lesson-content-nav-icon{
    display:none!important;
}
.mp-education .mp-education__lesson-content-nav-label{
    color:inherit;
    font-size:inherit;
    line-height:1;
    font-weight:inherit;
}
@media (max-width:700px){
    .mp-education .mp-education__lesson-content-nav{
        min-height:36px;
        margin:10px 0 16px;
        padding:3px 4px;
        border-radius:8px;
    }
    .mp-education .mp-education__lesson-content-nav-head{
        min-height:30px;
        padding:0 7px 0 5px;
    }
    .mp-education .mp-education__lesson-content-nav-head h2{
        font-size:10px;
    }
    .mp-education .mp-education__lesson-content-nav-card{
        height:30px;
        min-height:30px;
        padding:0 8px;
        font-size:10px;
    }
}

/* VERSION 249 — green label tab for "محتوا" */
.mp-education .mp-education__lesson-content-nav-head{
    min-height:32px;
    margin:0;
    padding:0 11px;
    border-radius:7px;
    background:#A44AFF;
}
.mp-education .mp-education__lesson-content-nav-head h2{
    color:#fff;
    font-size:11px;
    font-weight:800;
}
@media (max-width:700px){
    .mp-education .mp-education__lesson-content-nav-head{
        min-height:30px;
        padding:0 9px;
        border-radius:6px;
    }
    .mp-education .mp-education__lesson-content-nav-head h2{
        font-size:10px;
    }
}


/* VERSION 250 — Lesson content navigation: minimal single-row presentation only */
.mp-education .mp-education__lesson-content-nav{
    display:flex;
    align-items:center;
    width:100%;
    min-width:0;
    margin:14px 0 20px;
    padding:3px 6px;
    border:1px solid #e5eadf;
    border-radius:9px;
    background:#fff;
    box-shadow:none;
    overflow:hidden;
}

.mp-education .mp-education__lesson-content-nav-head{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    min-height:30px;
    margin:0;
    padding:0 9px 0 4px;
    border:0;
    border-radius:0;
    background:transparent;
    white-space:nowrap;
}

.mp-education .mp-education__lesson-content-nav-head h2{
    margin:0;
    color:#A44AFF;
    font-size:11px;
    line-height:1;
    font-weight:800;
    white-space:nowrap;
}

.mp-education .mp-education__lesson-content-nav-head p{
    display:none!important;
}

.mp-education .mp-education__lesson-content-nav-grid{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    align-items:center;
    gap:1px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0;
    margin:0;
    border:0;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    white-space:nowrap;
}

.mp-education .mp-education__lesson-content-nav-grid::-webkit-scrollbar{
    display:none;
}

.mp-education .mp-education__lesson-content-nav-card{
    flex:0 0 auto;
    width:auto;
    min-width:0;
    height:30px;
    min-height:30px;
    margin:0;
    padding:0 9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#5f675f;
    box-shadow:none;
    transform:none;
    white-space:nowrap;
    font-size:11px;
    font-weight:600;
    transition:color .16s ease, background-color .16s ease;
}

.mp-education .mp-education__lesson-content-nav-card:hover,
.mp-education .mp-education__lesson-content-nav-card:focus-visible{
    color:#7C2EDB;
    background:transparent;
    outline:none;
    transform:none;
}

.mp-education .mp-education__lesson-content-nav-card.is-active,
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]{
    color:#7C2EDB;
    background:transparent;
    box-shadow:none;
    transform:none;
    font-weight:800;
}

.mp-education .mp-education__lesson-content-nav-card.is-active::after,
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]::after{
    display:none!important;
}

.mp-education .mp-education__lesson-content-nav-icon{
    display:none!important;
}

.mp-education .mp-education__lesson-content-nav-label{
    color:inherit;
    font-size:inherit;
    line-height:1;
    font-weight:inherit;
    white-space:nowrap;
}

@media (max-width:700px){
    .mp-education .mp-education__lesson-content-nav{
        min-height:34px;
        margin:10px 0 16px;
        padding:2px 4px;
        border-radius:8px;
    }

    .mp-education .mp-education__lesson-content-nav-head{
        min-height:30px;
        padding:0 8px 0 3px;
    }

    .mp-education .mp-education__lesson-content-nav-head h2{
        font-size:10px;
    }

    .mp-education .mp-education__lesson-content-nav-grid{
        gap:0;
    }

    .mp-education .mp-education__lesson-content-nav-card{
        height:29px;
        min-height:29px;
        padding:0 7px;
        font-size:10px;
    }
}

@media (max-width:380px){
    .mp-education .mp-education__lesson-content-nav-head{
        padding-right:7px;
    }

    .mp-education .mp-education__lesson-content-nav-card{
        padding-left:6px;
        padding-right:6px;
    }
}


/* VERSION 251 — Mobile scroll controls for Lesson content navigation */
.mp-education .mp-education__lesson-content-nav-scroll{
    display:none;
}

@media (max-width:700px){
    .mp-education .mp-education__lesson-content-nav{
        position:relative;
    }

    .mp-education .mp-education__lesson-content-nav-scroll{
        position:absolute;
        top:50%;
        z-index:5;
        display:flex;
        align-items:center;
        justify-content:center;
        width:22px;
        height:22px;
        margin:0;
        padding:0;
        border:0;
        border-radius:50%;
        background:#fff;
        color:#6d756d;
        box-shadow:0 1px 4px rgba(0,0,0,.12);
        transform:translateY(-50%);
        cursor:pointer;
        font-size:15px;
        line-height:1;
        opacity:.92;
        transition:opacity .15s ease, color .15s ease;
    }

    .mp-education .mp-education__lesson-content-nav-scroll:hover,
    .mp-education .mp-education__lesson-content-nav-scroll:focus-visible{
        color:#7C2EDB;
        opacity:1;
        outline:none;
    }

    .mp-education .mp-education__lesson-content-nav-scroll--prev{
        left:4px;
    }

    .mp-education .mp-education__lesson-content-nav-scroll--next{
        right:4px;
    }

    .mp-education .mp-education__lesson-content-nav-scroll[hidden]{
        display:none!important;
    }

    .mp-education .mp-education__lesson-content-nav-grid{
        scroll-behavior:smooth;
        padding-left:24px;
        padding-right:24px;
    }
}


/* =========================================================
   Lesson Content Navigation — Version 252
   Final minimal single-row navigation.
   Presentation only; no content/data logic changes.
========================================================= */
.mp-education .mp-education__lesson-content-nav{
    display:flex!important;
    align-items:center!important;
    gap:18px!important;
    width:100%!important;
    min-width:0!important;
    margin:0 0 22px!important;
    padding:0 14px!important;
    height:50px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    border:1px solid #e7ede2!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 2px 10px rgba(31,41,55,.035)!important;
}
.mp-education .mp-education__lesson-content-nav-head{
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    margin:0!important;
    padding:0!important;
    min-width:max-content!important;
}
.mp-education .mp-education__lesson-content-nav-head h2{
    margin:0!important;
    padding:0!important;
    color:#A44AFF!important;
    font-size:14px!important;
    line-height:1!important;
    font-weight:800!important;
    white-space:nowrap!important;
}
.mp-education .mp-education__lesson-content-nav-head p{
    display:none!important;
}
.mp-education .mp-education__lesson-content-nav-grid{
    display:flex!important;
    align-items:center!important;
    flex:1 1 auto!important;
    min-width:0!important;
    width:auto!important;
    height:100%!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    grid-template-columns:none!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:nowrap!important;
    scrollbar-width:none!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
}
.mp-education .mp-education__lesson-content-nav-grid::-webkit-scrollbar{display:none!important}
.mp-education .mp-education__lesson-content-nav-card{
    position:relative!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:max-content!important;
    min-height:0!important;
    height:100%!important;
    margin:0!important;
    padding:0 12px!important;
    border:0!important;
    border-radius:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:none!important;
    color:#5f6861!important;
    font-size:13px!important;
    font-weight:600!important;
    line-height:1!important;
    text-align:center!important;
    white-space:nowrap!important;
    cursor:pointer!important;
    transition:color .18s ease!important;
}
.mp-education .mp-education__lesson-content-nav-card::after{
    content:""!important;
    position:absolute!important;
    right:12px!important;
    left:12px!important;
    bottom:7px!important;
    height:2px!important;
    border-radius:99px!important;
    background:#A44AFF!important;
    opacity:0!important;
    transform:scaleX(.35)!important;
    transition:opacity .18s ease,transform .18s ease!important;
}
.mp-education .mp-education__lesson-content-nav-card:hover,
.mp-education .mp-education__lesson-content-nav-card:focus-visible{
    color:#7C2EDB!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:none!important;
}
.mp-education .mp-education__lesson-content-nav-card.is-active,
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]{
    color:#7C2EDB!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:none!important;
}
.mp-education .mp-education__lesson-content-nav-card.is-active::after,
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]::after{
    opacity:1!important;
    transform:scaleX(1)!important;
}
.mp-education .mp-education__lesson-content-nav-icon{
    display:none!important;
}
.mp-education .mp-education__lesson-content-nav-label{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:inherit!important;
    font-size:inherit!important;
    line-height:1!important;
    white-space:nowrap!important;
}
.mp-education .mp-education__lesson-content-nav-scroll{
    display:none!important;
}
@media(max-width:700px){
    .mp-education .mp-education__lesson-content-nav{
        gap:10px!important;
        height:44px!important;
        margin-bottom:18px!important;
        padding:0 9px!important;
        border-radius:10px!important;
    }
    .mp-education .mp-education__lesson-content-nav-head h2{
        font-size:12px!important;
    }
    .mp-education .mp-education__lesson-content-nav-grid{
        gap:0!important;
    }
    .mp-education .mp-education__lesson-content-nav-card{
        padding:0 9px!important;
        font-size:11px!important;
    }
    .mp-education .mp-education__lesson-content-nav-card::after{
        right:9px!important;
        left:9px!important;
        bottom:5px!important;
        height:2px!important;
    }
}


/* VERSION 253 — Content label green tab + white content items */
.mp-education .mp-education__lesson-content-nav-head{
    align-self:stretch!important;
    display:flex!important;
    align-items:center!important;
}
.mp-education .mp-education__lesson-content-nav-head h2{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    height:34px!important;
    min-width:58px!important;
    margin:0!important;
    padding:0 13px!important;
    border-radius:8px!important;
    background:#A44AFF!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:800!important;
    line-height:1!important;
    box-sizing:border-box!important;
}
.mp-education .mp-education__lesson-content-nav-card{
    background:#fff!important;
    color:#5f6861!important;
}
.mp-education .mp-education__lesson-content-nav-card:hover,
.mp-education .mp-education__lesson-content-nav-card:focus-visible{
    background:#fff!important;
    color:#A44AFF!important;
}
.mp-education .mp-education__lesson-content-nav-card.is-active,
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]{
    background:#fff!important;
    color:#A44AFF!important;
}
.mp-education .mp-education__lesson-content-nav-card::after,
.mp-education .mp-education__lesson-content-nav-card.is-active::after,
.mp-education .mp-education__lesson-content-nav-card[aria-selected="true"]::after{
    display:none!important;
}
@media(max-width:700px){
    .mp-education .mp-education__lesson-content-nav-head h2{
        height:30px!important;
        min-width:52px!important;
        padding:0 10px!important;
        border-radius:7px!important;
        font-size:12px!important;
    }
}

/* VERSION 254 — Green section of the main navigation card */
.mp-education .mp-education__lesson-content-nav{
    padding:0!important;
    gap:0!important;
    overflow:hidden!important;
}
.mp-education .mp-education__lesson-content-nav-head{
    align-self:stretch!important;
    height:100%!important;
    flex:0 0 auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0 18px!important;
    background:#A44AFF!important;
    border-radius:11px 0 0 11px!important;
    box-sizing:border-box!important;
}
.mp-education .mp-education__lesson-content-nav-head h2{
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:800!important;
}
.mp-education .mp-education__lesson-content-nav-grid{
    padding:0 5px!important;
}
@media(max-width:700px){
    .mp-education .mp-education__lesson-content-nav-head{
        padding:0 12px!important;
        border-radius:9px 0 0 9px!important;
    }
    .mp-education .mp-education__lesson-content-nav-head h2{
        font-size:12px!important;
    }
    .mp-education .mp-education__lesson-content-nav-grid{
        padding:0 2px!important;
    }
}

/* VERSION 255 — square left edge of the green Content section */
.mp-education .mp-education__lesson-content-nav-head{
    border-radius:0!important;
}
@media(max-width:700px){
    .mp-education .mp-education__lesson-content-nav-head{
        border-radius:0!important;
    }
}


/* VERSION 256 — Center the selected Content item on mobile; Content returns to lesson home */
@media(max-width:700px){
    .mp-education .mp-education__lesson-content-nav-card{
        scroll-snap-align:center;
    }
    .mp-education .mp-education__lesson-content-nav-grid{
        scroll-snap-type:x proximity;
    }
    .mp-education .mp-education__lesson-content-nav-head h2{
        cursor:pointer;
        user-select:none;
    }
}

/* VERSION 257 — Clicking the entire green Content area returns to lesson home; nav card remains visible */
@media(max-width:700px){
    .mp-education .mp-education__lesson-content-nav-head{cursor:pointer;}
}


/* Version 263 — book/chapter context header presentation only */
.mp-education .mp-education-book-header .mp-education__book-chapter-count{white-space:nowrap;}
.mp-education .mp-education-book-header .mp-education__book-chapter-count strong{display:inline-block;margin-inline-end:3px;}

/* Lesson comments — scoped to Education frontend */
.mp-education .mp-education__lesson-comments{margin-top:22px;background:#fff;border:1px solid #e8ece4;border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(34,55,20,.04)}
.mp-education .mp-education__lesson-comments-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border:0;background:#fff;color:#343a32;cursor:pointer;text-align:right;font-family:inherit}
.mp-education .mp-education__lesson-comments-toggle-text{display:flex;align-items:center;gap:9px;min-width:0}
.mp-education .mp-education__lesson-comments-toggle strong{font-size:14px;font-weight:700}
.mp-education .mp-education__lesson-comments-count{min-width:24px;height:24px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#F3E8FF;color:#7C2EDB;font-size:11px;font-weight:700}
.mp-education .mp-education__lesson-comments-arrow{width:20px;height:20px;display:flex;align-items:center;justify-content:center;color:#5d6757;transition:transform .2s ease}
.mp-education .mp-education__lesson-comments-arrow svg{width:18px;height:18px;display:block}
.mp-education .mp-education__lesson-comments.is-open .mp-education__lesson-comments-arrow{transform:rotate(180deg)}
.mp-education .mp-education__lesson-comments-panel{padding:0 16px 16px;border-top:1px solid #f0f2ed}
.mp-education .mp-education__lesson-comments-list{display:grid;gap:9px;padding-top:12px;max-height:360px;overflow-y:auto;overflow-x:hidden;padding-inline-end:8px;direction:ltr;scrollbar-width:thin;scrollbar-color:#cfd8c8 transparent}.mp-education .mp-education__lesson-comments-list>*{direction:rtl}.mp-education .mp-education__lesson-comments-list::-webkit-scrollbar{width:6px}.mp-education .mp-education__lesson-comments-list::-webkit-scrollbar-track{background:transparent}.mp-education .mp-education__lesson-comments-list::-webkit-scrollbar-thumb{background:#cfd8c8;border-radius:999px}.mp-education .mp-education__lesson-comments-list::-webkit-scrollbar-thumb:hover{background:#b8c5b2}
.mp-education .mp-education__lesson-comment{padding:11px 12px;border:1px solid #edf0ea;border-radius:11px;background:#fcfdfb}
.mp-education .mp-education__lesson-comment-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.mp-education .mp-education__lesson-comment-head strong{font-size:12px;color:#30352d}
.mp-education .mp-education__lesson-comment-head time{font-size:10px;color:#7b8178;white-space:nowrap}
.mp-education .mp-education__lesson-comment-body{font-size:12px;line-height:1.9;color:#4c514a}
.mp-education .mp-education__lesson-comment-body p{margin:0 0 6px}.mp-education .mp-education__lesson-comment-body p:last-child{margin-bottom:0}
.mp-education .mp-education__lesson-comments-empty,.mp-education .mp-education__lesson-comments-login{margin:12px 0 0;color:#777d74;font-size:12px;line-height:1.8}
.mp-education .mp-education__lesson-comment-form{display:grid;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid #f0f2ed}
.mp-education .mp-education__lesson-comment-form label{font-size:12px;font-weight:700;color:#3c4338}
.mp-education .mp-education__lesson-comment-form textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:92px;padding:10px 11px;border:1px solid #E8E0F2;border-radius:10px;background:#fff;color:#343a32;font:inherit;font-size:12px;line-height:1.8;outline:none;transition:border-color .2s ease,box-shadow .2s ease}
.mp-education .mp-education__lesson-comment-form textarea:focus{border-color:#A44AFF;box-shadow:0 0 0 3px rgba(164,74,255,.12)}
.mp-education .mp-education__lesson-comment-submit{justify-self:start;border:0;border-radius:9px;background:#A44AFF;color:#fff;padding:8px 15px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background .2s ease,transform .2s ease}
.mp-education .mp-education__lesson-comment-submit:hover{background:#913BEF;transform:translateY(-1px)}
@media (max-width:700px){.mp-education .mp-education__lesson-comments{margin-top:16px;border-radius:12px}.mp-education .mp-education__lesson-comments-list{max-height:300px;padding-inline-end:7px}.mp-education .mp-education__lesson-comments-toggle{padding:11px 12px}.mp-education .mp-education__lesson-comments-toggle strong{font-size:12px}.mp-education .mp-education__lesson-comments-panel{padding:0 12px 12px}.mp-education .mp-education__lesson-comment-head{width:100%;box-sizing:border-box;align-items:center;justify-content:space-between;flex-direction:row;gap:8px;flex-wrap:nowrap}.mp-education .mp-education__lesson-comment-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mp-education .mp-education__lesson-comment-head time{flex:0 0 auto;font-size:9px;white-space:nowrap;margin-inline-start:auto}.mp-education .mp-education__lesson-comment-body{font-size:11px}.mp-education .mp-education__lesson-comment-submit{width:100%;justify-self:stretch}}

/* Version 271 — lesson comment success dialog and admin replies */
.mp-education .mp-education__lesson-comment-replies{margin-top:12px;padding-right:12px;border-right:3px solid #A44AFF;display:grid;gap:8px}.mp-education .mp-education__lesson-comment-reply{background:#FAF7FF;border:1px solid #EEE2FF;border-radius:10px;padding:10px 11px}.mp-education .mp-education__lesson-comment-reply-head{display:flex;align-items:center;gap:6px;margin-bottom:5px}.mp-education .mp-education__lesson-comment-reply-head strong{font-size:11px;color:#30352d}.mp-education .mp-education__lesson-comment-admin-label{font-size:10px;color:#A44AFF;font-weight:800}.mp-education .mp-education__lesson-comment-reply-head time{margin-inline-start:auto;font-size:9px;color:#7b8178;white-space:nowrap}.mp-education__comment-success-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}.mp-education__comment-success-backdrop{position:absolute;inset:0;background:rgba(20,28,16,.38);backdrop-filter:blur(2px)}.mp-education__comment-success-dialog{position:relative;width:min(410px,100%);box-sizing:border-box;background:#fff;border:1px solid #E9DFFF;border-radius:18px;padding:28px 24px 22px;text-align:center;box-shadow:0 18px 50px rgba(24,40,18,.18);animation:mpEducationCommentModalIn .2s ease}.mp-education__comment-success-modal.is-closing .mp-education__comment-success-dialog{animation:mpEducationCommentModalOut .18s ease forwards}.mp-education__comment-success-close{position:absolute;top:9px;inset-inline-start:10px;width:30px;height:30px;border:0;border-radius:50%;background:#f4f7f1;color:#697267;font-size:20px;line-height:1;cursor:pointer}.mp-education__comment-success-icon{width:48px;height:48px;margin:0 auto 12px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#F3E8FF;color:#7C2EDB;font-size:24px;font-weight:900}.mp-education__comment-success-dialog h3{margin:0;color:#263025;font-size:17px;line-height:1.7}.mp-education__comment-success-dialog p{margin:8px 0 18px;color:#687066;font-size:12px;line-height:2}.mp-education__comment-success-button{border:0;border-radius:9px;background:#A44AFF;color:#fff;padding:9px 20px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.mp-education__comment-success-button:hover{background:#913BEF}@keyframes mpEducationCommentModalIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@keyframes mpEducationCommentModalOut{to{opacity:0;transform:translateY(8px) scale(.98)}}@media(max-width:700px){.mp-education .mp-education__lesson-comment-reply-head{align-items:center;flex-wrap:nowrap;width:100%;box-sizing:border-box;gap:5px}.mp-education .mp-education__lesson-comment-reply-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mp-education .mp-education__lesson-comment-reply-head .mp-education__lesson-comment-admin-label{white-space:nowrap;flex:0 0 auto}.mp-education .mp-education__lesson-comment-reply-head time{width:auto;margin-inline-start:auto;flex:0 0 auto;font-size:9px;white-space:nowrap}.mp-education__comment-success-dialog{padding:25px 18px 19px;border-radius:15px}}
/* Version 272 — comments UX */
.mp-education .mp-education__lesson-comments-login{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:right;margin:12px 0 0;color:#687066;font-size:11px;direction:rtl}.mp-education .mp-education__lesson-comments-login a{margin-left:0;flex:0 0 auto}
.mp-education .mp-education__lesson-comments-login a{color:#A44AFF;font-weight:800;text-decoration:none}
.mp-education .mp-education__lesson-comments-login a:hover{text-decoration:underline}
.mp-education .mp-education__lesson-comment-submit{display:block;margin-inline-start:auto;margin-inline-end:0}
.mp-education .mp-education__lesson-comment-reply-form{margin-top:10px;padding:10px 12px;background:#fafcf8;border:1px solid #e7edde;border-radius:10px}
.mp-education .mp-education__lesson-comment-reply-form label{display:block;margin-bottom:6px;font-size:10px;font-weight:700;color:#50584d}
.mp-education .mp-education__lesson-comment-reply-form textarea{width:100%;box-sizing:border-box;min-height:58px;border:1px solid #dfe7d8;border-radius:8px;padding:8px 10px;font:inherit;font-size:11px;resize:vertical;background:#fff}
.mp-education .mp-education__lesson-comment-reply-submit{display:block;margin:7px 0 0 auto;border:0;border-radius:8px;background:#A44AFF;color:#fff;padding:7px 14px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}

/* نظرات درس — نسخه 274 */
.mp-education .mp-education__lesson-comment-reply-toggle{display:block;width:max-content;margin:10px 0 0 auto;padding:6px 13px;border:1px solid #dfe5ea;border-radius:8px;background:#fff;color:#7C2EDB;font:inherit;font-size:11px;font-weight:800;line-height:1.5;cursor:pointer;box-shadow:none;outline:none;text-align:center}.mp-education .mp-education__lesson-comment-reply-toggle:hover,.mp-education .mp-education__lesson-comment-reply-toggle:focus{border-color:#A44AFF;background:#f7fbeF;color:#7C2EDB;box-shadow:none;outline:none}.mp-education .mp-education__lesson-comment-reply-toggle.is-open{background:#F3E8FF;border-color:#DEC7FF}.mp-education .mp-education__comment-success-button,.mp-education .mp-education__comment-success-button:focus,.mp-education .mp-education__comment-success-button:hover{border:0!important;outline:0!important;box-shadow:none!important}

@media (max-width: 700px) {
    .mp-education .mp-education__lesson-comment-head {
        justify-content: flex-start;
        gap: 8px;
    }
    .mp-education .mp-education__lesson-comment-head strong {
        flex: 0 0 auto;
    }
    .mp-education .mp-education__lesson-comment-head time {
        margin-inline-start: auto;
        text-align: left;
        flex: 0 0 auto;
    }
}

/* Lesson comments: justified text */
.mp-education .mp-education__lesson-comment-body,
.mp-education .mp-education__lesson-comment-body p,
.mp-education .mp-education__lesson-comment-reply .mp-education__lesson-comment-body,
.mp-education .mp-education__lesson-comment-reply .mp-education__lesson-comment-body p{ text-align:justify; }
