/* Navigation menu */
body .menu-container {
  margin: 0 auto;
}
body .menu-item {
  display: block;
  color: #fff;
  position: relative;
  overflow: visible;
  z-index: 1;
  box-shadow: var(--newsletter-shadow);
  border-radius: 0;
  background: var(--newsletter-bg-primary);
  backdrop-filter: blur(10px);
  margin-bottom: 0;
}
.menu-item:last-child {
  margin-bottom: 0;
}
body .menu-item-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto; /* Allow height to grow with divider */
  min-height: 96px;
  width: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--newsletter-bg-primary);
  color: var(--color-text-inverse);
  backdrop-filter: blur(15px);
  z-index: 110;
  padding: 1rem 0;
}

body .menu-inline-content {
  background: var(--gradient-bg-subtle);
  position: relative;
  color: #fff;
  border-radius: 0;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 120px;
  box-sizing: border-box;
  z-index: 8;
  box-shadow: var(--complex-container-shadow);
  backdrop-filter: blur(12px);
  opacity: 0;
  max-height: 0;
  padding: 0;
  overflow: visible;
}
body .menu-inline {
  display: none;
  margin: 0 auto;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 5;
}
.menu-inline.open {
  display: block;
}
body .menu-content-area {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
body .menu-content-area .content-container {
  border: none;
  box-shadow: none;
  background: transparent;
}
.menu-content-area .content-container:not(.container-light) {
  border: none;
  box-shadow: none;
  background: transparent;
}
body #service-section .menu-inline-content {
  background: #fff;
  color: #000 ;
}
body #careers-section .menu-inline-content {
  background: #fff;
  color: #000 ;
}
.menu-inline-content.open {
  opacity: 1;
  max-height: none;
  padding: 2.2rem 0 0;
}
body .menu-toggle-icon {
  display: none;
}
.menu-item.active .menu-toggle-icon {
  display: none;
}
body .menu-content-area .newsletter-content {
  max-width: var(--content-max-width);
  width: 100%;
  text-align: left;
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
}
.menu-content-area .newsletter-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}
.menu-content-area .newsletter-content p:first-child {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  font-weight: 500;
  text-align: center;
  margin-bottom: 2rem;
}
.menu-content-area .newsletter-content p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: center;
  font-weight: 600;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-content-area .newsletter-content strong {
  color: #fff;
  font-weight: 600;
}
.menu-inline-content.open {
  opacity: 1;
  max-height: none;
  padding: 2.2rem 2rem 0;
  margin-bottom: 0;
}
.menu-item:has(.menu-inline-content.open) + .menu-item .menu-item-header {
  margin-top: 0;
}
.menu-item.active + .menu-item .menu-item-header {
  margin-top: 0;
}
.menu-item.active {
  margin-bottom: 0;
}
.menu-item.active + .menu-item {
  margin-top: 0;
}
body .menu-item {
  margin-top: 0;
  margin-bottom: 0;
}
body .menu-content-area {
  width: 100%;
  margin: 0;
  padding: 0;
  container-type: inline-size;
}

/* Menu header divider */
.menu-header-divider {
  width: 20%;
  height: 3px;
  margin-top: 0.5rem;
  background: linear-gradient(to right, 
    #e74c3c 0%, #e74c3c 33%, 
    #27ae60 33%, #27ae60 66%, 
    #3498db 66%, #3498db 100%
  );
  border-radius: 2px;
}

.divider-segment {
  flex: 1;
  height: 100%;
  transition: all 0.3s ease;
}

.divider-segment.red {
  background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.divider-segment.green {
  background: linear-gradient(90deg, #27ae60, #229954);
}

.divider-segment.blue {
  background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Hover effects for interactive dividers */
.menu-item-header:hover .divider-segment {
  transform: scaleY(1.2);
}

.menu-item-header:hover .divider-segment.red {
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.menu-item-header:hover .divider-segment.green {
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.menu-item-header:hover .divider-segment.blue {
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-header-divider {
    height: 3px;
    margin-top: 0.3rem;
  }
}

/* Update menu header layout to accommodate divider */
body .menu-item-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto; /* Allow height to grow with divider */
  min-height: 96px;
  width: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--newsletter-bg-primary);
  color: var(--color-text-inverse);
  backdrop-filter: blur(15px);
  z-index: 110;
  padding: 1rem 0;
}

@media (max-width: 480px) {
  body .menu-content-area {
    width: 100%;
    padding: 0;
    margin: 0;
  }
}
