/* listing */
/* #region list */
.list-content .list__item {
  padding: 0;
}

.card {
  border: 0;
}
@media (min-width: 576px) {
  .card {
    margin: 1.5rem;
  }
}

.card a {
  text-decoration: none;
}

.card .card-img-wrapper,
.card .card-video-wrapper {
  position: relative;
  overflow: hidden;
}

.card .card-img-wrapper::after {
  padding-top: 56.25%; /* percentage of containing block _width_ */
  display: block;
  content: "";
}

@media (min-width: 576px) {
  .card .card-img-wrapper,
  .card .card-video-wrapper {
    box-shadow: rgb(100 100 111 / 20%) 1px 1px 7px 0px;
    border-radius: 6.48px;
  }
}

.card .card-img {
  bottom: 0;
  left: 0;
  object-fit: contain;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}
.card:hover .card-img {
  -ms-transform: scale(1.045);
  -webkit-transform: scale(1.045);
  opacity: 0.9;
  transform: scale(1.045);
  transition: all 0.15s ease-in;
}

.card .card-video__duration {
  background: rgba(17, 17, 17, 0.8);
  border-top-left-radius: 6.48px;
  bottom: 0;
  color: #fff;
  font-size: 1.4rem;
  right: 0;
  padding: 2px 6px;
  position: absolute;
  z-index: 3;
}

.card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.card .card-title {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
  padding: 0 0.5rem;
  margin: 0.5rem 0;
  height: 4rem;
}
.card .card-title h2 {
  color: var(--title-color);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2rem;
  margin-bottom: 0;
  margin-top: 0;
}

.card .card-text {
  display: flex;
  align-items: center;
  border-top: none;
  padding: 1rem 0.5rem;
}
.card .card-text__img {
  width: 28px !important;
  height: 28px;
  border-radius: 60%;
  position: relative;
}
.card .card-text__detail {
  padding: 5px;
  white-space: nowrap;
}
.card .card-text__detail > span:first-child {
  font-size: 1.4rem;
  font-weight: 500;
  color: #384047;
  margin-right: 5px;
}
.card .card-text__detail > span:last-child {
  color: var(--subtle-color);
  font-weight: 400;
  font-size: 1.2rem;
}

#loadmoreajaxloader {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 125px;
}
#loadmoreajaxloader > img {
  margin: 0 auto;
}
/* #endregion */

/* #region feature section */
#feature .list-content {
  margin: 0;
}

#feature .list__item:not(:first-child) {
  display: none;
}

/* hero picture */
@media (max-width: 575px) {
  #feature .card .card-img {
    position: relative; /* reset to fit content */
  }

  #feature .card .card-img-wrapper::after {
    padding-top: initial; /* reset to fit content */
  }

  #feature .card .card-img-wrapper a:after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 30%;
    width: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.01) 1%,
      rgba(0, 0, 0, 0.65) 82%
    );
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 );
  }

  #feature .card .card-img {
    aspect-ratio: auto;
    display: none;
  }

  #feature .card .card-img.card-img__mobile {
    display: block;
  }

  #feature .card .card-body {
    position: absolute;
    bottom: 7%;
    gap: 1rem;
  }
  #feature .card .card-title {
    height: auto;
    -webkit-line-clamp: 3;
  }
  #feature .card .card-title h2 {
    color: white;
    font-size: 2.5rem;
    line-height: 3rem;
  }
  #feature .card .card-text__detail > span:first-child {
    color: white;
  }
}

@media (min-width: 576px) {
  #feature .card .card-img {
    top: 50%;
    transform: translateY(-50%);
  }

  #feature .card .card-img.card-img__mobile {
    display: none;
  }

  #feature .card:hover .card-img {
    transform: translateY(-50%) scale(1.045); /* multiple transform to keep enlarge effect */
  }
}

/* responsive of number of feature items  */
@media (min-width: 768px) {
  /* show first two */
  #feature .list__item:nth-of-type(-n + 2) {
    display: block;
  }
}

