@import url("fonts.css");

:root {
  --cl-main: #333333;
  --cl-hover: #303131;
  --cl-scrollbar: var(--cl-main);
  --font-base: "Mulish", sans-serif;
}

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

@media (min-width: 1024px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  font-family: var(--font-base);
  font-weight: normal;
  color: var(--cl-main);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-color: #fff;
  /* line-height: 1.6; */
}

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

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

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

body::-webkit-scrollbar-thumb {
  background: var(--cl-scrollbar);
} */

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

h2,
h3,
h4,
h5,
h6 {
  scroll-margin-top: 160px;
  /* chiều cao header */
}

.s-content {
  line-height: 2;
}

.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 a {
  color: #333333;
  text-decoration: underline;
  /* text-decoration-thickness: 1px;
  text-underline-offset: 3px;

  transition:
    text-underline-offset 0.2s ease,
    opacity 0.2s ease; */
}

.s-content a:hover {
  /* opacity: 0.75; */
}

/* .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 #F5F5F5;
}

.s-content table td {
  border-collapse: collapse;
  border: solid 1px #F5F5F5;
  padding: 10px 12px;
  text-align: center;
  vertical-align: top;
}

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

.c-img video {
  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 1.5s;
  animation: shine 1.5s;
}

.img__::after {
  position: absolute;
  top: 0;
  left: -100%;
  z-index: 2;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%);
  /* Bỏ skewX để trượt thẳng */
}

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

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

.img__v1::after {
  position: absolute;
  top: 0;
  left: -100%;
  z-index: 2;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0) 100%);
}

@-webkit-keyframes shine {
  to {
    left: 100%;
  }
}

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

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

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

.img__v2::after {
  position: absolute;
  top: 0;
  right: -100%;
  /* Bắt đầu từ phải */
  z-index: 2;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0) 100%);
}

@-webkit-keyframes shine-reverse {
  to {
    right: 100%;
    /* Trượt sang trái */
  }
}

@keyframes shine-reverse {
  to {
    right: 100%;
  }
}

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

