.hero {
  height: 396px;
  overflow: hidden;
  position: relative;
}

html body.custom-background {
  background-color: #f5f7fa;
}

.hero .hero__bg-overlay-radial img,
.hero .hero__bg-overlay-effect img {
  height: 100%;
}

.hero .hero__bg img {
  object-position: center 10%;
}

.hero .hero__bg {
  height: 100%;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
}

.hero .hero__bg-overlay-radial {
  height: 100%;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
}

.hero .hero__bg-overlay-effect {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  mix-blend-mode: multiply;
}

.hero .hero__inner {
  height: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.main .main__background {
  background-size: 90% auto;
  background-position: center;
  background-blend-mode: luminosity;
  padding: 40px 0px 60px;
}

.post-filter {
  padding: 40px 0px;
  /* margin: 0 15px; */
}

.post-filter .cate-header {
  font-size: 2.375rem;
  font-weight: 700;
  line-height: 2.813rem;
  letter-spacing: 3.4px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.post-filter form .filter__searchbar {
  width: 100%;
  position: relative;
}

.filter__searchbar .filter__searchbar-input {
  width: 100%;
  height: 56px;
  background-color: var(--color-white);
  color: var(--color-body);
  padding: 20px 6px;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0px 0px 0px 1px var(--color-grey);
  -webkit-box-shadow: inset 0px 0px 0px 1px var(--color-grey);
  -moz-box-shadow: inset 0px 0px 0px 1px var(--color-grey);
  margin-bottom: 12px;
}

.filter__searchbar .filter__searchbar-input:focus {
  outline: none;
  background-color: var(--color-white);
}

.filter__searchbar .filter__searchbar-clear {
  z-index: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-75%);
  right: 6px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  padding: 0px;
}

.filter__searchbar .filter__searchbar-clear img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.post-filter form .filter__searchbtn {
  padding: 8px 12px;
  width: 127px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.938rem;
  font-weight: 700;
  line-height: 1.125rem;
  border-left: 6px solid var(--color-primary);
  background: var(--color-highlight);
  border-radius: 0px;
}

.filter__searchbtn.btn-cta--highlight .btn-hover {
  background-color: var(--color-primary);
}

.post-filter form .filter__searchbtn:hover {
  border-left: 6px solid var(--color-highlight);
}

.post-filter form .filter__searchbtn .filter__searchbtn-icon {
  width: 18px;
  height: 18px;
}

.post-filter form .filter__searchbtn .filter__searchbtn-icon svg {
  width: 100%;
  height: 100%;
}

/* post grid */

.curriculum-tab__content .post-grid {
  margin: 0;
}

.post-grid {
  /* margin: 0 15px; */
}
.post-grid .post-grid__main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 20px;
  column-gap: 22px;
  margin-bottom: 30px;
}

.post-grid .post-grid__main .post__item__wrapper {
  display: block;
}

.post__item {
  background-color: var(--color-white);
  position: relative;
}

.post__item .post__item-tag {
  position: absolute;
  top: 12px;
  left: 0px;
  background-color: var(--color-primary);
  padding: 8px 16px;
  color: var(--color-white);
  font-size: 0.688rem;
  font-weight: 700;
  line-height: 0.688rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

.post__item .post__item-thumbnail {
  height: 100%;
  max-height: 208px;
  overflow: hidden;
}

.post__item .post__item-thumbnail img {
  /* height: 100%; */
  width: 400px;
  height: 300px;
  object-fit: cover;
}

.post__item .post__item-content {
  padding: 16px 20px 24px;
}

.post__item .post__item-content .post__content-date {
  color: var(--color-highlight);
  font-size: 0.813rem;
  font-weight: 700;
  line-height: 1rem;
  margin-bottom: 10px;
}

.post__item .post__item-content .post__content-title {
  color: var(--color-primary);
  font-size: 1.125rem !important;
  font-weight: 600;
  line-height: 1.563rem !important;
  max-height: 3.125rem;
  text-transform: uppercase;
  overflow: hidden;
  text-wrap: wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: 10px;
  min-height: 3.125rem;
}

.post__item .post__item-content .post__content-description {
  color: var(--color-article-body);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.75rem;
  text-wrap: wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  max-height: 7rem;
  margin-bottom: 24px;
  overflow: hidden;
  min-height: 7rem;
}

.post__item .post__item-content .post__item-cta {
  display: flex;
  align-items: center;
  justify-content: start;
  color: var(--color-highlight);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.125rem;
  width: fit-content;
  transition: all 0.2s linear;
  cursor: pointer;
}

.post__item:hover .post__item-content .post__item-cta {
  color: var(--color-primary);
}

.post__item .post__item-content .post__item-cta img,
.post__item .post__item-content .post__item-cta svg {
  margin-left: 12px;
  width: 14px;
  height: 18px;
  object-fit: contain;
  margin-top: 2px;
  transition: all 0.2s linear, filter 0s linear;
}

.post__item:hover .post__item-content .post__item-cta img,
.post__item:hover .post__item-content .post__item-cta svg {
  transform: translateX(8px);
  filter: brightness(0) saturate(100%) invert(10%) sepia(91%) saturate(3809%)
    hue-rotate(341deg) brightness(107%) contrast(97%);
}

/* post grid - pagination */
.post-grid .post-grid__pagination {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 0 auto;
}

.post-grid .post-grid__pagination li.page {
  cursor: pointer;
  width: 28px;
  height: 24px;
  border-radius: 2px;
  text-align: center;
  background-color: var(--color-highlight);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease-in-out;
  padding-bottom: 2px;
  padding-top: 4px;
}

.post-grid .post-grid__pagination li.page .page-numbers {
  color: #fff;
  line-height: 12px;
}

.post-grid .post-grid__pagination li.page svg {
  vertical-align: initial;
}

.post-grid
  .post-grid__pagination
  li.page:not(.page--current, .page--other):hover {
  background-color: var(--color-primary);
}

.post-grid .post-grid__pagination li.page.page--current {
  background-color: var(--color-primary);
}

.post-grid .post-grid__pagination li.page.page--other {
  cursor: text;
}

.post-grid .post-grid__pagination li img {
  width: auto;
  height: auto;
}

@media only screen and (max-width: 36em) {
  .hero {
    height: 113px;
  }

  .hero .hero__inner {
    margin-left: 38px;
  }

  .main .main__background {
    /* padding: 10px 35px 60px; */
    padding: 10px 20px 60px;
  }

  .main .main__background .other-cate {
    padding: 30px 0px;
  }

  /* post filter */
  .post-filter {
    padding: 30px 0px;
  }

  .post-filter .cate-header {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 2rem;
    letter-spacing: 3.4px;
    color: var(--color-primary);
    margin-bottom: 20px;
  }

  .filter__searchbar .filter__searchbar-input {
    padding: 16px 6px;
    height: 50px;
  }

  /* post grid */
  .post-grid .post-grid__main {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .post-grid__main .post__item:nth-child(n + 6) {
    display: none;
  }
}
