/* Shared desktop navigation dropdown styling */
.dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 300px;
  background: white;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s ease-out;
  z-index: 100;
  padding: 10px 0;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 22px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dropdown-menu a:focus-visible {
  background: #e0f2fe;
  color: #0f172a;
  outline: none;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown:focus-within .dropdown-trigger svg {
  transform: rotate(180deg);
}

/* Subtle bottom-right atmosphere for detail page content sections */
.detail-atmosphere {
  background-repeat: no-repeat;
}

.detail-atmosphere-service {
  background-image:
    radial-gradient(circle at 92% 92%, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0) 34%),
    radial-gradient(circle at 80% 100%, rgba(148, 163, 184, 0.18) 0%, rgba(148, 163, 184, 0) 30%);
}

.detail-atmosphere-sector {
  background-image:
    radial-gradient(circle at 92% 92%, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0) 34%),
    radial-gradient(circle at 80% 100%, rgba(148, 163, 184, 0.16) 0%, rgba(148, 163, 184, 0) 30%);
}

@media (max-width: 1023px) {

  .detail-atmosphere-service,
  .detail-atmosphere-sector {
    background-image: none;
  }
}

/* Detail page sidebar enhancements */
.detail-main-grid {
  column-gap: 3.25rem;
  row-gap: 2.25rem;
}

.detail-sidebar-sticky {
  position: sticky;
  top: 7rem;
}

.detail-sidebar-sticky> :not([hidden])~ :not([hidden]) {
  margin-top: 1.5rem !important;
}

.detail-utility-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1.5rem;
}

.detail-utility-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.detail-utility-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

.detail-utility-card .detail-utility-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.detail-utility-card .detail-utility-btn:hover {
  background: #1e293b;
}

.detail-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.detail-trust-item {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.75rem;
}

.detail-trust-item strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.2;
}

.detail-trust-item span {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 0.25rem;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .detail-main-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0;
    row-gap: 1.5rem;
  }

  .detail-main-grid>.lg\:col-span-2 {
    grid-column: auto !important;
  }

  .detail-sidebar-sticky {
    position: static;
    top: auto;
  }

  .detail-sidebar-sticky> :not([hidden])~ :not([hidden]) {
    margin-top: 1.125rem !important;
  }

  .detail-utility-card {
    padding: 1.125rem;
  }

  .detail-utility-card--trust {
    display: none;
  }
}

/* Fix for empty space on bottom of short sector pages with sticky sidebar */
@media (min-width: 1024px) {
  .detail-atmosphere-sector .detail-sidebar-sticky {
    position: static;
  }

  .detail-atmosphere-sector {
    min-height: calc(100vh - 200px);
  }
}

@media (max-width: 1023px) {
  .detail-main-grid {
    column-gap: 0;
    row-gap: 1.5rem;
  }

  .detail-sidebar-sticky {
    position: static;
    top: auto;
  }

  .detail-sidebar-sticky> :not([hidden])~ :not([hidden]) {
    margin-top: 1rem !important;
  }

  .detail-utility-card {
    padding: 1rem;
  }

  .detail-utility-card--trust {
    display: none;
  }
}

@media (max-width: 767px) {
  .detail-utility-card {
    display: none;
  }
}