.ionx-news-loader {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background-color: transparent;
  position: relative;
}

.ionx-news-loader > div {
  background-color: var(--blue);
  width: 0%;
  height: 100%;
  border-radius: 3px;
  position: absolute;
  left: 0;
  right: auto;
  right: unset;
}

.ionx-news-loader.active > div {
  animation: loader 1s ease-in-out infinite;
}

@keyframes loader {
  0% {
    width: 0%;
    left: 0;
    right: auto;
    right: unset;
  }
  50% {
    width: 100%;
    left: 0;
    right: auto;
    right: unset;
  }
  50.000001% {
    width: 100%;
    right: 0;
    left: auto;
    left: unset;
  }
  100% {
    width: 0%;
    right: 0;
    left: auto;
    left: unset;
  }
}

.ionx-news-filters {
  display: flex;
  margin-bottom: 20px;
  gap: 10px 20px;
  flex-wrap: wrap;
}

.ionx-news-filters > span {
  display: block;
  color: var(--blue);
  font-style: italic;
  font-weight: 300;
  border: 1px solid var(--blue);
  background-color: transparent;
  border-radius: 9999px;
  padding: 6px 20px;
  font-size: 1rem;
  width: max-content;
  display: flex;
  align-items: center;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out,
    opacity 0.2s ease-in-out !important;
  cursor: pointer;
}

.ionx-news-filters > span:hover {
  background-color: var(--blue);
  color: var(--white);
}

.ionx-news-filters > span.active {
  background-color: var(--blue);
  color: var(--white);
  font-weight: 500;
  font-style: normal;
}

.ionx-news-inner,
.ionx-news-inner .block-editor-block-list__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 40px;
}

.wp-block-ionx-case-studies > .ionx-news-inner {
  display: block;
}

.ionx-news-inner .block-editor-block-list__layout > div {
  width: 100%;
}

@media screen and (max-width: 992px) {
  .ionx-news-inner {
    grid-template-columns: 1fr;
  }
  .ionx-news-inner,
  .ionx-news-inner .block-editor-block-list__layout {
    grid-gap: 20px;
  }
}

/** News block **/
.ionx-new {
  display: block;
  background-color: var(--dark);
  border: 2px solid var(--black);
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out !important;
  box-sizing: border-box;
}

.ionx-new-inner {
  background-color: var(--dark);
  border: 2px solid var(--dark);
  transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
  padding: 20px;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ionx-new-inner > p {
  flex: 1;
}

.ionx-new:not(.white-paper):hover {
  background-color: var(--black);
  border-color: var(--yellow);
}

.ionx-new:not(.white-paper):hover > .ionx-new-inner {
  transform: translate(-8px, -8px);
  border-color: var(--yellow);
}

.ionx-new img {
  display: block;
  width: 100%;
  height: 20vw;
  object-fit: cover;
}

.ionx-new-inner > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ionx-new-inner > span > span {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.ionx-new-inner > div {
  color: var(--white);
  font-family: "Exo 2", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 10px;
}

.ionx-new-inner > p {
  color: var(--white);
  margin: 10px 0 30px 0 !important;
}

/** NEWS PAGE **/
.ionx-new-page {
  width: calc(100vw - var(--screen-small-margin) * 2);
  margin-left: calc(var(--screen-small-margin) * -1);
  padding: 5vw var(--screen-small-margin);
  background-color: var(--black);
  position: relative;
}

.ionx-new-page.on-admin {
  padding-top: calc(5vw + 32px);
}

.ionx-new-content {
  display: flex;
  align-items: stretch;
  margin-bottom: 10vw;
}

.ionx-new-page > h2 {
  text-align: center;
}

.ionx-new-page > .ionx-news {
  margin-bottom: 5vw;
}

.ionx-new-left {
  flex-basis: 60%;
  padding-right: var(--screen-small-margin);
}

.ionx-new-left > .mobile-thumbnail {
  display: none;
}

.ionx-new-right {
  flex-basis: 40%;
  position: relative;
}

.ionx-new-right > img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.ionx-new-right > p {
  font-style: italic;
  text-align: right;
}

.ionx-new-left > a {
  font-size: 0.9rem;
}

.ionx-new-left > span {
  text-transform: uppercase;
  display: block;
  margin: 20px 0;
  font-size: 0.9rem;
}

.ionx-new-left > h2 {
  padding-right: 10vw;
}

.ionx-new-left > div p {
  max-width: 100% !important;
}

.ionx-new-left > div p:not(:first-child),
.ionx-new-left > div h3 {
  padding-left: var(--screen-small-margin);
}

.ionx-new-left > div p {
  margin-bottom: 20px;
}

.ionx-new-left > div .ionx-button > p {
  margin-bottom: 0;
  padding-left: 0;
}

.ionx-new-left > div .ionx-button.left {
  margin-left: var(--screen-small-margin);
}

.ionx-new-left > div h3 {
  margin-top: 80px;
  margin-bottom: 10px;
}

.ionx-news-bottom {
  margin: 0 var(--screen-small-margin);
}

.ionx-new-content figure {
  margin: 0;
}

.ionx-new-content figure iframe {
  width: 100%;
  height: 25vw;
}

@media screen and (max-width: 1500px) {
  .ionx-new-left > h2 {
    padding-right: 0;
  }
}

@media screen and (max-width: 1200px) {
  .ionx-new-left {
    padding-right: 0;
  }
  .ionx-new-left > div p:not(:first-child),
  .ionx-new-left > div h3 {
    padding-left: 0;
  }
  .ionx-new-left > div .ionx-button.left {
    margin-left: 0;
  }
  .ionx-new-content {
    display: block;
  }
  .ionx-new-left > .mobile-thumbnail {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 40vw;
    margin-bottom: 20px;
  }
  .ionx-new-right {
    display: none;
  }
  .ionx-new-left > h2 {
    padding-right: 0;
  }

  .ionx-new-content figure iframe {
    height: 40vw;
  }
}

@media screen and (max-width: 992px) {
  .ionx-new img {
    height: 40vw;
  }

  .ionx-news-bottom {
    margin: 0;
  }
}
