
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6fb;
  color: #1f2933;
}
header {
  background: #0a3d91;
  color: white;
  padding: 24px 20px;
  text-align: center;
}
header h1 {
  margin: 0 0 6px;
  font-size: 26px;
}
header p {
  margin: 0;
  font-size: 14px;
}
/* Layout */
.layout {
  max-width: 1100px;
  margin: 20px auto 40px;
  display: flex;
  gap: 20px;
  padding: 0 12px;
}
.sidebar {
  width: 220px;
}
.main {
  flex: 1;
}
.card {
  background: white;
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.nav-section h2 {
  font-size: 16px;
  margin-bottom: 8px;
}
.nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-section li {
  margin-bottom: 6px;
}
.nav-section a {
  text-decoration: none;
  color: #0a3d91;
  font-size: 14px;
}
.nav-section a:hover {
  text-decoration: underline;
}
.field-row {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-row label {
  font-size: 14px;
  font-weight: 500;
}
.field-row input,
.field-row select,
.field-row textarea {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cbd2e1;
  font-size: 14px;
}
.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: 2px solid #2563eb33;
  border-color: #2563eb;
}
.btn {
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #0a3d91;
  color: white;
  font-size: 14px;
  cursor: pointer;
}
.btn:hover {
  background: #0c4fb8;
}
.result-box {
  white-space: pre-line;
  background: #f3f6ff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #d0daf9;
  font-size: 14px;
  margin-top: 10px;
}
.meta-text {
  font-size: 14px;
  color: #4b5563;
}
footer {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: #6b7280;
}
footer a {
  color: #0a3d91;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
/* Category list */
.category-list {
  margin-top: 20px;
  list-style: disc;
  padding-left: 25px;
}
.category-list li {
  margin-bottom: 10px;
  font-size: 15px;
}
.category-list a {
  color: #0a3d91;
  text-decoration: none;
  font-weight: 500;
}
.category-list a:hover {
  text-decoration: underline;
}

/* TOP NAV BAR */
.topnav {
  width: 100%;
  background: #0a3d91;
  color: white;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.topnav .brand {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.topnav a {
  color: white;
  text-decoration: none;
  margin-left: 18px;
  font-size: 14px;
  font-weight: 500;
}
.topnav a:hover {
  text-decoration: underline;
}
.nav-right {
  display: flex;
  align-items: center;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropbtn {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 8px;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: #ffffff;
  min-width: 180px;
  border-radius: 4px;
  box-shadow: rgba(0,0,0,0.2) 0px 4px 12px;
  padding: 6px 0;
  right: 0;
}
.dropdown-content a {
  color: #0a3d91;
  padding: 10px 14px;
  display: block;
  text-decoration: none;
  font-size: 14px;
}
.dropdown-content a:hover {
  background-color: #eef3ff;
}
.dropdown:hover .dropdown-content {
  display: block;
}
/* Responsive */
@media (max-width: 800px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .topnav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-right {
    flex-direction: column;
    align-items: flex-start;
  }
  .topnav a,
  .dropbtn {
    margin: 6px 0;
  }
  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
  }
}
