:root {
    --bal-primary: #4f46e5;
    --bal-primary-dark: #4338ca;
    --bal-primary-light: #eef2ff;
    --bal-accent: #0ea5a4;
    --bal-accent-dark: #0d9488;
    --bal-ink: #111827;
    --bal-muted: #6b7280;
    --bal-surface: #ffffff;
    --bal-surface-alt: #f8fafc;
    --bal-border: #e5e7eb;
    --bal-success: #16a34a;
    --bal-warning: #d97706;
    --bal-danger: #dc2626;
    --bal-radius: 0.75rem;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--bal-ink);
    background-color: var(--bal-surface-alt);
}
html[lang="bn"] body {
    font-family: 'Noto Sans Bengali', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (max-width: 991.98px) {
    body {
        padding-bottom: 4rem;
    }
}

.bal-bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 1030;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(28, 42, 82, 0.62), rgba(9, 15, 34, 0.66));
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 14px 34px rgba(2, 6, 20, 0.45),
        0 2px 8px rgba(2, 6, 20, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    padding: 0.25rem 0.4rem;
}
.bal-bottom-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0.1rem;
    padding: 0.2rem;
    color: rgba(233, 238, 250, 0.92);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: 999px;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.bal-bottom-nav-item i {
    font-size: 1.22rem;
    line-height: 1;
    color: rgba(233, 238, 250, 0.92);
}
.bal-bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.bal-bottom-nav-item:active .bal-bottom-nav-icon {
    transform: scale(0.82);
}
.bal-bottom-nav-item.active {
    color: #ffffff;
}
.bal-bottom-nav-item.active .bal-bottom-nav-icon {
    background: linear-gradient(180deg, #3b5bdb 0%, #1c39a3 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -8px 12px rgba(0, 0, 0, 0.2),
        0 0 10px 2px rgba(56, 189, 248, 0.55),
        0 0 22px 4px rgba(56, 189, 248, 0.3);
}
.bal-bottom-nav-item.active i {
    color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1680px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.btn-primary {
    background-color: var(--bal-primary);
    border-color: var(--bal-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bal-primary-dark);
    border-color: var(--bal-primary-dark);
}
.btn-outline-primary {
    color: var(--bal-primary);
    border-color: var(--bal-primary);
}
.btn-outline-primary:hover {
    background-color: var(--bal-primary);
    border-color: var(--bal-primary);
}
.text-primary { color: var(--bal-primary) !important; }
.bg-primary { background-color: var(--bal-primary) !important; }
.link-primary { color: var(--bal-primary); }

.bal-navbar {
    background-color: var(--bal-surface);
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
}
@media (max-width: 991.98px) {
    .bal-navbar .navbar-brand img {
        height: 48px !important;
    }
}
.bal-navbar .navbar-brand {
    font-weight: 800;
    color: var(--bal-ink);
    letter-spacing: -0.01em;
}
.bal-navbar .navbar-brand span {
    color: var(--bal-primary);
}
.bal-navbar .nav-link {
    font-weight: 500;
    color: var(--bal-ink);
}
.bal-navbar .nav-link:hover {
    color: var(--bal-primary);
}
.bal-wishlist-active {
    color: #e11d48 !important;
}
.bal-wishlist-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.5rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background-color: #e11d48;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

.bal-search {
    width: 100%;
}
.bal-mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--bal-border);
    border-radius: 0.375rem;
    background-color: transparent;
    color: var(--bal-ink);
    font-size: 1.1rem;
}
.bal-mobile-search-toggle:hover,
.bal-mobile-search-toggle[aria-expanded="true"] {
    color: var(--bal-primary);
    border-color: var(--bal-primary);
}
.bal-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bal-muted);
    pointer-events: none;
    font-size: 1rem;
}
.bal-password-toggle {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    color: var(--bal-muted);
    padding: 0;
}
.bal-password-toggle:hover {
    color: var(--bal-primary);
}
.bal-search-input.form-control {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    font-size: 0.95rem;
    border: 1px solid var(--bal-border);
    border-radius: 999px;
    background-color: var(--bal-surface-alt);
}
.bal-search-input.form-control:focus {
    background-color: var(--bal-surface);
    border-color: var(--bal-primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}
@media (min-width: 992px) {
    .bal-search {
        max-width: 340px;
    }
}

.bal-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    width: auto;
    max-width: 340px;
    max-height: 380px;
    overflow-y: auto;
    background: var(--bal-surface);
    border: 1px solid var(--bal-border);
    border-radius: var(--bal-radius);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    z-index: 1050;
}
.bal-search-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    color: var(--bal-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--bal-border);
}
.bal-search-item:last-child {
    border-bottom: none;
}
.bal-search-item:hover {
    background-color: var(--bal-surface-alt);
}
.bal-search-item-thumb {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--bal-primary-light);
}
.bal-search-item-thumb-placeholder {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    background-color: var(--bal-primary-light);
    color: var(--bal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bal-search-item-title {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bal-search-item-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bal-primary);
    flex-shrink: 0;
}
.bal-search-empty,
.bal-search-loading {
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--bal-muted);
    text-align: center;
}

