/* ===== home ===== */
        .home-hero {
            background-color: var(--primary-color);
            height: 100px;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }
        html[data-theme="dark"] .home-hero {
            background-color: #1a6fa8;
        }
    /* ============================================================
       Promo / advert slider
       ============================================================ */

    .promo-track {
        display: flex;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        position: relative;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
    }
    .promo-track::-webkit-scrollbar { display: none; }

    /* each banner fills the full width of the slider */
    .promo-card {
        flex: 0 0 100%;
        display: block;
        overflow: hidden;
        background: var(--surface-1, #fff);
        scroll-snap-align: start;
        scroll-snap-stop: always;
        text-decoration: none;
    }

    /* dots sit below the slider */
    #promoDots { margin-top: 10px; }

    .promo-img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    @media (max-width: 575.98px) {
        .promo-img { object-fit: cover; }
    }

    /* ============================================================
       Loading placeholders (shimmer)
       ============================================================ */
    @keyframes skShimmer {
        0%   { background-position: 100% 0; }
        100% { background-position: -100% 0; }
    }

    .sk {
        background-color: #eceef1;
        background-image: linear-gradient(90deg, #eceef1 0%, #f7f8fa 40%, #eceef1 80%);
        background-size: 200% 100%;
        animation: skShimmer 1.4s linear infinite;
        border-radius: 6px;
        color: transparent !important;
        text-shadow: none !important;
        pointer-events: none;
        user-select: none;
    }
    html[data-theme="dark"] .sk {
        background-color: #232c35;
        background-image: linear-gradient(90deg, #232c35 0%, #303b46 40%, #232c35 80%);
        background-size: 200% 100%;
    }
    @media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

    [data-skeleton-section][hidden] { display: none !important; }
    .sk-item { pointer-events: none; }

    .sk-line { height: 14px; margin: 6px 0; }
    .sk-line.w60 { width: 60%; }
    .sk-line.w80 { width: 80%; }
    .sk-line.w90 { width: 90%; }
    .sk-circle { width: 44px; height: 44px; border-radius: 50%; }
    .sk-promo { width: 100%; aspect-ratio: 2.2 / 1; border-radius: 0; }
    .sk-fill { width: 100%; height: 100%; border-radius: 0; }
    .sk-course-img { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
    .sk-card { display: block; overflow: hidden; border-radius: 10px; background: var(--surface-1, #fff); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
    .sk-card-footer { padding: 10px 12px; }
    .premium-bar-title.sk, .premium-bar-date-badge.sk { min-width: 140px; }
    .today-history-date.sk { width: 60%; }

    /* ============================================================
       Sliders
       ============================================================ */
    .live-exam-scroll, .lecture-scroll, .job-scroll {
        scroll-snap-type: x proximity;
    }
    .live-exam-card, .lecture-card, .job-card { scroll-snap-align: start; }
    .slider-dot { cursor: pointer; }
    .slider-dot.active { background: #666; }
    html[data-theme="dark"] .slider-dot.active { background: #c8c8c8; }
    .lecture-dots:empty { display: none; }

    .job-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .job-scroll::-webkit-scrollbar { display: none; }
    .job-card {
        --tone: #2563eb;
        --tone-2: #60a5fa;
        position: relative;
        flex: 0 0 290px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 14px 14px 18px;
        border-radius: 16px;
        overflow: hidden;
        background: var(--surface-1, #fff);
        color: var(--text-dark);
        text-decoration: none;
        border: 1px solid rgba(0, 0, 0, .05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
        transition: transform .18s ease, box-shadow .18s ease;
    }
    .job-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: linear-gradient(180deg, var(--tone), var(--tone-2));
    }
    .job-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .14) !important; color: var(--text-dark); }
    .job-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
    .job-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
    .job-tone-2 { --tone: #059669; --tone-2: #34d399; }
    .job-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
    .job-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
    .job-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }
    .job-card-icon-wrap {
        flex: 0 0 auto;
        width: 46px;
        height: 46px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, var(--tone), var(--tone-2));
        box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 35%, transparent);
    }
    .job-card-icon {
        display: block;
        width: 24px;
        height: 24px;
        font-size: 24px;
        line-height: 24px;
        text-align: center;
        color: #fff;
        font-variation-settings: 'FILL' 1;
    }
    .job-card-info { flex: 1 1 auto; min-width: 0; }
    .job-card-title {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        color: var(--text-dark);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .job-card-company {
        display: flex;
        align-items: flex-start;
        gap: 4px;
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.3;
        color: var(--text-light);
    }
    .job-card-company .material-symbols-outlined { font-size: 15px; color: var(--tone); flex: 0 0 auto; }
    .job-card-company span:last-child {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .job-card-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;
    }
    .job-card-arrow .material-symbols-outlined { font-size: 18px; }
    .job-card:hover .job-card-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }

    /* Course plans: a grid on wider screens, a swipeable slider on phones */
    .slider-dots-mobile { display: none; }
    @media (max-width: 575.98px) {
        #coursePlanGrid {
            flex-wrap: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x proximity;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }
        #coursePlanGrid::-webkit-scrollbar { display: none; }
        #coursePlanGrid > [class*="col-"] { flex: 0 0 62%; max-width: 62%; scroll-snap-align: start; }
        .slider-dots-mobile { display: flex; }
        .slider-dots-mobile:empty { display: none; }
    }

    /* ============================================================
       Topic Test Modal CSS
       ============================================================ */

    .topic-test-modal {
        border: none;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    }

    .topic-test-header {
        background: linear-gradient(135deg, #1e9fd8 0%, #2563eb 100%);
        padding: 18px 16px;
        position: relative;
    }

    .topic-test-title {
        color: #ffffff;
        margin: 0;
        font-size: 1.1rem;
    }

    .topic-test-close {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        opacity: .9;
        font-size: 14px;
        padding: 8px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, .18);
        background-size: 10px;
    }
    .topic-test-close:hover { opacity: 1; background-color: rgba(255, 255, 255, .3); }

    .topic-test-body {
        padding: 18px 14px 22px;
        background: #f5f8fc;
    }
    .topic-test-body .row { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }

    .topic-test-item {
        --tone: #2563eb;
        --tone-2: #60a5fa;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        height: 100%;
        min-height: 130px;
        padding: 18px 10px;
        color: #222;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, .06);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
        transition: transform .18s ease, box-shadow .18s ease;
    }
    .topic-test-item::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg, var(--tone), var(--tone-2));
    }
    .topic-test-item:hover {
        background: #fff;
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, .13);
    }
    .tt-modal-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
    .tt-modal-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
    .tt-modal-tone-2 { --tone: #059669; --tone-2: #34d399; }
    .tt-modal-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
    .tt-modal-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
    .tt-modal-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }

    .topic-test-icon-wrap {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, var(--tone), var(--tone-2));
        box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 35%, transparent);
    }
    .topic-test-icon {
        display: block;
        width: 28px;
        height: 28px;
        font-size: 28px;
        line-height: 28px;
        text-align: center;
        color: #fff;
        font-variation-settings: 'FILL' 1;
    }

    .topic-test-label {
        font-weight: 600;
        text-align: center;
        line-height: 1.35;
        color: #222;
    }

    /* ============================================================
       Live Exam Section (Updated)
       ============================================================ */

    .live-exam-section {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    }

    .live-exam-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: linear-gradient(230deg, #a24bcf, #4b79cf, #4bc5cf);
        background-size: 300% 300%;
        animation: liveExamHeaderBg 30s ease infinite;
        color: #ffffff;
        font-weight: 600;
        padding: 12px 16px;
    }

    @keyframes liveExamHeaderBg {
        0%   { background-position: 0% 50%; }
        50%  { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    .free-exam-chip {
        flex: 0 0 auto;
        background-color: #129ae8;
        color: #ffffff;
        border: 1px solid #ff9800;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 500;
        padding: 2px 10px;
        text-decoration: none;
        box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
    }
    .free-exam-chip:hover { color: #ffffff; background-color: #0f8bd1; }
    .free-exam-chip.animate__animated { transform-origin: top center; }

    .live-exam-body {
        background: #ffffff;
        padding: 14px 0 14px 0;
    }

    .live-exam-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 14px 6px 14px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .live-exam-scroll::-webkit-scrollbar { display: none; }

    .live-exam-card {
        flex: 0 0 240px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        background: #ffffff;
        text-decoration: none;
        transition: box-shadow .15s ease, transform .15s ease;
    }

    .live-exam-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, .10) !important;
        transform: translateY(-2px);
    }

    button.live-exam-card {
        text-align: left;
        font: inherit;
        color: inherit;
        cursor: pointer;
    }

    .live-exam-batch {
        display: inline-block;
        font-size: 11px;
        font-weight: 600;
        color: #fff;
        background: #129ae8;
        border-radius: 8px;
        padding: 0 6px;
        vertical-align: middle;
    }

    .live-exam-icon {
        flex: 0 0 auto;
    }

    .live-exam-icon img {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .live-exam-info {
        flex: 1;
        min-width: 0;
    }

    .live-exam-title {
        font-weight: 500;
        color: #129ae8;
        line-height: 1.35;
        margin: 0 0 4px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .live-exam-day {
        font-weight: 500;
        color: #524d54;
        line-height: 1.3;
        margin: 0;
    }

    .live-exam-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 8px 14px 0;
        background: #ff9800;
        color: #ffffff;
        font-weight: 600;
        padding: 11px 16px;
        border-radius: 6px;
        text-decoration: none;
        transition: background .15s;
    }

    .live-exam-cta:hover {
        background: #fb8c00;
        color: #ffffff;
    }

    .live-exam-cta .material-symbols-outlined {
        font-size: 20px;
    }

       

    /* ---- Live exam slide cards ---- */
    .live-exam-section .live-exam-card.live-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
    .live-exam-section .live-exam-card.live-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
    .live-exam-section .live-exam-card.live-tone-2 { --tone: #059669; --tone-2: #34d399; }
    .live-exam-section .live-exam-card.live-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
    .live-exam-section .live-exam-card.live-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
    .live-exam-section .live-exam-card.live-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }

    .live-exam-section .live-exam-card[class*="live-tone-"] {
        position: relative;
        flex: 0 0 290px;
        width: auto;
        padding: 20px 14px 14px 18px;
        gap: 12px;
        border: 1px solid rgba(0, 0, 0, .05);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
        transition: transform .18s ease, box-shadow .18s ease;
    }
    .live-exam-section .live-exam-card[class*="live-tone-"]::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: linear-gradient(180deg, var(--tone), var(--tone-2));
    }
    .live-exam-section .live-exam-card[class*="live-tone-"]:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .14) !important;
    }
    .live-exam-section .live-exam-card[class*="live-tone-"] .live-exam-icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, var(--tone), var(--tone-2));
        box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 35%, transparent);
    }
    .live-exam-section .live-exam-card[class*="live-tone-"] .live-exam-icon .material-symbols-outlined {
        font-size: 26px;
        color: #fff;
        font-variation-settings: 'FILL' 1;
    }
    .live-exam-section .live-exam-card[class*="live-tone-"] .live-exam-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--tone);
    }
    .live-exam-section .live-exam-card[class*="live-tone-"] .live-exam-day {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-dark);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .live-exam-section .live-exam-card .live-exam-batch {
        background: var(--tone, #129ae8);
    }
    .live-exam-live {
        position: absolute;
        top: 6px;
        right: 10px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        color: #dc2626;
    }
    .live-exam-live i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #dc2626;
        animation: liveExamPulse 1.4s ease-in-out infinite;
    }
    @keyframes liveExamPulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: .35; transform: scale(.7); }
    }
    .live-exam-go {
        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;
    }
    .live-exam-go .material-symbols-outlined { font-size: 18px; }
    .live-exam-card:hover .live-exam-go { background: var(--tone); color: #fff; transform: translateX(3px); }
    /* ============================================================
       Course Plan Section (Grid Layout)
       ============================================================ */

    .course-plan-section .section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        font-weight: 600;
        color: #111;
    }

    .course-plan-section .section-title-link {
        color: #222;
        text-decoration: none;
    }

    /* ---- Card ---- */
    .home-main .course-card {
        --tone: #2563eb;
        --tone-2: #60a5fa;
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        border: 1px solid rgba(0, 0, 0, .05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
        transition: transform .18s ease, box-shadow .18s ease;
        background: #ffffff;
    }
    .home-main .course-card::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--tone), var(--tone-2));
    }
    .home-main .course-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .18) !important;
    }
    .home-main .course-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
    .home-main .course-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
    .home-main .course-tone-2 { --tone: #059669; --tone-2: #34d399; }
    .home-main .course-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
    .home-main .course-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
    .home-main .course-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }

    /* ---- Image ---- */
    .home-main .course-card-img {
        width: 100%;
        display: block;
        object-fit: cover;
    }

    .home-main .course-card-footer {
        background: var(--card-bg, #ffffff);
        color: var(--text-dark, #222);
        font-weight: 600;
        text-align: left;
        padding: 10px 12px 14px;
        line-height: 1.3;
        min-height: 54px;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .home-main .course-card-footer .footer-text {
        flex: 1 1 auto;
        min-width: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .course-card-arrow {
        flex: 0 0 auto;
        width: 28px;
        height: 28px;
        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-card-arrow .material-symbols-outlined { font-size: 18px; }
    .home-main .course-card:hover .course-card-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }

       /* ============================================================
       Today in History Section
       ============================================================ */

    .today-history-card {
        position: relative;
        border: 1px solid rgba(0, 0, 0, .05);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
        transition: transform .18s ease, box-shadow .18s ease;
    }
    .today-history-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    }

    /* ---- Left Badge (col-3) ---- */
    .today-history-badge {
        position: relative;
        height: 100%;
        min-height: 100%;
        background: linear-gradient(135deg, #8a5cf6 0%, #2b1de0 100%);
        color: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-align: center;
        font-weight: 700;
        line-height: 1.3;
        padding: 14px 8px;
        overflow: hidden;
    }
    .today-history-badge::after {
        content: "";
        position: absolute;
        left: -30px; bottom: -30px;
        width: 90px; height: 90px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .12);
    }
    .today-history-badge-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 6px;
        display: grid;
        place-items: center;
        font-size: 26px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .2);
        font-variation-settings: 'FILL' 1;
    }

    /* ---- Right Content (col-9) ---- */
    .today-history-content {
        height: 100%;
        padding: 14px 16px;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .today-history-date {
        display: inline-block;
        background: color-mix(in srgb, #7c3aed 12%, transparent);
        border-radius: 999px;
        padding: 4px 12px;
        text-align: left;
        font-weight: 700;
        font-size: 13px;
        color: #6d28d9;
        margin-bottom: 0;
    }

    .today-history-text {
        font-size: 14px;
        line-height: 1.6;
        color: #555;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .today-history-more {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-top: auto;
        font-size: 13px;
        font-weight: 600;
        color: #6d28d9;
        transition: gap .18s;
    }
    .today-history-more .material-symbols-outlined { font-size: 18px; }
    .today-history-card:hover .today-history-more { gap: 8px; }

    /* ============================================================
       মোবাইল অপটিমাইজ
       ============================================================ */
    @media (max-width: 575.98px) {

        .today-history-badge {
            font-size: 13px;
            padding: 12px 6px;
        }

        .today-history-content {
            padding: 12px 12px;
        }

        .today-history-date {
            font-size: 12px;
            padding: 4px 10px;
        }
        .today-history-badge-icon { width: 38px; height: 38px; font-size: 22px; }

        .today-history-text {
            font-size: 13px;
            line-height: 1.55;
        }
    }

    /* ============================================================
       Lecture Sheet Section (শুধু ছবি)
       ============================================================ */

    .lecture-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .lecture-scroll::-webkit-scrollbar { display: none; }

    .lecture-card {
        flex: 0 0 190px;
        height: 230px;
        border-radius: 10px;
        overflow: hidden;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
        transition: transform .15s ease, box-shadow .15s ease;
        background: #ffffff;
    }

    .lecture-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .18) !important;
    }

    .lecture-card-img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .lecture-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .lecture-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #c8c8c8;
        display: inline-block;
    }

    .lecture-dot.active { background: #666; }

    /* ============================================================
       Question Bank Section
       ============================================================ */

    .home-main .recent-qb-card,
    .home-main .qb-category-card,
    .home-main .topic-test-row {
        --tone: #2563eb;
        --tone-2: #60a5fa;
    }
    .home-main .qb-tone-0, .home-main .tr-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
    .home-main .qb-tone-1, .home-main .tr-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
    .home-main .qb-tone-2, .home-main .tr-tone-2 { --tone: #059669; --tone-2: #34d399; }
    .home-main .qb-tone-3, .home-main .tr-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
    .home-main .qb-tone-4, .home-main .tr-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
    .home-main .qb-tone-5, .home-main .tr-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }

    .qb-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;
    }
    .qb-arrow .material-symbols-outlined { font-size: 18px; }

    /* ---- Recent question bank ---- */
    .home-main .recent-qb-card {
        position: relative;
        display: flex;
        align-items: center;
        gap: 14px;
        background: var(--card-bg, #ffffff);
        border: 1px solid rgba(0, 0, 0, .05);
        border-radius: 16px;
        padding: 16px 16px 16px 20px;
        text-decoration: none;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
        transition: transform .18s ease, box-shadow .18s ease;
        margin-bottom: 4px;
    }
    .home-main .recent-qb-card::before,
    .home-main .qb-category-card::before {
        content: "";
        position: absolute;
        background: linear-gradient(180deg, var(--tone), var(--tone-2));
    }
    .home-main .recent-qb-card::before { inset: 0 auto 0 0; width: 4px; }
    .home-main .recent-qb-card:hover,
    .home-main .qb-category-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .16) !important;
    }
    .home-main .recent-qb-card:hover .qb-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }
    .home-main .recent-qb-icon,
    .home-main .qb-category-icon,
    .home-main .topic-test-row-icon {
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border-radius: 13px;
        background: linear-gradient(135deg, var(--tone), var(--tone-2));
        box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 35%, transparent);
        color: #fff;
    }
    .home-main .recent-qb-icon { width: 52px; height: 52px; }
    .home-main .recent-qb-icon .material-symbols-outlined,
    .home-main .qb-category-icon .material-symbols-outlined,
    .home-main .topic-test-row-icon .material-symbols-outlined {
        font-size: 28px;
        line-height: 1;
        color: #fff;
        font-variation-settings: 'FILL' 1;
    }
    .home-main .recent-qb-info { flex: 1 1 auto; min-width: 0; }
    .home-main .recent-qb-title {
        font-weight: 700;
        color: var(--text-dark, #111);
        line-height: 1.3;
    }
    .home-main .recent-qb-subtitle {
        font-size: 13px;
        color: var(--text-light, #777);
        line-height: 1.35;
        margin-top: 2px;
    }

    /* ---- Category cards ---- */
    .home-main .qb-category-card {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: var(--card-bg, #ffffff);
        border: 1px solid rgba(0, 0, 0, .05);
        border-radius: 16px;
        padding: 18px 10px 14px;
        text-decoration: none;
        text-align: center;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
        transition: transform .18s ease, box-shadow .18s ease;
        height: 100%;
    }
    .home-main .qb-category-card::before { inset: 0 0 auto 0; height: 4px; }
    .home-main .qb-category-icon { width: 50px; height: 50px; margin-bottom: 10px; }
    .home-main .qb-category-title {
        font-weight: 700;
        color: var(--text-dark, #111);
        line-height: 1.35;
        margin-bottom: 8px;
    }
    .home-main .qb-category-count {
        display: inline-block;
        margin-top: auto;
        background: color-mix(in srgb, var(--tone) 12%, transparent);
        color: var(--tone);
        font-size: 12px;
        font-weight: 600;
        padding: 3px 12px;
        border-radius: 999px;
    }

    /* ============================================================
       Topic Test Section
       ============================================================ */

    .home-main .topic-test-list {
        background: var(--card-bg, #ffffff);
        border: 1px solid rgba(0, 0, 0, .05);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    }

    .home-main .topic-test-list-head {
        background: linear-gradient(135deg, #8a5cf6 0%, #2b1de0 100%);
        color: #ffffff;
        font-weight: 700;
        text-align: center;
        padding: 14px 10px;
    }

    .home-main .topic-test-row {
        position: relative;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color, #ececec);
        text-decoration: none;
        transition: background .15s;
    }
    .home-main .topic-test-row:hover { background: var(--hover-bg, #f4f7fd); }
    .home-main .topic-test-row:last-child { border-bottom: none; }
    .home-main .topic-test-row:hover .qb-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }

    .home-main .topic-test-row-icon { width: 42px; height: 42px; border-radius: 12px; }
    .home-main .topic-test-row-icon .material-symbols-outlined { font-size: 24px; }

    .home-main .topic-test-row-label {
        flex: 1 1 auto;
        font-weight: 600;
        color: var(--text-dark, #222);
        line-height: 1.4;
    }

    .home-main .topic-test-row-more {
        justify-content: center;
        gap: 6px;
        color: var(--primary-color, #2563eb);
        font-weight: 600;
        font-size: 15px;
        background: var(--muted-bg, #f4f7fd);
    }
    .home-main .topic-test-row-more:hover { background: var(--hover-bg, #e9effb); }
    .home-main .topic-test-row-more .material-symbols-outlined { font-size: 20px; transition: transform .18s; }
    .home-main .topic-test-row-more:hover .material-symbols-outlined { transform: translateX(3px); }

    /* ============================================================
       Feature Grid
       ============================================================ */
    .home-main .feature-grid-card {
        border: 1px solid rgba(0, 0, 0, .05);
        border-radius: 20px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    }
    .home-main .feature-grid-card .card-body { padding: 10px 6px; }
    .home-main .feature-tile {
        --tone: #2563eb;
        height: auto;
        min-height: 98px;
        padding: 10px 2px 8px;
        gap: 6px;
        cursor: pointer;
        border-radius: 14px;
    }
    .home-main .feat-tone-0 { --tone: #2563eb; }
    .home-main .feat-tone-1 { --tone: #7c3aed; }
    .home-main .feat-tone-2 { --tone: #059669; }
    .home-main .feat-tone-3 { --tone: #ea580c; }
    .home-main .feat-tone-4 { --tone: #db2777; }
    .home-main .feat-tone-5 { --tone: #0891b2; }
    .home-main .feature-icon {
        width: 52px;
        height: 52px;
        display: grid;
        place-items: center;
        border-radius: 16px;
        background: linear-gradient(145deg,
            color-mix(in srgb, var(--tone) 16%, var(--card-bg, #fff)),
            color-mix(in srgb, var(--tone) 6%, var(--card-bg, #fff)));
        border: 1px solid color-mix(in srgb, var(--tone) 18%, transparent);
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .home-main .feature-icon img { width: 30px; height: 30px; object-fit: contain; }
    .home-main .feature-tile:hover .feature-icon {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px color-mix(in srgb, var(--tone) 30%, transparent);
    }
    .home-main .feature-tile:active .feature-icon { transform: scale(.94); }
    .home-main .feature-label {
        margin-top: 0 !important;
        font-size: 12px !important;
        font-weight: 600;
        line-height: 1.3;
        text-align: center;
    }
    @media (min-width: 768px) {
        .home-main .feature-tile { min-height: 124px; gap: 8px; }
        .home-main .feature-icon { width: 68px; height: 68px; border-radius: 20px; }
        .home-main .feature-icon img { width: 40px; height: 40px; }
        .home-main .feature-label { font-size: 14px !important; }
    }

    /* ============================================================
       Social & Community
       ============================================================ */
    .social-community-section .community-cards {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .social-community-section .community-item {
        --brand: #2563eb;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px 6px 12px;
        text-align: center;
        overflow: hidden;
        cursor: pointer;
        background: color-mix(in srgb, var(--brand) 8%, var(--card-bg, #ffffff));
        border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
        transition: transform .18s ease, box-shadow .18s ease;
    }
    .social-community-section .community-item::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: var(--brand);
    }
    .social-community-section .community-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 28%, transparent);
    }
    .social-community-section .community-icon {
        width: 52px;
        height: 52px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: var(--card-bg, #ffffff);
        box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 25%, transparent);
    }
    .social-community-section .community-icon img { width: 30px; height: 30px; object-fit: contain; }
    .social-community-section .community-label {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
        color: var(--text-dark, #222);
    }

    /* ============================================================
       Premium Subscription Bar
       ============================================================ */

    .premium-bar {
        position: relative;
        background: linear-gradient(135deg, #3ea23a 0%, #1f7a3d 100%);
        border-radius: 16px;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 14px;
        color: #ffffff;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(62, 162, 58, .3);
        transition: background .3s;
    }
    .premium-bar::before,
    .premium-bar::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, .1);
        pointer-events: none;
    }
    .premium-bar::before { width: 120px; height: 120px; right: -30px; top: -50px; }
    .premium-bar::after  { width: 80px; height: 80px; right: 70px; bottom: -45px; }
    .premium-bar.is-expired {
        background: linear-gradient(135deg, #e05a4f 0%, #b83a30 100%);
        box-shadow: 0 8px 20px rgba(224, 90, 79, .3);
    }

    .premium-bar-icon {
        position: relative;
        z-index: 1;
        flex: 0 0 auto;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, .2);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
    }
    .premium-bar-icon .material-symbols-outlined {
        font-size: 28px;
        color: #ffe08a;
        font-variation-settings: 'FILL' 1;
    }

    .premium-bar-content { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }

    .premium-bar-title {
        font-weight: 700;
        color: #ffffff;
        line-height: 1.35;
        margin-bottom: 6px;
    }

    .premium-bar-date-badge {
        display: inline-block;
        background: rgba(255, 255, 255, .2);
        color: #ffffff;
        border-radius: 999px;
        padding: 3px 12px;
        font-size: 13px;
        font-weight: 500;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
    }

    .premium-bar-btn {
        position: relative;
        z-index: 1;
        background: #ffffff;
        color: #1f7a3d;
        font-size: 15px;
        font-weight: 700;
        padding: 10px 20px;
        border-radius: 999px;
        text-decoration: none;
        flex: 0 0 auto;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
        transition: transform .18s, box-shadow .18s;
    }

    .premium-bar-btn:hover {
        color: #1f7a3d;
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
    }
    .premium-bar.is-expired .premium-bar-btn { color: #b83a30; }


    /* ============================================================
       মোবাইল অপটিমাইজ
       ============================================================ */
    @media (max-width: 575.98px) {

        .topic-test-body { padding: 16px 10px 20px; }
        .topic-test-item { min-height: 120px; }

        .live-exam-header { font-size: 17px; padding: 11px 14px; }
        .live-exam-card { flex: 0 0 220px; }
        .live-exam-section .live-exam-card[class*="live-tone-"] { flex: 0 0 270px; }
        .live-exam-title { font-size: 13px; }
        .live-exam-day { font-size: 15px; }
        .live-exam-cta { font-size: 15px; }

        .home-main .course-card-title { font-size: 15px; }
        .home-main .course-card-footer { font-size: 12px; }

        .today-history-badge { flex-basis: 80px; font-size: 14px; }
        .today-history-date { font-size: 13px; }
        .today-history-text { font-size: 13px; }

        .lecture-card { flex: 0 0 170px; height: 210px; }
        .lecture-card-title { font-size: 14px; }

        .recent-qb-title { font-size: 16px; }
        .recent-qb-subtitle { font-size: 13px; }

        .qb-category-title { font-size: 14px; }
        .qb-category-count { font-size: 11px; }

        .home-main .topic-test-row-label { font-size: 15px; }

        .premium-bar { gap: 10px; padding: 14px 12px; }
        .premium-bar-icon { width: 40px; height: 40px; border-radius: 12px; }
        .premium-bar-icon .material-symbols-outlined { font-size: 24px; }
        .premium-bar-title { font-size: 15px; }
        .premium-bar-date-badge { font-size: 13px; }
        .premium-bar-btn { font-size: 14px; padding: 8px 14px; }

        .social-community-section .community-cards { gap: 8px; }
        .social-community-section .community-item { padding: 12px 4px 10px; border-radius: 14px; }
        .social-community-section .community-icon { width: 42px; height: 42px; }
        .social-community-section .community-icon img { width: 26px; height: 26px; }
        .social-community-section .community-label { font-size: 11px; }
    }
@media (prefers-reduced-motion: no-preference) {

    /* ---- hero: slowly drifting gradient with two floating glows ---- */
    .home-hero {
        position: relative;
        overflow: hidden;
        background-image: linear-gradient(120deg, #129ae8, #4b79cf, #4bc5cf, #129ae8);
        background-size: 300% 300%;
        animation: wow-hero 14s ease-in-out infinite;
    }
    html[data-theme="dark"] .home-hero {
        background-image: linear-gradient(120deg, #1a6fa8, #2b4f9a, #1e8aa0, #1a6fa8);
    }
    .home-hero::before,
    .home-hero::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        filter: blur(18px);
    }
    .home-hero::before {
        width: 140px; height: 140px; left: -30px; top: -50px;
        background: radial-gradient(circle, rgba(255,255,255,.35), rgba(255,255,255,0) 70%);
        animation: wow-float-a 9s ease-in-out infinite alternate;
    }
    .home-hero::after {
        width: 180px; height: 180px; right: -40px; top: -70px;
        background: radial-gradient(circle, rgba(255,193,7,.30), rgba(255,193,7,0) 70%);
        animation: wow-float-b 11s ease-in-out infinite alternate;
    }
    @keyframes wow-hero {
        0%, 100% { background-position: 0% 50%; }
        50%      { background-position: 100% 50%; }
    }
    @keyframes wow-float-a { to { transform: translate(60px, 30px) scale(1.3); } }
    @keyframes wow-float-b { to { transform: translate(-70px, 24px) scale(1.2); } }

    /* ---- feature grid: card rises, icons pop in one after another ---- */
    #main-content.home-main > .container-fluid > .card {
        animation: wow-rise .6s cubic-bezier(.2, .8, .2, 1) backwards;
    }
    #main-content.home-main > .container-fluid > .card .img_btn {
        cursor: pointer;
        border-radius: 14px;
        transition: transform .18s ease, background-color .18s ease;
        animation: wow-pop .55s cubic-bezier(.34, 1.56, .64, 1) backwards;
    }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(1) .img_btn { animation-delay: 0.17s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(2) .img_btn { animation-delay: 0.22s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(3) .img_btn { animation-delay: 0.27s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(4) .img_btn { animation-delay: 0.32s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(5) .img_btn { animation-delay: 0.37s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(6) .img_btn { animation-delay: 0.42s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(7) .img_btn { animation-delay: 0.47s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(8) .img_btn { animation-delay: 0.52s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(9) .img_btn { animation-delay: 0.57s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(10) .img_btn { animation-delay: 0.62s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(11) .img_btn { animation-delay: 0.67s; }
    #main-content.home-main > .container-fluid > .card .row > div:nth-child(12) .img_btn { animation-delay: 0.72s; }
    #main-content.home-main > .container-fluid > .card .img_btn img {
        transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), filter .25s ease;
    }
    #main-content.home-main > .container-fluid > .card .img_btn:hover img {
        transform: translateY(-5px) scale(1.14) rotate(-4deg);
        filter: drop-shadow(0 8px 8px rgba(18, 154, 232, .35));
    }
    #main-content.home-main > .container-fluid > .card .img_btn:active { transform: scale(.92); }
    @keyframes wow-rise {
        from { opacity: 0; transform: translateY(28px) scale(.97); }
        to   { opacity: 1; transform: none; }
    }
    @keyframes wow-pop {
        from { opacity: 0; transform: scale(.5) translateY(14px); }
        to   { opacity: 1; transform: none; }
    }

    /* ---- search bar: slides in, glows while typing ---- */
    #main-content.home-main form[action="/search"] {
        animation: wow-rise .6s cubic-bezier(.2, .8, .2, 1) .35s backwards;
        transition: box-shadow .25s ease, transform .25s ease;
    }
    #main-content.home-main form[action="/search"]:focus-within {
        transform: translateY(-2px);
        box-shadow: 0 0 0 3px rgba(18, 154, 232, .25), 0 10px 26px rgba(18, 154, 232, .22) !important;
    }

    /* ---- premium button: a light sweep every few seconds ---- */
    .premium-bar-btn { position: relative; overflow: hidden; }
    .premium-bar-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,.55), rgba(255,255,255,0));
        transform: skewX(-20deg);
        animation: wow-shine 3.8s ease-in-out infinite;
        pointer-events: none;
    }
    @keyframes wow-shine {
        0%, 55% { left: -60%; }
        100%    { left: 130%; }
    }

    /* ---- scroll reveal (class added by the script below, so no script = no hidden content) ---- */
    .wow-reveal {
        opacity: 0;
        transform: translateY(26px) scale(.98);
        transition: opacity .65s ease, transform .65s cubic-bezier(.2, .8, .2, 1);
        will-change: opacity, transform;
    }
    .wow-reveal.wow-in { opacity: 1; transform: none; }
}
