/* highlight */

.show-mobile-new {
  display: none !important;
}

.show-desktop-new {
  display: block !important;
}

.new-highlight__slide {
  display: grid;
}

.new-highlight .new-highlight__title {
  /* margin-top: 183px;
  margin-bottom: 91px; */
  /* padding-top: 183px; */
  /* padding: 60px 0px; */
  padding: 100px 0px 50px;
  position: relative;
  z-index: 1;
}
#heading-category {
  line-height: 150px;
}

.medical-category:not(:has(.medical-breadcrumb__wrapper))
  ~ .new-highlight__category {
  padding: 0px 0px 60px;
}

.new-highlight .new-highlight__category {
  position: relative;
  padding: 60px 0px;
  z-index: 10;
}

.new-highlight .new-highlight__category h3 {
  font-size: 32px;
  line-height: 48px;
  font-family: "Megante'", sans-serif;
  font-weight: 500;
  text-decoration: underline;
  color: var(--primary-color);
  text-underline-offset: 12px;
}

.new-highlight {
  position: relative;
  padding-bottom: 60px;
}

.new-highlight .highlight__background {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
}

.new-highlight .highlight__background.circle {
  top: 0;
  height: 60%;
}

.new-highlight .highlight__background.rectangle {
  bottom: 0;
  height: 37%;
}

/* .new-highlight .new-highlight__slide {
  margin-bottom: 191px;
} */

.new-highlight .new-highlight__wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 160px;
}

.new-highlight .new-highlight__wrapper .slick-dots {
  display: none !important;
}

.new-highlight .slick-dotted.slick-slider {
  margin-bottom: 0px;
}

.new-highlight__item--img {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 75%;
}

.new-highlight__item--img img {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* .new-highlight .new-highlight__wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
} */

.new-highlight .new-highlight__wrapper .arrow,
.new-highlight .new-highlight__wrapper .arrow--hover {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.new-highlight__wrapper .new-highlight__item {
  position: relative;
  z-index: 2;
  height: 100%;
  /* margin-bottom: 160px; */
}

/* .new-highlight .slick-track {

  display: flex !important;

}



.new-highlight .slick-slide {

  height: inherit !important;

} */

.new-highlight .slick-slide > div {
  height: 100%;
}

.new-highlight .slick-slide > div a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.new-highlight__slide .slick-list {
  margin: 0 -10px;
}

.new-highlight__slide .slick-slide {
  margin: 0 10px;
}

.new-highlight__item-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.new-highlight__item--content {
  padding: 20px 30px 50px 20px;
  position: relative;
  /* display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 100%; */
}

.new-highlight__item--content::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 8px;
  opacity: 1;
  background-color: var(--four-color);
  bottom: 0;
  left: 0;
}

.new-highlight__item h3 {
  color: #58595b;
  font-size: 16px;
  line-height: 29px;
  font-family: "Be Vietnam Pro-Regular";
}

.new-highlight__item h2 {
  color: var(--primary-color);
  font-size: 23px;
  line-height: 34px;
  font-family: "Megante";
  letter-spacing: 0.46px;
  padding-top: 23px;
  padding-bottom: 21px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
  max-height: 160px;
  height: 96px;
}

.new-highlight__item span {
  color: #58595b;
  font-size: 16px;
  font-family: "Be Vietnam Pro-Light";
  line-height: 30px;
  font-weight: 300;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
  min-height: 120px;
}

/* .new-highlight__item .new-highlight__item--button {
  margin-top: 40px;
  width: 38px;
  height: 38px;
} */

/* .new-highlight__item:hover .new-highlight__item--button .arrow,
.new-highlight__item .new-highlight__item--button .arrow--hover {
  display: none !important;
} */

.new-highlight__item .new-highlight__item--button .arrow,
.new-highlight__item:hover .new-highlight__item--button .arrow--hover {
  display: block !important;
}

.new-highlight__item .new-highlight__item--button {
  position: relative;
  margin: 42px 0px 0px;
  width: 38px;
  height: 38px;
}

.new-highlight__item .new-highlight__item--button .arrow,
.new-highlight__item .new-highlight__item--button .arrow--hover {
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s linear;
}

.new-highlight__item .new-highlight__item--button .arrow,
.new-highlight__item:hover .new-highlight__item--button .arrow--hover {
  opacity: 1;
  transition: all 0.3s linear;
}

