.new-sticker {
  z-index: 1200;
  position: absolute;

  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sdg {
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;

  display: inline-block;
  margin: 0px 1px;
  padding: 2px 8px;
  text-align: flex-start;
  white-space: nowrap;
  vertical-align: baseline;
  position: relative;
  cursor: pointer;
}

.sdg::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%) translateX(100%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9;
}

.sdg::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: 120%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.83);
  /* border: 3px solid #fff; */
  box-shadow: 6px 5px 15px -4px rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 15px;
  font-family: "Oswald", sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.sdg:hover::after,
.sdg:hover::before {
  opacity: 1;
  visibility: visible;
}

.news-card {
  display: flex;
  flex-direction: column;

  margin: 20px;
}

.sdg-row {
  text-align: right;
}

.sdg-tag {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  color: white;
  border-radius: 3px;
  margin-right: 5px;
}

.news-body {
  display: flex;
  align-items: flex-start;

  gap: 1rem;
}

.news-image {
  width: 35%;
  border-radius: 20px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  magrin-top: 5px;
  position: relative;
  z-index: 0;
}

.news-image img {
  max-height: 100%;

  max-width: 100%;

  object-fit: contain;
  display: block;
  border-radius: inherit;

  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.news-image img:hover {
  transform: scale(1.01);
  filter: brightness(1.2);
  z-index: 2;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 16px;
}

.news-content h4 {
  font-family: Oswald, sans-serif;
  font-weight: bolder;
  font-size: 145%;
}

.news-title a {
  color: darkred;
}

.news-title a:hover {
  color: red;
  text-decoration: none;
}

.readmore,
.news-meta {
  font-family: Oswald, sans-serif;
  text-decoration: none;
  font-size: smaller;
  text-transform: uppercase;
  align-self: flex-end;
  padding: 4px;
  display: inline-block;
}

.readmore {
  /* pushes it to the right inside the column */
  margin-top: auto;
  padding: 10px;
  border: 1px solid red;
}

.readmore:hover {
  text-decoration: none;
  background-color: red;
  color: white;
}

@media (max-width: 768px) {
  .news-body {
    flex-direction: column;
    height: auto;
    padding-left: 0;
    gap: 0;
    overflow: auto;
    /* enable scroll if needed */
  }

  .news-image {
    width: 60%;
    margin: 1rem auto;
    /* center the image */
    justify-content: center;
  }

  .news-image img {
    width: 100%;
    height: auto;
    object-fit: contain;

    /* Remove animation */
    transition: none;
    transform: none !important;
    filter: none;
  }

  .news-content {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}
.fotorama {
  border-radius: 5px;
}
