html[lang="en"] .section-title,
html[lang="en"] .section-description {
  font-family: "Poppins";
}

html[lang="vi"] .section-title.title-xl {
  font-weight: 600;
}

/* banner */
.banner {
  position: relative;
}

.banner .banner__img {
  max-height: 490px;
}

.general-title .section-description {
  font-size: 18px;
  line-height: normal;
  line-height: 29.7px;
  font-weight: 600;
}

.banner__img--large {
  width: 100%;
  object-fit: cover;
  max-height: 490px;
}

.banner__img--small {
  position: absolute;
  top: 100px;
  right: calc((100% - 1232px) / 2);
}

.article--featured {
  padding: 49px 0 64px;
}

.article--featured .section-tag {
  color: var(--Light-Primary-Main);
  margin: 0 auto;
  width: fit-content;
  background: #ecf4fc;
  border-radius: 24px;
  padding: 4px 12px;
  margin-bottom: 16px;
  display: flex;
}

.article--featured .featured__slider .owl-nav.disabled + .owl-dots,
.article--featured .featured__slider .owl-dots {
  margin-top: 31px;
  display: flex;
  justify-content: center;
}

.article--featured .featured__slider .owl-dots .owl-dot {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 10px;
  height: 10px;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: none;
  background: var(--Light-Primary-Main);
  border-radius: 50%;
  opacity: 0.25;
}

.article--featured .featured__slider .owl-dots .owl-dot:hover,
.article--featured .featured__slider .owl-dots .owl-dot.active {
  opacity: 0.75;
}

.section-title {
  text-align: center;
  font-family: "Renogare";
  font-weight: 600;
  font-size: 50px;
  line-height: 52px;
  color: #596574;
}

.section-title.title-sm {
  font-size: 32px;
  margin-right: 16px;
}

.section-title.title-sm::first-letter {
  text-transform: uppercase;
}

.section-title.title-xl {
  margin-bottom: 69px;
}

.section-description {
  font-size: 18px;
  text-align: center;
  color: #596574;
}

.featured__slider {
  width: 100%;
  max-height: 396px;
}

.featured__slider .featured__item {
  overflow: hidden;
  display: flex !important;
  border-radius: 12px;
  border: 1px solid #e5e5e7;
}

.slick-dots {
  bottom: -46px;
}

.slick-dots li button::before {
  font-size: 10px;
  color: var(--Light-Primary-Main);
}

.slick-dots li.slick-active button::before {
  color: var(--Light-Primary-Main);
}

.articles {
  padding: 70px 0px;
  padding-bottom: 70px;
}

.articles > .container:not(:last-child) {
  margin-bottom: 70px;
}

.articles > .container .general-title + .articles__container {
  padding-top: 50px;
}

.articles .articles__insight.container {
  margin-bottom: 91px;
}

.articles__container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  row-gap: 44px;
}

.articles__container .article__item {
  max-width: 384px;
  border-radius: 6px;
  height: 453px;
  display: flex;
  flex-direction: column;
}

.nav__action {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border-radius: 100px;
  background: linear-gradient(135deg, #3470e1 0%, #9642fe 100%);
  margin: 0 auto;
  padding: 0px 22px;
  font-size: 13px;
  height: 52px;
  width: 210px;
  font-weight: 500;
  gap: 14px;
  border: none;
  text-transform: uppercase;
  font-family: "Renogare";
}

.nav__action:hover {
  color: #fff;
  background: linear-gradient(270deg, #3470e1 0%, #9642fe 100%);
}

.nav__action:hover img {
  transform: rotate(0deg);
}

.nav__action img {
  transition: 0.2s transform cubic-bezier(0.4, 0, 0.2, 1);
  width: 25px;
  transform: rotate(-45deg);
}

.article__filter {
  display: none;
}

.articles > .section-title,
.articles > .section-description {
  display: none;
}

.articles .container > .section-title,
.articles .container > .section-description {
  display: block;
}

.articles__filter {
  display: none;
}

/* start select2 page override */
.select2-container--default .select2-search--dropdown .select2-search__field {
  color: #323539;
  font-weight: 600;
}

.select2-container .select2-dropdown.select2-dropdown--below {
  top: -48px;
}

/* .select2-container--open .select2-dropdown--below {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
} */

.select2-container--default .select2-search--dropdown .select2-search__field {
  position: relative;
  border: 0px;
  padding: 0;
  height: 100%;
  width: 100%;
  padding: 14px 16px;
  border-radius: 5px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  font-weight: 600;
  color: #323539;
}

.select2-container .select2-selection--single {
  border-radius: 5px;
  overflow: hidden;
}

/* end select2 page override */

.articles.articles--category {
  background: white;
}

/* Survey form popup */

.prevent-scroll-body {
  overflow: hidden;
  height: 100vh;
  padding-right: 12px;
}

#survey__overlay {
  position: fixed;
  background: rgba(255, 255, 255, 0.35);
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 98;
  overflow: initial;
  display: none;
  transition: 0.15sease-in-out;
}

#survey__popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  background: #d9d9d9;
  padding: 12px 48px;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); */
  display: none;
  border-radius: 20px;
  z-index: 99;
  min-height: 320px;
}

