/*==========================================================================
 * Help AMIS Công việc - Homepage CSS (from Figma node 9016:495)
 * Namespace: .cv-*
 *==========================================================================*/

:root {
  --cv-ai-gradient: linear-gradient(165.6deg, #1482ff 8.87%, #cf11ff 100%);
  --cv-brand-green: #0e9a62;
  --cv-tab-green: #039855;
  --cv-highlight-green: #4ca30d;
  --cv-blue: #245fdf;
  --cv-text-primary: #181d27;
  --cv-text-secondary: #6b707a;
  --cv-stroke: #ced1d6;
}

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

@media screen and (min-width: 768px) {
    .home .ht-page {
        padding: 0 0;
    }
}

/*#region cv-hero */
.cv-hero {
  position: relative;
  overflow: hidden;
  background: url('/sites/help/images/pages/home-congviec/bg-hero.webp') center / 100% 100% no-repeat;
  min-height: 415px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
  padding: 32px 20px;
  text-align: center;
}

.cv-hero-avatar {
  width: 94px;
  height: 94px;
  display: block;
}

.cv-hero-avatar img {
  width: 100%;
  height: 100%;
  display: block;
}

.cv-hero-title {
  font-family: 'Inter SemiBold', sans-serif;
  font-size: 42px;
  line-height: 54px;
  font-weight: 600;
  background: var(--cv-ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.cv-hero-search {
  width: 100%;
  height: 56px;
  border-radius: 9999px;
  border: 3px solid #50beff;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cv-hero-search-form {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 16px;
  gap: 8px;
  height: 100%;
  margin: 0;
}

.cv-hero-search-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

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

.cv-hero-search-input::placeholder {
  color: #9da2ac;
  font-size: 16px;
}

@media (max-width:979px) {
  .cv-hero {
    min-height: 300px;
  }

  .cv-hero-inner {
    padding: 48px 20px;
  }

  .cv-hero-title {
    font-size: 26px;
    line-height: 36px;
  }

  .cv-hero-avatar {
    width: 64px;
    height: 64px;
  }

  .cv-hero-search {
    height: 48px;
  }
}

/*#endregion*/

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

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

.cv-stats-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cv-stats-text {
  color: #1f1f1f;
  font-size: 32px;
  font-family: 'Inter SemiBold', sans-serif;
}

.cv-stats-gradient {
  background: linear-gradient(108.18deg, #1482ff 8.87%, #cf11ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 32px;
  font-family: 'Inter SemiBold', sans-serif;
  white-space: nowrap;
}

.cv-btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-width: 96px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--cv-brand-green);
  color: var(--cv-brand-green);
  font-size: 14px;
  font-family: 'Inter Medium', sans-serif;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-btn-detail img {
  width: 20px;
  height: 20px;
}

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

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

.cv-stats-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

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

.cv-stats-desc {
  color: #1f1f1f;
  font-size: 24px;
  font-family: 'Inter', sans-serif;
  width: max-content;
}

@media (max-width:979px) {
  .cv-stats-text,
  .cv-stats-gradient,
  .cv-stats-label {
    font-size: 22px;
  }

  .cv-stats-number {
    font-size: 40px;
  }

  .cv-stats-desc {
    font-size: 18px;
    width: auto;
  }

  .cv-stats-row {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .cv-stats-item {
    width: 100%;
  }
}

/*#endregion*/

/*#region cv-topics */
.cv-topics {
  padding: 64px 0;
}

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

.cv-topic-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 24px;
  text-decoration: none !important;
  color: inherit;
}

.cv-topic-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.cv-topic-card-title {
  color: var(--cv-text-primary);
  font-size: 20px;
  font-family: 'Inter SemiBold', sans-serif;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}

@media (max-width:979px) {
  .cv-topics-grid {
    grid-template-columns: 1fr;
  }

  .cv-topic-card-img {
    height: auto;
  }
}

/*#endregion*/

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

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

.cv-guide-title {
  color: var(--cv-text-primary);
  font-size: 32px;
  font-family: 'Inter Bold', sans-serif;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  margin-bottom: 24px;
}

.cv-guide-tabs-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--cv-stroke);
}

.cv-guide-tab {
  height: 64px;
  padding: 8px 20px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--cv-stroke);
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #10141b;
  font-size: 18px;
  font-family: 'Inter SemiBold', sans-serif;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  cursor: pointer;
  white-space: nowrap;
}

