/**
 * Featured news slider on front page.
 * Uses Swiper; enqueued only on front-page.php.
 */
/* Map template variable to theme */
.tc-featured-news-style8 {
  --color-main: var(--color-blue, #0087ea);
}

/* Image utilities for slider */
.tc-featured-news-style8 .img-cover {
  display: block;
  overflow: hidden;
}
.tc-featured-news-style8 .img-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tc-featured-news-style8 .th-400 {
  height: 400px !important;
}

/* ---------- tc-featured-news-style8 ------------ */
.tc-featured-news-style8 {
  background-color: #fff;
  padding: 30px;
  border-top: 5px solid var(--color-main);
}
.tc-featured-news-style8 .tc-featured-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  line-height: 1;
}
.tc-featured-news-style8 .tc-featured-title h5 {
  font-weight: bold;
}
.tc-featured-news-style8 .tc-featured-title small {
  text-transform: uppercase;
}
.tc-featured-news-style8 .tc-featured-news-slider8 {
  position: relative;
  padding-bottom: 60px;
}
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-container {
  position: relative;
  z-index: 20;
}
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-button-next,
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-button-prev {
  top: calc(50% - 40px);
  width: 60px;
  height: 60px;
  background-color: #fff;
  border-radius: 20px;
  transform: rotate(-45deg);
  z-index: 10;
}
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-button-next::after,
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-button-prev::after {
  font-size: 16px;
  transform: rotate(45deg);
}
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-button-next {
  right: -50px;
}
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-button-next::after {
  position: relative;
  right: -8px;
  top: 8px;
}
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-button-prev {
  left: -50px;
}
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-button-prev::after {
  position: relative;
  left: -8px;
  bottom: 8px;
}
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-pagination {
  text-align: center;
  width: 100%;
  bottom: 5px;
}
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-pagination .swiper-pagination-bullet {
  border-radius: 0;
  margin: 0 5px;
}
.tc-featured-news-style8 .tc-featured-news-slider8 .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--color-main);
}

@media (max-width: 991px) {
  .tc-featured-news-style8 .tc-featured-news-slider8 .swiper-button-next {
    right: 5px;
  }
  .tc-featured-news-style8 .tc-featured-news-slider8 .swiper-button-prev {
    left: 5px;
  }
}

/* ---------- tc-post-overlay-style8 ------------ */
.tc-post-overlay-style8 {
  position: relative;
}
.tc-post-overlay-style8 .item {
  position: relative;
}
.tc-post-overlay-style8 .item .img {
  position: relative;
}
.tc-post-overlay-style8 .item .img::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 1;
  pointer-events: none;
}
.tc-post-overlay-style8 .item .img .tags {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tc-post-overlay-style8 .item .img .tags a {
  position: relative;
  padding-left: 28px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
}
.tc-post-overlay-style8 .item .img .tags a::after {
  position: absolute;
  content: "";
  left: 0;
  top: 4px;
  width: 20px;
  height: 9px;
  background-color: #999;
}
.tc-post-overlay-style8 .item .img .tags a.orange::after {
  background-color: #ec3410;
}
.tc-post-overlay-style8 .item .img .tags a.yellow::after {
  background-color: #ff9813;
}
.tc-post-overlay-style8 .item .img .tags a.cyan::after {
  background-color: #72cbd6;
}
.tc-post-overlay-style8 .item .img .tags a.blue::after {
  background-color: #216ae2;
}
.tc-post-overlay-style8 .item .img .tags a.green::after {
  background-color: #10ec91;
}
.tc-post-overlay-style8 .item .img .tags a.purple::after {
  background-color: #7736d8;
}
.tc-post-overlay-style8 .item .content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 24px 30px 30px;
  box-sizing: border-box;
}
.tc-post-overlay-style8 .item .content h4.title {
  font-size: 26px;
  line-height: 32px;
  color: #fff;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
}
.tc-post-overlay-style8 .item .content h4.title a {
  color: inherit;
}
.tc-post-overlay-style8 .item .content .meta-bot {
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
  margin: 0;
  padding: 0;
}
.tc-post-overlay-style8 .item .content .meta-bot a {
  color: inherit;
}
