/* ==========================================================================
   Acadify — "Bright" website theme
   Playful and friendly: rounded shapes, sunny multi-colour palette,
   soft blobs/waves and hand-drawn doodles. Everything keys off the
   --site-* appearance tokens printed by themes.shared.head (docs/themes.md).
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
body.theme-bright {
    --b-bg: #FFFBF3;
    --b-bg-alt: #FFF3DF;
    --b-surface: #FFFFFF;
    --b-surface-2: #FFF8EC;
    --b-ink: #231B48;
    --b-ink-soft: #3B335F;
    --b-muted: #5F5A78;
    --b-line: #F0E5D2;
    --b-line-strong: #E4D5BC;

    --b-sun: #FFC53D;
    --b-sun-deep: #E9A514;
    --b-coral: #FF7A6B;
    --b-coral-deep: #E85B4B;
    --b-mint: #2FC6A2;
    --b-mint-deep: #1FA685;
    --b-sky: #45B8F5;
    --b-sky-deep: #2398D6;
    --b-pink: #FF8DC4;

    --b-sun-soft: #FFF0C7;
    --b-coral-soft: #FFE2DD;
    --b-mint-soft: #D5F5EC;
    --b-sky-soft: #DCF1FD;
    --b-pink-soft: #FFE4F1;

    --b-accent: var(--site-accent, #6D28D9);
    --b-accent-ink: var(--site-accent, #6D28D9);
    --b-accent-contrast: var(--site-accent-contrast, #FFFFFF);
    --b-accent-soft: var(--site-accent-soft, rgba(109, 40, 217, .12));

    --b-footer: #221A45;
    --b-footer-ink: #F4F1FF;
    --b-footer-muted: #C9C3E6;

    --b-shadow-sm: 0 4px 14px -6px rgba(35, 27, 72, .16);
    --b-shadow: 0 18px 40px -22px rgba(35, 27, 72, .35);
    --b-shadow-lg: 0 30px 60px -30px rgba(35, 27, 72, .45);

    --b-r-card: var(--site-radius-card, 22px);
    --b-r-input: var(--site-radius-input, 14px);
    --b-r-btn: var(--site-radius-button, 999px);
    --b-r-blob: 46% 54% 58% 42% / 44% 46% 54% 56%;

    --b-font-head: var(--site-font-heading, Nunito, sans-serif);
    --b-font-body: var(--site-font-body, "DM Sans", sans-serif);

    --b-container: 1240px;
    --b-gutter: 20px;
    --b-header-h: 84px;
}

body.theme-bright.dark-mode {
    --b-bg: #15122B;
    --b-bg-alt: #1C1838;
    --b-surface: #231F45;
    --b-surface-2: #2A2552;
    --b-ink: #F5F2FF;
    --b-ink-soft: #E2DDF7;
    --b-muted: #B8B1D9;
    --b-line: #353063;
    --b-line-strong: #433D76;

    --b-sun-soft: rgba(255, 197, 61, .14);
    --b-coral-soft: rgba(255, 122, 107, .15);
    --b-mint-soft: rgba(47, 198, 162, .15);
    --b-sky-soft: rgba(69, 184, 245, .15);
    --b-pink-soft: rgba(255, 141, 196, .14);

    --b-accent-ink: color-mix(in srgb, var(--site-accent, #6D28D9) 45%, #FFFFFF);
    --b-accent-soft: rgba(var(--site-accent-rgb, 109, 40, 217), .22);

    --b-footer: #0F0C22;
    --b-shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, .5);
    --b-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
    --b-shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

/* ---------- 2. Base ------------------------------------------------------ */
html { font-size: var(--site-font-size, 16px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.theme-bright {
    margin: 0;
    background: var(--b-bg);
    color: var(--b-ink-soft);
    font-family: var(--b-font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.theme-bright *, .theme-bright *::before, .theme-bright *::after { box-sizing: border-box; }
/* Element defaults use :where() so every component class (and the shared widgets) can override them */
.theme-bright :where(img, svg, video, iframe) { max-width: 100%; }
.theme-bright :where(img) { height: auto; display: block; }
.theme-bright :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--b-font-head);
    color: var(--b-ink);
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}
.theme-bright :where(h1) { font-size: clamp(2.2rem, 4.6vw, 3.75rem); }
.theme-bright :where(h2) { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
.theme-bright :where(h3) { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.theme-bright :where(h4) { font-size: 1.25rem; }
.theme-bright :where(h5) { font-size: 1.1rem; }
.theme-bright :where(h6) { font-size: 1rem; }
.theme-bright :where(p) { margin: 0 0 1em; }
.theme-bright :where(a) { color: var(--b-accent-ink); text-decoration: none; transition: color .2s; }
.theme-bright :where(a):hover { color: var(--b-ink); }
.theme-bright :where(main ul) { padding-inline-start: 1.2em; }
.theme-bright :where(code) { font-size: .85em; background: var(--b-accent-soft); padding: .1em .4em; border-radius: 6px; color: var(--b-ink); }
.theme-bright :where(hr) { border: 0; border-top: 2px dashed var(--b-line-strong); margin: 1.5rem 0; }
.theme-bright ::selection { background: var(--b-sun); color: #231B48; }

.theme-bright :focus-visible {
    outline: 3px solid var(--b-sky);
    outline-offset: 3px;
    border-radius: 8px;
}
.theme-bright .d-none, .theme-bright main [hidden] { display: none !important; }
.theme-bright .b-sr, .theme-bright .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.b-skip {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000;
    background: var(--b-ink); color: var(--b-bg) !important; padding: .7em 1.2em; border-radius: 999px;
    font-weight: 700; transition: top .2s;
}
.b-skip:focus { top: 12px; }
[dir="rtl"] .b-flip { transform: scaleX(-1); }

/* ---------- 3. Layout helpers ------------------------------------------- */
.b-container { width: 100%; max-width: var(--b-container); margin-inline: auto; padding-inline: var(--b-gutter); }
.b-container--narrow { max-width: 880px; }
.b-section { position: relative; padding-block: clamp(64px, 8vw, 104px); }
.b-section--alt { background: var(--b-bg-alt); }
.b-section--tight { padding-block: clamp(40px, 5vw, 64px); }
.theme-bright [data-has-bg] { background-color: var(--b-sec-bg, transparent); background-image: var(--b-sec-img, none); background-size: cover; background-position: center; }
body.dark-mode [data-has-color] { background-color: var(--b-bg-alt); }

/* admin-controlled section padding (Homepage widgets -> Section padding) */
.b-section[data-pad="py-0"] { padding-block: 0; }
.b-section[data-pad="py-50"] { padding-block: 50px; }
.b-section[data-pad="py-80"] { padding-block: clamp(56px, 7vw, 80px); }
.b-section[data-pad="py-100"] { padding-block: clamp(64px, 8vw, 100px); }
.b-section[data-pad="py-120"] { padding-block: clamp(72px, 9vw, 120px); }
.b-section[data-pad="py-150"] { padding-block: clamp(80px, 11vw, 150px); }
.b-section[data-pad="pt-50"] { padding-block: 50px 0; }
.b-section[data-pad="pt-80"] { padding-block: 80px 0; }
.b-section[data-pad="pt-100"] { padding-block: 100px 0; }
.b-section[data-pad="pt-120"] { padding-block: 120px 0; }
.b-section[data-pad="pt-150"] { padding-block: 150px 0; }
.b-section[data-pad="pb-50"] { padding-block: 0 50px; }
.b-section[data-pad="pb-80"] { padding-block: 0 80px; }
.b-section[data-pad="pb-100"] { padding-block: 0 100px; }
.b-section[data-pad="pb-120"] { padding-block: 0 120px; }
.b-section[data-pad="pb-150"] { padding-block: 0 150px; }

.b-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.b-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.b-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.b-split--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.b-split--top { align-items: start; }
.b-split--narrow-left { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.b-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.b-with-sidebar--start { grid-template-columns: 300px minmax(0, 1fr); }
.b-stack > * + * { margin-top: 1rem; }
.b-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.b-center { text-align: center; }
.b-muted { color: var(--b-muted); }

@media (max-width: 1080px) {
    .b-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-with-sidebar, .b-with-sidebar--start { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
    .b-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-split, .b-split--wide-left, .b-split--narrow-left { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    body.theme-bright { --b-gutter: 16px; }
    .b-grid-2, .b-grid-3, .b-grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 4. Buttons, chips, eyebrows --------------------------------- */
.b-btn {
    --b-btn-bg: var(--b-accent);
    --b-btn-fg: var(--b-accent-contrast);
    --b-btn-shadow: var(--site-accent-hover, #5B21B6);
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 48px;
    padding: .78em 1.55em;
    border: 2px solid transparent;
    border-radius: var(--b-r-btn);
    background: var(--b-btn-bg);
    color: var(--b-btn-fg) !important;
    font-family: var(--b-font-head);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 0 var(--b-btn-shadow);
    transition: transform .16s ease, box-shadow .16s ease, background-color .2s;
    white-space: nowrap;
    text-decoration: none;
}
.b-btn > * { pointer-events: none; }
.b-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--b-btn-shadow); color: var(--b-btn-fg); }
.b-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--b-btn-shadow); }
.b-btn:disabled { opacity: .7; cursor: progress; }
.b-btn svg, .b-btn i { flex-shrink: 0; }
.b-btn--sun { --b-btn-bg: var(--b-sun); --b-btn-fg: #231B48; --b-btn-shadow: var(--b-sun-deep); }
.b-btn--coral { --b-btn-bg: var(--b-coral); --b-btn-fg: #231B48; --b-btn-shadow: var(--b-coral-deep); }
.b-btn--mint { --b-btn-bg: var(--b-mint); --b-btn-fg: #10241F; --b-btn-shadow: var(--b-mint-deep); }
.b-btn--white { --b-btn-bg: #FFFFFF; --b-btn-fg: #231B48; --b-btn-shadow: rgba(35, 27, 72, .25); }
.b-btn--ghost {
    --b-btn-bg: transparent; --b-btn-fg: var(--b-ink); --b-btn-shadow: transparent;
    border-color: var(--b-line-strong); box-shadow: none;
}
.b-btn--ghost:hover { border-color: var(--b-ink); box-shadow: none; }
.b-btn--ghost-light { --b-btn-bg: transparent; --b-btn-fg: #FFFFFF; --b-btn-shadow: transparent; border-color: rgba(255, 255, 255, .6); box-shadow: none; }
.b-btn--ghost-light:hover { border-color: #FFFFFF; box-shadow: none; background: rgba(255, 255, 255, .1); }
.b-btn--lg { min-height: 58px; padding: .95em 1.9em; font-size: 1.08rem; }
.b-btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .92rem; box-shadow: 0 3px 0 var(--b-btn-shadow); }
.b-btn--block { width: 100%; }
.b-btn--icon { width: 48px; padding: 0; }

.b-play {
    display: inline-flex; align-items: center; gap: .8em; background: none; border: 0; cursor: pointer;
    font-family: var(--b-font-head); font-weight: 800; color: var(--b-ink); font-size: 1rem; padding: 4px;
}
.b-play-ring {
    position: relative; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; background: var(--b-coral); color: #231B48;
    box-shadow: 0 0 0 7px var(--b-coral-soft);
    transition: transform .2s;
}
.b-play:hover .b-play-ring { transform: scale(1.08) rotate(-6deg); }

.b-eyebrow {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .42em 1em .42em .8em;
    border-radius: 999px;
    background: var(--b-sun-soft);
    color: var(--b-ink);
    font-family: var(--b-font-head);
    font-weight: 800;
    font-size: .88rem;
    letter-spacing: .02em;
    margin-bottom: 1rem;
}
.b-eyebrow svg { color: var(--b-sun-deep); }
.b-eyebrow--coral { background: var(--b-coral-soft); } .b-eyebrow--coral svg { color: var(--b-coral-deep); }
.b-eyebrow--mint { background: var(--b-mint-soft); } .b-eyebrow--mint svg { color: var(--b-mint-deep); }
.b-eyebrow--sky { background: var(--b-sky-soft); } .b-eyebrow--sky svg { color: var(--b-sky-deep); }
.b-eyebrow--light { background: rgba(255, 255, 255, .18); color: #FFFFFF; } .b-eyebrow--light svg { color: var(--b-sun); }

.b-chip {
    display: inline-flex; align-items: center; gap: .4em;
    padding: .32em .85em; border-radius: 999px;
    background: var(--b-accent-soft); color: var(--b-ink);
    font-size: .82rem; font-weight: 700; line-height: 1.3;
}
.b-chip--sun { background: var(--b-sun-soft); }
.b-chip--coral { background: var(--b-coral-soft); }
.b-chip--mint { background: var(--b-mint-soft); }
.b-chip--sky { background: var(--b-sky-soft); }
.b-chip--solid { background: var(--b-sun); color: #231B48; }

/* Section heads with a hand-drawn squiggle under the title */
.b-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.b-head--start { margin-inline: 0; text-align: start; }
.b-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-align: start; }
.b-head--row > div { max-width: 680px; }
.b-head p { color: var(--b-muted); font-size: 1.06rem; margin: 0; }
.b-title { position: relative; display: block; padding-bottom: .38em; margin-bottom: .45em; }
.b-title::after {
    content: ""; position: absolute; inset-inline-start: 50%; bottom: 0; width: 120px; height: 12px;
    transform: translateX(-50%);
    background: var(--b-coral);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 7c10-6 18-6 28 0s18 6 28 0 18-6 28 0 18 6 28 0' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 7c10-6 18-6 28 0s18 6 28 0 18-6 28 0 18 6 28 0' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
[dir="rtl"] .b-title::after { transform: translateX(50%); }
.b-head--start .b-title::after, .b-head--row .b-title::after { inset-inline-start: 0; transform: none; }
.b-title--sun::after { background: var(--b-sun); }
.b-title--mint::after { background: var(--b-mint); }
.b-title--sky::after { background: var(--b-sky); }
.b-title--light { color: #FFFFFF !important; }
.b-title--light::after { background: var(--b-sun); }

/* ---------- 5. Shapes & doodles ----------------------------------------- */
.b-doodle { position: absolute; pointer-events: none; z-index: 0; }
.b-doodle svg { width: 100%; height: 100%; display: block; }
.b-float { animation: b-float 6s ease-in-out infinite; }
.b-float--slow { animation-duration: 9s; }
.b-spin { animation: b-spin 18s linear infinite; }
@keyframes b-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes b-spin { to { transform: rotate(360deg); } }
@keyframes b-morph {
    0%, 100% { border-radius: 46% 54% 58% 42% / 44% 46% 54% 56%; }
    33% { border-radius: 58% 42% 40% 60% / 56% 38% 62% 44%; }
    66% { border-radius: 40% 60% 54% 46% / 40% 60% 40% 60%; }
}
@media (prefers-reduced-motion: reduce) {
    .b-float, .b-spin, .b-blob { animation: none !important; }
    .theme-bright *, .theme-bright *::before, .theme-bright *::after { transition-duration: .01ms !important; }
}
.b-blob { border-radius: var(--b-r-blob); animation: b-morph 14s ease-in-out infinite; }
.c-sun { color: var(--b-sun); } .c-coral { color: var(--b-coral); } .c-mint { color: var(--b-mint); }
.c-sky { color: var(--b-sky); } .c-pink { color: var(--b-pink); } .c-accent { color: var(--b-accent-ink); }

.b-wave { display: block; width: 100%; height: clamp(40px, 6vw, 80px); color: var(--b-bg); }
.b-wave--top { position: absolute; top: -1px; left: 0; transform: rotate(180deg); }
.b-wave--bottom { position: absolute; bottom: -1px; left: 0; }

/* Friendly image placeholders when an upload is missing */
.b-ph {
    position: relative; width: 100%; height: 100%; min-height: 120px;
    display: grid; place-items: center; overflow: hidden;
    background: var(--b-ph-bg, var(--b-sun-soft)); color: var(--b-ph-fg, var(--b-sun-deep));
}
.b-ph::before, .b-ph::after { content: ""; position: absolute; border-radius: 50%; background: currentColor; opacity: .14; }
.b-ph::before { width: 60%; aspect-ratio: 1; inset-inline-start: -14%; top: -18%; }
.b-ph::after { width: 38%; aspect-ratio: 1; inset-inline-end: -8%; bottom: -12%; opacity: .2; }
.b-ph-art { position: relative; z-index: 1; display: block; width: 36%; max-width: 120px; min-width: 22px; }
.b-ph-art svg { display: block; width: 100%; height: auto; }
.b-ph--sun { --b-ph-bg: var(--b-sun-soft); --b-ph-fg: var(--b-sun-deep); }
.b-ph--coral { --b-ph-bg: var(--b-coral-soft); --b-ph-fg: var(--b-coral-deep); }
.b-ph--mint { --b-ph-bg: var(--b-mint-soft); --b-ph-fg: var(--b-mint-deep); }
.b-ph--sky { --b-ph-bg: var(--b-sky-soft); --b-ph-fg: var(--b-sky-deep); }
.b-ph--accent { --b-ph-bg: var(--b-accent-soft); --b-ph-fg: var(--b-accent-ink); }
.b-media { position: relative; overflow: hidden; background: var(--b-surface-2); }
.b-media > img, .b-media > .b-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 6. Header & navigation -------------------------------------- */
.b-topbar { background: var(--b-ink); color: #F5F2FF; font-size: .85rem; }
body.dark-mode .b-topbar { background: #0F0C22; }
.b-topbar .b-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.b-topbar-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.b-topbar-info span { display: inline-flex; align-items: center; gap: .45em; }
.b-topbar-info svg { color: var(--b-sun); }
.b-topbar a { color: #F5F2FF; }
.b-topbar a:hover { color: var(--b-sun); }
.b-topbar-end { display: flex; align-items: center; gap: 14px; }
.b-topbar .b-social a { width: 28px; height: 28px; font-size: .8rem; background: rgba(255, 255, 255, .1); color: #FFF !important; }
@media (max-width: 860px) { .b-topbar { display: none; } }

.b-header { position: sticky; top: 0; z-index: 900; padding-block: 12px; transition: padding .25s; }
.b-header::before {
    content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--b-bg) 88%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .25s;
}
.b-header.is-stuck { padding-block: 6px; }
.b-header.is-stuck::before { opacity: 1; box-shadow: 0 6px 24px -18px rgba(35, 27, 72, .5); }
.b-nav {
    position: relative; display: flex; align-items: center; gap: 18px;
    min-height: 68px; padding-block: 8px;
    padding-inline-start: 22px; padding-inline-end: 10px;
    background: var(--b-surface); border: 2px solid var(--b-line);
    border-radius: max(var(--b-r-btn), var(--b-r-card)); box-shadow: var(--b-shadow-sm);
}
.b-brand { display: inline-flex; align-items: center; gap: .6em; flex-shrink: 0; color: var(--b-ink) !important; font-family: var(--b-font-head); font-weight: 800; font-size: 1.3rem; }
.b-brand img { max-height: 44px; width: auto; max-width: 170px; object-fit: contain; }
.b-brand .b-logo-dark { display: none; }
body.dark-mode .b-brand .b-logo-light { display: none; }
body.dark-mode .b-brand .b-logo-dark { display: block; }
.b-brand-mark {
    width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
    background: var(--b-sun); color: #231B48; transform: rotate(-6deg); box-shadow: 0 4px 0 var(--b-sun-deep);
}
.b-brand-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }

.b-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 auto; padding: 0; }
.b-menu > li { position: relative; }
.b-menu-link {
    display: inline-flex; align-items: center; gap: .35em; padding: .62em .9em; border-radius: 999px; white-space: nowrap;
    color: var(--b-ink) !important; font-family: var(--b-font-head); font-weight: 700; font-size: .98rem;
    background: none; border: 0; cursor: pointer; transition: background-color .2s, color .2s;
}
.b-menu-link:hover, .b-menu-link[aria-expanded="true"] { background: var(--b-sun-soft); }
.b-menu-link.is-active { background: var(--b-accent-soft); color: var(--b-ink) !important; }
.b-menu-link .b-caret { transition: transform .2s; }
.b-menu-link[aria-expanded="true"] .b-caret { transform: rotate(180deg); }

.b-dropdown {
    position: absolute; top: calc(100% + 14px); inset-inline-start: 50%; transform: translate(-50%, 8px);
    min-width: 240px; padding: 10px; list-style: none; margin: 0;
    background: var(--b-surface); border: 2px solid var(--b-line); border-radius: 22px; box-shadow: var(--b-shadow-lg);
    opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 50;
}
[dir="rtl"] .b-dropdown { transform: translate(50%, 8px); }
.b-dropdown.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
[dir="rtl"] .b-dropdown.is-open { transform: translate(50%, 0); }
.b-dropdown--mega { display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 2px; min-width: 470px; }
.b-dropdown--end { inset-inline-start: auto; inset-inline-end: 0; transform: translateY(8px); }
.b-dropdown--end.is-open, [dir="rtl"] .b-dropdown--end, [dir="rtl"] .b-dropdown--end.is-open { transform: translateY(0); }
.b-dropdown a {
    display: flex; align-items: center; gap: .7em; padding: .55em .75em; border-radius: 14px;
    color: var(--b-ink) !important; font-weight: 600; font-size: .95rem;
}
.b-dropdown a:hover, .b-dropdown a:focus-visible { background: var(--b-bg-alt); }
.b-dd-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: .85rem; color: #231B48; }
.b-dd-ico.bg-sun { background: var(--b-sun); } .b-dd-ico.bg-coral { background: var(--b-coral); }
.b-dd-ico.bg-mint { background: var(--b-mint); } .b-dd-ico.bg-sky { background: var(--b-sky); } .b-dd-ico.bg-pink { background: var(--b-pink); }

.b-nav-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.b-menu + .b-nav-end { margin-inline-start: 0; }
.b-icon-btn {
    width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--b-bg-alt); border: 2px solid transparent; color: var(--b-ink); cursor: pointer;
    transition: background-color .2s, transform .2s;
}
.b-icon-btn:hover { background: var(--b-sun-soft); transform: rotate(-8deg); }
.b-icon-btn svg { flex-shrink: 0; }
.b-nav .b-brand { min-width: 0; }
.b-lang { position: relative; }
.b-lang .b-icon-btn { width: auto; padding-inline: 14px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center; font-weight: 700; font-size: .9rem; font-family: var(--b-font-head); }
.b-mode-icon-dark { display: none; }
body.dark-mode .b-mode-icon-dark { display: block; }
body.dark-mode .b-mode-icon-light { display: none; }
.b-burger { display: none; }

@media (max-width: 1140px) {
    .b-menu, .b-nav-end .b-hide-md { display: none; }
    .b-burger { display: inline-grid; }
    .b-nav { padding-inline-start: 16px; }
}
@media (max-width: 420px) {
    .b-brand-text { max-width: 140px; font-size: 1.1rem; }
    .b-nav-end .b-lang { display: none; }
}

/* Mobile drawer */
.b-drawer { position: fixed; inset: 0; z-index: 1200; visibility: hidden; }
.b-drawer.is-open { visibility: visible; }
.b-drawer-backdrop { position: absolute; inset: 0; background: rgba(21, 18, 43, .55); opacity: 0; transition: opacity .25s; border: 0; padding: 0; width: 100%; cursor: pointer; }
.b-drawer.is-open .b-drawer-backdrop { opacity: 1; }
.b-drawer-panel {
    position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 90vw);
    background: var(--b-surface); padding: 22px 20px 32px; overflow-y: auto;
    border-start-start-radius: 28px; border-end-start-radius: 28px;
    transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    display: flex; flex-direction: column; gap: 18px;
}
[dir="rtl"] .b-drawer-panel { transform: translateX(-105%); }
.b-drawer.is-open .b-drawer-panel { transform: none; }
.b-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b-drawer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.b-drawer-nav a, .b-drawer-nav summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: .8em 1em; border-radius: 16px; color: var(--b-ink) !important;
    font-family: var(--b-font-head); font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.b-drawer-nav summary::-webkit-details-marker { display: none; }
.b-drawer-nav a:hover, .b-drawer-nav summary:hover { background: var(--b-bg-alt); }
.b-drawer-nav details[open] summary { background: var(--b-sun-soft); }
.b-drawer-nav details[open] summary .b-caret { transform: rotate(180deg); }
.b-drawer-nav details ul { list-style: none; padding: 6px 0 6px 0; padding-inline-start: 12px; margin: 0; display: grid; gap: 2px; }
.b-drawer-nav details ul a { font-family: var(--b-font-body); font-weight: 600; font-size: .98rem; justify-content: flex-start; }
.b-drawer-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.b-drawer-langs a { padding: .4em .9em; border-radius: 999px; background: var(--b-bg-alt); color: var(--b-ink) !important; font-weight: 600; font-size: .9rem; }
.b-drawer-langs a.is-active { background: var(--b-sun); color: #231B48 !important; }
body.b-lock { overflow: hidden; }

/* ---------- 7. Inner page banner ---------------------------------------- */
.b-pagehero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--b-sun-soft);
    padding-block: clamp(44px, 6vw, 80px) clamp(70px, 9vw, 120px);
    text-align: center;
}
.b-pagehero--coral { background: var(--b-coral-soft); }
.b-pagehero--mint { background: var(--b-mint-soft); }
.b-pagehero--sky { background: var(--b-sky-soft); }
.b-pagehero--accent { background: var(--b-accent-soft); }
.b-pagehero h1 { margin-bottom: .35em; font-size: clamp(2rem, 4.2vw, 3.3rem); }
.b-pagehero p { max-width: 640px; margin: 0 auto 1rem; color: var(--b-muted); font-size: 1.06rem; }
.b-pagehero .b-container { position: relative; z-index: 2; }
.b-crumbs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: .45em 1.1em; border-radius: 999px; background: var(--b-surface); box-shadow: var(--b-shadow-sm); font-weight: 600; font-size: .92rem; }
.b-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--b-muted); }
.b-crumbs li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--b-coral); }
.b-crumbs a { color: var(--b-ink); }
.b-pagehero .b-blob-a { position: absolute; z-index: 0; width: 280px; height: 280px; inset-inline-start: -90px; top: -110px; background: var(--b-sun); opacity: .45; }
.b-pagehero--coral .b-blob-a { background: var(--b-coral); opacity: .3; }
.b-pagehero--mint .b-blob-a { background: var(--b-mint); opacity: .3; }
.b-pagehero--sky .b-blob-a { background: var(--b-sky); opacity: .3; }
.b-pagehero--accent .b-blob-a { background: var(--b-accent); opacity: .2; }
.b-pagehero .b-blob-b { position: absolute; z-index: 0; width: 200px; height: 200px; inset-inline-end: -60px; bottom: 10px; background: var(--b-sky); opacity: .28; }
.b-pagehero .b-wave { position: absolute; left: 0; bottom: -1px; z-index: 1; }

/* ---------- 8. Cards ------------------------------------------------------ */
.b-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: var(--b-surface); border: 2px solid var(--b-line); border-radius: var(--b-r-card);
    box-shadow: var(--b-shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
    overflow: hidden;
}
a.b-card, .b-card--hover:hover { color: inherit; }
.b-card--hover:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--b-shadow); border-color: var(--b-line-strong); }
.b-card-media { position: relative; margin: 10px 10px 0; aspect-ratio: 16 / 10; border-radius: calc(var(--b-r-card) - 8px); overflow: hidden; background: var(--b-surface-2); }
.b-card-media > img, .b-card-media > .b-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.b-card--hover:hover .b-card-media > img { transform: scale(1.06); }
.b-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b-card-title { font-size: 1.2rem; margin: 0; }
.b-card-title a { color: var(--b-ink); }
.b-card-title a:hover { color: var(--b-accent-ink); }
.b-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.b-card .b-raise { position: relative; z-index: 2; }
.b-card-text { color: var(--b-muted); margin: 0; font-size: .97rem; }
.b-card-foot { margin-top: auto; padding-top: 14px; border-top: 2px dashed var(--b-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.b-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; color: var(--b-muted); font-weight: 600; }
.b-meta span { display: inline-flex; align-items: center; gap: .4em; }
.b-meta svg, .b-meta i { color: var(--b-coral); }
.b-badge-float { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; }
.b-link-arrow { display: inline-flex; align-items: center; gap: .45em; font-family: var(--b-font-head); font-weight: 800; color: var(--b-accent-ink); }
.b-link-arrow svg { transition: transform .2s; }
.b-link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .b-link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* Date badge (events / notices) */
.b-date {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 64px; padding: 8px 10px; border-radius: 18px; background: var(--b-sun); color: #231B48;
    font-family: var(--b-font-head); line-height: 1; box-shadow: 0 4px 0 var(--b-sun-deep); transform: rotate(-4deg);
}
.b-date strong { font-size: 1.6rem; font-weight: 800; }
.b-date small { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.b-date--coral { background: var(--b-coral); box-shadow: 0 4px 0 var(--b-coral-deep); }
.b-date--mint { background: var(--b-mint); box-shadow: 0 4px 0 var(--b-mint-deep); }
.b-date--sky { background: var(--b-sky); box-shadow: 0 4px 0 var(--b-sky-deep); }

/* Course cards */
.b-course .b-course-price { font-family: var(--b-font-head); font-weight: 800; font-size: 1.2rem; color: var(--b-ink); }
.b-course .b-course-price del { color: var(--b-muted); font-size: .85rem; font-weight: 600; margin-inline-end: 6px; }
.b-author { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; color: var(--b-ink); font-size: .92rem; }
.b-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; position: relative; border: 2px solid var(--b-surface); box-shadow: 0 0 0 2px var(--b-sun); background: var(--b-sun-soft); }
.b-avatar > img, .b-avatar > .b-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.b-avatar .b-ph-art { width: 62%; }
.b-mini-thumb .b-ph-art { width: 52%; }
.b-avatar--lg { width: 64px; height: 64px; }
.b-stars { display: inline-flex; gap: 2px; color: var(--b-sun-deep); font-size: .9rem; }
.b-stars svg { color: var(--b-sun-deep); }
.b-stars svg.is-off { color: var(--b-line-strong); }
.b-level { text-transform: capitalize; }

/* ---------- 9. Forms ---------------------------------------------------- */
.b-form-card { background: var(--b-surface); border: 2px solid var(--b-line); border-radius: calc(var(--b-r-card) + 6px); padding: clamp(22px, 4vw, 44px); box-shadow: var(--b-shadow); position: relative; }
.b-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.b-field label, .b-label { font-family: var(--b-font-head); font-weight: 700; color: var(--b-ink); font-size: .95rem; }
.b-req, .theme-bright .text-danger { color: #B8321F; }
.theme-bright .text-success { color: #15803D; }
body.dark-mode .b-req, body.dark-mode.theme-bright .text-danger { color: #FF9A8E; }
.b-input, .theme-bright .form-control, .theme-bright .form-select {
    width: 100%; min-height: 52px; padding: .75em 1.1em;
    background: var(--b-bg); color: var(--b-ink);
    border: 2px solid var(--b-line-strong); border-radius: var(--b-r-input);
    font: inherit; font-size: 1rem; line-height: 1.4;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    appearance: none; -webkit-appearance: none;
}
.theme-bright textarea.form-control, .b-input[rows] { min-height: 120px; resize: vertical; }
.theme-bright select.form-select, select.b-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A7397' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 44px;
}
[dir="rtl"] .theme-bright select.form-select, [dir="rtl"] select.b-input { background-position: left 16px center; }
.b-input::placeholder, .theme-bright .form-control::placeholder { color: var(--b-muted); opacity: .8; }
.b-input:hover, .theme-bright .form-control:hover, .theme-bright .form-select:hover { border-color: var(--b-sky); }
.b-input:focus, .theme-bright .form-control:focus, .theme-bright .form-select:focus { outline: none; border-color: var(--b-accent); background: var(--b-surface); box-shadow: 0 0 0 4px var(--b-accent-soft); }
.theme-bright small[data-error-for], .theme-bright .errorTextBox { font-size: .86rem; font-weight: 600; }
.b-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.b-form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-form-grid .b-span-2, .b-form-grid .b-span-all { grid-column: 1 / -1; }
@media (max-width: 860px) { .b-form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .b-form-grid, .b-form-grid--3 { grid-template-columns: minmax(0, 1fr); } }
.b-check { display: inline-flex; align-items: center; gap: .6em; cursor: pointer; font-weight: 600; color: var(--b-ink); }
.b-check input { width: 20px; height: 20px; accent-color: var(--b-accent); flex-shrink: 0; }
.b-file { display: flex; align-items: center; gap: 10px; padding: 6px; padding-inline-end: 14px; min-height: 52px; border: 2px dashed var(--b-line-strong); border-radius: var(--b-r-input); background: var(--b-bg); }
.b-file .btn-browse { border: 0; cursor: pointer; padding: .55em 1em; border-radius: calc(var(--b-r-input) - 4px); background: var(--b-sky); color: #10283A; font-weight: 800; font-family: var(--b-font-head); flex-shrink: 0; }
.b-file .file-name { color: var(--b-muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-searchbox { position: relative; }
.b-searchbox .b-input { padding-inline-end: 58px; border-radius: 999px; }
.b-searchbox button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--b-accent); color: var(--b-accent-contrast); }

/* Choice chips (radio/checkbox styled as pills) */
.b-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.b-pill input { position: absolute; opacity: 0; pointer-events: none; }
.b-pill span { display: inline-flex; align-items: center; gap: .4em; padding: .5em 1em; border-radius: 999px; border: 2px solid var(--b-line-strong); font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--b-ink); transition: all .2s; background: var(--b-surface); }
.b-pill input:checked + span { background: var(--b-sun); border-color: var(--b-sun); color: #231B48; }
.b-pill input:focus-visible + span { outline: 3px solid var(--b-sky); outline-offset: 2px; }

/* Filter chips (tabs) */
.b-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(26px, 3vw, 40px); }
.b-tabs--start { justify-content: flex-start; }
.b-tab {
    padding: .6em 1.25em; border-radius: 999px; border: 2px solid var(--b-line-strong); background: var(--b-surface);
    font-family: var(--b-font-head); font-weight: 800; color: var(--b-ink); cursor: pointer; font-size: .95rem;
    transition: all .2s;
}
.b-tab:hover { border-color: var(--b-ink); }
.b-tab.is-active, .b-tab[aria-selected="true"] { background: var(--b-ink); border-color: var(--b-ink); color: var(--b-bg); transform: rotate(-2deg); }
.b-filter-item.is-hidden { display: none; }

/* ---------- 10. Home: hero --------------------------------------------- */
.b-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--b-bg-alt); padding-block: clamp(36px, 6vw, 80px) clamp(90px, 10vw, 140px); }
.b-hero-bg-a { position: absolute; z-index: -1; width: 520px; height: 520px; top: -200px; inset-inline-end: -140px; background: var(--b-sun-soft); }
.b-hero-bg-b { position: absolute; z-index: -1; width: 300px; height: 300px; bottom: 40px; inset-inline-start: -120px; background: var(--b-mint-soft); }
.b-slides { display: grid; }
.b-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.b-slide.is-active { opacity: 1; visibility: visible; }
.b-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.b-hero h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.08; margin-bottom: .45em; }
.b-hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--b-muted); max-width: 560px; margin-bottom: 1.8rem; }
.b-hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.b-hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; width: 100%; }
.b-hero-art .b-hero-ring { position: absolute; inset: 4%; border: 3px dashed var(--b-coral); border-radius: 50%; opacity: .55; }
.b-hero-art .b-hero-img { position: absolute; inset: 9%; overflow: hidden; border: 8px solid var(--b-surface); box-shadow: var(--b-shadow-lg); background: var(--b-sky-soft); }
.b-hero-art .b-hero-img > img, .b-hero-art .b-hero-img > .b-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-hero-chip {
    position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .6em;
    padding: .55em 1em .55em .55em; border-radius: 999px; background: var(--b-surface); box-shadow: var(--b-shadow);
    font-family: var(--b-font-head); font-weight: 800; color: var(--b-ink); font-size: .92rem; max-width: 230px;
}
.b-hero-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-hero-chip .b-chip-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #231B48; }
.b-hero-chip--1 { top: 6%; inset-inline-start: -2%; } .b-hero-chip--1 .b-chip-ico { background: var(--b-sun); }
.b-hero-chip--2 { top: 30%; inset-inline-end: -4%; } .b-hero-chip--2 .b-chip-ico { background: var(--b-mint); }
.b-hero-chip--3 { bottom: 18%; inset-inline-start: -6%; } .b-hero-chip--3 .b-chip-ico { background: var(--b-sky); }
.b-hero-chip--4 { bottom: 2%; inset-inline-end: 6%; } .b-hero-chip--4 .b-chip-ico { background: var(--b-coral); }
.b-slider-ui { display: flex; align-items: center; gap: 14px; margin-top: clamp(26px, 4vw, 44px); }
.b-dots { display: flex; gap: 8px; }
.b-dot { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: var(--b-line-strong); cursor: pointer; transition: width .3s, background-color .3s; }
.b-dot.is-active { width: 34px; background: var(--b-coral); }
.b-arrow {
    width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--b-line-strong); background: var(--b-surface);
    color: var(--b-ink); display: inline-grid; place-items: center; cursor: pointer; transition: all .2s;
}
.b-arrow:hover { background: var(--b-sun); border-color: var(--b-sun); color: #231B48; }
@media (max-width: 960px) {
    .b-hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .b-hero-lead { margin-inline: auto; }
    .b-hero-actions, .b-slider-ui { justify-content: center; }
    .b-hero-art { max-width: 440px; }
}
@media (max-width: 520px) {
    .b-hero-chip { font-size: .78rem; max-width: 170px; padding: .4em .8em .4em .4em; }
    .b-hero-chip .b-chip-ico { width: 28px; height: 28px; }
    .b-hero-chip--1 { inset-inline-start: 0; } .b-hero-chip--3 { inset-inline-start: 0; } .b-hero-chip--2 { inset-inline-end: 0; }
}

/* Hero style 2 — big rounded photo stage */
.b-hero2 { padding: clamp(10px, 2vw, 20px) var(--b-gutter) clamp(50px, 6vw, 80px); position: relative; }
.b-hero2-stage { position: relative; max-width: 1400px; margin-inline: auto; border-radius: clamp(28px, 4vw, 48px); overflow: hidden; min-height: clamp(460px, 62vh, 640px); background: var(--b-ink); isolation: isolate; }
.b-hero2 .b-slides, .b-hero2 .b-slide { height: 100%; }
.b-hero2 .b-slides { position: absolute; inset: 0; }
.b-hero2-slide { position: relative; height: 100%; display: flex; align-items: center; }
.b-hero2-slide > .b-hero2-bg { position: absolute; inset: 0; z-index: -2; }
.b-hero2-slide > .b-hero2-bg > img, .b-hero2-slide > .b-hero2-bg > .b-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-hero2-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--site-accent-rgb, 109, 40, 217), .92) 0%, rgba(35, 27, 72, .75) 45%, rgba(35, 27, 72, .1) 100%); }
[dir="rtl"] .b-hero2-slide::before { background: linear-gradient(270deg, rgba(var(--site-accent-rgb, 109, 40, 217), .92) 0%, rgba(35, 27, 72, .75) 45%, rgba(35, 27, 72, .1) 100%); }
.b-hero2-copy { max-width: 640px; padding: clamp(32px, 6vw, 80px); color: #FFFFFF; }
.b-hero2-copy h1, .b-hero2-copy h2 { color: #FFFFFF; font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.b-hero2-copy p { color: rgba(255, 255, 255, .88); font-size: 1.12rem; margin-bottom: 1.8rem; }
.b-hero2 .b-play { color: #FFFFFF; }
.b-hero2-ui { position: absolute; z-index: 5; bottom: 24px; inset-inline-end: 28px; display: flex; gap: 10px; align-items: center; }
.b-hero2-ui .b-dot { background: rgba(255, 255, 255, .45); }
.b-hero2-ui .b-dot.is-active { background: var(--b-sun); }
.b-hero2-deco { position: absolute; z-index: 4; pointer-events: none; }
.b-hero2-deco--1 { width: 90px; top: -18px; inset-inline-end: 12%; color: var(--b-sun); }
.b-hero2-deco--2 { width: 70px; bottom: 18%; inset-inline-end: 4%; color: var(--b-mint); }
@media (max-width: 700px) {
    .b-hero2-slide::before { background: linear-gradient(180deg, rgba(35, 27, 72, .35) 0%, rgba(var(--site-accent-rgb, 109, 40, 217), .92) 70%); }
    .b-hero2-slide { align-items: flex-end; }
    .b-hero2-copy { padding-bottom: 80px; }
}

/* ---------- 11. Home: feature, about, stats ----------------------------- */
.b-collage { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.b-collage-a { grid-row: 1 / 3; aspect-ratio: 3 / 4; border-radius: 120px 28px 120px 28px; overflow: hidden; position: relative; box-shadow: var(--b-shadow); }
.b-collage-b { aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; border: 6px solid var(--b-sun); align-self: end; }
.b-collage-c { aspect-ratio: 4 / 3; border-radius: 28px 80px 28px 28px; overflow: hidden; position: relative; }
.b-collage-a > *, .b-collage-b > *, .b-collage-c > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-collage .b-play { position: absolute; inset: 0; margin: auto; z-index: 3; width: max-content; height: max-content; }
.b-collage .b-play-ring { width: 64px; height: 64px; background: var(--b-sun); box-shadow: 0 0 0 10px rgba(255, 197, 61, .35); }

.b-prose { color: var(--b-ink-soft); font-size: 1.04rem; line-height: 1.75; overflow-wrap: anywhere; }
.b-prose > :first-child { margin-top: 0; }
.b-prose h1, .b-prose h2, .b-prose h3, .b-prose h4 { margin-top: 1.4em; }
.b-prose img { border-radius: 18px; margin-block: 1em; }
.b-prose blockquote { margin: 1.4em 0; padding: 1em 1.4em; border-radius: 18px; background: var(--b-sun-soft); border: 0 !important; border-inline-start: 6px solid var(--b-sun) !important; }
.b-prose a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.b-prose table { width: 100%; border-collapse: collapse; }
.b-prose td, .b-prose th { border: 1px solid var(--b-line); padding: .5em .7em; }
body.dark-mode .b-prose [style*="color"] { color: inherit !important; }
body.dark-mode .b-prose [style*="background"] { background: transparent !important; }

.b-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.b-stat { padding: 20px 22px; border-radius: 24px; background: var(--b-sun-soft); position: relative; overflow: hidden; }
.b-stat:nth-child(2) { background: var(--b-coral-soft); } .b-stat:nth-child(3) { background: var(--b-mint-soft); } .b-stat:nth-child(4) { background: var(--b-sky-soft); }
.b-stat strong { display: block; font-family: var(--b-font-head); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--b-ink); line-height: 1.1; }
.b-stat span { font-weight: 700; color: var(--b-ink-soft); font-size: .95rem; }
.b-stat::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; inset-inline-end: -22px; top: -22px; background: currentColor; opacity: .08; }

.b-about-art { position: relative; max-width: 540px; margin-inline: auto; width: 100%; }
.b-about-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 8px solid var(--b-surface); box-shadow: var(--b-shadow-lg); }
.b-about-photo > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-about-art .b-stat-float { position: absolute; z-index: 2; background: var(--b-surface); box-shadow: var(--b-shadow); border-radius: 22px; padding: 12px 18px; text-align: center; min-width: 120px; }
.b-about-art .b-stat-float strong { display: block; font-family: var(--b-font-head); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.b-about-art .b-stat-float small { font-weight: 700; color: var(--b-muted); font-size: .82rem; display: block; max-width: 140px; }
.b-stat-float--1 { top: 4%; inset-inline-start: -4%; } .b-stat-float--1 strong { color: var(--b-coral-deep); }
.b-stat-float--2 { top: 12%; inset-inline-end: -4%; transform: rotate(4deg); } .b-stat-float--2 strong { color: var(--b-mint-deep); }
.b-stat-float--3 { bottom: 10%; inset-inline-start: -6%; transform: rotate(-4deg); } .b-stat-float--3 strong { color: var(--b-sky-deep); }
.b-stat-float--4 { bottom: -2%; inset-inline-end: 4%; } .b-stat-float--4 strong { color: var(--b-accent-ink); }
.b-stats--mobile { display: none; }
@media (max-width: 640px) { .b-about-art .b-stat-float { display: none; } .b-stats--mobile { display: grid; } }

.b-counters { position: relative; background: var(--b-accent); color: var(--b-accent-contrast); }
.b-counters-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.b-counter { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 26px; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .18); }
.b-counter-ico { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; flex-shrink: 0; color: #231B48; font-size: 1.5rem; transform: rotate(-6deg); }
.b-counter strong { display: block; font-family: var(--b-font-head); font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: inherit; }
.b-counter span { font-weight: 600; opacity: .92; }
@media (max-width: 860px) { .b-counters-grid { grid-template-columns: minmax(0, 1fr); } }

/* Parallax / call-to-action panel */
.b-cta {
    position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(28px, 4vw, 48px);
    padding: clamp(44px, 7vw, 96px) clamp(22px, 5vw, 64px); text-align: center;
    background: var(--b-accent); color: var(--b-accent-contrast);
}
.b-cta[data-has-img] { background-image: linear-gradient(rgba(var(--site-accent-rgb, 109, 40, 217), .86), rgba(35, 27, 72, .86)), var(--b-sec-img); background-size: cover; background-position: center; }
.b-cta h2, .b-cta h3 { color: inherit; font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 860px; margin-inline: auto; }
.b-cta p { color: inherit; opacity: .9; font-size: 1.12rem; max-width: 640px; margin-inline: auto; }
.b-cta .b-row { justify-content: center; margin-top: 1.6rem; }
.b-cta .b-cta-blob { position: absolute; z-index: -1; border-radius: 50%; }
.b-cta .b-cta-blob--1 { width: 260px; height: 260px; background: var(--b-sun); opacity: .9; top: -120px; inset-inline-start: -80px; }
.b-cta .b-cta-blob--2 { width: 180px; height: 180px; background: var(--b-coral); opacity: .85; bottom: -80px; inset-inline-end: -40px; }
.b-cta .b-cta-blob--3 { width: 90px; height: 90px; background: var(--b-mint); opacity: .9; bottom: 30px; inset-inline-start: 12%; }
.b-cta--sun { background: var(--b-sun); color: #231B48; }
.b-cta--sun .b-cta-blob--1 { background: #FFFFFF; opacity: .35; }
.b-cta--sun .b-cta-blob--2 { background: var(--b-coral); }
.b-cta--split { display: flex; align-items: center; justify-content: space-between; gap: 28px; text-align: start; flex-wrap: wrap; }
.b-cta--split h2, .b-cta--split h3, .b-cta--split p { margin-inline: 0; }
.b-cta--split .b-row { margin-top: 0; }
@media (max-width: 700px) { .b-cta--split { text-align: center; justify-content: center; } .b-cta--split .b-row { justify-content: center; } }

/* Choose us */
.b-choose { display: grid; grid-template-columns: 1fr minmax(260px, 1.05fr) 1fr; gap: 24px; align-items: center; }
.b-choose-col { display: grid; gap: 22px; }
.b-feature { padding: 26px; border-radius: var(--b-r-card); background: var(--b-surface); border: 2px solid var(--b-line); box-shadow: var(--b-shadow-sm); transition: transform .25s; }
.b-feature:hover { transform: translateY(-5px) rotate(-.6deg); }
.b-feature h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.b-feature p { margin: 0; color: var(--b-muted); font-size: .97rem; }
.b-feature-ico { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; position: relative; background: var(--b-sun-soft); color: var(--b-sun-deep); }
.b-feature-ico img { width: 64%; height: 64%; object-fit: contain; }
.b-feature-ico .b-ph { position: absolute; inset: 0; min-height: 0; }
.b-feature:nth-child(2) .b-feature-ico { background: var(--b-coral-soft); color: var(--b-coral-deep); }
.b-choose-col:last-child .b-feature:nth-child(1) .b-feature-ico { background: var(--b-mint-soft); color: var(--b-mint-deep); }
.b-choose-col:last-child .b-feature:nth-child(2) .b-feature-ico { background: var(--b-sky-soft); color: var(--b-sky-deep); }
.b-choose-mid { position: relative; aspect-ratio: 4 / 5; }
.b-choose-photo { position: absolute; inset: 0; overflow: hidden; border-radius: 200px 200px 36px 36px; box-shadow: var(--b-shadow-lg); border: 8px solid var(--b-surface); }
.b-choose-photo > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-choose-badge { position: absolute; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 22px; background: var(--b-surface); box-shadow: var(--b-shadow); width: max-content; max-width: 90%; }
.b-choose-badge .b-feature-ico { width: 48px; height: 48px; border-radius: 16px; background: var(--b-sun); color: #231B48; }
.b-choose-badge strong { display: block; font-family: var(--b-font-head); font-size: 1.4rem; color: var(--b-ink); line-height: 1.1; }
.b-choose-badge small { color: var(--b-muted); font-weight: 700; }
@media (max-width: 1000px) { .b-choose { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .b-choose-mid { grid-column: 1 / -1; grid-row: 1; max-width: 380px; margin-inline: auto; width: 100%; } }
@media (max-width: 600px) { .b-choose { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 12. Carousels (teachers, testimonials) ---------------------- */
.b-carousel { position: relative; }
.b-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 4px 26px; margin: -8px -4px 0;
    scrollbar-width: none;
}
.b-track::-webkit-scrollbar { display: none; }
.b-track > * { scroll-snap-align: start; }
.b-track--3 { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
@media (max-width: 1080px) { .b-track { grid-auto-columns: calc((100% - 2 * 24px) / 3); } .b-track--3 { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 760px) { .b-track, .b-track--3 { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 520px) { .b-track, .b-track--3 { grid-auto-columns: 86%; } }
.b-carousel-nav { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }

.b-teacher { text-align: center; padding: 22px 18px 24px; }
.b-teacher-photo { position: relative; width: 78%; max-width: 210px; aspect-ratio: 1; margin: 6px auto 18px; }
.b-teacher-photo::before { content: ""; position: absolute; inset: -8px; border-radius: var(--b-r-blob); background: var(--b-sun); transform: rotate(-8deg); transition: transform .4s; }
.b-teacher-photo-in { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; border: 5px solid var(--b-surface); background: var(--b-sun-soft); }
.b-teacher-photo-in > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-teacher:hover .b-teacher-photo::before { transform: rotate(14deg) scale(1.04); }
.b-tc-1 .b-teacher-photo::before { background: var(--b-coral); }
.b-tc-2 .b-teacher-photo::before { background: var(--b-mint); }
.b-tc-3 .b-teacher-photo::before { background: var(--b-sky); }
.b-teacher h3 { font-size: 1.15rem; margin-bottom: 2px; }
.b-teacher p { margin: 0 0 12px; color: var(--b-muted); font-weight: 600; font-size: .93rem; }
.b-teacher .b-social { justify-content: center; }

.b-teacher2 { padding: 10px; background: var(--b-surface); border-radius: var(--b-r-card); transform: rotate(-1.4deg); box-shadow: var(--b-shadow); transition: transform .3s; height: 100%; }
.b-track > :nth-child(even) .b-teacher2, .b-grid > :nth-child(even) .b-teacher2 { transform: rotate(1.4deg); }
.b-teacher2:hover { transform: rotate(0) translateY(-6px) !important; }
.b-teacher2-photo { position: relative; aspect-ratio: 4 / 4.4; border-radius: calc(var(--b-r-card) - 6px); overflow: hidden; background: var(--b-sky-soft); }
.b-teacher2-photo > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-teacher2-body { padding: 16px 10px 10px; text-align: center; }
.b-teacher2-body h3 { font-size: 1.12rem; margin-bottom: 2px; }
.b-teacher2-body p { margin: 0 0 10px; color: var(--b-muted); font-weight: 600; font-size: .92rem; }
.b-teacher2-body .b-social { justify-content: center; }
.b-section--accent { background: var(--b-accent); }
.b-section--accent .b-head h2, .b-section--accent .b-head p { color: var(--b-accent-contrast); }
.b-section--accent .b-head p { opacity: .9; }
.b-section--accent .b-arrow { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #FFFFFF; }
.b-section--accent .b-arrow:hover { background: var(--b-sun); color: #231B48; }

.b-quote { position: relative; padding: 30px 28px 24px; border-radius: var(--b-r-card); background: var(--b-surface); border: 2px solid var(--b-line); box-shadow: var(--b-shadow-sm); height: 100%; display: flex; flex-direction: column; gap: 16px; }
.b-quote::after { content: ""; position: absolute; bottom: -14px; inset-inline-start: 44px; width: 26px; height: 26px; background: var(--b-surface); border-inline-end: 2px solid var(--b-line); border-bottom: 2px solid var(--b-line); transform: rotate(45deg); }
[dir="rtl"] .b-quote::after { transform: rotate(-45deg); }
.b-quote-mark { position: absolute; top: -18px; inset-inline-end: 22px; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--b-sun); color: #231B48; transform: rotate(8deg); box-shadow: 0 4px 0 var(--b-sun-deep); }
.b-quote:nth-child(3n+2) .b-quote-mark { background: var(--b-mint); box-shadow: 0 4px 0 var(--b-mint-deep); }
.b-quote:nth-child(3n+3) .b-quote-mark { background: var(--b-sky); box-shadow: 0 4px 0 var(--b-sky-deep); }
.b-quote blockquote { margin: 0; font-size: 1.04rem; color: var(--b-ink-soft); flex: 1; }
.b-quote-who { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 18px; }
.b-quote-who strong { display: block; font-family: var(--b-font-head); color: var(--b-ink); font-size: 1.05rem; }
.b-quote-who small { color: var(--b-muted); font-weight: 600; }
.b-quote-wrap { display: flex; flex-direction: column; padding-bottom: 6px; }
.b-quote-wrap .b-quote { height: auto; flex: 1; }
.b-track > :nth-child(3n+2) .b-quote-mark { background: var(--b-mint); box-shadow: 0 4px 0 var(--b-mint-deep); }
.b-track > :nth-child(3n+3) .b-quote-mark { background: var(--b-sky); box-shadow: 0 4px 0 var(--b-sky-deep); }

/* Social icon buttons (admin-managed Font Awesome classes) */
.b-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.b-social li { display: flex; }
.b-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--b-bg-alt); color: var(--b-ink) !important; font-size: .95rem; transition: transform .2s, background-color .2s; }
.b-social a:hover { background: var(--b-sun); color: #231B48 !important; transform: translateY(-3px) rotate(-8deg); }

/* ---------- 13. Accordion (FAQ) ----------------------------------------- */
.b-accordion { display: grid; gap: 14px; }
.b-acc { border-radius: 22px; background: var(--b-surface); border: 2px solid var(--b-line); transition: border-color .2s, box-shadow .2s; }
.b-acc[open] { border-color: var(--b-sun); box-shadow: 0 6px 0 var(--b-sun-soft); }
.b-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-family: var(--b-font-head); font-weight: 800; color: var(--b-ink); font-size: 1.06rem; }
.b-acc summary::-webkit-details-marker { display: none; }
.b-acc-q { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--b-sun-soft); color: var(--b-ink); font-size: .9rem; }
.b-acc:nth-child(4n+2) .b-acc-q { background: var(--b-coral-soft); }
.b-acc:nth-child(4n+3) .b-acc-q { background: var(--b-mint-soft); }
.b-acc:nth-child(4n+4) .b-acc-q { background: var(--b-sky-soft); }
.b-acc-toggle { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--b-bg-alt); flex-shrink: 0; transition: transform .25s; }
.b-acc[open] .b-acc-toggle { transform: rotate(45deg); background: var(--b-sun); color: #231B48; }
.b-acc-body { padding: 0 20px 20px; padding-inline-start: 70px; color: var(--b-muted); }
@media (max-width: 520px) { .b-acc-body { padding-inline-start: 20px; } }
.b-faq-art { position: relative; aspect-ratio: 1; max-width: 500px; margin-inline: auto; width: 100%; }
.b-faq-art .b-faq-img { position: absolute; inset: 6%; overflow: hidden; }
.b-faq-art .b-faq-img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-faq-art::before { content: ""; position: absolute; inset: 0; border-radius: var(--b-r-blob); background: var(--b-sky-soft); transform: rotate(12deg); }

/* ---------- 14. Events band (home) -------------------------------------- */
.b-events-band { background: var(--b-mint-soft); position: relative; overflow: hidden; }
.b-event-row { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: var(--b-r-card); background: var(--b-surface); border: 2px solid var(--b-line); box-shadow: var(--b-shadow-sm); position: relative; transition: transform .25s; }
.b-event-row:hover { transform: translateX(6px); }
[dir="rtl"] .b-event-row:hover { transform: translateX(-6px); }
.b-event-row + .b-event-row { margin-top: 16px; }
.b-event-thumb { width: 120px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; position: relative; flex-shrink: 0; }
.b-event-thumb > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-event-row h3 { font-size: 1.15rem; margin: 0 0 6px; }
.b-event-row h3 a { color: var(--b-ink); }
.b-event-row h3 a::after { content: ""; position: absolute; inset: 0; }
.b-event-row p { margin: 6px 0 0; color: var(--b-muted); font-size: .94rem; }
@media (max-width: 520px) { .b-event-row { flex-direction: column; align-items: flex-start; } .b-event-thumb { width: 100%; aspect-ratio: 16 / 9; } }
.b-form-head { margin: calc(clamp(22px, 4vw, 44px) * -1) calc(clamp(22px, 4vw, 44px) * -1) 24px; padding: 26px clamp(22px, 4vw, 44px); background: var(--b-sun); border-radius: calc(var(--b-r-card) + 4px) calc(var(--b-r-card) + 4px) 0 0; color: #231B48; position: relative; overflow: hidden; }
.b-form-head h3 { color: #231B48; margin-bottom: 4px; }
.b-form-head p { margin: 0; opacity: .85; }
.b-form-head .b-doodle { width: 90px; inset-inline-end: -10px; top: -10px; color: rgba(255, 255, 255, .55); }

/* ---------- 15. Listing toolbar, pagination, empty states --------------- */
.b-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px; padding-inline-start: 20px; margin-bottom: 30px; border-radius: 999px; background: var(--b-surface); border: 2px solid var(--b-line); box-shadow: var(--b-shadow-sm); }
.b-toolbar-info { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--b-ink); }
.b-view-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--b-bg-alt); }
.b-view-toggle a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--b-ink) !important; }
.b-view-toggle a.is-active { background: var(--b-sun); color: #231B48 !important; }
.b-toolbar form { flex: 1 1 260px; max-width: 360px; }
@media (max-width: 700px) { .b-toolbar { border-radius: 26px; padding: 14px; } .b-toolbar form { max-width: none; } }
.grid-container.list-view { grid-template-columns: minmax(0, 1fr); }
.grid-container.list-view > .b-card { flex-direction: row; align-items: stretch; }
.grid-container.list-view .b-card-media { width: min(320px, 38%); aspect-ratio: auto; margin: 10px; flex-shrink: 0; min-height: 200px; }
@media (max-width: 640px) { .grid-container.list-view > .b-card { flex-direction: column; } .grid-container.list-view .b-card-media { width: auto; aspect-ratio: 16 / 10; min-height: 0; } }

.b-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 48px 0 0; }
.b-pagination a, .b-pagination span { min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--b-font-head); font-weight: 800; color: var(--b-ink) !important; background: var(--b-surface); border: 2px solid var(--b-line); }
.b-pagination a:hover { border-color: var(--b-ink); }
.b-pagination .is-current span { background: var(--b-accent); color: var(--b-accent-contrast) !important; border-color: var(--b-accent); }
.b-pagination .is-disabled span { opacity: .45; }

.b-empty { text-align: center; padding: clamp(36px, 6vw, 64px) 20px; border-radius: calc(var(--b-r-card) + 6px); background: var(--b-surface); border: 2px dashed var(--b-line-strong); grid-column: 1 / -1; }
.b-empty-art { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: var(--b-r-blob); display: grid; place-items: center; background: var(--b-sun-soft); color: var(--b-sun-deep); }
.b-empty-art svg { width: 60px; height: 60px; }
.b-empty h3 { font-size: 1.3rem; margin-bottom: 6px; }
.b-empty p { color: var(--b-muted); margin: 0 auto 18px; max-width: 420px; }
.b-empty--plain { background: transparent; border: 0; padding: 20px 0; }
.b-with-sidebar > .b-empty { grid-column: auto; align-self: start; }

/* ---------- 16. Detail pages & sidebar ---------------------------------- */
.b-article-cover { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--b-r-card) + 6px); overflow: hidden; margin-bottom: 28px; box-shadow: var(--b-shadow); background: var(--b-surface-2); }
.b-article-cover > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-article h1, .b-article h2.b-article-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.b-article .b-meta { margin-bottom: 24px; }
.b-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 30px; }
.b-info { padding: 16px 18px; border-radius: 20px; background: var(--b-sun-soft); display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.b-info:nth-child(2) { background: var(--b-mint-soft); } .b-info:nth-child(3) { background: var(--b-sky-soft); } .b-info:nth-child(4) { background: var(--b-coral-soft); }
.b-info-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--b-surface); color: var(--b-ink); flex-shrink: 0; }
.b-info strong { display: block; font-family: var(--b-font-head); color: var(--b-ink); font-size: .92rem; }
.b-info span { color: var(--b-ink-soft); font-size: .95rem; overflow-wrap: anywhere; white-space: pre-line; }

