/* ==========================================================================
 * Blog Styles
 * ========================================================================== */
/* This stylesheet contains styles that are unique to the blog listing page and blog posts.
 * Includes:
 * - Blog Sub Menu
 * - Blog Topic Filter
 * - Blog Search
 * - Blog Subscription Form
 * - Blog Inline Form
 * - Blog Post Listing
 * - Blog Pagination
 * - Post Content Styles
 * - Post Author Information
 * - Post Social Media Sharing */

body {
  background-color: #FFF;
}

/* Blog Sub Menu
 *  ========================================================================== */
#SubMenu {
  background-color: #025883;
  box-shadow: 0 0 3px rgba(0,0,0,.4);
  position: fixed;
  top: 57px;
  width: 100%;
  z-index: 1029;
}
@media(min-width: 576px) {
  #SubMenu {
    top: 70px;
  }
}
@media(max-width: 991.98px) {
  #SubMenu .container {
    max-width: none;
  }
}

#SubMenu_Expanded .row {
  height: 70px;
}
#SubMenu_Collapsed {
  display: none;
}
#NowReading {
  display: inline-block;
  max-width: calc(100% - 105px); /* 97px = width of "Find More Posts" text */
  vertical-align: middle;
}
#FindMore {
  text-decoration: underline;
  cursor: pointer;
}

.Collapse {
  animation: collapse .5s ease forwards;
}
.Expand {
  animation: expand .5s ease forwards;
}
@keyframes collapse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes expand {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Blog Topic Filter
 * ========================================================================== */
/* Hide Topic Post Count (hides HubSpot's topic post count) */
.filter-link-count {
  display: none;
}

/* Topic List Style Reset */
#Filter ul {
  list-style: none;
  padding-left: 0;
  padding-inline-start: 0;
  margin-bottom: 0;
}

/* Topic Filter Dropdown (styles button element to look like a select menu) */
.FilterBtn {
  background-color: #FFF;
  border: 1px solid #D0D2D4;
  border-radius: .25rem;
  cursor: pointer;
  overflow: hidden;
  padding: .5rem .75rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#FilterBtn_Expanded {
  width: 100%;
  padding-right: 2.75rem;
}
#FilterBtn_Collapsed { /* sets initial collapsed button display state */
  display: none;
}
#FilterBtn_Expanded:hover, #FilterBtn_Expanded:focus,
#FilterBtn_Collapsed:hover, #FilterBtn_Collapsed:focus {
  background-color: #FFF;
  border: 1px solid #3EBAFC;
  outline: none;
}
#FilterBtn_Expanded:focus,
#FilterBtn_Collapsed: focus {
  box-shadow: 0 0 0 0.2rem rgba(0,170,220,.25);
}

/* Inline Filter Label (styles label included within button) */
.InlineLabel {
  background-color: #F6F7F9;
  border: 1px solid #D0D2D4;
  border-radius: .25rem 0 0 .25rem;
  color: #666;
  padding: calc(.5rem + 1px) .75rem;
  pointer-events: none;
}
#FilterBtn_Expanded .InlineLabel {
  margin: calc(-.5rem - 1px) .5rem calc(-.5rem - 1px) calc(-.75rem - 1px);
}
#FilterBtn_Collapsed .InlineLabel {
  margin: calc(-.5rem - 1px) 0 calc(-.5rem - 1px) calc(-.75rem - 1px);
}
#FilterBtn_Expanded:hover .InlineLabel, #FilterBtn_Expanded:focus .InlineLabel,
#FilterBtn_Collapsed:hover .InlineLabel, #FilterBtn_Collapsed:focus .InlineLabel {
  border: 1px solid #3EBAFC;
}

