/* Top Navbar Overrides for Strata theme */

/* Offset main content to avoid overlap */
#main { margin-top: 56px; }

.topnav {
  position: fixed;
  top: 0;
  left: 35%;
  width: calc(100% - 35%);
  z-index: 9999;
  background: rgba(255,255,255,0.96); /* whitish */
  backdrop-filter: saturate(120%) blur(4px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.topnav .container {
  max-width: 68rem;
  margin: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center; /* center links for better balance */
  padding: 0 1rem;
}

/* No brand element used */

.topnav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* more spacing between items */
  list-style: none;
}

.topnav .nav-links a {
  color: #333;
  border-bottom: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 1rem; /* clearer nav text */
}

.topnav .nav-links a:hover {
  color: #1f1815;
  background: rgba(73,191,157,0.12);
}

.topnav .nav-links a.active {
  color: #1f1815;
  background: transparent;
}

.topnav .nav-toggle {
  display: none;
  background: transparent;
  color: #333; /* dark icon on light nav */
  font-size: 1.25rem;
  border: 0;
  padding: 0.25rem 0.5rem;
}

/* Mobile */
@media screen and (max-width: 1280px) {
  .topnav {
    left: 30%;
    width: calc(100% - 30%);
  }
}

@media screen and (max-width: 980px) {
  /* Header stacks; navbar spans full width */
  #main { margin-top: 52px; }
  .topnav {
    left: 0;
    width: 100%;
  }
}

@media screen and (max-width: 736px) {
  .topnav .container { height: 52px; }
  .topnav .nav-toggle { display: inline-block; }
  .topnav .nav-links {
    position: absolute;
    top: 52px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.98);
    padding: 0.5rem 1rem 0.75rem;
    display: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .topnav.open .nav-links { display: flex; }

  .topnav .nav-links a {
    width: 100%;
    padding: 0.75rem 0.5rem;
  }
}

/* Blog cards */
#blogs .work-item h3 {
  margin-top: 0.65rem;
  margin-bottom: 0.25rem;
}

#blogs .work-item h3 a {
  color: inherit;
  border-bottom: none;
}

#blogs .work-item h3 a:hover {
  color: #49bf9d;
}

#blogs .work-item p.meta {
  color: #888;
  font-size: 0.95em;
  margin-bottom: 0.35rem;
}