.b-side { display: grid; gap: 22px; position: sticky; top: calc(var(--b-header-h) + 20px); }
.b-widget { padding: 24px; border-radius: var(--b-r-card); background: var(--b-surface); border: 2px solid var(--b-line); box-shadow: var(--b-shadow-sm); }
.b-widget-title { font-size: 1.12rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.b-widget-title::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--b-coral); transform: rotate(45deg); }
.b-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.b-mini { display: flex; gap: 12px; align-items: center; position: relative; }
.b-mini-thumb { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; position: relative; flex-shrink: 0; }
.b-mini-thumb > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.b-mini-thumb .b-ph svg { width: 50%; }
.b-mini small { display: block; color: var(--b-muted); font-weight: 600; font-size: .8rem; }
.b-mini a { color: var(--b-ink); font-weight: 700; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-mini a::after { content: ""; position: absolute; inset: 0; }
.b-mini a:hover { color: var(--b-accent-ink); }
.b-share { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 17. Gallery & lightbox -------------------------------------- */
.b-masonry { columns: 3 260px; column-gap: 20px; }
.b-masonry > * { break-inside: avoid; margin-bottom: 20px; }
.b-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--b-r-card); overflow: hidden; background: var(--b-surface-2); box-shadow: var(--b-shadow-sm); }
.b-shot img { width: 100%; transition: transform .5s; }
.b-shot .b-ph { aspect-ratio: 4 / 3; }
.b-shot:hover img { transform: scale(1.05); }
.b-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(35, 27, 72, .45)); opacity: 0; transition: opacity .3s; }
.b-shot:hover::after { opacity: 1; }
.b-shot-zoom { position: absolute; z-index: 2; bottom: 14px; inset-inline-end: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--b-sun); color: #231B48; display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: all .25s; }
.b-shot:hover .b-shot-zoom, .b-shot:focus-visible .b-shot-zoom { transform: scale(1); opacity: 1; }

