/* ==========================================================================
   Bahbah Academy — public site theme (navy + orange)
   ========================================================================== */
:root {
    --bb-navy: #0f2a4f;
    --bb-navy-700: #14355f;
    --bb-navy-900: #0a1e3a;
    --bb-orange: #f7931e;
    --bb-orange-600: #e8800a;
    --bb-bg: #f5f7fa;
    --bb-surface: #ffffff;
    --bb-ink: #0f2a4f;
    --bb-muted: #64748b;
    --bb-line: #e6eaf0;
    --bb-radius: 16px;
    --bb-shadow: 0 10px 30px rgba(15, 42, 79, .08);
    --bb-shadow-lg: 0 20px 50px rgba(15, 42, 79, .14);
    --bb-font: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.bb-site {
    font-family: var(--bb-font);
    color: var(--bb-ink);
    background: var(--bb-bg);
    -webkit-font-smoothing: antialiased;
}
body.bb-site h1, body.bb-site h2, body.bb-site h3, body.bb-site h4, body.bb-site h5, body.bb-site h6,
body.bb-site p, body.bb-site a, body.bb-site li, body.bb-site span, body.bb-site button,
body.bb-site input, body.bb-site textarea, body.bb-site select, body.bb-site label {
    font-family: var(--bb-font);
}
body.bb-menu-open { overflow: hidden; }
html:has(body.bb-site), body.bb-site { overflow-x: clip; }

.bb-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.bb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: 12px; border: 2px solid transparent;
    font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    cursor: pointer; white-space: nowrap;
}
.bb-btn:hover { transform: translateY(-2px); }
.bb-btn--navy { background: var(--bb-navy); color: #fff !important; }
.bb-btn--navy:hover { background: var(--bb-navy-700); box-shadow: 0 10px 24px rgba(15, 42, 79, .25); }
.bb-btn--orange { background: var(--bb-orange); color: #fff !important; }
.bb-btn--orange:hover { background: var(--bb-orange-600); box-shadow: 0 10px 24px rgba(247, 147, 30, .35); }
.bb-btn--outline { background: transparent; color: var(--bb-navy) !important; border-color: var(--bb-navy); }
.bb-btn--outline:hover { background: var(--bb-navy); color: #fff !important; }
.bb-btn--block { width: 100%; }
.bb-btn--lg { padding: 15px 34px; font-size: 18px; }
.bb-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent;
    color: var(--bb-navy); cursor: pointer;
}
.bb-icon-btn:hover { background: var(--bb-bg); }

/* legacy buttons inherit the new palette */
body.bb-site .btn_1, body.bb-site .btn_2, body.bb-site .btn_4 {
    background: var(--bb-orange) !important; background-image: none !important; color: #fff !important;
    border-radius: 12px; font-weight: 700; border: 0;
}
body.bb-site .btn_1:hover, body.bb-site .btn_2:hover { background: var(--bb-orange-600) !important; }

/* ---------- header ---------- */
.bb-header {
    position: sticky; top: 0; z-index: 1000; background: #fff;
    border-bottom: 1px solid var(--bb-line); transition: box-shadow .2s ease;
}
.bb-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 42, 79, .08); }
.bb-header__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.bb-header__logo img { height: 48px; width: auto; display: block; }
.bb-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.bb-nav__head { display: none; }
.bb-nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0 auto; padding: 0; }
.bb-nav__links a {
    position: relative; display: block; padding: 10px 14px; color: var(--bb-navy);
    font-weight: 700; font-size: 16px; text-decoration: none; transition: color .2s;
}
.bb-nav__links a::after {
    content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 3px; border-radius: 3px;
    background: var(--bb-orange); transform: scaleX(0); transition: transform .25s ease;
}
.bb-nav__links a:hover { color: var(--bb-orange); }
.bb-nav__links a.is-active { color: var(--bb-orange); }
.bb-nav__links a.is-active::after, .bb-nav__links a:hover::after { transform: scaleX(1); }
.bb-nav__side { display: flex; align-items: center; gap: 18px; }
.bb-lang { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--bb-muted); }
.bb-lang a { color: var(--bb-muted); text-decoration: none; }
.bb-lang a.is-active, .bb-lang a:hover { color: var(--bb-navy); }
.bb-user .dropdown-menu { border: 1px solid var(--bb-line); border-radius: 12px; box-shadow: var(--bb-shadow); padding: 8px; text-align: start; }
.bb-user .dropdown-item { border-radius: 8px; padding: 8px 14px; font-weight: 600; color: var(--bb-navy); }
.bb-user .dropdown-item:hover { background: var(--bb-bg); color: var(--bb-orange); }
.bb-header__burger { display: none; margin-inline-start: auto; }
.bb-nav-backdrop { display: none; }

