:root {
  --green-light: #315e35;
  --green-dark: #315e35;
  --light-bg: #ffffff;
  --dark-bg: #171717;
  --light-text: #333;
  --dark-text: #f2f2f2;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  background-color: var(--light-bg);
  color: var(--light-text);
  transition: background 0.3s, color 0.3s;
}

header {
  background: var(--green-light);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

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

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 2;
  justify-content: flex-end;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
  line-height: 1.2;
}

nav a:hover {
  opacity: 0.8;
}

section {
  padding: 2rem 0;
  border-bottom: 1px solid #e0e0e0;
}

h2 {
  color: var(--green-light);
  border-left: 5px solid var(--green-light);
  padding-left: 10px;
}

ul {
  list-style: disc;
  padding-left: 20px;
}

a {
  color: var(--green-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 1rem 0;
  background: #f9f9f9;
  color: #555;
}

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

body.dark header {
  background: var(--green-dark);
}

body.dark footer {
  background: #1e1e1e;
  color: #bbb;
}

body.dark a {
  color: var(--green-light);
}

body.dark nav a {
  color: white;
}

body.dark h2 {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.subtitle {
  font-size: 1rem;
  margin-top: 0.2rem;
  color: #e8e8e8;
  font-weight: 400;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.checkbox-label {
  position: relative;
  width: 50px;
  height: 24px;
  background-color: var(--green-light);
  border-radius: 50px;
  cursor: pointer;
  display: block;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

body.dark .checkbox-label {
  background-color: #244a27;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.checkbox-label:hover {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
}

.checkbox {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.checkbox-label .ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.25s;
}

.checkbox:checked~.ball {
  transform: translateX(26px);
}

.checkbox-label i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
}

.checkbox-label .fa-moon {
  left: 5px;
  color: #f1c40f;
}

.checkbox-label .fa-sun {
  right: 5px;
  color: #f39c12;
}

.branding {
  flex: 1;
}