/* INCLUDE THE VARIABLES AT THE TOP OF THE FILE, AS IT'S USED IN ALL STYLES BELOW */



/* Blog tag filter section */
.tags-section {
  display: block;
  margin-bottom: 3em;
}

.tag-title-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
}

button#filter-category-button {
  padding: 15px 25px 15px 30px;
}

.filter-dropdown-down,
.filter-dropdown-up {
  padding-left: 10px;
}

.filter-dropdown-up {
  display: none;
}

button#filter-category-button:hover i {
  color: #f09178;
}

.tag-buttons-wrapper {
  display: none;
  margin: 0 auto;
}

.tag-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.tag-buttons a {
  margin: 5px;
  padding: .3em 1em;
}

.filter-row-title {
  margin-right: 20px;
  margin-top: 8px;
}

#filter-row-dropdown {
  min-width: 250px;
  text-align: center;
}

#filter-row-dropdown .submenu.level-2 {
  min-width: 250px;
  z-index: 1;
  transform: translateX(0%);
  left: 0;
}

#tag-dropdown-button {
  cursor: pointer;
  padding: 15px 0;
  min-width: 275px;
}

.filter-dropdown-list {
  display: none;
  margin-top: 25px !important;
}

#tag-dropdown-button:hover .filter-dropdown-list {
  display: block;
}


/* Blog Filter bar */
.blog-index__filter-bar{
  margin-bottom: 60px;
  width: 100%;
  position: relative;
}
.blog-index__filter-bar .blog-index__filter-slider{
  margin: 0;
  padding: 0;
  display: block;
  text-align: center;
  width: 100%;
}
.blog-index__filter-bar .blog-index__filter-item{
  list-style: none;
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 4px;
  padding: 0;
}
.blog-index__filter-bar .blog-index__filter-item a{
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.794117647058824rem;
  font-weight: 600;
  line-height: 1.2;
  color: #004225;
  border-radius: 10px;
}
.blog-index__filter-bar .blog-index__filter-item a:hover,
.blog-index__filter-bar .blog-index__filter-item.active a{
  background-color: #004225;
  color: white;
}

/* Blog listing */
.blog-index {
  align-items: stretch;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: 100%;
  margin-bottom: 3em;
  width: 100%;
}

.blog-card {
  width: 31%;
  position: relative;
  z-index: 0;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  transition: box-shadow .4s ease;
  margin: 1%;
  padding-bottom: 60px;
}

.blog-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .3);
}

.blog-card-image {
  overflow: hidden;
  position: relative;
  padding-top: 60%;
}

.blog-card-image__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-position: center;
  background-size: cover;
  transition: all ease .4s;
}

.blog-card:hover .blog-card-image__bg {
  transform: scale(1.07)
}

.blog-card-image img {
  width: 100% !important;
  height: auto !important;
  vertical-align: top;
}

.blog-card-tags {
  padding: 30px 30px 0;
  position: relative;
  z-index: 2;
}

.blog-card-tags__link {
  font-weight: normal;
  font-size: 12px;
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid; #f09178;
  text-decoration: none !important;
  margin: 0 3px 3px 0;
}

.blog-card-text {
  font-size: 1.2em;
  line-height: 1.2em;
  padding: 20px 30px 0;
}

.blog-card-text__title {
  line-height: 1.3;
}

.blog-card-text h4 {
  font-size: 1.6em;
  line-height: 1.2em;
}

.blog-card-text a {
  text-decoration: none;
  font-weight: bold;
}

