/* Top Wrapper */
.top-wrapper {
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 5px solid #ffcc00;
    background: white;
}

/* Navigation Bar */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin: 0 75px;
    box-sizing: border-box;
}

.nav .left,
.nav .right {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
}

.nav .right {
    justify-content: flex-end;
}

.logo {
    width: 3rem;
    height: auto;
    display: block;
}

.nav .links {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav .links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav .link {
    text-decoration: underline;
    text-decoration-color: #ffd700;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    color: #000;
    font-size: 18px;
    padding: 8px 10px;
}

.nav .links ul li:first-child {
  padding-left: 0;
}

.nav .links ul li:last-child {
  padding-right: 0;
}

.nav .button {
    flex: 0 0 auto;
}

.icon {
    color: #0065f8;
    font-size: 24px;
    padding: 0 20px;
    text-decoration: none;
}

.active {
    color: #ffd700;
}

@media (max-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 10px 0;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .nav .button {
    padding: 15px 15px;
    font-size: 14px;
  }

  .nav .left {
    flex: 0 0 auto;
    margin-left: 20px;
  }

  .nav .links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .nav .right {
    flex: 0 0 auto; /* button width auto */
    margin-right: 20px;
  }

  .nav .links ul,
  .nav .link,
  .icon {
    white-space: nowrap;
    padding: 0 5px;
  }
}
