/*
Glass design layer for the public site.

Loaded after every other stylesheet, so it restyles the template theme
without editing it. Three surface levels share one set of tokens:

  .glass  real backdrop blur. Only for chrome that floats over content:
          navbar, dropdowns, mobile tab bar and sheet, cookie banner.
          Never more than a handful on screen, because each one is
          re-composited on every scroll frame.
  .frost  looks like glass, costs nothing: translucent white, a hairline
          border and a soft shadow, no blur. For cards in long lists.
  solid   long-form text stays on an opaque surface, for contrast.

Glass needs something behind it, so the page gets a fixed ambient
background of soft brand-tinted light.
*/

:root {
  --brand: #2d2e82;
  --brand-ink: #1b1c55;
  --ink: #17172b;
  --ink-soft: #4b4b63;
  --page: #f7f7fb;

  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-edge: rgba(45, 46, 130, 0.08);
  --glass-blur: 18px;
  --glass-shadow: 0 10px 40px rgba(45, 46, 130, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --frost-bg: rgba(255, 255, 255, 0.74);
  --frost-shadow: 0 6px 28px rgba(45, 46, 130, 0.08);

  --radius-pill: 999px;
  --radius-lg: 24px;
  --radius: 16px;

  --nav-h: 64px;
  --tabbar-h: 64px;
  --tabbar-gap: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Space fixed widgets must leave above the mobile tab bar. */
  --above-tabbar: calc(var(--tabbar-h) + var(--tabbar-gap) * 2 + var(--safe-bottom));
}

/* --------------------------------------------------------------- page */

html,
body {
  /* The template's hero decorations stick out past the right edge (57px of
     sideways scroll on desktop). clip, unlike hidden, keeps sticky working. */
  overflow-x: clip;
}

/* The page colour sits on <html> and <body> stays transparent. The theme
   gives <html> a white background; with that set, body's own background
   would paint over the ambient layer below (only the strip above the body
   box showed it). */
html { background: var(--page); }
body {
  background: transparent;
  color: var(--ink);
}

/* Ambient light behind everything: what the glass refracts. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Own GPU layer: painted once, not repainted on every scroll frame (it
     used to lag behind the scroll and show a white strip). */
  transform: translateZ(0);
  will-change: transform;
  background:
    radial-gradient(42rem 32rem at 12% 8%, rgba(196, 190, 255, 0.38), transparent 70%),
    radial-gradient(36rem 30rem at 92% 14%, rgba(255, 214, 244, 0.32), transparent 70%),
    radial-gradient(48rem 36rem at 78% 88%, rgba(190, 212, 255, 0.36), transparent 70%),
    radial-gradient(40rem 30rem at 6% 92%, rgba(222, 206, 255, 0.3), transparent 70%),
    var(--page);
}

/* A faint grid, as in the reference design. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
  background-image:
    linear-gradient(rgba(45, 46, 130, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 46, 130, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ------------------------------------------------------------ surfaces */

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
}

.frost {
  background: var(--frost-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--frost-shadow);
}

/* No blur support, or the visitor asked for less transparency / more
   contrast: solid surfaces, same shapes. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-strong); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass,
  .frost {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .glass,
  .frost { border-color: rgba(45, 46, 130, 0.25); }
}

/* -------------------------------------------------------------- buttons */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
.btn-pill:hover { background: var(--brand); color: #fff; }
.btn-pill:active { transform: scale(0.97); }
.btn-pill__arrow {
  display: inline-block;
  transition: transform var(--dur-move) var(--ease-io);
}
.btn-pill:hover .btn-pill__arrow { transform: translateX(4px); }
.btn-pill--block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  transition: background var(--dur) ease, color var(--dur) ease;
}
.icon-btn:hover { background: rgba(45, 46, 130, 0.08); color: var(--brand); }

