.card{
  --backgrounnd-color:#fff;
  --border-radius: 4px;
  --body-padding: 30px;
  --shadow: 0 0 0 1px #DEDEDE, 0 0 0 rgba(0,0,0,0);
  --shadow-hover: 0 0 0 1px #DEDEDE, 0px 4px 20px rgba(0,0,0,.2);

  --image-background-color: rgba(0,0,0,.05);
  --image-background-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 170'%3E%3Cpath style='fill:%23fff;' d='M0 169.9V0h220v169.9L0 169.9zM16 154h188V16H16V154z'/%3E%3Cpolygon style='fill:%23fff;' points='190 93.9 140 46 80 104 61 86 30 120.2 30 140 190 140 '/%3E%3Ccircle style='fill:%23fff;' cx='50' cy='50' r='20'/%3E%3C/svg%3E");

  --topic-color:rgba(0,0,0,.6);
  --topic-border-color:var(--topic-color);

}

@media (max-width: 758px){
  .card{
    --body-padding: 20px;
  }
}

.card{width:100%;}
.card__wrapper{width:100%; height:100%;border-radius: var(--border-radius);background: var(--backgrounnd-color);border: 0; box-shadow: var(--shadow); overflow:hidden; display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: -webkit-flex;display: flex;-webkit-box-direction: normal;-moz-box-direction: normal;-webkit-box-orient: vertical;-moz-box-orient: vertical;-webkit-flex-direction: column;-ms-flex-direction: column;flex-direction: column;-webkit-flex-wrap: nowrap;-ms-flex-wrap: nowrap;flex-wrap: nowrap;-webkit-box-pack: start;-moz-box-pack: start;-webkit-justify-content: flex-start;-ms-flex-pack: start;justify-content: flex-start;-webkit-align-content: stretch;-ms-flex-line-pack: stretch;align-content: stretch;-webkit-box-align: stretch;-moz-box-align: stretch;-webkit-align-items: stretch;-ms-flex-align: stretch;align-items: stretch;transition: all 200ms ease-in-out;}
.card__wrapper--link{text-decoration:none; color:currentColor;}
.card__wrapper--link:hover{color:currentColor; box-shadow: var(--shadow-hover);}

.card__header{width:100%;}
.card__image-wrapper{width:100%; height:0; padding-bottom:var(--image-height); position:relative; background: var(--image-background-color) no-repeat center center var(--image-background-url); background-size:25%;}
.card__image{position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover;background-color:#fff;}
.card__image--contain{object-fit:contain;}

.card__body{width:100%; padding:var(--body-padding);}
.card__title{font-size:2rem; line-height: 1.4; color: var(--secondary); margin:0 0 1.6rem 0; overflow-wrap: break-word;word-wrap: break-word;-ms-hyphens: auto;-moz-hyphens: auto;-webkit-hyphens: auto;hyphens: auto;}
.card__title-link{text-decoration:none;}
.card__title-link:hover{text-decoration:underline;}

.card__footer{margin-top:auto;width:100%;padding: 0 var(--body-padding) var(--body-padding) var(--body-padding); color:var(--secondary-color); text-align:right; line-height:0;}
.pagination{
  margin:30px 0 60px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap:30px;
}

.pagination a{
  margin: 0 2px;
  padding: 4px 6px;
  display: inline-block;
  color: currentColor;
  text-decoration: none;

}

.pagination a:hover{
  color: #330c33;
}

.pagination a.active{
  font-weight: bold;
  pointer-events: none;
}
.pagination__prev-link,
.pagination__next-link{
  transform: scale(1.4);
}
.breadcrumbs__wrapper{
  font-size: 1.4rem;
  line-height: 1.4;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #7ea69d;
}
.breadcrumbs{
  margin: 0;
  display: inline-flex;
  flex-direction: row; 
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
}
.breadcrumbs li a{
  color: #7ea69d;
  text-decoration: none;
}
.breadcrumbs li a:hover{
  text-decoration: underline;
}
.breadcrumbs li:last-child span{
  color: #48766c;
}

/* Blog listing */

.blog-listing{
  padding:40px 0;
}
.blog-listing__title{
  display: inline-block;
  position: relative;
  margin:0;
  font-family: 'SharpGrotesk TRIAL Medium';
  font-style: normal;
  font-weight: 400;
  font-size: 70px;
  line-height: 78px;
  color: #1C4F4A;
}
.blog-listing__container {
  margin:30px 0;
  width:100%;
}

  font-size: 2rem;
  font-weight:bold;
}
.blog-filter {
  padding-bottom: 50px;
}
.blog-filter__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-block;
  background: #1C4F4A;
  color: #fff;
  border-radius: 30px;
}
li.blog-filter__item {
  display: inline-block;
  padding:14px 15px;
}

