/**
 * ═══════════════════════════════════════════
 * BDH Khoá Học — Premium Styles
 * ═══════════════════════════════════════════
 *
 * Design System:
 *   Primary:    #98c700
 *   Text Main:  #191d0c
 *   Text Sub:   #5c6f1f
 *   Background: #fbfcf8
 *   Secondary:  #f1f4e6
 *   Surface:    #ffffff
 *   Font:       Manrope, sans-serif
 */

/* ── Material Symbols base class (Google Fonts only loads the font, not the class) ── */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ──────────────────────────────
   Shared / Reset
   ────────────────────────────── */

.bdh-kh-grid *,
.bdh-kh-search *,
.bdh-kh-player * {
    box-sizing: border-box;
}

.bdh-kh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: #999;
    font-family: 'Manrope', sans-serif;
    gap: 12px;
}

.bdh-kh-empty p {
    font-size: 15px;
    margin: 0;
}

/* Empty state icon — replaces inline style="font-size:48px;color:#ccc;" */
.bdh-kh-empty__icon {
    font-size: 48px;
    color: #ccc;
}

/* Editor placeholder — replaces inline style="color:#999;font-style:italic;" */
.bdh-kh-editor-placeholder {
    color: #999;
    font-style: italic;
}

/* Star filled — replaces inline font-variation-settings:'FILL' 1 */
.bdh-cm__star--filled,
.bdh-kh-star--filled {
    font-variation-settings: 'FILL' 1;
}

/* Breadcrumb icons — replaces inline styles */
.bdh-bc__home-icon {
    font-size: inherit;
    vertical-align: middle;
}

.bdh-bc__sep-icon {
    font-size: 14px;
    vertical-align: middle;
}

/* Player lock icon — replaces inline style="font-size:16px;" */
.bdh-kh-player__lock-icon {
    font-size: 16px;
}


/* ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
   1. COURSE GRID
   ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ */

.bdh-kh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    font-family: 'Manrope', sans-serif;
}

/* ── Card ── */

.bdh-kh-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border: 1px solid #f1f4e6;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.bdh-kh-card:hover {
    box-shadow: 0 4px 20px -2px rgba(25, 29, 12, 0.08);
    border-color: rgba(152, 199, 0, 0.3);
    transform: translateY(-2px);
}

/* Thumbnail */
.bdh-kh-card__thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f4e6;
}

.bdh-kh-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bdh-kh-card:hover .bdh-kh-card__thumb img {
    transform: scale(1.05);
}

.bdh-kh-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
}

.bdh-kh-card__thumb-placeholder .material-symbols-outlined {
    font-size: 48px;
}

/* Badge */
.bdh-kh-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

/* Content */
.bdh-kh-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

/* Meta Top */
.bdh-kh-card__meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.bdh-kh-card__cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f4e6;
    color: #5c6f1f;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bdh-kh-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: #191d0c;
}

.bdh-kh-star {
    font-size: 16px !important;
    color: #f59e0b;
    font-variation-settings: 'FILL' 1;
}

.bdh-kh-card__rating strong {
    font-weight: 700;
    margin-left: 2px;
}

.bdh-kh-card__reviews {
    color: #5c6f1f;
    margin-left: 2px;
}

/* Title */
.bdh-kh-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #191d0c;
    margin: 0 0 6px;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bdh-kh-card:hover .bdh-kh-card__title {
    color: #98c700;
}

/* Excerpt */
.bdh-kh-card__excerpt {
    font-size: 13px;
    color: #5c6f1f;
    line-height: 1.5;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.bdh-kh-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f4e6;
}

/* Instructor */
.bdh-kh-card__instructor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdh-kh-card__instructor-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.bdh-kh-card__instructor-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f4e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c6f1f;
}

.bdh-kh-card__instructor-placeholder .material-symbols-outlined {
    font-size: 18px;
}

.bdh-kh-card__instructor-name {
    font-size: 13px;
    font-weight: 500;
    color: #5c6f1f;
}

/* Pricing */
.bdh-kh-card__pricing {
    text-align: right;
}

.bdh-kh-card__price {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #98c700;
}

.bdh-kh-card__original-price {
    display: block;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

/* Level badge */
.bdh-kh-card__level {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
}

.bdh-kh-card__level .material-symbols-outlined {
    font-size: 14px;
    color: #98c700;
}

/* ── Pagination ── */
.bdh-kh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    font-family: 'Manrope', sans-serif;
}

.bdh-kh-pagination a,
.bdh-kh-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e5e9d9;
    background: #fff;
}

.bdh-kh-pagination a:hover {
    background: #f5f5f0;
    border-color: #ccc;
    color: #333;
}

.bdh-kh-pagination .current {
    background: #98c700;
    color: #fff;
    border-color: #98c700;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(152, 199, 0, 0.3);
}

.bdh-kh-pagination .dots {
    border: none;
    background: none;
    color: #bbb;
}

.bdh-kh-pagination .prev,
.bdh-kh-pagination .next {
    border: none;
    background: none;
    color: #888;
}

.bdh-kh-pagination .prev:hover,
.bdh-kh-pagination .next:hover {
    color: #98c700;
    background: none;
}

.bdh-kh-pagination .material-symbols-outlined {
    font-size: 20px;
}

/* Empty state */
.bdh-kh-empty {
    text-align: center;
    padding: 48px 24px;
    color: #999;
    font-family: 'Manrope', sans-serif;
}

.bdh-kh-empty__icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 12px;
    display: block;
}


/* ── Listing Layout (with filters) ── */
.bdh-kh-listing {
    font-family: 'Manrope', sans-serif;
}

.bdh-kh-listing--has-filters {
    display: flex;
    gap: 32px;
}

.bdh-kh-listing__content {
    flex: 1;
    min-width: 0;
}

/* ── Filter Sidebar ── */
.bdh-kh-filters {
    width: 260px;
    flex-shrink: 0;
    position: relative;
}

/* Overlay - hidden on desktop */
.bdh-kh-filters__overlay {
    display: none;
}

/* Body - visible on desktop */
.bdh-kh-filters__body {
    display: block;
}

/* Header (close btn) - hidden on desktop */
.bdh-kh-filters__header {
    display: none;
}

/* Actions (apply + clear) - hidden on desktop */
.bdh-kh-filters__actions {
    display: none;
}

/* Toggle button (in toolbar) - HIDDEN on desktop & tablet, visible only on mobile */
.bdh-kh-filters__toggle {
    display: none !important;
}

.bdh-kh-filters__group {
    margin-bottom: 0;
}

.bdh-kh-filters__title {
    font-size: 16px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 12px;
}

.bdh-kh-filters__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bdh-kh-filters__label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #5c6f1f;
    transition: color 0.2s;
}

.bdh-kh-filters__label:hover {
    color: #98c700;
}

.bdh-kh-filters__count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    flex-shrink: 0;
}

.bdh-kh-filters__label--disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.bdh-kh-filters__label--disabled .bdh-kh-filters__count {
    color: #d1d5db;
}

.bdh-kh-filters__checkbox,
.bdh-kh-filters__radio {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e9d9;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
    background: #fff;
}

.bdh-kh-filters__radio {
    border-radius: 50%;
}

.bdh-kh-filters__checkbox:checked,
.bdh-kh-filters__radio:checked {
    background-color: #98c700;
    border-color: #98c700;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='rgb(255,255,255)' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.bdh-kh-filters__radio:checked {
    background-image: none;
    box-shadow: inset 0 0 0 3px #fff;
}

.bdh-kh-filters__checkbox:focus,
.bdh-kh-filters__radio:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(152, 199, 0, 0.2);
}

.bdh-kh-filters__stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.bdh-kh-filters__stars .bdh-kh-star,
.bdh-kh-filters__stars .bdh-kh-star-half {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 18px !important;
    color: #facc15;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.bdh-kh-filters__divider {
    border: none;
    border-top: 1px solid #e5e9d9;
    margin: 20px 0;
}

/* ── Sorting Toolbar ── */
.bdh-kh-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 4px 0;
}

.bdh-kh-toolbar__count {
    font-size: 14px;
    color: #5c6f1f;
    margin: 0;
}

.bdh-kh-toolbar__count strong {
    color: #191d0c;
    font-weight: 700;
}

.bdh-kh-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdh-kh-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdh-kh-toolbar__sort-label {
    font-size: 13px;
    color: #5c6f1f;
    white-space: nowrap;
}

.bdh-kh-toolbar__select {
    padding: 8px 32px 8px 14px;
    border: 1px solid #e5e9d9;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #191d0c;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666'%3e%3cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3e%3c/svg%3e") no-repeat right 10px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}

.bdh-kh-toolbar__select:hover {
    border-color: rgba(152, 199, 0, 0.5);
}

.bdh-kh-toolbar__select:focus {
    outline: none;
    border-color: #98c700;
    box-shadow: 0 0 0 3px rgba(152, 199, 0, 0.15);
}

/* ── Mobile: Filter Drawer (≤767px) ── */
@media (max-width: 767px) {
    .bdh-kh-listing--has-filters {
        flex-direction: column;
        gap: 0;
    }

    /* Sidebar becomes fixed drawer */
    .bdh-kh-filters {
        width: auto;
        position: static;
    }

    .bdh-kh-filters__overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 9998;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .bdh-kh-filters__body {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        background: #fff;
        z-index: 9999;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* When open */
    .bdh-kh-filters--open .bdh-kh-filters__overlay {
        display: block;
    }

    .bdh-kh-filters--open .bdh-kh-filters__body {
        display: flex;
        transform: translateX(0);
    }

    /* Drawer header */
    .bdh-kh-filters__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e5e9d9;
        flex-shrink: 0;
    }

    .bdh-kh-filters__header-title {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        color: #191d0c;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .bdh-kh-filters__header-title .material-symbols-outlined {
        font-size: 22px;
        color: #98c700;
    }

    .bdh-kh-filters__close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: #f5f7ed;
        border-radius: 8px;
        cursor: pointer;
        color: #5c6f1f;
        transition: all 0.2s;
    }

    .bdh-kh-filters__close:hover {
        background: #98c700;
        color: #fff;
    }

    .bdh-kh-filters__close .material-symbols-outlined {
        font-size: 20px;
    }

    /* Groups inside drawer */
    .bdh-kh-filters__group {
        padding: 0 20px;
    }

    .bdh-kh-filters__divider {
        margin: 16px 20px;
    }

    /* Action buttons - sticky bottom */
    .bdh-kh-filters__actions {
        display: flex;
        gap: 10px;
        padding: 16px 20px;
        border-top: 1px solid #e5e9d9;
        background: #fff;
        position: sticky;
        bottom: 0;
        margin-top: auto;
    }

    .bdh-kh-filters__btn-clear {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 16px;
        border: 1px solid #e5e9d9;
        border-radius: 10px;
        background: #fff;
        color: #5c6f1f;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
    }

    .bdh-kh-filters__btn-clear:hover {
        border-color: #d32f2f;
        color: #d32f2f;
    }

    .bdh-kh-filters__btn-clear .material-symbols-outlined {
        font-size: 18px;
    }

    .bdh-kh-filters__btn-apply {
        flex: 1;
        padding: 12px 16px;
        border: none;
        border-radius: 10px;
        background: #98c700;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
    }

    .bdh-kh-filters__btn-apply:hover {
        background: #7ba300;
    }

    /* Toggle button - visible in toolbar on mobile */
    .bdh-kh-filters__toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid #e5e9d9;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
        color: #5c6f1f;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .bdh-kh-filters__toggle:hover {
        border-color: #98c700;
        color: #98c700;
    }

    .bdh-kh-filters__toggle .material-symbols-outlined {
        font-size: 22px;
    }

    /* Hide sort label on mobile */
    .bdh-kh-toolbar__sort-label {
        display: none;
    }
}

