/* style-40mini-1.css */

/* Import Google Fonts here */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
  --brand-green: #2E6436;
  --text-color: #333;
  --link-color: #2E6436;
  --link-hover: #1f4224;
  --bg-light: #f9f9f9;
  --nav-width: 200px;
  --teaser-bg: #e6f2e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-light);
  display: flex;
}

/* Header with top menu */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--brand-green);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

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

.logo {
  max-height: 50px;
}

.top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.top-menu li {
  margin-left: 1.5rem;
}

.top-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.top-menu a:hover {
  text-decoration: underline;
}

/* Side navigation */
.side-nav {
  position: fixed;
  top: 70px; /* height of header */
  left: 0;
  width: var(--nav-width);
  height: calc(100vh - 70px);
  background-color: #fff;
  padding: 1rem;
  border-right: 1px solid #ddd;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav li {
  margin-bottom: 1rem;
}

.side-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.side-nav a:hover {
  color: var(--link-hover);
}

/* Main content */
main {
  margin-top: 70px; /* header height */
  margin-left: var(--nav-width);
  padding: 2rem;
  flex: 1;
  background-color: #fff;
}

/* Hero Section */
.hero {
  background-color: var(--brand-green);
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
}

.hero-content p {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
}

.hero .btn {
  display: inline-block;
  background-color: #fff;
  color: var(--brand-green);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
}

.hero .btn:hover {
  background-color: var(--teaser-bg);
}

/* Blog Teaser Section */
.blog-teaser {
  background-color: var(--teaser-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.blog-teaser h2 {
  margin-top: 0;
}

.teaser-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.teaser-cards article {
  background-color: #fff;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.teaser-cards h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.teaser-cards p {
  margin: 0;
  font-size: 0.9rem;
}

.teaser-cards a {
  color: var(--link-color);
  text-decoration: none;
}

.teaser-cards a:hover {
  text-decoration: underline;
}

/* Styled links in body */
main a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 700;
}

main a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Styled lists */
main ul,
main ol {
  margin: 1rem 0 1rem 1.5rem;
}

main li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: var(--nav-width);
  right: 0;
  background-color: var(--bg-light);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
}
