html {
  scroll-padding-top: auto; /* height of sticky header */
}

body.blogpost {
  margin: 0;
  padding: 0;
}

.blogpost article {
  margin: 0;
  padding: 0;
}

@media (min-width:1400px) {
  .container {
    max-width:1320px;
  }
}

/**
 * Blog > Header 
 * & Blogpost > Header
 */

.blog-header,
.blogpost-header {
  padding-bottom: 3rem;
  background: #E9EEFD;
  background:
    radial-gradient(circle at 40% 60%, rgba(180,220,255,.25), transparent 70%),
    radial-gradient(circle at 70% 40%, rgba(200,180,255,.2), transparent 70%),
    #f7faff;
  background-size: 200% 200%, 200% 200%, auto;
  animation: waveBG 18s ease-in-out infinite;
}

@keyframes waveBG {
  0%   { background-position: 0% 0%, 100% 100%, 0 0; }
  50%  { background-position: 100% 100%, 0% 0%, 0 0; }
  100% { background-position: 0% 0%, 100% 100%, 0 0; }
}

.blog-header .mm-main-navbar,
.blogpost-header .mm-main-navbar {
  background-color: transparent !important;
}

.blog-header h1,
.blogpost-header h1 {
  max-width: 760px;
  margin: 1rem auto;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.blogpost-header-image {
  max-height: 200px;
  max-width: 90%;
}

.blogpost-header-meta {
  font-size: 0.875rem;
}

@media screen and (max-width: 768px) {
  .blog-header h1,
  .blogpost-header h1 {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }

  .blogpost-content main > p:first-child {
    font-size: 1.1rem;
    line-height: auto;
  }
}

/* Blog > Header > Latest articles */

.blog-header .blog-latest-articles {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.blog-header .blog-latest-articles h2 a {
  color: #333;
}

.blog-header .blog-latest-articles h2 a:hover {
  color: #fc4b6d;
}

.blog-header .blog-latest-articles .row > div {
  padding-left: 2rem;
  padding-right: 2rem;
}

@media screen and (max-width: 992px) {
  .blog-header .blog-latest-articles .row > div:last-child {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }
}

/**
 * Blogpost > Content
 */

.blogpost-content {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Headings */

.blogpost-content h2,
.blogpost-content h3,
.blogpost-content h4 {
  margin: 2rem 0 1rem 0;
}

.blogpost-content h2 {
  font-size: 2rem;
  font-weight: bold;
}

.blogpost-content h3 {
  font-size: 1.6rem;
  font-weight: bold;
}

.blogpost-content h4 {
  font-size: 1.4rem;
  font-weight: normal;
}

.blogpost-content p {
  line-height: 1.75rem;
}

/* Text & images */

.blogpost-content main > p:first-child {
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 2rem;
  color: #04143a;
}

.blogpost-content main img,
.blogpost-content main video {
  max-width: 80%;
  height: auto;
  margin: 1.5rem auto;
  border: none;
  box-shadow: 0 1px 4px 0 rgb(0 0 0 / 10%), 0 0 6px 0 rgb(0 0 0 / 10%), 0 2px 2px -2px rgb(0 0 0 / 15%);
  display: block;
}

.blogpost-content main img:not([width]),
.blogpost-content main video:not([width]) {
  width: 600px;
}

.blogpost-content main img.no-shadow,
.blogpost-content main video.no-shadow {
  box-shadow: none;
}

.blogpost-content strong {
  font-weight: 600;
}

.blogpost-content figcaption {
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
}

.blogpost-content blockquote {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-left: 3px solid #e6e7eb;
}

/**
 * Blogpost > Table
 */

@media (min-width: 992px ) {
  .blogpost-table {
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    background-color: #F8F9FA;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
  }
}

.blogpost-content main > table,
.blogpost-table > table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.blogpost-content main > table th,
.blogpost-content main > table td,
.blogpost-table th,
.blogpost-table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.blogpost-content main > table th,
.blogpost-table th {
  text-align: left;
  background-color: #f2f2f2;
  font-weight: bold;
}

.blogpost-content main > table tr:nth-child(even),
.blogpost-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Note */

.blogpost-content .blogpost-note {
  padding: 1rem 2rem;
  margin: 1rem 0;
  background-color: #e8eeff;
  border-radius: 0.5rem;
}

.blogpost-content .blogpost-note p:last-child {
  margin-bottom: 0;
}

.blogpost-content .blogpost-endnote {
  padding: 3rem;
  background-color: #e8eeff;
  margin: 1rem 0;
  border-radius: 0.5rem;
}

.blogpost-content .blogpost-author {
  padding: 3rem;
  background-color: #f7f7f7;
  margin: 1rem 0;
  border-radius: 0.5rem;
}

/* Codeblock */

.blogpost-content pre.highlight > code {
  font-size: 90%;
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  display: block;
  border: 1px solid #e6e7eb;
  border-radius: 8px;
}

.blogpost-content .language-html pre.highlight > code .nt {
  color: #0b632d;
}

.blogpost-content .language-html pre.highlight > code .na {
  color: #8253db;
}

.blogpost-content .language-html pre.highlight > code .s {
  color: #083267;
}

/**
 * Blogpost > Series
 */

.blogpost-series {
  border: 1px solid #e6e7ea;
  border-radius: 0.5rem;
  max-width: 480px;
  margin: 2rem auto;
}

.blogpost-series--header {
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e6e7ea;
}

.blogpost-series--list {
  margin: 0;
  padding: 0;
}

.blogpost-series--list li {
  padding: 1rem 1.5rem;
  list-style-position: inside;
}

.blogpost-series--list li:not(:last-of-type) {
  border-bottom: 1px solid #e6e7ea;
}

.blogpost-series--list li::marker {
  background-color: #fafafa;
  border-radius: 50%;
}

.blogpost-series--list li.active {
  font-weight: 600;
  background-color: #fafafa;
}

/**
 * Blogpost > Table of contents
 */

.blogpost-toc {
  position: sticky;
  top: 32px;
}

.blogpost-toc-title {
  font-size: 0.875rem;
  font-size: inherit;
  font-weight: 600;
  margin: 0 0 0.5rem 1rem;
  line-height: 1.25rem;
  letter-spacing: 0.08rem;
}

.blogpost-toc ul,
.blogpost-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blogpost-toc li {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: all 100ms ease-in-out;
  overflow: hidden;
  white-space: break-spaces;
  text-overflow: ellipsis;
}

.blogpost-toc li a {
  color: #687289;
}

.blogpost-toc li a:hover {
  color: #fc4b6d;
}

.blogpost-toc li.active {
  background: #e8eeff;
  border-radius: 0.25rem;
}

.blogpost-toc li.active a {
  color: #1a53ff;
}

/**
 * Blogpost > Aside
 */

.blogpost-aside {
  font-size: 0.875rem;
}
  
.blogpost-aside-sticky,
.blogpost-aside-non-sticky {
  padding: 0rem 0.75rem;
  border-left: 1px solid #e6e7eb;
}

.blogpost-aside-sticky {
  position: sticky;
  top: 32px;
}

.blogpost-aside-non-sticky > div,
.blogpost-aside-sticky > div:not(:last-child) {
  border-bottom: 1px solid #e6e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.blogpost-aside-non-sticky > div:last-child {
  margin-bottom: 0;
}

.blogpost-aside-non-sticky {
  padding-bottom: 1rem;
}

.blogpost-aside h6 {
  font-size: inherit;
  font-weight: 600;
}

/**
 * Blogpost > Aside > Social share buttons
 */

.blogpost-aside-share {
  align-self: flex-start;
  margin: 0 auto;
}

.blogpost-aside-share ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.blogpost-aside-share li {
  margin-right: 1rem;
  width: 24px;
}

.blogpost-aside-share li a img {
  height: 100%;
  max-width: 24px;
  max-height: 24px;
  pointer-events: none;
  margin: 0.25rem auto;
}

/**
 * Blogpost > Aside > Popular posts
 */

.blogpost-aside-popular h6 {
  font-weight: 500;
  color: #687289;
}

.blogpost-aside-popular ul {
  margin-top: 0 !important;
}

.blogpost-aside-popular li {
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01rem;
}

.blogpost-aside-popular li a:not(:hover) {
  color: inherit;
  opacity: 0.9;
}

/**
 * Blogpost > Aside > Newsletter
 */

.blogpost-aside-newsletter form input[type=email] {
  font-size: inherit;
}

.blogpost-aside-newsletter form button[type=submit] {
  font-size: inherit;
  margin: 0.5rem 0 0 0;
  padding: 0.25rem 0.5rem;
}

/**
 * Blog > Related articles (inline)
 */

.blogpost-related-articles {
  margin: 0 0 1rem;
  padding: 0 1rem;
  border-left: 3px solid #1a53ff;
}

/**
 * Blog > More articles (footer)
 */ 

.blogpost-more-articles .blogpost-card-img-top {
  width: 100% !important;
  height: auto !important;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

/**
 * Blog > Homepage
 */

.blog-grid {
  display: -ms-grid;
  display: grid;
  width: 100%;
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  grid-column-gap: 2rem;
  grid-row-gap: 1rem;
  -ms-grid-rows: auto;
  grid-template-rows: auto;
}

@media (min-width: 576px) and (max-width: 992px) {
  .blog-grid {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .blog-grid {
    -ms-grid-columns: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .blog-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}

.blog-grid-cards {
  -webkit-box-shadow: 0px 8px 26px 2px rgba(0, 0, 0, 0.01);
  box-shadow: 0px 8px 26px 2px rgba(0, 0, 0, 0.01) l;
  border: 1px solid #e6e7eb;
  border-radius: 0.5rem;
  transition: all 0.625s cubic-bezier(0, 0, 0.2, 1);
}

.blog-home-featured {
  padding: 3rem;
}

.blog-grid-cards-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 1rem;
  font-size: 0.875rem;
}

.blog-grid-cards-body {
  margin: 0 1rem 1rem;
}

.blog-header .badge.badge-light,
.blogpost-header .badge.badge-light,
.blog-grid-cards-header .badge.badge-light {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a53ff;
  background-color: #f4f7fe;
  text-transform: uppercase;
}

.blog-header .badge.badge-light:hover,
.blogpost-header .badge.badge-light:hover,
.blog-grid-cards-header .badge.badge-light:hover {
  color: #fc4b6d;
}

.blog-grid-cards h2 {
  flex: 1 0 auto;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-grid-cards h2 a {
  color: #04143a;
}

.blog-grid-cards h2 a:hover {
  color: #fc4b6d;
}

/**
 * Blog > Pagination
 */

.blog-pagination {
  margin-top: 3rem;
  text-align: center;
}

/**
 * Blog > Feed
 */

.blog-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-feed li {
  margin: 0;
  padding-bottom: 32px;
}

@media screen and (min-width: 992px) {
  .blog-feed {
    position: relative;
    column-count: 3;
    column-rule: 1px solid #e7e7e7;
    column-gap: 80px;
  }

  .blog-feed:after {
    content: '';
    width: 100%;
    height: 32px;
    position: absolute;
    background-color: #fff;
    bottom: 0;
    left: 0;
  }

  .blog-feed li {
    break-inside: avoid;
    break-inside: avoid-column;
    overflow: hidden;
  }

  .blog-feed li:first-child {
    break-after: always;
    break-after: column;
  }
}

/* Upsell block */
.blogpost-content .blogpost-install-block-image {
  box-shadow: none;
  margin: 0;
  max-width: none;
  width: 100% !important;
}

.blogpost-content p {
  line-height: 1.5 !important;
}

.blogpost-install-block {
  background-color: #F9FAFC;
}

.blogpost-content .blogpost-install-block-title {
  font-weight: 700;
  margin-top: 0;
}

.blogpost-install-block-rating-box {
  gap: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.blogpost-install-block-rating-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.blogpost-install-block-cta {
  width: fit-content;
}

@media (max-width: 767px) {
  .blogpost-install-block-cta {
    width: 100%;
  }
}

.blogpost-install-block-rating-box-svg {
  margin-bottom: 0.3rem;
}