.bal-hero {
    background: linear-gradient(135deg, var(--bal-primary) 0%, #6366f1 55%, var(--bal-accent) 130%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.bal-hero .bal-hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    display: inline-block;
    color: #fff;
}
.bal-hero a.bal-hero-badge:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
}
.bal-cert-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #78350f;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}
.bal-cert-badge i {
    color: #78350f;
}

.bal-hero-light {
    background: var(--bal-surface-alt);
    position: relative;
    overflow: hidden;
}
.bal-hero-light::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bal-primary), var(--bal-accent));
}

.bal-benefits {
    background: var(--bal-primary);
}
.bal-benefits-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: #fff;
    flex-shrink: 0;
}
@media (max-width: 767.98px) {
    .bal-benefits-icon {
        font-size: 2rem;
    }
    .bal-benefits-text {
        font-size: 0.8rem;
    }
}
.bal-hero-light .bal-highlight {
    color: var(--bal-primary);
}

.bal-hero-search {
    background: #fff;
    border-radius: 0.85rem;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    padding: 0.4rem;
}
.bal-hero-search input.form-control {
    border: none;
    background: transparent;
    box-shadow: none;
}
.bal-hero-search input.form-control:focus {
    box-shadow: none;
}
.bal-hero-search button {
    border-radius: 0.55rem;
}
@media (max-width: 767.98px) {
    .bal-hero-search input.form-control::placeholder {
        font-size: 1rem;
    }
}

