.filter-tags ul li.active a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 22px;
}
.hs-blog-listing .banner-heading {
 margin:auto; 
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  flex-basis: 60%;
  max-width: 60%;
}
a.blog-index__post-image img, a.blog-index__post-image .featured-outer {
  overflow: hidden;
  transition: all .3s ease-in-out;
  border-radius:12px;
  max-height:200px;
}
a.blog-index__post-image img:hover {
  transform: scale(1.05);
}
.blog-items {
  align-items: flex-start;
  display: flex;
  gap: 40px 24px;
  margin-top: 0px;
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
}

.filter-tags ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 3px;
  flex-wrap: wrap;
}

.filter-tags ul li {
  text-decoration: none;
  padding: 0;
  border-radius: 5px;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  width:100%;
}
div#table-of-contents ul li {
  padding:5px;
}
div#table-of-contents ul li:hover {
  background-color: #4278f5;
}

.filter-tags ul li:hover  {
  background-color: #4278F5;
  color: #fff;
  width:100%;
} 

.filter-text {
  font-weight: 700;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
  color: #131731;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-text img {
  vertical-align: middle;
}

.dmai-blog-listing-main {
  padding: 75px 0;
}

a.blog-index__post-image {
  width: 100%;
  display: block;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 100%;
  min-height: 200px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.blog-index__post-content h2 a {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0;
  vertical-align: middle;
  text-decoration: none;
  color: #181D27;
  height: auto;
  display: block;
}

.blog-index__post {
  flex-basis: calc(33.2% - 15px);
  max-width: calc(33.2% - 15px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.blog-index__post.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none; /* Prevent interaction while hiding */
}

.blog-index__post-content h2 {
  margin: 0;
}

.blog-index__date-reading-time {
  display: flex;
 /*   font-family: Avenir LT Pro; */
  font-weight: 400;
  font-size: 13px;
  line-height: 100%;
  letter-spacing: 0;
  align-items: center;
  color: #717680;
}

.blog-index__date img {
  vertical-align: middle;
  margin-right: 7px;
}

.blog-index__reading-time img {
  vertical-align: middle;
}

.blog-index__date {
  padding-right: 15px;
  text-align: left;
}

.blog-index__reading-time {
  padding-left: 15px;
}

.blog-index__post-content {
  margin-bottom: 20px;
}

a.blog-index__post-image img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
  vertical-align: middle;
}

.blog-index__reading-time img {
  margin-right: 7px;
}
.filter-tags ul li.active {
  background-color: #4278F5;
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 100px;
  gap: 5px;
  align-items: center;
}

div#pagination .active {
  font-weight: 700;
  color: #181D27;
}

.pagination button {
  background: no-repeat;
  border: none;
  /*   font-family: Avenir LT Pro; */
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  text-align: center;
  color: #717680;
  padding: 0 16px 0;
}
.cto-outer {
  background-image: url('https://49122798.fs1.hubspotusercontent-na1.net/hubfs/49122798/CTO-BG.png');
  background-size:cover;
  margin-top:20px;
}
.cto-blog-button span {
  position:absolute;
}
.cto-blog-button span img {
  position:relative;
  left:5px;
  max-width:20px;
}
.cto-blog-button:hover {
  background-color: #305ecf;
  transform: scale(1.05);
  color:white;
}

.cto-blog-button {
  display: block;
  text-decoration:none;
  line-height: normal;
  background-color: #4278f5;
  border-radius: 25px;
  width:100%;
  color:white;
  box-shadow: 0 1px 4px 0 #19213d14;
  /*   font-family: Avenir LT Pro; */
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 13px 30px 13px 24px;
  text-align: center;
  transition: background-color .3s ease-in-out, transform .3s ease-in-out;
}
div#pagination span {
  /*   font-family: Avenir LT Pro; */
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  text-align: center;
  color: #717680;
  padding: 0 16px 0;
  cursor: pointer;
}


/* ----------------- mailing form --------------------- */
.filter-subForm-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.subMailingForm h3 {
  display: none;
}

.subMailingForm form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  gap: 16px;
  position: relative;
}