.blog-card-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.blog-card-meta {
  padding: 0 30px 20px;
  font-size: 0.9em;
  color: #004225;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Blog pagination */
.blog-pagination {
  align-items: center;
  display: flex;
  justify-content: center;
}

.blog-pagination__link {
  align-items: center;
  border: 2px solid transparent;
  display: flex;
  justify-content: center;
  line-height: 1;
  margin: 0 0.1rem;
  padding: 0.25rem 0.4rem;
  text-decoration: none;
  transition: all .3s ease-in-out;
  color: #004225;
}

.blog-pagination__link--active {
  border-color: #f09178;
}

.blog-pagination__link:hover,
.blog-pagination__link:focus {
  text-decoration: none;
}

.blog-pagination__prev-link {
  margin-right: 0.25rem;
}

.blog-pagination__next-link {
  margin-left: 0.25rem;
}

.blog-pagination__prev-link i,
.blog-pagination__next-link i {
  margin-top: 0.15em;
}

.blog-pagination__prev-link i {
  margin-right: 0.3em;
}

.blog-pagination__next-link i {
  margin-left: 0.3em;
}

.blog-pagination__link--active:after,
.blog-pagination__prev-link:after,
.blog-pagination__next-link:after {
  background-color: #004225;
}

.blog-pagination__link.blog-pagination__prev-link--disabled,
.blog-pagination__link.blog-pagination__next-link--disabled {
  color: #eee;
  cursor: default;
  pointer-events: none;
}

.blog-pagination__prev-link svg,
.blog-pagination__next-link svg {
  margin: 0 0.3rem;
  fill: #004225;
}

.blog-pagination__prev-link--disabled svg,
.blog-pagination__next-link--disabled svg {
  fill: #eee;
}

.blog-pagination__number-link:hover,
.blog-pagination__number-link:focus {
  border: 2px solid #f09178;
}

/* Blog post */
.article-progress {
  bottom: 0px;
  content: "";
	display: table;
  height: 0.4em;
  left:0;
  margin-bottom: 0px;
  overflow: hidden;
  position: fixed;
	table-layout: fixed;
  top: 126px;
  width: 100%;
  z-index: 99;
}

.article-progress.scrolled {
  top: 80px;
}

.article-progress__inner {
  background-color: #f09178;
  float: left;
  height: 100%;
  max-width: 100%;
  -webkit-transition: width .6s linear;
  -o-transition: width .6s linear;
  transition: width .6s linear;
  width: 0%;
  z-index:99;
}

.blog-post {
  margin: 0 auto;
}

.blog-post__full-width-header {
  margin-bottom: 120px;
}

.blog-post__full-width-header>.row-fluid {
  max-width: 900px;
margin: 0 auto;
}


.blog-header {
  display: flex;
  padding: 120px 0;
}

.blog-header h1 {
  font-size: 2.75em;
}

.blog-header__left {
  width: 55%;
  padding-right: 3%;
}

.blog-header__right {
  text-align: center;
  width: 45%;
}

.blog-header__featured-image {
  max-height: 450px;
  max-width: 100%;
}

.blog-post__meta {
  margin: 3em 0;
}

.blog-post__meta a {
  text-decoration: underline;
  color: #004225;
}

.blog-post__timestamp {
  display: block;
}

.blog-post__date-time {
  color: #f09178;
  font-size: .9em;
}

.text-white .blog-post__date-time {
  color: #ffffff;
}

.blog-post__tag {
  border: 1px solid #f09178;
  color:  #f09178;
  display: inline-block;
  line-height: 1;
  margin-bottom: 1em;
  padding: 0.5em;
  font-size: .75em;
}

.text-white .blog-post__tag {
  border-color: #ffffff;
  color: #ffffff;
}

.blog-post__main-content {
  display: flex;
  padding-bottom: 120px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-post__body {
  width: 100%;
}
.blog-post__sidebar {
  width: 35%;
}


/* Blog latest posts */
.blog-latest-posts {
  background-color: #fafafa;
  padding: 80px 0;
}

.blog-latest-posts__title{
  padding-bottom: 20px;
}

.latest-blog-wrapper {
  align-items: stretch;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: 100%;
  justify-content: space-between;
  width: 100%;
}

.latest-blog-wrapper .content-card {
  background-color: #fff;
  width: 32%;
}

.latest-blog-wrapper .content-card-title h4:after,
.blog-post__sidebar .content-card-title h4:after {
  bottom: -20px;
  left: 0;
}

/* Blog related posts */
.blog-related-posts {
  background-color: #F8FAFC;
}

.blog-related-posts h2 {
  text-align: center;
}

.blog-related-posts__list {
  display: flex;
  flex-wrap: wrap;
}

.blog-related-posts__post {
  flex: 0 0 100%;
  padding: 1rem;
}

.blog-related-posts__image {
  height: auto;
  max-width: 100%;
}

.blog-related-posts__title {
  margin: 0.7rem 0;
}

.blog-related-posts__title a {
  color: #004225;
}

/* Blog comments */
.blog-comments {
  margin: 0 auto;
  max-width: 680px;
  margin-bottom: 120px;
}

.blog-comments .hs-submit {
  text-align: center;
}

.blog-comments .comment-reply-to {
  border: 0 none;
}

.blog-comments .comment-reply-to:hover,
.blog-comments .comment-reply-to:focus {
  background-color: transparent;
  text-decoration: underline;
}

#comments-listing .comment-reply-to {
  color: #f09178;
}

#comments-listing .comment-reply-to:hover,
#comments-listing .comment-reply-to:focus {
  color: #c86950;
}

#comments-listing .comment-reply-to:active {
  color: #ffb9a0;
}

/*** MOBILE STYLES ***/
@media (max-width: 1200px) and (orientation: portrait) {
  .blog-post__full-width-header {
    padding: 50px 20px;
    margin-bottom: 50px;
  }
  .blog-card {
    width: 48%;
  }
}

@media screen and (min-width: 1000px) {
  .blog-index__post--small {
    flex: 0 0 calc(100% / 3);
  }

  .blog-related-posts__post {
    flex: 0 0 calc(100% / 3);
  }
}

@media (max-width: 896px) and (orientation: portrait) {
  .tag-buttons {
    padding: 0;
  }
  .blog-card,
  .latest-blog-wrapper .content-card {
    width: 98%;
  }
  .blog-post__main-content {
    flex-direction: column;
  }
  .blog-post__body {
    padding-right: unset;
  }
  .blog-post__body,
  .blog-post__sidebar {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .related-posts-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .blog-card,
  .latest-blog-wrapper .content-card,
  .related-posts-wrapper .content-card {
    width: 48%;
  }
}

@media screen and (min-width: 768px) {
  .blog-index__post--small {
    flex: 0 0 calc(100% / 2);
  }

  .blog-index__post--large {
    display: flex;
    flex: 1 0 100%;
  }

  .blog-index__post-image-wrapper--large {
    flex: 1 1 48%;
  }

  .blog-index__post-content--large {
    flex: 1 1 48%;
    padding-left: 2rem;
  }

  .blog-index__post-content--full-width {
    flex: 1 1 100%;
    padding-left: 0;
  }

  .blog-related-posts__post {
    flex: 0 0 calc(100% / 2);
  }
}

@media (max-width: 768px) {
  .blog-pagination__number-link {
    display: none;
  }
	.blog-card{
		width: 31%;
	}
	.blog-card:nth-child(3n + 1){
		margin-left: 0;
	}
	.blog-card-tags {
		padding: 10px 10px 0;
	}
	.blog-card-text{
		padding: 10px 10px 0;
	}
	.blog-card-meta{
		padding: 0 10px 10px;
	}
	.blog-card-text__title{
		font-size: 18px;
	}
}

@media(max-width: 767px) {
  .blog-card {
    width: 100%;
    margin-left: 0;
    margin-bottom: 30px;
  }

  .blog-card:nth-child(2n + 1) {
    margin-left: 0;
  }
}