/* The template's two button styles, brought into the same family. */
.white-button a,
.main-button-gradient a {
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  letter-spacing: 0.04em;
  transition: background var(--dur) ease, color var(--dur) ease,
    transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) ease;
}
.white-button a {
  background: var(--frost-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--frost-shadow);
  color: var(--brand);
}
.white-button a:hover { background: #fff; opacity: 1; box-shadow: var(--glass-shadow); }
.main-button-gradient a { background: var(--ink); }
.main-button-gradient a:hover { background: var(--brand); opacity: 1; }
.white-button a:active,
.main-button-gradient a:active { transform: scale(0.97); }

/* ---------------------------------------------------- navbar (desktop) */

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none; /* only the pill itself is clickable */
  transition: transform var(--dur-move) var(--ease-io);
}

.glass-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1200px, 100%);
  height: var(--nav-h);
  padding: 0 10px 0 22px;
  border-radius: var(--radius-pill);
  /* Clearer than other glass, with more blur so the links stay legible
     over whatever scrolls underneath. */
  background: rgba(255, 255, 255, 0.46);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  transition: background var(--dur-slow) ease, box-shadow var(--dur-slow) ease;
}
/* Scrolled: the pill stays glass (no opaque white), only its shadow
   deepens a little to lift it off the content passing underneath. */
.site-header.is-scrolled .glass-nav {
  box-shadow: 0 12px 40px rgba(45, 46, 130, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* The old custom.js added the theme's .background-header (solid white,
   full width, all !important) to every <header> on scroll. A browser
   still running a cached copy must not be able to restyle the navbar. */
.site-header.background-header {
  background: transparent !important;
  box-shadow: none !important;
  height: auto !important;
  top: 16px !important;
}
@media (max-width: 991.98px) {
  .site-header.background-header { top: 10px !important; }
}

.glass-nav__brand { display: flex; align-items: center; flex: none; }
.glass-nav__brand img { height: 46px; width: auto; }

.glass-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.glass-nav__item { position: relative; display: flex; align-items: center; }

.glass-nav__link {
  position: relative;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  transition: color var(--dur) ease, background var(--dur) ease;
}
.glass-nav__link:hover { color: var(--ink); }
.glass-nav__link[aria-current="page"] {
  color: var(--brand);
  background: rgba(45, 46, 130, 0.08);
}

.glass-nav__caret {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: -8px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  font-size: 10px;
  cursor: pointer;
}
/* A CSS chevron: no dependency on the icon font loading. */
.glass-nav__caret::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-move) var(--ease-io), margin var(--dur-move) var(--ease-io);
}
.has-menu.is-open .glass-nav__caret::before,
.has-menu:hover .glass-nav__caret::before { transform: rotate(225deg); margin-top: 3px; }

.glass-nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -8px;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition: opacity var(--dur) ease, transform var(--dur-move) var(--ease-io),
    visibility 0s linear var(--dur);
}
/* An invisible bridge across the gap, so moving the pointer from the link
   to the menu does not close it. */
.glass-nav__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.has-menu:hover > .glass-nav__menu,
.has-menu:focus-within > .glass-nav__menu,
.has-menu.is-open > .glass-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur) ease, transform var(--dur-move) var(--ease-io), visibility 0s;
}
.has-menu.is-closed > .glass-nav__menu {
  /* Escape key: hide even while hovered or focused. */
  opacity: 0;
  visibility: hidden;
}
.glass-nav__menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, padding var(--dur) var(--ease-io);
}
.glass-nav__menu a:hover { background: rgba(45, 46, 130, 0.07); color: var(--brand); padding-left: 18px; }
.glass-nav__menu a[aria-current="page"] { color: var(--brand); font-weight: 700; }