/* Filter Select Arrow (styles pseudo-select menu arrow) */
#FilterBtn_Expanded .PseudoSelect,
#FilterBtn_Collapsed .PseudoSelect {
  background-color: #F6F7F9;
  border: 1px solid #D0D2D4;
  border-radius: 0 .25rem .25rem 0;
  color: #999;
  float: right;
  line-height: 2.5rem;
  pointer-events: none;
  text-align: center;
  width: 2rem;
}
#FilterBtn_Expanded .PseudoSelect {
  margin: calc(-.5rem - 1px) calc(-2.75rem - 1px) calc(-.5rem - 1px) calc(-.75rem - 1px);
}
#FilterBtn_Collapsed .PseudoSelect { 
  margin: calc(-.5rem - 1px) calc(-.75rem - 1px) calc(-.5rem - 1px) 0;
}
#FilterBtn_Expanded:hover .PseudoSelect, #FilterBtn_Expanded:focus .PseudoSelect,
#FilterBtn_Collapsed:hover .PseudoSelect, #FilterBtn_Collapsed:focus .PseudoSelect {
  border: 1px solid #3EBAFC;
  color: #666;
}

/* Filter Options (styles blog topic list menu) */
#FilterMenu {
  background-color: #FFF;
  border: 1px solid #D0D2D4;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	display: none;
  margin-top: -1px;
  position: absolute;
  right: .5rem;
  transition: height 2s;
  width: calc(100% - 88px); /* 88px = width of .InlineLabel (~66px) - 1px to allow for border overlap + #Filter left padding (15px) + #Filter right padding (.5rem or 8px) */
  z-index: 1;
}
@media(min-width:1200px) {
  #FilterMenu {
    right: 1rem;
    width: calc(100% - 96px); /* 96px = width of .InlineLabel (~66px) - 1px to allow for border overlap + #Filter left padding (15px) + #Filter right padding (1rem or 16px) */
  }
}
#FilterMenu h3 {
  display: none;
}
#FilterMenu a {
  color: #333;
  padding: .5rem .75rem;
  text-decoration: none;
  display: block;
}
#FilterMenu a:hover,
#FilterMenu a:focus {
  background-color: #1E90FF; 
  color: #FFF;
  outline: none;
}

/* Open Filter Options (show or hide filter options on click) */
.Open {
  display: block !important;
}

/* Blog Search
 * ========================================================================== */
/* Blog Search Input */
@media(max-width:575.98px) {
  #BlogSearch {
    width: auto;
  }
}
#BlogSearch input {
  background-image: url(https://blog.therapynotes.com/hubfs/images/assets/cms-search-32x32.png);
	background-position: .75rem 50%;
	background-repeat: no-repeat;
	background-size: 1rem;
  box-sizing: border-box;
  width: 2.5rem;
}
#BlogSearch input:hover,
#BlogSearch input:focus {
  background-image: url(https://blog.therapynotes.com/hubfs/images/assets/cms-search_focus-32x32.png);
}
#BlogSearch input:focus {
  padding-left: 2.25rem;
  width: 100%;
}

/* Hide Blog Search Placeholder and Value When Collapsed */
#BlogSearch input {
  color: transparent;
}
#BlogSearch input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  opacity: 0;
}
#BlogSearch input::-moz-placeholder { /* Firefox 19+ */
  opacity: 0;
}
#BlogSearch input:-ms-input-placeholder { /* IE 10+ */
  opacity: 0;
}
#BlogSearch input:-moz-placeholder { /* Firefox 18- */
  opacity: 0;
}
#BlogSearch input:focus {
  color: #212529;
}
#BlogSearch input:focus::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  opacity: 1;
}
#BlogSearch input:focus::-moz-placeholder { /* Firefox 19+ */
  opacity: 1;
}
#BlogSearch input:focus:-ms-input-placeholder { /* IE 10+ */
  opacity: 1;
}
#BlogSearch input:focus:-moz-placeholder { /* Firefox 18- */
  opacity: 1;
}
@media(min-width: 576px) {
  #BlogSearch input {
    color: #212529;
    padding-left: 2.25rem;
    width: 100%;
  }
  #BlogSearch input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    opacity: 1;
  }
  #BlogSearch input::-moz-placeholder { /* Firefox 19+ */
    opacity: 1;
  }
  #BlogSearch input:-ms-input-placeholder { /* IE 10+ */
    opacity: 1;
  }
  #BlogSearch input:-moz-placeholder { /* Firefox 18- */
    opacity: 1;
  }
}

