.techsul-news-grid-widget {
  width: 100%;
}

.techsul-news-grid {
  --techsul-news-accent: #002e85;
  --techsul-news-text: #636363;
  --techsul-news-cta: rgba(240, 125, 0, 1);
  --techsul-news-radius: 18px;
  --techsul-news-card-height: 323px;
}

.techsul-news-grid__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: var(--techsul-news-radius);
}

.techsul-news-grid__card {
  min-width: 0;
  height: var(--techsul-news-card-height);
  display: flex;
  background: #fff;
}

.techsul-news-grid__card--reverse {
  flex-direction: row-reverse;
}

.techsul-news-grid__media,
.techsul-news-grid__content {
  width: 50%;
  min-width: 0;
}

.techsul-news-grid__media {
  display: block;
  overflow: hidden;
  background: #dfe6f2;
  position: relative;
  height: 100%;
}

.techsul-news-grid__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
}

.techsul-news-grid__image--placeholder {
  object-fit: cover;
}

.techsul-news-grid__content {
  background: #fff;
  padding: 36px 32px 24px 37px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.techsul-news-grid__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.techsul-news-grid__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 32px;
}

.techsul-news-grid__title a {
  color: var(--techsul-news-accent);
  text-decoration: none;
}

.techsul-news-grid__excerpt {
  margin: 0;
  color: var(--techsul-news-text);
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 25px;
}

.techsul-news-grid__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 106px;
  height: 38px;
  padding: 22px 30px;
  border-radius: 999px;
  background: var(--techsul-news-cta);
  color: #fff;
  box-shadow: 0 4px 19.5px rgba(0, 0, 0, 0.25);
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 37px;
  text-decoration: none;
}

.techsul-news-grid__button:hover{
color: #fff;
}


.techsul-news-grid__empty {
  padding: 24px;
  border-radius: var(--techsul-news-radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: "Roboto", sans-serif;
  text-align: center;
}

@media (max-width: 1024px) {
  .techsul-news-grid__content {
    padding: 24px 16px 22px;
  }

  .techsul-news-grid__title {
    font-size: 18px;
    line-height: 20px;
  }

  .techsul-news-grid__button {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .techsul-news-grid__items {
    grid-template-columns: 1fr;
    gap: 16px;
    border-radius: 0;
  }

  .techsul-news-grid__card,
  .techsul-news-grid__card--reverse {
    height: auto;
    flex-direction: row;
    border-radius: 18px;
    overflow: hidden;
  }

  .techsul-news-grid__media,
  .techsul-news-grid__content {
    width: auto;
  }

  .techsul-news-grid__media {
    width: 38%;
    min-height: 100%;
  }

  .techsul-news-grid__content {
    width: 62%;
    padding: 16px 14px 16px;
    gap: 14px;
  }

  .techsul-news-grid__copy {
    gap: 10px;
  }

  .techsul-news-grid__title {
    font-size: 20px;
    line-height: 22px;
  }

  .techsul-news-grid__excerpt {
    font-size: 15px;
    line-height: 20px;
  }

  .techsul-news-grid__button {
    min-width: 91px;
    height: 31px;
    padding: 10px 16px;
    font-size: 20px;
    line-height: 37px;
  }
}
