:root {
  --darkBlue: #004f9f;
  --lightBlue: #7db9f5;
  --lightestBlue: #e8f5ff;
  --grey: #b8c0c7;
  --darkGrey: #585858;
  --darkestGrey: #252424;
  --lightGrey: #e1e7ec;
  --lightBrightGrey: #fafafa;
  --brightGrey: #f4f1f1;
  --mediumBrown: #dbdbdb;
  --lightBrown: #f4f1f1;
  --white: #fff;
  --black: #000000;
  --shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.top-app-bar {
  background-color: var(--lightBlue);
  color: var(--darkBlue);
  padding: 4px 200px 4px 160px;
}

.bottom-app-bar {
  background-color: var(--darkBlue);
  color: var(--white);
  padding: 4px 200px 4px 160px;
}

header ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
}

header li {
  padding: 8px 16px;
  cursor: pointer;
}

.mobile-app-bar {
  display: none;
  background-color: var(--darkBlue);
  color: var(--darkBlue);
  padding: 4px 20px;
  justify-content: space-between;
  align-items: center;
}

.mobile-logo {
  height: 40px;
  margin: 20px 0;
}

.mobile-menu {
  height: 20px;
  cursor: pointer;
}

.logos {
  position: absolute;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: start;
  pointer-events: none;
}

.logos img {
  z-index: 10;
}

.carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mask {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.5) 12%,
    rgb(255, 255, 255, 0) 75%
  );
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 99%;
}

.carousel .overlay {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel .dashes {
  display: flex;
  gap: 10px;
  margin: 10px 0 30px 0;
}

.carousel .dash {
  background-color: var(--white);
  border: none;
  width: 30px;
  height: 4px;
  border-radius: 1px;
  cursor: pointer;
  opacity: 0.5;
}

.carousel .dash.active {
  opacity: 1;
}

.carousel h2 {
  color: var(--white);
  font-size: 36px;
  text-align: center;
  margin: 0;
}

.carousel button {
  background-color: var(--white);
  color: var(--black);
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin: 10px;
}

.carousel button:hover {
  background-color: var(--lightGrey);
}

.carousel img {
  min-height: 280px;
  width: 100%;
}

.main-container {
  padding: 20px 80px 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.menu {
  color: var(--darkBlue);
  display: flex;
  justify-content: center;
  font-size: 18px;
}

.menu ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.menu li {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 16px;
  padding: 15px 40px;
  background-color: var(--lightestBlue);
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.menu li.faculty {
  background-color: var(--brightGrey);
}

.menu img {
  height: 40px;
}

.news {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.news h2 {
  text-align: center;
  color: var(--darkBlue);
  font-size: 36px;
}

.news .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  gap: 20px;
}

.poster-container {
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.poster {
  width: 100%;
}

.poster-description {
  padding: 20px;
  text-align: center;
  color: var(--darkGrey);
  font-size: 18px;
}

.announcements {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.announcements li {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 400;
  color: #4b4a4a;
  width: 100%;
  cursor: pointer;
}

.announcements li .col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.announcements .date {
  align-self: flex-end;
}

.announcements img {
  margin-right: 10px;
  width: 24px;
  height: 24px;
}

.announcements .description {
  flex-grow: 1;
  margin: 0;
}

.announcements .date {
  margin: 0;
  color: var(--grey);
}

footer {
  background-color: var(--darkBlue);
  display: flex;
  justify-content: center;
  gap: 80px;
  align-items: center;
}

footer img {
  height: 160px;
  margin: 40px;
}

footer .col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--white);
}

footer h2 {
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .top-app-bar,
  .bottom-app-bar {
    padding: 4px 100px 4px 80px;
  }

  .main-container {
    padding: 20px 60px 40px 60px;
  }

  .menu ul {
    gap: 30px;
  }

  .menu li {
    padding: 15px 30px;
  }

  .carousel h2 {
    font-size: 32px;
  }

  .carousel button {
    padding: 12px 24px;
    font-size: 12px;
  }

  .carousel img {
    min-height: 240px;
  }

  .news h2 {
    font-size: 32px;
  }

  .poster-description {
    font-size: 16px;
  }

  .announcements li {
    padding: 8px;
  }

  footer img {
    height: 140px;
    margin: 40px;
  }

  footer h2 {
    font-size: 20px;
  }
}

@media screen and (max-width: 1024px) {
  .logos,
  .app-bar {
    display: none;
  }

  .mobile-app-bar {
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  .main-container {
    padding: 20px 40px;
  }

  .menu ul {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 80%;
  }

  .menu li {
    padding: 10px;
    font-size: 16px;
  }

  .menu img {
    height: 30px;
  }

  .news .row {
    grid-template-columns: 1fr;
  }

  .poster-description {
    font-size: 16px;
  }

  .announcements img {
    width: 20px;
    height: 20px;
  }

  footer {
    flex-direction: column;
    gap: 0;
  }

  footer img {
    height: 120px;
    margin: 40px 20px 20px 20px;
  }

  footer h2 {
    font-size: 18px;
    margin: 0 20px 40px 20px;
  }
}