.hs-search-field__suggestions {
  display: none;
  margin: 0;
  padding: 0;
  position: absolute;
  list-style: none;
}
/*.hs-search-field--open .hs-search-field__suggestions {
  background-color: #FFF;
  border: 1px solid #D0D2D4;
  border-radius: .25rem;
  box-shadow: 0 4px 25px 0 rgba(0,0,0,.1);
  color: #212529;
  margin-top: .25rem;
  transform-origin: top;
}
.hs-search-field__suggestions li {
  display: block;
  margin: 0;
  padding: 0;
}
.hs-search-field__suggestions a {
  color: #09C;
  display: block;
  padding: .5rem .75rem;
  text-decoration: none;
}
.hs-search-field__suggestions a:hover,
.hs-search-field__suggestions a:focus {
  background-color: #1E90FF; 
  color: #FFF;
  outline: none;
}
.hs-search-field__suggestions #results-for {
  background-color: #F6F7F9;
  color: #666;
  display: block;
  padding: .5rem .75rem;
}*/

/* Blog Subscription Form 
 * ========================================================================== */
/* Subscription Form Card */
.BlogSubscribeForm .card {
  background-image: linear-gradient(60deg,#02324A, #025883);
	border: 1px solid #D0D2D4;
  border-radius: 4px;
}

/* Subscription Form Wrapper */
.BlogSubscribeForm .hs-form {
  margin: auto;
}

/* Subscription Form Label */
.BlogSubscribeForm label {
  display: none;
}
.BlogSubscribeForm label.hs-error-msg { /* prevents error messages from being hidden */
  display: block;
}

/* Subscription Form Input */
.BlogSubscribeForm .hs-input {
  margin: auto;
}

/* Subscription Form Button */
.BlogSubscribeForm .hs-button.primary {
  background-color: transparent;
  border: 1px solid #FFF;
  color: #FFF;
}
.BlogSubscribeForm .hs-button.primary:hover, .BlogSubscribeForm .hs-button.primary:focus {
  background-color: #FFF;
  border: 1px solid #FFF;
  color: #02324A;
}
.BlogSubscribeForm .hs-button.primary:active {
  background-color: #FFF;
  border: 1px solid #09C;
  color: #02324A;
}

/* Blog Inline Form 
 * ========================================================================== */
/* Inline Form Container */
.BlogInlineForm .card {
  background-color: #F6F7F9;
	border: 1px solid #D0D2D4;
  border-radius: 4px;
}
.BlogInlineForm .card:hover {
  box-shadow: none;
}
.BlogInlineForm .hs-form {
  margin: auto;
}


/* Blog Post Listing
 * ========================================================================== */
/* Featured Blog Post Card */
@media (min-width: 768px) {
  .FeaturedPost .CardImg {
    height: auto;
    margin-bottom: initial;
  }
}
@media(max-width: 767.98px) {
  .card h1 {
    font-size: 1.25rem;
  }
}

/* Blog Pagination
 * ========================================================================== */
/* Blog Pagination */
.BlogPagination ul {
	margin: auto;
}
.BlogPagination .page-link {
  border: 1px solid #D0D2D4;
  color: #09C;
}
.BlogPagination .page-link:hover {
  background-color: #FFF;
  border: 1px solid #3EBAFC;
  color: #3EBAFC;
}
.BlogPagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(0,170,220,.25);
}
.BlogPagination .page-item.disabled .page-link {
  background-color: #F6F7F9;
  color: rgba(0,0,0,0.2);
}
.BlogPagination .page-item.active .page-link {
  background-color: #025883;
  border-color: #025883;
  color: #FFF;
}

/* Post Content Styles
 * ========================================================================== */
