picture {
  height: 100%;
}

.banner {
  position: relative;
  width: 100%;
  height: 463px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  transform: scale(1.3, 1.8);
}

.banner img,
.banner .text {
  position: absolute;

}

.banner__content {
  font-family: var(--font-family);
  position: relative;
  /* text-align: center; */
  color: #fff;
  z-index: 2;
}

.banner__title {
  font-size: var(--font-h2-size);
  font-weight: var(--font-h2-weight);
  line-height: var(--font-h2-line-height);
  max-width: 250px;
  margin-bottom: 24px;
  text-transform: unset;
}

/* Ô search */
.banner__search {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-bg-white);
}

.banner__input {
  flex: 1;
  padding: 16px 20px 17px;
  border: none;
  outline: none;
  font-size: var(--font-h5-size);
  font-weight: var(--font-body-sm-weight);
  line-height: var(--font-body-sm-line-height);
  color: var(--color-bg-primary);
}

.banner__input::placeholder {
  color: var(--color-disabled-blue);
}

.banner__button {
  color: #fff;
  border: none;
  padding: 12px 13px 13px 19px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.banner__button svg {
  color: var(--color-bg-primary);
}

.search {
  display: none;
  font-family: var(--font-family);
}

.search__result-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  padding-top: 16px;
}

.search__result-item {
  padding-bottom: 31px;
  border-top: 1px solid var(--color-bg-primary);
}

.search__result-title {
  font-size: var(--font-h3-size);
  font-weight: var(--font-h3-weight);
  line-height: var(--font-h3-line-height);
  color: var(--color-bg-primary);
  margin: 24px 0px;
}

.search__result-desc {
  font-size: var(--font-body-md-size);
  color: var(--color-bg-primary);
  line-height: var(--font-body-md-line-height);
  font-weight: var(--font-body-md-weight);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 2;
}

.search__result-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-bg-primary);
  font-size: var(--font-button-size);
  font-weight: var(--font-button-weight);
  line-height: var(--font-button-line-height);
  border-bottom: 1px solid var(--color-bg-primary);
}

.search__result-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-bg-primary);
}

.search__result-link:hover {
  border-bottom-color: transparent;
}

.search__result-link:hover::after {
  width: 100%;
  transition: width 0.5s ease;
}

.search__result-link svg {
  vertical-align: middle;
  transform: translateY(-2px);
  margin-left: 12px;
}

.search-no-result {
  display: none;
  margin-top: 20px;
}

.search__noresult-title {
  font-size: var(--font-h3-size);
  color: var(--color-bg-primary);
  font-weight: var(--font-h3-weight);
  line-height: var(--font-h3-line-height);
  margin-bottom: 38px;
}

.search__noresult-title .highlight {
  color: var(--color-primary-cyan);
}

.search__header {
  display: flex;
  justify-content: space-between;
  align-items: unset;
  flex-direction: column;
  margin: 40px 0px 24px;
  gap: 8px;
}

.search__body {
  margin: 0px;
}

.search__header-keyword {
  font-size: var(--font-h4-size);
  font-weight: var(--font-h4-weight);
  line-height: var(--font-h4-line-height);
  color: var(--color-bg-primary);
}

.search__header-count {
  font-size: var(--font-h4-size);
  font-weight: var(--font-body-lg-weight);
  line-height: var(--font-h4-line-height);
  color: var(--color-bg-primary);
}


.pagination {
  padding: 40px 0 60px 0;
  color: var(--color-bg-primary);
  font-family: var(--font-family);
}

.pagination__container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.pagination__arrow {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.pagination__numbers {
  display: flex;
  gap: 2px;
}

.pagination__number {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pagination__number.active {
  border: 1px solid #0047ba;
}

.pagination__number p {
  font-size: var(--font-body-sm-size);
  font-weight: var(--font-body-sm-weight);
  line-height: var(--font-body-lg-line-height);
}

.pagination__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.footer {
  width: 100%;
  background: var(--color-bg-primary);
  color: #fff;
  padding: 21px 0 48px;
  font-family: var(--font-family);
  margin-top: 0px;
}


@media only screen and (min-width: 768px) and (max-width: 1279px) {
  .search__header {
    display: flex;
    justify-content: space-between;
    align-items: unset;
    flex-direction: row;
    margin: 40px 0;
    gap: 8px;
  }

  .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: unset;
    transform: unset;
  }

  .banner__title {
    font-size: var(--font-h2-size);
    font-weight: var(--font-h2-weight);
    line-height: var(--font-h2-line-height);
    max-width: none;
    text-align: center;
    margin-bottom: 24px;
    text-transform: unset;
  }

  .search__result-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* luôn 2 cột */
    gap: 36px 24px;
    margin-top: 32px;
  }
}