.new-highlight__item:hover .new-highlight__item--button .arrow,
.new-highlight__item .new-highlight__item--button .arrow--hover {
  opacity: 0;
  transition: all 0.3s linear;
}

.new-highlight__pagination {
  display: flex;
  justify-content: center;
  padding-top: 60px;
  /* margin-bottom: 14px; */
  /* position: absolute; */
  left: 0;
  right: 0;
  /* bottom: 0; */
  bottom: -7%;
}

.medical-news-disease .new-highlight__pagination {
  padding-bottom: 60px;
}

.new-highlight__pagination.cate {
  bottom: -12%;
}

.new-highlight__next {
  width: 57px;
  height: 57px;
  cursor: pointer;
}

.new-highlight__prev {
  width: 57px;
  height: 57px;
  transform: scaleX(-1);
  margin-right: 10px;
  cursor: pointer;
}

.arrow__next-default,
.arrow__prev-default {
  width: 57px;
  height: 57px;
  transition: all 0.3s;
  position: absolute;
  object-fit: cover;
}

.arrow__next-hover,
.arrow__prev-hover {
  width: 57px;
  height: 57px;
}

.arrow__next-hover,
.arrow__prev-hover {
  /* display: none; */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s linear;
}

.new-highlight__next:hover .arrow__next-default,
.new-highlight__prev:hover .arrow__prev-default {
  opacity: 0;
  visibility: hidden;
}

.new-highlight__next:hover .arrow__next-hover,
.new-highlight__prev:hover .arrow__prev-hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(4px);
}

/* Medical news disease */

.medical-news-disease.show-desktop-new {
  padding-top: 60px;
}

.medical-news-disease .medical-category {
  position: relative;
  /* padding-top: 60px; */
}

.medical-category .medical-category__wrapper {
  width: 100%;
  margin-top: 60px;
}

.medical-category .medical-category__wrapper .medical-category__main {
  box-shadow: 0px 0px 40px #dee7f6cc;
  border-radius: 29px;
  padding: 24px 0px;
  background: white;
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}

/* Category main list */

.medical-category__wrapper
  .medical-category__main
  .medical-category__main-list {
  display: flex;
  justify-content: center;
  gap: 24px;

  flex-wrap: wrap;
}

/* .medical-category:has(.medical-breadcrumb__wrapper)
  ~ .new-highlight__category
  h3 {
  text-align: center;
  text-decoration: none;
  font-size: 34.043px;
} */

/* .medical-category:has(.medical-breadcrumb__wrapper) ~ .new-highlight__title {
  display: none;
} */

.medical-category__main-list .medical-category__main-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 46px;
  padding: 12px 32px;
  border-radius: 29px;
  border: 1px solid #fff;
  background: #f3f4f7;
  color: var(--four-color);
  cursor: pointer;
  transition: 0.3s all ease-in-out;
  transform: scale(1);
}

.medical-category__main-list .medical-category__main-item:hover {
  transform: scale(1.02);
}

.medical-category__main-list .medical-category__main-item.activate {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.medical-category__main-item.activate a {
  font-weight: 700;
  color: var(--secondary-color);
}

.medical-category__main-item a {
  display: block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--four-color);
}

/* Sub category */

.medical-category .medical-category__wrapper .medical-category__sub {
  padding: 24px 0;
  position: relative;
}

.medical-category__wrapper .medical-category__sub .medical-category__sub-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.medical-category__sub-list .medical-category__sub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 38px;
  padding: 8px 32px;
  border-radius: 24px;
  border: 1px solid var(--four-color);
  background: #fff;
  cursor: pointer;
  transition: 0.3s all ease-in-out;
  transform: scale(1);
}

.medical-category__sub-list .medical-category__sub-item a {
  color: var(--primary-color);
}

.medical-category__sub-list .medical-category__sub-item.activate a {
  color: var(--secondary-color);
  font-weight: 700;
}

.medical-category__sub-list .medical-category__sub-item:hover {
  transform: scale(1.02);
}

.medical-category__sub-list .medical-category__sub-item.activate {
  background: var(--four-color);
  color: var(--secondary-color);
}

/* Medical breadcrumb */

.medical-breadcrumb__wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.medical-breadcrumb__wrapper .breadcrumb__item a {
  display: block;
  text-decoration: none;
  color: #39398e;
  font-size: 16px;
  line-height: 20.24px;
  font-family: "Be Vietnam Pro-Regular";
  font-weight: 400;
  transition: 0.3s all ease-in-out;
}

