/* CSS Variables for consistent styling */
:root {
  --primary: #0D4AE7;
  --primary-dark: #0B86B8;
  --primary-light: #F5F5DC;
  --secondary: #000000;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.5;
  color: var(--gray-700);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: bold;
  line-height: 1.2;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.max-w-4xl {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  margin-bottom: 1rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

@media (min-width: 768px) {
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .site-title {
    margin-bottom: 0;
  }
  
  nav {
    margin-top: 0;
  }
}

/* Main content */
main {
  padding: 2rem 0;
  flex: 1;
}

section {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

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

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Components */
.bg-blue-50 {
  background-color: #EFF6FF;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mb-6 {
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--gray-800);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: auto;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  nav {
    display: none;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .site-title {
    margin-bottom: 0;
  }
}

/* Mobile menu overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 998;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background-color: white;
  z-index: 999;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-menu.open,
.overlay.open {
  display: block;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}

.mobile-menu a:hover {
  color: var(--primary);
}
