* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

:root {
  --primary-color: #000;
  --secondary-color: #4a6fa5;
  --secondary-hover-color: #0000ee;
  --title-color: #212559;
  --text-color: #848484;
  --border-color: #dadada;
}

.header-nav-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: transparent;
  z-index: 1000;
  transition: all 0.4s ease;
}

.header-nav-section.scrolled {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-nav-section.border-bottom {
  background-color: white;
  border-bottom: 4px solid var(--secondary-color);
}

.header-nav-section.border-bottom .header-nav-company-name,
.header-nav-section.scrolled .header-nav-company-name {
  color: var(--primary-color);
  text-shadow: none;
}

.header-nav-content {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-nav-logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.header-nav-logo {
  width: 150px;
  height: 80px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.header-nav-logo img{
  height: 90%;
  width: auto;
}

.header-nav-company-name {
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  transition: color 0.4s ease;
}

.search-container {
  display: flex;
  align-items: center;
}

.search-container input {
  flex-grow: 1;
  -webkit-appearance: none;
  font-size: inherit;
  height: 32px;
  line-height: 32px;
  padding: 0 15px;
  outline: 0;
  background: rgba(255, 255, 255, 0.1);
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  color: var(--text-color);
}

.search-btn {
  width: 32px;
  height: 32px;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.search-btn:hover {
  background-color: var(--secondary-hover-color);
}

.search-container input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0px 1px var(--secondary-color);
}

.header-nav-links {
  display: flex;
  gap: 50px;
  align-items: center;
  position: relative;
}

.header-nav-dropdown {
  position: relative;
  display: inline-block;
}

.header-nav-dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  column-count: auto;
  column-width: 220px;
  min-width: 660px;
  max-width: 880px;
  column-gap: 15px;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 20px;
  margin-top: 8px;
  transition: all 0.3s ease;
  transform: translateY(10px);
  transition-delay: 0.1s;
}

.header-nav-dropdown:hover .header-nav-dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.header-nav-dropdown-submenu {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 10px;
  position: relative;
}

.header-nav-dropdown-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-weight: 600;
  padding: 10px 15px !important;
  border-radius: 4px !important;
  margin-bottom: 8px !important;
}

.header-nav-dropdown-submenu-toggle.active{
  background-color: #f5f7fa;
  color: var(--secondary-color);
}

.header-nav-dropdown-tertiary {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
  margin-left: 5px;
  z-index: 1002;
  transition: all 0.2s ease;
  transform: translateX(10px);
  overflow-x: hidden;
}

.header-nav-dropdown-submenu:hover .header-nav-dropdown-tertiary {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.header-nav-dropdown-content a {
  display: block;
  padding: 9px 15px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  break-inside: avoid;
  margin-bottom: 2px;
  border-radius: 4px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav-dropdown-content>a.active{
  background-color: #f5f7fa;
  color: var(--secondary-color);
}

.header-nav-dropdown-content a:hover {
  background-color: #f5f7fa;
  color: var(--secondary-color);
  transform: translateX(2px);
}

.header-nav-section.border-bottom .header-nav-dropdown-content,
.header-nav-section.scrolled .header-nav-dropdown-content {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-nav-dropdown-tertiary a {
  padding: 10px 20px;
  color: #333;
  font-size: 15px;
}

.header-nav-dropdown-tertiary a.active {
  background-color: #f5f7fa;
  color: var(--secondary-color);
}

.header-nav-dropdown-tertiary a:hover {
  background-color: #f5f7fa;
  color: var(--secondary-color);
}

.header-nav-link {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 18px;
  padding: 8px 5px;
  position: relative;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  display: inline-block;
  white-space:  nowrap;
}

.header-nav-section.border-bottom .header-nav-link,
.header-nav-section.scrolled .header-nav-link {
  color: var(--primary-color);
  text-shadow: none;
}

.header-nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.header-nav-link:hover::after {
  width: 100%;
}

.header-nav-link:hover {
  color: var(--secondary-color);
}

.header-nav-section.border-bottom .header-nav-link:hover,
.header-nav-section.scrolled .header-nav-link:hover {
  color: var(--secondary-color);
}

.header-nav-link.active {
  color: var(--secondary-color);
}

.header-nav-link.active::after {
  width: 100%;
}

.header-nav-section.border-bottom .header-nav-link.active,
.header-nav-section.scrolled .header-nav-link.active {
  color: var(--secondary-color);
  text-shadow: none;
}

.header-nav-section.border-bottom .header-nav-link.active::after,
.header-nav-section.scrolled .header-nav-link.active::after {
  width: 100%;
}

.header-nav-language-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.header-nav-section.border-bottom .header-nav-language-switcher,
.header-nav-section.scrolled .header-nav-language-switcher {
  border-left-color: rgba(0, 0, 0, 0.1);
}

.header-nav-language-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header-nav-section.scrolled .header-nav-language-btn {
  color: #555;
}

.header-nav-language-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.header-nav-section.scrolled .header-nav-language-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.language-switcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 4px;
  transition: background-color 0.2s;
  position: relative;
  min-width: 120px;
  z-index: 1002;
}

.language-switcher:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-switcher .current-language {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.language-switcher .current-language .language-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.language-switcher .current-language i.fa-chevron-down {
  font-size: 12px;
  transition: transform 0.3s;
}

.language-switcher .language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border-radius: 4px;
  list-style: none;
  padding: 8px 0;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1003;
}

.language-switcher:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher:hover .current-language i.fa-chevron-down {
  transform: rotate(180deg);
}

.language-dropdown li {
  padding: 0;
  margin: 0;
}

.language-dropdown .language-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 15px;
  transition: background-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.language-dropdown .language-item:hover {
  background-color: rgba(255, 107, 53, 0.5);
}

.main-banner-swiper {
  width: 100%;
  height: 550px;
  position: relative;
  overflow: hidden;
}

.main-banner-image {
  width: 100%;
  height: 550px;
  position: relative;
  overflow: hidden;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  opacity: 0;
  visibility: hidden;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9999;
  outline: none;
  border: none;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
  background-color: var(--secondary-hover-color);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top i {
  font-size: 20px;
}

.whatapp-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9999;
  outline: none;
  border: none;
  opacity: 1;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.whatapp-btn:hover {
  background-color: var(--secondary-hover-color);
}

.whatapp-btn i {
  font-size: 20px;
}

.header-nav-dropdown-content::-webkit-scrollbar {
  width: 6px;
}
.header-nav-dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.header-nav-dropdown-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.header-nav-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}