/* Text logo styles */
.navbar-brand.text-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 15px;
  position: absolute;
  left: 0;
  height: 62px;
  line-height: normal;
  width: auto;
  background-color: #ee3b24;
  cursor: pointer;
  z-index: 1000; /* Ensure it's above other elements */
}

.text-logo .site-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  top: 8px; /* Adjust vertical position */
  pointer-events: none; /* Allow clicks to pass through to the parent link */
}

.text-logo .tagline {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  position: relative;
  top: 8px; /* Adjust vertical position */
  pointer-events: none; /* Allow clicks to pass through to the parent link */
}

/* Custom fix to ensure menu starts properly and doesn't overlap logo */
#header .container {
  margin-left: 0;
  padding-left: 0;
  position: relative;
  z-index: 999; /* Lower than the logo */
}

/* Fix any potentially overlapping elements */
.navbar-collapse, .navbar-nav {
  z-index: 999; /* Lower than the logo */
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .navbar-brand.text-logo {
    padding: 0 10px;
    height: 50px;
  }
  
  .text-logo .site-name {
    font-size: 16px;
    top: 6px;
  }
  
  .text-logo .tagline {
    font-size: 8px;
    top: 6px;
  }
}