/* ── Tablet (768-1024): sidebar inline but narrower ── */
@media (min-width: 768px) and (max-width: 1024px) {
    .bdh-kh-filters {
        width: 220px;
    }

    .bdh-kh-listing--has-filters {
        gap: 24px;
    }
}


/* ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
   2. COURSE SEARCH
   ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ */

.bdh-kh-search {
    position: relative;
    font-family: 'Manrope', sans-serif;
    max-width: 100%;
}

/* Search Box */
.bdh-kh-search__box {
    position: relative;
    display: flex;
    align-items: center;
}

.bdh-kh-search__icon {
    position: absolute;
    left: 16px;
    color: #5c6f1f;
    font-size: 22px;
    pointer-events: none;
    z-index: 1;
}

.bdh-kh-search__input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f1f4e6;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    color: #191d0c;
    outline: none;
    transition: all 0.25s ease;
}

.bdh-kh-search__input::placeholder {
    color: #5c6f1f99;
}

.bdh-kh-search__input:focus {
    background: #fff;
    border-color: #98c700;
    box-shadow: 0 0 0 4px rgba(152, 199, 0, 0.15);
}

.bdh-kh-search__spinner {
    position: absolute;
    right: 48px;
    display: flex;
    align-items: center;
    color: #98c700;
}

.bdh-kh-search__clear {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.bdh-kh-search__clear:hover {
    background: #f1f4e6;
    color: #191d0c;
}

/* Spinner animation */
@keyframes bdh-kh-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bdh-kh-spin {
    animation: bdh-kh-spin 0.8s linear infinite;
}

/* Results: Dropdown */
.bdh-kh-search__results--dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border-radius: 12px;
    border: 1px solid #f1f4e6;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 100;
    max-height: 480px;
    overflow-y: auto;
    background: #fff;
}

/* Results: Inline Grid */
.bdh-kh-search__results--inline {
    margin-top: 20px;
    border-radius: 12px;
}

.bdh-kh-search__results--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Result Item */
.bdh-kh-search__item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f8faf0;
}

.bdh-kh-search__results--dropdown .bdh-kh-search__item:last-child {
    border-bottom: none;
}

.bdh-kh-search__item:hover {
    background: #f8faf0;
}

/* Item Thumbnail */
.bdh-kh-search__item-thumb {
    width: 80px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f4e6;
}

.bdh-kh-search__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Item Content */
.bdh-kh-search__item-content {
    flex: 1;
    min-width: 0;
}

.bdh-kh-search__item-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5c6f1f;
    background: #f1f4e6;
    padding: 1px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.bdh-kh-search__item-title {
    font-size: 14px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bdh-kh-search__item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #5c6f1f;
}

.bdh-kh-search__item-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.bdh-kh-search__item-rating .bdh-kh-star {
    font-size: 14px !important;
}

.bdh-kh-search__item-price {
    font-weight: 700;
    color: #98c700;
}

.bdh-kh-search__item-instructor {
    color: #999;
}

/* See All */
.bdh-kh-search__see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    color: #98c700;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-top: 1px solid #f1f4e6;
    transition: background 0.15s;
}

.bdh-kh-search__see-all:hover {
    background: #f8faf0;
}

/* Empty State */
.bdh-kh-search__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px;
    color: #999;
    text-align: center;
}

.bdh-kh-search__empty .material-symbols-outlined {
    font-size: 36px;
    color: #ddd;
}

.bdh-kh-search__empty p {
    font-size: 14px;
    margin: 0;
}

/* Inline results — grid style items */
.bdh-kh-search__results--grid .bdh-kh-search__item {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid #f1f4e6;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.bdh-kh-search__results--grid .bdh-kh-search__item:hover {
    box-shadow: 0 4px 20px -2px rgba(25, 29, 12, 0.08);
    border-color: rgba(152, 199, 0, 0.3);
}

.bdh-kh-search__results--grid .bdh-kh-search__item-thumb {
    width: 100%;
    height: 140px;
}


/* ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
   3. COURSE PLAYER
   ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ */

.bdh-kh-player {
    font-family: 'Manrope', sans-serif;
    color: #191d0c;
}

/* Layout */
.bdh-kh-player__layout {
    display: flex;
    min-height: 600px;
}

.bdh-kh-player__layout--with-sidebar {
    flex-direction: row;
}

@media (max-width: 1023px) {
    .bdh-kh-player__layout--with-sidebar {
        flex-direction: column;
    }
}

/* ── Sidebar ── */

.bdh-kh-player__sidebar {
    width: 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f1f4e6;
    background: #fff;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .bdh-kh-player__sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #f1f4e6;
    }
}

.bdh-kh-player__sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f4e6;
}

.bdh-kh-player__sidebar-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #191d0c;
}

.bdh-kh-player__sidebar-course {
    font-size: 13px;
    font-weight: 500;
    color: #98c700;
    margin: 0;
}

/* Lessons List */
.bdh-kh-player__lessons-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.bdh-kh-player__chapter-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #5c6f1f;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bdh-kh-player__chapter-header .material-symbols-outlined {
    font-size: 16px;
}

/* Lesson Item */
.bdh-kh-player__lesson {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
    margin-bottom: 2px;
}

.bdh-kh-player__lesson:hover {
    background: #f8faf0;
}

/* Active lesson */
.bdh-kh-player__lesson--active {
    background: rgba(152, 199, 0, 0.08);
    border-color: rgba(152, 199, 0, 0.2);
}

.bdh-kh-player__lesson--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px;
    background: #98c700;
}

/* Lesson icon */
.bdh-kh-player__lesson-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e5e9d9;
    background: transparent;
    transition: all 0.2s;
}

.bdh-kh-player__lesson-icon .material-symbols-outlined {
    font-size: 16px;
    font-variation-settings: 'FILL' 1;
}

.bdh-kh-player__lesson--active .bdh-kh-player__lesson-icon {
    background: #98c700;
    color: #fff;
    border-color: #98c700;
}

.bdh-kh-player__lesson-num {
    font-size: 11px;
    font-weight: 600;
    color: #999;
}

/* Lesson info */
.bdh-kh-player__lesson-info {
    flex: 1;
    min-width: 0;
}

.bdh-kh-player__lesson-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #191d0c;
}

.bdh-kh-player__lesson--active .bdh-kh-player__lesson-title {
    font-weight: 700;
}

.bdh-kh-player__lesson-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 11px;
    color: #999;
}

.bdh-kh-player__free-badge {
    display: inline-block;
    padding: 1px 6px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

/* Sidebar Footer (Progress) */
.bdh-kh-player__sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f4e6;
    background: #fbfcf8;
}

.bdh-kh-player__progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.bdh-kh-player__progress-bar {
    height: 6px;
    background: #f1f4e6;
    border-radius: 6px;
    overflow: hidden;
}

.bdh-kh-player__progress-fill {
    height: 100%;
    background: #98c700;
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* ── Main Content Area ── */

.bdh-kh-player__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fbfcf8;
}

/* Video */
.bdh-kh-player__video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    background: #000;
    overflow: hidden;
}

.bdh-kh-player__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.bdh-kh-player__no-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    gap: 8px;
    background: #1a1a1a;
}

.bdh-kh-player__no-video .material-symbols-outlined {
    font-size: 56px;
    color: #444;
}

.bdh-kh-player__no-video p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Content Below Video */
.bdh-kh-player__content {
    padding: 24px 32px;
    flex: 1;
}

@media (max-width: 640px) {
    .bdh-kh-player__content {
        padding: 16px;
    }
}

.bdh-kh-player__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f4e6;
    margin-bottom: 24px;
}

.bdh-kh-player__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #191d0c;
    line-height: 1.3;
}

.bdh-kh-player__subtitle {
    font-size: 14px;
    color: #5c6f1f;
    margin: 0;
}

/* Description */
.bdh-kh-player__description {
    margin-bottom: 24px;
}

.bdh-kh-player__description h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #191d0c;
}

.bdh-kh-player__desc-content {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.bdh-kh-player__desc-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

.bdh-kh-player__desc-content li {
    margin-bottom: 4px;
}

.bdh-kh-player__desc-content li::marker {
    color: #98c700;
}

/* Instructor Card */
.bdh-kh-player__instructor-card {
    background: #fff;
    border: 1px solid #f1f4e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.bdh-kh-player__instructor-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 0 0 12px;
}

.bdh-kh-player__instructor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bdh-kh-player__instructor-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.bdh-kh-player__instructor-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f4e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c6f1f;
}

.bdh-kh-player__instructor-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #191d0c;
}

.bdh-kh-player__instructor-title {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Navigation */
.bdh-kh-player__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f1f4e6;
    gap: 12px;
}

.bdh-kh-player__nav-prev,
.bdh-kh-player__nav-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Manrope', sans-serif;
}

.bdh-kh-player__nav-prev {
    color: #5c6f1f;
    border: 1px solid #e5e9d9;
    background: #fff;
}

.bdh-kh-player__nav-prev:hover {
    background: #f8faf0;
    border-color: #98c700;
}

.bdh-kh-player__nav-next {
    color: #fff;
    background: #98c700;
    border: 1px solid #98c700;
    box-shadow: 0 2px 8px rgba(152, 199, 0, 0.3);
}

.bdh-kh-player__nav-next:hover {
    background: #7da600;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(152, 199, 0, 0.35);
}

.bdh-kh-player__nav-prev .material-symbols-outlined,
.bdh-kh-player__nav-next .material-symbols-outlined {
    font-size: 18px;
}

@media (max-width: 480px) {

    .bdh-kh-player__nav-prev,
    .bdh-kh-player__nav-next {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ═══════════════════════════════════
   Locked Lesson Overlay
   ═══════════════════════════════════ */

.bdh-kh-player__locked {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.bdh-kh-player__locked .material-symbols-outlined {
    font-size: 64px !important;
    color: #ffc107 !important;
}

.bdh-kh-player__locked p {
    color: #ccc !important;
    font-size: 15px !important;
    margin-bottom: 16px !important;
}

.bdh-kh-player__buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #98c700, #7da600);
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(152, 199, 0, 0.3);
    font-family: 'Manrope', sans-serif;
}

.bdh-kh-player__buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(152, 199, 0, 0.4);
    color: #fff;
}

.bdh-kh-player__buy-btn .material-symbols-outlined {
    font-size: 20px !important;
    color: #fff !important;
}

/* Locked lesson in sidebar */
.bdh-kh-player__lesson--locked {
    opacity: 0.6;
}

.bdh-kh-player__lesson--locked .bdh-kh-player__lesson-icon {
    background: #eee;
    color: #999;
}

/* ═══════════════════════════════════
   Checkout Page
   ═══════════════════════════════════ */

.bdh-checkout {
    font-family: 'Manrope', -apple-system, sans-serif;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
}

.bdh-checkout__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .bdh-checkout__layout {
        grid-template-columns: 1fr;
    }
}

.bdh-checkout__summary h3,
.bdh-checkout__form-wrap h3 {
    font-size: 18px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 16px;
}

.bdh-checkout__course-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8faf0;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e5e9d9;
}

.bdh-checkout__thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.bdh-checkout__course-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 8px;
}

.bdh-checkout__price {
    font-size: 20px;
    font-weight: 800;
    color: #98c700;
    margin: 0;
}

.bdh-checkout__bank {
    background: #fff;
    border: 1px solid #e5e9d9;
    border-radius: 12px;
    padding: 20px;
}

.bdh-checkout__bank h4 {
    font-size: 14px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 12px;
}

.bdh-checkout__bank table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bdh-checkout__bank td {
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.bdh-checkout__bank td:first-child {
    color: #666;
    width: 120px;
}

.bdh-checkout__qr {
    display: block;
    max-width: 180px;
    margin: 16px auto 0;
    border-radius: 8px;
}

.bdh-checkout__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bdh-checkout__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 4px;
}

.bdh-checkout__field input,
.bdh-checkout__field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: 'Manrope', sans-serif;
}

