.upk-gratis-carousel-wrapper {
  overflow: hidden;
}
.upk-gratis-carousel-wrapper .swiper-carousel .upk-gratis-item .upk-title a:hover,
.upk-gratis-carousel-wrapper .swiper-carousel .upk-gratis-item .upk-gratis-category a:hover,
.upk-gratis-carousel-wrapper .swiper-carousel .upk-gratis-item .upk-gratis-author a:hover {
  color: #ed0c0c;
}

.upk-gratis-item {
  cursor: pointer;
}

.upk-gratis-img-wrap {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.upk-gratis-img-wrap::before, .upk-gratis-img-wrap::after,
.upk-gratis-img-wrap::before,
.upk-gratis-img-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.upk-gratis-img-wrap::before {
  background-color: #fff;
  transition: height 0.2s ease-in;
}

.upk-gratis-img-wrap::after {
  opacity: 0;
  transition: opacity 0.2s ease-in;
  background: linear-gradient(26deg, rgba(32, 34, 37, 0.81), transparent);
}

.swiper-slide-active .upk-gratis-img-wrap::before,
.upk-gratis-item:hover .upk-gratis-img-wrap::before {
  height: 0;
  transition-delay: 0.1s;
}

.swiper-slide-active .upk-gratis-img-wrap::after,
.upk-gratis-item:hover .upk-gratis-img-wrap::after {
  opacity: 1;
  transition-delay: 0.2s;
}

.upk-gratis-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.upk-gratis-content-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  padding: 40px;
  transform: translateY(-50%);
}

.upk-gratis-category,
.upk-gratis-carousel-wrapper .upk-title {
  margin: 0 0 15px;
}

.upk-gratis-category a,
.upk-gratis-carousel-wrapper .upk-title a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.upk-gratis-category a,
.upk-gratis-meta {
  font-size: 14px;
  text-transform: uppercase;
  color: #434549;
  transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

.upk-gratis-carousel-wrapper .upk-title {
  font-size: 30px;
  font-weight: 700;
}
.upk-gratis-carousel-wrapper .upk-title a {
  color: #131314;
}

.upk-gratis-meta {
  gap: 10px;
}

.upk-gratis-meta,
.upk-gratis-author,
.upk-gratis-date,
.upk-gratis-link-button a {
  display: flex;
  align-items: center;
}

.upk-gratis-author,
.upk-gratis-date {
  gap: 5px;
}

.upk-gratis-author-name {
  text-decoration: none;
  color: #434549;
  transition: color 0.3s ease;
}

.upk-gratis-meta svg {
  width: 14px;
  height: 14px;
  display: block;
}

.upk-gratis-line {
  margin: 30px 0;
  width: 100%;
  height: 1.2px;
  background-color: #bebebe;
  transition: background-color 0.3s ease;
}

.swiper-carousel .upk-gratis-item .upk-gratis-link-button a {
  justify-content: space-between;
  background-color: #6f757f;
  padding: 14px;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.swiper-carousel .upk-gratis-item .upk-gratis-link-button a span,
.swiper-carousel .upk-gratis-item .upk-gratis-link-button a svg {
  z-index: 1;
}
.swiper-carousel .upk-gratis-item .upk-gratis-link-button a::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: #ed0c0c;
  transition: height 0.3s ease;
}
.swiper-carousel .upk-gratis-item .upk-gratis-link-button a:hover {
  color: #fff;
}
.swiper-carousel .upk-gratis-item .upk-gratis-link-button a:hover::before {
  height: 100%;
}

.swiper-slide-active .upk-gratis-category a,
.upk-gratis-item:hover .upk-gratis-category a,
.swiper-slide-active .upk-gratis-meta,
.upk-gratis-item:hover .upk-gratis-meta,
.swiper-slide-active .upk-gratis-author-name,
.upk-gratis-item:hover .upk-gratis-author-name {
  color: #e4e4e4;
}

.upk-gratis-carousel-wrapper .swiper-slide-active .upk-title a,
.upk-gratis-carousel-wrapper .upk-gratis-item:hover .upk-title a {
  color: #fff;
}

.swiper-carousel .swiper-slide-active .upk-gratis-link-button a,
.upk-gratis-item:hover .upk-gratis-link-button a {
  color: #434549;
  background-color: #fff;
  transition-delay: 0.1s;
}

.upk-item-match-height--yes .upk-gratis-carousel .swiper-slide {
  height: initial;
}

.upk-global-link-yes .upk-gratis-carousel .upk-gratis-item:hover {
  cursor: pointer;
}