/* Base Styles */
:root {
  --primary-color: #0b5394;
  --primary-light: #1976d2;
  --primary-dark: #064579;
  --accent-color: #ffd966;
  --accent-hover: #ffcc33;
  --text-color: #333;
  --text-light: #777;
  --bg-color: #f9f9f9;
  --card-bg: #fff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
  --radius: 5px;
}

/* Reset and Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 1rem;
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  color: var(--card-bg);
}

h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  max-width: 900px;
  background: var(--card-bg);
  margin: 1rem auto;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

section {
  margin-bottom: 2rem;
}

/* Header and Navigation */
header {
  background: var(--primary-color);
  color: var(--card-bg);
  padding: 1rem 0;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-title {
  margin: 0;
  padding: 0.5rem 0;
}

/* Main Navigation */
.main-nav {
  background: var(--primary-dark);
  width: 100%;
  margin-top: 1rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: var(--card-bg);
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  transition: background-color 0.3s;
}

.main-nav a:hover {
  background-color: var(--primary-light);
}

.main-nav .active {
  background-color: var(--primary-light);
}

/* Dropdown Menu */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--primary-dark);
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.dropdown-content a {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  list-style: none;
  margin: 1rem 0;
  padding: 0.5rem;
  background-color: rgba(0,0,0,0.03);
  border-radius: var(--radius);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin: 0 0.5rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--card-bg);
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

table, th, td {
  border: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: var(--card-bg);
  padding: 0.75rem;
  text-align: left;
}

td {
  padding: 0.75rem;
  text-align: left;
}

tr:nth-child(even) {
  background-color: rgba(0,0,0,0.02);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--card-bg);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Details/Accordion */
details {
  margin: 1rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

summary {
  padding: 1rem;
  background-color: rgba(0,0,0,0.02);
  cursor: pointer;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

details[open] summary {
  border-bottom-color: var(--border-color);
}

details > div {
  padding: 1rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem 0;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    margin-top: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    display: none;
  }
  
  .main-nav.show ul {
    display: flex;
  }
  
  .dropdown-content {
    position: static;
    background-color: rgba(0,0,0,0.1);
    box-shadow: none;
  }
  
  .dropdown-content a {
    padding-left: 2rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.35rem;
  }
  
  main {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  header, footer, .main-nav, .breadcrumbs {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  main {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Resource List */
.resource-list {
  list-style: none;
  padding-left: 0;
}

.resource-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.resource-list a:hover {
  text-decoration: underline;
}
