/* Bilal Academy Management: site header and footer (v1.114)
   Generated from the approved home page design. Everything is scoped under .bh and every
   class carries the bh- prefix, so it cannot collide with the theme or other plugins. */
.bh { color-scheme: light;
  --g950:#0a2e1a; --g900:#0d3b22; --g800:#14532d; --g700:#1d7a4c; --g600:#27935c; --g200:#bfe6cf; --g100:#e3f5ea; --g50:#f1f8f3;
  --gold:#f2b632; --gold-d:#d99a12; --gold-50:#fff6dc;
  --navy:#203b6a; --ink:#16251c; --muted:#4d6054; --line:#d9e6dd; --bg:#ffffff; --surface:#ffffff;
  --r:22px; --shadow:0 1px 2px rgba(13,59,34,.06), 0 12px 32px rgba(13,59,34,.10);
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
     font-size:17px; line-height:1.65; }
.bh *, .bh *::before, .bh *::after { box-sizing:border-box; }
.bh { margin:0;   color:var(--ink); font-family:var(--sans); font-size:17px; line-height:1.65; -webkit-font-smoothing:antialiased; }
:where(.bh) img,
:where(.bh) svg { max-width:100%; }
:where(.bh) a { color:inherit; }
:where(.bh) h1,
:where(.bh) h2,
:where(.bh) h3 { font-family:var(--serif); line-height:1.12; margin:0; letter-spacing:-.01em; }
:where(.bh) section { position:relative; }
.bh .bh-wrap { width:min(1180px, 100% - 40px); margin-inline:auto; }
.bh .bh-skip { position:absolute; left:-9999px; top:8px; background:#fff; color:var(--g900); padding:10px 16px; border-radius:10px; z-index:200; font-weight:700; }
.bh .bh-skip:focus { left:12px; }
.bh .bh-eyebrow { display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border-radius:999px; background:var(--g100); color:var(--g800); font-size:13px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.bh .bh-eyebrow.bh-on-dark { background:rgba(255,255,255,.12); color:#ffe9a8; }
.bh .bh-btn { white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 28px; border-radius:999px; border:2px solid transparent; font:700 17px/1 var(--sans); text-decoration:none; cursor:pointer; transition:transform .18s, box-shadow .18s, background .18s, color .18s; }
.bh .bh-btn svg { width:20px; height:20px; flex:none; }
.bh .bh-btn-gold { background:var(--gold); color:#2a1d00; box-shadow:0 10px 24px rgba(242,182,50,.35); }
.bh .bh-btn-gold:hover { transform:translateY(-2px); background:#f7c352; box-shadow:0 14px 30px rgba(242,182,50,.45); }
.bh .bh-btn-ghost { border-color:rgba(255,255,255,.55); color:#fff; background:rgba(255,255,255,.06); }
.bh .bh-btn-ghost:hover { background:rgba(255,255,255,.16); transform:translateY(-2px); }
.bh .bh-btn-green { background:var(--g700); color:#fff; box-shadow:0 10px 24px rgba(29,122,76,.28); }
.bh .bh-btn-green:hover { background:var(--g800); transform:translateY(-2px); }
.bh .bh-btn-line { border-color:var(--g700); color:var(--g800); background:#fff; }
.bh .bh-btn-line:hover { background:var(--g50); transform:translateY(-2px); }
.bh .bh-ico { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.bh .bh-status { background:var(--g950); color:#e8f5ec; font-size:14.5px; }
.bh .bh-status .bh-wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:44px; padding-block:6px; flex-wrap:wrap; }
.bh .bh-status .bh-live { display:flex; align-items:center; gap:10px; font-weight:600; }
.bh .bh-dot { width:10px; height:10px; border-radius:50%; background:#3ddc84; box-shadow:0 0 0 0 rgba(61,220,132,.7); animation:bh-pulse 2s infinite; flex:none; }
@keyframes bh-pulse { 70% { box-shadow:0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow:0 0 0 0 rgba(61,220,132,0); } }
.bh .bh-status a { color:#ffe9a8; font-weight:700; text-decoration:none; }
.bh .bh-status a:hover { text-decoration:underline; }
.bh .bh-status.bh-closed { background:#7a2a00; }
.bh .bh-status.bh-closed .bh-dot { background:#ffb54a; animation:none; }
.bh header.bh-site { position:sticky; top:env(safe-area-inset-top,0px); z-index:100; background:rgba(255,255,255,.92); backdrop-filter:saturate(1.4) blur(12px); -webkit-backdrop-filter:saturate(1.4) blur(12px); border-bottom:1px solid transparent; transition:border-color .2s, box-shadow .2s; }
.bh header.bh-site.bh-scrolled { border-color:var(--line); box-shadow:0 6px 24px rgba(13,59,34,.08); }
.bh header .bh-bar { display:flex; align-items:center; gap:24px; min-height:80px; }
.bh .bh-brand { display:flex; align-items:center; gap:14px; text-decoration:none; color:var(--g900); margin-right:auto; flex:none; }
.bh .bh-brand svg { width:52px; height:52px; flex:none; }
.bh .bh-brand b { display:block; font-family:var(--serif); font-size:24px; line-height:1.05; }
.bh .bh-brand span { display:block; font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:700; white-space:nowrap; }
.bh nav.bh-main { display:flex; align-items:center; gap:4px; }
.bh nav.bh-main a.bh-l { white-space:nowrap; padding:10px 12px; border-radius:999px; text-decoration:none; font-weight:700; font-size:16px; color:var(--ink); }
.bh nav.bh-main a.bh-l:hover { background:var(--g50); color:var(--g800); }
.bh .bh-signin { position:relative; }
.bh .bh-signin summary { white-space:nowrap; list-style:none; cursor:pointer; padding:10px 16px; border-radius:999px; font-weight:700; border:2px solid var(--line); display:flex; gap:8px; align-items:center; min-height:48px; }
.bh .bh-signin summary::-webkit-details-marker { display:none; }
.bh .bh-signin[open] summary { border-color:var(--g700); background:var(--g50); }
.bh .bh-signin .bh-menu { position:absolute; right:0; top:calc(100% + 10px); width:290px; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:10px; z-index:10; }
.bh .bh-signin .bh-menu a { display:flex; gap:12px; align-items:flex-start; padding:12px; border-radius:12px; text-decoration:none; }
.bh .bh-signin .bh-menu a:hover { background:var(--g50); }
.bh .bh-signin .bh-menu b { display:block; color:var(--g900); }
.bh .bh-signin .bh-menu small { color:var(--muted); font-size:14px; line-height:1.35; display:block; }
.bh .bh-signin .bh-menu .bh-ico { margin-top:2px; color:var(--g700); flex:none; }
.bh .bh-burger { display:none; width:52px; height:52px; border-radius:14px; border:2px solid var(--line); background:#fff; cursor:pointer; align-items:center; justify-content:center; }
.bh .bh-burger svg { width:26px; height:26px; }
@keyframes bh-spin { to { transform:rotate(360deg); } }
.bh .bh-live-note { display:flex; align-items:center; gap:10px; margin-top:18px; color:var(--muted); font-size:15px; }
.bh footer.bh-site { background:var(--g950); color:#b9d3c2; padding:64px 0 28px; font-size:16px; }
.bh footer .bh-fg { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; }
.bh footer .bh-fb { display:flex; gap:14px; align-items:center; color:#fff; margin-bottom:14px; }
.bh footer .bh-fb svg { width:54px; height:54px; }
.bh footer .bh-fb b { font-family:var(--serif); font-size:25px; }
.bh footer .bh-copy { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:44px; padding-top:22px; border-top:1px solid rgba(255,255,255,.12); font-size:14.5px; }
@media (max-width:1240px) {
.bh nav.bh-main { display:none; }
.bh .bh-burger { display:flex; }
.bh nav.bh-main.bh-open { display:flex; position:absolute; left:0; right:0; top:100%; flex-direction:column; align-items:stretch; background:#fff; padding:14px 20px 22px; border-bottom:1px solid var(--line); box-shadow:0 20px 40px rgba(13,59,34,.12); gap:4px; }
.bh nav.bh-main.bh-open a.bh-l { padding:16px 14px; font-size:18px; }
.bh nav.bh-main.bh-open .bh-signin summary { justify-content:center; }
.bh nav.bh-main.bh-open .bh-signin .bh-menu { position:static; width:auto; box-shadow:none; margin-top:8px; }
.bh header .bh-bar { position:relative; }
.bh .bh-hide-sm { display:none !important; }
.bh footer .bh-fg { grid-template-columns:1fr 1fr; }
}
@media (max-width:720px) {
.bh .bh-wrap { width:min(1180px, 100% - 32px); }
.bh .bh-brand span { display:none; }
.bh .bh-brand b { font-size:22px; }
.bh .bh-brand svg { width:46px; height:46px; }
.bh .bh-hero .bh-cta .bh-btn { flex:1 1 100%; }
.bh footer .bh-fg { grid-template-columns:1fr; }
.bh .bh-mbar .bh-btn { min-height:50px; padding:0 14px; font-size:16px; }
}
@media (prefers-reduced-motion:reduce) {
.bh *, .bh *::before, .bh *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
/* the school's own header and footer replace the theme's; these only take effect once ours has printed */
.bh-chrome-on .bh-sprite { position:absolute; width:0; height:0; overflow:hidden; }
body.admin-bar .bh header.bh-site { top:32px; }
@media (max-width:782px) { body.admin-bar .bh header.bh-site { top:46px; } }
/* the real logo mark: a fixed size in the header and footer (never fills its container) */
.bh .bh-brand .bh-logo { display:block; width:52px; height:52px; flex:none; object-fit:contain; }
.bh footer .bh-fb .bh-logo { display:block; width:54px; height:54px; flex:none; object-fit:contain; }
.bh .bh-status a:focus-visible, .bh header a:focus-visible { outline-offset:2px; }
.bh .bh-user { display:flex; align-items:center; gap:8px; font-weight:700; }

/* icons keep their size; a "never wider than the container" rule must not collapse them inside buttons */
.bh svg.bh-ico { max-width:none; flex:none; }

/* Defensive rules. Themes (Hello Elementor included) often style bare buttons, headings and paragraphs
   for the whole site; these keep that from leaking into the school's header, page and footer. */
.bh button { font-family:inherit; text-transform:none; letter-spacing:normal; }
.bh .bh-burger { padding:0; color:var(--ink); line-height:1; }
.bh .bh-burger:hover, .bh .bh-burger:focus { background:#fff; color:var(--ink); border-color:var(--g700); }
.bh h1, .bh h2, .bh h3 { font-family:var(--serif); font-weight:700; line-height:1.12; margin:0; color:inherit; text-transform:none; }
.bh h4 { font-family:var(--sans); font-weight:700; line-height:1.3; }
.bh p { margin-block:1em; }
.bh a:hover, .bh a:focus { text-decoration:none; }
.bh img { height:auto; border:0; }
.bh summary { color:inherit; }

/* the live status bar, more compact on phones (v2.0) */
@media (max-width:720px) {
	.bh .bh-status { font-size:13px; line-height:1.3; }
	.bh .bh-status .bh-wrap { min-height:0; padding-block:6px; gap:2px 12px; }
	.bh .bh-status .bh-live { gap:8px; }
	.bh .bh-status .bh-dot { width:8px; height:8px; }
}