.bdh-checkout__field input:focus,
.bdh-checkout__field textarea:focus {
    border-color: #98c700;
    outline: none;
    box-shadow: 0 0 0 3px rgba(152, 199, 0, 0.15);
}

.bdh-checkout__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #98c700, #7da600);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 4px 16px rgba(152, 199, 0, 0.3);
}

.bdh-checkout__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(152, 199, 0, 0.4);
}

.bdh-checkout__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bdh-checkout__note {
    font-size: 12px;
    color: #999;
    margin: 4px 0 0;
}

.bdh-checkout-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    font-family: 'Manrope', sans-serif;
}

.bdh-checkout-msg--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.bdh-checkout-msg--warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.bdh-checkout-msg a {
    color: #98c700;
    font-weight: 700;
}

/* ═══════════════════════════════════
   Order History
   ═══════════════════════════════════ */

.bdh-orders {
    font-family: 'Manrope', -apple-system, sans-serif;
}

.bdh-orders__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bdh-orders__table th {
    text-align: left;
    padding: 12px 16px;
    background: #f8faf0;
    color: #191d0c;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 2px solid #e5e9d9;
}

.bdh-orders__table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
}

.bdh-orders__table tr:hover td {
    background: #fbfcf8;
}

/* ═══════════════════════════════════
   Auth Pages (Login / Register)
   ═══════════════════════════════════ */

.bdh-auth {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 16px;
    font-family: 'Manrope', -apple-system, sans-serif;
}

.bdh-auth__card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e3eacd;
    padding: 40px 32px;
    box-shadow: 0 8px 40px rgba(152, 199, 0, 0.08);
}

.bdh-auth__header {
    text-align: center;
    margin-bottom: 32px;
}

.bdh-auth__icon {
    font-size: 48px !important;
    color: #98c700;
    display: block;
    margin-bottom: 12px;
}

.bdh-auth__header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #191d0c;
    margin: 0 0 8px;
}

.bdh-auth__header p {
    font-size: 14px;
    color: #5c6b33;
    margin: 0;
}

.bdh-auth__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bdh-auth__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #5c6b33;
    margin-bottom: 6px;
}

.bdh-auth__input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e3eacd;
    border-radius: 14px;
    padding: 0 14px;
    background: #f8f8f5;
    transition: all 0.2s;
}

.bdh-auth__input-wrap:focus-within {
    border-color: #98c700;
    box-shadow: 0 0 0 3px rgba(152, 199, 0, 0.15);
    background: #fff;
}

.bdh-auth__input-wrap .material-symbols-outlined {
    font-size: 20px;
    color: #a8b880;
}

.bdh-auth__input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 14px;
    color: #191d0c;
    outline: none;
    font-family: 'Manrope', sans-serif;
}

.bdh-auth__remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #5c6b33;
}

.bdh-auth__remember a {
    color: #98c700;
    font-weight: 600;
    text-decoration: none;
}

.bdh-auth__error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.bdh-auth__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #98c700, #7da600);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(152, 199, 0, 0.3);
    font-family: 'Manrope', sans-serif;
}

.bdh-auth__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(152, 199, 0, 0.4);
}

.bdh-auth__submit:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.bdh-auth__footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #5c6b33;
}

.bdh-auth__footer a {
    color: #98c700;
    font-weight: 700;
    text-decoration: none;
}

.bdh-auth-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 14px;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    max-width: 480px;
    margin: 40px auto;
}

.bdh-auth-msg a {
    color: #98c700;
    font-weight: 700;
}

/* ═══════════════════════════════════
   User Avatar Widget
   ═══════════════════════════════════ */

.bdh-ua {
    position: relative;
    display: inline-flex;
}

.bdh-ua__login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #5c6b33;
    transition: all 0.2s;
    text-decoration: none;
}

.bdh-ua__login-icon:hover {
    background: rgba(152, 199, 0, 0.1);
    color: #98c700;
}

.bdh-ua__login-icon .material-symbols-outlined {
    font-size: 28px;
}

.bdh-ua__trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: opacity 0.2s;
}

.bdh-ua__trigger:hover {
    opacity: 0.8;
}

.bdh-ua__avatar {
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e3eacd;
    display: block;
}

.bdh-ua__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e3eacd;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
}

.bdh-ua--open .bdh-ua__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.bdh-ua__user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.bdh-ua__dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.bdh-ua__user-name {
    font-size: 14px;
    font-weight: 700;
    color: #191d0c;
    margin: 0;
}

.bdh-ua__user-email {
    font-size: 12px;
    color: #5c6b33;
    margin: 2px 0 0;
}

.bdh-ua__menu {
    padding: 8px;
}

.bdh-ua__menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #191d0c;
    text-decoration: none;
    transition: all 0.15s;
}

.bdh-ua__menu-item:hover {
    background: #f8f8f5;
    color: #98c700;
}

.bdh-ua__menu-item .material-symbols-outlined {
    font-size: 20px;
    color: #a8b880;
}

.bdh-ua__menu-item:hover .material-symbols-outlined {
    color: #98c700;
}

.bdh-ua__menu-item--logout {
    color: #dc2626;
}

.bdh-ua__menu-item--logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.bdh-ua__menu-item--logout .material-symbols-outlined {
    color: #dc2626;
}

.bdh-ua__divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

/* ═══════════════════════════════════
   Checkout v2 (Premium Design — High Specificity)
   ═══════════════════════════════════ */

html body .bdh-checkout {
    font-family: 'Manrope', -apple-system, sans-serif !important;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px;
    color: #191d0c;
    box-sizing: border-box;
}

html body .bdh-checkout *,
html body .bdh-checkout *::before,
html body .bdh-checkout *::after {
    box-sizing: border-box;
}

html body .bdh-checkout__layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    html body .bdh-checkout__layout {
        grid-template-columns: 1fr;
    }
}

html body .bdh-checkout h1 {
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: none !important;
    color: #191d0c !important;
}

/* Section cards */
html body .bdh-checkout__section {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 28px 32px !important;
    border: 1px solid #e3eacd !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 20px;
}

html body .bdh-checkout__section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

html body .bdh-checkout__step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    background: rgba(152, 199, 0, 0.15) !important;
    color: #98c700 !important;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    border: none !important;
}

html body .bdh-checkout__section-header h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    color: #191d0c !important;
}

/* Form fields */
html body .bdh-checkout__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

html body .bdh-checkout__fields .bdh-checkout__field--full {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    html body .bdh-checkout__fields {
        grid-template-columns: 1fr;
    }
}

html body .bdh-checkout__field label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #5c6b33 !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

html body .bdh-checkout__field input[type="text"],
html body .bdh-checkout__field input[type="email"],
html body .bdh-checkout__field input[type="tel"],
html body .bdh-checkout__field textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e3eacd !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    background: #f8f8f5 !important;
    transition: all 0.2s !important;
    font-family: 'Manrope', sans-serif !important;
    color: #191d0c !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.5 !important;
}

html body .bdh-checkout__field input[type="text"]:focus,
html body .bdh-checkout__field input[type="email"]:focus,
html body .bdh-checkout__field input[type="tel"]:focus,
html body .bdh-checkout__field textarea:focus {
    border-color: #98c700 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(152, 199, 0, 0.15) !important;
    background: #fff !important;
}

/* Phone validation hint */
html body .bdh-checkout__field-hint {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

html body .bdh-checkout__field-hint--error {
    color: #dc2626 !important;
}

html body .bdh-checkout__field-hint--success {
    color: #16a34a !important;
}

/* Invalid input border */
html body .bdh-checkout__field input:invalid:not(:placeholder-shown) {
    border-color: #fca5a5 !important;
}

/* Payment method */
html body .bdh-checkout__payment-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e3eacd !important;
    border-radius: 14px !important;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
    background: #fff !important;
}

html body .bdh-checkout__payment-option:hover {
    background: #f8f8f5 !important;
}

html body .bdh-checkout__payment-option input[type="radio"] {
    accent-color: #98c700;
    width: 18px !important;
    height: 18px !important;
    margin-right: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

html body .bdh-checkout__payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-right: 12px;
}

html body .bdh-checkout__payment-icon .material-symbols-outlined {
    font-size: 20px;
    color: #666;
}

html body .bdh-checkout__payment-label {
    font-weight: 600;
    font-size: 14px;
}

/* Order summary sidebar */
html body .bdh-checkout__summary {
    position: sticky;
    top: 100px;
}

html body .bdh-checkout__summary-card {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 24px !important;
    border: 1px solid #e3eacd !important;
    box-shadow: 0 8px 32px rgba(152, 199, 0, 0.08) !important;
}

html body .bdh-checkout__summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: none !important;
    color: #191d0c !important;
}

html body .bdh-checkout__summary-title .material-symbols-outlined {
    font-size: 22px;
}

/* Course item in summary */
html body .bdh-checkout__course-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed #e3eacd !important;
}

html body .bdh-checkout__course-item:last-of-type {
    border-bottom: none !important;
    margin-bottom: 0;
    padding-bottom: 0;
}

html body .bdh-checkout__item-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px !important;
    object-fit: cover;
    flex-shrink: 0;
    border: none !important;
}

html body .bdh-checkout__item-info h4 {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
    color: #191d0c !important;
}

html body .bdh-checkout__item-instructor {
    font-size: 12px !important;
    color: #5c6b33 !important;
    margin: 0 0 6px !important;
}

html body .bdh-checkout__item-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #98c700 !important;
}

html body .bdh-checkout__item-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Totals */
html body .bdh-checkout__totals {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e3eacd !important;
}

html body .bdh-checkout__total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #5c6b33;
}

html body .bdh-checkout__total-row span:last-child {
    font-weight: 600;
    color: #191d0c;
}

html body .bdh-checkout__total-final {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e3eacd !important;
}

html body .bdh-checkout__total-final-label {
    font-size: 16px !important;
    font-weight: 700 !important;
}

html body .bdh-checkout__total-final-value {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #98c700 !important;
}

/* Submit */
html body .bdh-checkout .bdh-checkout__submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    width: 100% !important;
    padding: 16px !important;
    margin-top: 20px;
    background: linear-gradient(135deg, #98c700, #7da600) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s !important;
    font-family: 'Manrope', sans-serif !important;
    box-shadow: 0 4px 20px rgba(152, 199, 0, 0.3) !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

html body .bdh-checkout .bdh-checkout__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(152, 199, 0, 0.4) !important;
    background: linear-gradient(135deg, #7da600, #6b8f00) !important;
    color: #fff !important;
}

html body .bdh-checkout .bdh-checkout__submit:disabled {
    opacity: 0.6;
    transform: none !important;
    cursor: not-allowed;
}

html body .bdh-checkout__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 12px;
    color: #999;
    opacity: 0.7;
}

html body .bdh-checkout__secure .material-symbols-outlined {
    font-size: 20px;
}

/* ═══════════════════════════════════
   Breadcrumb Widget
   ═══════════════════════════════════ */

.bdh-bc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-family: 'Manrope', -apple-system, sans-serif;
    color: #5c6b33;
    line-height: 1.5;
}

.bdh-bc a {
    color: #5c6b33;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.bdh-bc a:hover {
    color: #98c700;
}

.bdh-bc__current {
    color: #191d0c;
    font-weight: 700;
}

.bdh-bc__sep {
    color: #a8b880;
    user-select: none;
}

/* ═══════════════════════════════════
   Learning Outcomes Widget
   ═══════════════════════════════════ */

.bdh-lo {
    font-family: 'Manrope', -apple-system, sans-serif;
}

.bdh-lo__title {
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 20px;
}

.bdh-lo__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.bdh-lo__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.bdh-lo__item--icon-after {
    flex-direction: row-reverse;
    text-align: right;
}

.bdh-lo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #98c700;
    font-size: 18px;
    line-height: 1;
}

.bdh-lo__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.bdh-lo__text {
    color: #333;
    font-size: 14px;
}

/* ═══════════════════════════════════
   Course Meta Widget
   ═══════════════════════════════════ */

