/* PitchVaani v108 — Ground Stories mega menu only. */
.story-dropdown.story-mega-dropdown {
  position: relative;
}

.story-dropdown .story-mega-menu {
  display: grid !important;
  grid-template-columns: minmax(0, 576px) minmax(276px, 1fr);
  gap: 18px;
  top: 100% !important;
  left: 50%;
  width: min(920px, calc(100vw - 40px));
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 14px;
  background: linear-gradient(145deg, #071524 0%, #081b2d 100%);
  box-shadow: 0 22px 48px rgba(2, 12, 27, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px) scale(0.985);
  transform-origin: 50% 0;
  transition:
    opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 180ms cubic-bezier(0.23, 1, 0.32, 1),
    visibility 180ms step-end;
  white-space: normal;
}

.story-dropdown:hover .story-mega-menu,
.story-dropdown:focus-within .story-mega-menu,
.story-dropdown.open .story-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition:
    opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 180ms cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s step-start;
}

.story-dropdown:hover .story-menu-trigger,
.story-dropdown:focus-within .story-menu-trigger,
.story-dropdown.open .story-menu-trigger {
  color: var(--green);
}

.story-dropdown:hover .story-menu-trigger svg,
.story-dropdown:focus-within .story-menu-trigger svg,
.story-dropdown.open .story-menu-trigger svg {
  transform: rotate(180deg);
}

.story-mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 62px;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.story-mega-item {
  display: flex;
  align-items: center;
  width: auto;
  height: 62px;
  min-height: 62px;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  color: #ffffff;
  text-decoration: none;
  transition:
    background 180ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.story-mega-item:hover,
.story-mega-item:focus-visible {
  color: #ffffff;
  border-color: rgba(52, 211, 153, 0.56);
  background: rgba(16, 185, 129, 0.15);
  outline: 3px solid rgba(52, 211, 153, 0.24);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.story-mega-item:active {
  transform: scale(0.98);
}

.story-mega-item .menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.story-mega-item .menu-icon svg {
  width: 18px;
  height: 18px;
}

.story-mega-item strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.story-promo-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: auto;
  min-height: 278px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 88%, rgba(34, 197, 94, 0.38), transparent 44%),
    linear-gradient(145deg, #071827 0%, #0d2f45 52%, #064e3b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 42px rgba(2, 8, 23, 0.3);
  white-space: normal;
}

.story-promo-card h3 {
  margin: 14px 0 9px;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.16;
  text-transform: uppercase;
  white-space: normal;
}

.story-promo-card p {
  margin: 0 0 14px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 12px;
  line-height: 1.55;
  white-space: normal;
}

.story-promo-features {
  display: grid;
  gap: 7px;
}

.story-promo-features span {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(110, 231, 183, 0.25);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(15, 48, 78, 0.82), rgba(6, 78, 59, 0.58));
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  white-space: normal;
}

.story-promo-features svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #6ee7b7;
}

.story-promo-card .dropdown-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(167, 243, 208, 0.58);
  border-radius: 11px;
  background: linear-gradient(135deg, #065f46 0%, #10b981 52%, #22c55e 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  box-shadow:
    0 14px 28px rgba(16, 185, 129, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background 180ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.story-promo-card .dropdown-card-btn:hover,
.story-promo-card .dropdown-card-btn:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #047857 0%, #10b981 44%, #4ade80 100%);
  outline: 3px solid rgba(52, 211, 153, 0.35);
  outline-offset: 2px;
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.story-promo-card .dropdown-card-btn:active {
  transform: scale(0.98);
}

@media (max-width: 1040px) and (min-width: 901px) {
  .story-dropdown .story-mega-menu {
    width: min(872px, calc(100vw - 28px));
    grid-template-columns: minmax(0, 540px) minmax(266px, 1fr);
    gap: 16px;
    padding: 16px;
  }
}

@media (max-width: 900px) {
  .story-dropdown .story-mega-menu {
    display: none !important;
  }

  .story-mobile-submenu-v108 > li:not(.story-mobile-promo) > a {
    display: flex;
    align-items: center;
    min-height: 58px;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.5);
  }

  .story-mobile-submenu-v108 > li:not(.story-mobile-promo) .menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.11);
    color: #6ee7b7;
  }

  .story-mobile-submenu-v108 strong {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
  }

  .story-mobile-promo {
    padding-top: 4px;
  }

  .story-mobile-promo .story-promo-card {
    min-height: 0;
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-dropdown .story-mega-menu,
  .story-mega-item,
  .story-promo-card .dropdown-card-btn {
    transition: none;
  }
}
