/* Header logo + menu matching /latitude/ap — homepage only */
body.index-page .index-header-logo {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  line-height: 0;
}

body.index-page .index-header-logo img,
body.index-page .header-nav-centered .index-header-logo img {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: min(420px, 36vw) !important;
  object-fit: contain !important;
}

body.index-page .header-nav-centered .container-fluid.container-xl {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Keep header controls left of the IIA Karnataka seal on the banner */
@media (min-width: 1200px) {
  body.index-page .header-nav-centered .container-fluid.container-xl {
    padding-right: 128px;
  }
}

body.index-page .header-nav-centered .logo,
body.index-page .header-nav-centered .index-header-logo {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  overflow: visible;
  height: auto;
  max-height: none;
  flex: 0 1 auto;
  margin: 0;
  z-index: 2;
}

/* Desktop: Home / Speakers / Schedule / Contact in the header */
body.index-page .ap-inline-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

body.index-page .ap-inline-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.index-page .ap-inline-nav a {
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

body.index-page .ap-inline-nav a:hover,
body.index-page .ap-inline-nav a.active {
  color: var(--accent-color, #e89ab8) !important;
}

body.index-page .header-nav-centered .header-center {
  position: relative;
  flex: 0 0 auto;
  margin-left: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.index-page .header-nav-centered .desktop-cta {
  display: inline-block !important;
  position: static !important;
  flex-shrink: 0;
}

body.index-page .header-nav-centered .mobile-nav-toggle {
  display: inline-block !important;
  color: #fff !important;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  margin: 0 0 0 8px !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  flex-shrink: 0;
  z-index: 5;
}

body.index-page.mobile-nav-active .header-nav-centered .mobile-nav-toggle {
  position: static !important;
  top: auto !important;
  right: auto !important;
  color: #fff !important;
  font-size: 1.7rem !important;
}

body.index-page .header-nav-centered .navmenu,
body.index-page.mobile-nav-active .header-nav-centered .navmenu {
  position: static !important;
  inset: auto !important;
  overflow: visible !important;
  background: transparent !important;
  width: 0;
  height: 0;
}

body.index-page .header-nav-centered .navmenu > ul {
  display: none !important;
  position: absolute !important;
  inset: auto 0 auto auto !important;
  top: calc(100% + 12px) !important;
  right: 0 !important;
  left: auto !important;
  width: min(240px, calc(100vw - 24px));
  max-height: calc(var(--app-height, 100dvh) - 96px);
  overflow-y: auto;
  background: #1c2128 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 0 !important;
  margin: 0 !important;
  z-index: 10000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  flex-direction: column;
}

body.index-page.mobile-nav-active .header-nav-centered .navmenu > ul {
  display: block !important;
}

body.index-page .header-nav-centered .navmenu > ul > li {
  display: block;
  width: 100%;
  padding: 0;
}

/* Desktop burger: only Venue + Awards */
body.index-page .header-nav-centered .navmenu > ul > li.ap-mobile-item,
body.index-page .header-nav-centered .navmenu > ul > li.mobile-nav-cta {
  display: none !important;
}

body.index-page .header-nav-centered .navmenu > ul a,
body.index-page .header-nav-centered .navmenu > ul a:focus {
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  display: block;
  white-space: nowrap;
}

body.index-page .header-nav-centered .navmenu > ul a:hover,
body.index-page .header-nav-centered .navmenu > ul a.active {
  color: var(--accent-color, #e89ab8) !important;
}

body.index-page.mobile-nav-active {
  overflow: auto !important;
}

@media (max-width: 1199px) {
  body.index-page .ap-inline-nav {
    display: none !important;
  }

  body.index-page .index-header-logo,
  body.index-page .header-nav-centered .index-header-logo {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0;
    max-width: calc(100vw - 150px);
  }

  body.index-page .index-header-logo img,
  body.index-page .header-nav-centered .index-header-logo img {
    height: 36px !important;
    max-height: 36px !important;
    max-width: calc(100vw - 160px) !important;
  }

  body.index-page .header-nav-centered .desktop-cta {
    padding: 6px 12px !important;
    font-size: 12px !important;
    margin: 0 0 0 6px !important;
  }

  body.index-page .header-nav-centered .desktop-uia {
    display: none !important;
  }

  body.index-page.mobile-nav-active .header-nav-centered .navmenu > ul > li.ap-mobile-item,
  body.index-page.mobile-nav-active .header-nav-centered .navmenu > ul > li.mobile-uia-cta {
    display: block !important;
  }
}

@media (max-width: 575px) {
  body.index-page .index-header-logo img,
  body.index-page .header-nav-centered .index-header-logo img {
    height: 28px !important;
    max-height: 28px !important;
  }

  body.index-page .header-nav-centered .desktop-cta {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
}

/* UIA Run button color */
body.index-page .header-nav-centered .desktop-uia,
body.index-page .header-nav-centered .desktop-uia:focus {
  background: #323b56 !important;
}
body.index-page .header-nav-centered .desktop-uia:hover,
body.index-page .header-nav-centered .desktop-uia:focus:hover {
  background: color-mix(in srgb, #323b56, transparent 15%) !important;
}
body.index-page .navmenu .mobile-uia-cta .navmenu-cta,
body.index-page .navmenu .mobile-uia-cta .cta-btn,
body.index-page .navmenu .mobile-uia-cta .navmenu-cta:focus,
body.index-page .navmenu .mobile-uia-cta .cta-btn:focus {
  background: #323b56 !important;
}
body.index-page .navmenu .mobile-uia-cta .navmenu-cta:hover,
body.index-page .navmenu .mobile-uia-cta .cta-btn:hover {
  background: color-mix(in srgb, #323b56, transparent 15%) !important;
}

/* Register text blink + bold CTAs */
@keyframes lat-register-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}
body.index-page .header-nav-centered .desktop-register,
body.index-page .header-nav-centered .desktop-register:focus {
  white-space: nowrap !important;
  min-width: 188px;
  padding: 8px 22px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center;
}
body.index-page .header-nav-centered .desktop-register .lat-register-blink-text {
  display: inline-block;
  animation: lat-register-blink 1.1s step-start infinite;
}
body.index-page .header-nav-centered .desktop-uia,
body.index-page .header-nav-centered .desktop-uia:focus {
  font-weight: 700 !important;
}
body.index-page .navmenu .mobile-uia-cta .navmenu-cta,
body.index-page .navmenu .mobile-uia-cta .cta-btn {
  font-weight: 700 !important;
}
@media (max-width: 1199px) {
  body.index-page .header-nav-centered .desktop-register,
  body.index-page .header-nav-centered .desktop-register:focus {
    min-width: 168px;
    padding: 7px 16px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 575px) {
  body.index-page .header-nav-centered .desktop-register,
  body.index-page .header-nav-centered .desktop-register:focus {
    min-width: 150px;
    padding: 6px 12px !important;
    font-size: 11px !important;
  }
}
