.post-blog {
  margin-top: 6rem;
  margin-bottom: 3rem;
}

.post-blog h1 {
  text-align: center;
  margin: 0;
  line-height: normal;
}
.post-blog h2 {
  color: var(--green-light-color);
}
.post-blog .nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.post-blog .nav a {
  font-size: 20px;
  color: black;
  text-decoration: none;
}

.post-blog form {
  max-width: 50rem;
  margin: 0 auto;
}

.post-blog label {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.post-blog input[type="text"],
.post-blog textarea,
.post-blog select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  box-sizing: border-box;
  font-size: 18px;
}

.post-blog input[type="submit"] {
  background: var(--green-light-color);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  margin: auto;
}

.post-blog input[type="submit"]:hover {
  background: var(--green-light-color);
}
.post-blog .article-section {
  border: thick double var(--green-light-color);
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Switch container */
.switch-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  user-select: none;
  margin-bottom: 2rem;
}

/* Labels */
.switch-label {
  font-size: 14px;
  color: #333;
  transition: color .18s ease;
}
.switch-label.right { opacity: 0.6; }
.switch-label.left  { opacity: 1; }

/* Switch visual */
.switch {
  display: inline-block;
  cursor: pointer;
  outline: none;
}
.switch input { display: none; }

/* Track */
.switch-track {
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: #e6e6e6;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  box-sizing: border-box;
  transition: background .18s ease, box-shadow .18s ease;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

/* Thumb */
.switch-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transform: translateX(0);
  transition: transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .18s ease;
  display: block;
}

/* Checked state using sibling selector on the hidden input */
.switch input:checked + .switch-track {
  background: linear-gradient(90deg, #6ee7b7, #34d399); /* subtle green */
  box-shadow: 0 4px 14px rgba(52,211,153,0.18);
}
.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(26px);
  box-shadow: 0 6px 18px rgba(52,211,153,0.22);
}

/* Focus styles for keyboard accessibility */
.switch:focus {
  outline: 3px solid rgba(59,130,246,0.18);
  border-radius: 6px;
}

/* Small screens: scale down */
@media (max-width: 420px) {
  .switch-track { width: 48px; height: 26px; padding: 3px; }
  .switch-thumb { width: 20px; height: 20px; }
  .switch input:checked + .switch-track .switch-thumb { transform: translateX(22px); }
  .switch-label { font-size: 13px; }
}

/* Optional: visually indicate which label is active */
.switch input:checked ~ .switch-track ~ .switch-label.right,
.switch input:not(:checked) ~ .switch-track ~ .switch-label.left { /* no-op, kept for readability */ }