.bdh-cm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 14px;
    color: #5c6b33;
}

.bdh-cm--column {
    flex-direction: column;
    align-items: flex-start;
}

.bdh-cm__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bdh-cm__rating-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bdh-cm__rating-num {
    font-size: 18px;
    font-weight: 800;
    color: #191d0c;
}

.bdh-cm__stars {
    display: flex;
    align-items: center;
    gap: 1px;
}

.bdh-cm__star {
    font-size: 18px;
    color: #facc15;
}

.bdh-cm__star--empty {
    color: #d1d5db;
}

.bdh-cm__reviews {
    color: #5c6b33;
    font-size: 13px;
}

.bdh-cm__icon {
    font-size: 18px;
    color: #98c700;
}

/* ═══════════════════════════════════
   Course Curriculum Widget
   ═══════════════════════════════════ */

.bdh-cc {
    font-family: 'Manrope', -apple-system, sans-serif;
    border: 1px solid #e3eacd;
    border-radius: 16px;
    overflow: hidden;
}

.bdh-cc__title {
    font-size: 22px;
    font-weight: 700;
    color: #191d0c;
    margin: 0;
    padding: 20px 24px 0;
}

.bdh-cc__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 24px;
    font-size: 13px;
    color: #5c6b33;
    border-bottom: 1px solid #e3eacd;
}

.bdh-cc__summary-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bdh-cc__summary-item .material-symbols-outlined {
    font-size: 16px;
    color: #98c700;
}

/* Chapter */
.bdh-cc__chapter {
    border-bottom: 1px solid #e3eacd;
}

.bdh-cc__chapter:last-child {
    border-bottom: none;
}

.bdh-cc__chapter-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    padding: 14px 24px;
    border: none !important;
    border-width: 0 !important;
    outline: none;
    background: #f8f8f5;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    margin: 0;
    line-height: 1.5;
}

.bdh-cc__chapter-head:hover {
    background: #f1f4e6;
}

.bdh-cc__chapter-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdh-cc__chevron {
    font-size: 20px;
    color: #98c700;
    transition: transform 0.3s;
}

.bdh-cc__chapter--open .bdh-cc__chevron {
    transform: rotate(180deg);
}

.bdh-cc__chapter-title {
    font-size: 15px;
    font-weight: 700;
    color: #191d0c;
}

.bdh-cc__chapter-count {
    font-size: 12px;
    color: #98c700;
    background: rgba(152, 199, 0, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Lessons */
.bdh-cc__lessons {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.bdh-cc__chapter--open .bdh-cc__lessons {
    max-height: 2000px;
}

.bdh-cc__lesson {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 12px 52px;
    border-top: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.bdh-cc__lesson:hover {
    background: #fbfcf8;
}

.bdh-cc__lesson-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.bdh-cc__lesson-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.bdh-cc__lesson-icon--play {
    color: #98c700;
}

.bdh-cc__lesson-icon--lock {
    color: #ccc;
}

.bdh-cc__lesson-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bdh-cc__lesson-num {
    color: #999;
    font-weight: 600;
}

.bdh-cc__lesson-dur {
    font-size: 12px;
    color: #999;
    margin-left: 12px;
    flex-shrink: 0;
    font-weight: 500;
}

.bdh-cc__free-badge {
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    color: #98c700;
    background: rgba(152, 199, 0, 0.12);
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════
   Instructor Widget
   ═══════════════════════════════════ */

.bdh-ins__heading {
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 16px;
}

.bdh-ins__card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e3eacd;
    border-radius: 16px;
    font-family: 'Manrope', -apple-system, sans-serif;
}

.bdh-ins__card--horizontal {
    flex-direction: row;
    align-items: flex-start;
}

.bdh-ins__card--vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bdh-ins__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.bdh-ins__info {
    flex: 1;
    min-width: 0;
}

.bdh-ins__name {
    font-size: 18px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 4px;
    line-height: 1.3;
}

.bdh-ins__role {
    font-size: 13px;
    font-weight: 600;
    color: #98c700;
    margin: 0 0 10px;
}

.bdh-ins__bio {
    font-size: 14px;
    color: #5c6b33;
    line-height: 1.6;
    margin: 0;
}

/* Instructor Stats */
.bdh-ins__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 14px;
    background: #f8f8f5;
    border-radius: 10px;
    font-size: 13px;
    color: #5c6b33;
    margin-bottom: 10px;
}

.bdh-ins__stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bdh-ins__stat-icon {
    font-size: 16px;
    color: #98c700;
}

.bdh-ins__stat-star {
    font-size: 16px;
    color: #facc15;
}

.bdh-ins__stat-val {
    font-weight: 700;
    color: #191d0c;
}

/* ═══════════════════════════════════
   Purchase Card Widget
   ═══════════════════════════════════ */

.bdh-pc {
    position: relative;
    background: #fff;
    border: 1px solid #e3eacd;
    border-radius: 16px;
    padding: 24px;
    font-family: 'Manrope', -apple-system, sans-serif;
    overflow: hidden;
}

.bdh-pc__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0 0 0 12px;
    letter-spacing: 0.3px;
}

.bdh-pc__pricing {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 6px;
}

.bdh-pc__price {
    font-size: 28px;
    font-weight: 800;
    color: #98c700;
    line-height: 1;
}

.bdh-pc__original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.bdh-pc__urgency {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 18px;
}

.bdh-pc__urgency .material-symbols-outlined {
    font-size: 16px;
}

.bdh-pc__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.bdh-pc__btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 16px;
    background: #98c700;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(152, 199, 0, 0.3);
}

.bdh-pc__btn-buy:hover {
    background: #7da600;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(152, 199, 0, 0.4);
}

.bdh-pc__guarantee {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 0 0 20px;
}

.bdh-pc__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid #e3eacd;
}

.bdh-pc__feat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bdh-pc__feat-icon {
    font-size: 20px;
    color: #999;
    flex-shrink: 0;
}

.bdh-pc__feat-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Cart Button */
.bdh-pc__btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    color: #333;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.bdh-pc__btn-cart:hover {
    border-color: #98c700;
    color: #98c700;
}

.bdh-pc__btn-cart--added {
    border-color: #98c700;
    color: #98c700;
    gap: 6px;
}

.bdh-pc__btn--loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ═══════════════════════════════════
   Header Actions Widget
   ═══════════════════════════════════ */

.bdh-ha {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px;
    font-family: 'Manrope', -apple-system, sans-serif;
}

.bdh-ha__btn {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.bdh-ha__btn:hover {
    background: #f1f4e6;
    color: #98c700;
}

.bdh-ha__btn .material-symbols-outlined {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bdh-ha__cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
}

/* Cart Dropdown */
.bdh-ha__cart-wrap {
    position: relative;
}

.bdh-ha__cart-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-height: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow: hidden;
    flex-direction: column;
}

.bdh-ha__cart-wrap--open .bdh-ha__cart-dropdown {
    display: flex;
}

.bdh-ha__cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.bdh-ha__cart-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.bdh-ha__cart-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px;
    height: 28px;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: background 0.2s;
}

.bdh-ha__cart-close:hover {
    background: #e3eacd;
}

.bdh-ha__cart-close .material-symbols-outlined {
    font-size: 18px;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bdh-ha__cart-items {
    flex: 1;
    overflow-y: auto;
    max-height: 380px;
}

.bdh-ha__cart-empty {
    text-align: center;
    padding: 30px 16px;
    color: #999;
    font-size: 14px;
}

.bdh-ha__cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.bdh-ha__cart-item:hover {
    background: #fafafa;
}

.bdh-ha__cart-item-thumb {
    width: 48px;
    height: 34px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.bdh-ha__cart-item-info {
    flex: 1;
    min-width: 0;
}

.bdh-ha__cart-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bdh-ha__cart-item-price {
    font-size: 13px;
    color: #98c700;
    font-weight: 700;
    margin-top: 2px;
}

.bdh-ha__cart-item-remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px;
    height: 24px;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.bdh-ha__cart-item-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

.bdh-ha__cart-item-remove .material-symbols-outlined {
    font-size: 16px;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bdh-ha__cart-footer {
    border-top: 1px solid #f0f0f0;
    padding: 14px 16px;
}

.bdh-ha__cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.bdh-ha__cart-total-price {
    font-size: 16px;
    font-weight: 800;
    color: #98c700;
}

.bdh-ha__cart-checkout {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #98c700;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.bdh-ha__cart-checkout:hover {
    background: #7da600;
    color: #fff;
}

/* Cart Group Sections */
.bdh-ha__cart-group {
    border-bottom: 1px solid #f0f0f0;
}

.bdh-ha__cart-group:last-child {
    border-bottom: none;
}

.bdh-ha__cart-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdh-ha__cart-group-header .material-symbols-outlined {
    color: #98c700;
}

.bdh-ha__cart-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #f0f0f0;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    margin-left: auto;
}

.bdh-ha__cart-group-footer {
    padding: 10px 16px 12px;
}

.bdh-ha__cart-checkout--product {
    background: #4a6fa5;
}

.bdh-ha__cart-checkout--product:hover {
    background: #3b5a8a;
    color: #fff;
}

/* Search Lightbox Overlay */
.bdh-ha__search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.bdh-ha__search-overlay--open {
    opacity: 1;
    visibility: visible;
}

.bdh-ha__search-box {
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.25s;
}

.bdh-ha__search-overlay--open .bdh-ha__search-box {
    transform: translateY(0);
}

.bdh-ha__search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #e3eacd;
}

.bdh-ha__search-icon {
    color: #999;
    font-size: 22px;
    flex-shrink: 0;
}

.bdh-ha__search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    font-family: inherit;
}

.bdh-ha__search-input::placeholder {
    color: #999;
}

.bdh-ha__search-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50%;
    border: none;
    background: #f1f4e6;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.bdh-ha__search-close .material-symbols-outlined {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bdh-ha__search-close:hover {
    background: #e3eacd;
}

.bdh-ha__search-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 0;
}

.bdh-ha__search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
    border-bottom: 1px solid #f3f3f3;
}

.bdh-ha__search-item:last-child {
    border-bottom: none;
}

.bdh-ha__search-item:hover {
    background: #f8faf0;
}

.bdh-ha__search-thumb {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.bdh-ha__search-info {
    flex: 1;
    min-width: 0;
}

.bdh-ha__search-title {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bdh-ha__search-price {
    font-size: 13px;
    color: #98c700;
    font-weight: 700;
    margin-top: 2px;
}

/* ═══════════════════════════════════
   Curriculum Popup Player — LMS Viewer
   ═══════════════════════════════════ */

.bdh-cc__lesson--playable {
    cursor: pointer;
    transition: background 0.2s;
}

.bdh-cc__lesson--playable:hover {
    background: #f0f7d8 !important;
}

.bdh-cc__lesson--locked-popup {
    cursor: pointer;
}

.bdh-cc__lesson--locked-popup:hover {
    background: #fef2f2 !important;
}

/* Fullscreen Overlay */
.bdh-cc__popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    flex-direction: column;
    background: #f8f8f5;
    font-family: 'Manrope', sans-serif;
}

.bdh-cc__popup--open {
    display: flex;
}

/* ── Top Bar ── */
.bdh-cc__popup-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e9d9;
    flex-shrink: 0;
    gap: 16px;
}

.bdh-cc__popup-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.bdh-cc__popup-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.bdh-cc__popup-course-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(152, 199, 0, 0.1);
    color: #98c700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bdh-cc__popup-course-icon .material-symbols-outlined {
    font-size: 20px;
}

