article > *,
section > * {
  margin: auto;
  max-width: calc(var(--content-max-width) * 0.9);
}

article {
  display: flex;
  align-items: center;
  flex-direction: column;
}

article {
  padding: 3rem 10px;
}

@media (min-width: 1024px) {
  article {
    /* padding: 3rem 120px; */
  }
}

article.white {
  background-color: var(--white-bg);
}
article.gray {
  background-color: var(--gray-bg);
}

article h1 {
  text-align: center;
  max-width: 36ch !important;
  /* margin-bottom: 30px!important; */
  font-family: "Spartan ExtraBold", sans-serif;
  font-size: 32px;
  margin-bottom: 25px;
}

article a,
article .button {
  color: #000;
  text-decoration: none;
  padding: 0.7rem 30px 0.7rem;
  margin: 0 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: bold;
  border-radius: 0.6rem;
  display: inline-block;
  color: var(--main-color-dark);
  background: transparent;
  border: 2px solid var(--main-color-dark);
}

article a:hover,
article .button:hover,
article a.hover-style {
  transition: all 0.2s, color 0.2s;
  color: #fff;
  border-color: #fff;
  background: var(--main-color-dark);
  cursor: pointer;
}

.social-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.taglist {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

h1 + .taglist {
  margin-bottom: 15px;
}

h3 + .taglist,
p + .taglist {
  margin-left: 30px;
}

.social-buttons li,
.taglist li {
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
  line-height: 1.6;
}

ul.taglist + ul.social-buttons {
  margin-top: 20px;
  margin-bottom: 20px;
}

article > img:first-of-type {
  width: 100%;
  height: auto;
  margin-top: 25px;
}
article > img[src=""] {
  display: none;
}

.social-buttons li {
  margin: 0px 10px;
  background-color: transparent !important;
}

.social-buttons li img[role="button"] {
  width: 28px;
  height: 28px;
  filter: var(--black-to-sn-blue);
  cursor: pointer;
}

.taglist li:not(:last-child)::after {
  margin: 0px 7px;
  content: "\00a0|\00a0";
}

.company-info {
  display: flex;
  margin: 50px 0 0 0;
  align-items: center;
  justify-content: center;
  margin-left: 30px;
  width: calc(100% - 60px);
  flex-wrap: wrap;
  margin-right: 30px;
}
.company-info * {
  margin: 0px !important;
}

.social-buttons li:not(:first-child)::after {
  content: "\00a0";
}

article aside {
  width: 100%;
}

article .blog-post {
  margin: 30px 0 15px 0;
  padding: 0px 10px;
  width: 100%;
}

article .blog-post p {
  text-align: left;
}

article .blog-post .author-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 40px;
  width: 100%;
}

article .blog-post .author-info img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  margin-right: 20px;
  margin-bottom: 10px;
  filter: grayscale(1);
}

article .blog-post .author-info div {
  flex: 1;
}

article .blog-post .author-info div p {
  text-align: left;
  margin: 0;
  margin-bottom: 5px;
  margin-right: 30px;
  font-size: 14px;
}

article .blog-post .author-info div p:first-of-type {
  font-family: "Spartan Medium", sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1;
}

article .blog-post .author-info time {
  flex: 100%;
  text-align: left;
  color: var(--light-gray);
  font-size: 0.9rem;
  bottom: -25px;
  left: -90px;
}
@media (min-width: 950px) {
  article .blog-post .author-info time {
    left: 0;
  }
}

article .blog-post .minutes-to-read {
  text-align: left;
  color: var(--light-gray);
  font-size: 1.1rem;
  margin-top: 10px;
}

article .blog-post .lead p {
  font-weight: bold;
  font-family: "Spartan Medium", sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
}

article .blog-post .body {
  font-size: 16px;
}
article .blog-post .body p {
  line-height: 1.4;
  font-size: 1em;
}

