@import url('./root.css');

.swiper-button-next,
.swiper-button-prev {
  background-color: rgba(30, 30, 30, 0.5) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  transition: background-color 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.subdivisions-swiper .swiper-button-prev,
.subdivisions-swiper .swiper-button-next {
  position: absolute;
  top: 35%;
  transform: translateY(-35%);
}

.products-swiper .swiper-button-prev,
.products-swiper .swiper-button-next {
  position: absolute;
  top: 35%;
  transform: translateY(-35%);
}

.facilities-swiper .swiper-button-prev,
.facilities-swiper .swiper-button-next {
  position: absolute;
  top: 40%;
  transform: translateY(-40%);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: #ffffff;
  font-size: 18px !important;
  font-weight: bold;
}

.default-iholding-text-primary {
  color: #fff !important;
}

.default-project-bg {
  background-color: var(--khp-primary) !important;
}

.project-text {
  color: #82fff8 !important;
}

.transparent-bg {
  background-color: transparent;
}

.border-white {
  border: 1px solid #fff !important;
}

.project-bg,
.bg-wrap {
  background-color: transparent !important;
}

.swiper-pagination-bullet {
  background-color: #fff !important;
}

.button-hover-default:hover,
.button-hover-default.active {
  background-color: #fff !important;
  color: var(--khp-primary) !important;
}

.button-hover-default:hover i,
.button-hover-default.active i {
  color: var(--khp-primary) !important;
}

.overview_image {
  box-shadow: rgba(255, 255, 255, 0.3) 0px 19px 38px,
    rgba(255, 255, 255, 0.22) 0px 15px 12px;
  width: auto;
}

.overview_content div {
  padding-bottom: 20px;
  font-size: 16px;
}

.overview_content {
  overflow-y: scroll;
  height: 350px;
}

.zoom-on:hover img {
  transform: scale(1.1);
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
}

.content-box {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,
      var(--khp-primary),
      var(--khp-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.title-highlight {
  position: relative;
  display: inline-block;
}

.title-highlight:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #ffffff;
  border-radius: 2px;
}

.title-highlight.text-center:after {
  left: 50%;
  transform: translate(-50%);
}

.title-highlight-primary {
  position: relative;
  display: inline-block;
}

.title-highlight-primary.text-center:after {
  left: 50%;
  transform: translate(-50%);
}

/* Container tabs: căn giữa nhưng không ép các tab giãn full width */
.modern-tabs.nav-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem;
  width: 100%;
  justify-content: center !important;
  border-bottom: none;
  padding: 0;
  margin: 0;
}

#layoutTabs.justify-content-center {
  justify-content: center !important;
}

/* nav-item không bị flex-grow */
.modern-tabs .nav-item {
  flex: 0 0 auto;
  display: inline-block;
  /* đảm bảo item chỉ chiếm kích thước nội dung */
}

/* override mặc định của .nav-link (.nav-link có thể bị display:block với width:100%) */
.modern-tabs .nav-link,
.modern-tabs .modern-tab-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  /* không xuống dòng trong 1 tab */
  padding: 12px 24px;
  border-radius: 50px;
  border: none !important;
  min-width: 0;
  /* tránh auto expand */
  background: #f3f4f6;
  color: #6b7280 !important;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s 0.25s;
}

/* đảm bảo active giữ đúng kích thước, không kéo layout */
.modern-tabs .nav-link.active,
.modern-tabs .modern-tab-link.active {
  background: var(--khp-primary) !important;
  color: #fff !important;
}

/* nếu bạn muốn có scroll bar ẩn đẹp */
.modern-tabs.nav-tabs::-webkit-scrollbar {
  height: 8px;
}

.modern-tabs.nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.swiper-horizontal {
  touch-action: pan-y;
}

.swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
  display: block;
}