.b-dialog { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; overflow: visible; }
.b-dialog::backdrop { background: rgba(21, 18, 43, .82); backdrop-filter: blur(4px); }
.b-dialog-inner { position: relative; border-radius: 26px; overflow: hidden; background: #000; }
.b-dialog img { width: 100%; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.b-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.b-dialog-close { position: absolute; top: -18px; inset-inline-end: -10px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--b-sun); color: #231B48; display: grid; place-items: center; box-shadow: 0 4px 0 var(--b-sun-deep); }
.b-dialog-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.b-dialog-nav--prev { inset-inline-start: 12px; } .b-dialog-nav--next { inset-inline-end: 12px; }
@media (max-width: 600px) { .b-dialog-close { top: -54px; inset-inline-end: 0; } }

/* ---------- 18. Course page -------------------------------------------- */
.b-filter-panel { padding: 24px; border-radius: var(--b-r-card); background: var(--b-surface); border: 2px solid var(--b-line); box-shadow: var(--b-shadow-sm); display: grid; gap: 22px; }
.b-filter-panel h3 { font-size: 1.02rem; margin-bottom: 10px; }
.b-filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.b-filter-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b-filter-list .b-count { font-size: .8rem; font-weight: 800; padding: .15em .6em; border-radius: 999px; background: var(--b-bg-alt); color: var(--b-ink); }
.b-filter-btn { display: none !important; }
.b-filter-wrap { position: sticky; top: calc(var(--b-header-h) + 20px); }
@media (max-width: 1080px) {
    .b-filter-btn { display: inline-flex !important; }
    .b-filter-wrap { position: static; margin-top: 14px; }
    .b-filter-wrap:not(.is-open) { display: none; }
}
.b-sortbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.b-sortbar .b-searchbox { flex: 1 1 260px; }
.b-sortbar select { flex: 0 0 200px; border-radius: 999px; }
.b-sortbar .b-count-text { font-weight: 700; color: var(--b-muted); margin-inline-start: auto; }
@media (max-width: 600px) { .b-sortbar select { flex: 1 1 100%; } .b-sortbar .b-count-text { margin-inline-start: 0; } }

.b-course-hero { display: grid; gap: 16px; margin-bottom: 26px; }
.b-video { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--b-r-card) + 6px); overflow: hidden; box-shadow: var(--b-shadow); background: #000; }
.b-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-panel { border-radius: var(--b-r-card); background: var(--b-surface); border: 2px solid var(--b-line); box-shadow: var(--b-shadow-sm); }
.b-panel + .b-panel { margin-top: 24px; }
.b-panel-head { padding: 18px 24px; border-bottom: 2px dashed var(--b-line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b-panel-head h2, .b-panel-head h3 { margin: 0; font-size: 1.25rem; }
.b-panel-body { padding: 22px 24px; }
.b-tablist { display: flex; flex-wrap: wrap; gap: 8px; }
.b-tabpanel[hidden] { display: none; }
.b-lesson-group + .b-lesson-group { margin-top: 18px; }
.b-lesson-group h4 { font-size: 1.04rem; display: flex; align-items: center; gap: 10px; }
.b-lesson-group h4 span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--b-sun); color: #231B48; font-size: .85rem; flex-shrink: 0; }
.b-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.b-lessons li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--b-bg-alt); }
.b-lessons li .b-lesson-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--b-surface); color: var(--b-coral-deep); flex-shrink: 0; }
.b-lessons li strong { font-weight: 700; color: var(--b-ink); font-size: .96rem; flex: 1; }
.b-lessons li small { color: var(--b-muted); font-weight: 700; white-space: nowrap; }
.b-rating-summary { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px; border-radius: 22px; background: var(--b-sun-soft); margin-bottom: 26px; }
.b-rating-big { text-align: center; }
.b-rating-big strong { font-family: var(--b-font-head); font-size: 3rem; line-height: 1; color: var(--b-ink); display: block; }
.b-bars { display: grid; gap: 8px; }
.b-bar { display: grid; grid-template-columns: 54px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-weight: 700; font-size: .88rem; color: var(--b-ink); }
.b-bar-track { height: 10px; border-radius: 999px; background: var(--b-surface); overflow: hidden; }
.b-bar-fill { height: 100%; border-radius: inherit; background: var(--b-sun-deep); }
@media (max-width: 600px) { .b-rating-summary { grid-template-columns: minmax(0, 1fr); } }
.b-review { display: flex; gap: 14px; padding: 16px 0; border-bottom: 2px dashed var(--b-line); }
.b-review:last-of-type { border-bottom: 0; }
.b-review h4 { margin: 0; font-size: 1.02rem; }
.b-review p { margin: 6px 0 0; color: var(--b-ink-soft); }
.b-price-card { padding: 24px; }
.b-price-big { font-family: var(--b-font-head); font-weight: 800; font-size: 2.3rem; color: var(--b-ink); line-height: 1; }
.b-price-big del { font-size: 1rem; color: var(--b-muted); margin-inline-start: 8px; font-weight: 600; }
.b-includes { list-style: none; margin: 18px 0; padding: 18px 0; border-block: 2px dashed var(--b-line); display: grid; gap: 12px; }
.b-includes li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.b-includes li span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--b-ink); }
.b-includes .b-inc-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--b-mint-soft); color: var(--b-mint-deep); }

