/* Zimsho header — taller, clearer, single row */

/* Hide scholarship top banner */
div.relative:has(+ header.sticky),
div.relative.bg-gradient-to-r.from-brand.to-orange-500.px-4.py-2\.5 {
  display: none !important;
}

/* Hide only YouTube testimonial videos, keep Google reviews and other content */
:is(article, div, a):has(> img[src*="img.youtube.com"]),
p:has(> svg.lucide-video),
button[aria-label="Previous videos"],
button[aria-label="Next videos"],
div[class*="md:grid"]:has(img[src*="img.youtube.com"]),
div[class*="overflow-x"]:has(img[src*="img.youtube.com"]) {
  display: none !important;
}

/* Next/Framer first-paint hides text until JS runs — keep content visible */
[style*="opacity:0"],
[style*="opacity: 0"] {
  opacity: 1 !important;
  transform: none !important;
}

header.sticky {
  z-index: 50;
  min-height: 72px;
  overflow: visible !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(5, 5, 32, 0.08) !important;
  border-bottom: 1px solid #e6eaf2 !important;
}

header.sticky > div,
header.sticky nav,
header.sticky .group {
  overflow: visible !important;
}

header.sticky .group > div.absolute {
  z-index: 400 !important;
}

header.sticky .group > div.invisible {
  pointer-events: none !important;
}

header.sticky .group:hover > div.absolute,
header.sticky .group:focus-within > div.absolute {
  pointer-events: auto !important;
}

header.sticky .logo-crisp {
  flex: 0 0 auto !important;
  max-width: 150px;
  margin: 0 !important;
}

header.sticky .logo-crisp img {
  display: block !important;
  height: 42px !important;
  width: auto !important;
  max-width: 150px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  object-position: left center !important;
  border-radius: 8px;
}

@media (max-width: 1023px) {
  header.sticky {
    min-height: 64px;
  }
  header.sticky > div.flex.lg\:hidden,
  header.sticky > div.mx-auto.flex {
    min-height: 64px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  header.sticky .logo-crisp {
    max-width: 118px;
  }
  header.sticky .logo-crisp img {
    height: 34px !important;
    max-width: 118px !important;
    max-height: 34px !important;
  }
  header.sticky a[aria-label="Join Live Class"] span.text-xs,
  header.sticky a[aria-label="Join Live Class"] svg.lucide-radio {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  header.sticky > div.relative.mx-auto {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 76px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 12px 28px 12px 40px !important;
  }

  header.sticky > div.relative.mx-auto > div.z-10:not(.ml-auto) {
    order: 1 !important;
    flex: 0 0 auto !important;
    margin-right: 10px !important;
    margin-left: 8px !important;
    z-index: 3 !important;
  }

  header.sticky a[aria-label="Join Live Class"] {
    display: none !important;
  }

  header.sticky > div.relative.mx-auto > nav {
    order: 2 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    translate: none !important;
    --tw-translate-x: 0 !important;
    --tw-translate-y: 0 !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0 4px !important;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    z-index: 2 !important;
    min-width: 0;
  }

  header.sticky nav > a,
  header.sticky nav > div > a {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a2340 !important;
    padding: 10px 11px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
  }

  header.sticky nav > a:hover,
  header.sticky nav > div > a:hover {
    background: #fff4eb !important;
    color: #ff6b00 !important;
  }

  header.sticky nav > a.text-white,
  header.sticky nav a[href="/cms/"] {
    color: #fff !important;
  }

  header.sticky nav a[href="/cms/"] {
    padding: 4px 9px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    min-height: 28px !important;
    height: 28px !important;
    margin-left: -8px !important;
    margin-right: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28) !important;
  }

  header.sticky nav a[href="/cms/"] span {
    padding: 1px 5px !important;
    font-size: 8px !important;
    line-height: 1 !important;
  }

  header.sticky nav > a.text-white:hover,
  header.sticky nav a[href="/cms/"]:hover {
    color: #fff !important;
    opacity: 0.92;
  }

  header.sticky > div.relative.mx-auto > div.ml-auto {
    order: 3 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
  }

  header.sticky > div.relative.mx-auto > div.ml-auto a,
  header.sticky > div.relative.mx-auto > div.ml-auto button {
    min-height: 42px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 14px !important;
  }

  header.sticky > div.relative.mx-auto > div.ml-auto > div.relative.hidden {
    display: none !important;
  }

  header.sticky .logo-crisp {
    max-width: 168px;
  }
  header.sticky .logo-crisp img {
    height: 46px !important;
    max-width: 168px !important;
    max-height: 46px !important;
  }
}

@media (min-width: 1400px) {
  header.sticky > div.relative.mx-auto > div.ml-auto > div.relative.hidden.xl\:block,
  header.sticky > div.relative.mx-auto > div.ml-auto > .relative.w-64,
  header.sticky > div.relative.mx-auto > div.ml-auto > .relative.xl\:block {
    display: block !important;
    width: 220px !important;
    max-width: 220px !important;
  }
}

/* Premium mobile menu — matches original design */
body.zimsho-menu-open {
  overflow: hidden !important;
}

header.sticky button[aria-label="Open menu"].is-menu-open,
header.sticky button[aria-label="Close menu"] {
  border-color: #ff6b00 !important;
  background: #ff6b00 !important;
  color: #fff !important;
}

.zimsho-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
}

