/* Bắt đầu css tuỳ chỉnh */


/* ========================================================== Toàn trang ==============================================================  */



.ct-justify {
  text-align: justify !important;
}

.ct-al-it {
  display: flex !important;
  align-items: flex-end !important;
}

.ct-border-radius img,
.ct-border-radius video,
.ct-border-radius,
.ct-border-radius .col-inner,
.ct-border-radius .box-image{
  border-radius: 20px !important;
}

.ct-clpm,
.ct-clpm p,
.ct-clpm h2,
.ct-clpm h3,
.ct-clpm h5 {
  color: var(--primary-color) !important;
}


.ct-no-pb,
.ct-no-pb p {
  padding-bottom: 0 !important;
}


.ct-mb-10px p {
  margin-bottom: 10px !important;
}

.ct-mb-0 p{
  margin-bottom: 0 !important;
}

.ct-shadow-p {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.ct-a-i-center {
  display: flex;
  align-items: center;
}

/* ========================================================== Nav =======================================================================*/
/* Nav top */
.nav-dark .nav>li.header-divider {
  border-color: hsl(0deg 0% 0% / 44%) !important;
}

.html_topbar_left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ct-contact-box-nav {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--primary-color);
  padding: 8px 12px;
  font-weight: bold;
  display: inline-block;
  color: black;
}

/* vệt sáng */
.ct-contact-box-nav::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 300%;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 70%);

  transform: translateX(-100%);
  animation: shineEffect 3s linear infinite;
  pointer-events: none;
}

/* animation */
@keyframes shineEffect {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}


.header-top {
  background-color: transparent !important;
}

#top-bar {
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--primary-color)
}

.ct-recruit-wrapper-nav-top {
  display: flex;
  gap: 8px;
  /* khoảng cách giữa các phần tử */
  align-items: flex-end;
  /* canh giữa theo chiều dọc */
}

.ct-recruit-nav-top {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--primary-color);
}

.ct-recruit-nav-top::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 300%;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translateX(-100%);
  animation: shineEffect 3s linear infinite;
  pointer-events: none;
}

.ct-recruit-icon-nav-top {
  display: block;
  margin: 0 auto 0;
  width: 20px;
  height: auto;
}

.ct-recruit-text-nav-top {
  font-weight: bold;
  font-size: 12px !important;
}


/* Nav chính */
.nav-spacing-xlarge>li {
  margin: 0 20px !important;
}

/* page header breadcrumbs */
.ct-page-header .page-title-inner {
  padding-bottom: 5px !important;
}

.ct-breadcrumbs {
  font-size: 14px;
  margin-bottom: 15px;
}

.ct-breadcrumbs-line {
  margin: 0;
}

.ct-breadcrumbs-link {
  text-decoration: none;
}

.ct-breadcrumbs-link:hover {
  text-decoration: underline;
}

.ct-breadcrumbs-current {
  font-weight: bold;
}

.ct-breadcrumbs a,
.ct-breadcrumbs span,
.ct-breadcrumbs p {
  color: white;
}

/* ========================================================== Chân trang =======================================================================*/


.ct-text-h5-footer {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;

  /* để gạch chỉ nằm dưới nội dung */
}

.ct-text-h5-footer h5,
.ct-text-p-footer p {
  margin-bottom: 10px;
  font-size: 0.75rem;
}

.ct-text-p-footer a {
  color: white !important;
}



.ct-text-h5-footer::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  /* canh bên trái */
  width: 70px;
  height: 3px;
  background-color: white;
  /* hoặc var(--primary-color) */
  /* bỏ transform vì không cần canh giữa nữa */
}


.ct-box-icon-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.ct-link-icon-footer {
  width: 34px;
  height: 34px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.ct-link-icon-footer img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.ct-link-icon-footer:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.ct-col-4-1-footer {
  padding-right: 0;
}

/* bản đồ */
.ct-map-container-footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0;
  position: relative;
  /* Thêm để làm container cho absolute positioning */
}