.bdh-cc__popup-course-name {
    font-size: 18px;
    font-weight: 700;
    color: #191d0c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.bdh-cc__popup-close,
.bdh-cc__popup-close-x {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: #999;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.bdh-cc__popup-close:hover,
.bdh-cc__popup-close-x:hover {
    background: #f1f4e6;
    color: #191d0c;
}

.bdh-cc__popup-close .material-symbols-outlined,
.bdh-cc__popup-close-x .material-symbols-outlined {
    font-size: 22px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Progress in topbar */
.bdh-cc__popup-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bdh-cc__popup-progress-text {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    font-weight: 500;
}

.bdh-cc__popup-progress-bar {
    width: 128px;
    height: 8px;
    background: #e5e9d9;
    border-radius: 4px;
    overflow: hidden;
}

.bdh-cc__popup-progress-fill {
    height: 100%;
    background: #98c700;
    border-radius: 4px;
    transition: width 0.3s;
}

/* ── Body (sidebar + main) ── */
.bdh-cc__popup-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ── Sidebar ── */
.bdh-cc__popup-sidebar {
    width: 320px;
    min-width: 320px;
    background: #ffffff;
    border-right: 1px solid #e5e9d9;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.bdh-cc__popup-sidebar-head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e5e9d9;
}

.bdh-cc__popup-sidebar-head h2 {
    font-size: 15px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 4px;
}

.bdh-cc__popup-sidebar-head .bdh-cc__popup-chapter-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #98c700;
    margin: 0;
}

.bdh-cc__popup-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.bdh-cc__popup-ch-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #98c700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 8px 4px;
}

.bdh-cc__popup-ch-title .material-symbols-outlined {
    font-size: 16px;
}

/* Lesson Button */
.bdh-cc__popup-lesson {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    position: relative;
    font-family: inherit;
    overflow: hidden;
}

.bdh-cc__popup-lesson:hover {
    background: #f8f8f5;
}

/* Active lesson — matching design mockup */
.bdh-cc__popup-lesson--active {
    background: rgba(152, 199, 0, 0.1) !important;
    border: 1px solid rgba(152, 199, 0, 0.2);
}

.bdh-cc__popup-lesson--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #98c700;
    border-radius: 0 4px 4px 0;
}

.bdh-cc__popup-lesson--active .bdh-cc__popup-lesson-icon {
    background: #98c700 !important;
    color: #fff !important;
    border-color: #98c700 !important;
}

.bdh-cc__popup-lesson--active .bdh-cc__popup-lesson-icon .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

.bdh-cc__popup-lesson--active .bdh-cc__popup-lesson-name {
    font-weight: 700 !important;
    color: #191d0c !important;
}

.bdh-cc__popup-lesson--active .bdh-cc__popup-lesson-dur {
    color: rgba(152, 199, 0, 0.8);
}

/* Locked lesson */
.bdh-cc__popup-lesson--locked {
    opacity: 0.7;
}

.bdh-cc__popup-lesson--locked .bdh-cc__popup-lesson-name {
    color: #999;
}

.bdh-cc__popup-lesson--locked .bdh-cc__popup-lesson-dur {
    color: #bbb;
}

/* Lesson icon circle */
.bdh-cc__popup-lesson-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #d0d5c0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #888;
    font-size: 12px;
    background: transparent;
    transition: all 0.2s;
}

.bdh-cc__popup-lesson-num {
    font-size: 12px;
    font-weight: 600;
}

/* Lesson info */
.bdh-cc__popup-lesson-info {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    align-content: flex-start;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.bdh-cc__popup-lesson-name {
    font-size: 14px;
    font-weight: 500;
    color: #191d0c;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bdh-cc__popup-lesson-dur {
    font-size: 12px;
    color: #999;
    display: block;
}

/* Small lock inside lesson icon circle */
.bdh-cc__popup-lesson-lock-sm {
    font-size: 14px !important;
}

/* Lock icon at the right of locked lessons */
.bdh-cc__popup-lesson-lock-icon {
    font-size: 16px !important;
    color: #bbb;
    flex-shrink: 0;
}

/* Sidebar Footer */
.bdh-cc__popup-sidebar-foot {
    padding: 16px;
    border-top: 1px solid #e5e9d9;
    font-size: 12px;
    color: #888;
    background: #fafaf8;
}

.bdh-cc__popup-sidebar-foot-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bdh-cc__popup-sidebar-foot-bar {
    height: 6px;
    background: #e5e9d9;
    border-radius: 3px;
    overflow: hidden;
}

.bdh-cc__popup-sidebar-foot-fill {
    height: 100%;
    background: #98c700;
    border-radius: 3px;
    transition: width 0.3s;
}

/* ── Main Content ── */
.bdh-cc__popup-main {
    flex: 1;
    overflow-y: auto;
    background: #f8f8f5;
    display: flex;
    flex-direction: column;
}

/* Video */
.bdh-cc__popup-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    flex-shrink: 0;
}

.bdh-cc__popup-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.bdh-cc__popup-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    gap: 12px;
}

.bdh-cc__popup-loading p {
    margin: 0;
    font-size: 14px;
}

@keyframes bdh-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bdh-cc__popup-spin {
    font-size: 36px;
    animation: bdh-spin 1s linear infinite;
    color: #98c700;
}

/* Content below video */
.bdh-cc__popup-content {
    padding: 24px 32px;
    flex: 1;
}

.bdh-cc__popup-content-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e9d9;
    margin-bottom: 24px;
}

.bdh-cc__popup-content-header-left {
    flex: 1;
    min-width: 0;
}

.bdh-cc__popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.bdh-cc__popup-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Action buttons */
.bdh-cc__popup-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.bdh-cc__popup-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.bdh-cc__popup-btn .material-symbols-outlined {
    font-size: 18px;
}

.bdh-cc__popup-btn--outline {
    border: 1px solid #e5e9d9;
    background: #fff;
    color: #555;
}

.bdh-cc__popup-btn--outline:hover {
    background: #f8f8f5;
    border-color: #ccc;
}

.bdh-cc__popup-btn--primary {
    border: none;
    background: rgba(152, 199, 0, 0.1);
    color: #191d0c;
    font-weight: 700;
}

.bdh-cc__popup-btn--primary:hover {
    background: rgba(152, 199, 0, 0.2);
}

/* Grid layout: description + right sidebar */
.bdh-cc__popup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.bdh-cc__popup-grid-left {
    min-width: 0;
}

/* When right sidebar has content, use 2/3 + 1/3 layout on desktop */
@media (min-width: 1024px) {
    .bdh-cc__popup-grid--has-sidebar {
        grid-template-columns: 2fr 1fr;
    }
}


.bdh-cc__popup-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.bdh-cc__popup-desc h3 {
    font-size: 18px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 8px;
}

.bdh-cc__popup-desc p {
    margin: 0 0 12px;
}

.bdh-cc__popup-desc ul {
    padding-left: 20px;
    margin: 12px 0;
}

.bdh-cc__popup-desc ul li {
    margin-bottom: 8px;
}

.bdh-cc__popup-desc ul li::marker {
    color: #98c700;
}

/* Resources card */
.bdh-cc__popup-resources {
    background: #fff;
    border: 1px solid #e5e9d9;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bdh-cc__popup-resources-title {
    font-size: 15px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdh-cc__popup-resources-title .material-symbols-outlined {
    color: #98c700;
    font-size: 22px;
}

.bdh-cc__popup-resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bdh-cc__popup-resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.bdh-cc__popup-resource-item:hover {
    background: #f8f8f5;
}

.bdh-cc__popup-resource-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bdh-cc__popup-resource-icon--pdf {
    background: #fef2f2;
    color: #dc2626;
}

.bdh-cc__popup-resource-icon--code {
    background: #eff6ff;
    color: #2563eb;
}

.bdh-cc__popup-resource-icon--file {
    background: #f1f4e6;
    color: #5c6f1f;
}

.bdh-cc__popup-resource-icon .material-symbols-outlined {
    font-size: 18px;
}

.bdh-cc__popup-resource-info {
    flex: 1;
    min-width: 0;
}

.bdh-cc__popup-resource-name {
    font-size: 14px;
    font-weight: 500;
    color: #191d0c;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.bdh-cc__popup-resource-item:hover .bdh-cc__popup-resource-name {
    color: #98c700;
}

.bdh-cc__popup-resource-meta {
    font-size: 12px;
    color: #999;
    margin: 2px 0 0;
}

.bdh-cc__popup-resource-action {
    color: #bbb;
    flex-shrink: 0;
    transition: color 0.15s;
}

.bdh-cc__popup-resource-item:hover .bdh-cc__popup-resource-action {
    color: #98c700;
}

.bdh-cc__popup-resource-action .material-symbols-outlined {
    font-size: 20px;
}


@media (max-width: 768px) {
    .bdh-cc__popup-content-header {
        flex-direction: column;
    }

    .bdh-cc__popup-actions {
        width: 100%;
    }

    .bdh-cc__popup-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ── Action buttons: high specificity to prevent theme override ── */
.bdh-cc__popup .bdh-cc__popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none;
}

.bdh-cc__popup .bdh-cc__popup-btn .material-symbols-outlined {
    font-size: 18px;
}

.bdh-cc__popup .bdh-cc__popup-btn--outline {
    border: 1px solid #e5e9d9;
    background: #ffffff;
    color: #555;
}

.bdh-cc__popup .bdh-cc__popup-btn--outline:hover {
    background: #f8f8f5;
    border-color: #ccc;
    color: #333;
}

.bdh-cc__popup .bdh-cc__popup-btn--primary {
    border: none;
    background: rgba(152, 199, 0, 0.1);
    color: #191d0c;
    font-weight: 700;
}

.bdh-cc__popup .bdh-cc__popup-btn--primary:hover {
    background: rgba(152, 199, 0, 0.2);
}

/* ── Instructor Card ── */
.bdh-cc__popup-instructor {
    background: #fff;
    border: 1px solid #e5e9d9;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-top: 16px;
}

.bdh-cc__popup-instructor-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}

.bdh-cc__popup-instructor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bdh-cc__popup-instructor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bdh-cc__popup-instructor-avatar--placeholder {
    background: #f1f4e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c6f1f;
}

.bdh-cc__popup-instructor-avatar--placeholder .material-symbols-outlined {
    font-size: 24px;
}

.bdh-cc__popup-instructor-name {
    font-size: 14px;
    font-weight: 700;
    color: #191d0c;
    margin: 0;
}

.bdh-cc__popup-instructor-title {
    font-size: 12px;
    color: #999;
    margin: 2px 0 0;
}

.bdh-cc__popup-instructor-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #98c700;
    background: rgba(152, 199, 0, 0.1);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.bdh-cc__popup-instructor-btn:hover {
    background: rgba(152, 199, 0, 0.2);
    color: #98c700;
}

/* ── Completed lesson state ── */
.bdh-cc__popup-lesson--completed .bdh-cc__popup-lesson-icon {
    background: rgba(152, 199, 0, 0.15);
    border-color: #98c700;
    color: #98c700;
}

.bdh-cc__popup-lesson-check {
    font-size: 16px !important;
    font-variation-settings: 'FILL' 1;
}


/* Locked */
.bdh-cc__popup-locked {
    padding: 60px 40px;
    text-align: center;
    color: #999;
}

.bdh-cc__popup-locked .material-symbols-outlined {
    font-size: 56px;
    color: #666;
    margin-bottom: 16px;
}

.bdh-cc__popup-locked p {
    font-size: 16px;
    margin: 0 0 20px;
}

