/* import font Noto Sans */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* [070124TIN] Add search page style  */
h2.page-heading {
  color: black;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  margin: 30px 0 26px;
}

.search-result-grid {
  display: grid;
  gap: 30px;
}

/* [091124TIN] Add css for video grid */
.search-result-grid--blog,
.search-result-grid--short-video,
.search-result-grid--long-video,
.search-result-grid--event,
.search-result-grid--video {
  grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 786px) and (max-width: 1023px) {
  
	/* [121124TIN] Add css selector of video grid in search page (.search-result-grid--video) */
  .search-result-grid--blog,
  .search-result-grid--short-video,
  .search-result-grid--long-video,
  .search-result-grid--event,
  .search-result-grid--video {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 480px) and (max-width: 785px) {
  
	/* [121124TIN] Add css selector of video grid in search page (.search-result-grid--video) */
  .search-result-grid--blog,
  .search-result-grid--short-video,
  .search-result-grid--long-video,
  .search-result-grid--event,
  .search-result-grid--video {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {

	/* [121124TIN] Add css selector of video grid in search page (.search-result-grid--video) */
  .search-result-grid--blog,
  .search-result-grid--short-video,
  .search-result-grid--long-video,
  .search-result-grid--event,
  .search-result-grid--video {
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
  }
}

.event-card-3 {
  display: flex;
  gap: 14px;
  height: 100%;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  flex-direction: column;
}

@media (min-width: 480px) and (max-width: 785px) {
  .event-card-3 {
    padding: 0;
  }
}

@media (max-width: 479px) {
  .event-card-3 {
    padding: 0;
  }
}

.event-card-3__img {
  flex-basis: auto;
  display: block;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  transition: all 0.2s;
  max-width: 100%;
  width: 100%;
}

.event-card-3__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.event-card-3__date {
  border-radius: 28px;
  background: rgba(143, 103, 103, 0.8);
  padding: 4px 10px;
  box-sizing: border-box;
  width: fit-content;
  color: #FFF;
  font-size: 18px;
  font-weight: 700;
}

.event-card-3__title {
  color: #3D3D3D;
  font-family: "Noto Sans", sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 140%;
  text-transform: capitalize;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--Color, #3D3D3D);
}

.event-card-3__title::hover {
  text-decoration: underline;
}

@media (min-width: 786px) and (max-width: 1023px) {
  .event-card-3 {
    padding: 0;
  }
}

@media (min-width: 480px) and (max-width: 785px) {
  .event-card-3__title {
    font-size: 16px;
  }
}

@media (max-width: 479px) {
  .event-card-3__title {
    font-size: 16px;
  }
}

.event-card-3__excerpt {
  color: #3D3D3D;
  flex: 1;
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 480px) and (max-width: 785px) {
  .event-card-3__excerpt {
    min-height: auto;
  }
}

@media (max-width: 479px) {
  .event-card-3__excerpt {
    min-height: auto;
  }
}

.event-card-3__cta {
  border-radius: 8px;
  border: 1px solid #9C6E5E;
  color: #9C6E5E;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.8px;
  background-color: transparent;
  display: flex;
  padding: 12px 24px;
  box-sizing: border-box;
  width: fit-content;
  min-width: 163px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

/* [070124TIN] Add search page style - end */

/* // override woocommerce button in .event-card-3 */
.event-card-3__cta,
.event-card-3 .woocommerce a.button,
.event-card-3 .woocommerce a.button:hover {
  border-radius: 8px;
  border: 1px solid #9C6E5E;
  color: #9C6E5E;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.8px;
  background-color: transparent;
  display: flex;
  padding: 12px 24px;
  box-sizing: border-box;
  width: fit-content;
  min-width: 163px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

/* style for arrow icon in add to cart button in .event-card-3 */
.event-card-3 .woocommerce a.button::after {
  font-size: 26px;
  left: 78%;
}

/* style for loading spinner of add to cart button in .event-card-3 */
.event-card-3 .woocommerce a.button.loading::after {
  left: calc(100% - 12px);
  opacity: 1;
  color: #9C6E5E;
  width: fit-content;
}

/* style for view more link in .event-card-3 */
.added_to_cart.wc-forward {
  color: #9C6E5E;
  text-decoration: underline;
  font-size: 16px;

}

.view-more-link,
.view-more-link:hover {
  font-size: 16px;
  font-weight: 400;
  color: #9C6E5E;
  text-decoration: underline;
}

/* [121324TIN] Add css for view more button */
.view-more-button {
  color: #9C6E5E;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* [072324TIN] Add search mega style */
.mega-search {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 150px;
}

@media (min-width: 480px) and (max-width: 785px) {
  .mega-search {
    padding: 0;
  }
}

@media (max-width: 479px) {
  .mega-search {
    padding: 0;
  }
}

.mega-search__container {
  min-height: 250px;
  width: 100%;
  max-width: 800px;
  background-color: white;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 16px;
  box-shadow: 0px 4px 56px 0px rgba(171, 171, 171, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) and (max-width: 785px) {
  .mega-search__container {
    height: 100dvh;
    border-radius: 0;
    max-height: unset;
  }
}

@media (max-width: 479px) {
  .mega-search__container {
    height: 100dvh;
    border-radius: 0;
    max-height: unset;
  }
}

.mega-search__search-box {
  display: flex;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #9C6E5E;
  box-sizing: border-box;
  border-radius: 6px;
}

.mega-search__search-box__icon {
  width: 24px;
  height: auto;
  color: #9C6E5E;
}

.mega-search__search-box__control {
  outline: none;
  border: none !important;
  flex: 1;
  font-family: "Segoe UI";
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  color: #3D3D3D;
}

.mega-search__heading {
  color: #3D3D3D;
  font-family: "Segoe UI";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  margin: 16px 0 12px;
}

.mega-search__result {
  max-height: 50dvh;
  overflow-y: auto;
  padding-bottom: 40px;
  position: relative;
}

@media (min-width: 480px) and (max-width: 785px) {
  .mega-search__result {
    max-height: 100%;
  }
}

@media (max-width: 479px) {
  .mega-search__result {
    max-height: 100%;
  }
}

.mega-search__list-item {
  display: flex;
  gap: 14px;
  flex-direction: column;
}

.mega-search__header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mega-search .search-item {
  display: flex;
  gap: 14px;
  height: 100%;
  width: 100%;
  transition: all 0.2s;
}

.mega-search .search-item__img {
  width: 25%;
  aspect-ratio: 16/9;
  display: block;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: all 0.2s;
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .mega-search .search-item__img {
    flex-basis: 90px;
    max-width: 90px;
    width: 100%;
    height: 90px;
    border-radius: 8px;
    border: 2px solid #FFF;
  }
}

.mega-search .search-item__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
	/* [020625TIN] Add small padding to balance with search-item__img */
  padding: 4px 0;
}

.mega-search .search-item__title {
	/* [020625TIN] Make title near meta text */
/*   flex: 1; */
  color: #3D3D3D !important;
  font-family: "Noto Sans", sans-serif;
/*   font-size: 26px; */
	/* [020625TIN] Reduce font size */
  font-size: 20px;
  font-weight: 600;
  line-height: 140%;
  text-transform: capitalize;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-search .search-item__title::hover {
  text-decoration: underline;
}

@media (max-width: 479px) {
  .mega-search .search-item__title {
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.mega-search .search-item__meta {
  display: flex;
  color: #3D3D3D;
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  gap: 16px;
}

@media (max-width: 479px) {
  .mega-search .search-item__meta {
    justify-content: space-between;
	  /* [020625TIN] Reduce font size */
    font-size: 13px;
  }
}

.mega-search .search-item:hover .search-item__img {
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.mega-search .search-item:hover .search-item__title {
  text-decoration: underline;
}

.mega-search .mega-search-close {
  height: 24px;
  width: 24px;
  box-sizing: border-box;
  padding: 0;
  color: #3D3D3D;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  outline: none;
  background-color: transparent;
}

.mega-search .mega-search-close .iconsax {
  font-size: 28px;
}

/* [072324TIN] Add search mega style - end */

/* [120924TIN] Add css for filter bar */
.search-filter {
  margin: 20px 0 40px;
  display: flex;
  flex-direction: column;
}

.search-filter .search-filter__header {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.search-filter .search-filter__header-title {
/*   font-size: 22px; */
	  font-size: 18px;
  color: #3d3d3d;
  font-weight: 500;
}

.search-filter button.search-filter__header-apply {
  display: flex;
  padding: 8px 16px;
  background-color: #795548;
  color: white;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 32px;
}

.search-filter .search-filter__list-type {
  display: flex;
  gap: 26px;
}

.search-filter button.search-filter-type {
  display: flex;
  justify-content: center;
  align-items: center;
	  /* [040225TIN] Update style */
    font-size: 19px;
  font-weight: 400;
  background-color: transparent;
  /* [040225TIN] Update style */
  padding: 8px 16px;
  box-sizing: border-box;
  border: 1px solid #FF9800;
  border-radius: 32px;
  margin: 12px 0;
  gap: 4px;
}

.search-filter .search-filter-type.active svg {
  transition: all 0.2s;
  transform: rotate(180deg);
}

.search-filter .filter-type-item-wrap__inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 12px;
}

.search-filter .filter-type-item {
  background-color: #0000001a;
  box-sizing: border-box;
  padding: 8px 16px;
  border-radius: 32px;
  color: #3d3d3d;
  display: flex;
  flex-direction: row;
  gap: 4px;
  transition: background-color .2s, color .2s, border-color .2s;
  border: none;
}

.search-filter .filter-type-item:hover,
.search-filter .filter-type-item:has(input:checked) {
  background-color: white;
  color: #9C6E5E;
  border-color: white;
}

.search-filter .filter-type-item:has(input:checked) {
  /* adjust padding right to balance with delete show when active */
  padding-right: 8px;
}

.search-filter .filter-type-item svg {
  display: none;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0;
  background-color: transparent;
  border: none;
  color: inherit;
}

.search-filter .filter-type-item:has(input:checked) svg {
  display: flex;
}

.search-filter .search-filter-type__count {
  font-size: 14px;
  font-weight: 400;
  display: flex;
  padding: 0;
  background-color: white;
  border-radius: 32px;
  height: 20px;
  width: 20px;
  justify-content: center;
  align-items: center;
}

.search-filter .search-filter-type__count--blank {
  opacity: 0;
}

/* [120924TIN] Add css for filter bar - end */