.glass-nav__actions { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.glass-nav__book { display: none; }

/* ------------------------------------------------ navbar (below 992px) */

.tabbar,
.sheet { display: none; }

@media (max-width: 991.98px) {
  :root { --nav-h: 56px; }

  .site-header { top: 10px; padding: 0 12px; }
  .site-header.is-hidden { transform: translateY(calc(-100% - 20px)); }
  .glass-nav { padding: 0 8px 0 16px; }
  .glass-nav__brand img { height: 34px; }
  .glass-nav__links,
  .glass-nav__search,
  .glass-nav__portal,
  .glass-nav__cta { display: none; }
  .glass-nav__book {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: 36px;
    padding: 0 14px 0 12px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  .glass-nav__book i { font-size: 14px; }
  .glass-nav__book:hover,
  .glass-nav__book:focus-visible { background: var(--ink); color: #fff; }
  .glass-nav__actions { margin-left: auto; }

  /* Leave room for the tab bar at the end of every page. */
  body { padding-bottom: var(--above-tabbar); }

  .tabbar {
    position: fixed;
    left: var(--tabbar-gap);
    right: var(--tabbar-gap);
    bottom: calc(var(--tabbar-gap) + var(--safe-bottom));
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: var(--tabbar-h);
    padding: 6px;
    border-radius: 22px;
    /* More opaque than other glass: body text scrolls right under the labels. */
    background: rgba(255, 255, 255, 0.8);
  }
  .tabbar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px; /* touch target */
    border: 0;
    border-radius: 16px;
    background: none;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .01em;
    transition: color var(--dur) ease, background var(--dur) ease, transform var(--dur-fast) var(--ease-out);
  }
  .tabbar__item i { font-size: 18px; }
  .tabbar__item:active { transform: scale(0.94); }
  .tabbar__item[aria-current="page"] {
    color: var(--brand);
    background: rgba(45, 46, 130, 0.09);
  }

  /* The "More" bottom sheet: a native popover, so focus, Escape and
     click-outside work without a library. */
  .sheet {
    position: fixed;
    inset: auto 0 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 86dvh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 10px 20px calc(24px + var(--safe-bottom));
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
    color: var(--ink);
    background: var(--glass-bg-strong);
    transform: translateY(100%);
    transition: transform var(--dur-move) var(--ease-io), overlay var(--dur-move) allow-discrete,
      display var(--dur-move) allow-discrete;
  }
  .sheet:popover-open { display: block; transform: none; }
  @starting-style {
    .sheet:popover-open { transform: translateY(100%); }
  }
  .sheet::backdrop {
    background: rgba(23, 23, 43, 0);
    transition: background var(--dur-move) ease, overlay var(--dur-move) allow-discrete,
      display var(--dur-move) allow-discrete;
  }
  .sheet:popover-open::backdrop { background: rgba(23, 23, 43, 0.35); }
  @starting-style {
    .sheet:popover-open::backdrop { background: rgba(23, 23, 43, 0); }
  }

  .sheet__grip {
    width: 44px;
    height: 5px;
    margin: 0 auto 16px;
    border-radius: 3px;
    background: rgba(23, 23, 43, 0.18);
  }
  .sheet__group { padding: 14px 0; border-bottom: 1px solid var(--glass-edge); }
  .sheet__heading {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .sheet__group ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .sheet__group a {
    display: block;
    padding: 9px 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
  }
  .sheet__group a[aria-current="page"] { color: var(--brand); }
  .sheet__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-top: 16px;
  }
  .sheet__footer a { color: var(--ink); font-weight: 600; }
  .sheet__close {
    margin-left: auto;
    padding: 9px 18px;
    border: 1px solid rgba(23, 23, 43, 0.15);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
  }
  /* Rows arrive one after another when the sheet opens. */
  .sheet:popover-open .sheet__row {
    animation: sheet-row var(--dur-move) var(--ease-io) both;
    animation-delay: calc(80ms + var(--i, 0) * 40ms);
  }
}

@keyframes sheet-row {
  from { opacity: 0; transform: translateY(18px); }
}

@media (min-width: 992px) {
  .tabbar,
  .sheet { display: none !important; }
}

/* --------------------------- fixed widgets that would collide on mobile */

/* Solid, not live glass: a blur re-renders on every scroll frame, and some
   phone browsers draw it as a white sheet while scrolling fast. */
.cookie-wrapper {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(45, 46, 130, 0.18);
  bottom: 24px;
}
/* The cookie icon is a Boxicons glyph, but Boxicons is never loaded on
   this site: it only ever left an empty gap before the heading. */
.cookie-header i { display: none; }
/* The theme's old custom.js added .background-header (fixed, white, 80px,
   top:0, full width) to every <header> on scroll. Only the navbar should
   ever react to it; any other <header> that gets it stays in the flow. */
header.background-header:not(.site-header) {
  position: static !important;
  top: auto !important;
  height: auto !important;
  background: none !important;
  box-shadow: none !important;
}

/* An old cached theme script adds .background-header (white, fixed, 80px)
   to every <header> on scroll. The banner title is a div now; this pins it
   down in case any stale script still reaches it. */
.cookie-wrapper .cookie-header,
.cookie-wrapper .cookie-header.background-header {
  position: static !important;
  height: auto !important;
  background: none !important;
  box-shadow: none !important;
}
.cookie-header h2 { color: var(--ink); font-size: 20px; font-weight: 700; margin: 0; }
.cookie-data p { font-size: 14px; color: var(--ink-soft); }
.cookie-data p a { color: var(--brand); text-decoration: underline; }
.cookie-buttons { gap: 10px; }
.cookie-buttons .cookie-button {
  flex: 1;
  padding: 10px 0;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background var(--dur) ease, color var(--dur) ease;
}
#cookie-acceptBtn { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
#cookie-acceptBtn:hover { background: var(--brand); border-color: var(--brand); }
#cookie-declineBtn { background: transparent; border: 1px solid rgba(23, 23, 43, 0.2); color: var(--ink); }

/* Hidden until the consent script adds .show; also not focusable while
   hidden (the theme only slides it off-screen). */
.cookie-wrapper:not(.show) {
  visibility: hidden;
  transition: right 0.3s ease, visibility 0s linear 0.3s;
}

@media (max-width: 991.98px) {
  /* Full width above the tab bar (and above the AI assistant's button).
     Hidden by sliding down and fading, not by the theme's right: -370px:
     with a full-width box that left two-thirds of it on screen, which is
     what visitors who had already chosen saw on every page. */
  .cookie-wrapper,
  .cookie-wrapper.show {
    left: 12px;
    right: 12px;
    bottom: calc(var(--above-tabbar) + 72px);
    width: auto;
    max-width: none;
  }
  .cookie-wrapper,
  .cookie-wrapper:not(.show) {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur) ease, transform var(--dur-move) var(--ease-io),
      visibility 0s linear var(--dur-move);
  }
  .cookie-wrapper.show {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity var(--dur) ease, transform var(--dur-move) var(--ease-io), visibility 0s;
  }

  /* The AI assistant (ai.khaels.org widget) pins itself 24px from the
     bottom, on top of the tab bar's "More" button. Its rules are injected
     after this file at the same specificity, hence !important. */
  #ai-widget-btn {
    bottom: calc(var(--above-tabbar) + 6px) !important;
    right: 16px !important;
    width: 54px !important;
    height: 54px !important;
  }
  /* Its two pulsing rings are separate fixed elements sized to the button. */
  .ai-fab-ring {
    bottom: calc(var(--above-tabbar) + 6px) !important;
    right: 16px !important;
    width: 54px !important;
    height: 54px !important;
  }
  #ai-widget-badge {
    bottom: calc(var(--above-tabbar) + 14px) !important;
    right: 80px !important;
    left: auto !important;
  }
  #ai-widget-panel {
    bottom: calc(var(--above-tabbar) + 72px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: calc(100dvh - var(--above-tabbar) - 140px) !important;
  }
  /* Compact on phones: it used to cover half the first screen. */
  .cookie-wrapper { padding: 14px 16px 16px; border-radius: 18px; }
  .cookie-header h2 { font-size: 16px; }
  .cookie-data { margin-top: 6px; }
  .cookie-data p { font-size: 13px; line-height: 1.45; }
  .cookie-buttons { margin-top: 12px; }
  .cookie-buttons .cookie-button { padding: 8px 0; font-size: 14px; }
  .grecaptcha-badge { bottom: var(--above-tabbar) !important; }
}

