
:root {
  --primary-color: #5a7086;
  --primary-dark: #425666;
  --bg-light: #f5f7f8;
  --bg-dark: #1c2833;
  --text-light: #f0f4f8;
  --text-dark: #2d3a47;
  --header-gray: #d9e1e8;
  --footer-gray: #c4cbd4;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Header Layout */
.main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background-color: var(--primary-color);
}

.logo-container {
  margin-bottom: 15px;
}

.logo-container img {
  height: 325px;
  width: 325px;
  object-fit: contain;
  display: block;
}

.header-content {
  color: white;
}

.header-content h1 {
  margin: 0;
  font-size: 2em;
  color: white;
}

.header-content .tagline {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-top: 6px;
}

nav {
  margin-top: 15px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.8;
}

.dark-toggle {
  margin-top: 15px;
  background: none;
  border: 2px solid white;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--header-gray);
}

/* Added: dark-mode for hero background */
body.dark-mode .hero {
  background-color: #2b2b2b;
}

/* Centered Logo in Hero */
.hero-logo {
  margin-bottom: 20px;
}

.hero-logo img {
  height: 250px; /* Updated for reasonable default */
  width: 250px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Added missing subtitle styling */
.hero p.subtitle {
  font-size: 1.3em;
  color: #444;
  max-width: 720px;
  margin: 0 auto 40px;
}

body.dark-mode .hero p.subtitle {
  color: #ddd;
}

/* CTA button (if used later) */
.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--primary-dark);
}

/* Mission Section */
.mission {
  background-color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.15em;
  line-height: 1.7;
  color: #444;
}

body.dark-mode .mission {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #444;
  background-color: var(--footer-gray);
}

body.dark-mode footer {
  background-color: #111;
  color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-header {
    padding: 25px 15px;
  }

  .logo-container img {
    height: 100px;
  }

  .hero h1 {
    font-size: 2.2em;
  }

  .hero p.subtitle {
    font-size: 1.1em;
  }

  nav a {
    display: inline-block;
    margin: 8px 10px;
  }

  .mission {
    font-size: 1em;
  }

  .dark-toggle {
    margin-top: 12px;
  }

  .hero-logo img {
    height: 140px; /* Adjust for smaller screens */
    width: auto;
  }
}