


.navbar{
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
      position:fixed; top:0; left:0; right:0; z-index:1000;
      height:var(--nav-h);
      padding:12px 0;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-family: 'Inria Sans', sans-serif;
  }

  .navbar-inner{
    max-width: 1100px;   /* try 1000px if you want it tighter */
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .nav-logo img{
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
  }
  
  .nav-links{
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto; /* pushes links right */
  }
  
  .nav-links a{
    color: #3b2e4d;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
  }
  
  .nav-links a:hover{
    background: rgba(142, 91, 176, 0.1);
    color: #8e5bb0;
  }
  
  .nav-links a.active{
    background: rgba(142, 91, 176, 0.12);
    color: #8e5bb0;
  }
  
  /* Dropdown */
  .dropdown{ position: relative; }
  
  .dropdown-content{
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
    text-align: left;
    z-index: 1100;
  }
  
  .dropdown-content a{
    display: block;
    padding: 10px 16px;
    color: #2b4379;
    font-weight: 500;
    border-radius: 0;
  }
  
  .dropdown-content a:hover{
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
  }
  
  .dropdown:hover .dropdown-content{ display: block; }
  .dropdown:focus-within .dropdown-content{ display: block; }

.navbar-inner{
  min-height: 64px;
}

.nav-logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img{
  height: 48px;
  display: block;
}

.nav-links{
  align-items: center;
  gap: 12px;
}

/* “pill” refinement */
.nav-links a{
  position: relative;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

/* Softer hover (less “blocky”) */
.nav-links a:hover{
  background: rgba(142, 91, 176, 0.08);
}

/* Active = subtle glow underline */
.nav-links a.active{
  background: rgba(142, 91, 176, 0.10);
  color: #7c46a6;
}

.nav-links a.active::after{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(142, 91, 176, 0.65);
  box-shadow: 0 0 10px rgba(142, 91, 176, 0.35);
}

/* Dropdown: slightly more premium */
.dropdown-content{
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.dropdown-content a{
  padding: 10px 14px;
}

/* Find your .dropdown-content block and update these properties */
.dropdown-content {
  display: none;
  position: absolute;
  
  /* 1. Reset these to anchor it to the left of the 'Write' link */
  top: 100%; 
  left: 0; 
  
  /* 2. Remove or comment out the transform line */
  /* transform: translateX(-50%); */
  
  margin-top: 5px; /* Adjust this to control the vertical gap */
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.65);
  padding: 8px 0;
  z-index: 1100;
}

/* keep it neat on smaller screens */
@media (max-width: 820px){
  .navbar-inner{
    min-height: 58px;
  }
  .nav-logo img{
    height: 44px;
  }
  .nav-links a.active::after{
    left: 18px;
    right: 18px;
  }
}
