/**
 * Block Category - Tin tức mới nhất
 * UI giống web gốc borealisrecords.com
 */

/* Title box */
.block-category.news-block .title_box {
  position: relative;
}
.block-category.news-block .title_box h4 {
  font-weight: 700;
  font-size: 24px;
  font-size: 1.5rem;
  line-height: 36px;
  line-height: 2.25rem;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0;
  font-family: "Oswald", sans-serif;
}
.block-category.news-block .title_box strong {
  color: #009B3A;
}
@media only screen and (max-width: 991px) {
  .block-category.news-block .title_box h4 {
    font-size: 18px;
    font-size: 1.125rem;
    line-height: 26px;
  }
}

/* Row layout */
.block-category.news-block > .row {
  margin-right: -15px;
  margin-left: -15px;
}
.block-category.news-block > .row .row {
  margin: 0;
}

/* Post item - desktop: 3 columns */
.block-category.news-block .post-item {
  position: relative;
  width: 100%;
  padding: 0 15px 15px 15px;
}
@media (min-width: 992px) {
  .block-category.news-block .post-item {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
  }
}

/* Post thumbnail */
.block-category.news-block .post-item .post-thumbnail a {
  position: relative;
  display: block;
}
.block-category.news-block .post-item .post-thumbnail a:before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
}
.block-category.news-block .post-item img {
  height: 225px;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* Post title - desktop */
.block-category.news-block .post-item .post-title {
  background: linear-gradient(90deg, #1A1D23 0%, #141417 100%);
  min-height: 165px;
  padding: 30px 20px;
  position: relative;
}
.block-category.news-block .post-item .post-title:before {
  content: '';
  background: linear-gradient(90deg, #009B3A 0%, #009B3A 100%);
  height: 3px;
  width: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.block-category.news-block .post-item .post-title h3 {
  margin: 0;
}
.block-category.news-block .post-item .post-title h3 a {
  line-height: 30px;
  font-weight: 400;
  color: #F2F3F3;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.block-category.news-block .post-item .post-title h3 a:hover {
  color: #CB461B;
  text-decoration: underline;
}

/* Mobile: horizontal card layout */
@media screen and (max-width: 991px) {
  .block-category.news-block .post-item {
    margin-bottom: 15px;
    margin-bottom: 0.9375rem;
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 100%;
    max-width: 100%;
    background: linear-gradient(90deg, #1A1D23 0%, #141417 100%);
    padding: 0 !important;
  }
  .block-category.news-block .post-item .post-thumbnail {
    flex: 0 0 41.66667%;
    max-width: 41.66667%;
    position: relative;
  }
  .block-category.news-block .post-item .post-thumbnail img {
    height: 128px;
    border-radius: 2px;
  }
  .block-category.news-block .post-item .post-title {
    flex: 0 0 58.33333%;
    max-width: 58.33333%;
    min-height: inherit;
    padding: 15px;
  }
  .block-category.news-block .post-item .post-title:before {
    display: none;
  }
  .block-category.news-block .post-item .post-title h3 a {
    font-family: "Oswald", sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 15px;
    line-height: 25px;
    color: #F2F3F3;
  }
}
