.wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Top bar */
.topbar {
  background: #004c99;
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left span {
  margin-right: 20px;
}
.topbar-right a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 16px;
  transition: opacity 0.3s;
}
.topbar-right a:hover {
  opacity: 0.8;
}

/* Header */
header {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  transform: translateY(0) !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  height: 80px;
  width: 100%;
}

.menu-btn {
  display: none;
}
header.hidden {
  transform: translateY(-100%) !important;
}
header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 80px;
  width: auto;
}
.logo-text h1 {
  font-size: 22px;
  font-weight: 900;
  color: #0066cc;
  letter-spacing: 2px;
}
.logo-text p {
  font-size: 11px;
  color: #666;
  letter-spacing: 1px;
}
.mobile_menu_btn {
  display: none;
}
.nav_list ul {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav_list a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav_list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0066cc;
  transition: width 0.3s;
}
.nav_list a:hover,
.nav_list a.active {
  color: #0066cc;
}
.nav_list a:hover::after,
.nav_list a.active::after {
  width: 100%;
}

/* Submenu */
.has-submenu {
  position: relative;
}
.has-submenu .iconfont {
  font-size: 12px;
  transition: transform 0.3s;
}
.has-submenu .submenu {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
}
.has-submenu .submenu li {
  width: 100%;
}
.has-submenu .submenu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
.has-submenu .submenu li a::after {
  display: none;
}
.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-submenu:hover .iconfont {
  transform: rotate(180deg);
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 20px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand img {
  height: 80px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 280px;
}
.footer-col h5 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  font-size: 12px;
}

/* Tablet Navigation */
@media (max-width: 992px) {
  header .wrapper {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .nav_list ul {
    gap: 16px;
  }
  
  .nav_list a {
    font-size: 13px;
    white-space: nowrap;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  header .wrapper {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    height: 100%;
  }
  
  .logo img {
    height: 80px;
    width: auto;
  }
  
  .mobile_menu_btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
  }
  
  .mobile_menu_btn span {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    margin: 0;
    transition: all 0.3s ease;
  }
  
  .nav_list {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 280px;
    height: calc(100vh - 80px);
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    padding: 20px 0;
    z-index: 1000;
    overflow-y: auto;
  }
  
  .nav_list.active {
    right: 0;
  }
  
  .nav_list ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }
  
  .nav_list ul > li {
    border-bottom: 1px solid #e5e7eb;
  }
  
  .nav_list a {
    font-size: 16px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav_list a::after {
    display: none;
  }
  
  .nav_list .has-submenu .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f7f8fa;
  }
  
  .nav_list .has-submenu .submenu li a {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
  }
  
  .nav_list .has-submenu.active .submenu {
    max-height: 250px;
  }
  
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    text-align: left;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    display: none;
  }

  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-col:nth-child(4) a {
    line-height: 1.8;
  }
}
