/* === Base Styles === */

/* Top Navbar */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #030d17;
  color: white;
  padding: 10px 20px;
  flex-wrap: wrap;
}

/* Contact Section */
.nav-contact {
  text-align: left;
  font-weight: bold;
}

/* Institute Name */
.nav-institute {
  text-align: center;
  font-size: clamp(24px, 5vw, 40px); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  color: white;
  width: 100%; /* Full width for responsiveness */
  margin: 5px 0;
}

/* Second (Main) Navbar */
.main-navbar {
  background-color: #9a6fd3;
  text-align: center;
  padding: 10px 0;
}

/* Navbar Links */
.main-navbar nav a,
.nav-link {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  transition: 0.3s ease;
}

.nav-link:hover,
.main-navbar nav a:hover {
  background-color: rgba(239, 233, 233, 0.2);
  text-decoration: underline;
}

/* Highlighted Links (e.g., Home, Course) */
.highlight {
  background-color: #110d02;
  color: #000;
}

.highlight:hover {
  background-color: #1f1803;
  color: #fff;
}

/* Scaling on Click */
.nav-clicked {
  transform: scale(1.2);
}

/* Email Link */
.nav-email {
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
  margin-left: 10px;
}

.nav-email:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #100202;
  color: white;
  text-align: center;
  padding: 5px 2px;
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.2;
}

.footer .social-links a {
  color: #ffc107;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.footer .social-links a:hover {
  text-decoration: underline;
}

/* === Responsive Styles === */
@media (max-width: 768px) {
  .top-navbar {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .nav-contact,
  .nav-institute {
    font-size: 20px;
    margin: 5px 0;
  }

  .main-navbar nav a {
    display: block;
    margin: 10px 0;
  }
}
