/* Ehtesham Law — header menu and footer (Nov 2026).
   Header: a mega menu (one wide panel per section, in the site's card style) and a clear "you are here" state.
   Footer: a CTA strip, five tidy columns and a one-line bottom bar. Loads after the other front styles. */

/* ---------- Header menu ---------- */
@media (min-width: 1200px) {
  .el-header__bar { gap: 10px; }
  .el-nav__list { justify-content: center; gap: 0; }
  .el-nav__link { padding: 10px 9px; font-size: 15px; }
}
/* Smaller laptops: seven menu items + Log in + Register must fit in one row. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .el-header__bar { gap: 12px; }
  .el-nav__link { padding: 10px 8px; font-size: 14.5px; }
  .el-login-btn { width: 42px !important; padding: 0 !important; justify-content: center; }
  .el-login-btn span { display: none !important; }
  .el-header__cta { padding-left: 14px; padding-right: 14px; }
}
/* ---------- "You are here" ----------
   The section you are in: bold navy label on a soft gold pill with a gold edge (no underline).
   The link to the current page (aria-current) is marked the same way in the mega menu, the phone menu and the footer.
   --el-nav-mark is a deeper gold that keeps 3:1 contrast on white and on the pill (brand gold is only 2:1).
   Nothing moves when an item turns active: each label already reserves its bold width, and the pill sits behind it. */
:root { --el-nav-mark: #bd7a00; --el-nav-pill: #fff6e6; --el-nav-pill-hover: #fff0d6; --el-nav-ring: rgba(189, 122, 0, .45); }
.el-nav__link { position: relative; }
.el-nav__label { position: relative; display: inline-flex; flex-direction: column; }
.el-nav__label::before { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 700; pointer-events: none; user-select: none; }
.el-nav__list .el-nav__link.is-active,
.el-nav__list .el-nav__item.is-open > .el-nav__link.is-active {
  color: var(--el-navy-900) !important; font-weight: 700;
  background: var(--el-nav-pill); box-shadow: inset 0 0 0 1px var(--el-nav-ring);
}
.el-nav__list .el-nav__link.is-active:hover,
.el-nav__list .el-nav__item.is-open > .el-nav__link.is-active { background: var(--el-nav-pill-hover); }
.el-nav__link.is-active .fa-chevron-down { opacity: .85; color: var(--el-nav-mark); }
/* Keyboard focus: a navy ring (the site's gold ring is too faint on the white header). */
.el-nav__link:focus-visible,
.el-header .el-icon-btn:focus-visible, .el-drawer__head .el-icon-btn:focus-visible { outline: 2px solid var(--el-navy-800); outline-offset: 2px; }
.el-nav__link:focus-visible { border-radius: 10px; }
.el-nav__link:not(.is-active):focus-visible { background: var(--el-bg); }
.el-mega a:focus-visible { outline: 2px solid var(--el-navy-800); outline-offset: -2px; }

/* ---------- Mega menu (front/layout + front/partials/mega-tile) ----------
   One wide panel per section under the header: link tiles (icon chip, name, one plain line) on the left and a navy
   feature card on the right, the same look as the dark course card. Opens on hover (after a short pause), click or focus. */
@media (min-width: 1200px) {
  .el-header__bar { position: relative; }
  .el-nav__item[data-dropdown] { position: static; }
}
.el-mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  width: min(1100px, calc(100% - 64px)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 22px;
  background: #fff; border: 1px solid var(--el-line); border-radius: 22px;
  box-shadow: 0 34px 64px -30px rgba(11, 34, 54, .5), 0 2px 6px rgba(11, 34, 54, .05);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--el-ease), transform .18s var(--el-ease), visibility 0s linear .18s;
}
.el-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }   /* hover bridge from the menu item */
.el-nav__item:hover > .el-mega, .el-nav__item.is-open > .el-mega, .el-nav__item:focus-within > .el-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.el-nav__item:hover > .el-mega { transition-delay: .08s; }   /* passing the mouse over the menu doesn't flash panels */

