@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  font-family: "Montserrat";
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
}

img {
  width: 100%;
  height: auto;
}

header {
  padding: 1rem;
  background: #912020;
  grid-template-columns: 1fr auto;
  border-bottom: 2px solid #701212;
  align-content: center;
  justify-content: center;
  display: grid;
}

header img {
  height: 100%;
  width: 180px;
}

.mobile {
  display: none;
}

aside {
  opacity: 0;
  align-content: center;
  justify-content: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("images/ucu.jpg");
  transition: all 0.4s ease-out;
  transform: translateX(-240px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 2.4rem;
  display: grid;
}

aside img {
  height: auto;
  display: block;
  max-width: 1080px;
  animation: fadeInUp 1s ease-out;
  border-radius: 0.8rem;
  background: white;
  padding: 2rem;
  width: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.show {
  opacity: 1;
  transform: translateX(0px);
}

main {
  margin: auto;
  flex-direction: column;
  display: flex;
  padding: 2rem;
  gap: 2rem;
}

.divider {
  display: grid;
  color: #801515;
  text-align: center;
  justify-items: center;
  align-items: center;
  width: 100%;
}

.divider hr {
  width: 100%;
}

.divider hr:nth-child(1) {
  border-top-right-radius: 0.4rem;
  border-top-left-radius: 0.4rem;
}

.divider hr:nth-child(3) {
  border-bottom-right-radius: 0.4rem;
  border-bottom-left-radius: 0.4rem;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin: auto;
  width: 100%;
  gap: 2rem;
}

.row img {
  width: 100%;
  height: auto;
}

main img {
  transition: all 0.4s ease-out;
  opacity: 0;
  animation: fadeInScale 0.6s ease-out forwards;
}

main img:hover {
  transform: scale(1.02);
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

footer {
  width: 100%;
  animation: fadeInUp 1s ease-out;
  font-weight: normal;
  display: grid;
}

.first {
  padding: 2.4rem;
  background: #912020;
  border-top: 2px solid #701212;
  grid-template-columns: repeat(auto-fill, 300px);
  display: grid;
  gap: 2rem;
}

.first h4 {
  margin-top: 1rem;
  color: white;
}

.ucu {
  display: grid;
  gap: 1rem;
}

.ucu .logo {
  height: 100%;
  width: 200px;
}

.socials {
  align-items: center;
  display: flex;
  gap: 1.4rem;
}

.socials img {
  display: block;
  height: 24px;
  width: 24px;
}

.website,
.career,
.contact {
  display: flex;
  gap: 2rem;
  color: white;
  flex-direction: column;
}

.website a,
.career a,
.contact a {
  text-decoration: none;
  transition: all 0.3s ease-out;
  color: white;
}

.website a::before,
.career a::before {
  content: ">  ";
  color: gold;
}

.website a:hover,
.career a:hover {
  transform: translateX(0.4rem);
  transform: scale(1.05);
}

.contact img,
.website img,
.career img {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 0.4rem;
}

.contact {
  display: grid;
  gap: 1.4rem;
}

.contact section {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.bottom h3 {
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

.copyright {
  color: white;
  border-top: 1px solid #701212;
  background: #1a4282;
  text-align: center;
  padding: 1.2rem;
}

@media screen and (min-width: 300px) {
  aside {
    height: 80vh;
  }

  .desktop {
    display: none;
  }

  .mobile {
    display: grid;
    position: relative;
    align-items: center;
  }

  .mobile button {
    color: white;
    background: #1a4282;
    text-transform: uppercase;
    border: 1px solid white;
    padding: 0.2rem 0.6rem;
    border-radius: 0.4rem;
  }

  .mobile a {
    display: grid;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
  }

  .links {
    display: none;
    position: relative;
    border-bottom: 2px solid #701212;
    border-top: 2px groove #701212;
    background: #912020;
    padding: 1rem;
    gap: 0.4rem;
  }

  .links a {
    padding: 0.8rem;
    text-decoration: none;
    font-weight: bold;
    color: white;
  }

  .links a:hover {
    background-color: #a12929;
    box-shadow: inset 2px 0px 0px white;
  }

  .divider {
    gap: 1rem;
  }

  .divider hr {
    border: 2px solid #801515;
    height: 0.4rem;
  }

  .divider h3 {
    width: 100%;
    font-size: 1.8rem;
  }
}

@media screen and (min-width: 720px) {
  aside {
    height: 80vh;
  }

  .desktop {
    gap: 2rem;
    align-items: center;
    display: flex;
  }

  .desktop a {
    text-align: center;
    align-content: center;
    padding: 0.6rem 1.6rem;
    text-transform: uppercase;
    transition: all 0.3s ease-out;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    color: white;
    height: 100%;
  }

  .desktop a:hover {
    transform: scale(1.04);
  }

  .mobile,
  .links {
    display: none;
  }

  .divider hr {
    border: 2px solid #801515;
    height: 0.4rem;
  }

  .divider h3 {
    font-size: 2rem;
    border-bottom-left-radius: 0.8rem;
    border-top-right-radius: 0.8rem;
    padding: 0.4rem;
  }
}

/* Dropdown styles for desktop */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #1a4282;
  color: white;
  padding: 0.6rem 1.6rem;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 0.4rem;
  transition: all 0.3s ease-out;
}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 100px;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 0.4rem;
  overflow: hidden;
}

.dropdown-content a {
  color: black;
  padding: 14px 18px;
  text-decoration: none;
  display: block;
  text-align: center;
  font-size: 0.8rem;
}

.dropdown-content a:hover {
  color: #a12929;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #143670;
  transform: scale(1.04);
}

/* Dropdown styles for mobile */
.mobile-dropdown {
  width: 100%;
}

.dropdown-title {
  display: block;
  padding: 0.8rem;
  font-weight: bold;
  border-radius: 0.4rem;
}

.mobile-dropdown-content {
  display: none;
  background-color: #801515;
  margin-top: 1rem;
  border-radius: 0.4rem;
}

.mobile-dropdown-content a {
  text-align: center;
}

.mobile-themes-dropdown.active .mobile-dropdown-content {
  display: grid;
}

/* Initially hide all year-specific SDG sections except the default one */
.sdg-2023,
.sdg-2024 {
  display: none;
}

/* Style for active year in dropdown */
.dropdown-content a.active,
.mobile-dropdown-content a.active {
  background-color: #f1f1f1;
  font-weight: bold;
}

/* Additional CSS for themes dropdown */
.themes-dropdown {
  position: relative;
  display: inline-block;
}

.themes-dropdown .dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 100%;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
  top: 100%;
  left: 0;
}

.themes-dropdown .dropdown-content a {
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in;
  text-align: center;
  display: block;
}

.themes-dropdown .dropdown-content a:hover {
  color: #912020;
  background: #f1f1f1;
}

.themes-dropdown:hover .dropdown-content {
  display: block;
}

.themes-dropdown .dropbtn {
  background: inherit;
  border: none;
  color: #f9f9f9;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: none;
}

.content button {
  display: grid;
  transition: all 0.3s ease-in;
  box-shadow: 1px 2px 3px #24a359;
  background-color: #27ae60;
  border-radius: 0.6rem;
  color: #f9f9f9;
  border: none;
  padding: 0.4rem;
  width: 100%;
}

.content button:hover {
  transform: scale(1.02);
}