@media (max-width: 1100px) {
    .bb-nav__links a { padding: 10px 9px; font-size: 15px; }
    .bb-nav { gap: 12px; }
}
@media (max-width: 991px) {
    .bb-header__inner { min-height: 70px; }
    .bb-header__logo img { height: 44px; }
    .bb-header__burger { display: inline-flex; }
    .bb-nav {
        position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(340px, 86vw);
        flex-direction: column; align-items: stretch; gap: 0; background: #fff; z-index: 1002;
        padding: 18px 20px 28px; overflow-y: auto;
        transform: translateX(110%); transition: transform .3s ease, visibility .3s; box-shadow: var(--bb-shadow-lg);
        visibility: hidden;
    }
    [dir="rtl"] .bb-nav { transform: translateX(-110%); }
    body.bb-menu-open .bb-nav { visibility: visible; }
    body.bb-menu-open .bb-nav { transform: translateX(0) !important; }
    .bb-nav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--bb-line); margin-bottom: 10px; }
    .bb-nav__head img { height: 40px; }
    .bb-nav__links { flex-direction: column; align-items: stretch; margin: 0; gap: 2px; }
    .bb-nav__links a { padding: 13px 12px; font-size: 17px; border-radius: 10px; }
    .bb-nav__links a::after { display: none; }
    .bb-nav__links a.is-active { background: #fff4e6; }
    .bb-nav__side { flex-direction: column; align-items: stretch; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--bb-line); }
    .bb-lang { justify-content: center; }
    .bb-nav__side .bb-btn { width: 100%; }
    .bb-user .dropdown-menu { position: static !important; transform: none !important; float: none; width: 100%; margin-top: 8px; }
    .bb-nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(10, 30, 58, .5); z-index: 1001; opacity: 0; pointer-events: none; transition: opacity .3s; }
    body.bb-menu-open .bb-nav-backdrop { opacity: 1; pointer-events: auto; }
}

