/* ------------------------------------------------------------------------- */
/*  1. NEWS
    2. LAYOUTS
    3. SUBPAGES
    4. MEDIA QUERIES
/* ------------------------------------------------------------------------- */

:root {
  --news-mtop: 7rem;
  --news-mbottom: 10rem;
  --news-item-mb: 2rem;
  --news-border-radius: 2rem;
  --news-margin-default: 3rem;
  --news-modul-mt: 2rem;

  --news-fs-cat: 1.2rem;
  --news-fs-h1: 4rem;
}
@media (max-width: 592px) {
  :root {
    --news-mbottom: 0rem;
  }
}


/* ------------------------------------------------------------------------- */
/*  NEWS
/* ------------------------------------------------------------------------- */
#news {
  padding-top: var(--news-mtop);
}
#news .btn.btn-primary {
  margin: var(--news-margin-default) auto var(--news-margin-default) auto;
  text-align: center;
  display: block;
  border: 2px solid var(--white);
  background: var(--main-color);
}
#news .btn.btn-primary:hover {
  border: 2px solid var(--main-color);
  background: var(--white);
}
#news .news-list-view {
  display: flex;
  gap: 20px;
}
/* .layout-2 .subpage-layout:first-child {
  padding: 2rem 0;
} */
#content-subpages .subpage-layout {
  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 16px;
  padding: 1rem 0;
}

#content-subpages  .news-list-item {
  display: flex;
  gap: 4%;
}
#content-subpages .news-list-item h3 a {
  color: var(--main-color);
  font-size: 2.8rem;
}
#content-pages .news-list-item { display: flex; gap: 30px;}

.homepage-layout {
    margin-top: var(--news-mtop);
}
.homepage-layout time {
  font-size: var(--news-fs-cat);
  color: var(--color-main);
}
.homepage-layout h3 {
  min-height: 68px;
  color: var(--color-dark);
}
.homepage-layout h3 a {
    min-height: 68px;
    color: var(--color-dark);
}

.homepage-layout .btn.btn-read-more {
  border: 2px solid;
  color: var(--color-main);
  border-radius: 1rem;
  padding: var(--padding-button);
  max-width: fit-content;
  overflow: hidden;
  background: var(--white);
  margin-top: 2rem;
  transition: all .5s ease-in-out;
}

.homepage-layout .btn.btn-read-more:hover {
  background: var(--main-color);
  color: var(--white);
  transition: all .5s ease-in-out;
  text-decoration: none;
  border: 2px solid var(--main-color);
}

.homepage-layout .news-list-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.homepage-layout .news-list-item .img-fluid {
    max-width: 100%;
    border-radius: var(--news-border-radius);
    object-fit: cover;
    margin-bottom: var(--news-item-mb);
    aspect-ratio: 4 / 2;
    transform: scale(1);
    transition: all 0.4s ease-in-out;
  }


#subpage-with-news { padding-top: 7rem;}
#subpage-with-news .news.news-single h2::after { content: none;}
#subpage-with-news .frame-default { padding-bottom: 2rem;}
#subpage-with-news .image-element {
  padding-bottom: 2rem;
}
#subpage-with-news .image-element img { border-radius: 1rem; }
/* ------------------------------------------------------------------------- */
/*  NEWS - SUBPAGE
/* ------------------------------------------------------------------------- */
.subpage-layout__image {
  width: 500px;
  height: 334px;
  max-height: 350px;
  object-fit: cover;
}