/* ---------------------------------------------------- page sections */

/* Room for the floating navbar (the template's header was 110px tall). */
section.page-heading { margin-top: 150px; }
section.page-heading .header-text { border-bottom-color: var(--glass-edge); }
section.page-heading .header-text h1 {
  color: var(--ink);
  letter-spacing: -0.02em;
  /* 62px fixed in the theme: two words filled a phone screen. */
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.05;
}

.section-heading h4,
.main-banner .header-text h1,
.main-banner .header-text h2 { letter-spacing: -0.02em; }

/* Cards: frost, not glass (they come in long lists). */
.services .item,
.testimonials .item,
.x92y_testimonial_card,
section.our-office .left-info,
.our-courses .nacc li,
.our-courses .nacc li.soft-background {
  background: var(--frost-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--frost-shadow);
  transition: transform var(--dur-move) var(--ease-io), box-shadow var(--dur-move) ease;
}
.services .item:hover,
.testimonials .item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(45, 46, 130, 0.14);
}

/* Practice-area cards (practice.css loads after this file, hence the
   extra class for specificity). The navy left rule stays as the accent. */
.practice-grid .practice-card {
  background: var(--frost-bg);
  border-color: var(--glass-border);
  border-left-color: var(--brand);
  border-radius: 18px;
  box-shadow: var(--frost-shadow);
  transition: transform var(--dur-move) var(--ease-io), box-shadow var(--dur-move) ease,
    background var(--dur) ease;
}
.practice-grid .practice-card:hover,
.practice-grid .practice-card:focus-visible {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(45, 46, 130, 0.14);
}
.practice-card__more { transition: letter-spacing var(--dur-move) var(--ease-io); }
.practice-card:hover .practice-card__more { letter-spacing: 0.08em; }