.ct-map-buttons-footer {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;

}

.ct-map-button-footer {
  padding: 5px 10px !important;
  cursor: pointer;
  font-size: 9px !important;
  transition: all 0.3s ease;
  border-radius: 10px !important;
  margin-right: 0 !important;
}

.ct-map-button-footer.button.primary {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.ct-map-button-footer.button.primary.is-outline {
  background-color: var(--primary-color);
  opacity: 0.7;
  color: white;
  border: 1px solid rgba(var(--primary-color-rgb), 0.7);
}

.ct-map-button-footer:hover {
  opacity: 0.9;
}

.ct-map-iframe-footer {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 10px;
}








/* ========================================================== Trang chủ =======================================================================*/
/* hiệu ứng xuất hiện trong slider trang chủ */


/* phần  */
.ct-text-h2-intro-home h2 {
  color: var(--primary-color);
  margin-bottom: 0;

}



.ct-gallery-solution-home p {
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 22px !important;
}

.ct-text-p-section-4-home {
  position: relative;
  display: inline-block;
  /* hoặc inline nếu bạn muốn nó ôm sát nội dung */
}


/* phần những con số */
.ct-text-p-section-4-home::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  /* nằm ngay dưới text */
  width: 100%;
  height: 1px;
  /* độ dày gạch */
  background-color: var(--primary-color);
  border-radius: 2px;
  /* bo tròn nếu muốn */
}


/* phần dự án  tiêu biểu */
.ct-col-12-filter-portfolio-home .col-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  /* căn giữa theo chiều dọc nếu cần */
  flex-wrap: wrap;
  /* nếu muốn xuống dòng khi không đủ chỗ, có thể bỏ nếu cần cố định 1 hàng */
  gap: 20px;
  /* tùy chọn: khoảng cách giữa các phần tử nếu dùng wrap */
}

.ct-col-12-filter-portfolio-home .col-inner .text {
  flex: 1;
  /* các phần tử chia đều không gian */
  text-align: center;
  /* căn giữa chữ bên trong */
  min-width: 200px;
  /* giúp responsive đẹp hơn */

}


.ct-gallery-portfolio-home .box-text {
  background-color: rgba(92, 92, 92, 0.286);
}

.ct-item-portfolio-home {
  position: relative;
  overflow: hidden;
  transition: all 0.7s ease;
}

.ct-item-portfolio-home .ct-text-title-item-portfolio {
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
}

.ct-item-portfolio-home .ct-text-desc-item-portfolio {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.7s ease;
}

.ct-item-portfolio-home:hover .ct-text-desc-item-portfolio {
  max-height: 200px;
  opacity: 1;
}

.ct-btn-item-portfolio {
  display: none !important;
  /* ✅ Ẩn hoàn toàn khi chưa hover */
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: background 0.7s ease;
}

