/********* Campus, Events and Notice Board section CSS Starts **********/
.main-section {
  width: auto;
  margin-bottom: 100px;
  overflow: hidden;
}

.main-section .container-fluid {
  width: auto;
  display: flex;
  margin: 0 2rem;
  border-radius: 1rem;
  padding: 40px 20px;
  background: linear-gradient(to right, #0177d1 0%, #801afc 100%);
}

.event {
  width: 32%;
  margin: 0 1%;
  float: left;
  background-color: #fafafa;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.1);
}

.event .heading {
  border-bottom: 2px solid #fff;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 20px;
  color: #fff;
  background: #2c40b3;
  text-align: center;
}

.event ul {
  padding-left: 0;
}

.event ul li {
  width: 100%;
  float: center;
  list-style: none;
  overflow: hidden;
}

.event-date {
  background-color: rgb(234, 95, 44);
  float: left;
  text-align: center;
  font-size: 14px;
  color: var(--white);
  padding: 8px 6px;
  margin-right: 10px;
  min-width: 110px;
  width: 110px;
  border-radius: 0.5rem;
}

.event-list {
  padding: 0.5rem .5rem;
  margin-bottom: 20px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  color: var(--white);
  background: rgb(0, 110, 255);
} 

/******** School-News**************/
.news-list {
  margin: 0 0.25rem 1rem 0;
  text-overflow: wrap;
}

.news-list-container {
  width: auto;
  padding: 0.5rem;
}

/********* Upcoming-Event **********/
.upcoming-event {
  font-size: 16px;
  font-weight: 500;
  max-height: 400px;
  overflow: auto;
}


/********* Notice-Board **********/
.notice-board {
  display: flex;
  flex-direction: column;
  padding: 0 30px 0 0;
  overflow: auto;
  max-height: 400px;
}

.notice-board a {
  color: black;
  font-size: 17px;
  text-decoration: none;
}

.notice-board a:link:hover {
  text-decoration: underline;
}

.list-item {
  padding: 0 0 0 25px;
  position: relative;
}

.list-item::before {
  content: "\f058";
  /* Unicode of the desired Font Awesome icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  width: 12px;
  height: 12px;
  position: absolute;
  left: 0px;
  top: 20%;
  transform: translateY(-50%);
  color: #2faf08;
}

.list-item .notice-date {
  color: rgb(15, 15, 163);
  font-size: 14px;
}

/************** New-blinker effect ************/
.new-effect {
  font-style: italic;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  margin: 0 0 0 5px;
  font-size: 16px;
  animation: animate 1.5s linear infinite;
}

@keyframes animate {
  0% {
    color: #ee0000;
    filter: hue-rotate(0deg);
    text-shadow: 0 0 10px #00b3ff,
      0 0 20px 00b3ff,
      0 0 40px 00b3ff,
      0 0 80px 00b3ff,
      0 0 120px 00b3ff,
      0 0 200px 00b3ff,
      0 0 300px 00b3ff;
  }

  30% {
    color: #f4e629;
    filter: hue-rotate(90deg);
    text-shadow: 0 0 10px #00b3ff,
      0 0 20px 00b3ff,
      0 0 40px 00b3ff,
      0 0 80px 00b3ff,
      0 0 120px 00b3ff,
      0 0 200px 00b3ff,
  }

  70% {
    color: #0eea16;
    filter: hue-rotate(180deg);
    text-shadow: 0 0 10px #00b3ff,
      0 0 20px 00b3ff,
      0 0 40px 00b3ff,
      0 0 80px 00b3ff,
      0 0 120px 00b3ff,
      0 0 200px 00b3ff,
  }

  100% {
    color: #3241e2;
    filter: blur(1px) hue-rotate(360deg);
    text-shadow: 0 0 10px #00b3ff,
      0 0 20px 00b3ff,
      0 0 40px 00b3ff,
      0 0 80px 00b3ff,
      0 0 120px 00b3ff,
      0 0 200px 00b3ff,
  }
}

@media screen and (max-width: 768px) {
  .main-section {
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
  }

  .main-section .container-fluid {
    display: flex;
    gap: 10px;
    margin: 0 .5rem;
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--navbackground);
  }

  .main-section .container-fluid .event {
    width: 100%;
  }

  .main-section .container-fluid .event .heading {
    font-size: 18px;
  }

  .main-section .container-fluid .event:last-child .heading {
    margin-bottom: 10px;
  }

  .main-section .container-fluid .event div {
    font-size: 14px;
  }

  .main-section .container-fluid .event .event-date {
    font-size: 14px;
    border-radius: 5px;
    padding: 2px 5px;
    background: #ec591e;
  }

  .main-section .container-fluid .event .notice-board {
    padding: 0 10px;
  }

  .main-section .container-fluid .event .notice-board .list-item {
    margin-bottom: 5px;
  }

}