article .blog-post .body h3 {
  font-family: "Spartan Medium", sans-serif;
  font-size: 1em;
  font-weight: bold;
  margin: 10px 0px;
  text-align: left;
}
article .blog-post .body blockquote {
  line-height: 1.4;
  color: #fff;
  font-family: "Spartan Medium", sans-serif;
  background-color: var(--main-color);
  padding: 2rem;
  font-size: 1em;
  margin: 25px 0px;
  display: inline-block;
}
article .blog-post a {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
  font-size: 1em !important;
  color: var(--main-color);
  font-family: "Spartan Medium";
  font-weight: bold;
}

article .blog-post .body ul {
  padding-left: 25px;
}
article .blog-post .body li {
  list-style-type: disc;
  font-family: "Spartan Medium", sans-serif;
}

article .blog-post .body table {
  width: 100%;
  border-spacing: 0;
}

article .blog-post .body th,
article .blog-post .body td {
  border: 1px solid #c2c2c2;
  padding: 8px;
  text-align: left;
  font-family: "Spartan Medium", sans-serif;
}

article .blog-post .body th {
  font-weight: bold;
}

article .blog-post .body img {
  width: 100%;
  height: auto;
  max-width: var(--content-max-width);
  margin: auto;
  display: block;
}
.blog-post .social-buttons {
  grid-column: 2 / span 2;
}
.blog-post .social-buttons li {
  margin-left: 0;
}

article .author-bio {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

article .author-bio div {
  order: 2;
}
article .author-bio div p:first-of-type {
  font-family: "Spartan Medium", sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: 0px;
  line-height: 1;
}

article .author-bio div p:not(:first-of-type) {
  margin: 0px;
  max-width: 18ch;
}

article .author-bio img {
  order: 1;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  margin-right: 15px;
  margin-bottom: 10px;
  filter: grayscale(1);
  object-fit: contain;
}
article .author-bio > p {
  order: 3;
  flex: 100%;
  font-family: "Spartan", sans-serif;
}

@media (min-width: 950px) {
  article .blog-post {
    display: grid;
    grid-template-columns: 3fr 7fr;
    grid-template-rows: auto auto;
    grid-gap: 5px;
    margin-top: 120px;
  }

  article .blog-post aside {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  article .blog-post aside .minutes-to-read {
    position: absolute;
    top: 0;
    margin-top: -85px;
    left: 101%;
    width: 100%;
  }

  article .blog-post .lead {
    grid-column: 2 / span 2;
    grid-row: 1;
  }

  article .blog-post .lead p {
    margin-top: 0;
  }

  article .blog-post .body {
    grid-column: 1 / span 3;
    grid-row: 2;
    margin-bottom: 40px;
  }
  article .blog-post .body > *:not(blockquote):not(img) {
    margin-left: var(--blog-body-desktop-padding-left);
  }

  article .blog-post .body blockquote {
    margin-right: 72.5%;
    position: absolute;
  }

  .blog-post .social-buttons {
    justify-content: flex-start;
  }

  /*article .blog-post .body ul {
    padding-left: calc(var(--blog-body-desktop-padding-left) + 20px) !important;
  }*/

  article .author-bio {
    display: grid;
    justify-items: center;
    grid-template-columns: 2fr 1fr 7fr;
    grid-template-rows: auto;
    column-gap: 5px;
  }
  article .author-bio * {
    order: 1 !important;
  }

  article .author-bio div {
    text-align: right;
    grid-column: 1 / 2;
  }
  article .author-bio img {
    grid-column: 2 / 3;
    margin-right: 0;
    left: -5px;
  }
  article .author-bio > p {
    grid-column: 3/-1;
    margin: 0;
  }
}

/* Make the blog post image full page width */
article figure {
  width: 100%;
  margin: 0;
}

article .minutes-to-read {
  font-size: 0.875rem;
  color: #656565;
  margin-bottom: 1rem;
}

/*author info beside post start*/
article .author-info-mini {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  float: left;
  margin: 0 auto;
}

article .author-info-mini img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 20px;
  margin-bottom: 10px;
}

article .author-info-mini .author-text {
  display: flex;
  flex-direction: column;
}

article .author-info-mini .author-text p {
  margin: 0;
}
/*author info beside post end*/

/*author under post start*/

article .author-info img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 20px;
  margin-bottom: 10px;
}