.btn-primary {
  background: linear-gradient(180deg, #01b355 -65.8%, #0d9494 160.83%);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #01b355 0%, #0d9494 100%);
  z-index: -1;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.btn-primary:hover {
  box-shadow: rgba(1, 179, 85, 0.3) 0px 5px 15px;
}

.btn-primary:hover::before {
  opacity: 1;
  visibility: visible;
}

.hamburger {
  overflow: visible;
  cursor: pointer;
  transition-timing-function: linear;
  transition-duration: 0.15s;
  transition-property: opacity, filter;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.625rem;
}

.hamburger-box {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.hamburger--squeeze .hamburger-inner {
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  transition-duration: 75ms;
}

.hamburger-inner,
.hamburger-inner:after,
.hamburger-inner:before {
  position: absolute;
  width: 1.25rem;
  /* giảm còn 20px */
  height: 0.1875rem;
  /* giảm từ 4px xuống 3px cho cân đối */
  transition-timing-function: ease;
  transition-duration: 0.15s;
  transition-property: transform;
  border-radius: 3px;
  background-color: #fff;
}

.hamburger-inner {
  top: 50%;
  display: block;
  margin-top: -0.0938rem;
  /* nửa chiều cao của thanh 3px */
}

.hamburger--squeeze .hamburger-inner:before {
  transition: top 75ms ease 0.12s, opacity 75ms ease;
}

.hamburger-inner:before {
  top: -0.4375rem;
  /* điều chỉnh theo kích thước mới */
}

.hamburger-inner:after,
.hamburger-inner:before {
  display: block;
  content: "";
}

.hamburger--squeeze .hamburger-inner:after {
  transition: bottom 75ms ease 0.12s,
    transform 75ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-inner:after {
  bottom: -0.4375rem;
}

.hamburger--squeeze.is-active .hamburger-inner {
  transition-delay: 0.12s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner:after,
.hamburger.is-active .hamburger-inner:before {
  background-color: #fff;
}

.hamburger--squeeze.is-active .hamburger-inner:before {
  top: 0;
  transition: top 75ms ease, opacity 75ms ease 0.12s;
  opacity: 0;
}

.hamburger--squeeze.is-active .hamburger-inner:after {
  bottom: 0;
  transition: bottom 75ms ease,
    transform 75ms cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
  transform: rotate(-90deg);
}

.menu_footer ul li a {
  display: block;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 12px;
}


.bg-gradient-primary {
  background-image: linear-gradient(180deg, #01b355 -65.8%, #0d9494 160.83%);
}

.banner-home::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  height: 80%;
  left: 0;
  width: 120%;
  background-image: linear-gradient(180deg, #fbfffd 0.01%, #d6fee9 104.27%);
  background-size: contain;
  z-index: 1;
  -webkit-clip-path: url(#my-clip-path);
  clip-path: url(#my-clip-path);
}

.menu-mobile-content>ul>li>ul>li>a {
  font-weight: 700 !important;
  cursor: text;
  pointer-events: none;
}

/* .menu-mobile>ul>li>ul>li>a:hover::after {
  width: 0;
} */

@media (max-width: 576px) {
  .container {
    max-width: 576px;
  }

  .menu_footer:not(:last-child) {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
  }
}

@media (max-width: 768px) {
  .s-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    height: 100% !important;
  }

  .s-content table td {
    min-width: 130px;
  }
}

@media not all and (min-width: 1352px) {}

@media not all and (min-width: 1024px) {
  .menu-moblie {
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    width: min(80%, 320px);
    height: 100dvh;
    z-index: 999;
    transform: translateX(-100%);
    transition: all 0.3s;
  }

  .over-moblie {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s;
  }

  .menu-moblie.is-active {
    transform: translateX(0);
  }

  .over-moblie.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-moblie ul li a {
    display: block;
    padding: 0.5rem 1rem;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
  }

  .menu-moblie ul li:has(ul)>a {
    padding-right: 2rem;
  }

  .menu-moblie ul li {
    position: relative;
  }

  .menu-moblie ul li>.btn-menu-sub {
    position: absolute;
    height: 2.75rem;
    width: 2.75rem;
    right: 0;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .menu-moblie ul ul li a {
    width: 100%;
    padding-left: 1.5rem;
  }

  .menu ul ul {
    display: none;
  }

  .btn-menu-sub {
    transition: all 0.3s;
  }

  .btn-menu-sub.active {
    transform: rotate(180deg);
  }


}

@media not all and (min-width: 768px) {
  .btn-cart {
    position: fixed;
    top: 10rem;
    right: 1rem;
    z-index: 10;
  }
}

@media not all and (min-width: 576px) {}

@media (min-width: 576px) {}

@media (min-width: 768px) {}

@media (min-width: 1072px) {
  .menu>ul {
    display: flex;
    align-items: center;
  }

  .menu ul li {
    /* position: relative; */
    /* cursor: pointer; */
  }

  .menu>ul>li>a {
    display: block;
    color: var(--cl-main);
    font-size: 1rem;
    font-weight: 500;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 28px;
    padding-top: 28px;
    text-transform: uppercase;
  }

  .menu>ul>li:last-child>a {
    padding-right: 0px;
  }

  .menu>ul>li:first-child>a {
    padding-left: 0px;
  }

  .menu>ul>li>a {
    text-align: center;
  }

  .menu ul li a {
    position: relative;
  }

  .menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background-color: var(--cl-main);
    opacity: 0;
    transition: none;
  }

  .menu ul li a:hover::after {
    width: 100%;
    opacity: 1;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  .menu ul li a:not(:hover):not(.active)::after {
    width: 0;
    opacity: 0;
    transition: opacity 0.6s ease-out, width 0s 0.6s;
  }

  .menu ul li a.active::after {
    width: 100%;
    opacity: 1;
    transition: none;
  }

  .menu>ul>li:has(ul)>a {
    padding-right: 1rem;
  }

  .menu ul li>.btn-menu-sub {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  .menu ul li.menu_doc {
    position: relative;
  }

  .menu ul li.menu_doc ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: fit-content;
    background-color: white;
    z-index: 2;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: top;
    transform: translateY(-10px);
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      visibility 0.35s,
      transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 100%;
    padding: 0;
    display: block;
  }

  .menu ul li.menu_doc:hover ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu ul li.menu_doc ul li {
    width: 100%;
  }

  .menu ul li.menu_doc ul ul {
    top: 0;
    left: 100%;
    transform-origin: left;
    transform: translateX(-10px);
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      visibility 0.35s,
      transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .menu ul li.menu_doc ul li:hover ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .menu ul li.menu_doc ul li a {
    padding: 0.375rem 1rem;
    display: block;
    margin-bottom: 0;
  }

  .menu>ul>li>ul {
    position: absolute;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%) scale(0.994) !important;
    padding: 0 calc((100vw - 1200px)/2);
    background-color: white;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: top center;
    transition: opacity 0.18s ease,
      visibility 0.18s ease,
      transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-wrap: wrap;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .menu>ul>li:hover>ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) scale(1) !important;
  }

  .menu::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    /* thấp hơn dropdown z-index: 2 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }

  .menu:has(ul > li:hover > ul)::before {
    opacity: 1;
    visibility: visible;
  }

  .menu>ul>li>ul>li {
    width: 25%;
  }

  .menu>ul>li>ul>li>a {
    font-weight: 600;
    margin-bottom: 10px;
    cursor: text;
    font-size: 1.5rem !important;
    display: block;
  }

  .menu>ul>li>ul>li>a:hover::after {
    width: 0;
  }

  .menu ul ul a {
    padding: 0.5rem 0;
    font-size: 1.25rem;
    margin-bottom: 9px;
    display: block;
    width: fit-content;
  }

  .menu ul ul a:last-child {
    margin-bottom: 0;
  }

  .menu ul ul a:hover {
    color: var(--cl-hover);
    transition: all 0.3s;
  }
}


@media (min-width: 1200px) {}