.blog-filter__item a {
  color:#fff;
  text-decoration:none;
}


.blog-filter__item-link{
  color: var(--base-color);
  text-decoration: none;
}

.blog-filter__item-link--active,
.blog-filter__item-link:hover,
.blog-filter__item-link:focus,
.blog-filter__item-link:active{
  color: var(--base-color);
  text-decoration: underline;
}


.blog-listing__breadcrumb-last{
  color: #48766c;
}

.blog-listing__grid {
  margin: 50px 0 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(330px,100%),1fr));
  justify-items: center;
  justify-content: center;
  column-gap: 80px;
  row-gap: 80px;
}

/* Blog post */
.hs-blog-post h1 {font-size: 3.5rem;}
.hs-blog-post h2 {font-size: 3rem;}

.blog-post{
  padding:40px 0;
}

.blog-post .breadcrumbs__wrapper{
  max-width:750px;
  margin:40px auto 30px auto;
}

.blog-post__wrapper{
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap:40px;
}

.blog-post__featured-image{
  /* max-width:850px;
  margin:0 auto 40px auto; */
}

.blog-post__featured-image picture{
  margin-bottom:20px;
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  /* 850 x 360 format */
  padding-bottom: 42.3529411764706%;
}
.blog-post__featured-image picture img{
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post__meta{
  font-size:1.2rem;
  line-height:1.4;
  color:#7ea69d;
  text-transform: uppercase;
}
.blog-post__meta a{
  color:currentColor;
  text-decoration: none;
}
.blog-post__meta a:hover{
  text-decoration: underline;
}

.blog-post__comments{
  margin:50px 0 0 0;
  padding:20px;
  background:#fff;
}

.blog-post__sidebar{
  display:flex;
  flex-direction: column;
  align-items: stretch;
  align-content: stretch;
  gap:40px;
}

.blog-post__sidebar-sticky{
  position: sticky;
  top:40px;
  left:0;
  display:flex;
  flex-direction: column;
  align-items: stretch;
  align-content: stretch;
  gap:40px;
}


.sidebar-item{
  padding:30px;
  background-color: var(--light-gray-300);
  /*   box-shadow: 0 0 10px 0 rgb(0 0 0 / 10%); */
}

h3.h5.sidebar-author__name{
  font-weight: 600;
}

.sidebar-author__name span{
  color: var(--secondary);
}

.sidebar-author__bio{
  font-size:1.6rem;
}
.sidebar-author__avatar{
  margin:0 0 20px 0;
}

/********** Related blogs **********/
.related-blogs{
  padding: 100px 0;
  background-color: var(--light-gray-300);
}

.related-blogs__title{
  text-align: center;
  margin-bottom:40px;
}

.related-blogs__grid{
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(330px,100%),1fr));
  justify-items: center;
  justify-content: center;
  gap:30px;
  column-gap: 30px;
  row-gap: 30px;
}