.subMailingForm form .hs_email.hs-email {
  margin: 0;
  /* max-width: 276px; */
  /* width: 100%; */
}

.subMailingForm-title h4 {
  margin: 0;
  /*   font-family: Avenir LT Pro; */
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
  vertical-align: middle;
  margin-bottom: 7px;
}

.subMailingForm form 
label {
  display: none;
}

.subMailingForm form .hs_email.hs-email input {
  border: 1px solid #184173;
  border-radius: 8px;
  padding: 11px 20px;
  /*   font-family: Avenir LT Pro; */
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #000000;
  max-width: 100%;
  width: 276px;
  display: block;
}

.subMailingForm form .hs_email.hs-email input::placeholder {
  /*   font-family: Avenir LT Pro; */
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #000000;
}
.hs_error_rollup {
  position: absolute;
  left: 2px;
  bottom: -35px;
}

.hs_error_rollup ul li label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0;
  /*   font-family: Avenir LT Pro; */
  color: red;
}

.sub-mailing-list {
  max-width: 397px;
  flex-basis: 397px;
}

.sidebar-blogContent {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 100px 23px 100px;
}

.blogpost-sidebar-main {
  padding: 0px 0;
  max-width: 264px;
  flex-basis: 264px;
  width: 100%;
}

.blogpost-sidebar-main {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 20px); /* Ensures it doesn't exceed viewport height */
  overflow-y: hidden; /* Allows scrolling within the sidebar if needed */
}

.tableOfContentMain {
  margin-bottom: 24px;
  padding: 20px;
  background-color: #F3F9FF;
  border-radius: 10px;
}

.tableOfContentTitle h2 {
  font-weight: 500;
  font-size: 20px;
  padding-left:5px;
  line-height: 26px;
  letter-spacing: 0;
  margin: 0 0 16px;
}

div#table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
div#table-of-contents ul li {
  width:100%; 
}
div#table-of-contents ul li a {
  font-weight: 400;
  font-size: 16x;
  line-height: 24px;
  letter-spacing: 0;
  margin: 0 0 10px;
  color: #878787;
  text-decoration: none;
}

div#table-of-contents ul li.active > a {
  font-weight: 500;
  color: #181D27;
}

div#table-of-contents ul li {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0;
  /*   margin: 0 0 10px; */
  margin: 0;
}

.tableOfContentContent p:last-child {
  margin: 0;
}

.blogSubsFormTitle h2 {
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  color: #FFFFFF;
  margin: 0 0 24px;
}

.blogSubsFormInner h3 {
  display: none;
}

.blogSubsFormInner form .hs_email input {
  box-shadow: 0px 1px 2px 0px #1018280D;
  background-color: #FFFFFF;
  /*   font-family: Avenir LT Pro; */
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  border-radius: 8px;
  color: #667085;
  border: none;
}

.blogSubsFormInner form .hs_email input::placeholder {
  /*   font-family: Avenir LT Pro; */
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #667085;
}

.blogSubsFormMain {
  background-color: #184173;
  border-radius: 10px;
  padding: 20px;
}

.blogSubsFormInner form .hs_email {
  margin: 0;
}

.blogSubsFormInner form .hs_email label {
  display: none;
}

.blogSubsFormInner form {
  background: none;
  border: none;
}

.blogSubsFormInner form .hs_submit.hs-submit {
  margin-top: 24px;
}

.blogSubsFormInner form .legal-consent-container .hs-richtext {
  /*   font-family: Avenir LT Pro; */
  font-weight: 400;
  font-size: 12px;
  line-height: 17px;
  letter-spacing: 0;
  color: #FFFFFF;
  margin: 0;
}

.blogSubsFormInner form .legal-consent-container {
  margin-top: 6px;
}

