#next-post-widget-container {
  font-family: 'Airal', 'Noto Sans HK';
}

#next-post > .title {
  padding-left: 8px;
  border-left: 2px solid #E50020;
  color:#101820;
  font-size: 20px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

#next-post-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #DEE2E6;
}

#next-post-card .post-title {
  padding: 8px 16px;
  padding-bottom: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 133%;
  letter-spacing: 0.02em;
  color: #101820;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#next-post-card .post-title:hover {
  color: #E50020;
}

#next-post-card .post-meta {
  padding: 8px 16px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  width: fit-content;
}

#next-post-card .post-meta .categories {
  color: #6C757D;
  list-style: none;
  padding-right: 8px;
  border-right: 1px solid #DEE2E6;
  line-height: 100%;
}

#next-post-card .post-meta > .categories > .category-item {
  padding-bottom: 0;
}

#next-post-card .post-meta > .categories > .category-item:last-child {
  padding-right: 0;
  margin-right: 0;
}

#next-post-card .post-meta > .publish-date {
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  color: #ADB5BD;
  padding-left: 8px;
}

.mobile-title {
  display: none;
}

.arrow-icon-container {
  display: none;
}

.next-post-ad-style {
  margin-bottom: 32px;
  margin-top: 0;
}

@media screen and (max-width: 991px) {
  .next-post-ad-style {
    margin-top: 32px;
    margin-bottom: 0;
  }

  /* must be visible for position sticky */
  .cscra-primary.blog-details-formatting {
    overflow: visible;
  }

  .cable-ad-container {
    order: 2;
  }

  .cscra-post-detail>.row {
    padding-bottom: 0;
  }
  
  #next-post-widget-container {
    display: flex;
    position: sticky;
    top: 0;
    height: fit-content;
    z-index: 10;
  }

  .cscra-secondary.details-page-secondary {
    padding: 0;
    margin: 0;
  }
  
  #next-post .title {
    display: none;
  }

  #next-post {
    position: sticky;
    top: 0
  }

  #next-post-card {
    width: 100vw;
    border-radius: 0;
    background-color: #E9ECEF;
    margin-left: -16px;
    display: flex;
    border: none;
  }

  #next-post-card > a {
    width: 30%;
    height: fit-content;
  } 

  #next-post-card > a > img {
    width: 100%;
    height: auto;
  }

  #next-post-card .post-title-container {
    padding: 4px 8px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #next-post-card a .mobile-title {
    display: block;
    font-weight: 400;
    font-size: 10px;
    line-height: 133%;
    color: #6C757D;
  }

  #next-post-card .post-title {
    padding: 0
  }

  #next-post-card .post-meta {
    display: none
  }

  .arrow-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    width: 10%;
  }

  .arrow-icon-container .icon {
    font-size: 16px;
    color: #6C757D;
  }

  #next-post-widget-container .cable-ad-container {
    margin-bottom: 0;
    margin-top: 32px;
  }
}