.medical-breadcrumb__wrapper .breadcrumb__item {
  transition: 0.3s all ease-in-out;
}

.medical-breadcrumb__wrapper .breadcrumb__item:hover a {
  transform: translateX(5px);
}

.medical-breadcrumb__wrapper .breadcrumb__item.current__page a {
  color: var(--four-color);
}

.medical-breadcrumb__wrapper .chevron {
  height: 12px;
  width: auto;
}

.new-highlight__category--cta {
  text-align: center;
  width: fit-content;
  margin: 0 auto;
  gap: 20px;
  margin: 60px auto;
}

.new-highlight__category--cta + .new-highlight__pagination {
  padding: 0;
}

.new-highlight__category--cta:hover .arrow_next-post {
  transform: translateX(5px);
}

.new-highlight__category--cta .new-highlight__category--link {
  font-size: 22.46px;
  line-height: 34px;
  font-weight: 500;
  color: var(--primary-color);
  /* display: contents; */
  position: relative;
  display: block;
  transition: 0.3s all ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .new-highlight__category--cta:hover .new-highlight__category--link {
  color: var(--four-color);
} */

.new-highlight__category--cta .new-highlight__category--link span {
  margin-right: 20px;
  font-family: "Megante'", sans-serif;
}

.new-highlight__category--cta .new-highlight__category--link img {
  width: 32px;
  height: auto;
  object-fit: contain;
  transition: 0.3s all ease-in-out;
}

.new-highlight__category--cta:hover .new-highlight__category--link img {
  transform: translateX(5px);
}

.new-highlight__category--cta .arrow_next-post {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s all ease-in-out;
}

.new-highlight__category--cta .arrow_next-post::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 2px;
  background: var(--primary-color);
  transform-origin: right;
  transform: rotate(0deg) translate(-21px, -1px);
}

.new-highlight__category--cta .arrow_next-post::after {
  position: absolute;
  width: 17px;
  height: 17px;
  content: "";
  border: 2px solid var(--primary-color);
  left: -7px;
  transform: translateY(-50%) rotate(-45deg);
  border-left: none;
  border-top: none;
}

