/* base */
.ht-page {
  padding: 0;
}

@media (min-width: 1100px) {
    .container {
        width: 1320px;
    }
}

.qt-page {
  font-family: 'Inter', sans-serif;
  color: #181d27;
}

.qt-page *,
.qt-page *::before,
.qt-page *::after {
  box-sizing: border-box;
}

.qt-page img {
  max-width: 100%;
}

.qt-page .container {
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
/* end base */

/*#region qt-banner*/
.qt-banner {
  position: relative;
  overflow: hidden;
  margin-top: -60px;
  min-height: 415px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qt-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.qt-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 70px 20px 60px;
  width: 100%;
}

.qt-banner-avatar {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qt-banner-avatar-core {
  width: 94px;
  height: 94px;
  border-radius: 9999px;
  border: 2px solid #fff;
  background: linear-gradient(80deg, #4262f0 3%, #4c64f0 58%, #9f73f1 99%);
  box-shadow: 0 10px 30px rgba(54, 84, 255, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qt-banner-avatar-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qt-banner-title {
  margin: 0;
  font-family: 'Inter SemiBold', sans-serif;
  font-size: 42px;
  line-height: 54px;
  text-align: center;
  background: linear-gradient(166deg, #1482ff 9%, #cf11ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.qt-banner-search {
  width: 100%;
  max-width: 924px;
  height: 56px;
  background: #fff;
  border: 3px solid #1482ff;
  border-radius: 9999px;
  box-shadow: 0 2px 20px rgba(131, 43, 255, 0.24);
  display: flex;
  align-items: center;
  padding-left: 16px;
}

.qt-banner-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
}

.qt-banner-search-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.qt-banner-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.qt-banner-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none !important;
  box-shadow: none;
  outline: none !important;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #333;
  padding: 0 !important;
}

.qt-banner-search-input::placeholder {
  color: #a4a7ae;
  font-size: 16px;
}

@media (max-width: 979px) {
  .qt-banner-title {
    font-size: 28px;
    line-height: 38px;
  }

  .qt-banner-inner {
    padding: 56px 16px 48px;
    gap: 24px;
  }
}

@media (max-width: 479px) {
  .qt-banner-title {
    font-size: 20px;
    line-height: 28px;
  }

  .qt-banner-search-input {
    font-size: 14px;
  }
}
/*#endregion*/

/*#region qt-stats*/
.qt-stats {
  background: #f5f9ff;
  padding: 64px 0;
}

.qt-stats-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.qt-stats-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  font-family: 'Inter SemiBold', sans-serif;
  font-size: 32px;
  line-height: normal;
  color: #1f1f1f;
  text-align: center;
}

.qt-stats-title .is-gradient {
  background: linear-gradient(108deg, #1482ff 9%, #cf11ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.qt-stats-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #00A2CF;
  border-radius: 8px;
  color: #00A2CF;
  font-family: 'Inter Medium', sans-serif;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.qt-stats-detail img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.qt-stats-detail:hover {
  background: #f0f6fe;
}

.qt-stats-row {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.qt-stats-since {
  font-family: 'Inter SemiBold', sans-serif;
  font-size: 32px;
  color: #1f1f1f;
  white-space: nowrap;
}

.qt-stats-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}

.qt-stats-number {
  font-family: 'Inter ExtraBold', sans-serif;
  font-size: 64px;
  line-height: normal;
  background: linear-gradient(124deg, #1482ff 9%, #cf11ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.qt-stats-label {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  line-height: normal;
  color: #1f1f1f;
}

@media (max-width: 979px) {
  .qt-stats-number {
    font-size: 44px;
  }

  .qt-stats-label {
    font-size: 18px;
  }

  .qt-stats-title {
    font-size: 24px;
  }
}

@media (max-width: 479px) {
  .qt-stats-number {
    font-size: 34px;
  }

  .qt-stats-label {
    font-size: 15px;
  }

  .qt-stats-since {
    font-size: 22px;
  }
}
/*#endregion*/

/*#region qt-cards*/
.qt-cards {
  padding: 64px 0;
}

.qt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.qt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.qt-card-img {
  width: 100%;
  height: 250px;
  border-radius: 24px;
  overflow: hidden;
}

.qt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.qt-card-title {
  color: #181d27;
  font-family: 'Inter SemiBold', sans-serif;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

.qt-card:hover .qt-card-title {
  color: #245fdf;
}

@media (max-width: 979px) {
  .qt-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .qt-card-img {
    height: 220px;
  }
}
/*#endregion*/

/*#region qt-guide*/
.qt-guide {
  background: #f5f9ff;
  padding: 64px 0 74px;
}

.qt-guide .container {
  max-width: none;
  padding: 0;
  width: 100%;
}

.qt-guide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.qt-guide-title {
  margin: 0;
  color: #181d27;
  font-family: 'Inter Bold', sans-serif;
  font-size: 32px;
  line-height: 40px;
  text-align: center;
}

.qt-guide-tabs {
  max-width: 1290px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #ced1d6;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.qt-guide-tabs::-webkit-scrollbar {
  display: none;
}

.qt-guide-tab {
  height: 64px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #ced1d6;
  border-radius: 8px 8px 0 0;
  color: #10141b;
  font-family: 'Inter SemiBold', sans-serif;
  font-size: 18px;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.qt-guide-tab:hover:not(.is-active) {
  color: #00A2CF;
}

.qt-guide-tab.is-active {
  border-bottom: 4px solid #00A2CF;
  color: #00A2CF;
}

.qt-guide-panel {
  display: none;
  width: 100%;
}

.qt-guide-panel.is-active {
  display: block;
}

.qt-guide-slider {
  position: relative;
  max-width: 1012px;
  margin: 0 auto;
  width: 100%;
}

/* Khi toàn bộ mục vừa 1 page thì không cần nút điều hướng */
.qt-guide-slider.is-single .qt-guide-nav {
  display: none;
}

.qt-guide-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
}

.qt-guide-track::-webkit-scrollbar {
  display: none;
}

/* Mỗi page là 2 hàng × N cột (N theo từng tab), nút điều hướng chuyển từng page */
.qt-guide-page {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 235px);
  grid-auto-rows: 162px;
  gap: 24px;
}

.qt-guide-page--cols2 {
  grid-template-columns: repeat(2, 235px);
}

.qt-guide-page--cols3 {
  grid-template-columns: repeat(3, 235px);
}

/* Khi chỉ có 1 page thì căn giữa nội dung */
.qt-guide-slider.is-single .qt-guide-track {
  justify-content: center;
}

.qt-guide-item {
  width: 235px;
  height: 162px;
  background: #fff;
  border: 1px solid #ced1d6;
  border-radius: 16px;
  box-shadow: 0 0.5px 0.5px rgba(25, 33, 61, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 12px 24px;
  text-decoration: none;
  flex-shrink: 0;
}

.qt-guide-item-icon {
  width: 56px;
  height: 56px;
  border: 0.5px solid #ced1d6;
  border-radius: 12px;
  background: linear-gradient(206deg, #f4f4f6 16%, #f0f6fe 86%);
  box-shadow: inset 0 -1.17px 1.17px rgba(150, 161, 172, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qt-guide-item-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.qt-guide-item-label {
  color: #6b707a;
  font-family: 'Inter Medium', sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.qt-guide-item:hover,
.qt-guide-item.is-highlight {
  border: 1.5px solid #3990ff;
  box-shadow: 0 5px 7.5px rgba(74, 58, 255, 0.06);
}

.qt-guide-item:hover .qt-guide-item-icon,
.qt-guide-item.is-highlight .qt-guide-item-icon {
  background: linear-gradient(180deg, #3990ff 0%, #2662ff 100%);
  border-color: #99c5f7;
  box-shadow: 0 2px 2.5px rgba(74, 58, 255, 0.25);
}

/* Icon chuyển sang trắng khi nền icon thành gradient xanh (hover / highlight) */
.qt-guide-item:hover .qt-guide-item-icon img,
.qt-guide-item.is-highlight .qt-guide-item-icon img {
  filter: brightness(0) invert(1);
}

.qt-guide-item:hover .qt-guide-item-label,
.qt-guide-item.is-highlight .qt-guide-item-label {
  color: #170f49;
  font-family: 'Inter SemiBold', sans-serif;
}

.qt-guide-nav {
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px);
  box-shadow: 0 8px 11px rgba(141, 141, 141, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.qt-guide-nav img {
  width: 11px;
  height: 19px;
}

.qt-guide-nav--prev {
  left: -66px;
}

.qt-guide-nav--prev img {
  transform: rotate(180deg);
}

.qt-guide-nav--next {
  right: -66px;
}

.qt-guide-nav:hover {
  background: #fff;
}

.qt-guide-nav.is-disabled {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 8px rgba(141, 141, 141, 0.12);
  cursor: default;
}

.qt-guide-nav.is-disabled:hover {
  background: rgba(255, 255, 255, 0.55);
}

.qt-guide-nav.is-disabled img {
  opacity: 0.4;
}

@media (max-width: 1150px) {
  .qt-guide-nav--prev {
    left: -8px;
  }

  .qt-guide-nav--next {
    right: -8px;
  }
}

@media (max-width: 979px) {
  .qt-guide-inner {
    padding: 0 16px;
  }

  /* canh trái để tab đầu không bị cắt khi thanh tab cuộn ngang */
  .qt-guide-tabs {
    justify-content: flex-start;
  }

  .qt-guide-title {
    font-size: 24px;
    line-height: 34px;
  }

  .qt-guide-tab {
    font-size: 16px;
    padding: 8px 14px;
  }

  .qt-guide-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 162px;
    flex: 0 0 100%;
  }

  .qt-guide-item {
    width: auto;
  }
}

@media (max-width: 560px) {
  .qt-guide-item {
    height: 160px;
    padding: 20px 8px;
  }

  .qt-guide-tab {
    font-size: 14px;
    height: 52px;
    padding: 6px 10px;
  }
}

@media (max-width: 380px) {
  .qt-guide-page {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
/*#endregion*/

/*#region qt-videos*/
.qt-videos {
  padding: 64px 0;
  background: #fff;
}

/* 4 card 300px + gap 24 = 1272 -> cần nội dung 1280px */
.qt-videos .container {
  max-width: 1320px;
}

.qt-videos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.qt-videos-title {
  margin: 0;
  color: #181d27;
  font-family: 'Inter Bold', sans-serif;
  font-size: 32px;
  line-height: 40px;
}

.qt-videos-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #00A2CF;
  border-radius: 8px;
  color: #00A2CF;
  font-family: 'Inter Medium', sans-serif;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.qt-videos-all img {
  width: 20px;
  height: 20px;
}

.qt-videos-all:hover {
  background: #f0f6fe;
}

.qt-videos-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.qt-video-card {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.qt-video-thumb {
  position: relative;
  height: 169px;
  border: 1.5px solid #3990ff;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f6fa;
  box-shadow: 0 5px 15px rgba(74, 58, 255, 0.06);
}

.qt-video-thumb img.qt-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qt-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  padding: 16px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.qt-video-play-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.qt-video-label {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 16px;
  background: #fff;
  border: 1px solid #c5cbde;
  border-radius: 12px;
  box-shadow: 0 5px 7.5px rgba(74, 58, 255, 0.06);
}

.qt-video-label--brand {
  border-color: #3990ff;
}

.qt-video-label span {
  flex: 1;
  color: #19213d;
  font-family: 'Inter SemiBold', sans-serif;
  font-size: 13px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qt-video-label img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: grayscale(1) brightness(1.5);
}

.qt-video-card:hover .qt-video-label img {
  filter: none;
}

.qt-video-card:hover .qt-video-label {
  border-color: #3990ff;
}

@media (max-width: 979px) {
  .qt-videos-title {
    font-size: 24px;
  }
}

@media (max-width: 599px) {
  .qt-videos-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .qt-video-card {
    width: 100%;
    max-width: 340px;
  }
}
/*#endregion*/

/*#region qt-support*/
.qt-support {
  background: linear-gradient(243deg, #82d7fe 1%, #0bb1fe 28%, #166bfe 90%);
  padding: 64px 0;
}

.qt-support-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}

.qt-support-title {
  margin: 0;
  color: #fff;
  font-family: 'Inter Bold', sans-serif;
  font-size: 32px;
  line-height: 40px;
  text-align: center;
}

.qt-support-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.qt-support-item {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.qt-support-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.qt-support-item span {
  color: #fff;
  font-family: 'Inter Medium', sans-serif;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}

.qt-support-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 979px) {
  .qt-support-title {
    font-size: 24px;
  }

  .qt-support-item {
    min-width: 150px;
  }
}
/*#endregion*/