.ct-item-portfolio-home:hover .ct-btn-item-portfolio {
  display: inline-block !important;
  /* ✅ Hiện lại khi hover */
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

/* ✅ Hiệu ứng trượt và mờ dần khi hiện ra */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* hiệu ứng ẩn hiện khi lọc*/
/* Mặc định ẩn tất cả col */
.ct-col-filter-1-portfolio-home {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  transition: all 0.5s ease !important;
}

.ct-col-filter-2-portfolio-home {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  transition: all 0.5s ease !important;
}

.ct-col-filter-3-portfolio-home {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  transition: all 0.5s ease !important;
}

/* Khi hiển thị */
.ct-show-col-portfolio-home {
  max-height: 500px !important;
  opacity: 1 !important;
}

/* Button active */
.ct-active-button-portfolio-home {
  background-color: var(--fs-color-primary) !important;
  color: white !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}


/* phần tin tức */
.ct-blog-1-news-home a,
.ct-blog-1-news-home p {
  color: white !important;
}

.ct-gallery-partner-home .box-image {
  display: flex !important;
  align-items: flex-end !important;
  height: 110px !important;
}

.ct-news-home .post-title a {
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Giới hạn 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 5px !important;
}

.from_the_blog_excerpt{
  text-align: justify;
}


/* ========================================================== trang giới thiệu =======================================================================*/
/* phân giá trị cốt lõi */
.ct-quality-icon {
  font-size: 65px;
  width: 65px;
  height: 65px;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* chữ bên dưới icon */
.ct-text-h2-core-about-us h2 {
  margin-top: 1%;
  transition: transform 0.3s ease;
  text-transform: uppercase;
}

.ct-text-h2-core-about-us h2:hover {
  transform: scale(1.1);
  /* Phóng to 110% khi hover */
}

.ct-text-p-core-about-us p {
  color: var(--primary-color);
  text-align: justify;
}

/* icon chất lượng */
.ct-quality-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 6px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
}

.ct-quality-icon {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

.ct-quality-icon-shield,
.ct-quality-icon-check {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hiệu ứng khi hover */
.ct-quality-icon-wrapper:hover .ct-quality-icon {
  animation: shake 0.5s ease;
}

/* Keyframes cho hiệu ứng shake */
@keyframes shake {
  0% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-5deg);
  }

  40% {
    transform: rotate(5deg);
  }

  60% {
    transform: rotate(-4deg);
  }

  80% {
    transform: rotate(4deg);
  }

  100% {
    transform: rotate(0deg);
  }
}


.res-img-vision-intro-1 img, .res-img-vision-intro-1 {
  height: 60px;
  width: 81px !important;
}

.res-img-vision-intro-2 img, .res-img-vision-intro-2 {
  height: 60px;
  width: 57.75px !important;
}



/* icon đổi mới */
.ct-renew-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 6px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
}

