@import "src/assets/scss/variables";

.news-article {
  display: flex;
  // align-items: center;
  transition: 0.4s;
  background-color: $grayish-box-background;
  padding: 0.5rem;
  gap: 2.5rem;
  margin-bottom: 5rem;

  .news-inner-container {
		flex-grow: 1;
		width: 100%;
    padding-bottom: 2.8rem;
    @media (max-width: 1200px) {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    @media (max-width: 565px) {
      align-items: start;
    }
	}

  .news-img {
    max-width: 565px;
		max-height: 250px;
		@media (max-width: 1200px) {
		  max-width: unset;
		  min-height: unset;
		  width: 100%;
		}
  }

  .news-title {
    font-size: 25px;
    color: $title-color;
    letter-spacing: 0.5px;
    white-space: pre-line;
    //margin-bottom: 0.9rem;
    margin-top: 3.5rem;


    @media (max-width: 992px) {
			text-align: center;
		}
    @media (max-width: 950px) {
      margin-top: 0rem;
    }
		@media (max-width: 565px) {
			text-align: left;

		}
  }

  .news-subtitle {
    font-size: 16px;
    font-weight: bold;
    color: $title-color;
    letter-spacing: 0.6px;
    //margin-bottom: 2.5rem;
    @media (max-width: 992px) {
			text-align: center;
		}
		@media (max-width: 565px) {
			text-align: left;
		}
  }

  .news-content {
    font-size: 14px;
    font-weight: lighter;
    color: $title-color;
    letter-spacing: 0;
    line-height: 2.6rem;
    //margin-bottom: 4.3rem;
    @media (max-width: 992px) {
			text-align: center;
		}
		@media (max-width: 565px) {
			text-align: left;
		  }
  }

  .news-btn {
    font-size: 1.3rem;
    background-color: $main-color;
    color: $white;
    letter-spacing: 0;
    max-height: 100%;
    padding: 1.2rem 2.9rem;
    border-radius: 10px;
    transition: 0.5s;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;

    &:hover {
      background-color: #1a73e8;
    }
  }

  @media (max-width: 1200px) {
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
  }

  @media (max-width: 565px) {
    flex-direction: column;
    justify-content:flex-start;
    padding: 3rem 1.5rem;
  }
}
