/* Basic reset and typography */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* prevents "rolling off the monitor" */
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Make images and media never exceed screen width */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero section */
.hero {
  position: relative;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 60vh;
  min-height: 420px;     /* helps desktop look consistent */
  max-height: 700px;     /* prevents it from getting too tall */
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  width: 90%;
  padding: 0 1rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 1px;
}

.hero-text p {
  font-size: 1.2rem;
  margin: 0.5rem 0 1.5rem 0;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #004080;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.cta-button:hover { background: #002a5c; }

/* Navigation bar */
.navbar {
  background: #f5f5f5;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

/* If your nav uses UL/LI */
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.navbar li { margin: 0; }

/* If your nav is just links without UL/LI, this still works */
.navbar a {
  color: #004080;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding: 0.35rem 0.75rem;
}

.navbar a:hover { color: #002a5c; }

/* Content width control (works even if class names changed) */
main, section, .section {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section h2, section h2 {
  margin-top: 0;
  color: #004080;
  border-bottom: 2px solid #004080;
  padding-bottom: 0.5rem;
}

/* Optional alternate background for any section with .dark */
.section.dark { background: #f0f5fb; }

.section ul, section ul {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.section ul li, section ul li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: #004080;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (min-width: 700px) {
  .hero-text h1 { font-size: 3rem; }
  .hero-text p { font-size: 1.5rem; }
  .cta-button { font-size: 1rem; }
}
