/* There will be two types of containers for the news frontpage. 
   
   TYPE 1: Featured Container.  This will have the most recent articles regardless of category.
   There will be a hero image, likely of a VA facility, for visual interest.  This image will be static
   and independent of articles displayed.  Each article will have DATE | CATEGORY | TITLE | SOURCE 
   
   TYPE 2: Category Container. This will have the most recent articles of a given category. Each 
   article in this container will have DATE | SOURCE | TITLE.
   Clicking on the Category Container header will take you to the category page to view all articles. */


/* -------------------- FEATURED --------------------*/
   .news__featured {
  margin-top: 4rem;
}

.container_md__news {
  width: var(--container-width-md);
  max-width: 700px;
  margin-inline: auto;
  /* background-color: var(--color-white-hover); */
}


.news__featured__container__wrapper {
  background-image: url(/images/50501_woodland.png);
  background-size: 75% 75%;
  background-repeat: round;
  /* border: 0.3rem solid var(--color-secondary); */
  overflow: hidden;
  padding: 1rem;
  border-radius: 0.5rem;
}

.news__featured__container {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto;
  gap: 3rem;
  background-color:rgba(233, 225, 216, 0.842);
  border-radius: 0.5rem;
  padding: 1rem;
}

.news__featured__image {
  border-radius: var(--card-border-radius-3) var(--card-border-radius-3);
  border: 0.2rem solid var(--color-secsondary);
  overflow: hidden;
  
}

.news__featured__content {
  display: flex;
  flex-direction: column;

}

/* -------------------- POST --------------------*/
.news__categories {
  margin-top: 3rem;
  margin-bottom: 3rem;
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news__post__container {
  display: flex;
  flex-direction: row;
  gap:1rem;
  margin-bottom:1rem;
  background-color: var(--color-white-hover);
  padding: 0.5rem;
  border-radius: 0 var(--card-border-radius-3) 0 var(--card-border-radius-3);
}

.news__post__date {
  height: 50px;
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border-top: 3px solid red;
  border-radius: 0 0 5px 5px;
  font-weight: 600;
  flex: none;
}

.news__post__date p {
  padding: 0;
  margin: -2px 0 0 0;
}

.news__post__content {
  border-top: 1px solid var(--color-grey-300);
  display: flex;
  flex-direction: column;
}

.news__post__content h4 {
  padding:0;
  margin:0;
}
/* -------------------- CATEGORY --------------------*/
.news__category__container {
  background-color: var(--color-white-hover);
  display: flex;
  flex-direction: column;
  width: 340px;
  /* max-width: 45%; */
  border-radius: 0.5rem;
}

.news__category__header {
  /* background-color: var(--color-primary); */
  color: var(--color-white);
  padding-left: 10px;
  border-bottom: 2px solid var(--color-grey-300);
}

.news__category__header h2 {
  font-size: 1.5rem;
}

.news__category__posts {
  padding: 10px;
  gap: 3rem;
}

.category__button {
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--card-border-radius-2);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
}

.category__button:hover {
  color: var(--color-white);
}

/* -------------------- POST ELEMENT --------------------*/
.news__element__category {
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--card-border-radius-2);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
}



.news__element__category:hover {
  color: var(--color-white);
}

.news__element__title h4 {
  font-size: 2rem;
}

.news__element__title {
  color: var(--color-grey-900);
  padding-top:7px;
}

.news__element__body {
  font-size: 1rem;
  color: var(--color-grey-900);
}

.news__element__source {
  font-size: 0.8rem;
  color: var(--color-grey-700);
  /* text-transform: uppercase; */
  font-style: italic;
}

/*----------------------media query ---------------------------*/
@media screen and (max-width: 600px) {
    .news__featured__container {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 3rem;
      background-color:rgba(233, 225, 216, 0.842);
      border-radius: 0.5rem;
      padding: 1rem;
    }
}
