:root {
  --cl-main: #dfc976;
  --cl-secondary: #836e1e;
  --cl-primary: #00295d;
  --cl-text: #3f3f3f;
}

html,
body {
  scroll-behavior: smooth;
  color: var(--cl-text);
  font-family: "HankenGrotesk", sans-serif;
}

@font-face {
  font-family: "HankenGrotesk";
  src: url(../font/HankenGrotesk-VariableFont_wght.ttf) format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HankenGrotesk";
  src: url(../font/HankenGrotesk-Italic-VariableFont_wght.ttf)
    format("truetype");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url(../font/Nunito-Black.ttf) format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url(../font/Oswald-Bold.ttf) format("truetype");
  font-weight: 700;
  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%;
  -o-object-fit: cover;
  object-fit: cover;
}
/* end fix khung img */

/* 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;
}
/* end hover img scale */

/* 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%;
  }
}
/* end hover img flash */

/* reset css s-content  */
.s-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h5 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h6 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}
.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 {
  font-style: italic;
  background: #ebebeb;
  padding: 1rem;
  border-left: 3px solid #1f72c2;
}
.s-content img {
  max-height: 100vh;
  object-fit: contain;
}
/* end reset css s-content  */

/* 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);
}
/* end css modal */

/* css breadcrumb */
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_white li a {
  color: #fff;
}
.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;
}
/* end css breadcrumb */

.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.logo_mobile img {
  object-fit: contain;
}

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

/* 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);
}

/* css tab content */
.tab-content.active {
  display: block;
}

/* end css tab content */

.header__top {
  background: url(../images/bg_header_top.png) lightgray 50% / cover no-repeat;
}
.btn_call {
  box-shadow: 0 4px 10px 0 rgba(223, 201, 118, 0.3);
}

.sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}
.section_about_left .box_text_number {
  font-family: "Oswald", sans-serif;
  color: transparent;
  background-clip: text;
  --webkit-background-clip: text;
  --webkit-text-fill-color: transparent;
  background-image: url(../images/img_01.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  transition: background-position 0.1s ease-out;
}
.text_hpro {
  position: relative;
  display: inline-block;
  font-family: Nunito;
  font-size: 250px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: normal;
  background: linear-gradient(180deg, #bca345 0%, #e2d9b9 48.08%, #bca345 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  -webkit-text-stroke-color: #5b5b5b;
  /* -webkit-text-stroke-width: 1px; */
  transition: all 0.3s;
  z-index: 1;
}

.text_hpro::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: 
    drop-shadow(0 4px 4px rgba(214, 193, 115, 0.75))
    drop-shadow(0 4px 20px rgba(255, 255, 255, 0.9));
  transform: translate(2px, 2px);
  pointer-events: none;
  opacity: 0.9;
}

/* Hover & Active */
.tab_hpro .tab-link:hover .text_hpro::before,
.tab_hpro .tab-link.active .text_hpro::before {
  filter: drop-shadow(0 0 15px #000000c7);
  transform: translate(3px, 3px);
}
.tab_hpro .tab-link,
.tab_hpro .tab-link .text_hpro {
  transition: all 0.3s;
}
.tab_hpro .tab-link.active,
.tab_hpro .tab-link:hover {
  transform: translateY(-20px);
}
.tab_hpro .tab-link.active .text_hpro,
.tab_hpro .tab-link:hover .text_hpro {
  color: transparent;
  background-clip: text;
  --webkit-background-clip: text;
  --webkit-text-fill-color: transparent;
  background-image: url(../images/bg_04.png);
  text-shadow: none;
  filter: drop-shadow(0px 0px 5px #000000c7);
  background-size: cover;
}

/* Background position cho từng tab */
.tab_hpro .tab-link[data-electronic="tab-0"].active .text_hpro,
.tab_hpro .tab-link[data-electronic="tab-0"]:hover .text_hpro {
  background-position: 0% 0%;
}

.tab_hpro .tab-link[data-electronic="tab-1"].active .text_hpro,
.tab_hpro .tab-link[data-electronic="tab-1"]:hover .text_hpro {
  background-position: 25% 0%;
}

.tab_hpro .tab-link[data-electronic="tab-2"].active .text_hpro,
.tab_hpro .tab-link[data-electronic="tab-2"]:hover .text_hpro {
  background-position: 50% 0%;
}

.tab_hpro .tab-link[data-electronic="tab-3"].active .text_hpro,
.tab_hpro .tab-link[data-electronic="tab-3"]:hover .text_hpro {
  background-position: 75% 0%;
}
.section_hpro {
  background-size: 100% 400px;
}

/* Hoặc nếu bạn muốn hiệu ứng mượt mà hơn với delay */
.tab_hpro .tab-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transition-delay: 0.1s;
}

.tab_hpro .tab-content.active {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

@keyframes fadeUpBounce {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab_hpro .tab-content.active {
  animation: fadeUpBounce 0.8s ease-in-out;
}

.tab_hpro .tab-content p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-in-out;
}

.tab_hpro .tab-content.active p {
  opacity: 1;
  transform: translateY(0);
}

.tab_hpro .tab-content.active p:nth-child(1) {
  transition-delay: 0.1s;
}

.tab_hpro .tab-content.active p:nth-child(2) {
  transition-delay: 0.2s;
}

.bg_home_pro_le {
  background: url(../images/bg_home_pro_le_01.jpg) lightgray 50% / cover
    no-repeat;
}

.module-tabs.tab_branch .tab-link.active a {
  display: block;
}
.module-tabs.tab_branch .tab-link.active {
  position: relative;
}

.SwiperNews-pagination
  .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--cl-secondary);
}
.menu_footer ul li a {
  color: #fff;
  transition: all 0.3s;
  display: block;
  margin-bottom: 0.75rem;
}
.menu_footer ul li a:hover {
  color: var(--cl-main);
}
.btn_social_footer {
  background: linear-gradient(90deg, #636363 0%, #979797 50.48%, #636363 100%);
  transition: all 0.3s;
}
.btn_social_footer:hover {
  background: linear-gradient(
    90deg,
    var(--cl-secondary) 0%,
    var(--cl-secondary) 50.48%,
    var(--cl-secondary) 100%
  );
}
.btn_back_to_top {
  border: 1.5px solid #fff;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(152, 152, 152, 0.8) 26.36%,
    rgba(242, 242, 242, 0.8) 51.66%,
    rgba(221, 221, 221, 0.8) 70.96%,
    rgba(135, 135, 135, 0.8) 100%
  );
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.7) inset,
    0 0 5px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3.5px);
  transition: all 0.3s;
}
.btn_back_to_top:hover {
  background: linear-gradient(
    270deg,
    var(--cl-main) 0%,
    var(--cl-secondary) 26.36%,
    var(--cl-main) 51.66%,
    var(--cl-main) 70.96%,
    var(--cl-secondary) 100%
  );
}
.SwiperFactory .swiper-slide {
  transform: scaleY(0.9);
  transition: all 0.3s;
}
.SwiperFactory .swiper-slide.swiper-slide-active {
  transform: scaleY(1);
}
.img_contain img {
  object-fit: contain;
}
.bg_about_left img,
.bg_about_right img {
  object-fit: fill;
  width: 100%;
  height: 100%;
}
.SwiperProCate-pagination {
  bottom: 0;
  top: unset !important;
}
.SwiperProCate-pagination.swiper-pagination-progressbar
  .swiper-pagination-progressbar-fill {
  background: #dbdbdb !important;
}
.button_plus_minus i {
  transition: all 0.3s;
}
.button_plus_minus.active i {
  transform: rotate(180deg);
}
.box_contact {
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.21);
}
.shadow_compare_cate {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
select.choose_compare {
  width: 100%;
  border-radius: 5px;
  border: 1px solid #b8b8b8;
  background: #dfdfdf;
  padding: 0.75rem 1rem;
}
.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

select.choose_compare {
  width: 100%;
  border-radius: 5px;
  border: 1px solid #b8b8b8;
  background: #dfdfdf;
  padding: 0.75rem 3rem 0.75rem 1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.select-wrapper::after {
  content: "\f0d7";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 40%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #333;
  font-size: 0.875rem;
}

.star-base {
  display: inline-block;
  vertical-align: middle;
  height: 16px;
  background: url(https://noithathpro.com/theme/frontend/images/gray.png);
  font-size: 0;
  position: relative;
}
.star-base a {
  display: inline-block;
  width: 16px;
  height: 16px;
}

.star-base .star-rate {
  background: url(https://noithathpro.com/theme/frontend/images/orange.png);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.te-pagination *{
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;

  &:hover {
    background-color: var(--cl-secondary);
    color: #fff;
  }

}
.te-pagination strong{
  background-color: var(--cl-secondary);
  color: #fff;
}


@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);
  }

  .s-content h1 {
    font-size: 1.5rem;
  }
  .s-content h2 {
    font-size: 1.25rem;
  }
  .s-content h3 {
    font-size: 1.125rem;
  }
  .s-content h4 {
    font-size: 1rem;
  }
  .s-content h5 {
    font-size: 1rem;
  }
  .s-content h6 {
    font-size: 1rem;
  }
  .text_hpro {
    font-size: 122px;
  }
  .section_hpro {
    background-size: 300%;
  }
  .box_img_branch_mobile {
    display: none;
  }
  .module-tabs.tab_branch .tab-link.active .box_img_branch_mobile {
    display: block;
  }
  .name_branch_mobile {
    margin-bottom: 0;
  }
  .module-tabs.tab_branch .tab-link.active .name_branch_mobile {
    margin-bottom: 0.75rem;
  }
  .module-tabs.tab_branch .tab-link.active .box_content_branch_mobile {
    display: block;
  }
  .css_svg_mobile svg {
    width: 1.125rem;
    height: 1.125rem;
  }
  .sticky_contact_mobile {
    border-top: 2px solid #cfae30;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 -3px 4px 0 rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
  }
  .header__top {
    margin-top: 0 !important;
  }
  .section_hpro {
    background-size: 100% 330px;
  }
  .section_about_left {
    background: url(../images/img_02.png) #414141 50% / cover no-repeat;
    background-blend-mode: multiply;
    box-shadow: -4px 4px 15px 0 rgba(0, 0, 0, 0.25) inset;
  }
}
@media (min-width: 1024px) {
  .menu > ul {
    --padding-menu: 1.4rem;
    display: flex;
  }
  .menu ul li {
    position: relative;
    padding: 0.75rem var(--padding-menu);
    text-transform: uppercase;
    font-weight: 500;
  }
  .header__bottom .menu > ul {
    margin: 0 -1.4rem;
  }
  .menu .btn-down-menu {
    margin-left: 0.25rem;
  }
  .menu ul li > a:hover {
    color: var(--cl-main);
    transition: all 0.3s;
  }
  .menu ul ul {
    position: absolute;
    top: 100%;
    transform: translateY(1rem);
    border: 1px solid var(--cl-main);
    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;
  }
  .module-tabs.tab_branch .tab-link.active::after {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: -1rem;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #ffffff99;
  }
}