.zimsho-mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.zimsho-mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(10, 22, 40, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.zimsho-mobile-menu.is-open .zimsho-mobile-menu-backdrop {
  opacity: 1;
}

.zimsho-mobile-menu-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(300px, 85vw);
  height: 100%;
  background: #fff;
  border-radius: 24px 0 0 24px;
  box-shadow: -8px 0 40px rgba(10, 22, 40, 0.18);
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.zimsho-mobile-menu.is-open .zimsho-mobile-menu-panel {
  transform: translateX(0);
}

.zimsho-mobile-menu-hero {
  padding: 24px 20px 20px;
  background: linear-gradient(135deg, #0a1628 0%, #172337 55%, #1a2744 100%);
}

.zimsho-mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zimsho-mobile-menu-logo-wrap {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
}

.zimsho-mobile-menu-logo {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
}

.zimsho-mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.zimsho-mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.zimsho-mobile-menu-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 12px;
  color: #c5cedf;
}

.zimsho-mobile-menu-stats .zimsho-m-icon svg {
  color: #ff6b00;
}

.zimsho-mobile-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.zimsho-m-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zimsho-m-icon svg {
  width: 16px;
  height: 16px;
}

.zimsho-m-chevron {
  display: inline-flex;
  color: #b8c2d6;
  flex-shrink: 0;
}

.zimsho-m-chevron svg {
  width: 14px;
  height: 14px;
}

.zimsho-m-cms {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.zimsho-m-cms-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.zimsho-m-cms-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zimsho-m-group {
  margin-bottom: 12px;
}

.zimsho-m-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 8px 12px;
  color: #0a1628;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.zimsho-m-group-title.is-active,
.zimsho-m-link.is-active {
  color: #ff6b00 !important;
}

.zimsho-m-subbox {
  padding: 6px;
  border-radius: 16px;
  background: rgba(230, 234, 242, 0.55);
}

.zimsho-m-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #3d4f6f;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.zimsho-m-sublink:last-child {
  margin-bottom: 0;
}

.zimsho-m-sublink:hover {
  background: rgba(255, 255, 255, 0.75);
  color: #ff6b00;
}

.zimsho-m-sublink.is-admin {
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
}

.zimsho-m-sublink-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zimsho-m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  padding: 12px;
  border-radius: 12px;
  color: #3d4f6f;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.zimsho-m-link:hover {
  background: #f4f6fb;
  color: #ff6b00;
}

.zimsho-m-link.is-active {
  background: #fff4eb;
}

.zimsho-m-link-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.zimsho-m-link-main .zimsho-m-icon svg,
.zimsho-m-sublink-main .zimsho-m-icon svg {
  color: rgba(255, 107, 0, 0.75);
}

.zimsho-m-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #3f3f3f;
  background: #0f0f0f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ef4444;
}

.zimsho-m-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: zimsho-live-ping 1.4s ease-out infinite;
}

@keyframes zimsho-live-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.zimsho-mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid #e6eaf2;
  background: rgba(244, 246, 251, 0.65);
}

.zimsho-m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.zimsho-m-btn svg {
  width: 16px;
  height: 16px;
}

.zimsho-m-btn:active {
  transform: scale(0.98);
}

.zimsho-m-btn-outline {
  border: 2px solid #ff6b00;
  background: #fff;
  color: #ff6b00 !important;
}

.zimsho-m-btn-brand {
  background: linear-gradient(90deg, #ff6b00 0%, #ff8533 100%);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35);
}

.zimsho-m-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 4px;
  color: #6b7a99;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none !important;
}

.zimsho-m-phone svg {
  width: 14px;
  height: 14px;
  color: #ff6b00;
}

@media (min-width: 1024px) {
  .zimsho-mobile-menu {
    display: none !important;
  }
}
