:root {
  --color-main: #333333;
  --color-v1: #2a166f;
  --color-v2: #0092df;
  --color-v3: #da251c;
  --color-v4: #f4f0ff;
  --color-scrollbar: #2a166f;
  --font-main: "Open Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  font-family: var(--font-main);
  color: var(--color-main);
  font-size: 12px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 576px) {
  body {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }
}

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% !important;
  -o-object-fit: cover;
  object-fit: cover;
}

.scale-img {
  transition: all 0.5s;
  overflow: hidden;
}

.scale-img img {
  transition: all 0.5s;
}

.scale-img:hover img {
  transform: scale(1.03) rotateZ(0.3deg) translateY(-2px);
  filter: brightness(1.1) contrast(1.05) saturate(1.1);
}

.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 !important;
  object-fit: contain;
  -o-object-fit: contain;
}

.img__h-full img {
  height: 100% !important;
}

.img__w-full img {
  width: 100%;
}

.img__center img {
  display: block;
  margin: 0 auto;
}

.img__mt-auto img {
  margin-top: auto;
}

.img_plus {
  position: relative;
  display: block;
}

.img_plus:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}

.img_plus:after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}

.img_plus:hover:before {
  right: 50%;
  left: 50%;
  width: 0;
  background: rgba(255, 255, 255, 0.3);
}

.img_plus:hover:after {
  height: 0;
  top: 50%;
  bottom: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.swiper-pagination-bullet-active {
  background: var(--color-v1);
}

.section-about {
  background-image: url("../images/image2.png");
  background-size: auto auto;
  background-position: bottom -16rem left;
  background-repeat: no-repeat;
}

.swiper-hospital-space .swiper-slide {
  opacity: 0;
}

.swiper-hospital-space .swiper-slide.swiper-slide-active,
.swiper-hospital-space .swiper-slide.swiper-slide-next,
.swiper-hospital-space .swiper-slide.swiper-slide-prev {
  opacity: 1;
}

.swiper-hospital-space .swiper-slide.swiper-slide-active .content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right {
  background-image: none;
}

.swiper-pagination-hospital-space .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-hospital-space .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 1);
}

.swiper-service-home .swiper-slide .item .image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  aspect-ratio: 1/1;
  background: var(--color-v2);
  border-top-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  z-index: -1;
  transition: all 0.5s;
}

.swiper-service-home .swiper-slide .item .image::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  aspect-ratio: 1/1;
  background: var(--color-v3);
  border-top-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  z-index: -1;
  transition: all 0.5s;
}

.swiper-service-home .swiper-slide:hover .item .image::before {
  width: 70%;
}

.swiper-service-home .swiper-slide:hover .item .image::after {
  width: 70%;
}

.accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s;
}

.accordion .icon-accordion {
  position: relative;
}

.accordion .icon-accordion::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-main);
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: all 0.5s;
}

.accordion .icon-accordion::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--color-main);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.5s;
}

.accordion.active .icon-accordion::before {
  transform: translateY(-50%) rotate(180deg);
}

.accordion.active .icon-accordion::after {
  transform: translateX(-50%) rotate(90deg);
}

.svg__hv-stroke-white:hover path {
  stroke: #fff;
}

.svg__hv-fill-v2:hover path {
  fill: var(--color-v2);
}

.menu-footer ul li a {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.menu-footer ul li a::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  background: var(--color-v1);
  border-radius: 50%;
  margin-right: 0.5rem;
  display: inline-block;
}

.menu-footer ul li a:hover::before {
  background: var(--color-v3);
}

.menu-footer ul li a:hover {
  color: var(--color-v3);
}

body.no-scroll {
  overflow: hidden;
}

.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);
}

header.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.5s;
  background: #fff;
}

.select-chuyen-khoa .ts-control {
  padding: 0.625rem 1rem;
  font-size: 1rem;
  border: 1px solid #9f9f9f;
  line-height: normal;
}

.ts-dropdown {
  font-size: 1rem;
}

.select-chuyen-khoa .ts-control:after {
  content: "\f0dd";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  color: #676767;
  right: 1rem;
  top: 50%;
  transform: translateY(-57%);
  position: absolute;
  pointer-events: none;
}

.custom-date-input::after {
  content: "\f073";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #676767;
  pointer-events: none;
}

.has-iframe .fancybox__content {
  height: auto !important;
  aspect-ratio: 16/9 !important;
  max-width: 1024px !important;
  padding: 0 !important;
}

.swiper-button-lock {
  display: none !important;
}

.rank-math-breadcrumb p > a:nth-child(1)::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  background-image: url("../images/icon-home.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(0.25rem);
}

.rank-math-breadcrumb p span.separator::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin: 0 0.5rem;
}

