/* Header styles */
header {
  background-color: #ffffff;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1001;
}

.logo {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 30px;
  color: #22635e;
  display: inline-block;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background: #64b6ac;
  border-radius: 5px;
  animation: underline 2s infinite alternate;
}

@keyframes underline {
  0% {
    width: 20%;
  }
  100% {
    width: 100%;
  }
}

.logo i {
  margin: 0 5px;
  font-size: 24px;
  color: #64b6ac;
}

/* Desktop nav (horizontal, placed outside header) */
.desktop-nav {
  background-color: #40D3C7;
  overflow: hidden;
}

.desktop-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.desktop-nav ul li a {
  color: black;
  text-decoration: none;
  display: block;
  padding: 15px 20px;
  font-weight: bold;
}

.desktop-nav ul li a:hover {
  background-color: black;
  color: white;
}

/* Hamburger button */
.hamburger {
  position: absolute;
  top: 11px;
  left: 6px;
  font-size: 40px;
  background: none;
  border: none;
  color: #40D3C7;
  cursor: pointer;
  z-index: 1100;
}

/* Mobile sidebar menu */
.side-nav {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #40D3C7;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 1200;
}

.side-nav a {
  padding: 16px 24px;
  text-decoration: none;
  font-size: 20px;
  color: black;
  display: block;
}

.side-nav a:hover {
  background-color: black;
}

.side-nav .closebtn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
}

/* Overlay behind mobile nav */
#overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .side-nav {
    display: block;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .side-nav {
    display: none;
  }
}