@media screen and (max-width: 1100px) {
  .new-highlight__next:hover .arrow__next-default,
  .new-highlight__prev:hover .arrow__prev-default {
    opacity: 1;
    visibility: visible;
  }

  .new-highlight__next:hover .arrow__next-hover,
  .new-highlight__prev:hover .arrow__prev-hover {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .new-highlight__pagination {
    margin-bottom: 205px;
  }
}

@media (min-width: 1024px) {
  .container-fluid {
    /* max-width: 1588px; */
    max-width: 1400px;
    padding: 0 12px;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .show-desktop-new {
    display: none !important;
  }

  .show-mobile-new {
    display: block !important;
  }

  .new-highlight__item--img {
    position: unset;
    width: unset;
    height: unset;
    padding-top: unset;
  }

  .new-highlight__item--img img {
    position: unset;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .new-highlight .new-highlight__slide {
    margin-bottom: 36px;
  }

  .new-highlight .slick-slide > div a {
    flex-direction: row;
  }

  .new-highlight .highlight__background {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    display: none;
  }

  .new-highlight .new-highlight__wrapper img {
    width: 155px;
    height: 155px;
  }

  .new-highlight {
    margin-top: 60px;
  }

  /* .new-highlight .new-highlight__title {
    display: none;
  } */

  .new-highlight .new-highlight__wrapper {
    grid-template-columns: repeat(1, 1fr);
  }

  .new-highlight__wrapper .new-highlight__item {
    position: relative;
    padding: unset;
    margin-bottom: 30px;
    display: flex !important;
  }

  .medical-news-disease
    .new-highlight__wrapper
    .new-highlight__item:last-child {
    margin-bottom: 0px;
  }

  .medical-news-disease .new-highlight__slide {
    margin-bottom: 0px;
  }

  .new-highlight__item--content {
    position: unset;
    padding-top: unset;
    padding-left: 24px;
    padding-bottom: unset;
    padding-right: unset;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .new-highlight__item h3 {
    font-size: 7px;
    line-height: 17px;
    font-family: "Be Vietnam Pro-Light";
  }

  .new-highlight__item h2 {
    font-size: 10px;
    line-height: 17px;
    font-family: "Megante";
    font-weight: 500;
    letter-spacing: 0.2px;
    padding-top: unset;
    padding-bottom: unset;
    height: auto;
    max-height: fit-content;
  }

  .new-highlight__item span {
    font-size: 9px;
    line-height: 14px;
    min-height: 40px;
    font-weight: 300;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
  }

  .new-highlight__item .new-highlight__item--button,
  .new-highlight__item .new-highlight__item--button .arrow {
    width: 17px;
    height: 17px;
    margin-top: 11px;
    margin-bottom: 12px;
  }

  .new-highlight__item--content::after {
    height: 2px;
  }

  .new-highlight__next {
    width: 37px;
    height: 37px;
  }

  .new-highlight__pagination .arrow__prev-default:active,
  .new-highlight__pagination .arrow__next-default:active {
    opacity: 0.5;
    transition: all 0.1s linear;
  }

  .new-highlight__pagination .arrow__prev-default.active,
  .new-highlight__pagination .arrow__next-default.active {
    opacity: 0.5;
    transition: all 0.1s linear;
  }

  .new-highlight__prev {
    width: 37px;
    height: 37px;
  }

  .new-highlight__category--cta .new-highlight__category--link {
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 34px;
  }

  .new-highlight__content .new-highlight__category--cta:last-child {
    margin: 30px auto 40px;
  }

  .new-highlight__category--cta {
    margin: 30px auto;
  }

  .new-highlight__pagination {
    /* margin-bottom: 55px; */
    position: unset;
  }

  .new-highlight {
    padding-bottom: 60px;
  }

  .new-highlight__item .new-highlight__item--button .arrow--hover,
  .new-highlight__item .new-highlight__item--button .arrow {
    margin-top: unset;
    width: 17px;
    height: 17px;
    margin-bottom: 15px;
  }

  /* Breadcrumb < desktop  */

  /* Medical category < desktop */

  .medical-category .medical-category__wrapper .medical-category__main {
    padding: 20px 24px;
  }

  .medical-news-disease .new-highlight__wrapper .slick-slide > div {
    height: fit-content;
  }

  .medical-category .medical-category__wrapper {
    margin-top: 32px;
  }

  .medical-category__wrapper
    .medical-category__main
    .medical-category__main-list {
    gap: 12px;
  }

  .medical-category__wrapper
    .medical-category__main
    .medical-category__main-list {
    justify-content: center;
  }

  .medical-category__main-list .medical-category__main-item,
  .medical-category__sub-list .medical-category__sub-item {
    padding: 8px 24px;
    border-radius: 20px;
  }

  .medical-category__sub-list .medical-category__sub-item {
    max-width: 80%;
  }

  .medical-breadcrumb__wrapper .breadcrumb__item-span,
  .medical-breadcrumb__wrapper .breadcrumb__item a,
  .medical-category__main-item a {
    font-size: 14px;
    line-height: 18px;
  }

  .medical-category__sub-list .medical-category__sub-item a {
    font-size: 12px;
    line-height: 18px;
  }

  .medical-category .medical-category__wrapper .medical-category__sub {
    padding: 12px 0px 0px;
  }

  .new-highlight .new-highlight__category h3 {
    color: var(--primary-color);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
  }

  .medical-news-disease .new-highlight__pagination {
    padding: 24px 0px 40px;
  }

  .medical-category:has(.medical-breadcrumb__wrapper)
    ~ .new-highlight__category {
    padding: 60px 0px;
  }

  .medical-category:not(:has(.medical-breadcrumb__wrapper))
    ~ .new-highlight__category {
    padding: 0px 0px 42px;
  }

  .medical-category:has(.medical-breadcrumb__wrapper)
    ~ .new-highlight__category
    h3 {
    font-size: 24px;
    line-height: 32px;
  }

  .medical-category:not(:has(.medical-breadcrumb__wrapper))
    ~ .new-highlight__title {
    display: block;
  }

  .new-highlight__category--cta .new-highlight__category--link span {
    margin-right: 24px;
  }

  .new-highlight__category--cta .new-highlight__category--link img {
    width: 22px;
  }

  .new-highlight .new-highlight__wrapper {
    row-gap: 30px;
  }

  .new-highlight .new-highlight__title + .new-highlight__category {
    padding: 0 0 30px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .new-highlight__item--content {
    padding-right: 40px;
  }

  .new-highlight__item h3 {
    font-size: 12px;
  }

  .new-highlight__item h2 {
    font-size: 15px;
  }

  .new-highlight__item span {
    font-size: 15px;
    line-height: 20px;
  }
}

/* @media (max-width: 576px) {
  .new-highlight__wrapper .new-highlight__item:last-child {
    margin-bottom: 0px;
  }
} */

@media (max-width: 576px) {
  .new-highlight {
    margin-top: 40px;
  }

  .medical-category .medical-category__wrapper .medical-category__main {
    padding: 12px 24px;
  }

  .medical-category__wrapper
    .medical-category__main
    .medical-category__main-list {
    gap: 8px;
  }

  .medical-category__main-list .medical-category__main-item {
    padding: 6px 18px;
  }

  .medical-breadcrumb__wrapper .breadcrumb__item-span,
  .medical-breadcrumb__wrapper .breadcrumb__item a,
  .medical-category__main-item a {
    font-size: 12px;
    line-height: normal;
  }

  .medical-breadcrumb__wrapper {
    gap: 12px;
  }

  .medical-category .medical-category__wrapper .medical-category__sub {
    padding: 12px;
  }

  .medical-category__wrapper
    .medical-category__sub
    .medical-category__sub-list {
    gap: 8px;
  }

  .medical-category__sub-list .medical-category__sub-item {
    padding: 6px 18px;
  }

  .medical-category__sub-list .medical-category__sub-item a {
    font-size: 10px;
  }

  .medical-category:has(.medical-breadcrumb__wrapper)
    ~ .new-highlight__category
    h3 {
    font-size: 18px;
    line-height: 32px; /* 177.778% */
  }

  .medical-category:has(.medical-breadcrumb__wrapper)
    ~ .new-highlight__category {
    padding: 40px 0px;
  }

  .new-highlight .new-highlight__category h3 {
    font-size: 18px;
    line-height: 32px; /* 177.778% */
  }

  .new-highlight .new-highlight__title + .new-highlight__category {
    padding: 0 0 24px;
  }

  .new-highlight__content .new-highlight__category--cta {
    margin: 24px auto;
  }

  .new-highlight {
    padding-bottom: 40px;
  }

  .medical-category:not(:has(.medical-breadcrumb__wrapper))
    ~ .new-highlight__category {
    padding: 0px 0px 24px;
  }

  .new-highlight__content .new-highlight__category--cta:last-child {
    margin: 24px auto 30px;
  }

  .medical-news-disease .new-highlight__title {
    padding: 40px 0px;
  }

  .new-highlight__item span {
    max-height: 70px;
  }

  .new-highlight__item h2 {
    max-height: 36px;
  }
}

@media (min-width: 485px) and (max-width: 768px) {
  .new-highlight__item--content {
    padding-right: 20px;
  }

  .new-highlight__item h3 {
    font-size: 10px;
  }

  .new-highlight__item h2 {
    font-size: 13px;
  }

  .new-highlight__item span {
    margin-bottom: unset;
    font-size: 13px;
  }
}

@media (max-width: 484px) {
  .new-highlight__item--content {
    padding-left: 24px;
    padding-right: 10px;
  }

  .new-highlight__item span {
    font-size: 9px;
    line-height: 14px;
    max-height: 63px;
    font-weight: 300;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
    margin-bottom: auto;
  }

  .new-highlight__item h3 {
    font-size: 8px;
  }

  .new-highlight__item h2 {
    font-size: 12px;
    line-height: 18px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
  }

  .new-highlight__item span {
    font-size: 10px;
    line-height: 16px;
  }
}

@media (max-width: 400px) {
  .new-highlight__item h2 {
    word-break: keep-all;
    max-width: 100px;
  }

  .new-highlight__item p {
    word-break: keep-all;
    max-width: 110px;
  }
}

@media (max-width: 350px) {
  .new-highlight__item p {
    word-break: keep-all;
    max-width: 100px;
  }
}

@media (max-width: 300px) {
  .new-highlight__item h2,
  .new-highlight__item p {
    max-width: 80px;
  }
}

.breadcrumb__item-span {
  display: block;
  text-decoration: none;
  font-size: 16px;
  line-height: 20.24px;
  font-family: "Be Vietnam Pro-Regular";
  font-weight: 400;
  color: #8681ed;
}
