* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #1e5fa8;
  --secondary-blue: #3f7fc1;
  --light-blue: #edf4fb;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --mid-gray: #d7dee7;
  --text-dark: #1f2d3d;
  --text-soft: #5b6875;
  --shadow-soft: 0 10px 30px rgba(16, 45, 85, 0.08);
  --shadow-card: 0 12px 34px rgba(21, 52, 98, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}
.top-header {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  border-bottom: 1px solid var(--mid-gray);
}

.logo-box {
  width: 110px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.title-box {
  flex: 1;
  text-align: center;
}

.title-box h1 {
  font-size: 3rem;
  line-height: 1.1;
  color: #a84a1e;
  font-weight: 700;
}

.title-box p {
  font-size: 1rem;
  color: #f14444;
  margin-top: 6px;
}

/* Navbar */
.navbar {
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: block;
  padding: 18px 26px;
  color: var(--white);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: var(--transition);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #d7dee7;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: visible;
  padding: 0;
}

.dropdown:hover > .submenu {
  display: block;
}

.submenu li {
  position: relative;
}

.submenu li a {
  display: block;
  padding: 15px 20px;
  color: #0c5da5;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 1px solid #dce7f1;
  background: #ffffff;
  transition: var(--transition);
}

.submenu li:last-child > a {
  border-bottom: none;
}

.submenu li a:hover {
  background: #eaf4fb;
  color: #0068a8;
}

.has-submenu {
  position: relative;
}

.has-submenu > a::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 900;
  color: #0068a8;
}

.has-submenu:hover > a::after {
  transform: translateY(-50%);
}

.nested-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 300px;
  max-width: 360px;
  max-height: 290px;
  overflow-y: auto;
  overflow-x: hidden;
  list-style: none;
  background: #f3f5f7;
  border-radius: 0 16px 16px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  padding: 0;
}

.has-submenu:hover > .nested-submenu {
  display: block;
}

.nested-submenu li a {
  display: block;
  padding: 14px 20px;
  color: #0c4f8f;
  background: #f3f5f7;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  border-bottom: 1px solid #d9e0e6;
  white-space: normal;
  word-break: break-word;
}

.nested-submenu li:last-child a {
  border-bottom: none;
}

.nested-submenu li a:hover {
  background: #dfe8ef;
  color: #0a4174;
}

.nested-submenu::-webkit-scrollbar {
  width: 8px;
}

.nested-submenu::-webkit-scrollbar-thumb {
  background: #9ab6cf;
  border-radius: 10px;
}

.nested-submenu::-webkit-scrollbar-track {
  background: #eef3f7;
  border-radius: 10px;
}

.footer {
  background: #163c68;
  color: var(--white);
  text-align: center;
  padding: 24px 16px;
}

.footer p {
  font-size: 0.96rem;
  letter-spacing: 0.2px;
}

@media (max-width: 992px) {
  .top-header {
    flex-direction: column;
    padding: 18px 20px;
  }

  .title-box h1 {
    font-size: 2.4rem;
  }

  .menu {
    flex-wrap: wrap;
  }

  .menu > li > a {
    padding: 15px 18px;
    font-size: 0.92rem;
  }
}

@media (max-width: 768px) {
  .title-box h1 {
    font-size: 2rem;
  }

  .title-box p {
    font-size: 0.9rem;
  }

  .menu {
    flex-direction: column;
  }

  .menu > li {
    width: 100%;
    text-align: center;
  }

  .submenu {
    position: static;
    width: 100%;
    min-width: 100%;
    border-radius: 0;
  }

  .nested-submenu {
    position: static;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .has-submenu > a::after {
    right: 24px;
  }

  .menu > li > a {
    padding: 14px 16px;
  }
}