.bdh-cc__popup-buy {
    display: inline-block;
    padding: 12px 28px;
    background: #98c700;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.bdh-cc__popup-buy:hover {
    background: #7da600;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── Footer Nav: high specificity to prevent theme override ── */
.bdh-cc__popup .bdh-cc__popup-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e9d9;
    background: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bdh-cc__popup .bdh-cc__popup-nav-prev,
.bdh-cc__popup .bdh-cc__popup-nav-next,
.bdh-cc__popup .bdh-cc__popup-nav-complete {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e5e9d9;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
    line-height: 1.4;
    margin: 0;
    min-height: 0;
}

.bdh-cc__popup .bdh-cc__popup-nav-prev:hover:not(:disabled) {
    background: #f5f5f0;
    border-color: #ccc;
}

/* Next button */
.bdh-cc__popup .bdh-cc__popup-nav-next {
    background: #98c700;
    color: #191d0c;
    border-color: #98c700;
    box-shadow: 0 4px 6px -1px rgba(152, 199, 0, 0.3);
}

.bdh-cc__popup .bdh-cc__popup-nav-next:hover:not(:disabled) {
    background: #8ab800;
    border-color: #8ab800;
    box-shadow: 0 6px 12px -2px rgba(152, 199, 0, 0.4);
    transform: translateY(-1px);
}

/* Complete button — same visual weight as Next */
.bdh-cc__popup .bdh-cc__popup-nav-complete {
    background: linear-gradient(135deg, #98c700, #7da600);
    color: #fff;
    border-color: #98c700;
    box-shadow: 0 2px 8px rgba(152, 199, 0, 0.3);
}

.bdh-cc__popup .bdh-cc__popup-nav-complete:hover:not(:disabled) {
    background: linear-gradient(135deg, #8ab800, #6d9200);
    border-color: #8ab800;
    box-shadow: 0 4px 12px rgba(152, 199, 0, 0.4);
    transform: translateY(-1px);
}

/* Complete button — done state */
.bdh-cc__popup .bdh-cc__popup-nav-complete--done {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
    box-shadow: none;
    cursor: default;
}

.bdh-cc__popup .bdh-cc__popup-nav-complete--done .material-symbols-outlined {
    color: #2e7d32;
}

/* Disabled states */
.bdh-cc__popup .bdh-cc__popup-nav-prev:disabled,
.bdh-cc__popup .bdh-cc__popup-nav-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Icons */
.bdh-cc__popup .bdh-cc__popup-nav-prev .material-symbols-outlined,
.bdh-cc__popup .bdh-cc__popup-nav-next .material-symbols-outlined {
    font-size: 18px;
}

.bdh-cc__popup .bdh-cc__popup-nav-complete .material-symbols-outlined {
    font-size: 20px;
    font-variation-settings: 'FILL' 1;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .bdh-cc__popup-sidebar {
        width: 260px;
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .bdh-cc__popup-sidebar {
        display: none;
    }

    .bdh-cc__popup-content {
        padding: 16px;
    }

    .bdh-cc__popup-title {
        font-size: 18px;
    }

    .bdh-cc__popup-topbar {
        padding: 0 12px;
        height: 48px;
    }

    .bdh-cc__popup-course-name {
        font-size: 14px;
    }

    .bdh-cc__popup-progress-wrap {
        display: none;
    }

    .bdh-cc__popup-nav {
        padding: 10px 12px;
    }
}

/* ── Editor Preview Mode ── */
.bdh-cc__popup--preview {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    height: 600px;
    border: 2px dashed #98c700;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}


/* ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
   8. PROFILE PAGE
   ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ */

.bdh-profile {
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bdh-profile *,
.bdh-profile *::before,
.bdh-profile *::after {
    box-sizing: border-box;
}

.bdh-profile__layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ── Sidebar ── */
.bdh-profile__sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.bdh-profile__sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f4e6;
}

.bdh-profile__user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f4e6;
}

.bdh-profile__sidebar-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.bdh-profile__sidebar-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f1f4e6;
}

.bdh-profile__user-meta {
    min-width: 0;
}

.bdh-profile__user-name {
    font-size: 15px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bdh-profile__user-badge {
    font-size: 13px;
    font-weight: 500;
    color: #5c6f1f;
    margin: 0;
}

/* ── Nav ── */
.bdh-profile__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bdh-profile__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #191d0c;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bdh-profile__nav-item .material-symbols-outlined {
    font-size: 20px;
    color: #5c6f1f;
    transition: color 0.2s ease;
}

.bdh-profile__nav-item:hover {
    background: #fbfcf8;
    color: #191d0c;
    text-decoration: none;
}

.bdh-profile__nav-item:hover .material-symbols-outlined {
    color: #98c700;
}

.bdh-profile__nav-item--active {
    background: rgba(152, 199, 0, 0.1);
    color: #98c700;
    font-weight: 700;
}

.bdh-profile__nav-item--active .material-symbols-outlined {
    color: #98c700;
}

.bdh-profile__nav-item--danger {
    color: #ef4444;
}

.bdh-profile__nav-item--danger .material-symbols-outlined {
    color: #ef4444;
}

.bdh-profile__nav-item--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.bdh-profile__nav-divider {
    height: 1px;
    background: #f1f4e6;
    margin: 8px 0;
}

/* ── Main Content ── */
.bdh-profile__main {
    flex: 1;
    min-width: 0;
}

.bdh-profile__layout--no-sidebar {
    display: block;
}

.bdh-profile__layout--no-sidebar .bdh-profile__main {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Tabs ── */
.bdh-profile__tab {
    display: none;
}

.bdh-profile__tab--active {
    display: block;
    animation: bdhProfileFadeIn 0.3s ease;
}

@keyframes bdhProfileFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Content Card ── */
.bdh-profile__content-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f4e6;
    overflow: hidden;
}

.bdh-profile__card-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f1f4e6;
}

.bdh-profile__card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 4px;
}

.bdh-profile__card-header p {
    font-size: 14px;
    color: #5c6f1f;
    margin: 0;
}

.bdh-profile__card-body {
    padding: 28px;
}

/* ── Avatar Section ── */
.bdh-profile__avatar-section {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 36px;
}

.bdh-profile__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.bdh-profile__avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: block;
}

.bdh-profile__avatar-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #f1f4e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #191d0c;
    padding: 0;
}

.bdh-profile__avatar-btn:hover {
    color: #98c700;
    border-color: #98c700;
    transform: scale(1.05);
}

.bdh-profile__avatar-btn .material-symbols-outlined {
    font-size: 18px;
}

.bdh-profile__avatar-info {
    flex: 1;
}

.bdh-profile__avatar-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 12px;
}

.bdh-profile__avatar-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.bdh-profile__avatar-hint {
    font-size: 12px;
    color: #5c6f1f;
    margin: 0;
}

/* ── Buttons ── */
.bdh-profile__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.bdh-profile__btn--primary {
    background: #98c700;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(152, 199, 0, 0.25);
}

.bdh-profile__btn--primary:hover {
    background: #86b300;
    box-shadow: 0 6px 20px rgba(152, 199, 0, 0.35);
    transform: translateY(-1px);
}

.bdh-profile__btn--primary:active {
    transform: scale(0.97);
}

.bdh-profile__btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bdh-profile__btn--primary .material-symbols-outlined {
    font-size: 18px;
}

.bdh-profile__btn--outline {
    background: #fbfcf8;
    color: #191d0c;
    padding: 12px 24px;
    font-size: 14px;
    border: 1px solid #f1f4e6;
}

.bdh-profile__btn--outline:hover {
    background: #f0f2e8;
    border-color: #dde2cc;
}

.bdh-profile__btn--ghost {
    background: transparent;
    color: #5c6f1f;
    padding: 12px 24px;
    font-size: 14px;
}

.bdh-profile__btn--ghost:hover {
    background: #f5f7ed;
    color: #191d0c;
}

.bdh-profile__btn--sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ── Form ── */
.bdh-profile__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bdh-profile__form--narrow {
    max-width: 520px;
}

.bdh-profile__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bdh-profile__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bdh-profile__field--full {
    grid-column: 1 / -1;
}

.bdh-profile__field label {
    font-size: 13px;
    font-weight: 700;
    color: #191d0c;
}

.bdh-profile__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bdh-profile__input-wrap>.material-symbols-outlined:first-child {
    position: absolute;
    left: 12px;
    font-size: 20px;
    color: #5c6f1f;
    pointer-events: none;
    z-index: 1;
}

.bdh-profile__input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: #fbfcf8;
    border: 1px solid #f1f4e6;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    color: #191d0c;
    outline: none;
    transition: all 0.2s ease;
}

.bdh-profile__input-wrap input::placeholder {
    color: rgba(92, 111, 31, 0.5);
}

.bdh-profile__input-wrap input:focus {
    border-color: #98c700;
    box-shadow: 0 0 0 3px rgba(152, 199, 0, 0.12);
    background: #ffffff;
}

.bdh-profile__input-wrap--disabled input {
    background: #f3f4f0;
    color: #999;
    cursor: not-allowed;
    border-color: transparent;
}

.bdh-profile__field textarea {
    width: 100%;
    padding: 14px;
    background: #fbfcf8;
    border: 1px solid #f1f4e6;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    color: #191d0c;
    outline: none;
    resize: none;
    transition: all 0.2s ease;
}

.bdh-profile__field textarea::placeholder {
    color: rgba(92, 111, 31, 0.5);
}

.bdh-profile__field textarea:focus {
    border-color: #98c700;
    box-shadow: 0 0 0 3px rgba(152, 199, 0, 0.12);
    background: #ffffff;
}

/* ── Verified Badge ── */
.bdh-profile__verified-badge {
    position: absolute;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(152, 199, 0, 0.1);
    color: #98c700;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.bdh-profile__verified-badge .material-symbols-outlined {
    font-size: 14px;
    font-variation-settings: 'FILL' 1;
}

/* ── Toggle Password ── */
.bdh-profile__toggle-pass {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #5c6f1f;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdh-profile__toggle-pass:hover {
    opacity: 1;
}

.bdh-profile__toggle-pass .material-symbols-outlined {
    font-size: 20px;
}

/* ── Password Strength ── */
.bdh-profile__pass-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

.bdh-profile__strength-bar {
    flex: 1;
    height: 4px;
    background: #f1f4e6;
    border-radius: 4px;
    overflow: hidden;
    max-width: 200px;
}

.bdh-profile__strength-bar>div {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

/* ── Form Footer ── */
.bdh-profile__form-footer {
    padding-top: 8px;
}

.bdh-profile__form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ── Messages ── */
.bdh-profile__msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    animation: bdhProfileFadeIn 0.3s ease;
}

.bdh-profile__msg--success {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.bdh-profile__msg--error {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ── Spin animation ── */
@keyframes bdhSpin {
    to {
        transform: rotate(360deg);
    }
}

.bdh-spin {
    animation: bdhSpin 1s linear infinite;
}

/* ── Empty state ── */
.bdh-profile__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    gap: 12px;
}

.bdh-profile__empty>.material-symbols-outlined {
    font-size: 56px;
    color: #c5d396;
    font-variation-settings: 'FILL' 0;
}

.bdh-profile__empty p {
    font-size: 15px;
    color: #5c6f1f;
    margin: 0 0 8px;
    font-weight: 500;
}

/* ── Courses List ── */
.bdh-profile__courses-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bdh-profile__course-card {
    background: #ffffff;
    border: 1px solid #f1f4e6;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.bdh-profile__course-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: #e3eacd;
}

.bdh-profile__course-thumb {
    display: block;
    position: relative;
    width: 180px;
    min-height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    text-decoration: none;
}

.bdh-profile__course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bdh-profile__course-card:hover .bdh-profile__course-thumb img {
    transform: scale(1.04);
}

.bdh-profile__course-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
}

.bdh-profile__course-badge--done {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    backdrop-filter: blur(4px);
}

.bdh-profile__course-badge--done .material-symbols-outlined {
    font-size: 13px;
    font-variation-settings: 'FILL' 1;
}

.bdh-profile__course-badge--progress {
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

/* ── Course body: Info + Button row ── */
.bdh-profile__course-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.bdh-profile__course-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bdh-profile__course-title {
    font-size: 15px;
    font-weight: 700;
    color: #191d0c;
    margin: 0;
    line-height: 1.4;
}

.bdh-profile__course-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.bdh-profile__course-title a:hover {
    color: #98c700;
}

.bdh-profile__course-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bdh-profile__course-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #5c6f1f;
    font-weight: 500;
}

