/* Base box-sizing for consistency */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Global Page Layout with sticky footer setup */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #fff3e0);
  color: #333;
  display: flex;
  flex-direction: column;
}

/* Make body flex container to push footer down */
body {
  display: flex;
  flex-direction: column;
}

/* Shared container style for sections */
.container {
  width: 90%;
  max-width: 960px;
  margin: 1rem auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Header */
header {
  width: 100%;
  padding: 0;
  margin: 0;
}

.hero-logo {
  width: 100%;
  max-height: 160px;
  height: auto;
  object-fit: contain;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Navigation Bar */
nav {
  width: 90%;
  max-width: 960px;
  margin: 1rem auto;
  background-color: #000000;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
  margin: 0;
  padding: 0.5rem 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #388e3c;
}

/* Main Content */
main.container {
  flex: 1; /* Key part of sticky footer */
  padding: 2rem;
}

/* Headings */
h1, h2 {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #eeeeee;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  margin: 0 auto 2rem auto;
  width: 90%;
  max-width: 960px;
  border-radius: 12px;
}

footer a {
  color: #2e7d32;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Mobile Responsive Navbar */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
}