/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nav-bg: #182030;
  --nav-fg: #d4e4f5;
  --nav-fg-muted: rgba(212,228,245,0.65);
  --nav-accent: #1e2a3d;
  --nav-primary: #4a85e8;
  --nav-border: #243046;

  --bg: #f5f8fc;
  --fg: #1a2535;
  --card: #ffffff;
  --border: #cdd8e8;
  --muted: #f0f4fa;
  --muted-fg: #586878;
  --primary: #1e3a6e;
  --primary-fg: #ffffff;
  --accent: #e6effc;
  --accent-fg: #1e3a6e;

  --radius: 0.75rem;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
address { font-style: normal; }

/* === LAYOUT === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* === NAV === */
.site-header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text .site-name {
  display: block;
  color: var(--nav-fg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
.nav-logo-text .site-tagline {
  display: block;
  color: var(--nav-fg-muted);
  font-size: 0.7rem;
  line-height: 1.2;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}
.nav-links a,
.nav-links button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--nav-fg-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links button:hover,
.nav-links a.active {
  background: var(--nav-accent);
  color: var(--nav-primary);
}
.nav-links a.active { color: var(--nav-primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 190px;
  padding: 0.25rem 0;
  z-index: 200;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--fg);
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--muted); color: var(--primary); }
.dropdown-menu a.active { color: var(--primary); font-weight: 600; }
.chevron { font-size: 0.6rem; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-fg);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 800px) {
  .nav-links { display: none; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: var(--nav-bg); border-bottom: 1px solid var(--nav-border); padding: 0.5rem 1rem 1rem; }
  .nav-toggle { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--nav-accent); padding: 0 0 0 1rem; border-radius: 0; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown-menu.open { display: block; }
  .dropdown-menu a { color: var(--nav-fg-muted); font-size: 0.8rem; }
}

/* === HERO === */
.hero {
  background: var(--nav-bg);
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
}
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.hero-logo-circle {
  background: white;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: inline-flex;
}
.hero-logo-circle img { width: 256px; height: 256px; object-fit: contain; border-radius: 50%; }
.hero-badge {
  display: inline-block;
  background: var(--nav-accent);
  color: var(--nav-primary);
  border: 1px solid var(--nav-border);
  border-radius: 9999px;
  font-size: 1.375rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #e8f0fc;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 span { color: var(--nav-primary); }
.hero p {
  color: var(--nav-fg-muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--nav-primary); color: white;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--nav-accent); color: var(--nav-fg);
  border: 1px solid var(--nav-border);
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--nav-border); }

/* === PAGE HEADER === */
.page-header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  padding: 3rem 1.25rem;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #e8f0fc;
  margin-bottom: 0.375rem;
}
.page-header p { color: var(--nav-fg-muted); font-size: 0.9375rem; }

/* === SECTIONS === */
.section { padding: 3.5rem 1.25rem; }
.section-alt { background: rgba(230,239,252,0.4); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 1.625rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; text-align: center; }
.section-subtitle { color: var(--muted-fg); text-align: center; max-width: 520px; margin: 0 auto 2.5rem; }

/* === CARDS === */
.card-grid { display: grid; gap: 1.25rem; }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: rgba(74,133,232,0.4); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.card-a { display: block; }
.card-icon {
  width: 40px; height: 40px;
  background: var(--accent); color: var(--primary);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  transition: background 0.15s, color 0.15s;
}
.card:hover .card-icon { background: var(--primary); color: white; }
.card h3 { font-size: 1.0625rem; font-weight: 600; color: var(--fg); margin-bottom: 0.5rem; transition: color 0.15s; }
.card:hover h3 { color: var(--primary); }
.card p { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--primary); font-size: 0.8125rem; font-weight: 500; margin-top: 1rem; opacity: 0; transition: opacity 0.15s; }
.card:hover .card-link { opacity: 1; }