.rank-math-breadcrumb a:hover {
  color: var(--color-v1);
}

.rank-math-breadcrumb {
  color: #797979;
}

.rank-math-breadcrumb .last {
  color: var(--color-v1);
}

.triangular-before::before,
.triangular {
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.pagination .pagination-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  font-weight: 600;
  color: #a7a7a7;
}

.pagination .pagination-list .prev-page,
.pagination .pagination-list .next-page {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efefef;
  border-radius: 50%;
  color: var(--color-v1);
}

.pagination .pagination-list li a.active {
  color: var(--color-v1);
}

.swiper-banner-home .swiper-slide .c-img .image-mobile {
  display: none;
}

@media not all and (min-width: 576px) {
  .swiper-banner-home .swiper-slide .c-img .image-mobile {
    display: block;
  }
  .swiper-banner-home .swiper-slide .c-img .image-desktop {
    display: none;
  }
}

@media not all and (min-width: 1280px) {
  .header__bottom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: min(80%, 320px);
    height: 100dvh;
    transform: translateX(-100%);
    transition: all 0.5s;
    font-weight: 600;
  }
  .header__bottom.active {
    transform: translateX(0);
  }
  .menu-header {
    font-weight: 500;
  }
  .menu-header > ul > li > a {
    display: block;
    padding: 0.5rem 1rem;
  }
  .menu-header > ul > li {
    border-bottom: 1px solid #e0e0e0;
  }
  .menu-header ul ul li a {
    display: block;
    padding: 0.5rem 1rem;
    padding-left: 1.5rem;
    border-top: 1px solid #e0e0e0;
  }
  .menu-header ul li {
    position: relative;
  }
  .menu-header .btn-toggle-menu-item {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    width: 2.25rem;
    z-index: 1;
  }
  .menu-header .btn-toggle-menu-item.active i {
    transform: rotate(180deg);
  }
  .menu-header ul li:has(.btn-toggle-menu-item) a {
    padding-right: 2.25rem;
  }
  .menu-header ul ul ul li a {
    padding-left: 2rem;
  }
  .menu-header {
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  }
  .menu-header ul ul {
    display: none;
  }
  .bg-layout-menu-moblie.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
}

@media (min-width: 1280px) {
  .menu-header > ul {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }
  .menu-header > ul > li > a {
    font-weight: 600;
    text-transform: uppercase;
    padding: 1.5rem 0;
    color: #fff;
    display: block;
  }
  .menu-header > ul > li > .btn-toggle-menu-item {
    display: none;
  }
  .menu-header ul li {
    position: relative;
  }
  .menu-header li a {
    white-space: nowrap;
    display: block;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
  }
  .menu-header > ul > li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    width: fit-content;
    background: #fff;
    z-index: 2;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: rotateX(-90deg);
    transform: rotateX(-90deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-origin: top center;
    -ms-transform-origin: top center;
    transform-origin: top center;
    -webkit-transition: -webkit-transform 0.4s
        cubic-bezier(0.17, 0.67, 0.59, 1.21),
      opacity 0.1s 0.1s;
    transition: transform 1s cubic-bezier(0.17, 0.67, 0.59, 1.21),
      opacity 0.1s 0.1s;
  }
  .menu-header ul ul ul {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 100%;
    width: fit-content;
    background: var(--color-v1);
    color: #fff;
    z-index: 2;
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: rotateX(-90deg);
    transform: rotateX(-90deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-origin: top center;
    -ms-transform-origin: top center;
    transform-origin: top center;
    -webkit-transition: -webkit-transform 0.4s
        cubic-bezier(0.17, 0.67, 0.59, 1.21),
      opacity 0.1s 0.1s;
    transition: transform 1s cubic-bezier(0.17, 0.67, 0.59, 1.21),
      opacity 0.1s 0.1s;
  }
  .menu-header li:hover > ul {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
  .menu-header ul ul ul li a:hover {
    background: var(--color-v2);
  }
  .menu-header ul ul li {
    position: relative;
  }
  .menu-header ul ul li:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
  }
  .menu-header .btn-toggle-menu-item {
    pointer-events: none;
  }
  .menu-header .btn-toggle-menu-item i::before {
    content: "\f178";
    margin: 0 0.5rem;
  }
  .menu-header .btn-toggle-menu-item {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }
  .menu-header ul ul li:hover > a {
    background: var(--color-v1);
    color: #fff;
  }
  .menu-header ul ul li:hover > .btn-toggle-menu-item i::before {
    color: #fff;
  }
}

@media (min-width: 1472px) {
  .menu-header > ul > li > a {
    font-size: 1.125rem;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 576px;
  }
}
