/* Resources page: responsive download product cards */
body.page-id-5424 ul.products {
	  display: grid !important;
	  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
	  gap: 32px !important;
	  align-items: start !important;
}

body.page-id-5424 ul.products li.product {
	  width: 100% !important;
	  max-width: 320px !important;
	  margin: 0 auto 32px !important;
	  text-align: center !important;
}

body.page-id-5424 ul.products li.product img.attachment-woocommerce_thumbnail {
	  width: 100% !important;
	  max-width: 300px !important;
	  height: auto !important;
	  aspect-ratio: 3 / 4 !important;
	  object-fit: contain !important;
	  object-position: center center !important;
	  background: #fff !important;
}

@media (max-width: 767px) {
	body.page-id-5424 ul.products {
		    grid-template-columns: 1fr !important;
		    gap: 36px !important;
	}
	
	body.page-id-5424 ul.products li.product {
		    max-width: 300px !important;
	}
}

/* Posts: professional sharing and recommended reading */
body.single-post .sharedaddy.sd-sharing-enabled {
  display: none !important;
}

body.single-post #jp-relatedposts {
  margin: 56px 0 24px !important;
  padding: 32px 0 0 !important;
  border-top: 1px solid #dfe7ec !important;
}

body.single-post #jp-relatedposts::before {
  content: "Recommended reading";
  display: block;
  margin: 0 0 18px;
  color: #0c405c;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
}

body.single-post #jp-relatedposts .jp-relatedposts-items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
}

body.single-post #jp-relatedposts .jp-relatedposts-post {
  width: auto !important;
  min-height: 150px;
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid #dfe7ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(12, 64, 92, 0.08) !important;
}

body.single-post #jp-relatedposts .jp-relatedposts-post-title {
  display: block !important;
  margin: 0 0 12px !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

body.single-post #jp-relatedposts .jp-relatedposts-post-a {
  color: #0c405c !important;
  text-decoration: none !important;
}

body.single-post #jp-relatedposts .jp-relatedposts-post-a:hover,
body.single-post #jp-relatedposts .jp-relatedposts-post-a:focus {
  color: #0a0909 !important;
  text-decoration: underline !important;
}

body.single-post #jp-relatedposts .jp-relatedposts-post-date,
body.single-post #jp-relatedposts .jp-relatedposts-post-context {
  display: block !important;
  margin-top: 6px !important;
  color: #5f6f78 !important;
  font-size: 0.88rem !important;
  line-height: 1.4 !important;
}

@media (max-width: 900px) {
  body.single-post #jp-relatedposts .jp-relatedposts-items {
    grid-template-columns: 1fr !important;
  }

  body.single-post #jp-relatedposts .jp-relatedposts-post {
    min-height: 0;
  }
}

/* Posts: back-to-top button */
body.single-post .whatisai-back-to-top {
  display: flex;
  justify-content: flex-end;
  margin: 40px 0 8px;
}

body.single-post .whatisai-back-to-top a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #0c405c;
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(12, 64, 92, 0.16);
}

body.single-post .whatisai-back-to-top a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 3px;
}

body.single-post .whatisai-back-to-top a:hover,
body.single-post .whatisai-back-to-top a:focus {
  background: #0a0909;
  color: #fff !important;
}

@media (max-width: 767px) {
  body.single-post .whatisai-back-to-top {
    justify-content: center;
    margin-top: 32px;
  }
}
