

.news-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  /* margin-top: 20px; */
  flex: 1;
}

.news-card {
  height: 300px;
  grid-column: span 1;
}


.news-cards .card-link {
  text-decoration: unset;
  color: inherit;
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  border-radius: var(--radius-3);
  overflow: hidden;
  background: white;
  width: 100%;
}

.news-cards .image-wrapper {
  position: absolute;
  inset: 0;
}

.news-cards .card-inner {
  z-index: 1;
  padding: 20px;
  transition: .4s;
}

.news-cards .read-more {
  background: var(--primary-color);
  z-index: 1;
  align-self: end;
  width: 50px;
  aspect-ratio: 1;
  color: white;
  border-radius: 50%;
  margin: auto 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.news-cards .read-more > span {transition: 0.8s ease-out}

.news-cards .image-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.section.section-news {
  padding: var(--padding-section) 0;
  background: rgba(17, 45, 85, 0.10);
}

.news-cards .card-date {
  color: var(--primary-color);
  background: hsla(from var(--primary-color) h 96% 61% / .11);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: var(--radius-2);
}

.news-cards .card-title {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 10px;
  color:black;
}

.news-cards .card-desc {
  color: var(--gray-dark);
  font-size: clamp(1.5rem, 3vw, 1.6rem);
}

.news-card.featured {grid-column: span 2;}

.news-cards .news-card.featured :is(.card-inner) {
  opacity: 0;
}

.news-cards .card-inner {
}

.news-cards .news-card:not(.featured) :is(.image-wrapper) {
  opacity: 0;
}

.news-cards .image-wrapper {
  transition: .4s;
}

.news-cards .news-card:not(.featured):hover :is(.image-wrapper, .read-more) {
  opacity: 1;
}

.news-cards .news-card:not(.featured):hover :is(.card-inner) {
  opacity: 0;
}

.news-cards .news-card.featured:hover :is(.image-wrapper) {
  opacity: 0;
}

.news-cards .news-card.featured:hover :is(.card-inner) {
  opacity: 1;
}

.news-cards .news-card:hover .read-more > span {
  transform: translateX(-6px);
}




/*new design*/

.news-timeline {overflow: hidden;display: flex;flex-direction: column;width: 300px;background: white;border-radius: var(--radius-3);overflow: hidden;position: relative;--offset: 20px;/* height: 400px; */flex-shrink: 0;}
.ticker-viewport {position: relative;will-change: transform; /* promotes to GPU layer *//* height: 400px; */z-index: 2;}
.ticker-viewport:after {content:"";position: absolute;inset-inline-start: calc(var(--offset) * 1 + 1px);width: 0.5px;background: rgba(189, 189, 189, 0.25);top: 0;bottom: 0;}
.ticker-viewport-wrapper {position:relative;height: 575px;}
.ticker-viewport-wrapper:before {content: "";position: absolute;top: 0;left: 0;right: 0;height: 70px;background: linear-gradient(180deg,  white , transparent);z-index: 10;}
.ticker-viewport-wrapper:after {content: "";position: absolute;bottom: 0;left: 0;right: 0;height: 70px;background: linear-gradient(0deg, white, transparent);z-index: 10;}
.news-timeline .list-news {list-style: none;display: flex;flex-direction: column;gap: 10px;padding: 20px;padding-inline-start: calc(var(--offset) * 2);z-index: 1;}
.news-timeline .news-timeline-title {padding: 10px;background: var(--primary-color);color: white;font-weight: 400;box-shadow: 0 7px 13.1px 0 rgba(0, 0, 0, 0.25);z-index: 13;}
.news-timeline .news-item-date {color: var(--primary-color);}
.news-timeline .news-item-desc {color: var(--gray-dark);font-size: clamp(1.2rem, 3.5vw, 1.4rem);}
.news-timeline .news-item:after {--size: 6px;content: "";position: absolute;inset-inline-start: calc(var(--offset) * -1  + 1px);transform: translateX(50%);top: 6px;background: #BDBDBD;width: var(--size);aspect-ratio: 1;border-radius: 50%;z-index: 3;}
.news-timeline .news-item {position: relative;}
.news-timeline .news-item.active::after {box-shadow: 0 0 0 2px white, 0 0 0 5px var(--primary-color);background: var(--primary-color);}

.ticker-news-wrapper {display: flex;align-items: start;gap: 20px;margin-top: 20px;}



@media (max-width: 1280px) {
  .ticker-news-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .news-timeline {
    width: auto;
  }
}

@media (max-width: 767px) {
  .ticker-viewport-wrapper {
    height: 300px;
  }
  .news-cards {
    grid-template-columns: 1fr;
  }
  .news-card {
    grid-column: auto;
  }
  .news-card:not(:first-child) {
    display:none;
  }
  .news-card.featured {
    grid-column: auto;
  }
}
