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

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

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

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

.sx-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 1100px) {
    .container {
        width: 1270px;
    }
}
/* end base */

/*#region sx-hero*/
.sx-hero {
  position: relative;
  overflow: hidden;
  margin-top: -60px;
  background: url('/amis-san-xuat/sites/help/images/pages/home-sanxuat/bg-search.webp') center / cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sx-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 96px 20px 72px;
  width: 100%;
}

.sx-hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sx-hero-avatar-core img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.sx-hero-title {
  margin: 0;
  color: #fff;
  font-family: 'Inter Bold', sans-serif;
  font-size: 32px;
  line-height: 48px;
  text-align: center;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.sx-hero-search {
  width: 100%;
  max-width: 924px;
  height: 56px;
  background: #fff;
  border: 3px solid #1482ff;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding-left: 16px;
}

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

.sx-hero-search-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Live search form (hkb-searchbox) inside hero */
.sx-hero-search .hkb-site-search {
  flex: 1;
  max-width: none;
  margin: 0;
}

.sx-hero-search .hkb-site-search::after {
  display: none;
}

.sx-hero-search .hkb-site-search__field {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #333;
  padding: 14px 20px 14px 8px !important;
  border-radius: 9999px !important;
  min-width: 0;
}

.sx-hero-search .hkb-site-search__field::placeholder {
  color: #5d5d5d;
  font-size: 16px;
}

.sx-hero-search .hkb-site-search__button {
  display: none;
}

@media (max-width: 979px) {
  .sx-hero-title {
    font-size: 24px;
    line-height: 34px;
  }

  .sx-hero-inner {
    padding: 64px 16px 48px;
    gap: 24px;
  }
}

@media (max-width: 479px) {
  .sx-hero-title {
    font-size: 18px;
    line-height: 26px;
  }

  .sx-hero-search .hkb-site-search__field {
    font-size: 14px;
  }
}
/*#endregion*/

/*#region sx-stats*/
.sx-stats {
  position: relative;
  background: url('/amis-san-xuat/sites/help/images/pages/home-sanxuat/bg-agent.webp') center / cover no-repeat;
  padding: 64px 0;
  overflow: hidden;
}

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

.sx-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;
}

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

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

.sx-stats-detail svg {
  flex-shrink: 0;
}

.sx-stats-detail:hover {
  background: #f0faf7;
}

.sx-stats-row {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1052px;
  width: 100%;
  justify-content: center;
}

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

.sx-stats-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

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

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

@media (max-width: 979px) {
  .sx-stats-row {
    flex-direction: column;
    gap: 24px;
  }

  .sx-stats-number {
    font-size: 44px;
  }

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

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

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

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

  .sx-stats-since {
    font-size: 24px;
  }
}
/*#endregion*/

/*#region sx-cards*/
.sx-cards {
  position: relative;
  overflow: hidden;
  background: #f9f9f9;
  padding: 64px 0;
}

.sx-cards-deco {
  position: absolute;
  pointer-events: none;
}

.sx-cards-deco--1 {
  left: -211px;
  top: -44px;
  width: 483px;
  height: 458px;
  object-fit: cover;
  opacity: 0.1;
  transform: rotate(180deg);
  mix-blend-mode: color-burn;
}

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

.sx-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
}

