:root {
  --color-main: #363636;
  --color-primary: #3894ff;
  --color-secondary: #ff0000;
  --color-scrollbar: #0047ba;
  --font-main: "Inter", sans-serif;
  --color-primary-dark: #1e6bc3;
  --color-primary-light: #e6f1ff;
  --color-background-light: #f8fafc;
  --color-primary-dark-hover: #18569c;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 1024px) {
  html {
    font-size: 16px;
  }
}
body {
  margin-left: auto;
  margin-right: auto;
  color: var(--color-main);
  overflow-x: hidden;
  font-family: var(--font-main);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

input,
button,
select,
textarea {
  font-family: var(--font-main);
  outline: none;
}

body::-webkit-scrollbar-track {
  background-color: #fff;
}

body::-webkit-scrollbar {
  width: 0.5rem;
  background-color: #f5f5f5;
}

body::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar);
}

a,
i,
input[type="submit"],
button {
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.s-content ol {
  list-style: decimal;
  margin-left: 15px;
  margin-bottom: 10px;
}

.s-content ul {
  list-style: initial;
  margin-left: 15px;
  margin-bottom: 10px;
}

.s-content li {
  list-style: inherit;
  margin-bottom: 5px;
}

.s-content p {
  margin-bottom: 10px;
}

.s-content img {
  display: block;
  max-width: 100%;
  margin: 10px auto;
  width: auto !important;
  -o-object-fit: contain;
  object-fit: contain;
  height: auto !important;
}

.s-content table,
.s-content iframe {
  max-width: 100%;
  width: 100%;
}

.s-content table {
  border-collapse: collapse;
  width: 100%;
  border: solid 1px rgba(0, 0, 0, 0.431372549);
}

.s-content table td {
  border-collapse: collapse;
  border: solid 1px rgba(0, 0, 0, 0.431372549);
  padding: 3px;
}

.s-content h1,
.s-content h2,
.s-content h3,
.s-content h4,
.s-content h5,
.s-content h6 {
  display: block;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

.s-content h1 {
  font-size: 2em;
  margin-top: 0.67em;
  margin-bottom: 0.67em;
}

.s-content h2 {
  font-size: 1.5em;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.s-content h3 {
  font-size: 1.17em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.s-content h4 {
  font-size: 1em;
  margin-top: 0.6em;
  margin-bottom: 0.6em;
}

.s-content h5 {
  font-size: 0.83em;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}

.s-content h6 {
  font-size: 0.67em;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}

.c-img {
  position: relative;
  display: block;
}

.c-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.scale-img {
  transition: all 0.5s;
  overflow: hidden;
}

.scale-img img {
  scale: 1.1;
  transition: all 0.5s;
}

.img__ {
  position: relative;
  overflow: hidden;
}

.img__:hover::after {
  -webkit-animation: shine 0.75s;
  animation: shine 0.75s;
}

.img__::after {
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  transform: skewX(-25deg);
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

.hv_img {
  display: block;
  position: relative;
  overflow: hidden;
}

.hv_img::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  content: "";
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.hv_img:hover::before {
  -webkit-animation: circle 0.75s;
  animation: circle 0.75s;
}

@keyframes circle {
  0% {
    opacity: 1;
  }

  40% {
    opacity: 1;
  }

  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

.video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.img__contain img {
  width: 100%;
  height: auto;
  object-fit: contain;
  -o-object-fit: contain;
}

.img__h-full img {
  height: 100%;
}

.img__w-full img {
  width: 100%;
}

.img__center img {
  display: block;
  margin: 0 auto;
}

.text-cl-secondary {
  color: var(--color-secondary);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.5;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
}

.breadcrumb a {
  color: #475569;
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb li:last-child span {
  color: var(--color-main);
  font-weight: 600;
}

.breadcrumb a,
.breadcrumb span {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(56vw, 640px);
}

.product-category-banner__media {
  min-height: 260px;
  height: 36vw;
  max-height: 460px;
}

.product-category-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-category-banner .z-1 {
  z-index: 1;
}

.product-category-banner__title {
  font-size: 2rem;
  line-height: 1.2;
}

.product-category-banner__breadcrumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #fff;
}

.product-category-banner__breadcrumb .breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.product-category-banner__breadcrumb .breadcrumb li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.75);
}

.product-category-banner__breadcrumb .breadcrumb a,
.product-category-banner__breadcrumb .breadcrumb span {
  color: #fff;
}

.product-category-banner__breadcrumb .breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 1024px) {
  .product-category-banner__title {
    font-size: 3rem;
  }
}

.news-home {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #fff;
}

.news-home__title {
  font-size: 1.5rem;
}

.news-home__more {
  border-radius: 5px;
}

.news-card {
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.news-card:hover {
  border-color: rgba(0, 71, 186, 0.3);
  box-shadow: 0 10px 28px rgba(0, 71, 186, 0.12);
  transform: translateY(-4px);
}

.news-card__title {
  min-height: 48px;
}

@media (min-width: 1024px) {
  .news-home {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .news-home__title {
    font-size: 2rem;
  }
}

.quick-support {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.quick-support__title {
  font-size: 1.75rem;
}

.quick-support__card {
  min-height: 92px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.quick-support__avatar {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(0, 71, 186, 0.08);
}

.quick-support__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .quick-support__title {
    font-size: 2rem;
  }
}

.product-home {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.product-home__category:last-child {
  margin-bottom: 0;
}

.product-home__title {
  font-size: 1.5rem;
}

.product-home__more {
  border-radius: 5px;
}

@media (min-width: 1024px) {
  .product-home {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .product-home__category {
    margin-bottom: 3rem;
  }

  .product-home__title {
    font-size: 2rem;
  }
}

.home-banner {
  position: relative;
  overflow: hidden;
  background: #eef3f8;
}

.home-banner__slider {
  position: relative;
}

.home-banner__item {
  display: block;
  position: relative;
  min-height: 260px;
  color: inherit;
}

.home-banner__media {
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 260px;
  max-height: 680px;
  overflow: hidden;
}

.home-banner__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-banner__img {
  object-fit: cover;
  object-position: center;
}

.home-banner__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(0, 71, 186, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-banner__slider:hover .home-banner__nav,
.home-banner__slider:focus-within .home-banner__nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-banner__nav:hover,
.home-banner__nav:focus {
  background: #0047ba;
}

.home-banner__nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.home-banner__nav--prev {
  left: 24px;
}

.home-banner__nav--next {
  right: 24px;
}

.home-banner__nav i {
  display: block;
}

.home-banner__pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.home-banner__pagination .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  margin: 0 !important;
  border: 2px solid #fff;
  background: transparent;
  opacity: 1;
}

.home-banner__pagination .swiper-pagination-bullet-active {
  background: #fff;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #0000000d;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  background-clip: content-box;
  border: 2px solid #0000;
  border-radius: 20px;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
  background-color: #94a3b8;
}

@media (max-width: 767px) {
  .home-banner__item,
  .home-banner__media {
    min-height: 220px;
  }

  .home-banner__media {
    aspect-ratio: 4 / 3;
  }

  .home-banner__nav {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .home-banner__nav--prev {
    left: 12px;
  }

  .home-banner__nav--next {
    right: 12px;
  }

  .home-banner__pagination {
    bottom: 14px;
  }
}

.container {
  max-width: 1440px;
}

.floating-hotline {
  overflow: visible;
}

.hotline-ring {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid rgba(16, 185, 129, 0.55);
  animation: hotline-pulse 1.9s ease-out infinite;
  pointer-events: none;
}

.hotline-ring-delay {
  animation-delay: 0.7s;
}

.hotline-icon {
  animation: hotline-shake 1.15s ease-in-out infinite;
  transform-origin: 50% 55%;
}

@keyframes hotline-pulse {
  0% {
    transform: scale(0.88);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.28);
    opacity: 0;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@keyframes hotline-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(-16deg);
  }
  30% {
    transform: rotate(12deg);
  }
  45% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(8deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.no-scroll {
  overflow: hidden;
}

@media not all and (min-width: 992px) {
  .menu-mobile ul li {
    margin-bottom: 0.25rem;
    position: relative;
  }
  .menu-mobile ul ul li {
    margin-top: 0.25rem;
  }
  .menu-mobile ul li a {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    line-height: 31px;
    display: block;
  }
  .menu-mobile ul ul li a {
    padding-left: 1.5rem;
  }
  .menu-mobile ul ul ul li a {
    padding-left: 2.5rem;
  }
  .menu-mobile ul li:hover > a {
    background: #f8fafc;
  }
  .menu-mobile ul li .menu-arrow {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    height: calc(45px - 1rem);
    aspect-ratio: 1;
    background: #f1f5f9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 0.5rem;
  }
  .menu-mobile ul ul {
    display: none;
  }
}

@media (min-width: 992px) {
  .menu-desktop > ul {
    display: flex;
    gap: 0.25rem;
    height: 100%;
  }
  .menu-desktop > ul > li::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 90%;
    height: 2px;
    border-radius: 0.5rem 0.5rem 0 0;
    background: var(--color-primary-light);
    transition: all 0.3s ease;
    transform: translateX(-50%) scale(0);
    transform-origin: bottom;
  }
  .menu-desktop > ul > li:hover::before {
    background: var(--color-background-light);
    transform: translateX(-50%) scale(1);
  }
  .menu-desktop > ul > li {
    cursor: pointer;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .menu-desktop li {
    position: relative;
  }
  .menu-desktop .menu-arrow {
    font-size: 0.55rem;
  }
  .menu-desktop > ul > li:has(ul) {
    padding-right: 2rem;
  }
  .menu-desktop > ul > li:has(ul) .menu-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
  }
  .menu-desktop ul ul {
    padding: 0.5rem 0;
    position: absolute;
    color: var(--color-main);
    top: 100%;
    left: 0;
    min-width: 260px;
    width: fit-content;
    z-index: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  .menu-desktop li:hover > ul {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .menu-desktop li:hover > .menu-arrow {
    transform: translateY(-50%) rotate(180deg);
  }
  .menu-desktop ul ul ul {
    top: 0;
    left: 100%;
  }
  .menu-desktop ul ul li a {
    padding: 0.5rem 1rem;
    display: block;
    white-space: nowrap;
  }
  .menu-desktop ul ul li:hover > a {
    background: var(--color-primary-light);
    color: var(--color-primary);
  }
}
