.header {
  background-color: rgb(255, 255, 255);
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding: 45px 103px;
  box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.15);
  position: sticky;
  z-index: 500;
  top: 0;
}

.header-left {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 35px;
}

.header-left a {
  text-decoration: none;
}

.header-left a:hover #p {
  color: #60697B;
  transition: color 0.3s ease;
}


.m-btn {
  display: none;
  border: none;
  padding: 10px;
  background-color: #00000000;
  color: #343E51;
  font-size: 25px;
}

.header-middle {
  display: flex;
  justify-content: space-between;
  width: 600px;
}

.header-middle a {
  text-decoration: none;
  color: #343E51;
  font-weight: 500;
}

.header-middle a:hover {
  color: #343E51;
}

.header-middle a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background-color: #60697B;
  transition: width .3s;
}

.header-middle a:hover::after {
  width: 100%;
  transition: width .3s;
}

.header-right {
  display: flex;
  ;
  justify-content: flex-end;

}

.header-right a,
.footer-link {
  text-decoration: none;
  margin-left: 25px;
  font-size: 20px;
  color: #343E51;
  transition: bottom 1s;
  position: relative;
}

.header-right a:hover,
.footer-link:hover {
  color: #60697B;
  bottom: 2px;
  transition: color 0.15s;
}

.fa-twitter::before {
  content: "𝕏";
}


footer {
  margin: 0 103px;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1200px) {
  .header-right {
    display: none;
  }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    margin: 0;
  }

  footer p {
    font-size: 14px;
  }

  footer div {
    justify-content: center;
  }
}


@media (max-width: 992px) {
  .header {
    padding: 45px 20px;
  }

  .m-btn {
    display: block;
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #343E51;
    margin-left: 10px;
  }

  .header-middle,
  .header-right {
    display: none;
  }


  .header.menu-open .header-middle {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 90%;
    background: #fff;
    padding: 16px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }

  .header.menu-open .header-right {
    display: flex;
    gap: 12px;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 160px);
    padding: 12px 20px;
    background: #fff;
  }

  .header-middle a {
    font-size: 18px;
    padding: 6px 0;
  }



  .header-middle a::after {
    content: none !important;
    /* remove underline element */
    display: none !important;
    /* ensure it doesn’t render */
    width: 0 !important;
    height: 0 !important;
    transition: none !important;
  }

  .header-middle a:hover::after {
    width: 0 !important;
    /* prevent hover underline */
  }


  footer {
    padding: 16px 12px;
  }

  footer p {
    font-size: 12px;
  }

  footer div a {
    font-size: 16px;
  }

}