@import url("./style.css");
@import url("./projects.css");
@import url("./about.css");
@import url("./divisions.css");

* {
  font-family: var(--font-inter);
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

#news {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
  max-width: 80rem;
  min-width: 280px;
}

#news #news_list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  min-width: 280px;
}

time {
  font-size: 1.2rem;
  display: flex;
  margin: 0;
  min-width: fit-content;
}

#news_pages {
  display: flex;
  width: auto;
  gap: 2rem;
  justify-content: center;
  flex-direction: row;
  margin-top: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.news_card {
  padding: 1rem;
  display: flex;
  width: 100%;
  max-width: 37rem;
  min-width: 18rem;
  position: relative;
  height: 12rem;
  min-height: 10rem;
  justify-content: center;
  text-align: right;
  flex-direction: column;
  align-items: flex-start;
  border: none;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
  gap: 1rem;
  background-color: var(--primary-color);
}

.news_card:hover {
  transform: scale(1.05);
}

.news_title {
  font-family: "Nunito Sans", sans-serif;
  text-transform: uppercase;
  width: 90%;
  font-weight: 700;
  align-self: flex-start;
  display: flex;
  text-align: left;
  font-size: 1.5rem;
  line-height: 1.3;
  min-width: 200px;
}

.news_info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: fit-content;
  height: auto;
  flex-wrap: wrap;
  min-width: 200px;
}

.news_card:hover>.news_description {
  opacity: 1;
}

.news_bg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  object-fit: cover;
}

.news_title,
.news_btn,
.news_description,
time {
  z-index: 16;
}

.news_description {
  color: white;
  align-self: flex-start;
  width: 90%;
  display: flex;
  text-align: left;
  opacity: 0;
  transition: all 0.2s ease-in-out;
  font-size: 1.2rem;
  line-height: 1.4;
  min-width: 200px;
}

.news_bg,
.news_gr {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.news_gr {
  transition: all 0.2s ease-in-out;
  background-image: linear-gradient(to top, var(--primary-color), var(--secondary-color));
  opacity: 0.6;
  border-radius: 0.938rem;
}

.news_btn {
  display: flex;
  text-decoration: none;
  padding: 1.25rem;
  text-transform: uppercase;
  border: 2px solid var(--white);
  width: 7.5rem;
  height: 2.5rem;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  font-size: 0.813rem;
  transition: all 0.2s ease-in-out;
  min-width: 120px;
}

.news_btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: 700;
  transform: scale(1.1);
}

.news_important {
  width: 100%;
  max-width: 85%;
  background-color: var(--primary-color);
  border-radius: 0.625rem;
  min-width: 280px;
}

.news_important .news_gr {
  display: none;
}

.news_important .news_bg {
  display: none;
}

@media (max-width: 1450px) {
  #news {
    max-width: 80%;
    width: 80%;
    margin-top: 0;
    justify-content: center;
    align-items: center;
  }

  .news_title {
    font-size: 1.4rem;
  }

  .news_description {
    font-size: 1.1rem;
  }

  time {
    font-size: 1.1rem;
  }

  .news_card {
    min-height: 16rem;
    justify-content: center;
    padding: 1rem;
    max-width: 45%;
    min-width: 250px;
  }

  #news_list {
    gap: 1.5rem;
    justify-content: center;
  }
}

@media (max-width: 1000px) {
  #news {
    max-width: 85%;
  }

  .news_title {
    font-size: 1.3rem;
  }

  .news_description {
    font-size: 1.1rem;
  }

  time {
    font-size: 1.1rem;
  }

  .news_card {
    width: 100%;
    max-width: 100%;
    min-width: 280px;
    padding: 1.5rem;
    height: 11rem;
    min-height: 11rem;
    gap: 1.5rem;
  }

  #news_list {
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
  }

  .news_info {
    gap: 1.5rem;
  }

  .news_btn {
    width: 7rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  #news {
    max-width: 85%;
    width: 90%;
  }

  .news_title {
    font-size: 1.2rem;
    width: 100%;
    min-width: 250px;
  }

  .news_description {
    font-size: 1rem;
    width: 100%;
    min-width: 250px;
  }

  time {
    font-size: 1rem;
  }

  .news_card {
    width: 100%;
    max-width: 100%;
    min-width: 250px;
    padding: 1.5rem;
    height: auto;
    min-height: 11rem;
    gap: 1rem;
  }

  #news_list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media only screen and (max-width: 480px) {
  #news {
    gap: 3rem;

    max-width: 90%;
    width: 90%;
  }

  .news_title {
    font-size: 1.1rem;
    width: 100%;
    min-width: 240px;
    line-height: 1.2;
  }

  .news_description {
    font-size: 0.9rem;
    width: 100%;
    min-width: 240px;
    line-height: 1.3;
  }

  time {
    font-size: 0.9rem;
  }

  .news_card {
    padding: 1rem;
    min-height: 11.25rem;
    max-width: 100%;
    width: 100%;
    gap: 0.75rem;
    min-width: 250px;
  }

  .news_card:nth-child(1),
  .news_card:nth-child(2) {
    width: 100%;
    max-width: 100%;
  }

  .news_btn {
    width: 6rem;
    height: 2.5rem;
    padding: 0.8rem;
    font-size: 0.7rem;
    border-radius: 10px;
    min-width: 100px;
  }

  .news_info {
    gap: 0.75rem;
  }

  .news_bg,
  .news_gr {
    border-radius: 0.5rem;
  }

  #news_list {
    gap: 1rem;
  }

  .news_important {
    width: 95%;
  }
}

@media (max-width: 320px) {
  #news #news_list {
    margin-inline: auto;
    min-width: 0;
  }

  .news_card {
    justify-content: center;
    align-items: flex-start;
  }

  .news_info {
    align-items: center;
    justify-content: flex-start;
  }

  section {
    max-width: 80% !important;
  }

  #divisions {
    width: 80% !important;
    max-width: 70% !important;
  }

  .division:nth-child(1) {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 300px;
  }

  .division {
    min-width: 200px;
    height: 10rem;
    width: 100%;
  }

  .division_title {
    font-size: 1.5rem;
  }

  .division_btn {
    height: 3rem;
    font-size: 0.6rem;
  }

  #news {
    max-width: 95%;
    width: 95%;
    margin-top: 2rem;
    gap: 2rem;
  }

  .news_title {
    font-size: 1rem;
    min-width: 220px;
  }

  .news_description {
    font-size: 0.8rem;
    min-width: 220px;
  }

  time {
    font-size: 0.8rem;
  }

  .news_card {
    padding: 0.8rem;
    min-width: 240px;
    gap: 0.5rem;
    min-height: 10rem;
  }

  .news_btn {
    min-width: 80px;
    font-size: 0.65rem;
    padding: 0.6rem;
    width: 5rem;
  }

  .news_info {
    gap: 0.5rem;
  }

  #news_list {
    gap: 0.8rem;
  }

  .news_important {
    width: 100%;
  }
}