/* Global Header and Portal Menu Styles */

/* Header and Portal Menu Positioning */
.header-portal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: block;
  /* Add a CSS variable to track total height */
  --header-height: 100px; /* Approximate site-header height */
  --portal-height: 46px; /* Approximate global-portal-menu height */
  --total-header-height: calc(var(--header-height) + var(--portal-height));
}

.site-header {
  display: block;
  background: #181818;
  color: #fff;
  border-bottom: 1px solid #222;
  width: 100%;
  z-index: 900;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

/* Logo and Title Area */
.site-header .logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #181818;
  min-width: 348px;
  margin-left: -10px;
}

.site-header .logo-area img {
  height: auto;
  width: 226px;
  display: block;
  object-fit: contain;
}

.site-header .header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
}

.site-header .title-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.site-header .title-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding-right: 50px; /* Add padding to offset the user menu movement */
}

.site-header .logo {
  margin: 0 0 0 -35px;
  font-size: 3.75rem;
}

/* Global Portal Menu */
.global-portal-menu {
  display: block;
  background: #222;
  color: #fff;
  border-bottom: 1px solid #333;
  width: 100%;
  z-index: 899;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  margin-bottom: 3.5rem;
  padding-top: 0;
  padding-bottom: 0;
  top: 0;
  position: relative;
}

.global-portal-menu > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 0.5rem 2rem;
  width: 100%;
  margin: 0;
}

.portal-link {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1.1rem !important;
}

.portal-link.home {
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-header .logo {
    font-size: 2.5rem;
  }
  
  .site-header .logo-area {
    min-width: 250px;
  }
  
  .global-portal-menu > div {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }
}