.cv-guide-tab.is-active {
  color: var(--cv-tab-green);
  border-bottom: 4px solid var(--cv-tab-green);
}

.cv-guide-tabs-content {
  width: 100%;
}

.cv-guide-panel {
  display: none;
}

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

.cv-guide-grid-wrap {
  position: relative;
  max-width: 865px;
  margin: 0 auto;
  padding: 24px 0;
}

.cv-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cv-guide-card {
  background: #fff;
  border: 1px solid var(--cv-stroke);
  border-radius: 16px;
  box-shadow: 0 0.5px 0.5px rgba(25, 33, 61, 0.04);
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.2s ease;
}

.cv-guide-card:hover {
  border: 1.5px solid var(--cv-highlight-green);
  box-shadow: 0px 5px 15px rgba(74, 58, 255, 0.06);
}

.cv-guide-card:hover .cv-guide-card-icon {
  background: linear-gradient(180deg, #4ca30d 0%, #1e6f00 100%);
  border-radius: 12px;
  border: 1.5px solid #fff;
  box-shadow: 0px 5px 15px rgba(74, 58, 255, 0.06);
}

.cv-guide-card:hover .cv-guide-card-icon img {
  filter: brightness(0) invert(1);
}

.cv-guide-card:hover .cv-guide-card-label {
  color: #101828;
  font-family: 'Inter SemiBold', sans-serif;
}

.cv-guide-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(205.82deg, #f4f4f6 16.3%, #f3fee7 86.48%);
  border-radius: 12px;
  border: 0.5px solid var(--cv-stroke);
  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;
}

.cv-guide-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.cv-guide-card-label {
  color: var(--cv-text-secondary);
  font-size: 16px;
  font-family: 'Inter Medium', sans-serif;
  line-height: 20px;
  text-align: center;
}

.cv-guide-card:hover .cv-guide-card-label {
  color: #101828;
  font-family: 'Inter SemiBold', sans-serif;
}

.cv-guide-card.is-highlight {
  border: 1.5px solid var(--cv-highlight-green);
  box-shadow: 0 5px 7.5px rgba(74, 58, 255, 0.06);
}

.cv-guide-card.is-highlight .cv-guide-card-icon {
  box-shadow: 0 2px 5px rgba(3, 197, 71, 0.25), inset 0 -2px 2px rgba(7, 137, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.cv-guide-card.is-highlight .cv-guide-card-label {
  color: #170f49;
  font-family: 'Inter SemiBold', sans-serif;
  font-weight: 600;
}

.cv-guide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.05);
  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;
}

.cv-guide-arrow img {
  width: 32px;
  height: 32px;
  display: block;
}

.cv-guide-arrow--prev {
  left: -72px;
}

.cv-guide-arrow--next {
  right: -72px;
}

@media (max-width:1199px) {
  .cv-guide-arrow--prev {
    left: -20px;
  }

  .cv-guide-arrow--next {
    right: -20px;
  }
}

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

  .cv-guide-tabs-bar {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .cv-guide-grid-wrap {
    overflow-x: auto;
  }

  .cv-guide-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }

  .cv-guide-card {
    padding: 24px 12px;
    gap: 10px;
  }

  .cv-guide-card-icon {
    width: 44px;
    height: 44px;
  }

  .cv-guide-card-icon img {
    width: 30px;
    height: 30px;
  }

  .cv-guide-card-label {
    font-size: 14px;
  }

  .cv-guide-arrow {
    display: none;
  }
}

@media (max-width:600px) {
  .cv-guide {
    padding: 40px 0 48px;
  }

  .cv-guide-inner {
    gap: 16px;
  }

  .cv-guide-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 8px;
  }

  .cv-guide-tabs-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }

  .cv-guide-tab {
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 8px 6px;
    font-size: 14px;
    line-height: 20px;
    white-space: normal;
    text-align: center;
  }

  .cv-guide-tab:last-child {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
  }

  .cv-guide-grid-wrap {
    overflow-x: visible;
    padding: 16px 0;
  }

  .cv-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cv-guide-card {
    min-width: 0;
    padding: 20px 8px;
  }
}