/* ---------- hero slider ---------- */
.bb-hero { position: relative; background: var(--bb-navy); color: #fff; overflow: hidden; }
.bb-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 300px at 85% 10%, rgba(255, 255, 255, .06), transparent 70%),
        radial-gradient(500px 400px at 10% 100%, rgba(247, 147, 30, .10), transparent 70%);
}
.bb-hero__track { position: relative; min-height: 560px; }
.bb-slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.bb-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.bb-slide__grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding: 64px 0 96px; width: 100%; }
.bb-slide__text { text-align: center; }
.bb-slide__text h1 {
    color: #fff !important; font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; line-height: 1.25; margin: 0 0 18px;
}
.bb-slide__text h1 .accent { color: var(--bb-orange); }
.bb-slide__text p { color: rgba(255, 255, 255, .82); font-size: 19px; line-height: 1.9; margin: 0 auto 32px; max-width: 540px; }
.bb-slide__text .bb-btn svg { transition: transform .2s; }
.bb-slide__text .bb-btn:hover svg { transform: translateX(-4px); }
[dir="ltr"] .bb-slide__text .bb-btn svg { transform: scaleX(-1); }
.bb-slide__media { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1 / 0.86; }
.bb-slide__media .shape-a {
    position: absolute; inset-inline-start: -18px; top: 40px; width: 62%; height: 62%;
    border-radius: 24px; background: var(--bb-orange);
}
.bb-slide__media .shape-b {
    position: absolute; inset-inline-end: -14px; bottom: -14px; width: 120px; height: 120px; border-radius: 50%;
    border: 14px solid var(--bb-orange); opacity: .9;
}
.bb-slide__media .dots {
    position: absolute; inset-inline-end: -36px; top: 18px; width: 90px; height: 90px; opacity: .45;
    background-image: radial-gradient(#fff 2px, transparent 2.5px); background-size: 16px 16px;
}
.bb-slide__media img {
    position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 260px 260px 24px 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.bb-slide.is-active .bb-slide__text > * { animation: bbRise .8s both; }
.bb-slide.is-active .bb-slide__text > *:nth-child(2) { animation-delay: .08s; }
.bb-slide.is-active .bb-slide__text > *:nth-child(3) { animation-delay: .16s; }
.bb-slide.is-active .bb-slide__media { animation: bbFade 1s both; }
@keyframes bbRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bbFade { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.bb-hero__controls {
    position: absolute; bottom: 30px; inset-inline: 0; z-index: 3;
}
.bb-hero__controls .bb-container { display: flex; align-items: center; gap: 18px; }
@media (min-width: 992px) { .bb-hero__controls .bb-container { padding-inline-end: calc(50% + 24px); justify-content: center; } }
.bb-hero__arrow {
    width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35);
    background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s;
}
.bb-hero__arrow:hover { background: var(--bb-orange); border-color: var(--bb-orange); }
[dir="ltr"] .bb-hero__arrow svg { transform: scaleX(-1); }
.bb-hero__counter { font-weight: 800; font-size: 18px; letter-spacing: 1px; direction: ltr; }
.bb-hero__counter .cur { color: var(--bb-orange); }
.bb-hero__counter .tot { color: rgba(255, 255, 255, .6); }
.bb-hero__progress { flex: 0 1 220px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.bb-hero__progress span { display: block; height: 100%; width: 0; background: var(--bb-orange); border-radius: 4px; }
[dir="rtl"] .bb-hero__progress span { margin-inline-start: 0; }

@media (max-width: 991px) {
    .bb-hero__track { min-height: 0; }
    .bb-slide__grid { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 100px; text-align: center; }
    .bb-slide__text p { margin-inline: auto; font-size: 17px; }
    .bb-slide__media { width: min(100%, 420px); order: -1; }
    .bb-hero__controls .bb-container { justify-content: center; }
    .bb-hero__progress { flex-basis: 120px; }
}
@media (max-width: 575px) {
    .bb-slide__media .dots, .bb-slide__media .shape-b { display: none; }
    .bb-slide__media .shape-a { inset-inline-start: -10px; top: -10px; }
}

/* ---------- sections ---------- */
.bb-section { padding: 80px 0; }
.bb-section--white { background: #fff; }
.bb-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.bb-section__title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin: 0; position: relative; padding-bottom: 14px; }
.bb-section__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: var(--bb-orange); }
.bb-section__head--center { justify-content: center; text-align: center; }
.bb-section__head--center .bb-section__title::after { inset-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"] .bb-section__head--center .bb-section__title::after { transform: translateX(50%); }
.bb-link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--bb-orange) !important; font-weight: 800; font-size: 17px; text-decoration: none !important; }
.bb-link-more:hover { gap: 10px; }
[dir="ltr"] .bb-link-more svg { transform: scaleX(-1); }

/* vision / mission / values */
.bb-pillars-wrap { background: #fff; border-bottom: 1px solid var(--bb-line); }
.bb-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.bb-pillar { padding: 34px 36px; text-align: start; }
.bb-pillar + .bb-pillar { border-inline-start: 1px solid var(--bb-line); }
.bb-pillar__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bb-pillar__icon { flex: none; display: inline-flex; color: var(--bb-navy); order: 2; }
.bb-pillar h3 { font-size: 26px; font-weight: 800; margin: 0; color: var(--bb-navy); }
.bb-pillar p, .bb-pillar li { color: var(--bb-muted); font-size: 17px; line-height: 1.9; margin: 0; }
.bb-pillar ul { list-style: none; padding: 0; margin: 0; }
@media (max-width: 991px) {
    .bb-pillars { grid-template-columns: 1fr; }
    .bb-pillar { padding: 26px 4px; }
    .bb-pillar + .bb-pillar { border-inline-start: 0; border-top: 1px solid var(--bb-line); }
    .bb-section { padding: 56px 0; }
}

/* ---------- course cards ---------- */
.bb-course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.bb-course-card {
    position: relative; display: grid; grid-template-columns: 42% 1fr; gap: 0; overflow: hidden;
    background: #fff; border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); border: 1px solid var(--bb-line);
    transition: transform .25s ease, box-shadow .25s ease; color: inherit; text-decoration: none !important;
}
.bb-course-card:hover { transform: translateY(-4px); box-shadow: var(--bb-shadow-lg); }
.bb-course-card__img {
    position: relative; overflow: hidden; min-height: 190px;
    background: linear-gradient(135deg, var(--bb-navy), var(--bb-navy-700));
}
.bb-course-card__img::before {
    content: ""; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; opacity: .35;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7931e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10L12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E");
}
.bb-course-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bb-course-card:hover .bb-course-card__img img { transform: scale(1.05); }
.bb-course-card__badge {
    position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; padding: 4px 12px; border-radius: 999px;
    background: var(--bb-orange); color: #fff; font-size: 13px; font-weight: 800;
}
.bb-course-card__body { display: flex; flex-direction: column; padding: 22px 22px 20px; min-width: 0; }
.bb-course-card__title { font-size: 19px; font-weight: 800; line-height: 1.5; margin: 0 0 8px; color: var(--bb-navy); }
.bb-course-card__desc { color: var(--bb-muted); font-size: 14.5px; line-height: 1.8; margin: 0 0 10px; }
.bb-course-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--bb-muted); font-size: 14px; font-weight: 600; }
.bb-course-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.bb-course-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.bb-price { color: var(--bb-orange); font-weight: 800; font-size: 22px; line-height: 1; }
.bb-price small { font-size: 15px; font-weight: 700; }
.bb-price del { color: var(--bb-muted); font-size: 14px; font-weight: 600; margin-inline-end: 6px; }
.bb-round-arrow {
    flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--bb-navy); border: 1.5px solid var(--bb-line); transition: all .2s;
}
.bb-course-card:hover .bb-round-arrow { background: var(--bb-orange); border-color: var(--bb-orange); color: #fff; }
[dir="ltr"] .bb-round-arrow svg { transform: scaleX(-1); }
@media (max-width: 991px) { .bb-course-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
    .bb-course-card { grid-template-columns: 1fr; }
    .bb-course-card__img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- page banner (inner pages) ---------- */
.bb-page-head { background: var(--bb-navy); color: #fff; padding: 44px 0 48px; position: relative; overflow: hidden; }
.bb-page-head::after {
    content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
    border: 28px solid rgba(247, 147, 30, .25);
}
.bb-page-head h1 { color: #fff !important; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin: 10px 0 0; line-height: 1.4; position: relative; z-index: 1; }
.bb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 15px; position: relative; z-index: 1; }
.bb-crumbs a { color: rgba(255, 255, 255, .75) !important; text-decoration: none; }
.bb-crumbs a:hover { color: var(--bb-orange) !important; }
.bb-crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .4); margin-inline-end: 8px; }
.bb-crumbs li:last-child { color: var(--bb-orange); }

/* legacy breadcrumb on not-yet-redesigned pages */
body.bb-site .breadcrumb.breadcrumb_bg { background: var(--bb-navy) !important; background-image: none !important; padding: 56px 0 !important; margin: 0; border-radius: 0; }
body.bb-site .breadcrumb.breadcrumb_bg::after { display: none; }
body.bb-site .breadcrumb .breadcrumb_iner, body.bb-site .breadcrumb .breadcrumb_iner_item { height: auto !important; display: block; }
body.bb-site .breadcrumb h2 { color: #fff !important; font-weight: 800; }
body.bb-site .breadcrumb p, body.bb-site .breadcrumb span { color: rgba(255, 255, 255, .8) !important; }

/* ---------- course details ---------- */
.bb-course-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.bb-course-hero > .bb-course-info { order: -1; }
.bb-course-hero__media { position: relative; border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow); background: #fff; }
.bb-course-hero__media img { display: block; width: 100%; height: auto; }
.bb-course-hero__media.is-empty { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--bb-navy), var(--bb-navy-700)); }
.bb-course-hero__media.is-empty::before {
    content: ""; position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; opacity: .35;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7931e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10L12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E");
}
.bb-card { background: #fff; border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); border: 1px solid var(--bb-line); padding: 28px; }
.bb-course-info h2 { font-size: 26px; font-weight: 800; line-height: 1.5; margin: 0 0 14px; }
.bb-course-info__meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--bb-muted); font-weight: 600; margin-bottom: 18px; }
.bb-course-info__meta span { display: inline-flex; align-items: center; gap: 8px; }
.bb-course-info__meta svg { color: var(--bb-orange); }
.bb-course-info .bb-price { font-size: 34px; display: block; margin: 6px 0 22px; }
.bb-course-info .bb-actions { display: grid; gap: 12px; }
.bb-course-info .alert { border-radius: 12px; font-size: 14.5px; }
.bb-course-desc { margin-top: 28px; }
.bb-course-desc h3, .bb-lessons h3 { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.bb-course-desc .content { color: #334155; font-size: 16.5px; line-height: 2; white-space: pre-line; }
.bb-lessons { margin-top: 28px; }
.bb-lesson { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--bb-line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.bb-lesson__num { flex: none; width: 30px; color: var(--bb-muted); font-weight: 700; font-size: 14px; text-align: center; }
.bb-lesson__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.bb-lesson__icon--play { background: #fff4e6; color: var(--bb-orange); }
.bb-lesson__icon--lock { background: var(--bb-bg); color: var(--bb-muted); }
.bb-lesson__title { flex: 1; min-width: 0; font-weight: 700; color: var(--bb-navy); }
.bb-lesson__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 0; text-decoration: none !important; }
.bb-chip--orange { background: var(--bb-orange); color: #fff !important; }
.bb-chip--navy { background: var(--bb-navy); color: #fff !important; }
.bb-chip--muted { background: var(--bb-bg); color: var(--bb-muted) !important; cursor: not-allowed; }
.bb-btn--whatsapp { background: #25d366; color: #fff !important; }
.bb-btn--whatsapp:hover { background: #1fb457; }
@media (max-width: 991px) { .bb-course-hero { grid-template-columns: 1fr; } }
@media (max-width: 575px) {
    .bb-card { padding: 20px; }
    .bb-lesson { flex-wrap: wrap; }
    .bb-lesson__actions { width: 100%; padding-inline-start: 84px; }
}

/* ---------- courses listing ---------- */
.bb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.bb-search { position: relative; flex: 1 1 320px; max-width: 460px; }
.bb-search input { width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--bb-line); background: #fff; padding-inline: 48px 16px; font-size: 16px; color: var(--bb-navy); outline: none; }
.bb-search input:focus { border-color: var(--bb-orange); box-shadow: 0 0 0 4px rgba(247, 147, 30, .15); }
.bb-search svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--bb-muted); }
.bb-empty { text-align: center; color: var(--bb-muted); padding: 40px 0; font-size: 18px; }

/* ---------- footer ---------- */
.bb-footer { background: var(--bb-navy); color: rgba(255, 255, 255, .78); padding-top: 64px; margin-top: 0; }
.bb-footer h4 { color: #fff !important; font-size: 20px; font-weight: 800; margin: 0 0 18px; }
.bb-footer p { color: rgba(255, 255, 255, .72); line-height: 1.9; font-size: 15.5px; }
.bb-footer__grid { display: grid; grid-template-columns: 1.2fr 1.1fr 1fr; gap: 48px; }
.bb-footer__logo { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 16px; margin-bottom: 18px; }
.bb-footer__logo img { height: 46px; width: auto; display: block; }
.bb-footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bb-footer__social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s; text-decoration: none; }
.bb-footer__social a:hover { background: var(--bb-orange); }
.bb-subscribe { display: flex; gap: 8px; background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 6px; }
.bb-subscribe input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: #fff; padding-inline: 12px; font-size: 15px; outline: none; }
.bb-subscribe input::placeholder { color: rgba(255, 255, 255, .55); }
.bb-subscribe .bb-btn { padding: 10px 20px; }
.bb-footer__contact ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bb-footer__contact li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.7; }
.bb-footer__contact svg { flex: none; color: var(--bb-orange); margin-top: 3px; }
.bb-footer__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.bb-stat { display: flex; align-items: center; gap: 14px; }
.bb-stat__icon { flex: none; width: 54px; height: 54px; border-radius: 16px; background: rgba(247, 147, 30, .14); color: var(--bb-orange); display: inline-flex; align-items: center; justify-content: center; }
.bb-stat strong { display: block; color: #fff; font-size: 26px; font-weight: 800; line-height: 1.1; direction: ltr; text-align: start; }
[dir="rtl"] .bb-stat strong { text-align: right; }
.bb-stat span { font-size: 14.5px; }
.bb-footer__bottom { background: var(--bb-navy-900); padding: 18px 0; text-align: center; }
.bb-footer__bottom p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .6); }
@media (max-width: 991px) {
    .bb-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .bb-footer__brand { grid-column: 1 / -1; }
    .bb-footer__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .bb-footer { padding-top: 44px; }
    .bb-footer__grid { grid-template-columns: 1fr; }
    .bb-footer__stats { gap: 22px 12px; }
    .bb-stat { flex-direction: column; text-align: center; gap: 8px; }
    .bb-stat strong, [dir="rtl"] .bb-stat strong { text-align: center; }
}

/* keep floating whatsapp above the sticky header shadow */
body.bb-site .floating-whatsapp-btn { z-index: 999; }

/* footer: centered content */
.bb-footer__grid > div { text-align: center; }
.bb-footer__social { justify-content: center; }
.bb-footer__contact li { justify-content: center; text-align: center; }
.bb-footer__stats .bb-stat { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
.bb-footer__stats .bb-stat strong, [dir="rtl"] .bb-footer__stats .bb-stat strong { text-align: center; }

/* ---------- auth pages (login / register / password) ---------- */
body.bb-auth {
    min-height: 100vh; margin: 0; position: relative; overflow-x: clip;
    background: radial-gradient(700px 400px at 90% 0%, rgba(255, 255, 255, .06), transparent 70%), var(--bb-navy);
}
.bb-auth__shape { position: fixed; pointer-events: none; z-index: 0; }
.bb-auth__shape--a { width: 320px; height: 320px; border-radius: 48px; background: var(--bb-orange); opacity: .9; inset-inline-start: -140px; bottom: -120px; transform: rotate(18deg); }
.bb-auth__shape--b { width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(247, 147, 30, .55); inset-inline-end: -70px; top: -70px; }
.bb-auth__dots { position: fixed; inset-inline-end: 8%; bottom: 10%; width: 110px; height: 110px; opacity: .3; pointer-events: none; background-image: radial-gradient(#fff 2px, transparent 2.5px); background-size: 16px 16px; }
.bb-auth__main { position: relative; z-index: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 28px 16px 48px; }
.bb-auth__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bb-auth__back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .85); font-weight: 700; text-decoration: none; }
.bb-auth__back:hover { color: var(--bb-orange); }
[dir="ltr"] .bb-auth__back svg { transform: scaleX(-1); }
.bb-auth .bb-lang a { color: rgba(255, 255, 255, .6); }
.bb-auth .bb-lang a.is-active, .bb-auth .bb-lang a:hover { color: #fff; }
.bb-auth .bb-lang span { color: rgba(255, 255, 255, .4); }
.bb-auth__card { background: #fff; border-radius: 24px; padding: 36px 36px 30px; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.bb-auth__logo { display: block; text-align: center; margin-bottom: 22px; }
.bb-auth__logo img { height: 64px; width: auto; display: inline-block; }
.bb-auth__title { text-align: center; color: var(--bb-navy); font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.bb-auth__subtitle { text-align: center; color: var(--bb-muted); font-size: 15.5px; margin: 0 0 26px; }
.bb-auth__status { text-align: center; color: #15803d; font-weight: 700; margin-bottom: 14px; }
.bb-field { margin-bottom: 16px; }
.bb-field label { display: block; font-weight: 700; color: var(--bb-navy); font-size: 15px; margin-bottom: 8px; }
.bb-field__control { position: relative; display: flex; align-items: center; }
.bb-field__control > svg { position: absolute; inset-inline-start: 14px; color: var(--bb-muted); pointer-events: none; }
.bb-field__control input {
    width: 100%; height: 52px; border: 1.5px solid var(--bb-line); border-radius: 14px; background: var(--bb-bg);
    padding-inline: 46px 48px; font-size: 15.5px; color: var(--bb-navy); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
    box-shadow: none;
}
.bb-field__control input:focus { border-color: var(--bb-orange); background: #fff; box-shadow: 0 0 0 4px rgba(247, 147, 30, .15); }
.bb-field__control input:focus + .bb-field__eye, .bb-field__control:focus-within > svg { color: var(--bb-orange); }
.bb-field__eye { position: absolute; inset-inline-end: 8px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--bb-muted); border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bb-field__eye:hover, .bb-field__eye.is-on { color: var(--bb-orange); }
.bb-field__error { margin-top: 6px; color: #dc2626; font-size: 14px; list-style: none; padding: 0; }
.bb-check { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 20px; cursor: pointer; color: var(--bb-navy); font-weight: 600; }
.bb-check input { width: 18px; height: 18px; accent-color: var(--bb-orange); border-radius: 4px; }
.bb-auth__switch { text-align: center; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--bb-line); }
.bb-auth__switch a { color: var(--bb-navy); font-weight: 800; text-decoration: none; }
.bb-auth__switch a:hover { color: var(--bb-orange); }
@media (max-width: 575px) {
    .bb-auth__card { padding: 26px 20px 22px; border-radius: 20px; }
    .bb-auth__logo img { height: 52px; }
    .bb-auth__title { font-size: 24px; }
}
[dir="rtl"] .bb-field__control input { text-align: right; direction: rtl; }

/* course card images: show the whole image (no crop, no hover zoom) */
.bb-course-card__img img { object-fit: contain; background: #fff; }
.bb-course-card:hover .bb-course-card__img img { transform: none; }
.bb-course-card__img:has(img) { background: #fff; }
.bb-course-card__img:has(img)::before { display: none; }
