/* Base Variables */
:root {
  --nd-blue: #003A70; /* State Blue */
  --nd-deep-blue: #1C3D5A; /* Prairie Blue from memory */
  --nd-beige: #F5DEB3; /* Warm Wheat Beige */
  --nd-white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #dddddd;
}

/* Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--nd-white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  color: var(--nd-deep-blue);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

a:hover {
  text-decoration: underline;
}

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

header {
  background-color: var(--nd-deep-blue);
  color: var(--nd-white);
  padding: 20px 0;
}

header a {
  color: var(--nd-white);
}

.header-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.site-title {
  font-size: 1.5rem;
  font-family: 'Georgia', serif;
  font-weight: bold;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

nav a {
  font-weight: bold;
}

.ad-slot-header {
  text-align: center;
  margin: 20px 0;
  background-color: #f4f4f4;
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

main {
  padding: 20px 0;
}

/* Hero Section */
.hero {
  background-color: var(--nd-beige);
  padding: 40px 20px;
  text-align: center;
  border-bottom: 4px solid var(--nd-blue);
  margin-bottom: 30px;
}

.hero h1 {
  margin-top: 0;
  font-size: 2rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  background: var(--nd-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

/* District Pages Layout */
.district-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.ad-slot-sidebar {
  background-color: #f4f4f4;
  min-height: 250px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  display: block;
  overflow-x: auto;
}

th, td {
  border: 1px solid var(--border-color);
  padding: 10px;
  text-align: left;
}

th {
  background-color: var(--nd-blue);
  color: var(--nd-white);
  font-family: 'Georgia', serif;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Footer */
footer {
  background-color: var(--nd-deep-blue);
  color: var(--nd-white);
  padding: 40px 0;
  margin-top: 40px;
}

footer a {
  color: var(--nd-beige);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  text-align: center;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
}

.footer-inner li {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 10px;
}

/* Tablet & Desktop Enhancements (min-width queries) */
@media (min-width: 768px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .site-title {
    font-size: 1.8rem;
  }

  nav ul {
    margin: 0;
    gap: 20px;
  }

  main {
    padding: 40px 0;
  }

  .hero {
    padding: 60px 20px;
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-top: 40px;
  }

  .district-layout {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }

  table {
    display: table;
    overflow-x: visible;
  }

  th, td {
    padding: 12px;
  }

  footer {
    margin-top: 60px;
  }

  .footer-inner {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    text-align: left;
  }
}