.subpage-layout .news-list-item .img-fluid {
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  object-fit: cover;
}
.subpage-layout__text {
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.subpage-layout__text h3 {
  font-size: 3.5rem;
  line-height: 1;
}

.subpage-layout__infos {
  display: flex;
  justify-content: space-between;
}

.subpage-layout__meta {
  display: flex;
  gap: 20px;
  align-content: center;
  align-items: center;
}

.subpage-layout__meta span,
.subpage-layout__meta time {
  border: 1px solid black;
  padding: 6px 14px;
  border-radius: 2rem;
}


/* ------------------------------------------------------------------------- */
/*  NEWS - FILTER
/* ------------------------------------------------------------------------- */
.news .news-filter { margin-top: var(--news-modul-mt); }
.news .news-list-view.layout-2 { margin-top: 5rem; }

.news-backlink-wrap {
  margin-top: 3rem;
  display: inline-block;
  background: var(--main-color);
  padding: 0.7rem 0.9rem;
  border-radius: 2rem;
}
.news-backlink-wrap a { color: var(--white); }
.news-filter {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
}
.news-filter p {
  font-size: 4rem;
  transform: translateY(0px);
  transition: all 0.5s ease-in-out;
}
.news-filter span {
  font-size: 1.5rem;
  transition: all 0.5s ease-in-out;
}
.news-filter p:hover {
  color: var(--main-color);
  transform: translateY(-20px);
  transition: all 0.5s ease-in-out;
}
.news-list-item .btn-read-more { padding: 0; text-decoration:  underline;}
.list-group-item:hover .news-list-item .btn-read-more {
  font-weight: bold;
}
.list-group-item .news-list-item .img-fluid {
  transform: scale(1);
  transition: all 0.4s ease-in-out;
}
.list-group-item:hover .news-list-item .img-fluid {
  transform: scale(1.03);
  transition: all 0.4s ease-in-out;
}

/* ------------------------------------------------------------------------- */
/*  NEWS - OVERVIEW
/* ------------------------------------------------------------------------- */
#content-subpages .news.news-single {
  margin-top: 0;
}
#content-subpages .news.news-single h2,
#content-subpages .news.news-single h3 {
  margin: 3rem 0px;
}
#content-subpages .news.news-single strong {
  color: var(--main-color);
}
.news.news-single .meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.news.news-single .category {
  font-size: var(--news-fs-cat);
  padding: 0.4rem 1.1rem;
  border: 1px solid black;
  border-radius: 2rem;
}
.news.news-single .date {
  font-size: var(--news-fs-cat);
}
.news.news-single .header {
  margin-top: 3rem;
}
.news.news-single .header h1 {
  font-size: var(--news-fs-h1);
  font-weight: 500;
  font-family: var(--font-radio);
}
.news.news-single .image-embed-item {
  width: 100%;
  height: auto;
  border-radius: 2rem;
  margin: 5rem 0;
}

.news .frame-type-header h2 {
  width: initial;
}

/* ------------------------------------------------------------------------- */
/*  NEWS - MEDIA QUERIES
/* ------------------------------------------------------------------------- */
@media (min-width: 2560px) {
  .news-list-item .img-fluid {
    height: 450px;
    max-height: 450px;
  }
  .news-list-item .btn-read-more { font-size: 1.6rem; }
}

@media(min-width: 2000px) {
  .homepage-layout h3 {
    font-size: 2rem;
  }
  .homepage-layout time {
    font-size: 1.4em;
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  .news-list-item .img-fluid {
    height: 200px;
    max-height: 200px;
  }
  .news-filter p { font-size: 2rem; }
  .subpage-layout__text h3 { font-size: 1.5rem; }
  .homepage-layout h3 a {
    font-size: 1.2rem;
    line-height: 0.8;
  }
  .subpage-layout__image {
    width: 100%;
    height: 100%;
  }
  /* #news .layout-2 .subpage-layout { padding: 2rem 0; } */
  .subpage-layout__infos { margin-top: 1.2rem; }
  .news .news-filter { margin-top: 0rem; }
}

@media(width: 768px) {
  .homepage-layout { margin-top: 3em;}
  .homepage-layout .btn.btn-read-more { margin-top: 0;}
  #news .news-list-view {
    display: flex;
    flex-direction: column;
  }
}


@media (min-width: 592px) and (max-width: 767px) {
  #news .news-list-view { flex-direction: column; }
  .subpage-layout__text h3 { font-size: 1.6rem; }
  .subpage-layout__image {
    width: 100%;
    height: 100%;
  }
  .news-filter p { font-size: 2rem; }
}
@media (max-width: 592px) {
  .news-list-view { flex-direction: column; }
  #content-subpages .news-list-item {
    display: flex;
    flex-direction: column;
  }
  .news { margin-top: 0rem; }
  .news .news-filter { display: none; }
  .news-list-item { width: 100%; }
  .subpage-layout__image { width: 100%; }
  .subpage-layout__infos { margin-top: 1rem; }
  #content-subpages .subpage-layout { padding: 2rem 0; }
  #content-subpages .news-list-item a,
  #content-subpages .news-list-item h2 { font-size: 1.3rem; }
  .list-group-item {
    margin-bottom: 0rem;
    margin-top: 3rem;
  }
  .subpage-layout__text {
    padding: 1em 0;
  }
  .subpage-layout__text h3 { 
    font-size: initial;
    line-height: 1.5;
  }
  .subpage-layout__infos {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }

  #content-subpages .news-list-item {
    display: flex;
    flex-direction: column;
  }
  #content-subpages .news-list-item h3 a {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  #content-subpages .subpage-layout__infos {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
    }
}

@media(max-width: 425px) {
  .subpage-layout__text {
    padding: 1em 0;
  }
  .subpage-layout__text h3 { 
    font-size: initial;
    line-height: 1.5;
  }
  .subpage-layout__infos {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }
  #content-subpages .news-list-item {
    display: flex;
    flex-direction: column;
  }
  #content-subpages .news-list-item a { text-align: right;}
}
