:root {
  --cl-main: #0767b0;
  --cl-primary: #d40207;
  --bg-gradient: linear-gradient(180deg, #317ec6 0%, #183d60 100%);
  --cl-txt-1: #163c5b;
}

html,
body {
  scroll-behavior: smooth;
  font-family: "Averta";
}
@font-face {
  font-family: "Averta";
  src: url("../font/Averta-Regular.otf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Averta";
  src: url("../font/Averta-Semibold.otf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Averta";
  src: url("../font/Averta-Bold.otf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Averta";
  src: url("../font/Averta-ExtraBold.otf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Averta";
  src: url("../font/Averta-Black.otf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* fix khung img */
.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;
}
/* hover img scale */
.scale-img {
  overflow: hidden;
}
.scale-img img {
  transition: all 0.5s;
}
.scale-img:hover img {
  scale: 1.1;
  transition: all 0.5s;
}
/* hover img flash */
.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%;
  }
}

/* excerpt.css */
.excerpt-content {
  transition: max-height 0.4s ease-in-out; /* Thêm transition cho max-height */
  overflow: hidden;
}

.excerpt-hidden {
  max-height: var(--max-height, 3.5rem);
  position: relative;
}

.excerpt-hidden::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: linear-gradient(transparent, white);
}

.excerpt-visible {
  /* max-height sẽ được set qua JS */
}

.excerpt-toggle {
  transition: all 0.3s;
}

.excerpt-toggle i {
  transition: transform 0.4s ease-in-out; /* Mượt hơn cho icon */
}

.excerpt-toggle .rotate {
  transform: rotate(180deg);
}
/* reset css s-content  */
.s-content h1 {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.5rem;
}
.s-content h2 {
  font-size: 2em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.5rem;
}
.s-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.5rem;
}
.s-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.5rem;
}
.s-content h5 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.5rem;
}
.s-content h6 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.5rem;
}
.s-content p img.aligncenter {
  margin: auto;
}
.s-content p img.alignleft {
  margin-right: auto;
}
.s-content p img.alignright {
  margin-left: auto;
}
.s-content a {
  color: #2f5aae;
  cursor: pointer;
  text-decoration: none;
}
.s-content ul,
.s-content ol {
  list-style: disc;
  padding: 1.25em;
}
.s-content li {
  margin-top: 10px;
}
.s-content ul li {
  margin-left: 1.3em;
}
.s-content strong {
  font-weight: bold;
}
.s-content i {
  font-style: italic;
}
.s-content table {
  width: 100% !important;
}
.s-content blockquote {
  border-left: 3px solid #11528e;
  padding-left: 1rem;
}
.s-content img {
  max-height: 100vh;
  object-fit: contain;
  width: 100%;
  padding: 0.5rem 0;
}
.s-content figure {
  width: 100%;
}
.s-content table td {
  border-collapse: collapse;
  border: solid 1px #0000006e;
  padding: 3px;
}
.w-\[70\%\] {
  width: 70%;
}

/* Loại bỏ tác động của thẻ <p> và các phần tử thừa */
.wpcf7-form p {
  display: contents;
}
.wpcf7-form .wpcf7-form-control-wrap {
  display: inline;
}
.wpcf7-form br {
  display: none;
}

/* Đảm bảo input và button căn chỉnh đúng */
.wpcf7-form .flex input[type="tel"],
.wpcf7-form .flex input[type="submit"] {
  margin: 0;
}

/* Tùy chỉnh spinner */
.wpcf7-spinner {
  display: contents !important;
}
.btn_submit_register .wpcf7-spinner::before {
  background-color: var(--cl-main) !important;
}
.btn_submit_register span .wpcf7-not-valid-tip{
  position: absolute;
  background: #fff;
  box-shadow: 0 0 2px 2px #d6a6a6;
  padding: .25rem;
  border-radius: 5px;
  top: 150%;
}
.btn_submit_register span label.error{
  display: none!important;
}
/* css modal */
.modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active,
.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  transform: translateY(-20px);
}

.modal.active {
  transform: translateY(0);
}
.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.logo_mobile img {
  object-fit: contain;
}
ul.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: inline-block;
  font-size: 0.875rem;
}

.breadcrumb li a {
  position: relative;
  color: #888;
}

.breadcrumb li a:hover span,
.breadcrumb li a:focus span {
  color: #ff6341;
}

.breadcrumb li a::after {
  content: "/";
  margin: 0 0.5rem;
}

.breadcrumb li:last-child a::after {
  display: none;
}

.breadcrumb li span {
  color: #888;
  font-weight: 600;
}

header.fixed-head {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}
.menu ul ul li > a {
  color: var(--cl-primary);
}
.map-loading {
  padding: 20px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 4px;
}

