/* Global Styles */
body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

/* Navigation Bar */
nav {
  background-color: #058680;
  padding: 10px;
}
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}
nav ul li {
  position: relative;
  display: inline-block;
  margin-right: 10px;
  margin-left: 10px;
}

nav a {
  text-decoration: none;
  padding: 10px 15px;
  color: white;
  display: block;
}

/* Submenu styles for desktop */
nav ul li .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: hsl(204, 95%, 34%);
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(101, 250, 2, 0.2);
  z-index: 1;
}

nav ul li:hover .submenu {
  display: block;
}

nav ul li .submenu li {
  display: block;
}

nav ul li .submenu li a {
  padding: 10px;
  background-color: #08aff1;
  color: white;
}

nav ul li .submenu li a:hover {
  background-color: #51a106;
}

/* Hamburger Icon (visible only on mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 20px;
  justify-content: space-between;
  align-items: center;
}

.hamburger div {
  background-color: white;
  height: 4px;
  width: 100%;
}

/* Mobile Menu */
.menu {
  display: none; /* Hidden by default */
  flex-direction: column;
  width: 100%;
  background-color: #058680;
  text-align: right;
}

.menu a {
  color: white;
  padding: 15px 17px;
  text-decoration: none;
  display: block;
  background-color: #058680;
}

.menu a:hover {
  background-color: #04691a;
  color: hsl(202, 99%, 34%);
  background-color: #058680;
}

/* Responsive Design for mobile */
@media (max-width: 768px) {
  /* Hide desktop navigation */
  nav ul {
    display: none; /* Hide desktop menu on mobile */
  }

  /* Show hamburger icon on mobile */
  .hamburger {
    display: flex;
  }

  /* Show mobile menu when hamburger is clicked */
  nav.active ul {
    display: flex;
  }

  /* Mobile menu items - initially hidden */
  .menu {
    display: block;
  }

  /* Hide submenus by default on mobile */
  .submenu {
    display: none;
  }

  /* Show submenu when clicked on mobile */
  .submenu.active {
    display: block;
  }
}

.news-section h1{
  background: rgb(9, 9, 134);
  text-align: center;
  color:white;
}

h1{
  background: rgb(247, 2, 185);
  text-align: center;
  color:white;
}

h2{
  text-align:center;
  color: white;
}

.content{
  width: 45%;
  position: absolute;
  top: 100px;
  left: 100px;
  transform: translateY(100px);
  animation: textup 12s linear infinite;
}

.image-section{
  background-image: url(img/school.jpg);
  height:400px;
  max-width: 100%;
  background-size: cover;
  background-position: center;
  margin: 5px;
  background-repeat: no-repeat;
  transition: 5s;
  animation-name: animation;
  animation-direction: alternate-reverse;
  animation-duration: 20s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-play-state: running;
  animation-timing-function: ease-in-out;
}

@keyframes animation{
  0%{
    background-image: url(img/lab.jpg);
  }
  20%{
    background-image: url(img/new.jpg);
  }
  40%{
    background-image: url(img/one.jpg);
  }
  60%{
    background-image: url(img/school.jpg);
  }
  0%,80%{
    color: red;
    text-shadow: none;
  }
  100%{
    color: white;
    text-shadow: 0 0 10px white; 
  }
}
.copyright-text{
background-color: #021b52;
color: white;
}