/* Text */
#hs_cos_wrapper_post_body {
  font-size: 1.25rem;
  line-height: 1.75em;
  overflow-wrap: break-word;
}
#hs_cos_wrapper_post_body > p {
  padding-bottom: 1rem;
}
#hs_cos_wrapper_post_body > ol, #hs_cos_wrapper_post_body > ul {
  margin-bottom: 0;
  padding-bottom: 1rem;
}
#hs_cos_wrapper_post_body h1, #hs_cos_wrapper_post_body h2, #hs_cos_wrapper_post_body h3, #hs_cos_wrapper_post_body h4, #hs_cos_wrapper_post_body h5, #hs_cos_wrapper_post_body h6 {
  font-weight: 600;
}
#hs_cos_wrapper_post_body h5 + p, #hs_cos_wrapper_post_body h6 + p { /* overrides default dynamic text styles */
  padding-top: .25rem;
}

/* Videos */
#hs_cos_wrapper_post_body .hs-embed-wrapper {
  max-width: 100% !important;
}

/* Images and Adjustments */
#hs_cos_wrapper_post_body img {
  height: auto;
  max-width: 100%;
}
.mobile-full-width, .MobileFullWidthImg {
	display: block;
  height: auto;
  max-width: 100% !important;
	width: 100% !important;
}
.tablet-full-width, .TabletFullWidthImg {
	display: block;
  height: auto;
	max-width: 100% !important;
	width: 100% !important;
}

@media (min-width: 576px) {
  .mobile-full-width, .MobileFullWidthImg {
		display: inline block;
	}
}

@media (min-width: 768px) {
  .tablet-full-width, .TabletFullWidthImg {
		display: inline-block;
	}
}

/* Chronological Post Links
 * ========================================================================== */
.ChronPost .input-group-text {
  background-color: #F6F7F9;
  color: #999;
}
.card:hover .ChronPost .input-group-text {
  color: #666;
}
.ChronPost .input-group-prepend .input-group-text {
  border: none;
  border-right: 1px solid #D0D2D4;
}
.ChronPost .input-group-append .input-group-text {
  border: none;
  border-left: 1px solid #D0D2D4;
}
.ChronPost .form-control {
  border: none;
}

/* Post Author Information
 * ========================================================================== */
/* Author Avatar (styles circular avatar used for author bio) */
.PostAuthorImgWrap {
  background-color: #D0D2D4;
  border-radius: 50%;
  display: block;
  height: 100px;
  margin: auto;
  margin-bottom: 1rem;
  overflow: hidden;
  vertical-align: top;
  width: 100px;
}
.PostAuthorImgWrap img {
  display: inline;
  height: auto;
  margin: auto;
  max-height: 100px;
  vertical-align: top;
  width: auto;
}
@media(min-width:768px) {
  .PostAuthorImgWrap {
    margin-bottom: auto;
  }
}

/* Post Social Media Sharing
 * ========================================================================== */
/* Social Sharing Container */
.SocialSharing {
  background-color:#F6F7F9;
  border: 1px solid #D0D2D4;
  border-radius: .25rem;
  line-height: 1rem;
}

/* Social Sharing Label */
.SocialSharing p {
  display: inline-block;
  height: 2rem;
  line-height: 2rem;
  overflow: hidden;
}

/* Social Sharing Links */
.SocialSharing a {
  border-radius: 1rem;
  display: inline-block;
  height: 2rem;
  line-height: 2rem;
  overflow: hidden;
  text-align: center;
  width: 2rem;
}
.SocialSharing .Facebook {
  background-color: #3B5998;
}
.SocialSharing .Twitter {
  display: none;
}
.SocialSharing .LinkedIn {
  background-color: #0077B5;
}
.SocialSharing .Facebook:hover {
  background-color: #627AAD;
}
.SocialSharing .LinkedIn:hover {
  background-color: #3392C4;
}
.SocialSharing .Facebook:focus,
.SocialSharing .LinkedIn:focus {
  box-shadow: 0 0 0 0.2rem rgba(0,170,220,.25);
  outline: none;
}