.ct-renew-icon {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

/* nét vẽ chính */
.ct-renew-arrow,
.ct-renew-circle {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Reuse animation shake đã định nghĩa trước */
.ct-renew-icon-wrapper:hover .ct-renew-icon {
  animation: shake 0.5s ease;
}

/* icon bền vững */
/* CSS */
.ct-sustain-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 6px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
}

.ct-sustain-icon {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

.ct-sustain-leaf,
.ct-sustain-vein {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dò lại animation shake đã có */
.ct-sustain-icon-wrapper:hover .ct-sustain-icon {
  animation: shake 0.5s ease;
}

/* lịch sử hình thành */
/* thanh stack */
/* CSS */
/* Wrapper tổng chứa line và các node */
.ct-stack-about-us {
    position: relative;
    width: 100%;
    height: 100px;
    /* đủ chỗ chứa năm + node */
    margin: 20px 0;
    z-index: 1;
}

/* Đường kẻ ngang nối các node - nằm giữa chấm tròn */
.ct-stack-line-about-us {
    position: absolute;
    top: calc(50% + 17px);
    /* 50% là giữa wrapper, +10px để lên đúng giữa node */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 0;
    /* để nằm dưới node */
}

/* Wrapper từng node (năm + chấm tròn) */
.ct-stack-node-wrapper {
    position: absolute;
    top: 50%;
    /* đặt giữa khối chứa */
    left: 0;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    cursor: pointer;
}

/* Phần năm phía trên node */
.ct-stack-node-year {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-weight: bolder;
    user-select: none;
    cursor: pointer;
}

/* Chấm tròn */
.ct-stack-node-about-us {
    width: 25px;
    height: 25px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 2;
}

/* Vị trí từng node cho 9 nút */
.ct-stack-node-1-about-us {
    left: 8.33%;
}

.ct-stack-node-2-about-us {
    left: 18.75%;
}

.ct-stack-node-3-about-us {
    left: 29.17%;
}

.ct-stack-node-4-about-us {
    left: 39.59%;
}

.ct-stack-node-5-about-us {
    left: 50%;
}

.ct-stack-node-6-about-us {
    left: 60.42%;
}

.ct-stack-node-7-about-us {
    left: 70.84%;
}

.ct-stack-node-8-about-us {
    left: 81.26%;
}

.ct-stack-node-9-about-us {
    left: 91.68%;
}


/* Hover effect */
.ct-stack-node-wrapper:hover .ct-stack-node-about-us {
    background-color: var(--primary-color);
    transition: 0.3s ease;
}

.ct-stack-node-wrapper:hover .ct-stack-node-year {
    color: #000;
}

.ct-stack-node-wrapper.active .ct-stack-node-about-us {
    background-color: var(--primary-color);
}

.ct-stack-node-wrapper.active .ct-stack-node-year {
    color: #000;
}
/* phần thành tựu*/

.ct-galley-ach-about-us p {
  color: black !important;
  text-transform: uppercase;
}

.ct-col-ach-about-us {
  padding-bottom: 0 !important;
}

.ct-col-ach-about-us .gallery-col {
  padding-bottom: 0 !important;
}

/* văn hoá doanh nghiệp */
.ct-text-icon-culture-about-us p {
  text-transform: uppercase;
  margin-top: 3%;
}

/*phần quy trình hoàn thiện dự án */
.ct-number-pro-about-us {
  /* background-color: var(--primary-color); */
  background-color: rgb(155, 155, 155);
}

.ct-hover-pro-about-us:hover .ct-number-pro-about-us {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.ct-hover-pro-about-us:hover p {
  color: var(--primary-color) !important;
}

/* phần nhận xét đánh giá */

.ct-star-rating-about-us i {
  margin-right: 4px;
  font-size: 30px;
}
.ct-image-review-about-us img {
  border-radius: 50% !important;
}

.ct-quote-about-us {
  position: relative;
  font-size: 18px;
  font-style: italic;
  color: #333;
  padding-left: 60px;
  margin: 20px 0;
}

.ct-quote-about-us::before {
  content: "“";
  font-family: serif;
  font-size: 80px;
  color: #f4c542;
  /* màu vàng nhạt hoặc có thể là #ccc */
  position: absolute;
  top: -20px;
  left: 10px;
  line-height: 1;
}


/* phần lịch sử hình thành */
/* .ct-col-vision-slider-intro {
    display: none;
} */
.ct-vision-intro h2, .ct-mission-intro h2, .ct-core-intro h2{
    font-size: 1.6em !important;
}

.ct-slider-vision-intro {
    height: 70vh;
}
/* .ct-slider-vision-intro .flickity-page-dots{
    display: none;
} */

.ct-row-slider-vision-intro {
    display: flex !important;
    align-items: center !important;
    height: 70vh;
}



/* ========================================================== trang dịch vụ =======================================================================*/
.ct-img-assurance-service img {
  width: 80px !important;
  height: 80px !important;
}

.ct-img-2-assurance-service img {
  width: 72px !important;
  height: 80px !important;
}

.ct-btn-service-1-service {
  margin-right: 0 !important;
}

.ct-step-title-pro-service {
  position: relative;
  color: white;
  text-align: center;
  overflow: hidden;
}

/* Nội dung chính cần có z-index cao hơn */
.ct-step-title-pro-service>* {
  position: relative;
  z-index: 1;
  padding-top: 5px;
}

/* Nửa hình tròn phía dưới (quay ngược lại) */
.ct-step-title-pro-service::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 50px;
  background-color: var(--primary-color);
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  z-index: 0;
  /* Nửa hình tròn ở dưới nội dung */
}

.ct-text-title-pro-service p {
  margin-top: 10px;
}

.ct-text-content-pro-service p {
  padding: 0 20px;
  margin-bottom: 0;
}

.ct-img-pro-service {
  padding: 20px
}



.ct-row-step-pro-service {
  height: 450px;
}

.ct-col-full-height-pro-service .col-inner {
  position: relative;
  height: 100% !important;
}

/* Ảnh nằm cố định ở đáy khung */
.ct-img-pro-service {
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

.ct-text-button-intro-service{
    margin-left: 10px !important;
    margin-right: 0 !important;
}


/* form đăng ký tư vấn */
/* form liên hệ */

.ct-row-form-contact {
  background: linear-gradient(to right, #990000 0%, #ff9d9d 50%, #990000 100%);
  border-radius: 15px;
}

.ct-image-form-contact img {
  border-radius: 15px;
}

.ct-form-div {
  text-align: center;
}

.ct-form-input {
  /* border-radius: 61px !important; */
  width: 80% !important;
}

/* .ct-form-input::placeholder {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 300 !important;
  font-size: 0.7rem !important;
} */

.ct-row-form-contact .col {
  padding-bottom: 0;
}

.ct-form-submit {
  /* width: 80% !important; */
  background-color: var(--primary-color) !important;
  margin-right: 0 !important;
  margin-top: 2% !important;
}

input.ct-form-submit[type='submit'] {
  /* border-radius: 61px !important; */
  font-size: 1.2rem !important;
}

.ct-form-group span {
  width: 100%;
}

.ct-form-div small {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 300 !important;
  font-size: 0.5rem !important;
}

 .res-review-center-about-us p{
  font-size: 24px !important;
 }





/* ========================================================== trang liên hệ =======================================================================*/

.ct-row-contact {
  background-color: white;
}

.ct-col-12-contact {
  padding: 0 !important;
}

.ct-text-h5-contact {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  /* để gạch chỉ nằm dưới nội dung */
}

.ct-text-h5-contact h5 {
  color: var(--primary-color) !important;
  /* để gạch chỉ nằm dưới nội dung */
}



.ct-text-h5-contact::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  /* canh bên trái */
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
  /* hoặc var(--primary-color) */
  /* bỏ transform vì không cần canh giữa nữa */
}

.ct-color-contact p {
  color: black;
}

.ct-color-contact strong {
  color: var(--primary-color) !important;
}

/* form liên hệ */


.ct-form-div-contact {
  text-align: left;
}

.ct-form-input-contact {
  /* border-radius: 61px !important; */
  width: 100% !important;
}

/* .ct-form-input::placeholder {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 300 !important;
  font-size: 0.7rem !important;
} */


.ct-form-submit-contact {
  /* width: 80% !important; */
  background-color: var(--primary-color) !important;
  margin-right: 0 !important;
  margin-top: 2% !important;
}

input.ct-form-submit-contact[type='submit'] {
  border-radius: 5px !important;
  font-size: 0.7rem !important;
  padding: 5px 30px;
}

.ct-form-group-contact span {
  width: 100%;
}




/* icon */
.ct-box-icon-contact {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.ct-link-icon-contact {
  width: 34px;
  height: 34px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.ct-link-icon-contact i {
  font-size: 14px;
  /* Giảm kích thước icon Font Awesome */
  color: #ffffff;
}

.ct-link-icon-contact svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.ct-link-icon-contact:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.ct-col-4-1-contact {
  padding-right: 0;
}


/* ========================================================== trang dự án =======================================================================*/
.ct-section-1-portfolio {
  height: calc(100vh - 135px);
}

.ct-section-1-portfolio .flickity-viewport {
  height: calc(100vh - 135px) !important;
}

.ct-text-1-portfolio {
  position: absolute;
  /* Top: 50%; */
  bottom: 0;
  z-index: 10;
  text-align: center;
  padding-left: 4%;
  padding-right: 4%;

}

.ct-text-padding-portfolio {
  padding-left: 4%;
  padding-right: 4%;
  padding-bottom: 0 !important;
}

.ct-text-1-1-portfolio p {
  margin-bottom: 1%;
  color: var(--primary-color) !important;
}

.ct-text-row-portfolio {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  /* Bóng đổ nhẹ */
}

.ct-banner-gray-portflio {
  position: relative;
  overflow: hidden;
  /* Đảm bảo phần overlay không tràn ra ngoài */
  z-index: 2;
}

.ct-banner-gray-portflio::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 25%;
  /* 1/5 chiều cao */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  z-index: 1;
  pointer-events: none;
  /* Không ảnh hưởng đến click chuột */
}

/* ========================================================== trang hồ sơ năng lực =======================================================================*/
/* css phần video */
.ct-banner-bri img,
.ct-banner-bri {
  border-radius: 10px !important;
}

/* ========================================================== trang sản phẩm =======================================================================*/
.title-wrapper {
  font-weight: bolder;
  font-size: 20px;
}

.ct-contact-for-price {
  font-weight: bolder;
  color: red;
  font-size: 18px;
}

.ct-btn-view-product {
  border-radius: 60px !important;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-bottom: 0 !important;
}

.ct-btn-view-product:hover {
  background-color: #005f99;
}


.ct-text-1-commit {
  display: flex;
  align-items: center;

  color: #000;
  /* chữ màu đen */
  margin-bottom: 25px;
}


.ct-text-1-commit h4 {
  margin-bottom: 0;
  font-size: 14px;
}

.ct-text-1-commit i {
  font-size: 32px;
  color: var(--primary-color);
  /* dùng màu chính của theme */
  margin-right: 8px !important;
  min-width: 45px !important;
}

#product-sidebar {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ct-title-commit-product {
  margin-bottom: 15px;
  padding-right: 20px;
}

.ct-title-commit-product p {
  font-size: 18px;
  font-weight: 700;

}

.ct-section-commit-product {
  margin-left: 10px;
  /* khoảng cách trái */
  width: calc(100% - 10px) !important;
  /* trừ phần margin bên trái */
  border-radius: 8px;
  background-color: #EBEBF0;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;

  padding: 15px 5px 10px 20px !important;
}

.ct-row-commit-product {
  margin-left: 10px !important;
  /* khoảng cách trái */
  width: calc(100% - 10px) !important;
  /* trừ phần margin bên trái */
  border-radius: 8px;
  background-color: #EBEBF0;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;

  padding: 20px 5px 10px 0px !important;
}

.ct-row-commit-product .ct-btn-view-product {
  display: none;
}

.ct-row-commit-product img {
  border-radius: 8px;
}

.ct-product-custom-rsb-product {
  padding-left: 25px !important;
}

.woocommerce-variation-add-to-cart :where(.ux-quantity, .single_add_to_cart_button, .ux-buy-now-button),
form.cart :where(.ux-quantity, .single_add_to_cart_button, .ux-buy-now-button) {
  padding: 10px 15px !important;
}

.ct-col-pro-fea-home .title-wrapper,
.ct-col-pro-fea-home .price-wrapper {
  text-align: center;
}

.ct-col-pro-fea-home .product-small {
  padding: 10px 15px !important;
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button {
  border-radius: 5px !important;
}

.shop-sidebar {
  padding-top: 40px !important;
}






































/* =============================================================================================các phần tử khác */
/* nút nổi gọi điện*/
/* ===== NÚT ZALO NỔI ===== */
#zalo-floating {
  position: fixed;
  bottom: 10px;
  right: 20px;
  z-index: 9999;
}

#zalo-floating-btn {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-right: 0;
}

#zalo-floating-btn img {
  width: 50px;
}

/* ===== POPUP ZALO ===== */
#zalo-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Ẩn khi thêm class */
#zalo-popup.zalo-hidden {
  display: none !important;
}

.zalo-modal {
  width: 90vw;
  max-width: 480px;
  background: #3a3a3a;
  border-radius: 16px;
  padding: 32px 24px 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  position: relative;
  animation: scalein .25s ease;
}

@keyframes scalein {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.zalo-close {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  font-weight: 700;
  margin: 0;
}

#zalo-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #ffffff;
  text-align: center;
}

.zalo-title {
  color: #ffffff !important;
}

.zalo-content {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  /* Đảm bảo không wrap */
}

/* BÊN TRÁI */
.zalo-info {
  flex: 1;
  /* Chiếm không gian bằng nhau */
  min-width: 0;
  /* Ngăn tràn nội dung */
}

/* BÊN PHẢI */
.zalo-qr {
  flex: 1;
  /* Chiếm không gian bằng nhau */
  display: flex;
  justify-content: center;
  /* Căn giữa hình QR */
}

.zalo-name {
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
  color: #ffffff;
}

.zalo-phone {
  font-size: 16px;
  margin: 0 0 16px;
  color: #ffffff;
}

.zalo-link {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  background: #0091ff;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 0.5;
  /* line-height: 1.2; */
  transition: background 0.2s;
}

.zalo-link svg {
  stroke-width: 2.5;
  /* Đậm hơn */
  stroke: #fff;
  /* Đảm bảo màu trắng nếu cần */
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
}



.zalo-link:hover {
  background: #0079d6;
}

.zalo-link img {
  width: 18px;
  height: 18px;
}

.zalo-qr img {
  max-width: 100%;
  /* Đảm bảo hình QR không vượt quá khung */
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
}


/* Nút gọi điện trực tiếp */
.ct-call-button {
  position: fixed;
  bottom: 90px;
  right: 20px;
  /* left: 20px; */
  z-index: 9999;
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* animation: shake 1.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite; */
}

/* Hiệu ứng rung lắc */
/* @keyframes shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-2px, -2px) rotate(-2deg); }
    20% { transform: translate(2px, -2px) rotate(2deg); }
    30% { transform: translate(-2px, 2px) rotate(0deg); }
    40% { transform: translate(2px, 2px) rotate(-2deg); }
    50% { transform: translate(-2px, -2px) rotate(2deg); }
    60% { transform: translate(2px, 0) rotate(0deg); }
    70% { transform: translate(-2px, 2px) rotate(-2deg); }
    80% { transform: translate(2px, -2px) rotate(2deg); }
    90% { transform: translate(0, 2px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
} */

.ct-call-icon {
  width: 50px;
  height: 50px;
  display: block;
  position: relative;
}

/* Hiệu ứng sóng lan tỏa */
.ct-call-button::before,
.ct-call-button::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0000fe;
  opacity: 0.4;
  animation: ripple 2s infinite;
  z-index: -1;
}