.SwiperBanner-pagination .swiper-pagination-bullet {
  width: 14px !important;
  height: 14px !important;
  background-color: #fff !important;
  opacity: 0.5;
}
.SwiperBanner-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}
.item_cate_home:hover {
  background: linear-gradient(180deg, #317ec6 0%, #183d60 100%);
  transition: all 0.3s;
}
.item_cate_home:hover img {
  filter: brightness(0) invert(1);
  transition: all 0.3s;
}
.title_page {
  text-align: center;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
}

.SwiperVideoIntro .SwiperVideoIntro-pagination .swiper-pagination-bullet {
  background-color: #fff;
  opacity: 0.5;
  width: 12px;
  height: 12px;
}
.SwiperVideoIntro
  .SwiperVideoIntro-pagination
  .swiper-pagination-bullet-active {
  background-color: #fff;
  opacity: 1;
}
.bg_full {
  background-size: 100% 100%;
}
.list_cate_home {
  background: #fff;
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.25);
}
.btn_see_more:hover {
  background: var(--line, linear-gradient(180deg, #317ec6 0%, #11528e 100%));
  transition: all 0.3s;
}
.SwiperLicense .swiper-slide .name_license {
  display: none;
}
.SwiperLicense .swiper-slide-active .name_license {
  display: block;
}
.tab_pro_home .tab-link.active a {
  color: var(--cl-main);
}
.tab_pro_home .list-tab-items .tab-content.active {
  display: block;
}
.tab_news_home .list-tab-items .tab-content.active {
  display: block;
}
.tab_news_home .tab-link.active a {
  color: #fff;
}
.bg_gradient {
  background: var(--line, linear-gradient(180deg, #317ec6 0%, #11528e 100%));
}
.form_search form input {
  outline: none;
}
.menu_sidebar ul li {
  position: relative;
}
.menu_sidebar ul ul {
  display: none;
}
.menu_sidebar .btn-down-menu {
  position: absolute;
  top: 5px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu_sidebar .btn-down-menu i {
  transition: all 0.3s;
}
.menu_sidebar .btn-down-menu.active i {
  transform: rotate(180deg);
  transition: all 0.3s;
}
.form_contact input,
.form_contact textarea {
  width: 100%;
}
.elementor-element.e-con-full {
  padding: 0;
}
.bg_vision {
  --tw-bg-opacity: 1;
  background-color: rgb(233 240 249 / var(--tw-bg-opacity, 1)) /* #e9f0f9 */;
  position: relative;
  z-index: -2;
  padding-top: 4rem;
}
.input_form_register::placeholder {
  font-size: 0.875rem /* 14px */;
}
.btn_submit_contact input[type="submit"]:hover,
.btn_submit_register input[type="submit"]:hover {
  background: var(--cl-primary);
}
.btn_submit_contact input[type="submit"],
.btn_submit_register input[type="submit"] {
  cursor: pointer;
}
.menu_policy_footer a {
  font-size: 0.875rem;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  transition: all 0.3s;
}
.menu_policy_footer a:hover {
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.login form {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.login form .input {
  border-radius: 0 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid var(--Brnd, #015080);
  background: #fff;
}
.login_page_admin .box_form_login{
  background: #fcfcfc;
  box-shadow: -4px 0px 15px 0px rgba(0, 0, 0, 0.15);
}
.login_page_admin .box_form_login #login{
  width: 100% !important;
}
@media not all and (min-width: 1024px) {
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 80%);
    height: 100dvh;
    background-color: #fef6ff;
    transform: translateX(-100%);
    transition: all 0.3s;
    z-index: 10;
    color: var(--cl-primary) !important;
  }
  .menu ul {
    width: 100%;
  }
  .menu ul li a {
    padding: 0.5rem 1rem;
    display: block;
  }
  .menu ul li {
    position: relative;
  }
  .menu > ul > li {
    border-top: 1px solid #8fcec8;
  }
  .menu > ul > li > ul > li {
    padding-left: 1rem;
  }
  .menu ul li:has(ul) > a {
    padding-right: 2.5rem;
  }
  .menu .btn-down-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .menu ul ul li {
    border-top: 1px solid #8fcec8;
  }
  .menu ul ul {
    display: none;
  }
  header.active-menu .menu,
  header.active-menu .bg-overlay {
    transform: translateX(0);
  }
  .btn-down-menu.active i {
    transform: rotate(180deg);
  }
}
@media (min-width: 1024px) {
  .menu > ul {
    --padding-menu: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .menu ul li {
    position: relative;
    padding: 0.75rem var(--padding-menu);
  }
  .menu .btn-down-menu {
    margin-left: 0.25rem;
  }
  .menu ul li > a:hover {
    color: var(--cl-primary);
    transition: all 0.3s;
  }
  .menu ul ul {
    position: absolute;
    top: 100%;
    transform: translateY(1rem);
    border: 1px solid var(--cl-primary);
    white-space: nowrap;
    transition: all 0.3s;
    pointer-events: none;
    visibility: hidden;
    background-color: #fef6ff;
    opacity: 0;
  }
  .menu ul ul li a:first-child,
  .menu ul ul li a:last-child {
    border-radius: 1.25rem;
    overflow: hidden;
  }
  .menu ul ul ul {
    top: 0;
    left: 100%;
  }
  .menu ul li:hover > ul {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .menu ul ul li > a {
    /* padding: 0.75rem; */
    font-weight: 400;
    font-size: 1rem;
    display: block;
  }
  .menu ul ul li:not(:last-child) {
    border-bottom: 1px solid #8fcec8;
  }
  .menu ul ul li:hover {
    background-color: var(--cl-main);
  }
  .menu ul ul li:hover > a {
    color: #fff;
  }
  .title_page {
    font-size: 1.5rem;
  }
}