@media (max-width: 992px){
  .blog-listing__container {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .filters {
    margin-bottom: 0px;
  }
  .blog-filter__label{
    cursor:pointer;
    padding:10px;
    border:1px solid var(--secondary);
    position:relative;
    transition: all 300ms ease-in-out;
  }

  .blog-filter__label:after{
    content:'\203A';
    display: inline-block;
    /* width: 11px; */
    /* height:8px; */
    /* background: left center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8' style='enable-background:new 0 0 11 8' xml:space='preserve'%3E%3Cpath d='M5.3 1.7 6.6 3H0v2h6.6L5.3 6.3l1.4 1.4L10.4 4 6.7.3 5.3 1.7z' style='fill-rule:evenodd;clip-rule:evenodd; fill: %2300483a'/%3E%3C/svg%3E"); */
    position: absolute;
    top: calc(50% - 16px);
    right:15px;
    line-height: 1.5;
    transition: all 300ms ease-in-out;
  }

  .blog-filter__label--toggle{
    background-color: #fff;
  }
  .blog-filter__label--toggle:after{
    transform:rotate(90deg);
  }


  .blog-filter__list{
    max-height:0;
    overflow:hidden;
    transition: all 300ms ease-in-out;
    border:1px solid transparent;
    display:inline-block;
  }
  li.blog-filter__item {
    display: inline-block;
  }
  .blog-filter__item:before{
    display:none;
  }

  .blog-filter__list--toggle{
    max-height:100vh;
    border:1px solid var(--secondary);
    border-top-color: transparent;
    background-color: #fff;
  }

  .blog-filter__item-link{
    display:block;
    padding:10px;
  }
}




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


.blog-listing__head {
  position: relative;
  padding: 100px 0 0 0;
}
.blog-listing__head svg{
  position: absolute;
  right:0;
  z-index: -1;
  top: 0;
}

.blog-listing__head:after {
  content: "";
  display: block;
  background: #DFE3DE;
  width: 100%;
  height: 600px;
  position: absolute;
  left: 0; top: 0;
  z-index: -2;
}



/* Card */

.card__topics {
  background: #FBEBD6;
  border-radius: 20px;
  display: inline-block;
  padding: 7px 11px;
}

.card__topics span {
  color:#FC6719;
  font-size: 1.2rem;
}
.blog-listing .card{

  border-top-left-radius: 25px;
  overflow: hidden;
  border-top-right-radius: 25px;
  border:none;
}
.blog-listing .card, .blog-listing .card__wrapper {
  background-color: #F5F3EE;
}

.blog-listing .featured-card .card__body {
  padding: 100px  40px;
  width: 55%;
}
.blog-listing .card .card__body {
  padding: 27px 0;
}

.blog-listing .card__description {
  color: #fff;
}
.blog-listing .card__title {
  font-size: 2.8rem;
}


a.featured-card__wrapper {
  display: flex;
  flex-direction: row;
  max-height:570px;
}

.featured-card {
  background: #1C4F4A;
  border-radius: clamp(25px, 4vw, 66px);
  overflow: hidden;
  max-height: 570px;
  position: relative;
}

.featured-card__body {
  max-width: 516px;
  height: 570px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color:#fff;
  padding: clamp(25px, 4vw, 40px);
}

.featured-card__image-wrapper {
  flex-grow: 1;
}

.featured-card__image {
  object-fit: cover;
  object-position: center;
  height: 100%;
  position: absolute;
  width: 100%;
}
.featured-card__image-wrapper {
  position: relative;
}
.blog-listing .featured-card__title {
  font-size: clamp(2.8rem, 4vw, 5rem);
  color: #fff;
}

.blog-listing .featured-card__topics {
  display: none;
}

.blog-listing a.next-link, .blog-listing a.prev-link, .blog-listing .next-posts-link, .blog-listing .previous-posts-link {
  padding: 16px 16px;
  background: #fc6719;
  color: #fff;
  line-height: 11px;
  border-radius: 100%;
}
.blog-listing a.prev-link, .blog-listing a.previous-posts-link {
  transform: rotate(-180deg);
}


@media (max-width: 992px){
  .blog-listing__grid img.blog-card__image {
    width: 100%;
  }
/*   .featured-card {
    overflow: unset; 
  } */
   
   .blog-listing__main .featured-card__image{
    position: relative;
  }
  .blog-listing__main a.featured-card__wrapper, .blog-listing__main .featured-card{
    max-height:100%;
  }
 
}