#survey__overlay.active,
#survey__popup.active {
  display: block;
}

#survey__overlay.active {
  overflow-y: scroll;
}

#survey__popup .survey__popup-title {
  position: relative;
  font-size: 20px;
  line-height: 48px;
  font-weight: 700;
  font-family: "Montserrat";
  color: black;
  text-align: center;
}

#survey__popup .survey__popup-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #000, #737373);
}

#survey__popup .survey__popup-title h2 span {
  color: #9f2aff;
}

.survey__popup-item--options .survey__options-list {
  display: flex;
  list-style: none;
  padding: 0;
}

.survey__popup-item--options .survey__options-list .survey__options-list--item {
  position: relative;
  cursor: pointer;
  background-color: #ffff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 10px 0px;
  text-align: center;
}
.wpcf7-form-control-wrap {
  /* top: 5%; */
  display: inline-flex; /* Dòng ngang mà không có khoảng cách thừa */
  align-items: center;
}

.wpcf7-list-item {
  margin: 0;
}
.error-inf {
  margin-top: 10px;
  margin: 10px auto 0px;
  text-align: left;
  width: 90%;
}

.wpcf7-list-item-label {
  font-weight: 600;
}

.survey__popup-item--options
  .survey__options-list
  .survey__options-list--item:hover {
  opacity: 0.8;
}

.survey__options-list .survey__options-list--item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey__options-list--item:has(input[type="radio"]:checked) {
  border: 1px solid #3470e1;
}

.survey__options-list .survey__options-list--item label {
  display: block;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  /* margin-bottom: 5px; */
}

.survey__options-list .survey__options-list--item label .option_img {
  border-radius: 12px;
}

.survey__popup-item--options .survey__options-list {
  display: grid;
  column-gap: 24px;
  margin-bottom: 10px;
}

.survey__popup-item--options .survey__options-list.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  padding: 0px 40px;
}

.survey__popup-item--options .survey__options-list.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.survey__popup-item .survey__popup-item--subtitle {
  font-size: 18px;
  line-height: 40px;
  font-weight: 400;
  margin: 16px 0px 0px;
  color: #000;
  text-align: center;
}

.survey__popup-item .survey__popup-item--thank {
  font-size: 20px;
  line-height: 40px;
  font-weight: 600;
  margin: 16px 0px 8px;
  color: #4969e6;
  text-align: center;
}

.survey__popup-item .survey__popup-item--form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding-bottom: 10px;
}

.survey__popup-item .survey__popup-item--form span {
  display: block;
}

.survey__popup-item .survey__popup-item--form span:last-child {
  margin-bottom: 28px;
}

.survey__popup-item .survey__popup-item--form input {
  margin: 0 auto;
  width: 90%;
  text-align: left;
  padding: 8px 12px;
  border: 0px;
}

.survey__popup-item .survey__popup-item--content {
  font-size: 16px;
  line-height: 32px;
  margin: 0px 0px 20px;
  color: #545454;
  text-align: center;
}

.survey__popup-item.active {
  display: block;
}

.survey__popup-item {
  display: none;
}

.survey__popup-item.final {
  text-align: center;
  margin: 40px 0px;
}

.survey__popup-item.final span {
  margin-top: 12px;
  display: block;
  color: #000000;
  font-size: 16px;
  line-height: 32px;
}

.survey__popup-item .survey-thank--img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

/* Process bar */
.survey__popup-item .survey__popup-item--progress-bar {
  display: flex;
  margin-bottom: 20px;
  width: 100%;
  align-items: center;
  text-align: center;
  /* margin: 0 auto; */
  justify-content: center;
  gap: 18px;
  padding-top: 10px;
}
.survey__popup-item .survey__popup-item--progress-step {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  border: 2.5px solid #545454;
}