/* Links inside running text: brand navy, not Bootstrap blue. */
p a:not([class]) { color: var(--brand); }

/* The template paints this band mint green; on the new background it
   clashed with everything around it. Its text was a pale lilac (#7978a3)
   that only read against that image. */
section.simple-cta { background-image: none; }
section.simple-cta h4 {
  color: var(--brand);
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
section.simple-cta h6 { color: var(--ink-soft); }
section.simple-cta p { color: var(--ink-soft); }

/* Underline that sweeps out to the right and back in from the left.
   For links inside running text and the footer. */
.u-sweep,
p a:not([class]),
p.copyright a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  text-decoration: none;
}
.u-sweep:hover,
p a:not([class]):hover,
p.copyright a:hover {
  animation: sweep var(--dur-move) var(--ease-io);
}
@keyframes sweep {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  49% { background-size: 0% 1px; background-position: 100% 100%; }
  50% { background-size: 0% 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .u-sweep:hover,
  p a:not([class]):hover,
  p.copyright a:hover { animation: none; }
  .sheet:popover-open .sheet__row { animation: none; }
  .sheet,
  .sheet::backdrop,
  .site-header { transition: none; }
}

/* ------------------------------------------------- tabbed panels
   "Who are we?" (home) and "What we believe" (about). The theme's tab
   script shows one panel at a time by opacity; these are styles only. */

section.our-courses .naccs .menu div {
  margin-bottom: 14px;
  padding: 14px 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill) !important;
  background: var(--frost-bg);
  box-shadow: var(--frost-shadow);
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 700;
  transition: background var(--dur) ease, color var(--dur) ease,
    transform var(--dur-move) var(--ease-io), box-shadow var(--dur) ease;
}
section.our-courses .naccs .menu div:hover {
  color: var(--ink);
  transform: translateX(4px);
}
section.our-courses .naccs .menu div.active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 32px rgba(23, 23, 43, 0.18);
  transform: none;
}
section.our-courses ul.nacc li {
  border-radius: var(--radius-lg);
  /* The theme slides panels for a full second; match the site's rhythm. */
  transition: opacity var(--dur-slow) ease, transform var(--dur-move) var(--ease-io);
}
section.our-courses ul.nacc li .left-image img {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
section.our-courses ul.nacc li .right-content h4 { color: var(--ink); }

/* ------------------------------------------------- recent articles */

.recent-articles__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.recent-articles__head .section-heading {
  margin-bottom: 0;
  padding-top: 0;
  text-align: left;
}
.recent-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 991.98px) {
  .recent-articles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .recent-articles__grid { grid-template-columns: 1fr; }
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  padding: 30px 28px 26px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--frost-bg);
  box-shadow: var(--frost-shadow);
  transition: transform var(--dur-move) var(--ease-io), box-shadow var(--dur-move) ease,
    background var(--dur) ease;
}
/* A brand-gradient rule that draws itself across the top on hover. */
.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #8d86ff, #f2a7d6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-move) var(--ease-io);
}
.article-card:hover,
.article-card:focus-within {
  background: #fff;
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(45, 46, 130, 0.14);
}
.article-card:hover::before,
.article-card:focus-within::before { transform: scaleX(1); }

