/* ==========================================================================
   MEDEL ACADEMY — COURSES ARCHIVE + SINGLE COURSE
   ========================================================================== */
.mc{
    --v:#5b4dbe;
    --v-dark:#4a3da6;
    --v-deep:#231a5c;
    --v-soft:#efedfb;
    --v-tint:#f7f6fd;
    --gold:#ffd00d;
    --gold-dark:#f2c200;
    --ink:#21283c;
    --mute:#667085;
    --line:#e8e9f1;
    --ok:#12805c;
    display:block;
    background:#fff;
    color:var(--ink);
    
    text-align:start;
    font-family:"Cairo",sans-serif;
}
.mc *,.mc *:before,.mc *:after{box-sizing:border-box}
.mc :where(a){text-decoration:none;color:inherit}
.mc a:hover{text-decoration:none}
.mc :where(h1,h2,h3,p,ul,figure){margin:0;padding:0}
.mc :where(ul){list-style:none}
.mc :where(img){max-width:100%;height:auto}
.mc .mh-ic{flex:0 0 auto;display:block}
.mc .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.mc-wrap{width:100%;max-width:1384px;margin:0 auto;padding:0 24px}

.mc-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    height:50px;
    padding:0 24px;
    border:1.5px solid transparent;
    border-radius:12px;
    font-family:inherit;
    font-size:15.5px;
    font-weight:800;
    white-space:nowrap;
    cursor:pointer;
    transition:background .2s ease,box-shadow .2s ease,transform .2s ease;
}
.mc-btn--gold{background:var(--gold);color:var(--ink) !important}
.mc-btn--gold:hover{background:var(--gold-dark);box-shadow:0 10px 24px rgba(255,208,13,.32)}
.mc-btn--v{background:var(--v);color:#fff !important}
.mc-btn--v:hover{background:var(--v-dark);box-shadow:0 10px 24px rgba(91,77,190,.3)}
.mc-kicker{display:inline-block;margin-bottom:8px;padding:5px 12px;border-radius:999px;background:var(--v-soft);color:var(--v);font-size:13px;font-weight:800}

.mc-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:rgba(255,255,255,.7);font-size:13.5px;font-weight:600}
.mc-crumbs a{display:inline-flex;align-items:center;gap:6px;color:rgba(255,255,255,.86);transition:color .2s ease}
.mc-crumbs a:hover{color:var(--gold)}
.mc-crumbs b{color:#fff;font-weight:700}

/* ---------- course card (shared with the home page) ---------- */
.mh-course{
    display:flex;
    flex-direction:column;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    overflow:hidden;
    transition:box-shadow .25s ease,transform .25s ease,border-color .25s ease;
}
.mh-course:hover{border-color:#d6d1f5;box-shadow:0 22px 48px rgba(33,40,60,.12);transform:translateY(-5px)}
.mh-course__media{position:relative;display:block;aspect-ratio:16/9;background:var(--v-soft);overflow:hidden}
.mh-course__media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.mh-course:hover .mh-course__media img{transform:scale(1.05)}
.mh-course__ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--v)}
.mh-badge{
    position:absolute;
    top:12px;
    inset-inline-start:12px;
    padding:4px 12px;
    border-radius:999px;
    background:var(--gold);
    color:var(--ink);
    font-size:12.5px;
    font-weight:800;
}
.mh-badge--hot{background:#e5484d;color:#fff}
.mh-badge--easy{background:#12805c;color:#fff}
.mh-course__body{flex:1 1 auto;display:flex;flex-direction:column;gap:10px;padding:18px 18px 14px}
.mh-course__top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:26px}
.mh-course__cat{padding:3px 10px;border-radius:999px;background:var(--v-soft);color:var(--v);font-size:12.5px;font-weight:700}
.mh-rate{display:inline-flex;align-items:center;gap:4px;margin-inline-start:auto;color:#e0a800;font-size:13.5px}
.mh-rate b{color:var(--ink);font-weight:800}
.mh-rate small{color:var(--mute)}
.mh-course h3{font-size:16.5px;font-weight:800;line-height:1.6}
.mh-course h3 a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--ink);transition:color .2s ease}
.mh-course h3 a:hover{color:var(--v)}
.mh-course__meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:auto;color:var(--mute);font-size:13px;font-weight:600}
.mh-course__meta span{display:inline-flex;align-items:center;gap:5px}
.mh-course__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-top:1px solid var(--line)}
.mh-price{display:flex;align-items:baseline;gap:8px}
.mh-price b{color:var(--ink);font-size:18px;font-weight:800}
.mh-price s{color:#98a2b3;font-size:13.5px}
.mh-price .mh-free{color:var(--ok)}
.mh-course__go{
    display:inline-flex;
    align-items:center;
    gap:6px;
    height:38px;
    padding:0 14px;
    border-radius:10px;
    background:var(--v-soft);
    color:var(--v) !important;
    font-size:13.5px;
    font-weight:800;
    white-space:nowrap;
    transition:background .2s ease,color .2s ease;
}
.mh-course__go:hover{background:var(--v);color:#fff !important}
.mc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}

/* ==========================================================================
   ARCHIVE
   ========================================================================== */
.mc-hero{
    position:relative;
    padding:34px 0 86px;
    background:
        radial-gradient(700px 360px at 8% 0%,rgba(255,208,13,.16),transparent 60%),
        radial-gradient(700px 420px at 100% 100%,rgba(140,124,240,.4),transparent 60%),
        linear-gradient(135deg,#231a5c 0%,#3a2e93 55%,#5b4dbe 100%);
    color:#fff;
}
.mc-hero__row{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-top:26px}
.mc-hero h1{color:#fff;font-size:44px;font-weight:800;line-height:1.35}
.mc-hero__copy p{margin-top:10px;max-width:640px;color:rgba(255,255,255,.86);font-size:17px;line-height:1.9}
.mc-hero__count{
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:150px;
    padding:16px 22px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:18px;
    background:rgba(255,255,255,.09);
}
.mc-hero__count b{color:var(--gold);font-size:38px;font-weight:800;line-height:1.2}
.mc-hero__count span{color:rgba(255,255,255,.86);font-size:14px;font-weight:700}

.mc-search{
    position:absolute;
    right:50%;
    bottom:0;
    display:flex;
    align-items:center;
    gap:10px;
    width:calc(100% - 48px);
    max-width:860px;
    height:68px;
    padding:6px 20px 6px 6px;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 20px 50px rgba(33,40,60,.14);
    transform:translate(50%,50%);
}
.mc-search > .mh-ic{color:var(--mute)}
.mc-search input[type=search]{
    flex:1 1 auto;
    min-width:0;
    height:100%;
    padding:0;
    border:0;
    outline:0;
    background:transparent;
    color:var(--ink);
    font-family:inherit;
    font-size:16px;
    box-shadow:none;
}
.mc-search input[type=search]::placeholder{color:#98a2b3}
.mc-search button{
    flex:0 0 auto;
    height:54px;
    padding:0 30px;
    border:0;
    border-radius:13px;
    background:var(--v);
    color:#fff;
    font-family:inherit;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
    transition:background .2s ease;
}
.mc-search button:hover{background:var(--v-dark)}
.mc-search:focus-within{border-color:var(--v);box-shadow:0 0 0 4px rgba(91,77,190,.14),0 20px 50px rgba(33,40,60,.14)}

/* category chips */
.mc-cats{padding:62px 0 0}
.mc-cats__row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.mc-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:46px;
    padding:0 16px;
    border:1.5px solid var(--line);
    border-radius:999px;
    background:#fff;
    color:var(--ink);
    font-size:14.5px;
    font-weight:700;
    white-space:nowrap;
    transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.mc-chip .mh-ic{color:var(--v);transition:color .2s ease}
.mc-chip small{
    min-width:24px;
    padding:1px 7px;
    border-radius:999px;
    background:var(--v-soft);
    color:var(--v);
    font-size:12px;
    font-weight:800;
    text-align:center;
}
.mc-chip:hover{border-color:var(--v);color:var(--v)}
.mc-chip.is-active{border-color:var(--v);background:var(--v);color:#fff;box-shadow:0 8px 20px rgba(91,77,190,.28)}
.mc-chip.is-active .mh-ic{color:var(--gold)}
.mc-chip.is-active small{background:rgba(255,255,255,.2);color:#fff}

/* toolbar */
.mc-results{padding:30px 0 84px}
.mc-cats + .mc-results{padding-top:26px}
.mc-hero + .mc-results{padding-top:66px}
.mc-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:22px;
    padding:12px 16px;
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--v-tint);
}
.mc-bar__count{display:flex;align-items:center;gap:8px;color:var(--mute);font-size:14.5px;font-weight:700}
.mc-bar__count .mh-ic{color:var(--v)}
.mc-bar__count b{color:var(--ink);font-weight:800}
.mc-bar__fields{display:flex;align-items:center;gap:10px}
.mc-select{display:flex;align-items:center;gap:8px;margin:0;color:var(--mute);font-size:13.5px;font-weight:700}
.mc-select select{
    height:42px;
    min-width:132px;
    padding:0 12px 0 34px;
    border:1.5px solid var(--line);
    border-radius:10px;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4dbe' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 10px center/16px;
    color:var(--ink);
    font-family:inherit;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    -webkit-appearance:none;
    appearance:none;
    transition:border-color .2s ease;
}
.mc-select select:hover,.mc-select select:focus{border-color:var(--v);outline:0}
.mc-bar__apply{
    height:42px;
    padding:0 18px;
    border:0;
    border-radius:10px;
    background:var(--v);
    color:#fff;
    font-family:inherit;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
}
.mc-bar.is-auto .mc-bar__apply{display:none}

.mc-active{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:-6px 0 22px}
.mc-active a{
    display:inline-flex;
    align-items:center;
    gap:6px;
    height:34px;
    padding:0 12px;
    border-radius:999px;
    background:var(--v-soft);
    color:var(--v);
    font-size:13px;
    font-weight:700;
}
.mc-active a:hover{background:#e2defa}
.mc-active a.mc-active__clear{background:transparent;color:var(--mute);text-decoration:underline}

/* pagination */
.mc-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:40px}
.mc-pager__num,.mc-pager__nav{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    height:44px;
    padding:0 10px;
    border:1.5px solid var(--line);
    border-radius:12px;
    background:#fff;
    color:var(--ink);
    font-size:15px;
    font-weight:800;
    transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.mc-pager a:hover{border-color:var(--v);color:var(--v)}
.mc-pager__num.is-current{border-color:var(--v);background:var(--v);color:#fff}
.mc-pager__gap{color:var(--mute);font-weight:800}

/* empty state */
.mc-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    padding:64px 20px;
    border:1.5px dashed #d9d5f3;
    border-radius:22px;
    background:var(--v-tint);
    text-align:center;
}
.mc-empty__ic{display:flex;align-items:center;justify-content:center;width:76px;height:76px;margin-bottom:6px;border-radius:50%;background:var(--v-soft);color:var(--v)}
.mc-empty h2{font-size:22px;font-weight:800}
.mc-empty p{margin-bottom:10px;color:var(--mute);font-size:15.5px}

/* ==========================================================================
   SINGLE COURSE
   ========================================================================== */
.mc-single.tutor-page-wrap{padding:0;background:#fff}
.mc-single{--side:400px;--gap:44px}

.mc-chero{
    padding:34px 0 46px;
    background:
        radial-gradient(700px 360px at 8% 0%,rgba(255,208,13,.14),transparent 60%),
        radial-gradient(700px 460px at 100% 100%,rgba(140,124,240,.36),transparent 60%),
        linear-gradient(135deg,#171c2c 0%,#231a5c 45%,#3a2e93 100%);
    color:#fff;
}
/* leave room for the floating purchase card */
.mc-chero__in{padding-inline-end:calc(var(--side) + var(--gap));min-height:300px}
.mc-chero__tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.mc-tag{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:5px 12px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:999px;
    background:rgba(255,255,255,.1);
    color:#fff;
    font-size:13px;
    font-weight:700;
}
.mc-tag--gold{border-color:transparent;background:var(--gold);color:var(--ink)}
.mc-chero__title{margin-top:14px;color:#fff;font-size:38px;font-weight:800;line-height:1.45}
.mc-chero__lead{margin-top:12px;max-width:760px;color:rgba(255,255,255,.86);font-size:17px;line-height:1.95}
.mc-chero__meta{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:20px !important;color:rgba(255,255,255,.9);font-size:14.5px;font-weight:600}
.mc-chero__meta li{display:inline-flex;align-items:center;gap:7px}
.mc-chero__meta .mh-ic{color:rgba(255,255,255,.7)}
.mc-chero__rate .mh-ic{color:var(--gold)}
.mc-chero__rate b{color:#fff;font-weight:800}
.mc-chero__rate span{color:rgba(255,255,255,.7)}
.mc-chero__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:26px;padding-top:22px;border-top:1px solid rgba(255,255,255,.14)}
.mc-chero__by{display:inline-flex;align-items:center;gap:12px;color:#fff}
.mc-chero__by img{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.4);background:var(--v-soft)}
.mc-chero__by small{display:block;color:rgba(255,255,255,.7);font-size:12.5px;font-weight:600}
.mc-chero__by b{display:block;font-size:15.5px;font-weight:800}
.mc-chero__by:hover b{color:var(--gold)}
.mc-chero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 !important}
.mc-chero__actions .tutor-btn{
    min-height:42px;
    margin:0 !important;
    padding:6px 16px;
    border:1px solid rgba(255,255,255,.28);
    border-radius:10px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:14px;
    font-weight:700;
}
.mc-chero__actions .tutor-btn:hover{background:rgba(255,255,255,.18);color:#fff;box-shadow:none}

/* two columns: content + floating card */
.mc-single .tutor-course-details-page.mc-wrap{max-width:1384px}
.mc-course{display:grid;grid-template-columns:minmax(0,1fr) var(--side);gap:var(--gap);align-items:start;padding:36px 0 72px}
.mc-course__main{grid-column:1;grid-row:1;min-width:0}
.mc-course__side{grid-column:2;grid-row:1;margin-top:-336px}

.mc-buy{
    position:sticky;
    top:104px;
    border:1px solid var(--line);
    border-radius:22px;
    background:#fff;
    box-shadow:0 26px 60px rgba(23,28,44,.18);
    overflow:hidden;
}
.mc-buy__media{background:var(--v-deep)}
.mc-buy__media img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.mc-buy__media .tutor-course-thumbnail,
.mc-buy__media .tutor-video-player,
.mc-buy__media .tutor-ratio,
.mc-buy__media img{margin:0 !important;border-radius:0 !important;box-shadow:none !important}
.mc-buy .tutor-sidebar-card{margin:0;border:0 !important;border-radius:0 !important;background:#fff;box-shadow:none !important}
.mc-buy .tutor-sidebar-card .tutor-card-body{padding:22px}
.mc-buy .tutor-sidebar-card .tutor-card-footer{padding:18px 22px;border-top:1px solid var(--line);background:var(--v-tint)}
.mc-buy .tutor-sidebar-card .tutor-btn{min-height:52px;border-radius:12px;font-size:16px;font-weight:800}
.mc-buy .tutor-sidebar-card .tutor-btn-primary{border-color:var(--gold);background:var(--gold);color:var(--ink);box-shadow:0 10px 24px rgba(255,208,13,.3)}
.mc-buy .tutor-sidebar-card .tutor-btn-primary:hover,
.mc-buy .tutor-sidebar-card .tutor-btn-primary:focus{border-color:var(--gold-dark);background:var(--gold-dark);color:var(--ink)}
.mc-buy__trust{
    display:flex;
    align-items:flex-start;
    gap:9px;
    padding:14px 22px 18px;
    border-top:1px solid var(--line);
    color:var(--mute);
    font-size:13px;
    font-weight:600;
    line-height:1.8;
}
.mc-buy__trust .mh-ic{margin-top:3px;color:var(--ok)}

/* facts strip */
.mc-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:30px !important}
.mc-facts li{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--v-tint)}
.mc-facts__ic{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;height:44px;border-radius:12px;background:#fff;color:var(--v);box-shadow:0 4px 12px rgba(91,77,190,.12)}
.mc-facts b{display:block;color:var(--ink);font-size:16px;font-weight:800;line-height:1.4}
.mc-facts small{display:block;color:var(--mute);font-size:12.5px;font-weight:600}

/* tabs (rendered by Tutor) */
.mc-tabs{margin:0 !important}
.mc-tabs .tutor-is-sticky{top:86px;padding-top:4px;background:#fff;z-index:20}
.mc-tabs .tutor-nav{flex-wrap:nowrap;gap:6px;padding:6px;border:1px solid var(--line) !important;border-radius:14px;background:var(--v-tint);overflow-x:auto;scrollbar-width:none}
.mc-tabs .tutor-nav::-webkit-scrollbar{display:none}
.mc-tabs .tutor-nav-item{flex:0 0 auto;margin:0}
.mc-tabs .tutor-nav-link{
    padding:10px 18px;
    border:0 !important;
    border-radius:10px;
    color:var(--mute);
    font-size:15px;
    font-weight:800;
    white-space:nowrap;
}
.mc-tabs .tutor-nav-link:hover{color:var(--v)}
.mc-tabs .tutor-nav-link.is-active{background:#fff;color:var(--v);box-shadow:0 4px 14px rgba(33,40,60,.1)}
.mc-tabs .tutor-nav-link.is-active:after,
.mc-tabs .tutor-nav-link:after{display:none}

/* instructor / requirements / audience / tags */
.mc-more{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:36px !important}
.mc-more > *{margin:0 !important}
.mc-more:empty{display:none}

/* related courses */
.mc-related{padding:64px 0 84px;background:var(--v-tint)}
.mc-related__head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}
.mc-related__head h2{color:var(--ink);font-size:28px;font-weight:800;line-height:1.4}
.mc-more-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:44px;
    padding:0 18px;
    border:1.5px solid var(--line);
    border-radius:10px;
    background:#fff;
    color:var(--v) !important;
    font-size:14.5px;
    font-weight:700;
    white-space:nowrap;
}
.mc-more-link:hover{border-color:var(--v)}

/* phone enrol bar (hidden on desktop) */
.mc-sticky{display:none}

.mc a:focus-visible,.mc button:focus-visible,.mc select:focus-visible{outline:2px solid var(--v);outline-offset:3px}

/* ==========================================================================
   LAPTOP / TABLET
   ========================================================================== */
@media (max-width:1199px){
    .mc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .mc-single{--side:360px;--gap:32px}
    .mc-chero__title{font-size:32px}
    .mc-hero h1{font-size:38px}
}
@media (max-width:991px){
    .mc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .mc-bar{flex-direction:column;align-items:stretch}
    .mc-bar__fields{flex-wrap:wrap}
    .mc-select{flex:1 1 150px;flex-direction:column;align-items:stretch;gap:4px}
    .mc-select select{width:100%;min-width:0}

    /* single: one column, card right after the header */
    .mc-chero{padding-bottom:34px}
    .mc-chero__in{padding-inline-end:0;min-height:0}
    .mc-course{grid-template-columns:minmax(0,1fr);gap:28px;padding:0 0 56px}
    .mc-course__side{grid-column:1;grid-row:1;margin-top:-18px}
    .mc-course__main{grid-column:1;grid-row:2}
    .mc-buy{position:static;max-width:560px;margin:0 auto}
    .mc-tabs .tutor-is-sticky{top:68px}

    .mc-sticky{
        position:fixed;
        right:0;
        bottom:0;
        left:0;
        z-index:9990;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:14px;
        padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));
        border-top:1px solid var(--line);
        background:#fff;
        box-shadow:0 -10px 30px rgba(33,40,60,.12);
        transition:transform .25s ease;
    }
    .mc-sticky.is-hidden{transform:translateY(110%)}
    .mc-sticky__price{display:flex;flex-direction:column;line-height:1.3}
    .mc-sticky__price b{color:var(--ink);font-size:19px;font-weight:800}
    .mc-sticky__price s{color:#98a2b3;font-size:13px}
    .mc-sticky__price .mh-free{color:var(--ok)}
    .mc-sticky .mc-btn{flex:1 1 auto;max-width:260px;height:48px;padding:0 16px}
}

/* ==========================================================================
   PHONE
   ========================================================================== */
@media (max-width:640px){
    .mc-wrap{padding:0 16px}

    .mc-hero{padding:24px 0 62px}
    .mc-hero__row{flex-direction:column;align-items:stretch;gap:16px;margin-top:18px}
    .mc-hero h1{font-size:28px}
    .mc-hero__copy p{font-size:15px;line-height:1.85}
    .mc-hero__count{flex-direction:row;gap:10px;min-width:0;align-self:flex-start;padding:8px 16px;border-radius:999px}
    .mc-hero__count b{font-size:20px}
    .mc-hero__count span{font-size:13.5px}
    .mc-search{width:calc(100% - 32px);height:56px;padding:5px 14px 5px 5px;border-radius:14px}
    .mc-search > .mh-ic{display:none}
    .mc-search input[type=search]{font-size:15px}
    .mc-search button{height:46px;padding:0 20px;border-radius:10px;font-size:15px}

    /* chips: one swipeable row */
    .mc-cats{padding-top:48px}
    .mc-cats__row{
        flex-wrap:nowrap;
        justify-content:flex-start;
        gap:8px;
        margin:0 -16px;
        padding:2px 16px 8px;
        overflow-x:auto;
        scrollbar-width:none;
        -webkit-overflow-scrolling:touch;
    }
    .mc-cats__row::-webkit-scrollbar{display:none}
    .mc-chip{flex:0 0 auto;height:42px;padding:0 14px;font-size:14px}

    .mc-results{padding-bottom:56px}
    .mc-cats + .mc-results{padding-top:16px}
    .mc-bar{gap:12px;padding:12px;border-radius:14px}
    .mc-bar__fields{gap:8px}
    .mc-select{flex:1 1 30%;font-size:12px}
    .mc-select select{height:40px;padding:0 8px 0 26px;background-position:left 6px center;font-size:13px}

    /* archive: compact horizontal cards, easy to scan with one thumb */
    .mc-archive .mc-grid{grid-template-columns:minmax(0,1fr);gap:12px}
    .mc-archive .mh-course{
        display:grid;
        grid-template-columns:122px minmax(0,1fr);
        grid-template-rows:1fr auto;
        border-radius:16px;
    }
    .mc-archive .mh-course:hover{transform:none}
    .mc-archive .mh-course__media{grid-row:1 / span 2;aspect-ratio:auto;height:100%;min-height:128px}
    .mc-archive .mh-course__body{gap:6px;padding:12px 12px 6px}
    .mc-archive .mh-course__top{min-height:0}
    .mc-archive .mh-course__cat{padding:2px 8px;font-size:11px}
    .mc-archive .mh-course h3{font-size:14.5px;line-height:1.55}
    .mc-archive .mh-course__meta{gap:2px 10px;font-size:11.5px}
    .mc-archive .mh-course__meta .mh-ic{width:13px;height:13px}
    .mc-archive .mh-course__foot{padding:8px 12px 12px;border-top:0}
    .mc-archive .mh-price b{font-size:15.5px}
    .mc-archive .mh-price s{font-size:11.5px}
    .mc-archive .mh-course__go{height:32px;padding:0 10px;font-size:12px}
    .mc-archive .mh-badge{top:8px;inset-inline-start:8px;padding:2px 8px;font-size:10.5px}

    .mc-pager{margin-top:28px}
    .mc-pager__num,.mc-pager__nav{min-width:40px;height:40px;font-size:14px}

    /* single */
    .mc-chero{padding:22px 0 30px}
    .mc-chero__tags{margin-top:16px}
    .mc-chero__title{margin-top:12px;font-size:24px;line-height:1.5}
    .mc-chero__lead{font-size:15px;line-height:1.9}
    .mc-chero__meta{gap:8px 16px;font-size:13.5px}
    .mc-chero__foot{margin-top:20px;padding-top:18px}
    .mc-buy{border-radius:18px}
    .mc-buy .tutor-sidebar-card .tutor-card-body{padding:18px}
    .mc-buy .tutor-sidebar-card .tutor-card-footer{padding:16px 18px}
    .mc-buy__trust{padding:12px 18px 16px}
    .mc-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px !important}
    .mc-facts li{flex-direction:column;align-items:center;gap:8px;padding:14px 8px;text-align:center}
    .mc-facts__ic{width:40px;height:40px;border-radius:50%}
    .mc-facts b{font-size:14.5px}
    .mc-facts li:last-child:nth-child(odd){grid-column:1 / -1}
    .mc-tabs .tutor-nav-link{padding:9px 14px;font-size:14px}
    .mc-more{grid-template-columns:minmax(0,1fr);margin-top:28px !important}

    .mc-related{padding:44px 0 96px}
    .mc-related__head{margin-bottom:20px}
    .mc-related__head h2{font-size:22px}
    .mc-more-link{height:40px;padding:0 14px;font-size:13.5px}
    /* related: swipeable row of compact cards */
    .mc-grid--row{
        display:flex;
        gap:12px;
        margin:0 -16px;
        padding:4px 16px 14px;
        overflow-x:auto;
        scroll-snap-type:x mandatory;
        scroll-padding:0 16px;
        scrollbar-width:none;
        -webkit-overflow-scrolling:touch;
    }
    .mc-grid--row::-webkit-scrollbar{display:none}
    .mc-grid--row .mh-course{flex:0 0 68%;max-width:270px;scroll-snap-align:start}
    .mc-grid--row .mh-course__body{gap:8px;padding:12px 12px 10px}
    .mc-grid--row .mh-course h3{font-size:14.5px}
    .mc-grid--row .mh-course__foot{padding:10px 12px}
    .mc-grid--row .mh-course__go{height:34px;padding:0 10px;font-size:12.5px}
    .mc-single{padding-bottom:0}
}
@media (prefers-reduced-motion:reduce){
    .mc *{transition:none !important}
}