.el-mega__main { min-width: 0; display: grid; align-content: start; gap: 10px; }
.el-mega__kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 2px 10px !important;
  font: 800 11.5px/1.2 var(--el-font); letter-spacing: .14em; text-transform: uppercase; color: #9a5f00;
}
.el-mega__kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--el-gold-500); }
.el-mega__grid + .el-mega__kicker { margin-top: 10px !important; }
.el-mega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.el-mega__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.el-mega__grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.el-mega__link {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; height: 100%;
  padding: 10px; border-radius: 14px; color: var(--el-ink) !important; text-decoration: none !important; transition: background .15s;
}
.el-mega__link:hover { background: var(--el-bg); }
.el-mega__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #eef2f7; color: var(--el-navy-800); font-size: 16px; transition: background .15s, color .15s;
}
.el-mega__icon--chip { font: 800 10.5px/1 var(--el-font); letter-spacing: .02em; }
.el-mega__link:hover .el-mega__icon { background: var(--el-navy-800); color: var(--el-gold-400); }
.el-mega__text { display: grid; gap: 3px; min-width: 0; }
.el-mega__text strong { font: 700 14.5px/1.3 var(--el-font); color: var(--el-ink); }
.el-mega__text small { font-size: 12.5px; line-height: 1.4; color: var(--el-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.el-mega__ext { margin-left: 2px; font-size: 10px; opacity: .5; }
.el-mega__grid--compact .el-mega__link { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 8px; }
.el-mega__grid--compact .el-mega__icon { width: 38px; height: 38px; border-radius: 10px; }
.el-mega__grid--compact .el-mega__text strong { font-size: 14px; }
.el-mega__grid--compact .el-mega__text small { font-size: 12px; line-height: 1.35; }

/* The page you are on: soft gold tile with a gold edge, navy chip. */
.el-mega__link[aria-current], .el-mega__link[aria-current]:hover { background: var(--el-nav-pill); box-shadow: inset 0 0 0 1px var(--el-nav-ring); }
.el-mega__link[aria-current] strong { color: var(--el-navy-900); }
.el-mega__link[aria-current] .el-mega__icon { background: var(--el-navy-800); color: var(--el-gold-400); }

.el-mega__foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; padding: 12px 10px 0; border-top: 1px solid var(--el-line); }
.el-mega__all { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: var(--el-navy-800) !important; text-decoration: none !important; }
.el-mega__all i { font-size: 11px; color: var(--el-nav-mark); transition: transform .15s; }
.el-mega__all:hover { color: var(--el-blue-600) !important; }
.el-mega__all:hover i { transform: translateX(3px); }
.el-mega__all[aria-current] { margin: -6px -12px; padding: 6px 12px; border-radius: 999px; background: var(--el-nav-pill); box-shadow: inset 0 0 0 1px var(--el-nav-ring); color: var(--el-navy-900) !important; }

/* Feature card */
.el-mega__promo {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 22px; border-radius: 18px; color: #c9d6e4 !important; text-decoration: none !important;
  background: radial-gradient(120% 80% at 100% 0, rgba(242, 165, 43, .28), transparent 55%), linear-gradient(160deg, var(--el-navy-800), var(--el-navy-950));
  transition: transform .2s, box-shadow .2s;
}
a.el-mega__promo:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -24px rgba(11, 34, 54, .85); }
.el-mega__promo[aria-current] { box-shadow: inset 0 0 0 2px var(--el-gold-400); }
.el-mega__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: var(--el-gold-500); color: var(--el-navy-950); font: 800 11px/1 var(--el-font); letter-spacing: .08em; text-transform: uppercase;
}
.el-mega__promo--yt .el-mega__badge { background: #c4302b; color: #fff; }
.el-mega__ptitle { font: 600 24px/1.15 var(--el-font-display, var(--el-font)); color: #fff; letter-spacing: -.01em; }
.el-mega__ptext { font-size: 14px; line-height: 1.55; color: #aebfd1; }
.el-mega__pcta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px;
  background: var(--el-gold-500); color: var(--el-navy-950); font: 800 14px/1 var(--el-font); transition: background .2s;
}
.el-mega__pcta i { font-size: 12px; transition: transform .2s; }
a.el-mega__promo:hover .el-mega__pcta { background: #fff; }
a.el-mega__promo:hover .el-mega__pcta .fa-arrow-right { transform: translateX(3px); }
.el-mega__pbtns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.el-mega__pbtn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 12px;
  background: #fff; color: var(--el-navy-900) !important; font: 800 14px/1 var(--el-font); text-decoration: none !important; transition: background .2s;
}
.el-mega__pbtn:hover { background: var(--el-gold-400); }
.el-mega__pbtn--wa { background: #15803d; color: #fff !important; }
.el-mega__pbtn--wa:hover { background: #116632; }
.el-mega .el-mega__promo:focus-visible, .el-mega .el-mega__pbtn:focus-visible { outline: 3px solid var(--el-gold-400); outline-offset: 2px; }

@media (max-width: 1399.98px) {
  .el-mega { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; padding: 18px; }
  .el-mega__promo { padding: 20px; }
  .el-mega__ptitle { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .el-mega, a.el-mega__promo { transition: none; transform: none !important; }
}

/* ---------- Phone menu: the section you are in starts open ---------- */
.el-drawer__body > a[aria-current],
.el-drawer__body details.is-active > summary {
  background: var(--el-nav-pill); color: var(--el-navy-900) !important; box-shadow: inset 3px 0 0 var(--el-nav-mark);
}
.el-drawer__body details.is-active > summary i { color: var(--el-nav-mark); }
.el-drawer__sub a[aria-current],
.el-drawer__sub a[aria-current]:hover {
  border-left-color: var(--el-nav-mark); border-radius: 0 10px 10px 0;
  background: var(--el-nav-pill); color: var(--el-navy-900) !important; font-weight: 700;
}
.el-drawer__body a:focus-visible, .el-drawer__body summary:focus-visible { outline: 2px solid var(--el-navy-800); outline-offset: -2px; }

/* ---------- Footer ---------- */
.el-footer { padding: 0; font-size: 14.5px; }
.el-footer__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin: 0 0 40px; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.el-footer__cta strong { display: block; color: #fff; font: 600 clamp(19px, 2vw, 23px)/1.25 var(--el-font-display, var(--el-font)); }
.el-footer__cta span { color: #9fb3c8; font-size: 14.5px; }
.el-footer__ctabtns { display: flex; flex-wrap: wrap; gap: 10px; }
.el-footer__grid { gap: 32px 24px; padding-bottom: 36px; grid-template-columns: 1fr 1fr; }
.el-footer__about { grid-column: 1 / -1; }
@media (min-width: 768px) { .el-footer__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) {
  .el-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
  .el-footer__about { grid-column: auto; }
}
.el-footer__about p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.el-footer h4 { font-size: 12px !important; letter-spacing: .1em; margin-bottom: 14px; }
.el-footer ul { gap: 9px; }
.el-footer nav ul a { font-size: 14px; }
/* The footer link to this page: gold and underlined (10:1 on the navy footer). */
.el-footer nav a[aria-current] {
  color: var(--el-gold-400) !important; font-weight: 700;
  text-decoration: underline !important; text-decoration-thickness: 1.5px !important; text-underline-offset: 4px;
}
.el-footer__contact { gap: 8px !important; font-size: 14px; }
.el-footer__contact li { gap: 10px; }
.el-footer__contact i { width: 16px; margin-top: 5px; font-size: 13px; }
.el-footer__bottom { align-items: center; padding: 18px 0 96px; font-size: 13.5px; }
@media (min-width: 768px) { .el-footer__bottom { padding-bottom: 20px; } }
.el-footer__bottom .el-socials { margin-left: auto; }
.el-footer__bottom .el-socials a { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
@media (max-width: 767.98px) { .el-footer__bottom .el-socials { margin-left: 0; width: 100%; } }
.el-footer a.el-btn--primary, .el-footer a.el-btn--primary:hover { color: var(--el-navy-950) !important; }
.el-footer a.el-btn--wa, .el-footer a.el-btn--wa:hover { color: #fff !important; }