/* Cover image (the article's twitter_image), full-bleed across the top. */
.article-card__cover {
  margin: -30px -28px 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(45, 46, 130, 0.06);
}
.article-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-move) var(--ease-out);
}
.article-card:hover .article-card__cover img { transform: scale(1.04); }
/* The gradient rule sits above the image. */
.article-card--cover::before { z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .article-card__cover img { transition: none; }
}

.article-card__meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.article-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.article-card__title a { color: inherit; }
/* The whole card is the link (one tab stop, one announcement). */
.article-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.article-card__title a:focus-visible { outline: none; }
.article-card:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.article-card__summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.article-card__more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}
.article-card:hover .btn-pill__arrow { transform: translateX(4px); }

/* ------------------------------------------------------ footer band
   Replaces the theme's bottomsvg.svg wave and its corner decorations:
   a deep navy band with soft brand light, the same faint grid as the
   page, and rounded shoulders so it reads as part of the glass design. */

section.contact-us {
  position: relative;
  isolation: isolate;
  padding: 110px 0 8px;
  border-radius: 48px 48px 0 0;
  background:
    radial-gradient(52rem 30rem at 12% 0%, rgba(141, 134, 255, 0.28), transparent 65%),
    radial-gradient(44rem 28rem at 92% 18%, rgba(242, 167, 214, 0.14), transparent 65%),
    radial-gradient(40rem 24rem at 50% 110%, rgba(110, 160, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #23246b 0%, #1b1c55 45%, #15163f 100%);
}
section.contact-us::after {
  /* the theme's corner decoration image */
  content: none;
}
section.contact-us::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 80%);
}
@media (max-width: 767.98px) {
  section.contact-us { padding-top: 70px; border-radius: 32px 32px 0 0; }
}

section.contact-us #contact {
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
section.contact-us #contact input,
section.contact-us #contact textarea {
  border: 1px solid rgba(23, 23, 43, 0.08);
  border-radius: 12px;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, background var(--dur) ease;
}
section.contact-us #contact input:focus,
section.contact-us #contact textarea:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(45, 46, 130, 0.12);
  outline: none;
}
section.contact-us #contact button {
  border-radius: var(--radius-pill);
  background: var(--ink);
  transition: background var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