.contact-swiper .swiper-slide {
  width: 400px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-slide-wrapper {
  height: 100%;
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-slide-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-card[data-v-b4dcb7f0] {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,
      var(--khp-primary),
      var(--khp-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-icon {
  font-size: 24px;
  color: #fff;
}

.contact-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--khp-primary);
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 1.8rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

.btn-primary {
  background: var(--khp-primary) !important;
  border-color: var(--khp-primary) !important;
}

.btn-contact {
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
}

.btn.btn-primary i,
.btn.btn-primary .svg-icon {
  color: #fff;
}

.hover-lift,
.hover-zoom,
.hover-scale {
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modern-info-card {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  /* subtle bottom-centered shadow */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);

  /* Smooth transition */
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Lift effect on hover when element also has .hover-lift */
.modern-info-card.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.info-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      var(--khp-primary),
      var(--khp-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon {
  font-size: 24px !important;
  color: #fff;
}

.info-label {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.info-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0;
}

/* Hover lift */
.modern-info-card.hover-lift:hover {
  transform: translateY(-10px);
  /* nâng cao hơn một chút */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  /* shadow mềm, tự nhiên */
}

/* Icon circle */
.info-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      var(--khp-primary),
      var(--khp-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  /* icon pop nhẹ khi hover */
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Icon scale effect */
.modern-info-card.hover-lift:hover .info-icon-wrapper {
  transform: scale(1.08);
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

/* Center underline for highlighted titles */
.section-title .title-highlight-primary {
  display: inline-block !important;
  /* override any utility classes like d-block */
  position: relative;
  padding-bottom: 0.6rem;
}

.section-title .title-highlight-primary::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.15rem;
  width: 56px;
  height: 4px;
  background: var(--khp-primary);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}



/* Áp dụng cho màn hình PC (từ 992px trở lên) */
@media (min-width: 992px) {
  .nav-tabs-container {
    display: flex;
    justify-content: center;
  }

  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
  }
}

.sticky-header {
  position: sticky;
  top: 0;
  background-color: transparent;
  z-index: 2;
  margin-bottom: 13px;
  transition: transform 0.4s ease-in-out;
}

.sticky-header.header-hidden {
  transform: translateY(-110%);
}

.sticky-header.scrolled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-color: #9aa8d971;
  z-index: -1;
}

#kt_app_content {
  position: relative;
  z-index: 1;
  background-color: #fff;
}

@media (max-width: 768px) {
  #kt_app_content::before {
    background-position: top center;
  }
}

.sticky-header li.nav-item a {
  border: 1px solid var(--khp-primary) !important;
  background: var(--khp-primary);
  border-radius: 2px;
}

.sticky-header li.nav-item span {
  color: #ffffff;
  font-weight: bold;
}


.sticky-header li.nav-item .nav-link:hover,
.sticky-header li.nav-item .nav-link.active,
.sticky-header li.nav-item .nav-link:focus {
  background-color: #fff !important;
}

.sticky-header li.nav-item .nav-link:hover span,
.sticky-header li.nav-item .nav-link.active span,
.sticky-header li.nav-item .nav-link:focus span {
  color: var(--khp-primary) !important;
}

.tab-pane.active {
  display: block;
}

.tab-pane {
  display: none;
}

.project-title {
  font-size: 30px;
}

h1 {
  color: var(--khp-primary) !important;
}

.transparent-tab.tab-pane .card {
  background: transparent !important;
  color: var(--khp-primary);
}


.subdivision-item {
  background: #fff;
  color: var(--khp-primary);
  border: 1px solid var(--khp-primary);
}

.subdivision-item:hover,
.subdivision-item.active {
  background: var(--khp-primary);
  color: #fff;
  border: 1px solid #fff;
}

.building-item:hover,
.building-item.active {
  background: #fff;
  color: var(--khp-primary);
  border: 1px solid var(--khp-primary);
}

.building-item {
  background: var(--khp-primary);
  color: #fff;
  border: 1px solid #fff;
}