/* =========================================================
   COURSE DETAILS PAGE (resources/views/courses/show.blade.php)
   Desktop (>= 992px): dark hero + sticky section tabs + floating enroll card.
   Mobile  (< 992px):  app-style cover, tabbed panels, sticky enroll bar above the tab bar.
   Scoped with `cd-` classes; the shared site navbar/footer are untouched.
   ========================================================= */
.cd-page {
    --cd-primary: #4F46E5; --cd-primary-dark: #4338CA; --cd-soft: #EEF2FF;
    --cd-ink: #14132B; --cd-text: #46455E; --cd-muted: #5B5A73; --cd-border: #ECECF3;
    --cd-bg: #F7F7FB; --cd-dark: #1E1B4B; --cd-gold-bg: #FEF3C7; --cd-gold-fg: #92400E; --cd-free: #166534;
    --cd-nav: 73px;
    /* tokens used by the shared course card (home.css) in "You might also like" */
    --hm-primary: #4F46E5; --hm-primary-dark: #4338CA; --hm-ink: #14132B; --hm-text: #46455E; --hm-muted: #5B5A73;
    --hm-border: #ECECF3; --hm-chip: #EEEEF6; --hm-gold-bg: #FEF3C7; --hm-gold-fg: #92400E; --hm-free-fg: #166534;
    --hm-radius: 16px; --hm-radius-lg: 20px; --hm-shadow-lg: 0 24px 60px rgba(20, 19, 43, .10); --hm-font-bn: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--cd-ink);
    background: var(--cd-bg);
    -webkit-font-smoothing: antialiased;
}
html[lang="bn"] .cd-page { font-family: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif; }
.page-course { background: #F7F7FB; }
.page-course .ft { margin-top: 0; }
.cd-page a { text-decoration: none; }
.cd-page .bn { font-family: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif; }
.cd-container { width: 100%; max-width: 1680px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.cd-muted { color: var(--cd-muted); }
.cd-link { color: var(--cd-primary-dark); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.cd-link:hover { color: #312E81; }

/* ---------- Badges / chips ---------- */
.cd-badge-premium { background: var(--cd-ink); color: #FDE68A; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.cd-badge-free { background: #fff; color: var(--cd-free); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.cd-badge-white { background: #fff; color: #2E2A8C; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.cd-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cd-chip-glass { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #E0E7FF; }
.cd-chip-premium { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #FDE68A; color: #422006; }
.cd-chip-free { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #BBF7D0; color: #14532D; }
.cd-chip-cert { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--cd-gold-bg); color: var(--cd-gold-fg); }
.cd-chip-outline { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: #E0E7FF; }

/* ---------- Hero (desktop) ---------- */
.cd-hero { background: var(--cd-dark); color: #fff; }
.cd-hero-inner { min-height: 400px; padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.cd-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.cd-breadcrumb a { color: #C7D2FE; }
.cd-breadcrumb a:hover { color: #fff; }
.cd-breadcrumb a.current { color: #fff; font-weight: 600; }
.cd-breadcrumb span { color: #8B8FC7; }
.cd-hero h1 { margin: 0; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.cd-hero-sub { margin: 0; font-size: 20px; line-height: 1.55; color: #DCDDF5; max-width: 680px; }
.cd-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: #DCDDF5; }
.cd-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.cd-hero-meta i { color: #A5B4FC; font-size: 16px; }

/* ---------- Body grid ---------- */
.cd-body { padding-bottom: 64px; }
.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.cd-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding-top: 24px; }
.cd-section { scroll-margin-top: calc(var(--cd-nav) + 84px); }
.cd-anchor { display: block; height: 0; }

/* section tabs */
.cd-tabs { position: sticky; top: calc(var(--cd-nav) + 12px); z-index: 5; background: #fff; border: 1px solid var(--cd-border); border-radius: 16px; padding: 6px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; box-shadow: 0 4px 16px rgba(20, 19, 43, .04); }
.cd-tabs::-webkit-scrollbar { display: none; }
.cd-tab { flex: none; padding: 10px 16px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--cd-muted); white-space: nowrap; }
.cd-tab:hover { color: var(--cd-ink); }
.cd-tab.active { background: #F1F0FF; color: #2E2A8C; font-weight: 700; }

/* highlights */
.cd-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cd-hl { background: #fff; border: 1px solid var(--cd-border); border-radius: 18px; padding: 16px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.cd-hl .ab { width: 44px; height: 44px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.cd-hl b { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-hl small { display: block; font-size: 12px; color: var(--cd-muted); }

/* cards */
.cd-card { background: #fff; border: 1px solid var(--cd-border); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.cd-card h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--cd-ink); }
.cd-card-head { display: flex; flex-direction: column; gap: 4px; }
.cd-card-head > span { font-size: 14px; color: var(--cd-muted); }
.cd-card-head span.bn { font-size: 14px; }
.cd-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cd-row > div { display: flex; flex-direction: column; gap: 4px; }
.cd-row > div > span { font-size: 14px; color: var(--cd-muted); }
.cd-btn-outline-sm { border: 1px solid #D9D8EA; background: #fff; border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 700; color: var(--cd-ink); }
.cd-btn-outline-sm:hover { border-color: var(--cd-primary); color: var(--cd-primary); }
.cd-btn-primary-sm { align-self: flex-start; border: 0; background: var(--cd-primary); color: #fff; border-radius: 12px; padding: 10px 18px; font-size: 14px; font-weight: 700; }
.cd-btn-primary-sm:hover { background: var(--cd-primary-dark); }
.cd-more-btn { display: none; border: 0; background: transparent; padding: 0; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--cd-primary-dark); align-self: flex-start; }

/* what you'll learn */
.cd-learn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cd-learn-item { display: flex; gap: 12px; align-items: flex-start; background: #F9F9FC; border-radius: 16px; padding: 14px; }
.cd-learn-item .tick { flex: none; width: 28px; height: 28px; border-radius: 999px; background: #DCFCE7; color: #15803D; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.cd-learn-item > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cd-learn-item b { font-size: 14px; font-weight: 700; }
.cd-learn-item span { font-size: 14px; line-height: 1.6; color: var(--cd-text); }
.cd-learn-item span.plain { color: var(--cd-ink); font-weight: 500; padding-top: 3px; }

/* mobile includes (hidden on desktop) */
.cd-m-includes { display: none; }

/* curriculum */
.cd-modules { display: flex; flex-direction: column; gap: 10px; }
.cd-module { border: 1px solid var(--cd-border); border-radius: 16px; background: #fff; }
.cd-module.open { border-color: #C7D2FE; background: #FBFBFF; }
.cd-module-head { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; color: var(--cd-ink); min-height: 64px; }
.cd-module-head .num { flex: none; width: 36px; height: 36px; border-radius: 11px; background: #F1F0FF; color: #2E2A8C; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.cd-module.open .cd-module-head .num { background: var(--cd-primary); color: #fff; }
.cd-module-head .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-module-head .t { font-size: 16px; font-weight: 700; }
.cd-module-head .c { font-size: 13px; color: var(--cd-muted); }
.cd-module-head .chev { flex: none; font-size: 18px; color: var(--cd-text); transition: transform .2s; }
.cd-module.open .chev { transform: rotate(180deg); }
.cd-lessons { display: none; flex-direction: column; padding: 0 10px 10px; }
.cd-module.open .cd-lessons { display: flex; }
.cd-lesson { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-top: 1px solid #F1F1F6; color: var(--cd-ink); min-height: 48px; }
a.cd-lesson:hover { background: #F7F7FF; border-radius: 10px; color: var(--cd-ink); }
.cd-lesson .ic { flex: none; width: 30px; height: 30px; border-radius: 999px; background: #F1F1F6; color: #6B6A82; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.cd-lesson .ic.play { background: var(--cd-primary); color: #fff; }
.cd-lesson .ic.open { background: var(--cd-soft); color: var(--cd-primary); }
.cd-lesson .t { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; }
.cd-lesson .n { flex: none; font-size: 13px; color: #6B6A82; }
.cd-free-tag { flex: none; font-size: 12px; font-weight: 700; color: var(--cd-free); background: #DCFCE7; padding: 5px 10px; border-radius: 999px; }

/* about */
.cd-desc { font-size: 16px; line-height: 1.75; color: #3B3A55; max-width: 820px; }
.cd-desc p { margin: 0 0 14px; }
.cd-desc p:last-child { margin-bottom: 0; }
.cd-desc ul { margin: 0 0 14px; padding-left: 20px; }
.cd-note { background: var(--cd-soft); border-radius: 16px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.cd-note i { color: var(--cd-primary-dark); font-size: 20px; margin-top: 1px; }
.cd-note p { margin: 0; font-size: 16px; line-height: 1.65; color: #312E81; font-weight: 600; }
.cd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cd-two h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.cd-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cd-tags span { font-size: 13px; color: #3B3A55; background: #F1F1F6; padding: 7px 12px; border-radius: 999px; }
.cd-req { margin: 0; padding-left: 18px; font-size: 15px; color: var(--cd-text); line-height: 1.7; }

/* certificate */
.cd-cert { flex-direction: row; align-items: center; gap: 28px; flex-wrap: wrap; }
.cd-cert-paper { flex: 0 1 320px; min-width: 240px; aspect-ratio: 1.414; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.cd-cert-paper .top { display: flex; justify-content: space-between; align-items: center; }
.cd-cert-paper .brand { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; }
.cd-cert-paper .mk { width: 26px; height: 26px; border-radius: 8px; background: var(--cd-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; font-family: 'Hind Siliguri', sans-serif; }
.cd-cert-paper .top i { color: #B45309; font-size: 24px; }
.cd-cert-paper .mid { display: flex; flex-direction: column; gap: 4px; }
.cd-cert-paper .k { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--cd-gold-fg); }
.cd-cert-paper .name { font-size: 18px; font-weight: 800; }
.cd-cert-paper .course { font-size: 12px; color: var(--cd-muted); }
.cd-cert-paper .bot { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #6B6A82; }
.cd-cert-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cd-cert-text p { margin: 0; font-size: 15px; color: var(--cd-text); line-height: 1.65; }

/* reviews */
.cd-rating-big { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; }
.cd-rating-big i { color: #F59E0B; }
.cd-rating-big small { font-weight: 500; font-size: 13px; color: var(--cd-muted); }
.cd-review-form { display: flex; flex-direction: column; gap: 10px; background: #F9F9FC; border: 1px solid var(--cd-border); border-radius: 16px; padding: 16px; }
.cd-review-form .form-select { max-width: 200px; border-radius: 10px; }
.cd-review-form .form-control { border-radius: 10px; }
.cd-review { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid #F1F1F6; }
.cd-review:first-of-type { border-top: 0; }
.cd-review .av { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #E9E7FF; color: #2E2A8C; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.cd-review .who { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cd-review .stars { color: #F59E0B; font-size: 12px; display: inline-flex; gap: 2px; }
.cd-review p { margin: 4px 0 0; font-size: 14px; color: var(--cd-text); line-height: 1.6; }
.cd-empty { border: 1.5px dashed #D9D8EA; border-radius: 18px; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cd-empty .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--cd-gold-bg); color: #B45309; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.cd-empty b { font-size: 17px; }
.cd-empty span:last-child { font-size: 15px; color: var(--cd-muted); max-width: 400px; line-height: 1.6; }

/* faq */
.cd-faq { display: flex; flex-direction: column; gap: 10px; }
.cd-faq-item { border: 1px solid var(--cd-border); border-radius: 16px; background: #fff; }
.cd-faq-item.open { background: #F7F7FF; }
.cd-faq-item button { width: 100%; border: 0; background: transparent; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-size: 15px; font-weight: 700; color: var(--cd-ink); text-align: left; }
.cd-faq-item .sign { font-size: 20px; color: var(--cd-primary-dark); flex: none; }
.cd-faq-item .a { display: none; padding: 0 18px 16px; font-size: 15px; color: var(--cd-text); line-height: 1.6; }
.cd-faq-item.open .a { display: block; }

/* ---------- Enroll card (desktop aside) ---------- */
.cd-aside { display: none; }
.cd-enroll { background: #fff; border: 1px solid var(--cd-border); border-radius: 24px; box-shadow: 0 24px 60px rgba(20, 19, 43, .14); padding: 14px; display: flex; flex-direction: column; gap: 18px; }
.cd-enroll-cover { position: relative; height: 210px; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cd-enroll-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-enroll-cover > :not(img) { position: relative; }
.cd-enroll-cover .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cd-enroll-cover .row2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cd-enroll-cover .title { flex: 1 1 auto; min-width: 0; font-size: 20.8px; font-weight: 800; line-height: 1.15; } /* 20% smaller than 26px */
.cd-enroll-cover .cd-preview-pill.sm { position: static !important; flex: none; margin-left: auto; }
.cd-preview-pill { position: absolute !important; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--cd-ink); font-size: 13px; font-weight: 700; padding: 6px 14px 6px 6px; border-radius: 999px; box-shadow: 0 6px 16px rgba(46, 42, 140, .18); min-height: 40px; }
.cd-preview-pill:hover { color: var(--cd-primary); }
.cd-preview-pill .ic { width: 30px; height: 30px; border-radius: 999px; background: var(--cd-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.cd-enroll-body { padding: 0 8px 6px; display: flex; flex-direction: column; gap: 16px; }
.cd-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cd-price .now { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.cd-price .now.free { color: var(--cd-free); }
.cd-price .old { font-size: 17px; color: #6B6A82; text-decoration: line-through; }
.cd-price .off { font-size: 12px; font-weight: 800; color: var(--cd-free); background: #DCFCE7; padding: 5px 10px; border-radius: 999px; }
.cd-cta-form { margin: 0; }
.cd-btn-enroll { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--cd-primary); color: #fff !important; font-size: 16px; font-weight: 800; box-shadow: 0 10px 24px rgba(79, 70, 229, .28); }
.cd-btn-enroll:hover { background: var(--cd-primary-dark); }
.cd-btn-enroll:disabled { background: #A5A1F0; box-shadow: none; cursor: not-allowed; }
.cd-enroll-row { display: flex; gap: 8px; }
.cd-wish-form { flex: 1; margin: 0; display: flex; }
.cd-wish-btn { flex: 1; height: 48px; border-radius: 14px; border: 1px solid #D9D8EA; background: #fff; color: var(--cd-ink); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.cd-wish-btn:hover { border-color: var(--cd-primary); color: var(--cd-primary); }
.cd-wish-btn.saved { background: #FFF1F2; color: #BE123C; border-color: #FECDD3; }
.cd-wish-btn.saved i { color: #E11D48; }
.cd-share-btn { width: 48px; height: 48px; flex: none; border-radius: 14px; border: 1px solid #D9D8EA; background: #fff; color: var(--cd-ink); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.cd-share-btn:hover { border-color: var(--cd-primary); color: var(--cd-primary); }
.cd-includes { border-top: 1px solid #F1F1F6; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.cd-includes b { font-size: 14px; font-weight: 800; }
.cd-includes div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #3B3A55; }
.cd-includes .ic { width: 32px; height: 32px; border-radius: 10px; background: #F1F0FF; color: var(--cd-primary-dark); flex: none; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.cd-pay { background: #F9F9FC; border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--cd-muted); flex-wrap: wrap; }
.cd-pay .coupon { font-weight: 700; color: var(--cd-primary-dark); white-space: nowrap; }
.cd-enrolled-box { background: #F0FDF4; border-radius: 14px; padding: 14px; font-size: 14px; color: var(--cd-free); display: flex; flex-direction: column; gap: 8px; }
.cd-enrolled-box .bar { height: 8px; border-radius: 99px; background: #DCFCE7; }
.cd-enrolled-box .bar span { display: block; height: 8px; border-radius: 99px; background: #16A34A; }

/* ---------- Related ---------- */
.cd-related { background: #fff; border-top: 1px solid var(--cd-border); padding: 56px 0; }
.cd-related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.cd-related-head h2 { margin: 0; font-size: 26px; font-weight: 800; }
.cd-related .hm-course-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cd-related .hm-course-grid > .hm-course-card:nth-child(n) { display: flex; }

/* ---------- Mobile-only bits hidden on desktop ---------- */
.cd-m-cover, .cd-m-head, .cd-m-enroll, .cd-m-only, .cd-cert-m-ic { display: none; }
.cd-toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); background: var(--cd-ink, #14132B); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1060; }
.cd-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   DESKTOP (>= 992px)
   ========================================================= */
@media (min-width: 992px) {
    .cd-hero-inner { padding-right: calc(1.5rem + 400px + 40px); }
    .cd-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
    .cd-aside { display: block; align-self: start; position: sticky; top: calc(var(--cd-nav) + 20px); z-index: 6; margin-top: -372px; }
}
/* Short laptop screens: keep the whole sticky enroll card visible (it must fit below the navbar) */
@media (min-width: 992px) and (max-height: 880px) {
    .cd-enroll { gap: 12px; }
    .cd-enroll-cover { height: 150px; }
    .cd-enroll-cover .title { font-size: 17.6px; }
    .cd-enroll-body { gap: 12px; }
    .cd-price .now { font-size: 28px; }
    .cd-btn-enroll { height: 48px; }
    .cd-wish-btn, .cd-share-btn { height: 42px; }
    .cd-share-btn { width: 42px; }
    .cd-includes { gap: 8px; padding-top: 12px; }
    .cd-includes .ic { width: 26px; height: 26px; font-size: 14px; }
}
@media (min-width: 992px) and (max-height: 720px) {
    .cd-includes div:nth-child(n+5) { display: none; } /* show the first 3 items only */
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .cd-hero-inner { padding-right: calc(1.5rem + 360px + 28px); }
    .cd-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
    .cd-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cd-learn { grid-template-columns: minmax(0, 1fr); }
    .cd-related .hm-course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cd-related .hm-course-grid > .hm-course-card:nth-child(n+4) { display: none; }
}

/* =========================================================
   MOBILE / TABLET (< 992px) — app style
   ========================================================= */
@media (max-width: 991.98px) {
    .cd-page { --cd-nav: 68px; }
    .cd-hero, .cd-highlights, .cd-desk-tab { display: none !important; }
    .cd-m-only { display: inline-flex; }
    .cd-container { padding-left: 20px; padding-right: 20px; }
    body.page-course { padding-bottom: calc(72px + 84px + 16px + env(safe-area-inset-bottom)); } /* tab bar + enroll bar */

    /* action row (replaces the mobile cover image) */
    .cd-m-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
    .cd-m-actions form { margin: 0; }
    .cd-m-type { justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 14px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
    .cd-m-type i { font-size: 14px; }
    .cd-m-type.is-free { background: #16A34A; color: #fff; }
    .cd-m-type.is-premium { background: var(--cd-ink); color: #FDE68A; }
    .cd-m-actions-mid { justify-self: center; }
    .cd-m-preview { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; background: #fff; border: 1px solid #E4E4EE; color: var(--cd-ink); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 8px rgba(46, 42, 140, .08); }
    .cd-m-preview:hover { color: var(--cd-primary); }
    .cd-m-preview .ic { width: 30px; height: 30px; border-radius: 999px; background: var(--cd-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
    .cd-m-actions-r { justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
    .cd-m-iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #E4E4EE; background: #fff; color: var(--cd-ink); display: flex; align-items: center; justify-content: center; font-size: 17px; }
    .cd-m-iconbtn.saved { color: #E11D48; }
    .cd-badge-premium, .cd-badge-free { font-size: 11px; padding: 4px 9px; }

    /* sheet */
    .cd-body { position: relative; background: var(--cd-bg); padding-bottom: 24px; }
    .cd-main { gap: 18px; padding-top: 20px; }
    .cd-m-head { display: flex; flex-direction: column; gap: 10px; }
    .cd-m-cat { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--cd-primary-dark); background: var(--cd-soft); padding: 5px 10px; border-radius: 999px; }
    .cd-m-head h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; }
    .cd-m-head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--cd-text); }
    .cd-m-rating { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
    .cd-m-rating i { color: #F59E0B; }
    .cd-m-rating span { color: var(--cd-muted); font-weight: 500; }
    .cd-m-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
    .cd-m-stats > div { background: #fff; border: 1px solid var(--cd-border); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
    .cd-m-stats i { font-size: 20px; }
    .cd-m-stats span { font-family: 'Hind Siliguri', sans-serif; font-size: 14px; font-weight: 700; }

    /* segmented tabs */
    .cd-tabs { top: var(--cd-nav); border-radius: 0; border: 0; box-shadow: none; background: var(--cd-bg); padding: 6px 0 8px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
    .cd-tabs::before { content: ""; position: absolute; inset: 6px 20px 8px; background: #EDEDF4; border-radius: 14px; z-index: -1; }
    .cd-tabs { isolation: isolate; gap: 4px; }
    .cd-tab { flex: 1; text-align: center; height: 44px; display: flex; align-items: center; justify-content: center; margin: 4px 0; border-radius: 11px; font-family: 'Hind Siliguri', sans-serif; font-size: 14px; }
    .cd-tab:first-child { margin-left: 4px; }
    .cd-tab:last-child { margin-right: 4px; }
    .cd-tab.active { background: #fff; color: var(--cd-ink); box-shadow: 0 1px 3px rgba(20, 19, 43, .1); }

    /* panels */
    .cd-page[data-tab="overview"] [data-panel]:not([data-panel="overview"]),
    .cd-page[data-tab="curr"] [data-panel]:not([data-panel="curr"]),
    .cd-page[data-tab="rev"] [data-panel]:not([data-panel="rev"]) { display: none !important; }

    .cd-card { padding: 16px; border-radius: 20px; gap: 12px; }
    .cd-card h2, .cd-m-includes h2 { font-size: 17px; font-family: 'Hind Siliguri', sans-serif; }
    .cd-card-head span.bn, .cd-row > div > span { font-size: 13px; }

    /* learn list: compact list, first 4 visible */
    .cd-learn { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .cd-learn-item { background: transparent; border-radius: 0; padding: 12px 0; border-bottom: 1px solid #F1F1F6; }
    .cd-learn-item .tick { width: 26px; height: 26px; font-size: 14px; }
    .cd-learn.is-collapsible:not(.is-open) .cd-learn-item:nth-child(n+5) { display: none; }
    .cd-learn ~ .cd-more-btn { display: block; align-self: center; }

    /* includes grid */
    .cd-m-includes { display: flex; flex-direction: column; gap: 12px; }
    .cd-m-includes h2 { margin: 0; font-weight: 700; }
    .cd-m-includes .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .cd-m-includes .cell { background: #fff; border: 1px solid var(--cd-border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
    .cd-m-includes .ic { width: 36px; height: 36px; border-radius: 11px; background: #F1F0FF; color: #2E2A8C; display: flex; align-items: center; justify-content: center; font-size: 17px; }
    .cd-m-includes .cell span:last-child { font-size: 14px; font-weight: 600; line-height: 1.35; }

    /* description: clamp with read-more */
    .cd-desc { font-size: 15px; line-height: 1.7; max-height: 9.5em; overflow: hidden; position: relative; }
    .cd-desc.is-open { max-height: none; }
    .cd-desc:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, #fff); }
    .cd-desc ~ .cd-more-btn[hidden] { display: none; }
    .cd-note p { font-size: 14px; }
    .cd-two { grid-template-columns: minmax(0, 1fr); gap: 14px; }

    /* certificate → dark compact card */
    .cd-cert { background: var(--cd-dark); border-color: var(--cd-dark); color: #fff; flex-wrap: nowrap; gap: 14px; padding: 18px; }
    .cd-cert-paper { display: none; }
    .cd-cert-m-ic { display: flex; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--cd-gold-bg); color: #B45309; align-items: center; justify-content: center; font-size: 26px; }
    .cd-cert-text { gap: 4px; }
    .cd-cert-text h2 { color: #fff; font-size: 16px !important; }
    .cd-cert-text p { color: #DCDDF5; font-size: 13px; line-height: 1.5; }
    .cd-cert-text .cd-link { color: #C7D2FE; font-size: 13px; }

    .cd-module-head { padding: 14px; gap: 12px; }
    .cd-module-head .t { font-size: 15px; }
    .cd-lessons { padding: 0 8px 8px; }
    .cd-lesson { padding: 12px 6px; }
    .cd-lesson .t { font-size: 14px; }

    /* related → horizontal app row */
    .cd-related { background: transparent; border: 0; padding: 0 0 24px; }
    .cd-related-head h2 { font-size: 17px; font-family: 'Hind Siliguri', sans-serif; font-weight: 700; }
    .cd-related-head { margin-bottom: 12px; align-items: center; }
    .cd-related .hm-course-grid { display: flex; overflow-x: auto; gap: 12px; margin: 0 -20px; padding: 2px 20px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .cd-related .hm-course-grid::-webkit-scrollbar { display: none; }
    .cd-related .hm-course-grid > .hm-course-card { flex: none; width: 230px; scroll-snap-align: start; }

    /* sticky enroll bar — sits above the site's bottom tab bar */
    .cd-m-enroll { display: flex; position: fixed; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 1029; background: #fff; border-top: 1px solid var(--cd-border); padding: 12px 16px; align-items: center; gap: 14px; box-shadow: 0 -8px 24px rgba(20, 19, 43, .06); }
    .cd-m-enroll .price { display: flex; flex-direction: column; gap: 2px; flex: none; }
    .cd-m-enroll .price > div { display: flex; align-items: baseline; gap: 6px; }
    .cd-m-enroll .now { font-size: 24px; font-weight: 800; line-height: 1.1; }
    .cd-m-enroll .now.free { color: var(--cd-free); font-size: 22px; }
    .cd-m-enroll s { font-size: 14px; color: #6B6A82; }
    .cd-m-enroll small { font-size: 12px; font-weight: 700; color: var(--cd-free); }
    /* button = 85% of the space beside the price (15% narrower), right-aligned */
    .cd-m-cta { flex: 1; display: flex; justify-content: flex-end; min-width: 0; }
    .cd-m-cta > * { width: 85%; }
    .cd-m-cta .cd-cta-form .cd-btn-enroll { width: 100%; }
    .cd-m-enroll .cd-btn-enroll { height: 54px; border-radius: 16px; font-weight: 800; font-size: 14.4px; } /* 10% smaller than 16px */
    .cd-toast { bottom: calc(72px + 84px + 12px); }
}

/* =========================================================
   ENROLLED VIEW (courses/partials/enrolled.blade.php) — ce-*
   ========================================================= */
.ce-m-top, .ce-m-progress-wrap, .ce-m-continue { display: none; }
.ce-chip-enrolled { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #DCFCE7; color: #14532D; }
.ce-chip-enrolled i { color: #15803D; font-size: 14px; }

/* hero progress block */
.ce-hero-progress { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.ce-hero-progress .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ce-hero-progress .top b { font-size: 15px; }
.ce-hero-progress .top span { font-size: 22px; font-weight: 800; color: #A5B4FC; }
.ce-hero-progress .bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.ce-hero-progress .bar span { display: block; height: 10px; border-radius: 99px; background: #A5B4FC; }
.ce-hero-progress .bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #DCDDF5; }
.ce-hero-progress .bottom strong { color: #fff; }
.ce-btn-white { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--cd-dark) !important; font-weight: 800; font-size: 15px; padding: 12px 18px; border-radius: 12px; }
.ce-btn-white:hover { background: #E0E7FF; }

/* modules + lessons */
.ce-module .num i { font-size: 18px; }
.ce-module.is-complete .cd-module-head .num { background: #16A34A; color: #fff; }
.ce-mbar { display: flex; align-items: center; gap: 10px; }
.ce-mbar .track { flex: 0 1 160px; height: 6px; border-radius: 99px; background: #EEEEF6; }
.ce-mbar .track span { display: block; height: 6px; border-radius: 99px; background: var(--cd-primary); }
.ce-module.is-complete .ce-mbar .track span { background: #16A34A; }
.ce-mbar .c { font-size: 13px; color: var(--cd-muted); }
.ce-lesson .ic { background: #EEF2FF; color: var(--cd-primary-dark); }
.ce-lesson.is-done .ic { background: #16A34A; color: #fff; }
.ce-lesson.is-done .t { color: var(--cd-muted); }
.ce-lesson.is-current { background: #EEF2FF; border-radius: 12px; border-top-color: transparent; margin-top: 2px; }
.ce-lesson.is-current + .ce-lesson { border-top-color: transparent; }
.ce-lesson.is-current .ic { background: var(--cd-primary); color: #fff; }
.ce-continue-tag { flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--cd-primary); padding: 5px 12px; border-radius: 999px; }
.ce-done-tag { flex: none; font-size: 12px; font-weight: 700; color: var(--cd-free); }

/* skills */
.ce-skills { display: flex; gap: 8px; flex-wrap: wrap; }
.ce-skills span { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: #F1F1F6; color: var(--cd-text); }
.ce-skills span.done { background: #DCFCE7; color: #14532D; font-weight: 700; }

/* certificate */
.ce-cert { flex-direction: row; align-items: center; gap: 28px; flex-wrap: wrap; }
.ce-cert-box { flex: 0 1 280px; min-width: 220px; aspect-ratio: 1.414; background: #F9F9FC; border: 1.5px dashed #D9D8EA; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ce-cert-box.earned { background: #FFFBEB; border: 1px solid #FDE68A; }
.ce-cert-box .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--cd-gold-bg); color: #B45309; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.ce-cert-box .lbl { font-size: 13px; font-weight: 700; color: var(--cd-muted); }
.ce-cert-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ce-cert-text p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--cd-text); }
.ce-cert-text strong { color: var(--cd-ink); }
.ce-cert-bar { height: 8px; border-radius: 99px; background: #EEEEF6; max-width: 360px; }
.ce-cert-bar span { display: block; height: 8px; border-radius: 99px; background: #F59E0B; }
.ce-cert-text small { font-size: 12px; color: var(--cd-muted); }

/* rate */
.ce-rate { display: flex; flex-direction: column; gap: 12px; }
.ce-stars { display: flex; gap: 6px; }
.ce-stars button { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--cd-border); background: #fff; color: #C9C8DA; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.ce-stars button:hover { color: #F59E0B; }
.ce-stars button.on { color: #F59E0B; background: #FFFBEB; border-color: #FDE68A; }
.ce-rate-err { color: #B91C1C; font-size: 13px; }
.ce-rate label { font-size: 14px; font-weight: 700; margin-top: 4px; }
.ce-rate textarea { border: 1px solid #D9D8EA; border-radius: 14px; padding: 14px; font-size: 15px; font-family: inherit; color: var(--cd-ink); resize: vertical; outline: none; }
.ce-rate textarea:focus { border-color: var(--cd-primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.ce-btn-submit { align-self: flex-start; border: 0; background: var(--cd-primary); color: #fff; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 12px; }
.ce-btn-submit:hover { background: var(--cd-primary-dark); }

/* aside progress card */
.ce-progress-card .cd-enroll-cover { height: 180px; }
.ce-resume { position: static; flex: none; margin-left: auto; width: 52px; height: 52px; border-radius: 999px; background: var(--cd-primary); color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 8px 20px rgba(79, 70, 229, .35); }
.ce-resume:hover { background: var(--cd-primary-dark); }
.ce-ring-row { display: flex; align-items: center; gap: 16px; }
.ce-ring-row .ring, .ce-m-progress .ring { flex: none; border-radius: 999px; position: relative; }
.ce-ring-row .ring { width: 76px; height: 76px; }
.ce-ring-row .ring span { position: absolute; inset: 8px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.ce-ring-row b { display: block; font-size: 16px; font-weight: 800; }
.ce-ring-row small { font-size: 13px; color: var(--cd-muted); }
.ce-upnext { background: #F9F9FC; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.ce-upnext small { font-size: 12px; font-weight: 700; color: var(--cd-muted); letter-spacing: .04em; }
.ce-upnext b { font-size: 15px; font-weight: 700; }
.ce-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ce-tiles div { border: 1px solid var(--cd-border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.ce-tiles b { font-size: 20px; font-weight: 800; }
.ce-tiles b.green { color: #15803D; }
.ce-tiles small { font-size: 12px; color: var(--cd-muted); }
.ce-links { border-top: 1px solid #F1F1F6; padding-top: 10px; display: flex; flex-direction: column; }
.ce-links a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--cd-ink); }
.ce-links a:hover { color: var(--cd-primary); }
.ce-links a > span:nth-child(2) { flex: 1; }
.ce-links .ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ce-links .bi-chevron-right { color: #6B6A82; font-size: 14px; }
.ce-enrolled-on { font-size: 12px; color: #6B6A82; text-align: center; }

@media (min-width: 992px) and (max-height: 880px) {
    .ce-progress-card .cd-enroll-cover { height: 130px; }
    .ce-ring-row .ring { width: 64px; height: 64px; }
    .ce-ring-row .ring span { font-size: 16px; }
    .ce-upnext { padding: 10px 12px; }
    .ce-tiles div { padding: 8px 12px; }
    .ce-tiles b { font-size: 17px; }
    .ce-links a { padding: 7px 0; }
}
@media (min-width: 992px) and (max-height: 760px) {
    .ce-tiles, .ce-enrolled-on { display: none; }
}

/* ---------- Enrolled view: mobile app style (< 992px) ---------- */
@media (max-width: 991.98px) {
    .ce-page .cd-body { margin-top: 0; border-radius: 0; }
    .ce-page .cd-main { padding-top: 6px; }
    body.page-course:has(.ce-page) { padding-bottom: calc(72px + 100px + 16px + env(safe-area-inset-bottom)); } /* tab bar + continue bar */

    .ce-m-top { display: flex; align-items: center; gap: 10px; padding: 16px 20px 10px; }
    .ce-m-btn { width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--cd-border); color: var(--cd-ink); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
    .ce-m-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
    .ce-m-title span { font-size: 12px; color: var(--cd-muted); }
    .ce-m-title b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ce-m-more { position: relative; }
    .ce-m-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px; background: #fff; border: 1px solid var(--cd-border); border-radius: 14px; box-shadow: 0 18px 40px rgba(20, 19, 43, .14); padding: 6px; display: flex; flex-direction: column; }
    .ce-m-menu[hidden] { display: none; }
    .ce-m-menu a, .ce-m-menu button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; background: transparent; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--cd-ink); text-align: left; }
    .ce-m-menu a:hover, .ce-m-menu button:hover { background: #F6F6FB; }
    .ce-m-menu i { color: var(--cd-muted); font-size: 16px; }

    .ce-m-progress-wrap { display: block; padding: 4px 20px 6px; }
    .ce-m-progress { background: var(--cd-dark); border-radius: 24px; padding: 18px; color: #fff; display: flex; flex-direction: column; gap: 16px; }
    .ce-m-progress .row1 { display: flex; align-items: center; gap: 14px; }
    .ce-m-progress .ring { width: 72px; height: 72px; }
    .ce-m-progress .ring span { position: absolute; inset: 7px; border-radius: 999px; background: var(--cd-dark); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; }
    .ce-m-progress .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
    .ce-m-progress .pill { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #DCFCE7; color: #14532D; }
    .ce-m-progress .txt b { font-size: 17px; font-weight: 700; }
    .ce-m-progress .txt small { font-size: 13px; color: #C7D2FE; }
    .ce-m-progress .next { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 10px 10px 10px 14px; color: #fff; }
    .ce-m-progress .next > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .ce-m-progress .next small { font-size: 12px; color: #C7D2FE; }
    .ce-m-progress .next b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ce-m-progress .play { width: 44px; height: 44px; border-radius: 999px; background: #fff; color: var(--cd-dark); flex: none; display: flex; align-items: center; justify-content: center; font-size: 20px; }

    .ce-page .cd-tab { font-size: 13px; }
    .ce-mbar .track { flex: 1; height: 5px; }
    .ce-mbar .track span { height: 5px; }
    .ce-mbar .c { font-size: 12px; }
    .ce-lesson.is-current { padding: 12px 8px; }
    .ce-skills span { font-size: 13px; padding: 8px 12px; }
    .ce-cert { flex-wrap: nowrap; gap: 14px; padding: 16px; }
    .ce-cert-box { flex: none; min-width: 0; width: 52px; aspect-ratio: auto; border: 0; background: transparent; }
    .ce-cert-box.earned { background: transparent; border: 0; }
    .ce-cert-box .lbl { display: none; }
    .ce-cert-text { gap: 6px; }
    .ce-cert-text h2 { font-size: 15px !important; }
    .ce-cert-bar { height: 6px; max-width: none; }
    .ce-cert-bar span { height: 6px; }
    .ce-stars { justify-content: space-between; }
    .ce-stars button { width: 56px; height: 56px; border-radius: 16px; font-size: 26px; }
    .ce-rate textarea { resize: none; }
    .ce-btn-submit { align-self: stretch; height: 50px; border-radius: 14px; }

    .ce-m-continue { display: flex; flex-direction: column; gap: 10px; position: fixed; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 1029; background: #fff; border-top: 1px solid var(--cd-border); padding: 12px 16px; box-shadow: 0 -8px 24px rgba(20, 19, 43, .06); }
    .ce-m-continue .bar { height: 4px; border-radius: 99px; background: #EEEEF6; }
    .ce-m-continue .bar span { display: block; height: 4px; border-radius: 99px; background: var(--cd-primary); }
    .ce-m-continue .cd-btn-enroll { height: 54px; border-radius: 16px; font-weight: 700; font-size: 16px; }
}
