:root {
  --main: #7ed957;
  --text: #000000;
  --background: #ffffff;
  --light-gray: #f5f5f5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--background);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  max-width: 1200px;
  margin: auto;
}

.logo {
  height: 40px;
}

nav a {
  margin-left: 1.5em;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
}

nav a:hover {
  color: var(--main);
}

.hero {
  background: linear-gradient(to right, var(--main), #a5f490);
  text-align: center;
  padding: 3em 1em;
  color: white;
}

.hero h1 {
  font-size: 1.8em;
  margin-bottom: 1em;
}

#searchBox {
  padding: 0.8em 1em;
  width: 90%;
  max-width: 500px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

main {
  flex: 1;
  max-width: 900px;
  margin: 2em auto;
  padding: 0 1em;
}

.section {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section h2 {
  font-size: 1.2em;
  margin-bottom: 0.3em;
}

.section p {
  color: #444;
  font-size: 0.95em;
  margin-bottom: 0.8em;
}

.section ul {
  list-style: none;
  padding-left: 0;
}

.section li {
  margin-bottom: 0.5em;
}

.section a {
  color: var(--main);
  font-weight: 600;
  text-decoration: none;
}

.section a:hover {
  text-decoration: underline;
}

footer {
  margin-top: auto;
  background: var(--light-gray);
  padding: 1em;
  text-align: center;
  font-size: 0.9em;
}

footer a {
  color: var(--text);
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 600px) {
  nav {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  #searchBox {
    font-size: 1em;
    width: 100%;
  }
}
/* === Header / Top Bar === */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.5em;
  flex-wrap: wrap;
  gap: 1em;
}

.logo {
  height: 42px;
  max-width: 100%;
}

/* Navigation Links */
.top-bar nav {
  display: flex;
  gap: 1.2em;
  flex-wrap: wrap;
}

.top-bar nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.top-bar nav a:hover {
  color: var(--main);
}

/* === Responsive Styling === */
@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
  }

  .top-bar nav {
    width: 100%;
    justify-content: flex-start;
    gap: 1em;
  }

  .top-bar nav a {
    font-size: 1rem;
  }
}

/* Optional: Improve spacing below nav */
.hero {
  text-align: center;
  padding: 2em 1em;
}

.hero input[type="text"] {
  margin-top: 1em;
  width: 100%;
  max-width: 400px;
  padding: 0.75em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
