.main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-top: -3.55%;
    margin-left: -4%;
    background-color: #FEB500;
    height: 40px;
}

.main > .Navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
}

.main > .Navbar > .nav-logo {
    font-weight: 700;
    font-size: 21px;
    margin: 15px;
}

.main > .Navbar > .nav-items > a {
     color: #222222;
     font-size: 16px;
     font-weight: 600;
     text-decoration: none;
     margin-right: 50px;
     position: relative;
     opacity: 0.9;
}

.main > .Navbar > .nav-items > a:hover {
    opacity: 1;
}

.main > .Navbar > .nav-items > a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    color: #222222;
    transition: all .45s ;
}

.main > .Navbar > .nav-items > a:hover::before {
    width: 100%;
}

.container {
  width: 100vw;
  margin: 0 auto;
  top: 0;
  background-color: #FEB500;
  border-bottom: 1px solid #222222;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  z-index: 10;
  position: relative;
  padding: 15px 0;
}

.innerContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logoContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logoContainer a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.logosImage {
  width: 35px;
  height: 35px;
  display: flex;
}

.logosDetails {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.logosDetails h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  color: #222222;
}

.logosDetails p {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  color: #394149;
}

.linksContainer {
  display: flex;
  align-items: center;
  gap: 60px;
}

.link {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: color 0.3s, transform 0.3s;
  font-weight: bold;
}

.link:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
}

.polygonBackground {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: #222222;
  clip-path: polygon(72% 0, 100% 0, 100% 100%, 60% 100%);
  z-index: -1;
}

.buttonContainer {
  display: flex;
  align-items: center;
  margin-left: 5px;
  gap: 15px;
}

.talkButton {
  background-color: #FEB500;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.talkButton a {
  color: #222222;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.talkButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.adminButton {
  background-color: #FEB500;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: none; 
}

.adminButton a {
  color: #222222;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.adminButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.navToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 24px;
  cursor: pointer;
}

.menuIcon {
  width: 24px;
  height: 24px;
  color: #222222;
}

/* ==============================================================
   MOBILE STYLES (Max Width: 768px)
============================================================== */
@media (max-width: 768px) {
  .container {
    width: 100vw;
    margin: 0 auto;
  }

  .innerContainer {
    width: 90%;
    margin: 0 auto;
  }

  .linksContainer {
    display: none;
    flex-direction: column;
    align-items: center; /* Centers the menu items horizontally */
    position: absolute;
    top: 100%;
    left: 0;   /* Anchor to both left and right to prevent screen overflow */
    right: 0;
    background-color: #FEB500;
    width: 100%;
    padding: 20px 0; /* Add vertical padding only */
    box-sizing: border-box; /* Crucial: stops width overflow issues */
    gap: 20px;
    z-index: 999;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Drops a slight shadow beneath the menu */
  }

  .linksContainer a {
    margin-left: 0;
  }

  .linksContainer .talkButton,
  .linksContainer .adminButton {
    background-color: #222222;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .linksContainer .talkButton {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  }

  .linksContainer .talkButton a,
  .linksContainer .adminButton a {
    color: #FEB500;
    margin: 0 auto;
  }

  .linksContainer.open {
    display: flex;
  }

  .navToggle {
    display: flex;
  }

  .polygonBackground {
    display: none;
  }

  .buttonContainer {
    margin-top: 10px;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .logoContainer {
    gap: 8px;
  }

  .logosImage {
    margin-top: 0;
  }

  .logosDetails {
    margin-top: 0;
  }
  
  .logosDetails h2 {
    font-size: 18px;
  }
  
  .logosDetails p {
    font-size: 10px;
  }

  .link {
    margin: 0 auto;
    text-align: center;
    width: 100%;
    padding: 10px 0; /* Adds clickable spacing around words */
  }
}