/* Additions for the Next.js version. The original theme lives in styles.css and seo.css. */

/* Keep animated elements hidden until the animation script has set their start state,
   so server-rendered pages don't flash content before it fades in. */
html.js-anim:not(.anim-ready) .effectFade {
  visibility: hidden;
}

/* Contact form */
.form-contact .attachment {
  cursor: pointer;
}
.form-contact .form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}
.form-contact .form-status.is-success {
  background: rgba(33, 150, 83, 0.12);
  color: #1b7a44;
}
.form-contact .form-status.is-error {
  background: rgba(234, 43, 22, 0.1);
  color: #c0271a;
}
.form-contact button[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Blog cards are fully clickable, as they were with the original onclick handler. */
.article-blog.is-clickable,
.relatest-post-item.is-clickable {
  cursor: pointer;
}

/* ---- Moved from the inline <style> blocks of blog.html and the blog-*.html pages ---- */
.sidebar-categories .item.active a {
  color: #ff6a5a !important;
  font-weight: 700;
}
.list-tags .tags-item.active {
  background-color: #ff6a5a !important;
  color: #fff !important;
  border-color: #ff6a5a !important;
}
.form-search {
  position: relative;
}
.form-search .search-clear {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: none;
}
.form-search .search-clear:hover {
  color: #fff;
}
.article-blog {
  cursor: pointer;
  transition: all 0.3s ease;
}
.article-blog:hover {
  transform: translateY(-4px);
}
.blog-single-content pre {
  background-color: #161b22;
  padding: 18px;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid #30363d;
  margin: 24px 0;
}
.blog-single-content pre code {
  color: #c9d1d9;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}
.blog-single-content h5 {
  color: #fff;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
}
.blog-single-content ul {
  margin: 16px 0 24px 20px;
  list-style-type: disc;
}
.blog-single-content ul li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