.survey__popup-item .survey__popup-item--progress-step.activate {
  background-color: #545454;
}

.survey__popup-item .survey__popup-item--progress-step::before {
  position: absolute;
  content: "";
  left: 50%;
  top: 40%;
  width: 5px;
  height: 10px;
  border-bottom: 1.5px solid #d9d9d9;
  border-right: 1.5px solid #d9d9d9;
  transform: translate(-50%, -45%) rotate(45deg);
}

.survey__popup-item .survey__popup-item--progress-step::after {
  content: "";
  position: absolute;
  width: 20px;
  right: -22px;
  height: 2.5px;
  background: #545454;
  top: 50%;
  transform: translateY(-50%);
}

.survey__popup-item--progress-bar
  .survey__popup-item--progress-step:last-child::after {
  content: none;
}

.survey__popup-item .survey__popup-item--button {
  display: flex;
  width: 50%;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  gap: 12px;
}

.survey__popup-item .survey__popup-item--button .cta__type-one {
  border: none;
  outline: none;
  margin: 0 auto;
  padding: 0px 36px;
  height: 32px;
}

.survey__popup-item .survey__popup-item--button .cta__type-one.prev {
  background: #3470e1;
}

.survey__popup-item
  .survey__popup-item--button
  .cta__type-one.prev.disabled-btn {
  pointer-events: none; /* Prevent click actions */
  opacity: 0.6; /* Make it appear visually disabled */
  cursor: not-allowed;
}

.survey__popup-item
  .survey__popup-item--button
  .cta__type-one.next.disabled-btn {
  pointer-events: none; /* Prevent click actions */
  opacity: 0.6; /* Make it appear visually disabled */
  cursor: not-allowed;
}

/* CSS cho hiệu ứng loading */
.survey__popup-item .survey__popup-item--button .cta__type-one.loading {
  position: relative;
  pointer-events: none; /* Ngừng mọi hành động click khi đang loading */
}

.survey__popup-item .survey__popup-item--button .cta__type-one.loading::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 25px;
  height: 25px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

/* Định nghĩa hiệu ứng quay */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.survey__popup-item .recaptcha__custom-item {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.survey__popup-item #error-message-traffic {
  padding: 0px 40px;
}

.survey__popup-item .error-message {
  display: none;
  margin: 10px 0px;
  text-align: left;
  height: auto;
  font-family: "Montserrat";
  font-weight: 400;
  font-size: 12px;
  word-wrap: break-word;
}

#error-message-website-link {
  width: 90%;
  margin: 0 auto;
  position: relative;
  display: block;
}
#survey__popup .survey__popup--close {
  position: absolute;
  top: 10px;
  right: 5px;
  cursor: pointer;
  width: fit-content;
}

#survey__popup .survey__popup--close img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

@media screen and (max-width: 1440px) {
  .article--featured {
    padding: 49px 0 40px;
  }
}

@media screen and (max-width: 1024px) {
  .article--featured {
    padding: 49px 0 40px;
  }

  /* Survey popup < desktop === tablet */
  #survey__popup {
    width: 80%;
    min-height: 280px;
  }

  #survey__popup .survey__popup-title {
    font-size: 20px;
    line-height: 36px;
  }

  .survey__popup-item .survey__popup-item--progress-bar {
    padding-top: 0px;
  }

  .survey__popup-item .survey__popup-item--form {
    gap: 0px;
  }

  .survey__popup-item .survey__popup-item--subtitle {
    font-size: 16px;
    line-height: 28px;
    margin: 8px 0px;
  }
  .survey__popup-item .survey__popup-item--thank,
  .survey__popup-item .survey__popup-item--content {
    font-size: 16px;
    line-height: 24px;
    margin: 0px 0px 8px;
  }

  .survey__popup-item.final {
    margin: 28px 0px;
  }

  .survey__popup-item.final span {
    font-size: 14px;
    line-height: 28px;
  }

  .survey__options-list .survey__options-list--item label {
    font-size: 13px;
    line-height: 18px;
  }
}

@media screen and (min-width: 1024px) {
  .section-description {
    text-align: left;
  }
}

@media screen and (max-width: 1024px) and (min-width: 577px) {
  .articles .d-sm-none {
    display: unset !important;
  }
}