@media only screen and (min-width: 1280px) {
  .banner {
    position: relative;
    width: 100%;
    height: 610px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: unset;
    transform: unset;
  }

  .banner img,
  .banner .text {
    position: absolute;

  }

  .banner__content {
    font-family: var(--font-family);
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
  }

  .banner__title {
    font-size: var(--font-h1-size);
    font-weight: var(--font-h1-weight);
    line-height: var(--font-h1-line-height);
    margin-bottom: 24px;
    text-transform: unset;
    max-width: none;
  }

  /* Ô search */
  .banner__search {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--color-bg-white);
  }


  .banner__input::placeholder {
    color: var(--color-disabled-blue);
  }

  .banner__button {
    color: #fff;
    border: none;
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
  }

  .banner__button svg {
    color: var(--color-bg-primary);
  }


  .search {
    display: none;
    font-family: var(--font-family);
  }

  .search__result-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* luôn 2 cột */
    gap: 36px 24px;
    padding-top: 36px;
  }

  .search__result-item {
    padding-bottom: 49px;
    border-top: 1px solid var(--color-bg-primary);
  }

  .search__result-title {
    font-size: var(--font-h2-size);
    font-weight: var(--font-h2-weight);
    line-height: var(--font-h2-line-height);
    color: var(--color-bg-primary);
    margin: 24px 0px;
  }

  .search__result-desc {
    font-size: var(--font-body-md-size);
    color: var(--color-bg-primary);
    line-height: var(--font-body-lg-line-height);
    font-weight: var(--font-body-md-weight);
    margin-bottom: 27px;
  }

  .search__result-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--color-bg-primary);
    font-size: var(--font-button-size);
    font-weight: var(--font-button-weight);
    line-height: var(--font-button-line-height);
    border-bottom: 1px solid var(--color-bg-primary);
  }

  .search__result-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-bg-primary);
  }

  .search__result-link:hover {
    border-bottom-color: transparent;
  }

  .search__result-link:hover::after {
    width: 100%;
    transition: width 0.5s ease;
  }

  .search__result-link svg {
    vertical-align: middle;
    transform: translateY(-2px);
    margin-left: 12px;
  }


  .search-no-result {
    display: none;
    margin-top: 20px;
  }

  .search__noresult-title {
    font-size: var(--font-h2-size);
    color: var(--color-bg-primary);
    font-weight: var(--font-h2-weight);
    line-height: var(--font-h2-line-height);
    margin-bottom: 60px;
  }

  .search__noresult-title .highlight {
    color: var(--color-primary-cyan);
  }

  .search__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0px 24px;
    flex-direction: row;
  }

  .search__body {
    margin: 0px;
  }

  .search__header-keyword {
    font-size: var(--font-h4-size);
    font-weight: var(--font-h4-weight);
    line-height: var(--font-h4-line-height);
    color: var(--color-bg-primary);
  }

  .search__header-count {
    font-size: var(--font-number-size);
    font-weight: var(--font-label-weight);
    line-height: var(--font-button-line-height);
    color: var(--color-bg-primary);
  }


  .pagination {
    padding: 20px 0 60px 0;
    color: var(--color-bg-primary);
    font-family: var(--font-family);
  }

  .pagination__container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: left;
  }

  .pagination__arrow {
    width: 28px;
    height: 28px;
    cursor: pointer;
  }

  .pagination__numbers {
    display: flex;
    gap: 2px;
  }

  .pagination__number {
    font-size: var(--font-body-sm-size);
    font-weight: var(--font-body-sm-weight);
    line-height: var(--font-button-line-height);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .pagination__number.active {
    border: 1px solid #0047ba;
  }

  .pagination__number p {
    font-size: var(--font-body-sm-size);
    font-weight: var(--font-body-sm-weight);
    line-height: var(--font-body-lg-line-height);
  }

  .pagination__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .footer {
    width: 100%;
    background: var(--color-bg-primary);
    color: #fff;
    padding: 21px 0 48px;
    font-family: var(--font-family);
    margin-top: 0px;
  }
}