/* The Bismillah font is loaded by inc/perf.php without blocking the first paint (2026-10-07). */

/* Header shell */
#site-header .hdr-cta { background: var(--brand-orange); color: #fff; }
#site-header.stuck { box-shadow: var(--shadow-low); }

/* The bismillah bar, folded away by header.js ten seconds after load.
   The transition lives on the element (design's inline style); this is only
   the end state it animates to. */
#bismillah-bar.gone { max-height: 0 !important; opacity: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
@media (prefers-reduced-motion: reduce) { #bismillah-bar { transition: none !important; } }
#bismillah-bar span[lang="ar"] { font-family: 'Noto Nastaliq Urdu', Poppins, Helvetica, sans-serif; font-weight: 700; }

/* Panels */
#site-header .navitem > .navpanel { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 200ms cubic-bezier(0.4,0,0.2,1), transform 200ms cubic-bezier(0.4,0,0.2,1), visibility 200ms; }
#site-header .navitem:hover > .navpanel,
#site-header .navitem:focus-within > .navpanel,
#site-header .navitem.is-open > .navpanel { opacity: 1; visibility: visible; transform: translateY(0); }
#site-header .navpanel::before { content: ''; position: absolute; left: 0; right: 0; top: -28px; height: 30px; display: block; }

#site-header .navitem:hover > .navtrigger,
#site-header .navitem.is-open > .navtrigger { color: var(--brand-green); }
#site-header .navitem:hover > .navtrigger .navchev,
#site-header .navitem.is-open > .navtrigger .navchev { transform: rotate(180deg); }
#site-header .navchev { transition: transform 200ms cubic-bezier(0.4,0,0.2,1); }

/* The trigger is a <button>; the design's is a <span>. bb-theme's skin sets
   button { line-height:1.2 }, so the trigger rendered 33px tall against the
   design's 38px and the whole header sat 5px short. Take the header's own. */
#site-header .navtrigger { line-height: inherit; }

#site-header .navlink { transition: background 200ms cubic-bezier(0.4,0,0.2,1); }
#site-header .navlink:hover { background: var(--slate-50); }
#site-header .navlink:hover .navlink-t { color: var(--brand-green-dark); }

@keyframes ijColIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#site-header .navitem:hover > .navpanel .navinner > div,
#site-header .navitem.is-open > .navpanel .navinner > div { animation: ijColIn 320ms cubic-bezier(0.16,1,0.3,1) both; }
#site-header .navitem:hover > .navpanel .navinner > div:nth-child(2) { animation-delay: 60ms; }
#site-header .navitem:hover > .navpanel .navinner > div:nth-child(3) { animation-delay: 120ms; }

@media (min-width: 1560px) { #site-header nav { order: 0 !important; flex: 1 1 auto !important; } }
/* With Ethi Token and Get Started both in the header (2026-10-27) the one-row
   layout runs about 60px short below 1680px; tighter gaps keep it on one row. */
@media (min-width: 1560px) and (max-width: 1679px) {
	#site-header .hdr-row { column-gap: 28px !important; }
	#site-header nav { column-gap: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  #site-header .navitem > .navpanel { transition: none; }
  #site-header .navpanel .navinner > div { animation: none !important; }
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* The old <=1100px drop-down drawer and <=600px header layout were replaced
   by the design's phone drawer at <=900px (23 Sep mobile rework) — see
   assets/css/mobile.css. */







/* Lock scrolling behind the open drawer. */
body.ij-nav-locked { overflow: hidden; }
/* The floating payment calculator (z-index 1300) would sit over the open drawer. */
body.ij-nav-locked .ij-calc { display: none; }

/* Footer navigation */
#site-footer .ij-footer-menu,
#site-footer .ij-footer-menu ul { list-style: none; margin: 0; padding: 0; }
#site-footer .ij-footer-nav { align-items: start; }
#site-footer .ij-footer-menu > li { margin-bottom: 32px; }
#site-footer .ij-footer-menu > li > a,
#site-footer .ij-footer-menu > li > .ij-footer-heading { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
#site-footer .ij-footer-menu ul a { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,0.85); }
#site-footer .ij-footer-menu ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { #site-footer .ij-footer-nav { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 560px) { #site-footer .ij-footer-nav { grid-template-columns: minmax(0,1fr) !important; } }

/* The social row is a flex line of seven 20px marks with a 32px gap — 332px
   that cannot wrap, so it hangs over the edge of a 320px phone even though
   the footer grid above it has already collapsed to one column. */
@media (max-width: 560px) {
	#site-footer div:has(> .ij-social) { flex-wrap: wrap !important; gap: 20px !important; }
}

/* Header phone + Customer Portal button (design lines 809-813) */
#site-header .hdr-contact svg { color: var(--brand-green); flex: none; }
#site-header .hdr-portal-btn { transition: background 200ms cubic-bezier(0.4,0,0.2,1); }
#site-header .hdr-portal-btn:hover { background: var(--slate-50); }

/* Footer: logo/socials + menu now share one 5-track grid (design lines 1085-1136).
   display:contents drops the wp_nav_menu() <ul> from grid layout so its four
   top-level <li>s become the grid's own column items. */
#site-footer .ij-footer-menu { display: contents; }
#site-footer .ij-footer-menu > li { margin-bottom: 0; }
#site-footer .ij-footer-menu > li > a,
#site-footer .ij-footer-menu > li > .ij-footer-heading { display: block; margin-bottom: 32px; font-size: 16px; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--brand-green-light); }
#site-footer .ij-footer-menu > li > ul { display: flex; flex-direction: column; gap: 20px; }
#site-footer .ij-footer-menu ul a { padding: 0; font-size: 16px; }

/* Resources panel "Featured" column (design lines 790-804).
   Mirrors the card hover already defined for .ij-blog .postcard in blog.css. */
#site-header .navmedia .postcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms cubic-bezier(0.16,1,0.3,1); }
#site-header .navmedia .postcard:hover img { transform: scale(1.04); }
/* Only the image zoom. The design's title-underline rule is
   `.postcard:hover .postcard-t`, and these cards title with .navlink-t, so it
   deliberately does not reach them — an underline here would be an invention. */
/* The design drops the divider and moves it to the top edge at 1400px
   (Blog.dc.html, @media (max-width:1400px)) — not at the 1100px the rest of
   the panel uses, because this column is 460px wide and runs out of room
   first. */
@media (max-width: 1400px) {
  #site-header .navmedia {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
    margin-top: 4px;
    padding-top: 28px !important;
    border-top: 1px solid var(--color-border) !important;
  }
}

/* The header phone block: hidden at 1500px and below, as in the design
   (Blog.dc.html). The drawer shows the number on phones. */
@media (max-width: 1500px) {
	#site-header .hdr-contact { display: none !important; }
}

/* Programs card panel (3 Nov 2026 rework) — see IJ_NAV_CARDS_CLASS in
   inc/class-ij-mega-walker.php. */
#site-header .navcard { transition: border-color 200ms cubic-bezier(0.4,0,0.2,1), box-shadow 200ms cubic-bezier(0.4,0,0.2,1); }
#site-header a.navcard:hover { border-color: var(--brand-green-light) !important; box-shadow: var(--shadow-sm, 0 2px 8px rgba(27,41,50,0.08)); }
#site-header a.navcard:hover .navlink-t { color: var(--brand-green-dark); }
#site-header .navcta-btn { transition: background 200ms cubic-bezier(0.4,0,0.2,1); }
#site-header .navcta-btn:hover { background: var(--brand-orange-dark) !important; color: var(--color-white) !important; }
#site-header .navitem:hover > .navpanel .navinner > div:nth-child(4) { animation-delay: 180ms; }
/* Four columns need ~1100px; below that, two to a row. */
@media (max-width: 1199px) {
  #site-header .navcards-col, #site-header .navcta { flex-basis: calc(50% - 28px) !important; max-width: calc(50% - 28px) !important; }
}