.bal-collage {
    position: relative;
    padding: 1rem 1rem 3.5rem 1rem;
}
.bal-collage-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 400px;
    position: relative;
    z-index: 2;
}
.bal-collage-tile {
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    box-shadow: 0 15px 35px rgba(17, 24, 39, 0.12);
    overflow: hidden;
}
.bal-collage-tile.has-image {
    background: var(--bal-surface-alt);
}
.bal-collage-tile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.bal-collage-tile-link:hover {
    opacity: 0.9;
}
.bal-collage-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bal-collage-tile-main {
    grid-row: 1 / span 2;
    background: linear-gradient(135deg, var(--bal-primary), #6366f1);
}
.bal-collage-tile-top {
    background: linear-gradient(135deg, var(--bal-accent), #14b8a6);
}
.bal-collage-tile-bottom {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}
.bal-collage-dots {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 140px;
    height: 140px;
    background-image: radial-gradient(circle, rgba(79, 70, 229, 0.25) 2px, transparent 2px);
    background-size: 14px 14px;
    z-index: 1;
}
.bal-collage-badge {
    position: absolute;
    left: 0.5rem;
    bottom: 5.5rem;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.35);
    z-index: 3;
    animation: bal-bounce 2.5s ease-in-out infinite;
}
.bal-collage-card {
    position: absolute;
    left: 2.75rem;
    bottom: 0;
    max-width: 260px;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 15px 35px rgba(17, 24, 39, 0.15);
    z-index: 3;
}
@keyframes bal-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.bal-section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}
.bal-section-eyebrow {
    color: var(--bal-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.bal-card {
    position: relative;
    background: var(--bal-surface);
    border: 1px solid var(--bal-border);
    border-radius: var(--bal-radius);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
}

.bal-course-card .bal-thumb {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: var(--bal-radius);
    border-top-right-radius: var(--bal-radius);
    background-color: var(--bal-primary-light);
}
.bal-wishlist-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    width: 2.1rem;
    height: 2.1rem;
    border: none;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--bal-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.15);
    transition: color 0.15s ease, transform 0.15s ease;
}
.bal-wishlist-btn:hover {
    color: #e11d48;
    transform: scale(1.08);
}
.bal-wishlist-btn.is-active {
    color: #e11d48;
}
.bal-enroll-badge {
    border: none;
    border-radius: 999px;
    background-color: #c7d2fe;
    color: var(--bal-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.bal-enroll-badge:hover {
    background-color: var(--bal-primary);
    color: #fff;
    transform: scale(1.05);
}
.bal-course-card .badge-free {
    background-color: var(--bal-success);
}
.bal-certificate-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background-color: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.bal-certificate-badge i {
    color: #d97706;
}
.bal-premium-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 60%, #3f3210 130%);
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.35);
    white-space: nowrap;
}
.bal-premium-badge i {
    color: #fbbf24;
}
@media (max-width: 767.98px) {
    .bal-course-card h3 {
        font-size: 0.8rem;
    }
    .bal-course-card .bal-price {
        font-size: 0.8rem;
    }
    .bal-certificate-badge {
        padding: 0.225rem 0.54rem;
        font-size: 0.648rem;
    }
    .bal-course-card .gap-2 {
        flex-wrap: nowrap;
        gap: 0.3rem;
    }
    .bal-premium-badge {
        padding: 0.18rem 0.45rem;
        font-size: 0.586rem;
    }
    .bal-course-card .badge-free {
        padding: 0.18rem 0.45rem;
        font-size: 0.670rem;
    }
    .bal-course-card .bal-enroll-badge {
        padding: 0.18rem 0.5rem;
        font-size: 0.614rem;
    }
}

.bal-price {
    font-weight: 800;
    color: var(--bal-ink);
}
.bal-price-old {
    text-decoration: line-through;
    color: var(--bal-muted);
    font-weight: 400;
}