@media screen and (max-width: 576px) {
  .survey__popup-item .survey__popup-item--progress-bar {
    padding-top: 15px;
  }
  .banner__img--large {
    height: 292px;
    max-height: 292px;
  }

  .survey__popup-item .survey__popup-item--form {
    gap: 5px;
  }

  #survey__popup {
    padding: 12px 40px;
  }

  .error-inf {
    margin-top: 5px;
  }

  .survey__popup-item #error-message-traffic {
    padding: 0px 40px;
  }

  .article--featured {
    padding: 74px 0 0px;
  }

  .section-title.title-xl {
    margin-bottom: 42px;
  }

  .section-title {
    text-align: center;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    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;
  }

  .featured__slider {
    padding: 0 10px;
  }

  .articles__container {
    padding: 0 10px;
  }

  .article--featured .featured__slider .owl-nav.disabled + .owl-dots,
  .article--featured .featured__slider .owl-dots {
    margin-top: 31px;
    display: none;
    justify-content: center;
  }

  .section-title.title-sm {
    font-size: 20px;
    font-family: Poppins;
    font-weight: 600;
    line-height: 22px;
    margin: 0;
    color: var(--primary);
  }

  .section-description {
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    color: var(--primary, #323539);
    margin-bottom: 22px;
    padding: 0 15px;
  }

  .articles {
    padding-bottom: 36px;
  }

  .articles__container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    row-gap: 28px;
  }

  .articles > .container .general-title + .articles__container {
    padding-top: 0;
  }

  .articles__container .article__item {
    max-height: 420px;
    height: unset;
  }

  .articles__filter {
    display: flex;
    padding: 16px 14px;
    background: #fff;
    margin: 24px 16px;
    border-radius: 10px;
    gap: 16px;
    overflow-y: scroll;
  }

  .article__type {
    padding: 4px 8px;
    border-radius: 24px;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.1px;
    color: var(--primary);
    background: #f8f9fb;
    cursor: pointer;
    transition: 0.12s color ease-in;
    text-transform: capitalize;
    white-space: nowrap;
  }

  .article__type:hover {
    color: #3470e1;
  }

  .articles > .section-title,
  .articles > .section-description {
    display: block;
  }

  .articles .container > .general-title:has(.section-title) {
    display: none;
  }

  .article__type.active-type {
    color: #3470e1;
  }

  .articles .container {
    display: none;
  }

  .articles .articles__category.container {
    display: block;
  }

  .articles .container.active-articles {
    display: block;
    margin-bottom: 0;
  }

  /* start select2 page override */
  .select2-search--dropdown {
    height: 38px;
  }

  .select2-dropdown {
    top: -38px;
  }

  .select2-results__options li {
    padding: 16px 20px;
  }

  /* end select2 page override */

  .nav__home {
    display: none;
  }

  .article--featured .featured__slider .owl-dots .owl-dot {
    display: none;
  }

  .select2-container .select2-dropdown.select2-dropdown--below {
    top: -38px;
  }

  /* Survey popup < tablet === mobile */
  .survey__popup-item--options .survey__options-list {
    display: grid;
    margin-bottom: 10px;
    column-gap: 10px;
    row-gap: 12px;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .survey__popup-item--options .survey__options-list.grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    padding: 0px;
  }

  #survey__popup .survey__popup-title {
    font-size: 16px;
    line-height: 32px;
  }

  .survey__popup-item .survey__popup-item--subtitle {
    font-size: 14px;
    line-height: 24px;
  }
  .survey__popup-item .error-message,
  .survey__popup-item .survey__popup-item--thank,
  .survey__popup-item .survey__popup-item--content {
    font-size: 12px;
    line-height: 18px;
  }

  .survey__options-list .survey__options-list--item label {
    font-size: 10px;
    line-height: 16px;
  }

  .survey__popup-item.final span {
    font-size: 11px;
    line-height: 20px;
  }

  .survey__popup-item .survey__popup-item--form input {
    font-size: 14px;
  }

  .survey__popup-item .survey__popup-item--form span:last-child {
    margin-bottom: 12px;
  }
  .survey__popup-item .error-message {
    margin: 5px 0px 0px;
  }

  .survey__popup-item .survey-thank--img {
    width: 45px;
    height: 45px;
    object-fit: cover;
  }

  #survey__popup .survey__popup--close img {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }

  .survey__popup-item .survey__popup-item--button {
    width: 100%;
  }
}

@media screen and (max-width: 400px) {
  #error-message-website-link {
    width: 100%;
  }
}
