/* Button styles for consistent look across site */
.btn {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-primary {
  background-color: #007bff; /* Vibrant blue */
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3; /* Darker blue on hover */
  color: white;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #6c757d; /* Gray from existing buttons */
  color: #6c757d;
}

.btn-secondary:hover {
  background-color: #6c757d;
  color: white;
}

@media screen and (max-width: 600px) {
  .btn {
    padding: 8px 16px; /* Slightly smaller on mobile */
    font-size: 0.9rem;
  }
}

/* Task List Checkbox Styling */
.task-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1.2em 0 2em 0 !important;
}

.task-list-item {
  position: relative !important;
  list-style: none !important;
  padding-left: 30px !important;
  margin-bottom: 12px !important;
  line-height: 1.6 !important;
}

.task-list-item-checkbox {
  position: absolute !important;
  left: 0 !important;
  top: 4px !important;
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  border: 2px solid #16a34a !important;
  background-color: #16a34a !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 11px 11px !important;
  cursor: default !important;
  opacity: 1 !important;
}

input[type="checkbox"].task-list-item-checkbox:not(:checked) {
  background-color: transparent !important;
  background-image: none !important;
  border: 2px solid #94a3b8 !important;
}

/* Eyebrow Asides & Section Signposts */
aside, .post-content aside, .page-content aside {
  display: block !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: #6c757d !important; /* Proper gray matching site buttons (#6c757d) */
  margin-top: 5rem !important;
  margin-bottom: 0.25rem !important;
  line-height: 1.4 !important;
}

/* Connect h2 smoothly when preceded by an eyebrow aside */
aside + h2,
.post-content aside + h2,
.page-content aside + h2 {
  margin-top: 0.25rem !important;
  padding-top: 0 !important;
  border-top: none !important;
}

aside + h2::before,
.post-content aside + h2::before,
.page-content aside + h2::before {
  display: none !important;
  content: none !important;
  height: 0 !important;
}

/* Responsive Discovery Walkthrough GIF (Desktop & Mobile Switching) */
.preview-gif-container {
  text-align: center;
  margin: 4.5rem 0 5rem 0 !important;
}

.preview-gif {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  display: inline-block;
  max-width: 720px;
}

/* Generous Whitespace Between Major Sections */
.post-content h2, .page-content h2 {
  margin-top: 5rem !important;
  margin-bottom: 0.5rem !important;
}

/* Sub-heading / Problem focus (smaller and italic to not compete with h2 title) */
.post-content h3, .page-content h3 {
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #555555 !important;
  margin-top: 0.35rem !important;
  margin-bottom: 1.75rem !important;
  line-height: 1.5 !important;
}

.post-content h3 em, .page-content h3 em,
.post-content h3 i, .page-content h3 i {
  font-style: italic !important;
  font-weight: 400 !important;
}

.post-content h4, .page-content h4 {
  margin-top: 2.5rem !important;
  margin-bottom: 0.75rem !important;
}

/* Replace any remaining horizontal rules with clean white space */
.post-content hr, .page-content hr {
  border: 0 !important;
  height: 0 !important;
  margin: 4.5rem 0 !important;
  visibility: hidden !important;
}

@media (max-width: 680px) {
  .preview-gif {
    max-width: 320px;
  }
  .preview-gif-container {
    margin: 3.5rem 0 4rem 0 !important;
  }
  .post-content h2, .page-content h2 {
    margin-top: 3.5rem !important;
  }
  aside, .post-content aside, .page-content aside {
    margin-top: 3.5rem !important;
  }
}




