@import url("./index.css");

.article {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-bg{
  background-color: var(--quaternary-color);
  height: 299px;
}

.article-container {
  background-color: var(--secondary-color);
  width: 100%;
  min-height: 400px;
  padding-top: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.article-container-img {
  width: 776px;
  height: 412px;
  border: solid 4px var(--primary-color);
  border-radius: 32px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;


  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 200px;
}

.article-content {
  display: flex;
  flex-direction: column;
  padding: 30px;
  width: 776px;
}

.article-content-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--tertiary-color);
  font-family: var(--secondary-font);
}

.article-content-date {
  font-size: 14px;
  color: var(--tertiary-btn-color);
  margin: 16px 0 24px 0;
}

.article-content-paragraph {
  font-size: 18px;
  color: var(--quinternary-color);
  text-align: left;
  margin-bottom: 10px;
}

.latest-news-articles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  padding: 30px 20px;
}

.latest-news-article {
  width: 350px;
  margin-right: 24px;
  padding-top: 20px;
}



.latest-article {
  width: 350px;
}

.article-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  height: 40px;
}

.article-date {
  font-size: 14px;
  color: var(--tertiary-btn-color);
  margin: 16px 0 24px 0;
}

.article-paragraph {
  font-size: 18px;
  color: var(--quinternary-color);
  text-align: left;
  height: 110px;
}

.article-link {
  color: var(--tertiary-color);
  display: flex;
  justify-content: right;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 24px;
  cursor: pointer;
}


@media (min-width: 720px) and (max-width: 1439px) {
  .article-container-img {
    width: 662px;
    height: 357px;
  }
}

@media (min-width: 360px) and (max-width: 719px) {
  .article-container-img {
    width: 328px;
    height: 174px;
  }

  .article-content-title {
    font-size: 24px;
  }

  .article-content {
    width: 100%;
  }

  .latest-news-article {
    margin-right: 0;
  }

  .article-container {
    padding-top: 100px;
  }
}
