* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --navy: #0b132b;
  --navy-2: #1c2541;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --accent: #0ea5e9;
  --green: #15803d;
  --green-hover: #166534;
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Top Scrolling Notice Strip */
.top-ticker {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid #38bdf8;
  padding: 7px 0;
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: tickerMove 24s linear infinite;
}

.ticker-track span {
  margin-right: 48px;
}

@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Main Header */
header {
  background: var(--navy);
  color: #ffffff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(11, 19, 43, 0.22);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
}

header a.brand-title {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 0.75rem;
  color: #93c5fd;
  display: block;
}

.badge {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 0.76rem;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 700;
}

.container {
  max-width: 1120px;
  margin: 24px auto;
  padding: 0 16px;
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #172554 100%);
  color: #ffffff;
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero h1 {
  font-size: 1.65rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.hero p {
  color: #cbd5e1;
  font-size: 0.96rem;
  max-width: 780px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  padding: 22px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.14);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 700;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 16px;
  border: none;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-green {
  background: var(--green);
}

.btn-green:hover {
  background: var(--green-hover);
}

.btn-dark {
  background: #1e293b;
}

.btn-dark:hover {
  background: #0f172a;
}

.tool-box {
  background: var(--surface);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  border: 1px solid #e2e8f0;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #1e293b;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.92rem;
  background: #f8fafc;
  color: var(--text);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

footer {
  text-align: center;
  padding: 26px 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

@media print {
  .top-ticker,
  header,
  .no-print,
  footer {
    display: none !important;
  }
}