/* ------------------------------------------------------------ *\
  Card Flexible
\* ------------------------------------------------------------ */

*:has(>.card-flexible) {
  container-type: inline-size;
}

.card-flexible {
  padding: 20px 20px 24px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #F7F3F3;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .4s;
  /*margin-bottom: 2em;*/
}

.card-flexible:hover {
  box-shadow: 0px 10px 15px #ECE6E6;
}

.card-flexible a {
  color: #054c7d;
  text-decoration: none;
}

.card-flexible a:not(.link-underline):hover {
  background-size: 0;
}

.card-flexible .card__image {
  position: relative;
  aspect-ratio: 625/351;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
}

.card-flexible .card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.card-flexible .card__wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-flexible .card__type {
  display: grid;
  align-items: center;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
  color: #4EC9F5;
}

.card-flexible .card__type p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 0;
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.card-flexible .card__content {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.card-flexible .card__content h4,
.card-flexible .card__content span {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 0;
  font-weight: 700;
}

.card-flexible .card__content p {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.5;
}

.card-flexible .card__entry {
  margin-bottom: 18px;
  border-width: 1px 0;
}

.card-flexible .card__footer.show_border .card__entry {
  border-top:1px solid #F7F3F3;
  border-bottom:1px solid #F7F3F3;
}

.card-flexible .card__tags {
  padding: 13px 0;
  border-bottom: 2px solid #F7F3F3;
}

.card-flexible .card__info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0;
}

.card-flexible .card__info-author,
.card-flexible .card__info-date {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-flexible .card__info-author svg {
  width: 14px;
  height: 16px;
}

.card-flexible .card__info-date svg {
  width: 20px;
  height: 20px;
}

.card-flexible .card__info-author p,
.card-flexible .card__info-date p {
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
  margin-bottom: 0;
}

.card-flexible .card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.card-flexible .card__actions .button {
  padding: 14px 37px;
  color: #fff;
}

.card-flexible .card__link {
  font-size: 22px;
  color: #f26531;
}

@container (width > 640px) {

  .card-flexible {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 20px;
    border-radius: 0 8px 8px 0;
  }

  .card-flexible .card__image {
    margin-bottom: 10px;
  }

  .card-flexible .card__wrapper {
    padding-top: 4px;
  }

  .card-flexible .card__type {
    margin-bottom: 17px;
  }

  .card-flexible .card__content {
    margin-bottom: 8px;
  }

  .card-flexible .card__tags {
    padding: 9px 0;
  }

  .card-flexible .card__entry {
    margin-bottom: 10px;
  }

  .card__wrapper {
    height: 100%;
  }

}

/* ------------------------------------------------------------ *\
  List tags
\* ------------------------------------------------------------ */

.card-flexible .list-tags {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  margin: 0;
}

.card-flexible .list-tags span,
.card-flexible .list-tags a {
  text-decoration: none;
  display: inline-block;
  background: #51C9F5;
  border-radius: 16px;
  padding: 4.5px 10px 3.5px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
  text-transform: none;
  color: #fff;
}




/*

body.archive.category .post-container-target {
  justify-content: flex-start;
  gap: 20px;
}

body.archive.category .post-container-target .card-flexible {
  display: block;
  max-width: 31.5%;
}

@media (max-width:960px){
  body.archive.category .post-container-target .card-flexible {
    max-width: 48%;
  }
}

@media (max-width:650px){
  body.archive.category .post-container-target .card-flexible {
    max-width: 100%;
    width: 100%;
  }
}

.show-result-posts .post-container-target{
  display: grid;
  gap: 20px;
}

*/



.product-cell {
  background: none;
}


/* wide card layout adjustments  */

@container (min-width: 640px){
  .card__footer {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
  }
  .card__footer.show_border{
    border-top: 1px solid #F7F3F3;
  }
  .card__footer .card__entry {
    display: flex;
    flex-direction: row-reverse;
    margin-bottom: 0;
  }
  .card-flexible .card__footer.show_border .card__entry {
    border: none;
  }
  .card__footer .card__entry .card__info {
    margin-right: 2em;
    padding: 0;
  }
  .card__footer .card__entry .card__tags {
    padding: 0;
    border: none;
  }
  .card__footer .card__actions {
    min-width: 120px;
    margin-left: .5em;
  }

}




/* Card feature image hover coloring effects */
.card-flexible .card__image img {
  transition: filter 0.3s ease-out,
              opacity 0.3s ease-out,
              mix-blend-mode 0.3s ease-out;
}

.card-flexible .card__image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: transparent;
  mix-blend-mode: multiply;
  z-index: 1;

  transition: background-color 0.3s ease-out;
}

.card-flexible:hover .card__image {
  background-color: #054c7d;
}

.card-flexible:hover .card__image img {
  filter: grayscale(100%) contrast(1) blur(0px);
  flex: 1 0 100%;
  height: 100%;
  max-width: 100%;
  mix-blend-mode: screen;
  object-fit: cover;
  opacity: 1;
  position: relative;
  width: 100%;
}

.card-flexible:hover .card__image::before {
  background-color: #4ec9f5;
}

/* move card shadow to .cell */
.post-container-target > .cell:hover > .card-flexible {
  box-shadow: none !important;
}
.post-container-target > .cell:hover {
  box-shadow: 0px 10px 15px #ECE6E6;
}



.post-container-target:not(.grid-x) .cell {
  border-left: 10px solid #4EC9F5;
}
.show-result-posts .grid-container {
  max-width: 999px;
  margin: 0 auto;
}