:root {
  --font-main: "UTM Aptima", 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-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;
}

.s-content-ul ul {
  margin-left: 0;
}

.s-content-ul li {
  list-style: none;
  margin-left: 0;
}

.s-content-ul li::before {
  content: "\f058";
  font-family: "Font Awesome 7 Free";
  font-weight: 500;
  font-size: 14px;
  opacity: 0.8;
  display: inline-block;
  margin-right: 5px;
}

.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 {
  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% !important;
}

.img__w-full img {
  width: 100% !important;
}

.img__center img {
  display: block;
  margin: 0 auto;
}

.menu-header > ul {
  display: flex;
}

.menu-header ul li a {
  padding: 0.75rem 1rem;
  display: block;
}

.menu-header > ul > li:hover > a {
  color: var(--color-v2);
}

.menu-header ul ul li a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.menu-header ul ul li:hover > a {
  text-decoration: underline;
}

.menu-header ul li {
  position: relative;
}

.menu-header ul li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-v2);
  color: var(--color-main);
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
}

.menu-header ul li:hover > ul {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.menu-lang ul {
  display: flex;
}

.menu-lang ul li a {
  padding: 0 0.5rem;
  display: block;
}

.menu-lang ul li:hover > a {
  color: var(--color-v2);
}

.btn-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  width: 30px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  color: #fff;
}

.btn-menu-toggle span {
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  border-radius: 2px;
}

.btn-menu-toggle span:nth-child(1) {
  width: 40%;
}

.btn-menu-toggle span:nth-child(2) {
  width: 100%;
}

.btn-menu-toggle span:nth-child(3) {
  width: 70%;
}

/* Hover Effect */
.btn-menu-toggle:hover span {
  width: 100%;
}

/* Active State (X Animation) */
.btn-menu-toggle.active-menu span {
  width: 100%;
}

.btn-menu-toggle.active-menu span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.btn-menu-toggle.active-menu span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.btn-menu-toggle.active-menu span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-pattern {
  background-image: url("../images/header-pattern.png");
}

.menu-header-moblie ul li a {
  padding: 0.5rem 0;
  display: block;
}

.menu-header-moblie ul li a:hover {
  color: var(--color-v2);
}
header {
  transition:
    transform 0.35s ease,
    background-color 0.3s ease;
  will-change: transform;
}

header.header-hidden {
  transform: translateY(-100%);
}

/* Swiper Pagination Customization */
.bannerSwiper .swiper-pagination {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.bannerSwiper .swiper-pagination-bullet {
  width: 32px;
  height: 32px;
  background: transparent;
  opacity: 1;
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.bannerSwiper .swiper-pagination-bullet svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.bannerSwiper .swiper-pagination-bullet circle {
  fill: none;
  stroke-width: 2.5;
}

.bannerSwiper .swiper-pagination-bullet circle.bg {
  stroke: #e0e0e0; /* Gray for inactive */
}

.bannerSwiper .swiper-pagination-bullet circle.progress {
  stroke: var(--color-v1); /* Purple for active progress */
  stroke-dasharray: 100.5; /* Approx 2 * pi * 16 */
  stroke-dashoffset: 100.5;
  transition: none; /* Controlled by JS property */
}

.bannerSwiper .swiper-pagination-bullet-active circle.progress {
  stroke-dashoffset: calc(100.5 * (1 - var(--progress, 0)));
}

.bannerSwiper .swiper-pagination-bullet-active circle.bg {
  stroke: var(--color-v1);
  opacity: 0.2;
}

.bannerSwiper .swiper-pagination-bullet .dot {
  width: 10px;
  height: 10px;
  background: var(--color-v2); /* Yellow dot */
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.bannerSwiper .swiper-pagination-bullet-active .dot {
  opacity: 1;
  transform: scale(1);
}

/* Animations for Banner Content */
.bannerSwiper .swiper-slide-active h1 {
  animation: fadeInUp 0.8s both 0.3s;
}
.bannerSwiper .swiper-slide-active h4 {
  animation: fadeInUp 0.8s both 0.1s;
}
.bannerSwiper .swiper-slide-active p {
  animation: fadeInUp 0.8s both 0.5s;
}
.bannerSwiper .swiper-slide-active .inline-block {
  animation: fadeInUp 0.8s both 0.7s;
}
.bannerSwiper .swiper-slide-active .relative {
  animation: fadeInRight 1s both 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-footer ul li a {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.menu-footer ul li a:hover {
  color: var(--color-v2);
}

.title__tag {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.title__tag::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--color-main);
  margin-left: 0.5rem;
  margin-bottom: 0.25rem;
}

.title__header {
  font-family: 'UVN Nhan Nang';
  font-size: 2.75rem;
  line-height: 1.05;
}

@keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
  10% {
    -webkit-transform: scale(0.91);
    transform: scale(0.91);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  17% {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
  33% {
    -webkit-transform: scale(0.87);
    transform: scale(0.87);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  45% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

.pagination ul {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
}

.pagination ul li {
  list-style: none;
}

.pagination .pagelink,
.pagination .pagecur,
.pagination a,
.pagination strong,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  background-color: #fff;
  color: var(--color-main);
  border: 1px solid #f0f0f5;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pagination .pagelink:hover,
.pagination a:hover {
  background-color: var(--color-v1);
  color: #fff;
  border-color: var(--color-v1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -5px rgba(85, 19, 160, 0.3);
}

.pagination .pagecur,
.pagination strong {
  background-color: var(--color-v1);
  color: #fff;
  border-color: var(--color-v1);
  box-shadow: 0 8px 20px -5px rgba(85, 19, 160, 0.4);
}

/* Adjustments for directional arrows/text if they exist */
.pagination ul li:first-child a,
.pagination ul li:last-child a {
  border-color: transparent;
  background-color: transparent;
  color: var(--color-v3);
  box-shadow: none;
}

.pagination ul li:first-child a:hover,
.pagination ul li:last-child a:hover {
  background-color: var(--color-bg);
  color: var(--color-v1);
  transform: none;
}

@media (min-width: 1024px) {
  .title__header {
    font-size: 3.75rem;
  }
  .wow {
    visibility: hidden;
  }
  .elementor-editor-active .wow {
    visibility: visible !important;
  }
}