article .author-info .author-text {
  display: flex;
  flex-direction: column;
}

article .author-info .author-text p {
  margin: 0;
}
/*author under post end*/
.post-card-container {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  max-width: calc(var(--content-max-width) * 0.9 + 25px);
}

.post-card-container > li {
  margin-bottom: 15px;
  font-size: 0.8rem;
  margin: 15px;
  width: 100%;
}

@media (min-width: 720px) {
  .post-card-container > li {
    width: calc(50% - 30px);
  }
}

@media (min-width: 1150px) {
  .post-card-container > li {
    width: calc(33.33% - 30px);
  }
  .post-card-container .taglist {
    overflow: hidden;
  }
}

.post-card-container li a:hover {
  background: transparent;
}

.post-card-container li a {
  padding: 0;
  margin: 0;
  border: none;
  color: #000;
  margin: 0;
  width: 100%;
}

.post-card-container li a h2 {
  font-size: 1.1em;
  text-align: left;
  /* width: 100%; */
  /* padding: 0px 10px; */
  height: 5rem;
  margin-bottom: 0 !important;
  /* margin-top: 0; */
  margin: 0 25px;
}

.post-card-container > li > * {
  margin: 10px 25px;
}

.post-card-container li .taglist {
  height: 4rem;
  align-content: flex-start;
  justify-content: flex-start;
  margin-top: 10px;
}

.post-card-container li .taglist li {
  font-size: 0.8em;
  font-weight: normal;
  font-family: "Spartan Medium", sans-serif;
}
.post-card-container li a img[src=""] {
  display: none;
}
.post-card-container li a:first-of-type {
  width: 100%;
}

.post-card-container li a:first-of-type img {
  height: 295px;
  width: 100%;
  object-fit: cover;
}
.post-card-container li time {
  text-align: left;
  color: var(--light-gray);
  font-size: 1em;
  margin-top: 10px;
  margin-bottom: 5px;
  width: 100%;
  display: inline-block;
  font-family: "Spartan Medium", sans-serif;
}
.post-card-container li .author-info {
  display: flex;
  align-items: center;
}

.post-card-container li .author-info img {
  margin-right: 10px;
  border-radius: 50%;
  filter: grayscale(2);
}
.post-card-container li .author-info p {
  margin: 0;
  font-family: "Spartan Medium", sans-serif;
  font-weight: bold;
  font-size: 1.2em;
}

