/* -----------------------------
   Base styles for StudentMarket.com
   Simple, responsive, non‑technical owner–friendly
   ----------------------------- */

/* 1. Global resets & typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f9f9f9;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 2. Layout & sections */
.site-header {
  background-color: #004080;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.site-header h1 a {
  color: #fff;
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.main-nav a:hover {
  text-decoration: underline;
}

.page-content {
  padding: 2rem 0;
}

.hero {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero p {
  margin-bottom: 0.8rem;
}

/* 3. Cards / content blocks */
.card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  color: #005a9e;
}

.card ul {
  margin: 0.6rem 0 0.6rem 1.2rem;
  padding: 0;
}

.card li {
  margin: 0.3rem 0;
}

/* 4. Links */
a {
  color: #0077cc;
}

a:hover {
  text-decoration: underline;
}

/* 5. Footer */
.site-footer {
  background-color: #002f5d;
  color: #ddd;
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #eee;
}

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

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.footer-col {
  margin-bottom: 1rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.2rem;
}

/* 6. Simple mobile responsiveness */
@media (max-width: 600px) {
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav {
    order: 2;
    width: 100%;
    margin-top: 0.8rem;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}
