/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  background: transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* === Background Video === */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  background-color: black;
}

/* === Header === */
header {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 20px 5px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: nowrap;
  gap: 10px;
  flex-shrink: 0;
}

.left-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.left-logo img {
  height: 65px;
  width: auto;
}

.left-logo span {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2c5e1a;
  white-space: nowrap;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

nav a {
  text-decoration: none;
  color: #2c5e1a;
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  max-width: 140px;
}

nav a:hover {
  background: #e8f5e9;
}

nav a.active {
  background: #c8e6c9;
  font-weight: 700;
  pointer-events: none;
}

.county-seal {
  height: 47px;
  width: auto;
  margin-left: 10px;
  flex-shrink: 0;
}

.tagline {
  width: 100%;
  text-align: center;
  font-style: italic;
  color: #3d6db3;
  font-size: 1.1rem;
  margin-top: 2px;
  font-weight: 500;
}

/* === Main Content === */
.content {
  flex: 1;
  padding: 30px;
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* === Page Title Styling === */
.content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 10px;
  color: white;
}

/* Title color overrides by page */
/* === New Title Overrides for Specific Pages === */
body.index-page .content h2,
body.about-page .content h2,
body.programs-page .content h2 {
  color: #2c5e1a; /* footer green */
}

body.resources-page .content h2,
body.education-page .content h2 {
  color: #3d6db3; /* tagline blue */
}


body.education-page .content h2 {
  color: #3d6db3;
}

/* === Text Styling === */
.content p,
.content li {
  font-size: 1.5rem;
  color: white;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  margin: 0.8rem 0;
  font-weight: bold;
}

.content a {
  color: #c8e6c9;
  font-weight: 600;
  text-decoration: none;
}

.content a:hover {
  color: white;
}

.content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* === Footer === */
footer {
  background: #2c5e1a;
  color: white;
  text-align: center;
  padding: 6px;
  font-size: 1rem;
  width: 100%;
  margin-top: auto;
}

.credit-line {
  background: #ccc;
  color: #222;
  display: flex;
  justify-content: space-between;
  padding: 4px 20px;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.credit-line a {
  color: #2c5e1a;
  font-weight: 600;
}

/* === Mobile === */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .left-logo {
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }

  .left-logo span {
    font-size: 1.1rem;
    text-align: center;
  }

  .nav-wrapper {
    justify-content: center;
    width: 100%;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 0.9rem;
    padding: 5px 8px;
  }

  .county-seal {
    height: 40px;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .credit-line {
    flex-direction: column;
    text-align: center;
  }
}