/* Checkout */
.b-paymethods { display: grid; gap: 12px; }
.b-paymethod { border: 2px solid var(--b-line-strong); border-radius: 20px; background: var(--b-bg); transition: border-color .2s; }
.b-paymethod:has(input:checked) { border-color: var(--b-accent); box-shadow: 0 0 0 4px var(--b-accent-soft); }
.b-paymethod > label { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-family: var(--b-font-head); font-weight: 800; color: var(--b-ink); }
.b-paymethod > label input { width: 20px; height: 20px; accent-color: var(--b-accent); }
.b-paymethod-body { padding: 0 18px 18px; display: none; }
.b-paymethod:has(input:checked) .b-paymethod-body { display: block; }
#card-element { padding: 16px; border-radius: var(--b-r-input); border: 2px solid var(--b-line-strong); background: var(--b-surface); }
.b-summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-weight: 600; }
.b-summary-row--total { border-top: 2px dashed var(--b-line); margin-top: 6px; padding-top: 14px; font-family: var(--b-font-head); font-size: 1.2rem; color: var(--b-ink); font-weight: 800; }
.b-success { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; }
.b-success-ico { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: var(--b-r-blob); background: var(--b-mint); color: #10241F; display: grid; place-items: center; }

/* ---------- 19. Admission / lookup / auth ------------------------------- */
.b-steps { display: grid; gap: 26px; }
.b-step { position: relative; padding: clamp(20px, 3vw, 30px); border-radius: calc(var(--b-r-card) + 4px); background: var(--b-surface); border: 2px solid var(--b-line); }
.b-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.b-step-num { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-family: var(--b-font-head); font-weight: 800; font-size: 1.3rem; color: #231B48; background: var(--b-sun); transform: rotate(-6deg); box-shadow: 0 4px 0 var(--b-sun-deep); flex-shrink: 0; }
.b-step:nth-child(2) .b-step-num { background: var(--b-coral); box-shadow: 0 4px 0 var(--b-coral-deep); }
.b-step:nth-child(3) .b-step-num { background: var(--b-mint); box-shadow: 0 4px 0 var(--b-mint-deep); }
.b-step:nth-child(4) .b-step-num { background: var(--b-sky); box-shadow: 0 4px 0 var(--b-sky-deep); }
.b-step-head h2 { margin: 0; font-size: 1.3rem; }
.b-step-head p { margin: 0; color: var(--b-muted); font-size: .93rem; }
.b-progress-dots { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.b-progress-dots span { display: inline-flex; align-items: center; gap: 8px; padding: .45em 1em; border-radius: 999px; background: var(--b-surface); border: 2px solid var(--b-line); font-weight: 700; font-size: .9rem; color: var(--b-ink); }
.b-progress-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--b-sun); display: inline-block; }
.b-progress-dots span:nth-child(2) i { background: var(--b-coral); } .b-progress-dots span:nth-child(3) i { background: var(--b-mint); } .b-progress-dots span:nth-child(4) i { background: var(--b-sky); }

.b-lookup { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: calc(var(--b-r-card) + 10px); overflow: hidden; background: var(--b-surface); border: 2px solid var(--b-line); box-shadow: var(--b-shadow-lg); }
.b-lookup-art { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 4vw, 48px); background: var(--b-accent); color: var(--b-accent-contrast); display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; }
.b-lookup-art h2 { color: inherit; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.b-lookup-art p { color: inherit; opacity: .9; margin: 0; }
.b-lookup-art .b-cta-blob { position: absolute; z-index: -1; border-radius: 50%; }
.b-lookup-art .b-big-doodle { position: absolute; z-index: -1; top: 26px; inset-inline-end: 24px; width: 46%; max-width: 180px; color: rgba(255, 255, 255, .9); }
.b-lookup-form { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.b-lookup-art--sun { background: var(--b-sun); color: #231B48; }
.b-lookup-art--mint { background: var(--b-mint); color: #10241F; }
.b-lookup-art--sky { background: var(--b-sky); color: #10283A; }
.b-lookup-art--sun .b-big-doodle, .b-lookup-art--mint .b-big-doodle, .b-lookup-art--sky .b-big-doodle { color: rgba(35, 27, 72, .85); }
@media (max-width: 860px) { .b-lookup { grid-template-columns: minmax(0, 1fr); } .b-lookup-art { min-height: 220px; } }
.b-demo-note { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--b-coral-soft); color: var(--b-ink); font-weight: 700; font-size: .93rem; }
.b-result-area { margin-top: 36px; }
.b-result-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }

/* Report card (exam-result-view, rendered by AJAX) */
.b-report { background: var(--b-surface); border: 3px solid var(--b-sun); border-radius: calc(var(--b-r-card) + 6px); padding: clamp(18px, 3vw, 36px); position: relative; overflow: hidden; color: var(--b-ink); }
.b-report-head { text-align: center; margin-bottom: 24px; }
.b-report-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 4px; }
.b-report-head p { margin: 0; color: var(--b-muted); font-size: .92rem; }
.b-report-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; }
@media (max-width: 760px) { .b-report-grid { grid-template-columns: minmax(0, 1fr); } }
.b-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; padding: 18px; border-radius: 18px; background: var(--b-bg-alt); margin: 0; }
.b-kv dt { font-weight: 700; color: var(--b-muted); font-size: .92rem; }
.b-kv dd { margin: 0; font-weight: 700; color: var(--b-ink); }
.b-table-wrap { overflow-x: auto; border-radius: 18px; border: 2px solid var(--b-line); }
.b-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.b-table th { background: var(--b-sun-soft); color: var(--b-ink); font-family: var(--b-font-head); font-weight: 800; text-align: start; }
.b-table th, .b-table td { padding: 10px 14px; border-bottom: 2px solid var(--b-line); }
.b-table tr:last-child td, .b-table tr:last-child th { border-bottom: 0; }
.b-table .t-center { text-align: center; }
.b-gpa { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px 22px; border-radius: 20px; background: var(--b-accent); color: var(--b-accent-contrast); font-family: var(--b-font-head); font-weight: 800; font-size: 1.2rem; }
.b-gpa strong { font-size: 2rem; }
.b-sign { margin-top: 30px; display: flex; justify-content: flex-end; }
.b-sign div { min-width: 220px; text-align: center; border-top: 2px solid var(--b-ink); padding-top: 8px; font-weight: 700; }
@media print {
    .b-report { border-color: #999; }
    .b-gpa { background: #eee !important; color: #000 !important; }
}

.b-auth { display: grid; place-items: center; padding-block: clamp(36px, 7vw, 90px); }
.b-auth-card { width: 100%; max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); border-radius: calc(var(--b-r-card) + 12px); overflow: hidden; background: var(--b-surface); border: 2px solid var(--b-line); box-shadow: var(--b-shadow-lg); }
.b-auth-card--narrow { max-width: 920px; }
.b-auth-form { padding: clamp(26px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.b-auth-form h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.b-auth-form form { display: grid; gap: 16px; margin-top: 8px; }
.b-pass { position: relative; }
.b-pass .b-input, .b-pass .form-control { padding-inline-end: 54px; }
.b-pass-toggle { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--b-muted); cursor: pointer; display: grid; place-items: center; }
.b-pass-toggle:hover { background: var(--b-bg-alt); }
.b-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.b-demo-users { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--b-line); }
.b-demo-users h2 { font-size: 1rem; text-align: center; margin-bottom: 12px; }
.b-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.b-demo-grid .b-btn { width: 100%; white-space: normal; }
.b-demo-cred { font-size: .8rem; margin-top: 6px; color: var(--b-muted); line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 860px) { .b-auth-card { grid-template-columns: minmax(0, 1fr); } .b-auth-card .b-lookup-art { min-height: 200px; } }
@media (max-width: 420px) { .b-demo-grid { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.b-contact-cards { display: grid; gap: 14px; }
.b-contact-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px; background: var(--b-sun-soft); }
.b-contact-card:nth-child(2) { background: var(--b-mint-soft); } .b-contact-card:nth-child(3) { background: var(--b-sky-soft); }
.b-contact-card .b-info-ico { width: 50px; height: 50px; border-radius: 16px; }
.b-contact-card strong { display: block; font-family: var(--b-font-head); color: var(--b-ink); }
.b-contact-card span, .b-contact-card a { color: var(--b-ink-soft); overflow-wrap: anywhere; }
.b-map { border-radius: calc(var(--b-r-card) + 6px); overflow: hidden; border: 6px solid var(--b-surface); box-shadow: var(--b-shadow); }
.b-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- 20. Footer -------------------------------------------------- */
.b-footer { position: relative; margin-top: clamp(50px, 6vw, 80px); background: var(--b-footer); color: var(--b-footer-muted); padding-top: clamp(60px, 7vw, 90px); overflow: hidden; isolation: isolate; }
.b-footer .b-wave { position: absolute; top: -1px; left: 0; color: var(--b-bg); transform: rotate(180deg); }
.b-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 48px); padding-block: 40px 50px; }
.b-footer h2 { color: var(--b-footer-ink); font-size: 1.15rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.b-footer h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--b-sun); box-shadow: 14px 0 0 var(--b-coral); margin-inline-end: 14px; }
[dir="rtl"] .b-footer h2::before { box-shadow: -14px 0 0 var(--b-coral); }
.b-footer p { color: var(--b-footer-muted); }
.b-footer .b-brand { color: #FFFFFF !important; margin-bottom: 18px; }
.b-footer .b-brand img { max-height: 48px; }
.b-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.b-footer-links a { color: var(--b-footer-muted); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.b-footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; transition: all .2s; }
.b-footer-links a:hover { color: var(--b-sun); }
.b-footer-links a:hover::before { opacity: 1; background: var(--b-sun); transform: scale(1.4); }
.b-footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.b-footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.b-footer-contact .b-fc-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #231B48; }
.b-footer-contact span { overflow-wrap: anywhere; padding-top: 6px; }
.b-footer .b-social a { background: rgba(255, 255, 255, .08); color: #FFFFFF !important; }
.b-footer .b-social a:hover { background: var(--b-sun); color: #231B48 !important; }
.b-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; text-align: center; font-size: .92rem; }
.b-footer-bottom p { margin: 0; }
.b-footer-bottom a { color: var(--b-sun); }
.b-footer-deco { position: absolute; z-index: -1; pointer-events: none; opacity: .14; }
@media (max-width: 960px) { .b-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .b-footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Cookie consent (fixed-banner contract of cookie-consent.js) */
.theme-bright .fixed-banner { position: fixed; z-index: 1100; bottom: 20px; inset-inline-start: 20px; max-width: 380px; padding: 20px; border-radius: 24px; background: var(--b-surface); border: 2px solid var(--b-line); box-shadow: var(--b-shadow-lg); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s; pointer-events: none; }
.theme-bright .fixed-banner.show { opacity: 1; transform: none; pointer-events: auto; }
.theme-bright .fixed-banner.fade-out { opacity: 0; transform: translateY(20px); }
.theme-bright .fixed-banner__content { font-size: .92rem; color: var(--b-ink-soft); margin-bottom: 14px; }
.theme-bright .fixed-banner__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Reveal on scroll */
.b-reveal-on .b-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.b-reveal-on .b-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .b-reveal { opacity: 1; transform: none; } }

/* ID card / certificate output rendered from admin templates */
.b-output { margin-top: 36px; padding: clamp(16px, 3vw, 30px); border-radius: calc(var(--b-r-card) + 6px); background: var(--b-surface); border: 2px dashed var(--b-line-strong); overflow-x: auto; }

/* SweetAlert toasts pick up the theme font */
.theme-bright .swal2-popup { font-family: var(--b-font-body); border-radius: 18px !important; }

@media print {
    .b-topbar, .b-header, .b-footer, .b-drawer, .sc-chat, .site-fab, .cz { display: none !important; }
}

/* ---------- 21. Small screens ------------------------------------------- */
@media (max-width: 700px) {
    .b-hero .b-doodle, .b-cta .b-doodle, .b-pagehero .b-doodle, .b-hero2-deco, .b-section > .b-doodle, .b-lookup-art .b-doodle { display: none; }
    .b-hero { padding-top: 24px; }
    .b-cta .b-row .b-btn { width: 100%; }
    .b-head--row { align-items: flex-start; }
    .b-toolbar-info { flex-wrap: wrap; }
    .b-form-card { border-radius: var(--b-r-card); }
    .b-pagehero h1 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
}