section.contact-us #contact button:hover { background: var(--brand); }
section.contact-us #contact button:active { transform: scale(0.97); }
section.contact-us .contact-info { border-radius: 18px; }
section.contact-us #map iframe { border-radius: var(--radius-lg) !important; }

section.contact-us p.copyright { color: rgba(255, 255, 255, 0.7); }
section.contact-us p.copyright a { color: #fff; }

@media (max-width: 991.98px) {
  /* One row of chips instead of three full-width pills stacked above the
     panel. */
  section.our-courses .naccs .menu {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
  }
  section.our-courses .naccs .menu div {
    flex: 1;
    margin-bottom: 0;
    padding: 10px 6px;
    font-size: 14px;
  }
  section.our-courses .naccs .menu div:hover { transform: none; }
  /* The image sits above the text here, so round its top corners. */
  section.our-courses ul.nacc li .left-image img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

/* --------------------------------------------- "What we're known for"
   Hub in the middle, four qualities on each side following a gentle arc
   (middle items sit closer to the hub), connector lines fading toward it.
   Below 992px: hub on top, qualities in a grid. */

.known-for__stage {
  --gap: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
}
.known-for__list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.known-for__item {
  --reach: var(--gap);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 24px 9px 9px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--frost-bg);
  box-shadow: var(--frost-shadow);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  transition: transform var(--dur-move) var(--ease-io), box-shadow var(--dur-move) ease,
    background var(--dur) ease;
}
/* The arc: outer items step away from the hub. */
.known-for__list--left .known-for__item:nth-child(1),
.known-for__list--left .known-for__item:nth-child(4) { margin-right: 36px; --reach: calc(var(--gap) + 36px); }
.known-for__list--right .known-for__item:nth-child(1),
.known-for__list--right .known-for__item:nth-child(4) { margin-left: 36px; --reach: calc(var(--gap) + 36px); }

.known-for__list--right .known-for__item {
  flex-direction: row-reverse;
  padding: 9px 9px 9px 24px;
  text-align: right;
}
/* Connector line toward the hub. */
.known-for__item::after {
  content: "";
  position: absolute;
  top: 50%;
  width: var(--reach);
  height: 1px;
  pointer-events: none;
}
.known-for__list--left .known-for__item::after {
  left: 100%;
  background: linear-gradient(90deg, rgba(45, 46, 130, 0.3), rgba(45, 46, 130, 0));
}
.known-for__list--right .known-for__item::after {
  right: 100%;
  background: linear-gradient(270deg, rgba(45, 46, 130, 0.3), rgba(45, 46, 130, 0));
}

.known-for__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ecebff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(45, 46, 130, 0.08), 0 4px 12px rgba(45, 46, 130, 0.1);
  color: var(--brand);
  font-size: 18px;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.known-for__item:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(45, 46, 130, 0.14);
}
.known-for__item:hover .known-for__icon { background: var(--brand); color: #fff; }

.known-for__hub {
  position: relative;
  display: grid;
  place-items: center;
  width: 230px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #3d3ea3 0%, #23246b 45%, #16173f 100%);
  box-shadow: 0 30px 70px rgba(27, 28, 85, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}
.known-for__hub::before {
  /* outer halo */
  content: "";
  position: absolute;
  inset: -30px;
  border: 1px solid rgba(45, 46, 130, 0.1);
  border-radius: 50%;
}
.known-for__ring {
  position: absolute;
  inset: -14px;
  border: 1.5px dashed rgba(45, 46, 130, 0.35);
  border-radius: 50%;
  animation: known-for-spin 48s linear infinite;
}
@keyframes known-for-spin { to { transform: rotate(360deg); } }
.known-for__hub-text {
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}
.known-for__hub-text strong {
  color: #fff;
  font-size: 19px;
  letter-spacing: 0.04em;
}

@media (max-width: 991.98px) {
  .known-for__stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .known-for__hub {
    grid-column: 1 / -1;
    order: -1;
    width: 180px;
    margin: 10px auto 34px;
  }
  .known-for__list { gap: 14px; }
  .known-for__item,
  .known-for__list--right .known-for__item {
    flex-direction: row;
    margin: 0 !important;
    padding: 8px 14px 8px 8px;
    font-size: 14px;
    text-align: left;
  }
  .known-for__item::after { content: none; }
  .known-for__icon { width: 40px; height: 40px; font-size: 16px; }
  .known-for__hub-text { font-size: 11px; }
  .known-for__hub-text strong { font-size: 16px; }
}
@media (max-width: 479.98px) {
  .known-for__hub { width: 150px; margin-bottom: 30px; }
  .known-for__item,
  .known-for__list--right .known-for__item { gap: 10px; padding: 7px 10px 7px 7px; font-size: 13px; }
  .known-for__icon { width: 34px; height: 34px; font-size: 14px; }
}
@media (max-width: 359.98px) {
  .known-for__stage { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ policy pages */

.policy { padding: 40px 0 80px; }
.policy__card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(45, 46, 130, 0.08);
}
.policy__updated { font-size: 13px; color: var(--ink-soft, #5b5d7a); margin-bottom: 18px; }
.policy__card h2 { font-size: clamp(19px, 2.4vw, 22px); font-weight: 700; color: var(--ink); margin: 36px 0 12px; }
.policy__card p,
.policy__card li { font-size: 15px; line-height: 1.75; color: var(--ink-soft, #4a4c68); }
.policy__card ul { padding-left: 1.2em; list-style: disc; }
.policy__card li { margin-bottom: 6px; }
.policy__card a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.consent-panel {
  margin: 24px 0 8px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(45, 46, 130, 0.05);
  border: 1px solid rgba(45, 46, 130, 0.12);
}
.consent-panel h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.consent-panel__status { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; }
.consent-panel__dot { width: 9px; height: 9px; border-radius: 50%; background: #a3a5bd; flex: none; }
.consent-panel[data-state="accepted"] .consent-panel__dot { background: #22a06b; }
.consent-panel[data-state="declined"] .consent-panel__dot { background: #d9822b; }
.consent-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-panel__actions button {
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(45, 46, 130, 0.25);
  background: #fff;
  color: var(--brand);
  transition: background var(--dur) ease, color var(--dur) ease, transform var(--dur-fast) ease;
}
.consent-panel__actions button:hover { background: rgba(45, 46, 130, 0.08); }
.consent-panel__actions button:active { transform: scale(.97); }
.consent-panel__actions .is-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.consent-panel__actions .is-primary:hover { background: var(--brand); filter: brightness(1.12); }
.consent-panel__actions .is-quiet { border-color: transparent; background: transparent; color: var(--ink-soft, #5b5d7a); }

.policy-table { overflow-x: auto; margin: 16px 0; border-radius: 14px; border: 1px solid rgba(45, 46, 130, 0.12); }
.policy-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; background: #fff; }
.policy-table th,
.policy-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(45, 46, 130, 0.08); }
.policy-table th { background: rgba(45, 46, 130, 0.06); color: var(--ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
.policy-table tr:last-child td { border-bottom: 0; }
.policy-table code { font-size: 13px; color: var(--brand); background: rgba(45, 46, 130, 0.06); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 575.98px) {
  .policy { padding-top: 16px; }
  .policy__card { border-radius: 18px; }
  .consent-panel { padding: 18px; }
  .consent-panel__actions button { flex: 1 1 100%; }
  /* Table becomes one card per cookie: a sideways-scrolling table hides
     the purpose column on a phone. */
  .policy-table table { min-width: 0; }
  .policy-table thead { display: none; }
  .policy-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid rgba(45, 46, 130, 0.08); }
  .policy-table tr:last-child { border-bottom: 0; }
  .policy-table td { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 4px 0; border: 0; }
  .policy-table td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--ink); }
}
