/* ===== course-plan/categories ===== */
    .course-main-content {
        overflow-x: hidden;
    }

    .course-main-content #my-course-list a:not(:last-child) {
        margin-bottom: 10px;
    }

    /* Heading font + icon */
    .course-main-content .course-heading-text {
        color: var(--text-dark);
    }

    .course-main-content .course-heading-icon {
        line-height: 1;
        color: var(--text-dark);
    }

    /* My Course image */
    .course-main-content .course-my-course-image {
        width: 264px;
        height: 146px;
        flex: 0 0 264px;
        object-fit: cover;
    }

    .course-main-content .course-my-course-title {
        line-height: 1.2;
        color: var(--text-dark);
        white-space: nowrap;
    }

    /* Custom color badges */
    .course-main-content .course-free-btn {
        background: #2ca59f;
        padding: 4px 14px 6px;
        font-weight: 400;
        border-radius: 4px;
    }

    .course-main-content .course-live-btn {
        background: #e52262;
        padding: 4px 14px 6px;
        font-weight: 400;
        border-radius: 4px;
    }

    /* Course card image */
    .course-main-content .course-card-img {
        /*object-fit: cover;*/
        width: 100%;
        height: auto;
    }

    /* Course name */
    .course-main-content .course-name {
        line-height: 1.3;
        font-weight: 500;
        color: var(--text-dark);
    }

    .course-main-content .course-card-body {
        min-height: 62px;
    }

    .course-main-content .course-card {
        border-radius: 10px;
        background: var(--surface-1);
    }

    .course-main-content .course-loading {
        color: var(--text-light);
        min-height: 120px;
    }

    /* ---- Redesign: colored cards, tile headings, arrow buttons ---- */
    .course-main-content .cp-tone-0.cp-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
    .course-main-content .cp-tone-1.cp-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
    .course-main-content .cp-tone-2.cp-tone-2 { --tone: #059669; --tone-2: #34d399; }
    .course-main-content .cp-tone-3.cp-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
    .course-main-content .cp-tone-4.cp-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
    .course-main-content .cp-tone-5.cp-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }

    .course-main-content .course-heading {
        border-bottom: 0 !important;
        gap: 12px !important;
        padding-bottom: 0 !important;
    }
    .course-main-content .course-heading-icon {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border-radius: 12px;
        font-size: 24px;
        color: #fff;
        background: linear-gradient(135deg, #129ae8, #7c3aed);
        box-shadow: 0 6px 14px rgba(18, 154, 232, .3);
        font-variation-settings: 'FILL' 1;
    }
    .course-main-content .course-heading-text { font-weight: 700; }
    .course-main-content .course-heading::after { left: 0; right: auto; width: 64px; bottom: -8px; }

    .course-main-content .course-card,
    .course-main-content .course-my-course {
        --tone: #2563eb;
        --tone-2: #60a5fa;
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, .05) !important;
        background: var(--surface-1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1) !important;
    }
    .course-main-content .course-card::before {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 4px;
        z-index: 1;
        background: linear-gradient(90deg, var(--tone), var(--tone-2));
    }
    .course-main-content .course-my-course::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        z-index: 1;
        background: linear-gradient(180deg, var(--tone), var(--tone-2));
    }
    .course-main-content .course-card-body { padding-bottom: 14px !important; }
    .course-main-content .course-name { font-weight: 600; text-align: left; flex: 1 1 auto; min-width: 0; }
    .course-main-content .course-my-course-title { font-weight: 700; }
    .course-main-content .course-my-course { text-decoration: none; }

    .course-main-content .course-free-btn,
    .course-main-content .course-live-btn {
        border-radius: 999px;
        font-weight: 600;
        font-size: 12px;
        padding: 4px 12px 5px;
    }

    .course-main-content .cp-arrow {
        flex: 0 0 auto;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--tone) 12%, transparent);
        color: var(--tone);
        transition: background .18s, color .18s, transform .18s;
    }
    .course-main-content .cp-arrow .material-symbols-outlined { font-size: 18px; }
    .course-main-content .course-card:hover .cp-arrow,
    .course-main-content .course-my-course:hover .cp-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }

    /* ============================================================
       মোবাইল ভিউ
       ============================================================ */
    @media (max-width: 575.98px) {
        .course-main-content .course-heading-text {
            font-weight: 500;
        }

        .course-main-content .course-my-course-image {
            width: 42%;
            height: auto;
            flex: 0 0 42%;
            aspect-ratio: 1.75 / 1;
        }

        .course-main-content .course-my-course-title {
            white-space: normal;
        }

        .course-main-content .course-free-btn,
        .course-main-content .course-live-btn {
            padding: 3px 10px 5px;
            border-radius: 3px;
        }


        .course-main-content .course-card-img {
            aspect-ratio: 1.55 / 1;
        }

        .course-main-content .course-name {
            font-size: 14px;
        }

        .course-main-content .course-card-body {
            min-height: 52px;
        }
    }

    /* ============================================================
       Motion: headings draw in, cards rise one after another,
       images zoom with a light sweep on hover, live badges pulse.
       Switched off for visitors who prefer reduced motion.
       ============================================================ */
    @media (prefers-reduced-motion: no-preference) {

        /* section headings */
        .course-main-content .course-heading { position: relative; border-bottom-color: transparent !important; animation: cp-slide-left .55s cubic-bezier(.2, .8, .2, 1) backwards; }
        .course-main-content .course-heading::after {
            content: '';
            position: absolute;
            left: 0; right: 0; bottom: 0;
            height: 3px;
            border-radius: 3px;
            background: linear-gradient(90deg, #129ae8, #4bc5cf, #a24bcf);
            transform-origin: 0 50%;
            animation: cp-draw .9s cubic-bezier(.2, .8, .2, 1) .15s backwards;
        }
        .course-main-content .course-heading-icon { animation: cp-icon-pop .7s cubic-bezier(.34, 1.56, .64, 1) .25s backwards; }

        /* all course cards: staggered rise */
        /* card grid: a plain CSS grid (no Bootstrap row), so there is no gutter offset at the left and right */
        .course-main-content .course-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }
        @media (min-width: 576px) { .course-main-content .course-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
        @media (min-width: 768px) { .course-main-content .course-grid { gap: 1.5rem; } }
        .course-main-content .course-grid > .course-grid-full { grid-column: 1 / -1; }

        .course-main-content .course-grid > div > a { display: block; }
        .course-main-content .course-grid > div { animation: cp-rise .6s cubic-bezier(.2, .8, .2, 1) backwards; }
        .course-main-content .course-grid > div:nth-child(1) { animation-delay: 0.14s; }
        .course-main-content .course-grid > div:nth-child(2) { animation-delay: 0.20s; }
        .course-main-content .course-grid > div:nth-child(3) { animation-delay: 0.26s; }
        .course-main-content .course-grid > div:nth-child(4) { animation-delay: 0.32s; }
        .course-main-content .course-grid > div:nth-child(5) { animation-delay: 0.38s; }
        .course-main-content .course-grid > div:nth-child(6) { animation-delay: 0.44s; }
        .course-main-content .course-grid > div:nth-child(7) { animation-delay: 0.50s; }
        .course-main-content .course-grid > div:nth-child(8) { animation-delay: 0.56s; }
        .course-main-content .course-grid > div:nth-child(9) { animation-delay: 0.62s; }
        .course-main-content .course-grid > div:nth-child(10) { animation-delay: 0.68s; }
        .course-main-content .course-grid > div:nth-child(11) { animation-delay: 0.74s; }
        .course-main-content .course-grid > div:nth-child(12) { animation-delay: 0.80s; }
        .course-main-content .course-grid > div:nth-child(13) { animation-delay: 0.86s; }
        .course-main-content .course-grid > div:nth-child(14) { animation-delay: 0.92s; }
        .course-main-content .course-grid > div:nth-child(15) { animation-delay: 0.98s; }
        .course-main-content .course-grid > div:nth-child(16) { animation-delay: 1.04s; }
        .course-main-content .course-grid > div:nth-child(n+17) { animation-delay: 1.1s; }

        .course-main-content .course-card { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; position: relative; }
        .course-main-content .course-card-img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
        .course-main-content .course-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(18, 90, 160, .22) !important; }
        .course-main-content .course-card:hover .course-card-img { transform: scale(1.07); }
        .course-main-content .course-card:active { transform: translateY(-2px) scale(.98); }
        .course-main-content .course-card:hover .course-name { color: var(--hero-blue-btn); }
        .course-main-content .course-name { transition: color .2s ease; }

        /* light sweep over the thumbnail */
        .course-main-content .course-card::after {
            content: '';
            position: absolute;
            top: 0; bottom: 0; left: -70%;
            width: 40%;
            background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0));
            transform: skewX(-20deg);
            pointer-events: none;
        }
        .course-main-content .course-card:hover::after { animation: cp-sweep .8s ease; }

        /* my courses: slide in from the right */
        .course-main-content #my-course-list > a { animation: cp-slide-right .6s cubic-bezier(.2, .8, .2, 1) backwards; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
        .course-main-content #my-course-list > a:nth-child(1) { animation-delay: 0.20s; }
        .course-main-content #my-course-list > a:nth-child(2) { animation-delay: 0.30s; }
        .course-main-content #my-course-list > a:nth-child(3) { animation-delay: 0.40s; }
        .course-main-content #my-course-list > a:nth-child(4) { animation-delay: 0.50s; }
        .course-main-content #my-course-list > a:nth-child(5) { animation-delay: 0.60s; }
        .course-main-content #my-course-list > a:nth-child(6) { animation-delay: 0.70s; }
        .course-main-content #my-course-list > a:hover { transform: translateX(6px); box-shadow: 0 10px 24px rgba(18, 90, 160, .2); }
        .course-main-content .course-my-course-image { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
        .course-main-content #my-course-list > a:hover .course-my-course-image { transform: scale(1.06); }
        .course-main-content .course-live-btn { animation: cp-pulse 2s ease-in-out infinite; }

        @keyframes cp-slide-left  { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
        @keyframes cp-slide-right { from { opacity: 0; transform: translateX(34px); }  to { opacity: 1; transform: none; } }
        @keyframes cp-rise        { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
        @keyframes cp-draw        { from { transform: scaleX(0); } to { transform: scaleX(1); } }
        @keyframes cp-icon-pop    { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
        @keyframes cp-sweep       { to { left: 130%; } }
        @keyframes cp-pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(229, 34, 98, .55); }
            50%      { box-shadow: 0 0 0 7px rgba(229, 34, 98, 0); }
        }
    }

/* ===== course-plan/course-details ===== */
    /* ---------- Skeleton loading ---------- */
    .cp-skeleton {
        display: inline-block;
        background: linear-gradient(90deg, #e9ecef 25%, #f1f3f5 50%, #e9ecef 75%);
        background-size: 200% 100%;
        animation: cp-shimmer 1.4s ease-in-out infinite;
        border-radius: 4px;
        vertical-align: middle;
    }

    .cp-skeleton-title {
        width: 60%;
        height: 1.4rem;
    }

    .cp-skeleton-text {
        width: 80px;
        height: .9rem;
    }

    .cp-skeleton-line {
        display: block;
        width: 100%;
        height: .8rem;
        margin: 0 0 .45rem;
    }

    .cp-skeleton-short {
        width: 55%;
    }

    @keyframes cp-shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    html[data-theme="dark"] .cp-skeleton {
        background: linear-gradient(90deg, #2a2f36 25%, #353b43 50%, #2a2f36 75%);
        background-size: 200% 100%;
    }

    .cp-main {
        overflow-x: hidden;
    }

    .cp-info-card {
        background: var(--surface-1);
        color: var(--text-dark);
    }

    .cp-meta,
    .cp-desc {
        color: var(--text-dark);
        line-height: 1.5;
    }

    .cp-desc {
        color: var(--text-light);
    }

    .cp-desc p {
        margin: 0 0 .35rem;
    }

    .cp-more-btn {
        color: var(--text-dark);
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 4px 8px;
        margin: 0;
        line-height: 1;
    }

    .cp-more-icon {
        transition: transform .25s ease;
    }

    .cp-more-btn[aria-expanded="true"] .cp-more-icon {
        transform: rotate(180deg);
    }

    .cp-more-content img {
        max-width: 100%;
        height: auto;
    }

    .cp-more-content p {
        margin: 0 0 .5rem 0 !important;
        line-height: 1.5;
    }
    
    .cp-more-content p:last-child {
        margin-bottom: 0 !important;
    }

    .cp-section-title {
        font-weight: 600;
        color: var(--text-dark);
        margin: 0;
    }

    .cp-live-card {
        border-color: var(--hero-orange);
        background: var(--surface-1);
    }

    .cp-live-icon {
        color: #e52262;
        line-height: 1;
    }

    .cp-live-title {
        color: var(--text-dark);
    }

    .cp-live-subtitle {
        color: var(--text-light);
    }

    .cp-live-meta-item {
        color: var(--text-dark);
    }

    .cp-live-divider {
        width: 1px;
        height: 24px;
        background: var(--border-color);
    }

    .cp-start-btn {
        background: var(--hero-orange);
        color: #fff;
        padding: 10px 0;
        border-radius: 6px;
        border: none;
    }

    .cp-start-btn:hover {
        background: var(--hero-orange-hover);
        color: #fff;
    }

    .cp-routine-btn {
        color: #fff;
        padding: 10px 0;
        border-radius: 6px;
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .cp-routine-view {
        background: var(--hero-green);
    }

    .cp-routine-view:hover {
        background: var(--hero-green-hover);
        color: #fff;
    }

    .cp-routine-download {
        background: var(--hero-blue-btn);
    }

    .cp-routine-download:hover {
        background: var(--hero-blue-btn-hover);
        color: #fff;
    }

    .cp-btn-icon {
        line-height: 1;
    }

    .cp-tabs {
        overflow: hidden;
        background: var(--surface-1);
    }

    .cp-tab-btn {
        color: #5a9bd5;
        background: var(--surface-1);
        border: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        text-align: center !important;
    }

    .cp-tab-btn.active {
        color: #1b6ca8;
        background: var(--surface-3);
        border-bottom-color: #1b6ca8;
    }

    html[data-theme="dark"] .cp-tab-btn.active {
        color: #4db8ff;
        border-bottom-color: #4db8ff;
    }

    .cp-tab-btn:hover {
        background: var(--hover-bg);
    }

    .cp-revision-card {
        background: var(--color-success-soft);
        border: 1px solid var(--color-success-border) !important;
    }

    .cp-revision-icon {
        color: var(--hero-orange);
        line-height: 1;
    }

    .cp-revision-title {
        color: var(--text-dark);
    }

    .cp-revision-text {
        color: var(--text-dark);
        line-height: 1.5;
    }

    .cp-revision-footer {
        color: var(--text-dark);
        border-color: var(--color-success-border) !important;
    }

    .cp-exam-card {
        background: var(--surface-1);
    }

    .cp-exam-icon {
        color: var(--hero-orange);
        line-height: 1;
    }

    .cp-exam-icon.cp-icon-free {
        color: #16a34a;
    }

    .cp-exam-icon.cp-icon-paid {
        color: #dc2626;
    }

    .cp-exam-title {
        color: var(--text-dark);
    }

    .cp-exam-date {
        color: var(--text-light);
    }

    .cp-exam-meta {
        border-color: var(--border-color) !important;
    }

    .cp-exam-meta-item {
        color: var(--text-dark);
    }

    .cp-exam-divider {
        width: 1px;
        height: 20px;
        background: var(--border-color);
    }

    .cp-details-link {
        color: var(--hero-blue-btn);
        font-weight: 500;
        cursor: pointer;
    }

    .cp-start-link {
        color: var(--hero-orange);
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
    }
    .cp-start-link:hover {
        color: var(--hero-orange-hover);
    }

    .cp-empty-text {
        color: var(--text-light);
    }

    .cp-free-pill {
        display: inline-block;
        font-size: .72rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 999px;
        background: #dcfce7;
        color: #166534;
        margin-left: 6px;
        vertical-align: middle;
    }

    /* Modal Custom Table Style */
    .cp-modal-table {
        width: 100%;
        margin-bottom: 0;
    }
    .cp-modal-table td {
        padding: 14px 0;
        border-bottom: 1px solid #e9ecef;
        vertical-align: middle;
        color: #333;
        font-size: 0.95rem;
    }
    .cp-modal-table tr:last-child td {
        border-bottom: none;
    }
    .cp-modal-table td:first-child {
        width: 35%;
        color: #555;
    }
    .cp-modal-table td:last-child {
        text-align: right;
        font-weight: 500;
    }

    .cp-main {
        padding-bottom: 90px !important;
    }

    .cp-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        background: #fff;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }

    .cp-sheet-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .cp-sheet-sale {
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .cp-sheet-old {
        color: #6c757d;
        text-decoration: line-through;
        font-size: .9rem;
    }

    .cp-sheet-badge {
        background: #dc3545;
        color: #fff;
        font-size: .75rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 999px;
    }

    .cp-sheet-btn {
        flex-shrink: 0;
        padding-left: 24px;
        padding-right: 24px;
    }

    @media (min-width: 768px) {
        .cp-main {
            padding-bottom: 0 !important;
        }

        .cp-sheet {
            position: sticky;
            bottom: 0;
            border-radius: 16px;
            margin-top: 16px;
        }
    }

/* ===== course-plan/course-plan-list ===== */
    .free-exam-main {
        overflow-x: hidden;
    }

    /* ---- Tabs ---- */
    .free-exam-tabs {
        border-bottom: 1px solid var(--border-color);
        background: var(--surface-1);
    }

    .free-exam-tab-btn {
        color: #5a9bd5;
        background: var(--surface-1);
        border: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
    }

    .free-exam-tab-btn.active {
        color: #1b6ca8;
        background: var(--surface-3);
        border-bottom-color: #1b6ca8;
    }

    html[data-theme="dark"] .free-exam-tab-btn.active {
        color: #4db8ff;
        border-bottom-color: #4db8ff;
    }

    .free-exam-tab-btn:hover {
        background: var(--hover-bg);
    }

    /* ---- Exam Item ---- */
    .free-exam-item {
        min-height: 100px;
        background: var(--surface-1);
        border-color: var(--border-color) !important;
    }

    .free-exam-thumb {
        width: 130px;
        height: 78px;
        object-fit: cover;
        border-radius: 6px;
        flex: 0 0 130px;
    }

    .free-exam-title {
        line-height: 1.35;
        font-weight: 600;
        color: var(--text-dark);
    }

    /* ---- Custom color badges ---- */
    .free-exam-green-btn {
        background: #1e9c8c;
        padding: 4px 12px 5px;
        font-weight: 400;
        border-radius: 4px;
    }

    .free-exam-pink-btn {
        background: #e52262;
        padding: 4px 12px 5px;
        font-weight: 400;
        border-radius: 4px;
    }

    .free-exam-main .free-exam-tab-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .free-exam-main .text-muted {
        color: var(--text-light) !important;
    }

    /* ---- Loading / Error / Empty ---- */
    .free-exam-loading,
    .free-exam-empty,
    .free-exam-error {
        padding: 24px 12px;
        text-align: center;
        color: var(--text-light);
        width: 100%;
    }
    .free-exam-error {
        color: #dc3545;
    }

    /* ---- Redesign: segmented tabs, colored exam cards ---- */
    .free-exam-main .free-exam-tabs {
        margin: 12px 16px 14px !important;
        padding: 4px;
        gap: 4px;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        background: var(--surface-1);
        flex-wrap: nowrap;
    }
    .free-exam-main .free-exam-tab-btn {
        width: 100%;
        padding: 10px 8px !important;
        border: 0;
        border-radius: 11px;
        color: var(--text-light);
        background: transparent;
        font-weight: 600;
    }
    .free-exam-main .free-exam-tab-btn::after { display: none; }
    .free-exam-main .free-exam-tab-btn.active {
        color: #fff;
        background: linear-gradient(135deg, #129ae8, #7c3aed);
        box-shadow: 0 6px 14px rgba(18, 154, 232, .3);
    }
    html[data-theme="dark"] .free-exam-main .free-exam-tab-btn.active { color: #fff; }
    .free-exam-main .free-exam-tab-btn:not(.active):hover { background: var(--hover-bg); }

    .free-exam-main .fe-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
    .free-exam-main .fe-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
    .free-exam-main .fe-tone-2 { --tone: #059669; --tone-2: #34d399; }
    .free-exam-main .fe-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
    .free-exam-main .fe-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
    .free-exam-main .fe-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }

    .free-exam-main .free-exam-item {
        position: relative;
        overflow: hidden;
        min-height: 96px;
        padding: 10px 10px 10px 16px !important;
        border: 1px solid rgba(0, 0, 0, .05) !important;
        border-radius: 16px;
        background: var(--surface-1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    }
    .free-exam-main .free-exam-item::before {
        content: "";
        position: absolute;
        left: 0; top: 0; bottom: 0;
        width: 4px;
        transform: none;
        background: linear-gradient(180deg, var(--tone), var(--tone-2));
    }
    .free-exam-main .free-exam-thumb { border-radius: 12px; }
    .free-exam-main .free-exam-title { font-weight: 700; margin-bottom: 8px !important; }
    .free-exam-main .free-exam-green-btn,
    .free-exam-main .free-exam-pink-btn {
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        padding: 4px 12px 5px;
    }
    .free-exam-main .fe-arrow {
        flex: 0 0 auto;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--tone) 12%, transparent);
        color: var(--tone);
        transition: background .18s, color .18s, transform .18s;
    }
    .free-exam-main .fe-arrow .material-symbols-outlined { font-size: 18px; }
    .free-exam-main .free-exam-item:hover .fe-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }

    /* ============================================================
       মোবাইল ভিউ
       ============================================================ */
    @media (max-width: 575.98px) {
        .free-exam-thumb {
            width: 120px;
            height: 72px;
            flex: 0 0 120px;
        }

        .free-exam-green-btn,
        .free-exam-pink-btn {
            padding: 3px 10px 4px;
        }
    }

    /* ============================================================
       Motion: tabs slide in with a growing underline, exams rise one after another,
       a bar and zoom on hover, the status badge pulses.
       Switched off for visitors who prefer reduced motion.
       ============================================================ */
    @media (prefers-reduced-motion: no-preference) {

        .free-exam-tabs { animation: fe-drop .5s cubic-bezier(.2, .8, .2, 1) backwards; }
        .free-exam-tab-btn { position: relative; transition: color .25s ease, background-color .25s ease; }
        .free-exam-tab-btn::after {
            content: '';
            position: absolute;
            left: 12%; right: 12%; bottom: -3px;
            height: 3px;
            border-radius: 3px;
            background: linear-gradient(90deg, #129ae8, #4bc5cf, #a24bcf);
            transform: scaleX(0);
            transform-origin: 50% 50%;
            transition: transform .35s cubic-bezier(.2, .8, .2, 1);
        }
        .free-exam-tab-btn.active::after { transform: scaleX(1); }

        /* exam rows */
        #live-course-list > div,
        #archive-course-list > div { animation: fe-rise .55s cubic-bezier(.2, .8, .2, 1) backwards; }
        #live-course-list > div:nth-child(1),
        #archive-course-list > div:nth-child(1) { animation-delay: 0.12s; }
        #live-course-list > div:nth-child(2),
        #archive-course-list > div:nth-child(2) { animation-delay: 0.19s; }
        #live-course-list > div:nth-child(3),
        #archive-course-list > div:nth-child(3) { animation-delay: 0.26s; }
        #live-course-list > div:nth-child(4),
        #archive-course-list > div:nth-child(4) { animation-delay: 0.33s; }
        #live-course-list > div:nth-child(5),
        #archive-course-list > div:nth-child(5) { animation-delay: 0.40s; }
        #live-course-list > div:nth-child(6),
        #archive-course-list > div:nth-child(6) { animation-delay: 0.47s; }
        #live-course-list > div:nth-child(7),
        #archive-course-list > div:nth-child(7) { animation-delay: 0.54s; }
        #live-course-list > div:nth-child(8),
        #archive-course-list > div:nth-child(8) { animation-delay: 0.61s; }
        #live-course-list > div:nth-child(9),
        #archive-course-list > div:nth-child(9) { animation-delay: 0.68s; }
        #live-course-list > div:nth-child(10),
        #archive-course-list > div:nth-child(10) { animation-delay: 0.75s; }
        #live-course-list > div:nth-child(11),
        #archive-course-list > div:nth-child(11) { animation-delay: 0.82s; }
        #live-course-list > div:nth-child(12),
        #archive-course-list > div:nth-child(12) { animation-delay: 0.89s; }
        #live-course-list > div:nth-child(n+13),
        #archive-course-list > div:nth-child(n+13) { animation-delay: .9s; }

        .free-exam-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background-color .2s ease;
        }
        .free-exam-item::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 4px;
            background: linear-gradient(180deg, #129ae8, #a24bcf);
            transform: scaleY(0);
            transform-origin: 50% 100%;
            transition: transform .3s cubic-bezier(.2, .8, .2, 1);
        }
        .free-exam-item:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(18, 90, 160, .18); background: var(--hover-bg); }
        .free-exam-item:hover::before { transform: scaleY(1); }
        .free-exam-item:active { transform: scale(.98); }
        .free-exam-thumb { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease; }
        .free-exam-item:hover .free-exam-thumb { transform: scale(1.06) rotate(-1.5deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }

        .free-exam-pink-btn { animation: fe-pulse 2s ease-in-out infinite; }

        @keyframes fe-drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
        @keyframes fe-rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
        @keyframes fe-pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(229, 34, 98, .55); }
            50%      { box-shadow: 0 0 0 7px rgba(229, 34, 98, 0); }
        }
    }

/* ===== course-plan/live-exams ===== */
        .le-main { overflow-x: hidden; }
        .le-section { margin: 10px; }
        .le-section-title {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 15px 5px;
            font-size: 18px;
            color: var(--text-dark);
        }
        .le-section-title .material-symbols-outlined { font-size: 26px; }

        .le-item {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            margin-bottom: 12px;
            padding: 10px 12px;
            border: 1px solid var(--border-color, #e0e0e0);
            border-radius: 10px;
            background: var(--surface-1, #fff);
            text-align: left;
            cursor: pointer;
            color: var(--text-dark);
            transition: background .15s, border-color .15s;
        }
        .le-item:hover { background: var(--hover-bg); border-color: var(--hero-blue-btn, #129ae8); }
        .le-item img { width: 48px; height: 48px; flex: 0 0 48px; }
        .le-item-body { min-width: 0; }
        .le-cp { color: #129ae8; font-size: 14px; display: block; }
        .le-title { font-size: 16px; font-weight: 500; line-height: 1.5; display: block; }
        .le-table { --bs-table-bg: transparent; }

        /* ============================================================
           Motion: headings draw in, exams slide up one after another,
           a live dot pulses on every exam, the dialog springs open.
           Switched off for visitors who prefer reduced motion.
           ============================================================ */
        @media (prefers-reduced-motion: no-preference) {

            .le-section-title { position: relative; padding-bottom: 8px; animation: le-slide-left .55s cubic-bezier(.2, .8, .2, 1) backwards; }
            .le-section-title::after {
                content: '';
                position: absolute;
                left: 0; right: 0; bottom: 0;
                height: 3px;
                border-radius: 3px;
                background: linear-gradient(90deg, #129ae8, #4bc5cf, #a24bcf);
                transform-origin: 0 50%;
                animation: le-draw .9s cubic-bezier(.2, .8, .2, 1) .15s backwards;
            }
            .le-section-title .material-symbols-outlined { animation: le-icon-pop .7s cubic-bezier(.34, 1.56, .64, 1) .25s backwards; }

            /* exam rows */
            .le-item {
                position: relative;
                animation: le-rise .55s cubic-bezier(.2, .8, .2, 1) backwards;
                transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background .15s, border-color .15s;
            }
            .le-item:nth-child(1) { animation-delay: 0.12s; }
            .le-item:nth-child(2) { animation-delay: 0.19s; }
            .le-item:nth-child(3) { animation-delay: 0.26s; }
            .le-item:nth-child(4) { animation-delay: 0.33s; }
            .le-item:nth-child(5) { animation-delay: 0.40s; }
            .le-item:nth-child(6) { animation-delay: 0.47s; }
            .le-item:nth-child(7) { animation-delay: 0.54s; }
            .le-item:nth-child(8) { animation-delay: 0.61s; }
            .le-item:nth-child(9) { animation-delay: 0.68s; }
            .le-item:nth-child(10) { animation-delay: 0.75s; }
            .le-item:nth-child(11) { animation-delay: 0.82s; }
            .le-item:nth-child(12) { animation-delay: 0.89s; }
            .le-item:nth-child(n+13) { animation-delay: .9s; }
            .le-item:hover { transform: translateY(-3px) translateX(4px); box-shadow: 0 10px 22px rgba(18, 90, 160, .18) !important; }
            .le-item:active { transform: scale(.98); }
            .le-item img { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
            .le-item:hover img { transform: scale(1.18) rotate(-6deg); }

            /* "live" dot */
            .le-item::before {
                content: '';
                position: absolute;
                top: 10px; right: 12px;
                width: 9px; height: 9px;
                border-radius: 50%;
                background: #e52262;
                animation: le-live 1.8s ease-out infinite;
            }

            /* start dialog */
            #live_modal.fade .modal-dialog { transform: scale(.82) translateY(34px); opacity: 0; transition: transform .38s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease; }
            #live_modal.show .modal-dialog { transform: none; opacity: 1; }
            #start_exam_btn { position: relative; overflow: hidden; }
            #start_exam_btn::after {
                content: '';
                position: absolute;
                top: 0; bottom: 0; left: -60%;
                width: 40%;
                background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.5), rgba(255,255,255,0));
                transform: skewX(-20deg);
                animation: le-shine 3.2s ease-in-out infinite;
                pointer-events: none;
            }

            @keyframes le-slide-left { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
            @keyframes le-rise       { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
            @keyframes le-draw       { from { transform: scaleX(0); } to { transform: scaleX(1); } }
            @keyframes le-icon-pop   { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
            @keyframes le-shine      { 0%, 55% { left: -60%; } 100% { left: 130%; } }
            @keyframes le-live {
                0%   { box-shadow: 0 0 0 0 rgba(229, 34, 98, .6); }
                70%  { box-shadow: 0 0 0 9px rgba(229, 34, 98, 0); }
                100% { box-shadow: 0 0 0 0 rgba(229, 34, 98, 0); }
            }
        }

/* ===== course-plan/live-exams: redesign ===== */
        .le-main .le-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
        .le-main .le-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
        .le-main .le-tone-2 { --tone: #059669; --tone-2: #34d399; }
        .le-main .le-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
        .le-main .le-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
        .le-main .le-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }

        .le-main .le-section-title {
            gap: 12px;
            margin: 16px 2px 14px;
            padding-bottom: 10px;
            font-size: 18px;
            font-weight: 700;
        }
        .le-main .le-section-title::after { right: auto; width: 64px; }
        .le-main .le-section-title .material-symbols-outlined {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            font-size: 24px;
            color: #fff;
            background: linear-gradient(135deg, #129ae8, #7c3aed);
            box-shadow: 0 6px 14px rgba(18, 154, 232, .3);
            font-variation-settings: 'FILL' 1;
        }

        .le-main .le-item {
            position: relative;
            gap: 14px;
            overflow: hidden;
            padding: 14px 14px 14px 20px;
            border: 1px solid rgba(0, 0, 0, .05);
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
        }
        .le-main .le-item::after {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 4px;
            background: linear-gradient(180deg, var(--tone), var(--tone-2));
        }
        .le-main .le-item:hover { background: var(--surface-1, #fff); border-color: rgba(0, 0, 0, .05); }
        .le-main .le-item::before { top: 12px; right: 14px; }
        .le-icon {
            flex: 0 0 auto;
            width: 50px;
            height: 50px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--tone), var(--tone-2));
            box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 35%, transparent);
        }
        .le-icon .material-symbols-outlined { font-size: 28px; color: #fff; font-variation-settings: 'FILL' 1; }
        .le-main .le-item-body { flex: 1 1 auto; padding-right: 6px; }
        .le-main .le-cp { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; color: var(--tone); }
        .le-batch {
            padding: 1px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            color: #fff;
            background: var(--tone);
        }
        .le-main .le-title { margin-top: 2px; font-size: 16px; font-weight: 700; }
        .le-arrow {
            flex: 0 0 auto;
            align-self: flex-end;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: color-mix(in srgb, var(--tone) 12%, transparent);
            color: var(--tone);
            transition: background .18s, color .18s, transform .18s;
        }
        .le-arrow .material-symbols-outlined { font-size: 18px; }
        .le-main .le-item:hover .le-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }

/* ===== course-plan: shimmer placeholders (loading) ===== */
    .cp-shim {
        background: linear-gradient(90deg, #e9ecef 25%, #f4f6f8 50%, #e9ecef 75%);
        background-size: 200% 100%;
        animation: cp-shimmer 1.4s ease-in-out infinite;
        border-radius: 8px;
    }
    html[data-theme="dark"] .cp-shim {
        background: linear-gradient(90deg, #2a2f36 25%, #353b43 50%, #2a2f36 75%);
        background-size: 200% 100%;
    }
    @media (prefers-reduced-motion: reduce) { .cp-shim { animation: none; } }

    /* course card placeholder (all-courses grid) */
    .cp-skel-card { border-radius: 12px; overflow: hidden; background: var(--white, #fff); box-shadow: 0 4px 12px rgba(0, 0, 0, .10); }
    .cp-skel-card .cp-skel-img { aspect-ratio: 16 / 10; border-radius: 0; }
    .cp-skel-card .cp-skel-text { height: .9rem; margin: .8rem auto; width: 70%; }

    /* list row placeholder (course list, live exams) */
    .cp-skel-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--white, #fff); border-bottom: 1px solid var(--border-color, #eee); }
    .cp-skel-row .cp-skel-thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; }
    .cp-skel-row .cp-skel-lines { flex: 1 1 auto; min-width: 0; }
    .cp-skel-row .cp-skel-lines span { display: block; height: .85rem; margin-bottom: .55rem; }
    .cp-skel-row .cp-skel-lines span:first-child { width: 80%; }
    .cp-skel-row .cp-skel-lines span:last-child { width: 40%; margin-bottom: 0; }

    /* course banner
       The box owns the size (so the shimmer shows before the image exists) and the image is placed inside it.
       phone: 2.1:1, the image fills the box (cropped to the ratio).
       wide screen: 3:1, a blurred copy of the image fills the box and the image is shown over it
       uncropped at its own proportions, as tall as the box. */
    .cp-banner { position: relative; border-radius: 0; aspect-ratio: 2.1 / 1; }
    .cp-banner-bg { display: none; }
    .cp-banner-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1;
        transition: opacity .3s ease;
    }
    .cp-banner-loading .cp-banner-img { opacity: 0; }
    @media (min-width: 576px) {
        .cp-banner { aspect-ratio: 3 / 1; }
        .cp-banner-bg {
            display: block;
            position: absolute;
            inset: -24px;
            background-position: center;
            background-size: cover;
            filter: blur(24px);
        }
        .cp-banner-img {
            left: 50%;
            right: auto;
            width: auto;
            max-width: 100%;
            transform: translateX(-50%);
            object-fit: contain;
        }
    }

/* ===== course-plan/course-details: redesign ===== */
    .cp-main .cp-banner { border-radius: 0 0 24px 24px; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }

    /* info card */
    .cp-main .cp-info-card {
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, .05) !important;
        border-radius: 18px !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .1) !important;
    }
    .cp-main .cp-info-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: linear-gradient(180deg, #129ae8, #7c3aed);
    }
    .cp-main .cp-info-card .section-title { font-weight: 700; color: var(--text-dark); }
    .cp-main #cp-plan-price { font-weight: 700; color: #059669; }
    .cp-main .cp-more-btn {
        color: var(--hero-blue-btn);
        font-weight: 600;
        background: color-mix(in srgb, var(--hero-blue-btn) 10%, transparent);
        border-radius: 999px;
        padding: 6px 14px;
    }

    /* section titles */
    .cp-main .cp-section-title {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 10px;
        font-weight: 700;
    }
    .cp-main .cp-section-title::before {
        content: "";
        width: 5px;
        height: 22px;
        border-radius: 4px;
        background: linear-gradient(180deg, #129ae8, #7c3aed);
    }

    /* today's live exam */
    .cp-main .cp-live-card {
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(229, 34, 98, .25) !important;
        border-radius: 18px !important;
        box-shadow: 0 6px 18px rgba(229, 34, 98, .15);
    }
    .cp-main .cp-live-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: linear-gradient(180deg, #e52262, #fb923c);
    }
    .cp-main .cp-live-icon,
    .cp-main .cp-exam-icon,
    .cp-main .cp-revision-icon {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 13px;
        font-size: 26px;
        color: #fff;
        font-variation-settings: 'FILL' 1;
    }
    .cp-main .cp-live-icon { background: linear-gradient(135deg, #e52262, #fb923c); box-shadow: 0 6px 14px rgba(229, 34, 98, .3); }
    .cp-main .cp-exam-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 6px 14px rgba(37, 99, 235, .28); }
    .cp-main .cp-exam-icon.cp-icon-free { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 6px 14px rgba(5, 150, 105, .28); color: #fff; }
    .cp-main .cp-exam-icon.cp-icon-paid { background: linear-gradient(135deg, #dc2626, #f87171); box-shadow: 0 6px 14px rgba(220, 38, 38, .28); color: #fff; }
    .cp-main .cp-revision-icon { background: linear-gradient(135deg, #ea580c, #fb923c); box-shadow: 0 6px 14px rgba(234, 88, 12, .28); }
    .cp-main .cp-live-title,
    .cp-main .cp-exam-title { font-weight: 700; }
    .cp-main .cp-live-meta,
    .cp-main .cp-exam-meta { border-color: var(--border-color) !important; }

    /* buttons */
    .cp-main .cp-start-btn {
        background: linear-gradient(135deg, #f5a623, #ea580c);
        border-radius: 999px;
        padding: 11px 0;
        box-shadow: 0 6px 14px rgba(234, 88, 12, .3);
        transition: transform .18s, box-shadow .18s;
    }
    .cp-main .cp-start-btn:hover { background: linear-gradient(135deg, #e0951a, #d9480f); transform: translateY(-2px); box-shadow: 0 10px 18px rgba(234, 88, 12, .35); }
    .cp-main .cp-routine-btn { border-radius: 999px; padding: 11px 0; transition: transform .18s, box-shadow .18s; }
    .cp-main .cp-routine-view { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 6px 14px rgba(5, 150, 105, .28); }
    .cp-main .cp-routine-download { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 6px 14px rgba(37, 99, 235, .28); }
    .cp-main .cp-routine-btn:hover { transform: translateY(-2px); }

    /* tabs (segmented) */
    .cp-main .cp-tabs {
        padding: 4px;
        gap: 4px;
        flex-wrap: nowrap;
        border: 1px solid var(--border-color);
        border-radius: 14px !important;
        background: var(--surface-1) !important;
    }
    .cp-main .cp-tab-btn {
        width: 100%;
        padding: 10px 8px !important;
        border: 0;
        border-radius: 11px;
        color: var(--text-light);
        background: transparent;
    }
    .cp-main .cp-tab-btn.active {
        color: #fff;
        background: linear-gradient(135deg, #129ae8, #7c3aed);
        box-shadow: 0 6px 14px rgba(18, 154, 232, .3);
    }
    html[data-theme="dark"] .cp-main .cp-tab-btn.active { color: #fff; }
    .cp-main .cp-tab-btn:not(.active):hover { background: var(--hover-bg); }

    /* exam cards */
    .cp-main .cp-exam-card,
    .cp-main .cp-revision-card {
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, .05) !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1) !important;
        transition: transform .18s ease, box-shadow .18s ease;
    }
    .cp-main .cp-exam-card::before,
    .cp-main .cp-revision-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: linear-gradient(180deg, #2563eb, #60a5fa);
    }
    .cp-main .cp-revision-card::before { background: linear-gradient(180deg, #ea580c, #fb923c); }
    .cp-main .cp-exam-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .15) !important; }
    .cp-main .cp-exam-meta-item { font-size: 13px; font-weight: 500; }
    .cp-main .cp-details-link,
    .cp-main .cp-start-link {
        display: inline-block;
        padding: 4px 14px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
    }
    .cp-main .cp-details-link { color: var(--hero-blue-btn); background: color-mix(in srgb, var(--hero-blue-btn) 12%, transparent); }
    .cp-main .cp-start-link { color: #ea580c; background: color-mix(in srgb, #ea580c 12%, transparent); }

    /* purchase sheet */
    .cp-main .cp-sheet {
        background: var(--surface-1);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .15);
    }
    .cp-main .cp-sheet-sale { color: #059669; }
    .cp-main .cp-sheet-btn { padding-top: 11px; padding-bottom: 11px; }
    @media (min-width: 768px) { .cp-main .cp-sheet { border-radius: 18px; } }

    /* details modal */
    #cpDetailsModal .modal-content { border-radius: 20px !important; }
    #cpDetailsModal .modal-title { color: var(--text-dark); }

    /* more space above each section title */
    .cp-main section { padding-top: 16px; }

/* ===== course-details: today's live exam (hero card) ===== */
    .cp-main .cp-live-card {
        position: relative;
        overflow: hidden;
        color: #fff;
        border: 0 !important;
        border-radius: 22px !important;
        background: linear-gradient(135deg, #f5a623 0%, #ea580c 100%);
        box-shadow: 0 12px 28px rgba(234, 88, 12, .35) !important;
    }
    .cp-main .cp-live-card::before {
        content: "";
        position: absolute;
        inset: auto;
        right: -50px; top: -60px;
        width: 170px; height: 170px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .12);
    }
    .cp-main .cp-live-card::after {
        content: "";
        position: absolute;
        left: -30px; bottom: -50px;
        width: 110px; height: 110px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .1);
        pointer-events: none;
    }
    .cp-main .cp-live-card .card-body { position: relative; z-index: 1; padding: 18px !important; }

    .cp-live-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 12px;
        padding: 3px 12px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .3px;
        color: #fff;
        background: rgba(255, 255, 255, .2);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    }
    .cp-live-badge i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #fff;
        animation: cp-live-dot 1.4s ease-in-out infinite;
    }
    @keyframes cp-live-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
    @media (prefers-reduced-motion: reduce) { .cp-live-badge i { animation: none; } }

    .cp-live-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
    .cp-main .cp-live-card .cp-live-icon {
        flex: 0 0 auto;
        width: 54px;
        height: 54px;
        font-size: 30px;
        color: #fff;
        background: rgba(255, 255, 255, .2);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    }
    .cp-live-head-text { min-width: 0; }
    .cp-main .cp-live-card .cp-live-title { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; line-height: 1.35; color: #fff; }
    .cp-main .cp-live-card .cp-live-subtitle { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .88); }

    .cp-main .cp-live-card .cp-live-meta {
        display: flex;
        gap: 10px;
        padding: 0;
        margin-bottom: 16px;
        border: 0 !important;
    }
    .cp-live-meta-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 9px 8px;
        font-size: 13px;
        font-weight: 700;
        color: #fff;
        border-radius: 14px;
        background: rgba(255, 255, 255, .16);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
    }
    .cp-live-meta-item .material-symbols-outlined { font-size: 19px; }

    .cp-main .cp-live-start {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 0;
        font-size: 16px;
        font-weight: 800;
        color: #ea580c;
        background: #fff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    }
    .cp-main .cp-live-start:hover { color: #d9480f; background: #fff; transform: translateY(-2px); box-shadow: 0 12px 22px rgba(0, 0, 0, .3); }
    .cp-live-start .material-symbols-outlined { font-size: 24px; font-variation-settings: 'FILL' 1; }

    /* broadcast icon: a radar-like ring pulses around it */
    .cp-main .cp-live-card .cp-live-icon { position: relative; overflow: visible; }
    .cp-main .cp-live-card .cp-live-icon::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        border: 2px solid rgba(255, 255, 255, .7);
        animation: cp-live-ring 1.8s ease-out infinite;
        pointer-events: none;
    }
    @keyframes cp-live-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
    @media (prefers-reduced-motion: reduce) { .cp-main .cp-live-card .cp-live-icon::after { animation: none; opacity: 0; } }

/* ===== course-details: today's live exam, light version (soft orange background, darker orange border) ===== */
    .cp-main .cp-live-card {
        color: var(--text-dark);
        border: 2px solid #ea580c !important;
        background: color-mix(in srgb, #f5a623 14%, var(--surface-1, #fff));
        box-shadow: 0 8px 20px rgba(234, 88, 12, .18) !important;
    }
    .cp-main .cp-live-card::before { background: rgba(245, 166, 35, .18); }
    .cp-main .cp-live-card::after { background: rgba(234, 88, 12, .1); }

    .cp-live-badge {
        color: #c2410c;
        background: color-mix(in srgb, #ea580c 14%, transparent);
        box-shadow: inset 0 0 0 1px color-mix(in srgb, #ea580c 40%, transparent);
    }
    .cp-live-badge i { background: #ea580c; }

    .cp-main .cp-live-card .cp-live-icon {
        color: #fff;
        background: linear-gradient(135deg, #f5a623, #ea580c);
        box-shadow: 0 8px 16px rgba(234, 88, 12, .35);
    }
    .cp-main .cp-live-card .cp-live-icon::after { border-color: #ea580c; }
    .cp-main .cp-live-card .cp-live-title { color: var(--text-dark); }
    .cp-main .cp-live-card .cp-live-subtitle { color: var(--text-light); }

    .cp-live-meta-item {
        color: var(--text-dark);
        background: color-mix(in srgb, #f5a623 16%, var(--surface-1, #fff));
        box-shadow: inset 0 0 0 1px color-mix(in srgb, #ea580c 28%, transparent);
    }
    .cp-live-meta-item .material-symbols-outlined { color: #ea580c; }

    .cp-main .cp-live-start {
        color: #fff;
        background: linear-gradient(135deg, #f5a623, #ea580c);
        box-shadow: 0 8px 18px rgba(234, 88, 12, .35);
    }
    .cp-main .cp-live-start:hover { color: #fff; background: linear-gradient(135deg, #e0951a, #d9480f); box-shadow: 0 12px 22px rgba(234, 88, 12, .4); }
