body{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat",sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  
}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #24292e;
  padding: 1rem 2rem;
  color: rgb(219, 221, 228);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  color: rgb(175, 186, 190);
  margin-left: 20px;
  text-decoration: white;
  position: relative;
}

.nav-links a:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -20px;
  left: 0;
  background: #444;
  color: white;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0366d6;
  padding: 1rem 2rem;
  color: white;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.search-bar {
  padding: 0.5rem;
  width: 300px;
  border-radius: 5px;
  border: none;
}

.user-menu {
  position: relative;
}

.user-menu span {
  cursor: pointer;
}

.dropdown {
  display: none;
  position: absolute;
  background-color: white;
  color: black;
  right: 0;
  top: 120%;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 120px;
}

.user-menu:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.5rem;
  text-decoration: white;
  color: black;
}

.dropdown a:hover {
  background-color: #eee;
}

main {
  display: flex;
  padding: 2rem;
  gap: 2rem;
}


.content {
  flex: 2;
}

.ask-btn {
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-card {
  background-color: white;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.votes {
  font-weight: bold;
  color: #0366d6;
  width: 80px;
}

.question-info h3 {
  margin-bottom: 0.3rem;
  color: #0366d6;
}

.question-meta {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

.tags {
  margin-top: 0.5rem;
  color: #777;
}


aside {
  flex: 1;
}

.widget {
  background-color: rgb(27, 196, 78);
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.tag-list span {
  display: inline-block;
  background-color: #6d2160;
  color: #39739d;
  padding: 0.3rem 0.6rem;
  margin: 0.2rem;
  border-radius: 3px;
  font-size: 0.85rem;
}


section {
  padding: 2rem;
  background-color: #28ad50;
  margin: 2rem;
  border-radius: 6px;
  border: 1px solid #ddd;
}


footer {
  background-color: #24292e;
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: 2rem;
}




#students {
  text-align: center;
  padding: 2rem;
  background-color: #f4f4f4;
}

.student-image-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.student-image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.image-description {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  font-size: 1.1rem;
  border-radius: 6px;
}