.bdh-profile__course-detail .material-symbols-outlined {
    font-size: 16px;
    color: #98c700;
}

.bdh-profile__course-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 260px;
}

.bdh-profile__progress-bar {
    flex: 1;
    height: 6px;
    background: #f1f4e6;
    border-radius: 6px;
    overflow: hidden;
}

.bdh-profile__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #98c700, #7da600);
    border-radius: 6px;
    transition: width 0.5s ease;
    min-width: 0;
}

.bdh-profile__progress-text {
    font-size: 12px;
    font-weight: 600;
    color: #5c6f1f;
    white-space: nowrap;
    min-width: 42px;
}

.bdh-profile__course-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Orders Table ── */
.bdh-profile__orders-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bdh-profile__orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.bdh-profile__orders-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #5c6f1f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #f1f4e6;
    white-space: nowrap;
    background: #fbfcf8;
}

.bdh-profile__orders-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f4e6;
    color: #191d0c;
    vertical-align: middle;
}

.bdh-profile__orders-table tbody tr:last-child td {
    border-bottom: none;
}

.bdh-profile__orders-table tbody tr:hover td {
    background: #fbfcf8;
}

.bdh-profile__order-code {
    font-weight: 700;
    color: #98c700 !important;
    font-size: 13px;
}

.bdh-profile__order-amount {
    font-weight: 700;
}

.bdh-profile__order-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bdh-profile__order-status--pending {
    background: rgba(234, 179, 8, 0.1);
    color: #b45309;
}

.bdh-profile__order-status--completed {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.bdh-profile__order-status--cancelled {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.bdh-profile__order-status--processing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}


/* ── Responsive: Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .bdh-profile__layout {
        gap: 24px;
    }

    .bdh-profile__sidebar {
        width: 220px;
    }

    .bdh-profile__sidebar-card {
        padding: 20px;
    }

    .bdh-profile__card-body {
        padding: 24px;
    }

    .bdh-profile__course-thumb {
        width: 150px;
    }
}

/* ── Responsive: Small Tablet / Large Mobile (≤ 768px) ── */
@media (max-width: 768px) {
    .bdh-profile__layout {
        flex-direction: column;
        gap: 0;
    }

    .bdh-profile__sidebar {
        width: 100%;
        position: static;
    }

    .bdh-profile__sidebar-card {
        border-radius: 12px 12px 0 0;
        padding: 16px;
        box-shadow: none;
        border-bottom: none;
    }

    .bdh-profile__user-info {
        padding-bottom: 14px;
        margin-bottom: 14px;
        gap: 12px;
    }

    .bdh-profile__sidebar-avatar {
        width: 44px;
        height: 44px;
    }

    .bdh-profile__sidebar-avatar img {
        width: 44px;
        height: 44px;
    }

    .bdh-profile__user-name {
        font-size: 14px;
    }

    .bdh-profile__user-badge {
        font-size: 12px;
    }

    /* ── Nav → Horizontal scroll tabs ── */
    .bdh-profile__nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .bdh-profile__nav::-webkit-scrollbar {
        display: none;
    }

    .bdh-profile__nav-item {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
        gap: 6px;
        white-space: nowrap;
        border-radius: 10px;
    }

    .bdh-profile__nav-item .material-symbols-outlined {
        font-size: 18px;
    }

    .bdh-profile__nav-divider {
        display: none;
    }

    .bdh-profile__nav-item--danger {
        margin-left: auto;
    }

    /* ── Content card ── */
    .bdh-profile__content-card {
        border-radius: 0 0 12px 12px;
    }

    .bdh-profile__card-header {
        padding: 18px 20px;
    }

    .bdh-profile__card-header h2 {
        font-size: 18px;
    }

    .bdh-profile__card-body {
        padding: 18px 20px;
    }

    /* ── Avatar section ── */
    .bdh-profile__avatar-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .bdh-profile__avatar-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .bdh-profile__avatar-actions {
        justify-content: center;
    }

    .bdh-profile__avatar-hint {
        text-align: center;
    }

    .bdh-profile__avatar-img {
        width: 100px;
        height: 100px;
    }

    /* ── Form ── */
    .bdh-profile__form-row {
        grid-template-columns: 1fr;
    }

    .bdh-profile__form-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .bdh-profile__form-actions .bdh-profile__btn {
        width: 100%;
    }

    /* ── Courses: keep row, shrink thumb ── */
    .bdh-profile__course-thumb {
        width: 140px;
        flex: 0 0 140px;
        min-height: 90px;
    }

    .bdh-profile__course-body {
        padding: 14px 16px;
        gap: 12px;
    }

    .bdh-profile__course-btn {
        align-self: center;
    }

    /* ── Orders table ── */
    .bdh-profile__orders-table thead th,
    .bdh-profile__orders-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* ── Empty state ── */
    .bdh-profile__empty {
        padding: 36px 16px;
    }

    .bdh-profile__empty>.material-symbols-outlined {
        font-size: 48px;
    }
}

/* ── Responsive: Mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .bdh-profile__sidebar-card {
        padding: 14px;
        border-radius: 10px 10px 0 0;
    }

    .bdh-profile__user-info {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .bdh-profile__sidebar-avatar {
        width: 38px;
        height: 38px;
    }

    .bdh-profile__sidebar-avatar img {
        width: 38px;
        height: 38px;
    }

    .bdh-profile__user-name {
        font-size: 13px;
    }

    .bdh-profile__user-badge {
        font-size: 11px;
    }

    /* ── Nav: icon-only mode ── */
    .bdh-profile__nav {
        gap: 3px;
    }

    .bdh-profile__nav-item {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 8px;
        gap: 5px;
    }

    .bdh-profile__nav-item>span:not(.material-symbols-outlined) {
        display: none;
    }

    .bdh-profile__nav-item .material-symbols-outlined {
        font-size: 20px;
    }

    /* ── Content card ── */
    .bdh-profile__content-card {
        border-radius: 0 0 10px 10px;
    }

    .bdh-profile__card-header {
        padding: 14px 16px;
    }

    .bdh-profile__card-header h2 {
        font-size: 16px;
    }

    .bdh-profile__card-header p {
        font-size: 13px;
    }

    .bdh-profile__card-body {
        padding: 14px 16px;
    }

    /* ── Avatar ── */
    .bdh-profile__avatar-img {
        width: 88px;
        height: 88px;
    }

    .bdh-profile__avatar-btn {
        width: 30px;
        height: 30px;
    }

    .bdh-profile__avatar-btn .material-symbols-outlined {
        font-size: 15px;
    }

    .bdh-profile__avatar-info h4 {
        font-size: 14px;
    }

    /* ── Buttons ── */
    .bdh-profile__btn--sm {
        padding: 7px 14px;
        font-size: 12px;
    }

    /* ── Inputs ── */
    .bdh-profile__input-wrap input {
        padding: 10px 12px 10px 36px;
        font-size: 13px;
    }

    .bdh-profile__input-wrap>.material-symbols-outlined:first-child {
        font-size: 18px;
        left: 10px;
    }

    .bdh-profile__field textarea {
        padding: 12px;
        font-size: 13px;
    }

    .bdh-profile__field label {
        font-size: 12px;
    }

    .bdh-profile__verified-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    /* ── Course cards ── */
    .bdh-profile__course-title {
        font-size: 13px;
    }

    .bdh-profile__course-detail {
        font-size: 11px;
    }

    .bdh-profile__course-thumb {
        width: 100px;
        flex: 0 0 100px;
        min-height: 70px;
    }

    .bdh-profile__course-body {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .bdh-profile__course-info {
        min-width: 0;
        gap: 4px;
    }

    .bdh-profile__course-progress {
        max-width: 100%;
    }

    .bdh-profile__course-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .bdh-profile__progress-text {
        font-size: 11px;
    }

    /* ── Orders table → stacked cards ── */
    .bdh-profile__orders-table,
    .bdh-profile__orders-table thead,
    .bdh-profile__orders-table tbody,
    .bdh-profile__orders-table th,
    .bdh-profile__orders-table td,
    .bdh-profile__orders-table tr {
        display: block;
    }

    .bdh-profile__orders-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .bdh-profile__orders-table tbody tr {
        background: #fbfcf8;
        border: 1px solid #f1f4e6;
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 12px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .bdh-profile__orders-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .bdh-profile__orders-table tbody td {
        padding: 0;
        border-bottom: none;
        font-size: 13px;
    }

    .bdh-profile__orders-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: #5c6f1f;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 2px;
    }

    .bdh-profile__orders-table tbody td:nth-child(2) {
        grid-column: 1 / -1;
    }

    .bdh-profile__orders-table tbody tr:hover td {
        background: transparent;
    }

    .bdh-profile__order-code {
        font-size: 14px !important;
    }

    /* ── Empty state ── */
    .bdh-profile__empty {
        padding: 28px 12px;
    }

    .bdh-profile__empty>.material-symbols-outlined {
        font-size: 42px;
    }

    .bdh-profile__empty p {
        font-size: 13px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   BLOG GRID WIDGET (.bdh-bg)
   Figma: tin-tuc.html lines 203-428
   Cards = article.flex.flex-col.gap-4 (NO bg, NO border)
   ═══════════════════════════════════════════════════════════════ */


.bdh-bg__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.bdh-bg__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
}

.bdh-bg__thumb-link {
    display: block;
    text-decoration: none;
}

.bdh-bg__thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding-bottom: 56.25%;
}

.bdh-bg__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bdh-bg__card:hover .bdh-bg__img {
    transform: scale(1.1);
}

.bdh-bg__img--placeholder {
    background: linear-gradient(135deg, #f1f4e6, #e3eacd);
}

.bdh-bg__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 700;
    color: #98c700;
    text-transform: uppercase;
    z-index: 2;
}

.bdh-bg__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bdh-bg__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #5c664a;
}

.bdh-bg__meta .material-symbols-outlined {
    font-size: 14px;
}

.bdh-bg__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bdh-bg__meta-sep {
    opacity: 0.5;
}

.bdh-bg__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #191d0c;
}

.bdh-bg__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.bdh-bg__card:hover .bdh-bg__title a {
    color: #98c700;
}

.bdh-bg__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5c664a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bdh-bg__author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.bdh-bg__author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.bdh-bg__author-name {
    font-size: 12px;
    font-weight: 500;
    color: #191d0c;
}

/* Pagination */
.bdh-bg__pag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.bdh-bg__pag a,
.bdh-bg__pag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #5c664a;
    text-decoration: none;
    transition: all 0.2s;
}

.bdh-bg__pag a:hover {
    border-color: #98c700;
    color: #98c700;
}

.bdh-bg__pag .current {
    background: #98c700;
    color: #fff;
    border-color: #98c700;
    box-shadow: 0 4px 12px rgba(152, 199, 0, 0.2);
}

.bdh-bg__pag .dots {
    border: none;
    background: transparent;
}

.bdh-bg__empty {
    text-align: center;
    color: #5c664a;
    padding: 40px 20px;
}


/* ═══════════════════════════════════════════════════════════════
   FEATURED POST WIDGET (.bdh-fp)
   Figma: tin-tuc.html lines 162-201
   ═══════════════════════════════════════════════════════════════ */

.bdh-fp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
    background: #ffffff;
    border: 1px solid #f5f5f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.bdh-fp:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.bdh-fp--vertical {
    grid-template-columns: 1fr;
}

.bdh-fp__thumb-wrap {
    display: block;
    text-decoration: none;
}

.bdh-fp__thumb {
    position: relative;
    width: 100%;
    height: 384px;
    border-radius: 12px;
    overflow: hidden;
}

.bdh-fp__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bdh-fp:hover .bdh-fp__img {
    transform: scale(1.05);
}

.bdh-fp__img--placeholder {
    background: linear-gradient(135deg, #f1f4e6, #e3eacd);
}

.bdh-fp__thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
    pointer-events: none;
}

.bdh-fp:hover .bdh-fp__thumb-overlay {
    background: transparent;
}