/*#endregion*/

/*#region cv-footer */
.cv-footer-channels {
  background: linear-gradient(93.55deg, #1f91cc 1.12%, #6fd561 99.54%);
  padding: 64px 40px;
}

.cv-footer-channels-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1298px;
  margin: 0 auto;
}

.cv-footer-channels-title {
  color: #fff;
  font-size: 32px;
  font-family: 'Inter Bold', sans-serif;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.2px;
  text-align: center;
}

.cv-footer-channels-grid {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cv-footer-channel {
  flex: 1;
  min-width: 166px;
  padding: 12px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  text-align: center;
}

.cv-footer-channel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cv-footer-channel-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-footer-channel-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.cv-footer-channel-label {
  color: #fff;
  font-size: 16px;
  font-family: 'Inter Medium', sans-serif;
  line-height: 20px;
  text-align: center;
}

.cv-footer-bottom {
  background: #f5f5f5;
  padding: 12px 40px 0;
}

.cv-footer-bottom-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1272px;
  margin: 0 auto;
  padding: 16px 0 24px;
  color: #6b707a;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  line-height: 22.4px;
}

.cv-footer-copy {
  flex: 1;
}

.cv-footer-privacy {
  color: #6b707a;
  text-decoration: none;
  white-space: nowrap;
}

.cv-footer-privacy:hover {
  text-decoration: underline;
}

@media (max-width:979px) {
  .cv-footer-channels {
    padding: 48px 20px;
  }

  .cv-footer-channels-title {
    font-size: 24px;
    line-height: 32px;
  }

  .cv-footer-channels-grid {
    flex-direction: column;
  }

  .cv-footer-channel {
    width: 100%;
    min-width: 0;
  }

  .cv-footer-bottom {
    padding: 12px 20px 0;
  }

  .cv-footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}

/*#endregion*/

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

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

.cv-videos-title {
  color: var(--cv-text-primary);
  font-size: 32px;
  font-family: 'Inter Bold', sans-serif;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.2px;
}

.cv-btn-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-width: 96px;
  padding: 0 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--cv-tab-green);
  color:var(--cv-tab-green);
  font-size: 14px;
  font-family: 'Inter Medium', sans-serif;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.cv-btn-all img {
  width: 20px;
  height: 20px;
}

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

.cv-video-card {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-video-thumb {
  display: grid;
  height: 169px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ebecf2;
  background: #f7f6fa;
  cursor: pointer;
}

.cv-video-card--featured .cv-video-thumb {
  box-shadow: 0 5px 15px rgba(74, 58, 255, 0.06);
}

.cv-video-img {
  grid-area: 1/1;
  width: 100%;
  height: 169px;
  object-fit: cover;
  display: block;
}

.video-card-play-btn {
  grid-area: 1/1;
  place-self: center;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card-play-btn img {
  width: 20px;
  height: 20px;
}

.cv-video-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #c5cbde;
  min-height: 40px;
}

.cv-video-card--featured .cv-video-label {
  border: 1.5px solid var(--cv-highlight-green);
}

.cv-video-card:hover .cv-video-thumb {
  border-color: var(--cv-highlight-green);
}

.cv-video-card:hover .cv-video-label {
  border-width: 1.5px;
  border-color: var(--cv-highlight-green);
}

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

.cv-video-label img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: block;
  aspect-ratio: unset;
  border-radius: 0;
  box-shadow: none;
  filter: grayscale(1) brightness(1.5);
  transition: filter 0.2s ease;
}

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

@media (max-width:979px) {
  .cv-videos-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .cv-videos-title {
    font-size: 24px;
  }

  .cv-video-card,
  .cv-video-thumb {
    width: 100%;
  }

  .cv-video-thumb {
    height: auto;
    aspect-ratio: 16/9;
  }

  .cv-video-img {
    height: 100%;
  }
}

/*#endregion*/