.blogSubsFormInner form .legal-consent-container .hs-richtext a {
  color: #fff;
  /*   font-family: Avenir LT Pro; */
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: underline;
}
.dmai-blog-listing-outer {
  display: flex;
  gap: 40px;
  justify-content: space-between;
}
.blogpost-sidebar {
  width: 25.5%;
}
.blog-items-outer {
  width:100%;
}
.blogSubsFormMain h4 {
  color:white;
  font-weight:500;
  line-height:30px;
}
.cto-outer h4 {
  margin-bottom:20px;
}
.cto-outer .blogSubsFormInner {
  padding-bottom:10px;
}
.blogSubsFormInner form .hs_submit.hs-submit input {
  width: 100%;
  max-width: 100%;
}

.blogpost-sidebar .hs_submit.hs-submit input {
  border-radius:25px;
  font-weight:500;
}

.blogSubsFormInner form .hs_submit.hs-submit .actions {
  max-width: 100%;
}

.blogSubsFormInner form .hs_submit.hs-submit .actions:after {
  content:none;
}



@media (max-width: 1002px) and (min-width: 768px) {
  .blogpost-sidebar-main {
    overflow-y: hidden !important;
    flex-basis: 264px;
    max-width: 264px;
  }
  article.blog-post {
    max-width: 750px;
    flex-basis: 750px;
    width: 100%;
  }
}

@media (max-width: 767px){
  .sidebar-blogContent {
    flex-direction: column;
    padding: 0;
  }

  .blogSubsFormMain.dekstop {
    display: none;
  }
  .blogpost-sidebar-main {
    display: none;
  }


  /* ------------------------------------------------------ */
  .dmai-blog-listing-outer {
    flex-direction: column;
    gap: 30px;
  }

  .blogpost-sidebar {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }


  .blogpost-sidebar .blogSubsFormMain.cto-outer.dekstop {
    display: none;
  }

  .blogSubsFormMain.mobile {
    display: block !important;
  }

  .dmai-blog-listing-outer .blogSubsFormMain.cto-outer.mobile {
    display: block!important;
    margin-top: 0;
  }

  .blogpost-sidebar .tableOfContentMain {
    background: none;
    padding: 0;
    margin: 0;
  }

  .blogpost-sidebar div#table-of-contents  .filter-tags ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 12px;
    flex-wrap: wrap;
  }

  .blogpost-sidebar div#table-of-contents .filter-tags ul li {
    max-width: max-content;
    text-decoration: none;
    padding: 9px 20px;
    border: 1px solid #9D9D9D;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    color: #131731;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
  }

  .blogpost-sidebar div#table-of-contents .filter-tags ul li.active {
    background-color: #4278F5;
    color: #fff;
  }

  .blogpost-sidebar .tableOfContentTitle h2 {
    display: none;
  }

  .blogpost-sidebar div#table-of-contents .filter-text {
    display: flex !important;!i;!;
    margin-bottom: 10px;
  }
  /* ------------------------------------------------------ */
}
/* ----------------- mailing form --------------------- */

@media (max-width: 767px) {
  .filter-tags ul{
    gap: 2px;
  }
  .filter-tags ul li{
    padding: 8px 16px;
  }
  .filter-section {
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    max-width: 100%;
    flex-basis: 100%;
    gap: 8px;
  }
  .dmai-blog-listing-main {
    padding: 50px 0;
  }
  .blog-items {
    margin-top: 0px;
    flex-direction: column;
    align-items: unset;
  }
  .blog-index__post {
    flex-basis: 100%;
    max-width: 100%;
  }
  a.blog-index__post-image {
    margin-bottom: 16px;
  }
  .blog-index__post-content {
    margin-bottom: 12px;
  }
  .pagination {
    margin-top: 24px;
  }
  .filter-subForm-wrapper {
    flex-direction: column-reverse;
    gap: 32px;
  }
  .blog-index__post-content h2 a {
    min-height:auto;
  }

  /* ----------------- mailing form --------------------- */
  .sub-mailing-list {
    flex-basis: unset;
  }
  .subMailingForm form .hs_email.hs-email input {
    width: 100%;
    padding: 8px 14px;
  }
  .subMailingForm form {
    justify-content: flex-start;
    gap: 8px;
  }

  /* ----------------- mailing form --------------------- */
}
#categoryFilter li a {
  color: #131731;
  text-decoration:none;
}