.post-card-container li.ask-for-post {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.post-card-container li.ask-for-post > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.post-card-container li.ask-for-post a:first-of-type img {
  width: 150px;
  height: 150px;
}

.post-card-container li.ask-for-post a:first-of-type h2 {
  text-align: center;
  margin-top: 20px;
  height: auto;
}

.casestudy-card-container p {
  text-align: left;
}
.casestudy-card-container img {
  width: 250px;
  height: 120px;
  object-fit: contain;
}

.casestudy-card-container li > img {
  margin-bottom: 15px;
}

section.related {
  width: 25%;
  background: transparent;
}

section.related h3 {
  color: #000;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

section.related h3 a {
  text-decoration: none;
}

section.related figure {
  width: 100%;
  margin: 0;
  padding: 0;
}

section.related .date {
  color: #000;
  font-size: 0.5em;
  margin: 0;
  float: left;
}

/*author info of related post start*/
section.related .author-info-mini {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  float: left;
  margin: 0 auto;
}

section.related .author-info-mini img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 10px;
  margin-bottom: 5px;
}

section.related .author-info-mini .author-text {
  display: flex;
  flex-direction: column;
  font-size: 0.5em;
  color: #000;
}

section.related .author-info-mini .author-text p {
  margin: 0;
}

/* tags */

section .tags-container li {
  margin: 0.5rem;
  padding: 9px 18px 4px 18px;
  border-radius: 25px;
  background-color: #f08683;
  color: #fff;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Spartan Medium";
}

.featured-blog-container {
  width: 100%;
  align-items: stretch;
  padding-bottom: 20px;
}

.featured-blog-container h3 {
  font-family: "Spartan Bold";
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: 0;
}

.featured-blog-container a {
  font-size: 1.5em;
  text-align: left;
  padding-left: 0;
  color: var(--main-color-dark);
  border: none;
  margin-left: 30px;
}
.featured-blog-container a:hover {
  border: none;
  background: transparent;
  color: var(--main-color-dark);
}

.featured-blog-container > li > p {
  height: 200px;
}

.featured-blog-container p {
  text-align: left;
  margin: 30px;
  margin-top: 0px;
}

.featured-blog-container > li {
  display: grid;
  height: 100%;
  /* min-height: 100%; */
  grid-template-columns: 1fr;
}

.featured-blog-container li .taglist li {
  font-size: 0.8em;
  font-weight: normal;
  font-family: "Spartan Medium", sans-serif;
  color: var(--light-gray);
}

.author-info-featured {
  display: flex;
  flex-direction: row;
  margin: 0 30px;
  align-items: center;
  font-size: 12px;
  margin-top: 25px;
}

.author-info-featured p {
  font-size: 0.9em;
}

.author-info-featured img {
  width: 2.5rem;
  height: 2.5rem;
}

.author-text {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.author-text p {
  margin: 0 8px;
}
.author-text p:nth-of-type(3) {
  /* flex: 1; */
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--light-gray);
}

.featuredflagblock {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 100%;
  height: 120px;
  z-index: 1;
  overflow: hidden;
}

.featuredflag {
  content: "FEATURED";
  background: red;
  color: white;
  position: absolute;
  padding: 9px 36px 8px;
  width: 176px;
  height: 40px;
  text-align: center;
  font-weight: bold;
  transform: rotate(45deg);
  top: 26px;
  right: -52px;
  font-size: 0.9rem;
  font-weight: 800;
}
.featuredflag span {
  padding-top: 5px;
  top: 5px;
}

.featuredflag .ff-lg {
  width: 64px;
  height: 32px;
  background: white;
  position: absolute;
  top: -7px;
  left: -20px;
  transform: rotate(-45deg);
}

.featuredflag .ff-rg {
  width: 64px;
  height: 32px;
  background: white;
  position: absolute;
  top: -7px;
  right: -12px;
  transform: rotate(45deg);
}

/* carousel start */
.carousel {
  padding: 0;
  margin: 0 30px;
  overflow: hidden;
  position: relative;
}

.carousel > ul {
  display: flex;
  transition: transform 0.5s ease-in-out;
  margin-bottom: 50px;
}

.carousel > ul > li {
  flex: 1 0 100%;
  list-style: none;
  /* padding: 0 20px; */
  margin: 0 10px;
}

.carousel .bullets {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.carousel .bullets > span {
  width: var(
    --swiper-pagination-bullet-width,
    var(--swiper-pagination-bullet-size, 8px)
  );
  height: var(
    --swiper-pagination-bullet-height,
    var(--swiper-pagination-bullet-size, 8px)
  );
  text-align: center;
  border: 1px solid var(--main-color);
  border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
  margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
  background: var(--swiper-pagination-bullet-inactive-color, #fff);

  display: inline-block;
  cursor: pointer;
  opacity: 1 !important;
}

.swiper.featured-carousel .swiper-slide {
  font-size: inherit;
  height: 100%;
}
.carousel .bullets > span.active {
  background: var(--swiper-pagination-bullet-inactive-color, var(--main-color));
}
/* carousel stop */

.swiper.featured-carousel {
  height: initial;
  max-width: 600px;
}

.swiper.featured-carousel .swiper-pagination {
  top: initial !important;
  bottom: -5px;
}

.swiper.featured-carousel .swiper-pagination span {
  width: var(
    --swiper-pagination-bullet-width,
    var(--swiper-pagination-bullet-size, 8px)
  );
  height: var(
    --swiper-pagination-bullet-height,
    var(--swiper-pagination-bullet-size, 8px)
  );
  text-align: center;
  border: 1px solid var(--main-color);
  border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
  margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
  background: var(--swiper-pagination-bullet-inactive-color, #fff);

  display: inline-block;
  cursor: pointer;
  opacity: 1 !important;
}

.swiper.featured-carousel .swiper-pagination-bullet-active {
  background: var(
    --swiper-pagination-bullet-inactive-color,
    var(--main-color)
  ) !important;
}

.swiper-wrapper.disabled {
  padding-bottom: 0;
}

.featured-blog-container > li > a {
  margin: 0;
  padding: 0;
  z-index: 1;
}

.featured-blog-container > li > div:last-of-type {
  margin-top: 20px;
  padding-bottom: 14px;
}

.featured-blog-container > li .author-info-featured img {
  margin: 0;
}

.featured-blog-container li > div:last-of-type > p {
  font-family: "Spartan SemiBold", sans-serif;
}

.featured-blog-container .taglist {
  justify-content: flex-start;
}

@media (min-width: 1150px) {
  .swiper.featured-carousel {
    max-width: calc(var(--content-max-width) * 0.9);
    padding-bottom: 10px;
  }
  .featured-blog-container > li {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 0;
  }
  .featured-blog-container .taglist {
    margin-bottom: 10px;
    margin-top: auto;
  }

  .featured-blog-container > p {
    margin-bottom: 15px;
  }

  .featuredflagblock {
    z-index: 0;
  }
  .featured-blog-container > li > div:last-of-type {
    margin-top: 0;
    height: 100%;
    top: 11px;
    display: flex;
    flex-direction: column;
  }

  .featured-blog-container > li > a {
    height: 100%;
  }
  .featured-blog-container > li > a img {
    height: inherit;
    object-fit: cover;
  }
  .featured-blog-container > li > a img[src = ""] {
    display: none;
}

  .featured-blog-container > li h3 {
    padding-right: 80px;
    margin-bottom: 10px;
    margin-top: 0;
    min-height: 5rem;
  }

  .featured-blog-container > li h3 a {
    padding: 0;
  }

  .featured-blog-container a {
    padding-right: 0;
  }

  .author-info-featured {
    margin: 0 30px;
    margin-top: auto;
    margin-bottom: 10px;
  }
}

@media (min-width: 1400px) {
  .featured-blog-container > li > a img {
    object-fit: contain;
  }

  .featured-blog-container > li > a img {
    object-fit: contain;
  }
  .featured-blog-container h3 {
    margin-top: 0px;
    margin-bottom: 10px;
  }
  .featured-blog-container h3 > a {
    padding: 0;
    font-family: inherit;
  }
}

.fatured-case-studies > li > div:last-of-type .company-info img {
  margin-top: 25px !important;
}

@media (min-width: 600px) {
  .fatured-case-studies > li > div:last-of-type .company-info {
    margin-right: 30px !important;
    justify-content: space-between;
    margin-top: 0;
  }
}

@media (min-width: 1150px) {
  .fatured-case-studies > li > div:last-of-type > * {
    margin-right: 100px !important;
  }

  .fatured-case-studies > li > div:last-of-type .taglist {
    margin-top: 10px;
  }

  .fatured-case-studies > li > div:last-of-type .company-info img {
    margin-top: 0px !important;
  }

  .fatured-case-studies > li > div:last-of-type .company-info {
    flex-wrap: nowrap;
  }

  .fatured-case-studies > li > div:last-of-type {
    margin-top: 60px !important;
    height: 100%;
    top: 0;
  }

  .fatured-case-studies > li h3 {
    height: auto;
  }

  .fatured-case-studies > li > div:last-of-type .company-info {
    margin-top: 50px;
  }
}

.swiper {
  padding-top: 0 !important;
}
