/* LightningArrows — ensure primary blue buttons have white label text */
a.bg-primary,
button.bg-primary,
a.bg-primary.text-white,
.bg-primary.hover\:bg-gray-800 {
  color: #ffffff !important;
}
a.bg-primary:hover,
button.bg-primary:hover {
  color: #ffffff !important;
}
/* form submit buttons */
button.form-button:not(.no-default-style),
input.form-button:not(.no-default-style) {
  color: #ffffff !important;
}

/* —— Start Here / site ad callouts for Configure Server —— */
.la-ad {
  display: block;
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(56, 147, 248, 0.28);
  background: linear-gradient(135deg, rgba(56, 147, 248, 0.08), rgba(56, 147, 248, 0.02));
  text-decoration: none !important;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.la-ad:hover {
  border-color: #3893F8;
  box-shadow: 0 8px 24px rgba(56, 147, 248, 0.18);
  transform: translateY(-1px);
}
.la-ad__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3893F8;
  margin-bottom: 0.35rem;
}
.la-ad__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}
.dark .la-ad__title {
  color: #f3f4f6;
}
.la-ad__text {
  display: block;
  font-size: 0.92rem;
  color: #4b5563;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.dark .la-ad__text {
  color: #9ca3af;
}
.la-ad__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #3893F8;
}
.la-ad__cta::after {
  content: "→";
}

/* Inline chip-style ad */
.la-ad--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.1rem;
  background: #3893F8;
  border: none;
  border-radius: 0.65rem;
}
.la-ad--inline .la-ad__title {
  color: #fff !important;
  margin: 0;
  font-size: 0.98rem;
}
.la-ad--inline .la-ad__cta {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
}
.la-ad--inline:hover {
  background: #2f7fd9;
  box-shadow: 0 8px 22px rgba(56, 147, 248, 0.35);
}

/* Soft side / mid ad */
.la-ad--soft {
  background: #f8fafc;
  border-style: dashed;
  border-color: rgba(56, 147, 248, 0.45);
}
.dark .la-ad--soft {
  background: rgba(17, 24, 39, 0.55);
}

/* Pricing tease */
.la-ad--price {
  background: linear-gradient(120deg, rgba(56, 147, 248, 0.12), rgba(16, 185, 129, 0.08));
  border-color: rgba(56, 147, 248, 0.35);
}

/* Big bottom CTA */
.la-ad--hero {
  margin: 2.5rem 0 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(145deg, #1e3a5f 0%, #3893F8 55%, #5ba8ff 100%);
  border: none;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.28);
}
.la-ad--hero .la-ad__eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.la-ad--hero .la-ad__title {
  color: #fff !important;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.5rem;
}
.la-ad--hero .la-ad__text {
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  font-size: 1.02rem;
}
.la-ad--hero .la-ad__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: min(100%, 22rem);
  padding: 1rem 1.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1e3a5f !important;
  background: #fff;
  border-radius: 0.75rem;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.la-ad--hero .la-ad__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.la-ad--hero:hover {
  transform: none;
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.28);
}

/* Compact corner-style strip */
.la-ad--strip {
  padding: 0.7rem 1rem;
  border-left: 4px solid #3893F8;
  border-radius: 0.4rem;
  background: rgba(56, 147, 248, 0.06);
}
.la-ad--strip .la-ad__title {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.la-ad--strip .la-ad__text {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

/* —— Cloud Servers (and long) desktop dropdowns: show ~5 items, scroll rest —— */
nav.header-nav ul.level_1 {
  /* ~5 rows visible (item ~2.75rem) + list padding */
  max-height: calc(5 * 2.75rem + 1rem) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  width: 16.5rem !important; /* wider for long region names */
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 147, 248, 0.55) transparent;
}
nav.header-nav ul.level_1::-webkit-scrollbar {
  width: 6px;
}
nav.header-nav ul.level_1::-webkit-scrollbar-thumb {
  background: rgba(56, 147, 248, 0.45);
  border-radius: 999px;
}
nav.header-nav ul.level_1::-webkit-scrollbar-track {
  background: transparent;
}

/* Open upward when near bottom of viewport (class set by JS) */
nav.header-nav li.has-submenu > ul.level_1.la-nav-opens-up {
  top: auto !important;
  bottom: 100% !important;
  margin-bottom: 0.15rem;
  border-radius: 0.5rem 0.5rem 0 0;
  border-top-width: 0;
  border-bottom-width: 2px;
  border-bottom-color: rgba(229, 231, 235, 1);
  transform: translateX(-50%) translateY(0.5rem);
}
nav.header-nav.animated li.has-submenu:hover > ul.level_1.la-nav-opens-up,
nav.header-nav li.has-submenu.la-nav-open > ul.level_1.la-nav-opens-up {
  transform: translateX(-50%) translateY(0);
}

/* Highlight on hover/keyboard — do not imply navigation until click */
nav.header-nav ul.level_1 > li > div > a {
  transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
  border-radius: 0.35rem;
  margin: 0 0.25rem;
  width: calc(100% - 0.5rem) !important;
}
nav.header-nav ul.level_1 > li > div > a:hover,
nav.header-nav ul.level_1 > li > div > a:focus-visible,
nav.header-nav ul.level_1 > li > div > a.la-nav-highlight {
  background: rgba(56, 147, 248, 0.12) !important;
  color: #1e6fd9 !important;
  box-shadow: inset 3px 0 0 #3893F8;
}
.dark nav.header-nav ul.level_1 > li > div > a:hover,
.dark nav.header-nav ul.level_1 > li > div > a:focus-visible,
.dark nav.header-nav ul.level_1 > li > div > a.la-nav-highlight {
  background: rgba(56, 147, 248, 0.18) !important;
  color: #7ec4ff !important;
}

/* Mobile drawer: same ~5-item scroll for Cloud Servers children when expanded */
.mobile-nav ul.level_1 {
  max-height: calc(5 * 2.85rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.mobile-nav ul.level_1 a:hover,
.mobile-nav ul.level_1 a.la-nav-highlight {
  background: rgba(56, 147, 248, 0.15);
  color: #7ec4ff;
}