.bdh-fp__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bdh-fp__top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bdh-fp__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(152, 199, 0, 0.1);
    font-size: 12px;
    font-weight: 700;
    color: #98c700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bdh-fp__date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #5c664a;
}

.bdh-fp__date .material-symbols-outlined {
    font-size: 16px;
}

.bdh-fp__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #191d0c;
}

.bdh-fp__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.bdh-fp__title a:hover {
    color: #98c700;
}

.bdh-fp__excerpt {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #5c664a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bdh-fp__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.bdh-fp__author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.bdh-fp__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bdh-fp__author-name {
    font-size: 14px;
    font-weight: 700;
    color: #191d0c;
}

.bdh-fp__author-role {
    font-size: 12px;
    color: #5c664a;
}

@media (max-width: 1024px) {
    .bdh-fp {
        grid-template-columns: 1fr;
    }

    .bdh-fp__thumb {
        height: 240px;
    }

    .bdh-fp__title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .bdh-fp {
        padding: 12px;
        gap: 16px;
    }

    .bdh-fp__thumb {
        height: 200px;
    }

    .bdh-fp__title {
        font-size: 19px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER WIDGET (.bdh-nl)
   Figma: tin-tuc.html lines 459-485
   ═══════════════════════════════════════════════════════════════ */

.bdh-nl {
    position: relative;
    overflow: hidden;
    background-color: #2a3020;
    border-radius: 16px;
    color: #fff;
}

.bdh-nl--full {
    padding: 48px;
    text-align: center;
}

.bdh-nl--compact {
    padding: 24px;
    text-align: center;
}

.bdh-nl__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.2;
    pointer-events: none;
}

.bdh-nl__orb--1 {
    width: 256px;
    height: 256px;
    background-color: #98c700;
    top: -40px;
    right: -40px;
}

.bdh-nl__orb--2 {
    width: 256px;
    height: 256px;
    background-color: #98c700;
    bottom: -40px;
    left: -40px;
    opacity: 0.1;
}

.bdh-nl__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bdh-nl__icon {
    font-size: 48px;
    color: #98c700;
    display: block;
    margin-bottom: 4px;
}

.bdh-nl__heading {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.bdh-nl--compact .bdh-nl__heading {
    font-size: 20px;
}

.bdh-nl__desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
}

.bdh-nl__form {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
    max-width: 480px;
}

.bdh-nl__input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.bdh-nl__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.bdh-nl__input:focus {
    border-color: #98c700;
    background: rgba(255, 255, 255, 0.15);
}

.bdh-nl__btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    background: #98c700;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(152, 199, 0, 0.2);
}

.bdh-nl__btn:hover {
    background: #7da600;
    transform: translateY(-1px);
}

.bdh-nl__disclaimer {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
    .bdh-nl--full {
        padding: 32px 20px;
    }

    .bdh-nl__heading {
        font-size: 22px;
    }

    .bdh-nl__form {
        flex-direction: column;
    }

    .bdh-nl__btn {
        width: 100%;
    }
}


/* ═══════════════════════════════════════════════════════════════
   RELATED POSTS WIDGET (.bdh-rp)
   Figma: chi-tiet-bai-viet.html lines 425-487
   ═══════════════════════════════════════════════════════════════ */

.bdh-rp__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 16px;
}

.bdh-rp__heading .material-symbols-outlined {
    color: #98c700;
}

.bdh-rp__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bdh-rp__item {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.bdh-rp__item--list {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bdh-rp__thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.bdh-rp__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bdh-rp__item:hover .bdh-rp__thumb-img {
    transform: scale(1.05);
}

.bdh-rp__thumb--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f4e6, #e3eacd);
}

.bdh-rp__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bdh-rp__item--grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bdh-rp__thumb-grid {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.bdh-rp__thumb-grid .bdh-rp__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bdh-rp__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bdh-rp__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #191d0c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.bdh-rp__item:hover .bdh-rp__title {
    color: #98c700;
}

.bdh-rp__item--grid .bdh-rp__title {
    font-size: 18px;
    font-weight: 700;
}

.bdh-rp__meta {
    display: block;
    font-size: 12px;
    color: #5c664a;
    margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════════
   POST SHARE WIDGET (.bdh-ps)
   Figma: chi-tiet-bai-viet.html lines 271-306
   ═══════════════════════════════════════════════════════════════ */

.bdh-ps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(152, 199, 0, 0.1);
}

.bdh-ps__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bdh-ps__tag {
    display: inline-block;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid rgba(152, 199, 0, 0.2);
    border-radius: 8px;
    font-size: 14px;
    color: #5c6b33;
    text-decoration: none;
    transition: all 0.2s;
}

.bdh-ps__tag:hover {
    background: #98c700;
    color: #fff;
    border-color: #98c700;
}

.bdh-ps__share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bdh-ps__share-label {
    font-size: 14px;
    font-weight: 700;
    color: #191d0c;
}

.bdh-ps__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(152, 199, 0, 0.1);
    color: #98c700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.bdh-ps__share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.bdh-ps__share-btn .material-symbols-outlined {
    font-size: 18px;
}

.bdh-ps__share-btn:hover {
    background: #98c700;
    color: #fff;
}

.bdh-ps__share-btn:hover svg {
    fill: #fff;
}

@media (max-width: 600px) {
    .bdh-ps {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════════════
   POST AUTHOR INFO WIDGET (.bdh-pai)
   ═══════════════════════════════════════════════ */

.bdh-pai {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(152, 199, 0, 0.1);
    border-bottom: 1px solid rgba(152, 199, 0, 0.1);
    padding: 16px 0;
    gap: 16px;
}

.bdh-pai__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bdh-pai__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bdh-pai__info {
    display: flex;
    flex-direction: column;
}

.bdh-pai__name {
    font-size: 14px;
    font-weight: 700;
    color: #191d0c;
    line-height: 1.3;
}

.bdh-pai__role {
    font-size: 12px;
    color: #5c664a;
    line-height: 1.3;
}

.bdh-pai__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.bdh-pai__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #5c664a;
}

.bdh-pai__meta-icon {
    font-size: 16px;
}

@media (max-width: 767px) {
    .bdh-pai {
        flex-direction: column;
        align-items: flex-start;
    }

    .bdh-pai__meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 12px;
    }
}

/* ═══════════════════════════════════════════════
   POST CONTENT WIDGET (.bdh-pc)
   ═══════════════════════════════════════════════ */

.bdh-pc {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-break: break-word;
}

.bdh-pc h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: #191d0c;
    margin: 2em 0 0.75em;
    line-height: 1.3;
}

.bdh-pc h3 {
    font-size: 1.25em;
    font-weight: 600;
    color: #191d0c;
    margin: 1.5em 0 0.5em;
    line-height: 1.4;
}

.bdh-pc h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 1.25em 0 0.5em;
}

.bdh-pc p {
    margin: 0 0 1.25em;
}

.bdh-pc img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.bdh-pc figure {
    margin: 1.5em 0;
    text-align: center;
}

.bdh-pc figure.aligncenter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bdh-pc figcaption {
    font-size: 0.85em;
    color: #888;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

.bdh-pc a {
    color: #98c700;
    text-decoration: underline;
    transition: color 0.2s;
}

.bdh-pc a:hover {
    color: #7da600;
}

.bdh-pc blockquote {
    border-left: 4px solid #98c700;
    background: #f8faf3;
    padding: 16px 20px;
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.bdh-pc ul,
.bdh-pc ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.bdh-pc li {
    margin-bottom: 0.5em;
}

/* ═══════════════════════════════════════════════
   TABLE OF CONTENTS WIDGET (.bdh-toc)
   ═══════════════════════════════════════════════ */

.bdh-toc {
    background: #f8faf3;
    border: 1px solid rgba(152, 199, 0, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
}

.bdh-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bdh-toc__title {
    font-size: 18px;
    font-weight: 700;
    color: #191d0c;
}

.bdh-toc__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: #5c664a;
    transition: color 0.2s;
}

.bdh-toc__toggle:hover {
    color: #98c700;
}

.bdh-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.bdh-toc__item {
    padding: 6px 0;
}

.bdh-toc__item--sub {
    padding-left: 16px;
}

.bdh-toc__link {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s;
}

.bdh-toc__link:hover {
    color: #98c700;
}

.bdh-toc__link--active {
    color: #98c700;
    font-weight: 600;
}

.bdh-toc__number {
    color: #98c700;
    font-weight: 600;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   POST COMMENTS WIDGET (.bdh-cmt)
   ═══════════════════════════════════════════════ */

.bdh-cmt {
    border-top: 1px solid rgba(152, 199, 0, 0.1);
    padding-top: 32px;
    margin-top: 48px;
}

.bdh-cmt__title {
    font-size: 24px;
    font-weight: 700;
    color: #191d0c;
    margin: 0 0 24px;
}

/* Form */
.bdh-cmt__form-wrap {
    margin-bottom: 40px;
}

.bdh-cmt__form {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bdh-cmt__form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bdh-cmt__form-body {
    flex: 1;
    min-width: 0;
}

.bdh-cmt__textarea {
    width: 100%;
    border: 1px solid rgba(152, 199, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    height: 112px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.bdh-cmt__textarea:focus {
    border-color: #98c700;
    box-shadow: 0 0 0 3px rgba(152, 199, 0, 0.15);
}

.bdh-cmt__form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.bdh-cmt__submit {
    background: #98c700;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bdh-cmt__submit:hover {
    background: #7da600;
}

/* Comment List */
.bdh-cmt__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bdh-cmt__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bdh-cmt__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bdh-cmt__content {
    flex: 1;
    min-width: 0;
}

.bdh-cmt__card {
    border: 1px solid rgba(152, 199, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
}

.bdh-cmt__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bdh-cmt__name {
    font-weight: 700;
    font-size: 14px;
    color: #191d0c;
    margin: 0;
}

.bdh-cmt__date {
    font-size: 12px;
    color: #999;
}

.bdh-cmt__body {
    font-size: 14px;
    color: #5c664a;
    line-height: 1.6;
    margin: 0;
}

.bdh-cmt__actions {
    display: flex;
    gap: 16px;
    margin: 4px 0 0 8px;
}

.bdh-cmt__action {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    transition: color 0.2s;
}

.bdh-cmt__action:hover {
    color: #98c700;
}

.bdh-cmt__load-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px;
    background: none;
    border: none;
    color: #98c700;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 16px;
    transition: color 0.2s;
}

.bdh-cmt__load-more:hover {
    text-decoration: underline;
}

/* ═══ Comment Form: Input Fields + Animation ═══ */

.bdh-cmt__fields {
    margin-top: 12px;
}

.bdh-cmt__field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .bdh-cmt__field-row {
        grid-template-columns: 1fr;
    }
}

.bdh-cmt__input {
    width: 100%;
    border: 1px solid rgba(152, 199, 0, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.bdh-cmt__input:focus {
    border-color: #98c700;
    box-shadow: 0 0 0 3px rgba(152, 199, 0, 0.15);
}

.bdh-cmt__input::placeholder {
    color: #999;
}

.bdh-cmt__logged-as {
    font-size: 13px;
    color: #5c664a;
}

.bdh-cmt__closed {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

@keyframes bdh-cmt-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

/* ═══ Reset theme overrides on comment buttons ═══ */

.bdh-cmt__action,
.bdh-cmt__action:hover,
.bdh-cmt__action:focus,
.bdh-cmt__load-more,
.bdh-cmt__load-more:hover,
.bdh-cmt__load-more:focus,
.bdh-cmt__submit,
.bdh-cmt__submit:hover,
.bdh-cmt__submit:focus {
    background-color: transparent;
    text-decoration: none;
    box-shadow: none;
    outline: none;
}

/* Override: submit keeps its own bg */
.bdh-cmt__submit {
    background-color: #98c700;
}

.bdh-cmt__submit:hover {
    background-color: #7da600;
}