body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #002b3f; /* Dark Blue Background */
  color: white;
}

/* ======================================= */
/* --- HEADER LAYOUT FIXES (CRITICAL) --- */
/* ======================================= */

header {
  /* OVERRIDE: Uses block display so H1 and Tagline stack vertically */
  display: block; 
  
  position: relative; /* CRITICAL: Allows NAV to be absolutely positioned */
  
  padding: 1.5rem;
  background-color: #004f2d; /* Dark Green Header Background */
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
  /* Style for the main title */
  color: white;
  font-size: 2.5rem; 
  margin-bottom: 0.2rem; /* Reduced margin for tight spacing */
}

.tagline {
  /* Style and position for the long tagline text */
  margin: 0;
  font-size: 0.9em;
  color: #a8a8a8; /* Light gray for contrast */
  max-width: 75%; /* Prevents tagline from running under the navigation */
  padding-bottom: 1rem;
}

nav {
  /* CRITICAL: Moves the navigation links to the top-right corner */
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

/* --- END LAYOUT FIXES --- */

nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffd700; /* Yellow hover color */
}

section {
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero {
  color: white;
}

.hero h2 {
  font-size: 2.5rem;
  color: #ffd700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  background-color: #ffd700;
  color: black;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #ffea70;
}

.about {
  background-color: #ffd700; /* Yellow About Section */
  color: black;
}

.about h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.vision {
  background-color: #004f2d; /* Dark Green Vision Section */
  color: white;
}

.vision h3 {
  color: #ffd700;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background-color: #003344;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card h4 {
  color: #ffd700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact {
  background-color: #002b3f; /* Dark Blue Contact Section */
  color: white;
}

.contact h3 {
  color: #ffd700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.contact input {
  padding: 0.8rem;
  border-radius: 12px;
  border: none;
  flex: 1;
  min-width: 200px;
}

footer {
  background-color: #004f2d;
  color: #ffd700;
  text-align: center;
  padding: 1rem;
}

@media (max-width: 600px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  header h1 {
    font-size: 1.5rem;
  }
}