/* Mega Menu Styles for BEON.tech clone */

/* The live homepage animates its hero map and engineer cards on this device.
   Its bundled reduced-motion rule suppresses that choreography, so restore the
   homepage-only animation styles to match the live page. */
@media (prefers-reduced-motion: reduce) {
  .home-hero-module__LQ_s3q__dotLayer,
  .home-hero-module__LQ_s3q__hub,
  .home-hero-module__LQ_s3q__hubLabel,
  .home-hero-module__LQ_s3q__av.home-hero-module__LQ_s3q__boot {
    animation: home-hero-module__LQ_s3q__fadeIn .9s var(--ease) both !important;
  }

  .home-hero-module__LQ_s3q__hub {
    animation: home-hero-module__LQ_s3q__popIn .6s 2.2s var(--ease) both !important;
  }

  .home-hero-module__LQ_s3q__hubLabel {
    animation-duration: .6s !important;
    animation-delay: 2.6s !important;
  }

  .home-hero-module__LQ_s3q__av.home-hero-module__LQ_s3q__boot {
    animation: home-hero-module__LQ_s3q__avIn .8s var(--ease) both !important;
  }

  .home-hero-module__LQ_s3q__av,
  .home-hero-module__LQ_s3q__lbl,
  .home-hero-module__LQ_s3q__chip {
    transition: transform .8s var(--ease), opacity .5s !important;
  }

  .home-hero-module__LQ_s3q__av.home-hero-module__LQ_s3q__hot .home-hero-module__LQ_s3q__ring {
    animation: home-hero-module__LQ_s3q__ringOut 1.8s var(--ease) infinite !important;
  }
}

.beon-mega-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px -15px rgba(16, 24, 40, 0.15), 0 0 0 1px rgba(16, 24, 40, 0.06);
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  pointer-events: none;
  overflow: hidden;
  font-family: inherit;
  color: #20222D;
}

.beon-mega-overlay.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Arrow rotation on open button */
button[data-mega-btn].mega-open svg {
  transform: rotate(180deg);
}

button[data-mega-btn] svg {
  transition: transform 0.2s ease;
}

/* Category item styling */
.talent-cat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #4D516C;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.talent-cat-btn:hover,
.talent-cat-btn.active {
  background-color: #F5F7FF;
  color: #3A69FF;
}

.talent-cat-btn.active {
  font-weight: 600;
}

.talent-cat-btn .cat-arrow {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.talent-cat-btn.active .cat-arrow {
  opacity: 1;
}

/* Subcategory link styling */
.talent-sub-link {
  display: block;
  padding: 8px 16px;
  font-size: 14.5px;
  color: #4D516C;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.talent-sub-link:hover {
  background-color: #F8FAFC;
  color: #3A69FF;
  transform: translateX(2px);
}

/* Tech link */
.tech-item-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  color: #4D516C;
  text-decoration: none;
  transition: color 0.15s ease;
}

.tech-item-link:hover {
  color: #3A69FF;
}

/* Delivery model card */
.delivery-model-card {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.delivery-model-card:hover,
.delivery-model-card.active {
  background-color: #F5F7FF;
}

.delivery-model-card:hover .delivery-title,
.delivery-model-card.active .delivery-title {
  color: #3A69FF;
}

.delivery-model-card:hover .delivery-arrow,
.delivery-model-card.active .delivery-arrow {
  opacity: 1;
  transform: translateX(0);
}

.delivery-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.15s ease;
  color: #3A69FF;
}

/* Operating module row */
.op-module-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #20222D;
  text-decoration: none;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.op-module-row:hover {
  background-color: #F5F7FF;
}

.op-module-row.dimmed {
  opacity: 0.35;
}

/* About card */
.about-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ECEEF2;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.about-card:hover {
  border-color: #3A69FF;
  background: #F8FAFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 105, 255, 0.08);
}

.about-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: #20222D;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-card:hover .card-title {
  color: #3A69FF;
}

.about-card .card-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.4;
}

/* Resources cards */
.resource-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #ECEEF2;
  transition: all 0.2s ease;
}

.resource-box:hover {
  background: #F8FAFF;
  border-color: #3A69FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 105, 255, 0.08);
}

.resource-box:hover h4 {
  color: #3A69FF;
}

/* Country pill */
.country-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #E9EAF0;
  background: #ffffff;
  text-decoration: none;
  color: #4D516C;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.country-pill:hover {
  background: #F5F7FF;
  border-color: #3A69FF;
  color: #3A69FF;
}

/* Hide legacy inner hero-nav logo on pages like /top-one-percent/ that already render the fixed navbar */
.hero-section .hero-nav {
  display: none !important;
}

/* Ensure sticky scrolled white navbar always has dark readable links and logo */
[data-navbar-shell="true"][class*="bg-white"] nav button,
[data-navbar-shell="true"][class*="bg-white"] nav button svg,
[data-navbar-shell="true"][class*="bg-white"] [data-navbar-align-end] a:not([class*="bg-[#3A69FF]"]) {
  color: #20222D !important;
}

[data-navbar-shell="true"][class*="bg-white"] img[src*="beon_blue_white"] {
  filter: invert(1) hue-rotate(180deg) contrast(1.15);
}
