/* =====================================================
   Edzorb Law · Header
   Sticky nav, mobile drawer, floating WhatsApp / Call
   ===================================================== */

/* ---------- Brand tokens (from the redesign PDF) ---------- */
:root {
  --navy: #01324E;
  --navy-hi: #004166;
  --navy-lo: #002033;
  --ink: #173947;
  --sky: #D4E7F5;
  --sky-light: #E6F3FC;
  --amber: #EDA404;
  --gradient: linear-gradient(45deg, #557FE6 0%, #557FE6 25%, #7A69E6 50%, #A156F1 75%, #E047E2 100%);
  --shadow: 0 18px 40px -22px rgba(1, 50, 78, .45);
}

body {
  margin: 0;
  font-family: Lato, system-ui, sans-serif;
}

.site-header,
.site-header *,
.drawer,
.drawer * {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 900 16px Lato, sans-serif;
  cursor: pointer;
  transition: transform .2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gradient {
  background: linear-gradient(180deg, var(--navy-hi), var(--navy-lo));
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

/* ---------- Header bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--navy-hi), var(--navy-lo));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow .2s;
}

/* thin line that appears after the visitor scrolls (js/header.js) */
.site-header.is-scrolled {
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1160px;
  height: 70px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link {
  padding: 5px 10px;
  border-radius: 12px;
  background: #fff;
}

.logo-link img {
  display: block;
  width: auto;
  height: 38px;
}

/* ---------- Desktop navigation ---------- */
.main-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.main-nav a {
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-link {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--amber);
  font-size: 15px;
  font-weight: 900;
  color: #2a1b00;
}

/* ---------- Menu button (mobile only) ---------- */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

/* ---------- Mobile drawer ---------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 32, 51, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.drawer-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(330px, 88vw);
  padding: 18px 20px 22px;
  background: linear-gradient(180deg, var(--navy-hi), var(--navy-lo));
  color: #fff;
  font-family: Lato, sans-serif;
  transform: translateX(-105%);
  transition: transform .3s;
  overflow-y: auto;
}

.drawer.is-open {
  transform: none;
}

/* top row: logo on the left, close button on the right */
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

/* logo sits on a white plate so it stays readable on the blue */
.drawer-logo {
  padding: 4px 9px;
  border-radius: 12px;
  background: #fff;
}

.drawer-logo img {
  display: block;
  width: auto;
  height: 35px;
}

.drawer-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}

.drawer-close img {
  width: 100%;
  height: 100%;
}

/* one menu row: icon + title + small description + arrow */
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

/* white tile so the coloured icons show clearly on the blue */
.drawer-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  /* background: #fff; */
}

.drawer-icon img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.drawer-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* menu item font size: change it here */
.drawer-title {
  display: block;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.drawer-sub {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, .62);
}

.drawer-arrow {
  flex: 0 0 auto;
  font-size: 18px;
  opacity: .8;
}

.drawer-link.is-active .drawer-title {
  color: #99DAFF;
}

/* buttons pinned to the bottom of the drawer */
.drawer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 0px;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer .btn {
  min-height: 46px;
  padding: 0 16px;
  font-size: 15px;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

/* ---------- Floating WhatsApp / Call ---------- */
.float-btn {
  position: fixed;
  right: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.float-btn img {
  width: 26px;
  height: 26px;
}

.float-whatsapp {
  bottom: 90px;
  background: #25D366;
}

.float-call {
  bottom: 24px;
  background: var(--navy);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ---------- Tablet and phone (up to 960px) ---------- */
@media (max-width: 960px) {
  .header-inner {
    height: 70px;
    gap: 10px;
  }

  .logo-link img {
    height: 30px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* ---------- Phone (up to 425px) ---------- */
@media (max-width: 425px) {
  .header-inner {
    height: 58px;
    padding: 0 14px;
  }

  .logo-link {
    padding: 4px 8px;
    border-radius: 10px;
  }

  .logo-link img {
    height: 25px;
  }

  .login-link {
    padding: 7px 14px;
    font-size: 13.5px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 10px;
  }

  /* drawer on a phone */
  .drawer {
    width: min(320px, 88vw);
    padding: 16px 16px 20px;
  }

  .drawer-logo img {
    height: 30px;
  }

  .drawer-close {
    width: 42px;
    height: 42px;
    padding: 10px;
  }

  .drawer-link {
    gap: 11px;
    padding: 10px 2px;
  }

  .drawer-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .drawer-icon img {
    width: 28px;
    height: 28px;
  }

  .drawer-title {
    font-size: 15px;
  }

  .drawer-sub {
    font-size: 12px;
  }

  .drawer-arrow {
    font-size: 16px;
  }

  .drawer .btn {
    min-height: 44px;
    font-size: 14px;
  }

  .float-btn {
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .float-whatsapp {
    bottom: 80px;
  }

  .float-call {
    bottom: 20px;
  }
}


/* ==========================================
   MOBILE HEADER - Hamburger | Logo | Actions
   ========================================== */

@media (max-width: 960px) {

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 66px;
    padding: 0 16px;
  }

  /* Hamburger on the left */
  .menu-toggle {
    display: flex;
    flex: 0 0 40px;
    width: 34px;
    height: 40px;
    padding: 5px;
    align-items: center;
    justify-content: center;
    order: 1;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .menu-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .logo-link {
    order: 2;
    flex: 0 1 auto;
    min-width: 0;
    padding: 4px 7px;
    border-radius: 12px;
  }

  .logo-link img {
    display: block;
    width: auto;
    height: 34px;
    max-width: 100%;
    object-fit: contain;
  }

  /* Brochure, Call, Login on the right */
  .header-actions {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .header-actions .login-link,
  .header-actions .btn {
    display: none;
  }

  .header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
  }

  .action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: #eda404;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
  }

  .brochure-icon {
    width: 27px;
    height: 20px;
    border-radius: 12px;
    background: #eda404;
    color: #002d46;
    font-size: 19px;
  }

  .login-icon {
    font-size: 27px;
  }

  .main-nav {
    display: none;
  }
}

/* Small mobile screens */
@media (max-width: 425px) {

  .header-inner {
    height: 62px;
    padding: 0 10px;
    gap: 7px;
  }

  .menu-toggle {
    flex-basis: 30px;
    width: 30px;
    height: 38px;
    padding: 4px;
  }

  .logo-link {
    padding: 4px 5px;
  }

  .logo-link img {
    height: 29px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-action {
    min-width: 27px;
    font-size: 9px;
  }

  .action-icon {
    font-size: 22px;
    width: 23px;
    height: 23px;
  }

  .brochure-icon {
    width: 24px;
    height: 19px;
    font-size: 17px;
  }
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 11px;
}

.header-action img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ---------- Drawer dropdowns (Free resources, Toppers & reviews) ---------- */

/* the border moves from the link to the whole item, so the dropdown sits inside it */
.drawer-item {
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.drawer-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-row .drawer-link {
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 0;
}

/* round dropdown button with the chevron */
.drawer-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}

.drawer-toggle:hover {
  background: rgba(255, 255, 255, .22);
}

.drawer-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform .25s;
}

.drawer-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);          /* chevron points up when open */
}

/* the dropdown list: slides open smoothly */
.drawer-sublist {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .3s ease, visibility 0s .3s;
}

.drawer-sublist.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .3s ease, visibility 0s 0s;
}

.drawer-sublist-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  margin-left: 22px;                   /* thin guide line under the icon */
  padding-left: 30px;
  border-left: 2px solid rgba(255, 255, 255, .2);
}

.drawer-sublink {
  padding: 10px 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .88);
}

.drawer-sublink:last-child {
  margin-bottom: 8px;
}

.drawer-sublink:hover,
.drawer-sublink:focus-visible {
  color: #99DAFF;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .drawer-sublist,
  .drawer-toggle svg {
    transition: none;
  }
}


/* =========================== */

/* =====================================================
   DRAWER: top = blue (header jitni height), baaki = white
   (isko CSS file ke sabse end me paste karo)
   ===================================================== */

:root {
  --header-h: 70px;      /* desktop/tablet header height */
  --drawer-pad: 20px;    /* drawer ke left-right ka gap */
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }   /* .header-inner ki height se match */
}

@media (max-width: 425px) {
  :root {
    --header-h: 62px;           /* .header-inner ki height se match */
    --drawer-pad: 16px;
  }
}

/* ---------- Drawer body: white ---------- */
.drawer {
  padding: 0;                    /* padding ab andar ke items se aayegi */
  background: #fff;
  color: var(--navy);
}

/* top ko chhod kar baaki sab items ko side gap do */
.drawer > :not(.drawer-top) {
  margin-left: var(--drawer-pad);
  margin-right: var(--drawer-pad);
}

/* ---------- Top blue part (header jitni height) ---------- */
.drawer-top {
  height: var(--header-h);
  min-height: var(--header-h);
  margin: 0 0 0px;
  padding: 0 var(--drawer-pad);
  background: linear-gradient(180deg, var(--navy-hi), var(--navy-lo));
  flex: 0 0 auto;
}

/* ---------- Menu rows (white background ke liye colors) ---------- */
.drawer-link {
  border-bottom: 1px solid rgba(1, 50, 78, .12);
  color: var(--navy);
}

.drawer-title {
  color: var(--navy);
}

.drawer-sub {
  color: #5b7482;
}

.drawer-arrow {
  color: var(--navy);
}

.drawer-link.is-active .drawer-title {
  color: #0a78bd;                /* white pe dikhne wala blue */
}

/* ---------- Dropdowns ---------- */
.drawer-item {
  border-bottom: 1px solid rgba(1, 50, 78, .12);
}

.drawer-row .drawer-link {
  border-bottom: 0;
}

.drawer-toggle {
  background: var(--sky-light);
  color: var(--navy);
}

.drawer-toggle:hover {
  background: var(--sky);
}

.drawer-sublist-inner {
  border-left: 2px solid rgba(1, 50, 78, .18);
}

.drawer-sublink {
  color: var(--ink);
}

.drawer-sublink:hover,
.drawer-sublink:focus-visible {
  color: #0a78bd;
}

/* ---------- Bottom buttons ---------- */
.drawer-bottom {
  padding-bottom: 20px;
}

.drawer .btn-outline-light {
  /* border-color: var(--navy); */
  border: 2px solid #7950F5;
  -webkit-text-fill-color: #7950F5;
  /* color: var(--navy); */
  background: transparent;
}

/* "Enroll Now" white tha, white drawer pe dikhega nahi, isliye navy */
.drawer .btn-light {
  background: linear-gradient(    100deg,    #246BFD 0%,    #7950F5 55%,    #D72BEF 100%  );
  color: #fff;
}

/* "Book free mentorship" gradient button wahi rahega (.btn-gradient) */

/* ---------- Phone ---------- */
@media (max-width: 425px) {
  .drawer-bottom {
    padding-bottom: 16px;
  }
}


/* ---------- Sub menu: line hatao, har item ke aage arrow ---------- */
.drawer-sublist-inner {
  border-left: 0;                 /* vertical line hata di */
  margin-left: 22px;
  padding-left: 22px;
}

.drawer-sublink {
  position: relative;
  padding: 10px 4px 10px 30px;    /* arrow ke liye left me jagah */
}

.drawer-sublink::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #000203;
  border-right: 2px solid #000203;
  transform: translateY(-50%) rotate(45deg);   /* ">" shape */
  transition: left .2s;
}

.drawer-sublink:hover::before,
.drawer-sublink:focus-visible::before {
  left: 6px;                      /* hover pe arrow thoda aage jayega */
}


/* ===== Bigger Topper Orbit ===== */
.hero-topper-orbit {
  height: 500px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      rgba(237,164,4,.16), transparent 52%),
    linear-gradient(180deg, #f7fbff, #fff);
}

.hero-topper-stage {
  overflow: hidden;
}

/* Bigger portrait circles */
.hero-topper-item {
  width: var(--topper-size, 84px);
  height: var(--topper-size, 84px);
  margin: calc(var(--topper-size, 84px) / -2) 0 0
         calc(var(--topper-size, 84px) / -2);
  overflow: visible;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(1,50,78,.20);
}

.hero-topper-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-topper-item.is-front {
  border-color: #eda404;
  box-shadow: 0 0 0 4px rgba(237,164,4,.20),
              0 10px 25px rgba(1,50,78,.20);
}

/* Name and state below each portrait */
.hero-topper-name {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  max-width: 145px;
  white-space: nowrap;
  border: 1px solid #dbe8f2;
  border-radius: 12px;
  background: #fff;
  color: #16324a;
  font-size: 11px;
  line-height: 1.3;
  box-shadow: 0 5px 15px rgba(1,50,78,.12);
  pointer-events: none;
}

.hero-topper-name small {
  color: #60788b;
  font-size: 9px;
}

/* Center Edzorb logo */
.hero-topper-center {
  position: absolute;
  z-index: 15;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  padding: 5px;
  border: 2px solid #eda404;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(237,164,4,.12),
              0 15px 32px rgba(1,50,78,.16);
  pointer-events: none;
}

.hero-topper-center img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

@media (max-width: 600px) {
  .hero-topper-orbit {
    height: 420px;
  }

  .hero-topper-center {
    width: 118px;
    height: 118px;
  }
}

@media (min-width: 961px) {
  .hero-topper-orbit {
    height: 540px;
  }

  .hero-topper-center {
    width: 180px;
    height: 180px;
  }
}


/* Hide names under every moving topper circle */
.hero-topper-item .hero-topper-name {
  display: none !important;
}



/* ==================== AI ASSISTANT =================== */



.ea-btn{position:fixed;right:16px;bottom:152px;width:58px;height:58px;border-radius:50%;border:0;background:#01324e;color:#fff;font-size:26px;cursor:pointer;box-shadow:0 6px 18px rgba(10,147,224,.4);z-index:9999}
.ea-box{position:fixed;right:16px;bottom:86px;width:340px;max-width:calc(100vw - 32px);height:480px;max-height:calc(100vh - 110px);background:#fff;border:1px solid #d6e5f0;border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,.18);display:none;flex-direction:column;overflow:hidden;z-index:9999;font-family:"Poppins","Segoe UI",system-ui,sans-serif}
.ea-box.open{display:flex}
.ea-head{background:#01324e;color:#fff;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;font-weight:600}
.ea-x{background:none;border:0;color:#fff;font-size:22px;cursor:pointer;line-height:1}
.ea-msgs{flex:1;overflow-y:auto;padding:12px;background:#f4f9fd;display:flex;flex-direction:column;gap:8px}
.ea-m{max-width:85%;padding:9px 12px;border-radius:12px;font-size:.9rem;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;color:#1f3b4f}
.ea-m.bot{background:#fff;border:1px solid #d6e5f0;align-self:flex-start}
.ea-m.user{background:#0a93e0;color:#fff;align-self:flex-end}
.ea-form{display:flex;gap:6px;padding:10px;border-top:1px solid #d6e5f0;background:#fff}
.ea-in{flex:1;border:1px solid #d6e5f0;border-radius:10px;padding:9px 10px;font:inherit;font-size:.9rem;outline:none}
.ea-in:focus{border-color:#0a93e0}
.ea-send{background:#ffb514;color:#fff;border:0;border-radius:10px;padding:0 14px;font-weight:600;cursor:pointer}
.ea-send:disabled{opacity:.5;cursor:default}
.ea-note{font-size:.68rem;color:#4f6a7d;text-align:center;padding:0 8px 6px;background:#fff}