.sx-card-img {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(146deg, #d9f2e9 0%, rgba(192, 223, 215, 0) 99%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sx-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.sx-card:hover .sx-card-title {
  color: #009b71;
}

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

@media (max-width: 599px) {
  .sx-cards-grid {
    grid-template-columns: 1fr;
  }
}
/*#endregion*/

/*#region sx-guide*/
.sx-guide {
  padding: 0;
}

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

.sx-guide-inner {
  position: relative;
  background: linear-gradient(180deg, #e7f2ee 0%, rgba(255, 255, 255, 0) 100%);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.sx-guide-deco {
  position: absolute;
  pointer-events: none;
}

.sx-guide-deco--2 {
  right: 43px;
  top: 15px;
  width: 232px;
  height: 224px;
  object-fit: cover;
  opacity: 0.1;
  transform: rotate(19.66deg);
  mix-blend-mode: color-burn;
}

.sx-guide-deco--3 {
  left: -244px;
  top: 276px;
  width: 783px;
  height: 374px;
  object-fit: cover;
  opacity: 0.1;
  transform: rotate(180deg);
  mix-blend-mode: color-burn;
}

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

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

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

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

.sx-guide-tab:hover:not(.is-active) {
  color: #039855;
}

.sx-guide-tab.is-active {
  border-bottom: 4px solid #039855;
  color: #039855;
}

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

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

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

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

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

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

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

.sx-guide-item-icon {
  width: 56px;
  height: 56px;
  border: 0.5px solid #d5d7da;
  border-radius: 12px;
  background: linear-gradient(186deg, #fafafa 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;
}

/* Icon SVG có tỉ lệ khác nhau -> chỉ set chiều cao, chiều rộng tự theo tỉ lệ gốc */
.sx-guide-item-icon img {
  width: auto;
  height: 30px;
  object-fit: contain;
}

.sx-guide-item-icon .ic-hover {
  display: none;
}

/* Chỉ đổi icon với item có bộ icon hover; item không có (tab 4) giữ nguyên icon */
.sx-guide-item.has-hover:hover .sx-guide-item-icon .ic-normal {
  display: none;
}

.sx-guide-item.has-hover:hover .sx-guide-item-icon .ic-hover {
  display: block;
}

/* Tab "Kết nối ứng dụng": icon là tile vuông tự chứa nền gradient */
.sx-guide-item-icon--tile {
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.sx-guide-item-icon--tile img {
  width: 56px;
  height: 56px;
}

/* Icon Kế toán: glyph nằm trong tile, offset 18.75% như design */
.sx-guide-item-icon--tile .sx-ic-inner {
  position: absolute;
  left: 18.75%;
  top: 18.75%;
  width: 62.5%;
  height: 62.5%;
}

.sx-guide-item-label {
  color: #717680;
  font-family: 'Inter Medium', sans-serif;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}

.sx-guide-item:hover {
  border: 1.5px solid #00eb76;
  box-shadow: 0 5px 7.5px rgba(74, 58, 255, 0.06);
}

.sx-guide-item:hover .sx-guide-item-icon:not(.sx-guide-item-icon--tile) {
  background: linear-gradient(180deg, #00eb76 0%, #058d4e 100%);
  border-color: rgba(255, 255, 255, 0.6);
}

.sx-guide-item:hover .sx-guide-item-label {
  color: #181d27;
}

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

.sx-guide-item.is-highlight .sx-guide-item-icon:not(.sx-guide-item-icon--tile) {
  background: linear-gradient(180deg, #00eb76 0%, #058d4e 100%);
  border-color: rgba(255, 255, 255, 0.6);
}

.sx-guide-nav {
  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;
  padding: 0;
}

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

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

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

/* Khi viewport hẹp không đủ chỗ 2 bên grid, kéo nút vào trong */
@media (max-width: 1408px) {
  .sx-guide-nav--prev {
    left: -8px;
  }

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

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

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

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

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

/* Ở trạng thái disabled chevron vẫn phải nhìn thấy, chỉ nhạt hơn */
.sx-guide-nav.is-disabled img {
  opacity: 0.4;
}

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

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

  .sx-guide-tab {
    font-size: 16px;
    padding: 8px 14px;
    min-width: 120px;
  }

  .sx-guide-nav--prev {
    left: -8px;
  }

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

@media (max-width: 620px) {
  .sx-guide-page {
    grid-template-columns: repeat(3, 162px);
    grid-auto-rows: auto;
  }

  .sx-guide-item {
    height: 162px;
  }
}

@media (max-width: 479px) {
  .sx-guide-page {
    grid-template-columns: repeat(3, 140px);
  }

  .sx-guide-item {
    height: 140px;
    padding: 24px 8px 0;
  }

  .sx-guide-tab {
    font-size: 14px;
    min-width: 100px;
    height: 48px;
    padding: 6px 10px;
  }
}
/*#endregion*/

/*#region sx-videos*/
.sx-videos {
  padding: 64px 0;
}

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

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

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

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

.sx-videos-all:hover {
  background: #f5f9ff;
}

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

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

.sx-video-thumb {
  position: relative;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f6fa;
  box-shadow: 0 5px 7.5px rgba(74, 58, 255, 0.06);
}

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

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

.sx-video-play img {
  width: 24px;
  height: 24px;
}

.sx-video-card:hover .sx-video-play {
  background: rgba(0, 0, 0, 0.5);
}

.sx-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;
}

.sx-video-label:hover {
  border: 1px solid #01d86c;
}

.sx-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;
}

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

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

.sx-video-card:hover .sx-video-label {
  background: #f2fff9;
}

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

  .sx-videos-grid {
    justify-content: center;
  }
}

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

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

/*#region sx-support*/
.sx-support {
  background: linear-gradient(180deg, #0dd57d 0%, #0fa976 100%);
  padding: 64px 0;
}

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

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

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

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

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

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

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

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

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