
  .match__grid {
      display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;     
  }
   


.match-card {
  position: relative;
      background-color: var(--color-white);
      display: flex;
      border-radius: 8px;
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-between;
      width: 100%;
      height: 100%;
       background-image: url(/images/pictures/345323_GettyImages-2162021317_new_960x380_0.webp);
       background-position: top;
       background-size: cover;
       transition: all .3s ease;

}

.match-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffffde;
  backdrop-filter: grayscale(85%);
  border-radius: 6px;
}


.event__date {
  color: var(--color-dark);
}


.match-card__icon {
  font-size: 64px;
  color: var(--color-primary);
  opacity: 1;
  transition: color,scale .3s ease;
}
.match-card__image-link:hover .match-card__icon{
  color: var(--color-accent);
  scale: 1.05;
}


.match-card__content {
  flex-grow: 1;
  padding: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: stretch;
  position: relative;
  z-index: 2;
 
}
.match-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.match-card__details {
  color: var(--color-dark);
  font-weight: 600;
}



.match-card__teams {
  display: grid;
  grid-template-columns:1fr 3fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.match-card__team {
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  position: relative;
}
.event-winner {
  color: rgb(4, 146, 4);
  position: absolute;
  top: -8px;
  right: 0;
  font-size: 16px;
}
.match-card__team-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.match-card__team-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}
.match-card__team-tag {
  font-size: 20px;
  text-transform: capitalize;
  text-align: center;
  line-height: 1.2;
  transition: color .3s ease;
}

.match-card__team:hover .match-card__team-tag {
  color: var(--color-primary);
}
.match-card__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.match-card__text {
  font-size: 48px;
  color: var(--color-primary);
  font-weight: 700;
}
.match-card__bot {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.match-card__league {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-dark);
}



.match__pagination {
  position: relative;
  padding-top: 24px;
}
.swiper-pagination-bullet {
  background-color: var(--color-gray);
  border-radius: 0;
  width: 16px;
}
.swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}






@media (max-width: 768px) {
  .match-card__text {
    font-size: 32px;
  }
}

@media (max-width: 460px) {

  .match-card__bot {
    flex-direction: column;
  }
}