/* Biosyn Egypt platform — styles on top of the Biosyn design system (tokens.css + bundle.css).
   Only tokens are used for colour, type, space and radius. Prefix: bx- */
:root { --mark-mask: url('../img/biosyn-mark.png'); }

.bs-root { min-height: 100%; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }
.ic-fill { fill: currentColor; stroke: none; }

.bx-wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-8); }
.bx-eyebrow { display: inline-flex; gap: var(--space-2); align-items: center; font: 600 14px/22px var(--font-sans); color: var(--accent-text); }
.bx-lead { font: 400 18px/32px var(--font-sans); color: var(--ink-muted); max-width: 40em; margin: 0; }
.bx-muted { color: var(--ink-muted); }
.bx-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.bx-spread { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* Page head */
.bx-pagehead { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: radial-gradient(50% 90% at 90% 0%, color-mix(in srgb, var(--brand-lime) 8%, transparent), transparent 70%), var(--bg); }
.bx-pagehead > .bs-wm { z-index: -1; }
.bx-pagehead-in { max-width: var(--container-max); margin: 0 auto; padding: var(--space-12) var(--space-8); }
.bx-pagehead h1 { font: 700 44px/56px var(--font-display); margin: var(--space-3) 0; }

/* Forms */
.bx-field { display: grid; gap: 6px; }
.bx-field > label, .bx-label { font: 600 14px/22px var(--font-sans); color: var(--ink); }
.bx-input, .bx-select, .bx-textarea { font: 400 15px/24px var(--font-sans); color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 14px; width: 100%; box-sizing: border-box; min-height: 46px; }
.bx-textarea { min-height: 120px; resize: vertical; }
.bx-input::placeholder, .bx-textarea::placeholder { color: var(--ink-subtle); }
.bx-search { position: relative; }
.bx-search .ic { position: absolute; inset-inline-start: 14px; top: 14px; color: var(--ink-subtle); }
.bx-search .bx-input { padding-inline-start: 44px; }
.bx-hint { font: 400 13px/20px var(--font-sans); color: var(--ink-subtle); }
.bx-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bx-chip { font: 500 14px/22px var(--font-sans); padding: 8px 16px; min-height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.bx-chip[aria-pressed="true"] { background: var(--brand-lime); border-color: var(--brand-lime); color: var(--on-brand); font-weight: 600; }
.bx-check { display: flex; gap: 10px; align-items: center; font: 400 15px/24px var(--font-sans); min-height: 44px; cursor: pointer; }
.bx-check input { width: 18px; height: 18px; accent-color: var(--brand-lime); margin: 0; }
.bx-check small { margin-inline-start: auto; color: var(--ink-subtle); font-size: 13px; }

/* Surfaces */
.bx-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.bx-panel > h2, .bx-panel > h3, .bx-panel-head h2, .bx-panel-head h3 { font: 600 18px/28px var(--font-display); margin: 0; }
.bx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.bx-progress { height: 8px; border-radius: var(--radius-pill); background: var(--surface-raised); overflow: hidden; }
.bx-progress > i { display: block; height: 100%; background: var(--brand-gradient); border-radius: var(--radius-pill); }
.bx-st { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/20px var(--font-sans); padding: 2px 10px; border-radius: var(--radius-pill); border: 1px solid currentColor; white-space: nowrap; }
.bx-st-ok { color: var(--success); } .bx-st-warn { color: var(--warning); } .bx-st-danger { color: var(--danger); } .bx-st-info { color: var(--info); } .bx-st-mute { color: var(--ink-muted); }
.bx-table { width: 100%; border-collapse: collapse; font: 400 14px/22px var(--font-sans); }
.bx-table th { text-align: start; color: var(--ink-subtle); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bx-table td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.bx-table tr:last-child td { border-bottom: 0; }
.bx-scroll { overflow-x: auto; }

/* Home */
.bx-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-6); }
.bx-cat { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink) !important; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.bx-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.bx-cat-ic { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--tint-lime); color: var(--on-tint-lime); display: grid; place-items: center; flex: none; }
.bx-cat b { display: block; font: 600 18px/28px var(--font-display); }
.bx-cat span { display: block; font: 400 14px/24px var(--font-sans); color: var(--ink-muted); }
.bx-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: var(--space-6); }
.bx-mode { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.bx-mode > .bs-wm { width: 300px; inset-inline-start: -90px; bottom: -120px; z-index: -1; transform: rotate(-14deg); }
.bx-mode-live { background: var(--surface-raised); border-color: var(--line-strong); }
.bx-mode h3 { font: 700 26px/38px var(--font-display); margin: 0; }
.bx-mode p { margin: 0; color: var(--ink-muted); }
.bx-mode .bs-checks { flex: 1; }
.bx-faq { display: grid; gap: var(--space-3); max-width: 860px; }
.bx-faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.bx-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 16px var(--space-6); font: 600 16px/26px var(--font-display); min-height: 56px; }
.bx-faq summary::-webkit-details-marker { display: none; }
.bx-faq summary .ic { color: var(--accent-text); transition: transform .15s ease; }
.bx-faq details[open] summary .ic { transform: rotate(45deg); }
.bx-faq details p { margin: 0; padding: 0 var(--space-6) var(--space-6); color: var(--ink-muted); }
.bx-cta { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; padding: var(--space-12); border-radius: var(--radius-lg); border: 1px solid var(--brand-lime); background: var(--surface); box-shadow: var(--shadow-glow); }
.bx-cta > .bs-wm { width: 380px; inset-inline-end: -100px; top: -140px; z-index: -1; transform: rotate(14deg); }
.bx-cta h2 { font: 700 34px/46px var(--font-display); margin: 0 0 var(--space-2); }
.bx-cta p { margin: 0; color: var(--ink-muted); }