.ct-call-button::after {
  animation-delay: 1s;
  /* Tạo hiệu ứng sóng xen kẽ */
}

/* Animation cho sóng */
@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.back-to-top {
  bottom: 150px !important;
  right: 20px !important;
}

/*============================================================ google dịch */
/* 1. Ẩn toàn bộ các link .glink, chỉ show cái đang active */
.gtranslate_wrapper .glink {
  display: none !important;
}

.gtranslate_wrapper .gt-current-lang {
  display: inline-block !important;
  cursor: pointer;
  position: relative;
  padding-right: 20px;
  /* Add space for arrow */
}

/* Arrow for current language - default pointing down */
.gtranslate_wrapper .gt-current-lang::before {
  content: '';
  position: absolute;
  right: 8px;
  top: 60%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: #000;
  /* Down arrow */
}

/* Arrow pointing up when dropdown is open */
.gtranslate_wrapper .gt-current-lang.dropdown-open::before {
  border-top-color: transparent;
  border-bottom-color: #000;
  /* Up arrow */
}

/* 2. Dropdown container khi tạo sẽ dùng class này */
.custom-gt-dropdown {
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  padding: 4px 0;
}

/* 3. Style từng item trong dropdown */
.custom-gt-dropdown .glink {
  display: flex !important;
  align-items: center;
  padding: 4px 8px;
  text-decoration: none;
  white-space: nowrap;
}

.custom-gt-dropdown .glink img {
  margin-right: 6px;
}

/* 4. Ẩn luôn phần select gốc của Google Translate */
.gtranslate_wrapper #google_translate_element2 {
  display: none !important;
}

.header:not(.transparent) .header-nav-main.nav>li>a {
  font-size: 0.9rem !important;
}