:root {
  --cl-main: #88b84d;
  --cl-s1: #ed7016;
  --cl-scrollbar: var(--cl-main);
  --font-base: "lora", 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;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: #535353;
  background-color: #1d90c8;
}

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;
}

.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: #2891cc;
  cursor: pointer;
  text-decoration: none;
}

.s-content a:hover {
  color: var(--cl-s1);
  transition: all 0.3s;
}

.s-content {
  text-align: justify;
}

/* .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 img {
  margin: 10px auto;
}

.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,
.c-img video,
.c-img iframe {
  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;
  }
}

.hv_zoom {
  overflow: hidden;
}

.hv_zoom img {
  transition: transform 0.3s ease;
}

.hv_zoom:hover img {
  transform: scale(1.05);
}

.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, #88b84d -65.8%, #0d9494 160.83%);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #88b84d 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: 500;
  margin-bottom: 0.5rem;
}

.menu-footer a:hover {
  color: var(--cl-s2);
}

/* ======================================================
   UX Home Services – Card Grid
   Giao diện: ảnh trên, tên dưới, viền bo tròn, nền trắng
   ====================================================== */
.ux-home-services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 1279px) {
  .ux-home-services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .ux-home-services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 479px) {
  .ux-home-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ux-home-services__item {
  display: flex;
}

.ux-home-services__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  /* border: 2px solid #d4e8f5;
  border-radius: 10px; */
  overflow: hidden;
  text-decoration: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}

/* .ux-home-services__card:hover {
  border-color: #88b84d;
  box-shadow: 0 6px 20px rgba(29, 144, 200, 0.18);
  transform: translateY(-3px);
} */

.ux-home-services__img-wrap {
  position: relative;
  width: 100%;
  padding-top: 80%;
  /* background: #f0f8ff; */
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1d90c8;
  border-right: 3px solid #1d90c8;
  margin-bottom: 6px;
  border-bottom: 3px solid #1d90c8;
}

.ux-home-services__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s ease;
}

.ux-home-services__card:hover .ux-home-services__img-wrap img {
  transform: scale(1.06);
}

.ux-home-services__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #1d90c8;
  opacity: 0.4;
}

.ux-home-services__item-footer {
  padding: 8px 8px 10px;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ux-home-services__item-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .ux-home-services__item-title {
    font-size: 0.875rem;
  }
}

.ux-home-services__card:hover .ux-home-services__item-title {
  color: #1d90c8;
}

/* Nút xem thêm */
.ux-home-services__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1d90c8;
  border: 2px solid #fff;
  padding: 10px 28px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.ux-home-services__btn:hover {
  background: #88b84d;
  border-color: #88b84d;
  color: #fff;
}
