﻿.navbar{
  z-index: 2 !important;
}
.screen-padding{
  padding:20px 80px;
}
.floating-buttons {
  position: fixed;
  right: 15px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}

.btn-float {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: visible;
}
.modal-contact{
  background: rgba(0, 0, 0, 0.4);
}

/* màu nền icon */
.on-top{
  background: #eee;
  border-radius: 99px;
}
.phone {
  background: red;
}

.messenger {
  background: #0084ff;
}

.zalo {
  background: #0068ff;
}

.zalo-img {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
}

/* hiệu ứng nền scale */
.btn-float::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  z-index: -1;
  transform: scale(1);
  animation: pulse-bg 1.5s infinite;
}

/* mỗi nút dùng màu riêng */
.phone::before {
  background: red;
}

.messenger::before {
  background: #0084ff;
}

.zalo::before {
  background: #0084ff;
}


@keyframes pulse-bg {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  70% {
    transform: scale(1.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}


:root {
  --primary-color: #3498db;
  /* màu chính */
  --green-light-color: #02af4f;
  /* màu phụ */
  --green-color: #11885c;
  --green-white-color: #a5dac4;
  --yellow-color: #ffbd2b;
}

.text-color {
  color: var(--green-color);
  font-weight: bold;
}

ul {
  /* list-style: none; */
  margin-bottom: 0;
}
.nav-item{
  list-style: none;
}

.navbar-header {
  list-style: none;
  display: flex;
  gap: 16px;
  font-size: 14px;
  margin: 0;
  padding: 0;
  font-weight: bold;
  transition: transform 0.5s ease, opacity 0.5s ease;
  height: 100%;

}

li a {
  text-decoration: none;
}

/* Nút toggle */
.toggler {
  display: none;
  cursor: pointer;
  background-color: #f2f4f5;
  border-radius: 99px;
  padding: 5px;
  width: 40px;
  height: 40px;
}



.dropdown-menu[data-bs-popper] {
  right: 0 !important;
  left: unset !important;
  margin-top: 10px;
}

.nav-link {
  color: #263a4d;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.5s ease, font-size 0.2s ease;
  font-size: 16px;
}

.nav-link:hover {
  color: var(--green-color);
}

.navbar .nav-link.active {
  color: var(--green-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  /* cách chữ 1 chút cho đẹp */
  text-decoration-thickness: 2px;
  /* độ dày gạch chân */
}

.nav-language {
  padding-left: 10px;
  display: flex;
  align-items: center;
}
/* .nav-language.nav-item button{
  font-size: 16px;
} */
.toggle-close{
  display: none;
}
@media(min-width: 1820px){
  .screen-padding{
    padding: 20px 240px;
  }
}

@media(min-width: 1690px){
  .screen-padding{
    padding: 20px 150px;
  }
}

@media (max-width: 1024px) {
  .nav-link {
    font-size: 14px;
  }
  .nav-language .nav-item .btn-success{
    font-size: 14px !important;
  }
 
  .toggle-close.show{
    display: flex;
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .screen-padding{
    padding: 20px 40px;
}
  .navbar-header {
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 101%;
    background: white;
    width: 50%;
    min-height: 1000px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transform: translateX(0);
    gap: 0; 
    z-index: 2;
  }

  .navbar-header.show {
    transform: translateX(100%);
    left: -50%;
    
  }

  .toggler {
    display: flex;
    justify-content: center;
  }

  .nav-item {
    padding-left: 10px;
    width: 100%;
  }

  .dropdown-menu {
    left: 0;
    top: 30px;
  }


  .navbar-header .nav-item {
    padding: 12px 20px;
    /* border-bottom: 1px solid var(--green-white-color); */
    border-bottom: 1px solid #ddd;
  }
  /* nền đen */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1;
  }
  
  /* Khi mở menu */
  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  
}

/* Responsive cho điện thoại */
@media (max-width: 430px) {
  .font-14{
    font-size: 14px !important;
  }
  .font-16{
    font-size: 16px !important;
    font-weight: bold;
  }
  .font-20{
    font-size: 20px !important;
  }
  .navbar {
    height: 70px;
  }

  .title-company {
    display: none;
  }

  .navbar-header {
    top: 0;
    width: 100%;
    gap: 0;
  }
  .navbar-header.show{
    left: -100%;
  }
  /* .navbar-header .nav-item:last-child {
    border-bottom: none;
  } */
  .screen-padding{
    padding: 20px;
  }
  .navbar-brand img{
    height: 40px !important;
  }
 .btn-float {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}