/* Quick links */
.quick-link {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.quick-link:hover { border-color: rgba(74,133,232,0.4); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.quick-link .qi { width: 36px; height: 36px; background: var(--accent); color: var(--primary); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.quick-link:hover .qi { background: var(--primary); color: white; }
.quick-link span { font-weight: 500; color: var(--fg); font-size: 0.9375rem; transition: color 0.15s; }
.quick-link:hover span { color: var(--primary); }

/* Stat cards */
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }
.stat-label { color: var(--muted-fg); font-size: 0.8125rem; }

/* About grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }
.about-text h2 { font-size: 1.625rem; font-weight: 700; color: var(--fg); margin-bottom: 1rem; }
.about-text p { color: var(--muted-fg); line-height: 1.75; margin-bottom: 1rem; }
.about-text a { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; }
.about-text a:hover { text-decoration: underline; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* === CONTENT CARDS (inner pages) === */
.content-section { max-width: 860px; margin: 0 auto; padding: 3rem 1.25rem; }
.content-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; }
.content-block h2 { font-size: 1.25rem; font-weight: 600; color: var(--fg); margin-bottom: 1.25rem; }
.content-block p { color: var(--muted-fg); line-height: 1.75; margin-bottom: 1rem; }
.content-block p:last-child { margin-bottom: 0; }
.accent-block { background: rgba(230,239,252,0.4); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.accent-block h3 { font-size: 1rem; font-weight: 600; color: var(--fg); margin-bottom: 0.5rem; }
.accent-block p { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.65; margin-bottom: 0.875rem; }
.accent-block p:last-child { margin-bottom: 0; }
.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.625rem; color: var(--muted-fg); font-size: 0.875rem; }
.checklist li::before { content: "✓"; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 0.05em; }

/* Contact */
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 40px; height: 40px; background: var(--accent); color: var(--primary); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; flex-shrink: 0; }
.contact-label { font-size: 0.8125rem; font-weight: 600; color: var(--fg); margin-bottom: 0.25rem; }
.contact-value { color: var(--muted-fg); font-size: 0.9rem; }
.contact-value a { color: var(--primary); }
.contact-value a:hover { text-decoration: underline; }

/* Forms list */
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form-info { display: flex; align-items: center; gap: 1rem; }
.form-icon { width: 40px; height: 40px; background: var(--accent); color: var(--primary); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; flex-shrink: 0; }
.form-title { font-weight: 600; color: var(--fg); font-size: 0.9375rem; margin-bottom: 0.25rem; }
.form-desc { color: var(--muted-fg); font-size: 0.8125rem; }
.btn-sm {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--primary); color: white;
  padding: 0.375rem 0.875rem; border-radius: 0.5rem;
  font-size: 0.8rem; font-weight: 500;
  white-space: nowrap; transition: opacity 0.15s;
  flex-shrink: 0;
}
.btn-sm:hover { opacity: 0.88; }

/* Links page */
.links-category { margin-bottom: 2.5rem; }
.links-category h2 { font-size: 1.0625rem; font-weight: 600; color: var(--fg); margin-bottom: 1rem; }
.link-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.125rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.link-card:hover { border-color: rgba(74,133,232,0.4); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.link-icon { width: 38px; height: 38px; background: var(--accent); color: var(--primary); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.link-card:hover .link-icon { background: var(--primary); color: white; }
.link-card-title { font-weight: 600; font-size: 0.9rem; color: var(--fg); margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.375rem; transition: color 0.15s; }
.link-card:hover .link-card-title { color: var(--primary); }
.link-card-desc { color: var(--muted-fg); font-size: 0.8125rem; }

/* News */
.news-card { display: flex; align-items: flex-start; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.news-icon { width: 40px; height: 40px; background: var(--accent); color: var(--primary); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; flex-shrink: 0; }
.news-date { color: var(--muted-fg); font-size: 0.75rem; margin-bottom: 0.25rem; }
.news-title { font-weight: 600; color: var(--fg); margin-bottom: 0.5rem; }
.news-text { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.65; }

/* === FOOTER === */
.site-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--nav-border);
  padding: 2.5rem 1.25rem 1.25rem;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col-title { color: var(--nav-fg); font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.625rem; }
.footer-col-subtitle { color: var(--nav-fg-muted); font-size: 0.8125rem; margin-bottom: 0.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--nav-fg-muted); font-size: 0.8125rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--nav-primary); }
.footer-address { color: var(--nav-fg-muted); font-size: 0.8125rem; line-height: 1.8; }
.footer-address a { color: var(--nav-fg-muted); transition: color 0.15s; }
.footer-address a:hover { color: var(--nav-primary); }
.footer-copy { border-top: 1px solid var(--nav-border); padding-top: 1rem; text-align: center; color: var(--nav-fg-muted); font-size: 0.75rem; opacity: 0.6; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.875rem; }
  .hero-logo-circle img { width: 200px; height: 200px; }
  .page-header h1 { font-size: 1.625rem; }
}
