html {
  scroll-padding-top: 90px;
  /* height of sticky header */
}

html[lang="vi"] .general-title .right {
  font-family: "Montserrat";
  font-weight: 600;
}

/* banner */
.banner img {
  width: 100%;
  max-height: 570px;
  object-fit: cover;
}

.banner {
  display: none;
}

/* Breadcrumb */

.breadcrumb {
  margin-top: 50px;
}

.breadcrumb__wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.breadcrumb__wrapper .breadcrumb__item {
  background-color: #f8f9fb;
  border-radius: 10px;
}

.breadcrumb__wrapper .breadcrumb__item span a {
  display: block;
  color: #323539;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  padding: 4px 12px;
}

.breadcrumb__wrapper .breadcrumb__item:last-child span a {
  font-weight: 600;
}

.breadcrumb__wrapper .breadcrumb__item:hover span a {
  color: #574efa;
}

.breadcrumb__wrapper .chevron {
  border-right: 1.67px solid;
  border-bottom: 1.67px solid;
  height: 8px;
  width: 8px;
  transform: rotate(-45deg);
}

/* blog */
.blog {
  margin-top: 64px;
  &:not(:has(~ .latest)) {
    margin-bottom: 70px;
  }
}

.blog .container {
  display: flex;
}

.article__details,
.article__sidebar {
  min-width: 0;
}

/* img slide */
.img__content .content-item {
  opacity: 1;
  visibility: visible;
}

.slick-dots {
  bottom: 0;
}

.slick-dotted.slick-slider {
  margin-bottom: 17px;
}

.slick-dots li button:before {
  content: "";
  height: 10px;
  width: 10px;
  border-radius: 1px;
  border: 1.25px solid #e5e5e7;
  background: #f8f9fb;
}

.slick-dots li.slick-active button:before {
  background: #0a77ff;
}

/* latest */
.latest {
  margin-top: 60px;
}

.latest__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 75px;
  margin-top: 50px;
}

.latest__title {
  color: #323539;
  text-align: center;
  font-family: Poppins;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 0.32px;
  margin-bottom: 64px;
}

.latest__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 375px));
  row-gap: 50px;
  column-gap: 32px;
  margin-bottom: 74px;
}

.latest__grid:first-of-type {
  margin-bottom: 70px;
}

.latest__grid--item {
  height: 100%;
  max-height: 400px;
}

.latest__grid--item .thumbnail {
  width: 100%;
  /* height: 300px; */
  height: 215px;
  /* max-height: 199px; */
  border-radius: 6px;
  /* overflow: hidden; */
}

.latest__grid--item img {
  width: 100%;
  max-width: 383px;
  height: 100%;
  max-height: 285px;
  /* object-fit: cover; */
  object-fit: initial;
  border-radius: 6px;
  overflow: hidden;
}

.latest__grid--item .date {
  color: #0a77ff;
  font-family: inherit;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.1px;
  margin: 16px 0 8px;
}

.latest__grid--item .script {
  color: #323539;
  font-family: inherit;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.22px;
  margin-bottom: 16px;
  min-height: 90px;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.latest__grid--item .cta-link {
  justify-content: unset;
  align-items: unset;
}

.latest__grid--item .cta-link__text {
  margin-right: 6px;
  color: #0a77ff;
  font-family: inherit;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
}

.latest__grid--item .cta-link__dir {
  filter: none;
}

.latest__grid--item:hover .cta-link__dir {
  transform: rotate(0deg);
}

/* newsletter */
/* start select2 page override */
.select2-container--default .select2-search--dropdown .select2-search__field {
  font-weight: 600 !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  font-weight: 600;
  color: #323539;
}

.error {
  color: red;
  font-size: 14px;
  font-weight: normal;
  display: block;
  margin-top: 5px;
}

.error-message {
  color: red;
  font-size: 14px;
  font-weight: normal;
  margin-top: 5px;
}

/* end select2 page override */

@media screen and (max-width: 1199px) {
  .blog .article__details {
    padding-top: 24px;
  }

  /* latest blog post */
  .general-title .right {
    display: flex !important;
  }

  /* .latest__grid--item img {
    object-fit: cover;
  } */
}

@media screen and (max-width: 991px) {
  /* blog */
  .blog {
    margin: 0;
    &:not(:has(~ .latest)) {
      margin-bottom: 50px;
    }
  }

  .blog .container {
    padding: 0;
  }

  .banner__img--large {
    height: 292px;
    max-height: 292px;
  }

  .section-title {
    text-align: center;
    font-family: Renogare;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 44px;
    /* 137.5% */
    letter-spacing: -0.64px;
  }

  .featured__slider {
    max-height: unset;
  }

  .featured__slider .featured__item {
    flex-direction: column;
    border-radius: none;
    border: none;
  }

  .slick-dots {
    display: none !important;
  }

  .featured__item-title {
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    /* 140% */
    letter-spacing: -0.2px;
  }

  .featured__item-description {
    flex-grow: 1;
    margin: 24px 0;
  }

  .featured__slider {
    padding: 0 10px;
  }

  .articles__container {
    padding: 0 10px;
  }

  .latest__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest__grid--item img {
    width: 100%;
    max-width: unset;
  }
}

@media screen and (max-width: 767px) {
}

@media screen and (max-width: 576px) {
  .breadcrumb__wrapper .breadcrumb__item span a {
    font-size: 12px;
    line-height: 18px;
  }

  .banner {
    max-height: 293px;
  }

  .banner img {
    min-height: 293px;
    height: 100%;
  }

  .blog .article__details {
    padding-top: 36px;
  }

  /* article */
  .article__nav {
    display: none;
  }

  /*latest blog posts  */
  .latest .general-title .left > p {
    display: none;
  }

  .latest__content {
    margin-bottom: 30px;
    margin-top: 0;
  }

  .latest__title {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 36px;
  }

  .latest__grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    row-gap: 31px;
    margin-bottom: 20px;
  }

  .latest__grid--item img {
    max-width: 100%;
    /* max-height: 206px; */
    object-fit: cover;
  }

  .latest__grid--item .date {
    margin-top: 8px;
    margin-bottom: 0;
  }

  .latest__grid--item .script {
    margin-top: 8px;
  }

  .latest__grid:first-of-type {
    margin-bottom: 0;
  }

  .lastest__blog .owl-dots {
    text-align: center;
    margin-top: 36px;
  }

  .lastest__blog .owl-dots .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 6px;
    border: 1.25px solid #e5e5e7;
    background: #f8f9fb;
  }

  .lastest__blog .owl-dots .owl-dot:not(:last-child) span {
    margin-right: 12px;
  }

  .lastest__blog .owl-dots .owl-dot.active span {
    background: #0a77ff;
  }

  .select2-dropdown {
    top: -38px;
  }

  .select2-results__options li {
    padding: 16px 12px;
  }

  .latest {
    margin-top: 10px;
  }
}