@media (max-width: 900px) {
  .bx-wrap, .bx-pagehead-in { padding-inline: var(--space-4); }
  .bx-pagehead h1 { font-size: 32px; line-height: 44px; }
  .bx-mode, .bx-cta { padding: var(--space-6); }
  .bx-cta h2 { font-size: 26px; line-height: 38px; }
}

/* Header and footer aligned with the live site */
.bs-promo { display: flex; justify-content: center; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.bx-promo-t { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bx-promo-s { opacity: .8; }
.bs-header-in { gap: var(--space-5, 20px); }
.bx-hsearch { display: flex; align-items: center; gap: 8px; flex: 0 1 250px; min-width: 0; height: 44px; padding-inline: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-subtle); }
.bx-hsearch:focus-within { border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-text) 18%, transparent); }
.bx-hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 14px/22px var(--font-sans); color: var(--ink); }
.bx-hsearch button { flex: none; width: 32px; height: 32px; border-radius: 8px; border: 0; display: grid; place-items: center; background: #010232; color: #c6f84a; cursor: pointer; }
.bs-nav a.bx-hdd { display: inline-flex; align-items: center; gap: 4px; }
.bs-nav a.bx-hteach { color: var(--accent-text) !important; font-weight: 600; }
.bx-hlogin { font: 500 14px/22px var(--font-sans); color: var(--ink-muted) !important; padding: 0 var(--space-2); }
.bx-helpcard { display: grid; gap: 6px; align-content: start; padding: var(--space-5, 20px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); background: rgba(255,255,255,.04); color: rgba(255,255,255,.8); font: 400 13px/22px var(--font-sans); }
.bx-helpcard svg { color: #c6f84a; }
.bx-helpcard b { color: #fff; font: 600 15px/24px var(--font-display); }
.bx-helpcard a { color: #c6f84a !important; font-weight: 600; }
@media (max-width: 1100px) { .bx-hsearch { display: none; } }
.bs-nav a.bx-hteach[aria-current="page"] { color: var(--on-brand) !important; }

/* Responsive helpers */
@media (max-width: 900px) {
  .bx-livetop, .bx-nextlive { grid-template-columns: minmax(0, 1fr) !important; }
  .bs-tabs { display: flex; max-width: 100%; overflow-x: auto; }
  .bs-tabs button { white-space: nowrap; flex: none; }
  .bx-ptop { padding: 0 var(--space-3); gap: var(--space-2); }
  .bx-ptop h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bx-spread > * { min-width: 0; }
}
@media (max-width: 900px) {
  .bx-classroom, .bx-program, .bx-livetop { grid-template-columns: minmax(0, 1fr) !important; }
  .bx-classroom > *, .bx-program > *, .bx-livetop > *, .bx-nextlive > * { min-width: 0; }
  .bx-chips { max-width: 100%; }
}
@media (max-width: 900px) { .bx-classroom, .bx-livetop, .bx-catalog { overflow-x: clip; } .bx-nextlive { min-width: 0; max-width: 100%; } }
.bx-scroll, .bx-field, .bx-panel { position: relative; }
.bx-filterrow { display: grid; grid-template-columns: minmax(0, 1fr) 200px 200px; gap: 12px; }
.bx-stack, .bx-col { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .bx-filterrow { grid-template-columns: minmax(0, 1fr); } .bx-meta { flex-wrap: wrap; } }
.bx-catalog-live { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1100px) { .bx-catalog-live { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .bx-tabsline { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; } .bx-tabsline button { white-space: nowrap; flex: none; } }
.bx-hmenu { display: none; }
@media (max-width: 900px) { .bx-hmenu { display: inline-flex; order: 3; } .bx-hlogin { display: none; } }