@media (min-width: 992px) {
  /* show first two */
  #feature .list__item:nth-of-type(-n + 3) {
    display: block;
  }
}

@media (min-width: 1200px) {
  #feature .col-lg-3 {
    width: 33.33333333%;
  }
}
/* #endregion */

/* #region video section */
@media (min-width: 576px) {
  #video .list-content {
    margin: 0 2rem;
  }
}
/* #endregion */

/* #region series section */
#series .list-content {
  padding: 0 2rem 2rem;
}

#series .list-content:before {
  transition: opacity 0.25s ease-in-out;
  z-index: 1;
  position: absolute;
  content: "";
  width: 30px;
  height: 100%;
  top: 0;
  left: 15px;
  background: linear-gradient(
    to right,
    #fff 0%,
    #fff 20%,
    rgba(255, 255, 255, 0.05) 96%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=1 );
}

#series .list-content:after {
  position: absolute;
  content: "";
  width: 30px;
  height: 100%;
  top: 0;
  right: 15px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 1%,
    #fff 79%,
    #fff 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 );
}

#series .item {
  width: 148px;
}

#series .item__image {
  box-shadow: rgb(100 100 111 / 20%) 1px 1px 7px 0px;
  border-radius: 6.48px;
}

#series .item__text {
  font-size: 1.6rem;
  color: var(--title-color);
  font-weight: 500;
}

#series .owl-nav .owl-prev,
#series .owl-nav .owl-next {
  display: none;
}
@media (min-width: 576px) {
  #series .owl-nav .owl-prev,
  #series .owl-nav .owl-next {
    display: block;
  }
}

#series .owl-nav .owl-next {
  right: 35px;
}

#series .section__skeleton {
  padding: 0 2rem 2rem;
}
#series .section__skeleton .item {
  margin-right: 25px;
  align-items: flex-start;
}
#series .section__skeleton .item .img {
  box-shadow: rgba(100, 100, 111, 0.2) 1px 1px 7px 0px;
  border-radius: 6.48px;
  width: 148px;
  height: 148px;
  z-index: 1;
  background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 80%
    ),
    lightgray;
  background-repeat: repeat-y;
  background-size: 50px 200px;
  background-position: 0 0;
  animation: shine 1s infinite;
}
#series .section__skeleton .item .title {
  margin-top: 5px;
  border-radius: 2px;
  width: 70%;
  height: 16px;
  background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 80%
    ),
    lightgray;
  background-repeat: repeat-y;
  background-size: 50px 200px;
  background-position: 0 0;
  animation: shine 1s infinite;
}
/* #endregion */

/* #region overview-article */
#overview-article .page-left {
  float: left;
  width: 100%;
}
#overview-article .page-right {
  float: left;
  width: 100%;
  padding-left: 0;
  display: none;
}
@media (min-width: 992px) {
  #overview-article .page-left {
    width: calc(100% - 315px);
  }
  #overview-article .page-right {
    width: 315px;
    padding-left: 15px;
    display: block;
  }
}

@media (min-width: 992px) {
  #overview-article .col-lg-3 {
    width: 33.33333333%;
    max-width: 33.33333333%;
    flex: 0 0 33.33333333%;
  }
}

#overview-article .foot {
  margin: 0 -15px;
}
/* #endregion */

/* #region article section */
#article .list-content {
  margin: 0;
}

@media (min-width: 576px) {
  #article .card {
    border: 0.5px solid var(--subtle-color);
    border-radius: 6.48px;
  }
}

/* feature items shown in feature section */
@media (min-width: 768px) {
  /* hide first one */
  #article .list__item.list__feature-item:nth-of-type(-n + 1) {
    display: none;
  }
}

@media (min-width: 992px) {
  /* hide first two */
  #article .list__item.list__feature-item:nth-of-type(-n + 2) {
    display: none;
  }
}
/* #endregion */