.bal-category-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon name"
        "icon count";
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.1rem;
    height: 100%;
    padding: 0.9rem 1.1rem;
    background-color: #eef1f6;
    border-radius: 0.65rem;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.bal-category-item:hover {
    background-color: #e4e9f2;
    transform: translateY(-2px);
}
.bal-category-icon {
    grid-area: icon;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--bal-primary);
    flex-shrink: 0;
}
.bal-category-name {
    grid-area: name;
    font-weight: 600;
    color: var(--bal-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.bal-category-count {
    grid-area: count;
    font-size: 0.75rem;
    color: var(--bal-muted);
}
@media (max-width: 767.98px) {
    .bal-category-item {
        grid-template-areas:
            "name name"
            "icon count";
        row-gap: 0.35rem;
    }
    .bal-category-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        font-size: 0.8rem;
    }
    .bal-category-icon {
        font-size: 1.125rem;
    }
}

.bal-icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background-color: var(--bal-primary-light);
    color: var(--bal-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.bal-icon-circle-danger {
    background-color: #fee2e2;
    color: var(--bal-danger);
}

.bal-footer {
    background-color: #0b1120;
    color: #cbd5e1;
}
.bal-footer a {
    color: #cbd5e1;
    text-decoration: none;
}
.bal-footer a:hover {
    color: #fff;
}
.bal-footer h6 {
    color: #fff;
    font-weight: 700;
}
.bal-footer .bal-social a {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bal-footer form.d-flex {
    min-width: 0;
}
.bal-footer form.d-flex input {
    min-width: 0;
    flex: 1 1 auto;
}

.bal-sidebar {
    background: var(--bal-surface);
    border-right: 1px solid var(--bal-border);
}
@media (min-width: 992px) {
    .bal-sidebar {
        min-height: calc(100vh - 4rem);
    }
}
.bal-sidebar .nav-link {
    color: var(--bal-muted);
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.55rem 0.9rem;
}
.bal-sidebar .nav-link.active,
.bal-sidebar .nav-link:hover {
    background-color: var(--bal-primary-light);
    color: var(--bal-primary);
}
.bal-sidebar .nav-link i {
    width: 1.25rem;
    display: inline-block;
    text-align: center;
}
.bal-lang-switch .btn {
    font-weight: 600;
    padding: 0.25rem 0.55rem;
}
.bal-sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background-color: var(--bal-warning);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.bal-dashboard-mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--bal-surface);
    border: 1px solid var(--bal-border);
    border-radius: var(--bal-radius);
    padding: 0.7rem 1rem;
    font-weight: 600;
    color: var(--bal-ink);
}
.bal-dashboard-mobile-nav-toggle i:first-child {
    color: var(--bal-primary);
}
.bal-dashboard-mobile-nav-chevron {
    transition: transform 0.2s ease;
    color: var(--bal-muted);
}
.bal-dashboard-mobile-nav-toggle[aria-expanded="true"] .bal-dashboard-mobile-nav-chevron {
    transform: rotate(180deg);
}
.bal-dashboard-mobile-nav-panel {
    background: var(--bal-surface);
    border: 1px solid var(--bal-border);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
}
.bal-dashboard-mobile-nav-panel .nav-link {
    color: var(--bal-muted);
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.55rem 0.9rem;
}
.bal-dashboard-mobile-nav-panel .nav-link.active,
.bal-dashboard-mobile-nav-panel .nav-link:hover {
    background-color: var(--bal-primary-light);
    color: var(--bal-primary);
}
.bal-dashboard-mobile-nav-panel .nav-link i {
    width: 1.25rem;
    display: inline-block;
    text-align: center;
}

.bal-auth-card {
    max-width: 460px;
    margin: 2.5rem auto;
    border-radius: 1rem;
}
.bal-auth-logo {
    height: 64px;
    width: auto;
}

.bal-progress-thin {
    height: 0.5rem;
    border-radius: 999px;
}

.bal-stat-tile {
    border-radius: var(--bal-radius);
    background: var(--bal-surface);
    border: 1px solid var(--bal-border);
}

.bal-rating .bi-star-fill,
.bal-rating .bi-star-half {
    color: #f59e0b;
}
.bal-rating .bi-star {
    color: #d1d5db;
}

.bal-lesson-list .list-group-item.active-lesson {
    background-color: var(--bal-primary-light);
    border-color: var(--bal-primary);
}

.bal-badge-soft-primary {
    background-color: var(--bal-primary-light);
    color: var(--bal-primary);
}
.bal-badge-soft-success {
    background-color: #dcfce7;
    color: var(--bal-success);
}
.bal-badge-soft-warning {
    background-color: #fef3c7;
    color: var(--bal-warning);
}

.bal-quiz-highlight {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid #fbbf24;
    border-radius: 0.75rem;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}
.bal-quiz-highlight-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
}
.bal-quiz-highlight-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #ffffff;
    border: 1px solid #fbbf24;
    border-radius: 0.5rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #92400e;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.bal-quiz-highlight-link:hover {
    background-color: #fffbeb;
    color: #78350f;
    transform: translateX(2px);
}
.bal-quiz-highlight-link + .bal-quiz-highlight-link {
    margin-top: 0.4rem;
}
.bal-quiz-highlight-link i:first-child {
    color: #d97706;
}

.bal-blog-content {
    line-height: 1.75;
    color: var(--bal-ink);
}
.bal-blog-content h1,
.bal-blog-content h2,
.bal-blog-content h3,
.bal-blog-content h4 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.bal-blog-content p {
    margin-bottom: 1rem;
}
.bal-blog-content ul,
.bal-blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.bal-blog-content a {
    color: var(--bal-primary);
}
.bal-blog-content blockquote {
    border-left: 4px solid var(--bal-primary-light);
    padding: 0.5rem 1rem;
    color: var(--bal-muted);
    margin: 1rem 0;
}
.bal-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bal-radius);
}
.bal-blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.bal-blog-content table th,
.bal-blog-content table td {
    border: 1px solid var(--bal-border);
    padding: 0.5rem 0.75rem;
}
.bal-blog-content table th {
    background-color: var(--bal-surface-alt);
    font-weight: 600;
}
