/*------------------------------------*\

    Posts CSS

    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

\*------------------------------------*/

.post-item {
    border-top: 1px solid #ddd;
    padding-top: 30px;
    margin-top: 30px;
}

.post-item:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.post-item__heading a {
    text-decoration: none;
}

.post-item .btn,
.post-item .btn-primary {
    margin-top: 30px;
}

.post-item__meta {
    font-size: 0.8em;
}

.contact-form__heading {
    text-align: center;
    margin-bottom: 30px;
}

.featured-image {
    max-width: 100%;
    width: auto;
    margin: 0 0 30px;
    text-align: left;
    padding: 0 20px;
}

.featured-image .blog-post__img {
    width: auto;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    box-shadow: 5px 8px 22px rgba(0, 60, 113, 0.5);
}

.featured-image-container:has(+ .flex-content .hbspt-form) {
    display: none;
}

.ebook .featured-image-container:has(+ .flex-content .hbspt-form) {
    display: block;
}

.type-location .text-content-form-text p, .type-location .text-content-form-text .short-description{
    color: #3B3B3B;
}

.type-location .text-content-form-text ul li:before{
    background: #3B3B3B;
}


@media (min-width: 1025px) {
    .post-item {
        padding-top: 50px;
        margin-top: 50px;
    }
}

/**
 * Sidebar
 */

/* Blog Sidebar */

.blog .page-sidebar .widget {
    margin-bottom: 50px;
}

/**
* FX Load More
*/

/* Load More Progress Bar */
.load-more__progress {
    margin-top: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 10px;
    border: 0;
    border-radius: 0;
    min-width: 250px;
}
progress::-webkit-progress-bar,
progress::-webkit-progress-value,
progress::-moz-progress-bar {
    height: 10px;
    border: 0;
    border-radius: 0;
}
progress::-webkit-progress-bar {
    background-color: #ddd;
}
progress::-webkit-progress-value {
    background-color: #4a4a4a; /* TODO: Please add a branded background color for progress bar value */
}

/* Loading Indicator */
.is-loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid;
    border-color: #e3e3e3 #e3e3e3 transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    -webkit-animation: simpleSpin 1.5s linear infinite;
    animation: simpleSpin 1.5s linear infinite;
}

/* Load More Button */
.load-more__btn {
    border: 0;
    display: block;
    margin-top: 20px;
}

.load-more__btn.is-loading {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more__btn.is-loading:before {
    width: 20px;
    height: 20px;
}

.load-more__btn.is-disabled {
    cursor: not-allowed;
    background-color: #4a4a4a;
}

/* Placeholder Space */
.placeholder-block {
    position: relative;
    display: flex;
}

.placeholder-block__inner {
    flex-grow: 1;
    background-color: #fafafa;
}

.placeholder-block.is-loading:before {
    width: 50px;
    height: 50px;
}

@-webkit-keyframes simpleSpin {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes simpleSpin {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

/* Single Post Pagination */
.post-pagination {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.btn-post-pagination {
    background: #dadada;
    font-size: 15px;
    padding: 10px 20px;
    color: #747474;
    position: relative;
}

.post-pagination-text {
    display: none;
}

.btn-post-pagination:hover {
    background: #ebebeb;
}

.btn-post-pagination strong {
    display: block;
    font-size: 12px;
}

.btn-previous-post,
.btn-next-post {
    max-width: 48%;
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.btn-previous-post {
    padding-left: 40px;
}

.btn-next-post {
    padding-right: 40px;
}

.mobile-arrow:after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #747474;
}

.mobile-arrow {
    position: absolute;
}

.btn-previous-post .mobile-arrow {
    left: 19px;
}

.btn-next-post .mobile-arrow {
    right: 19px;
}

.btn-previous-post .mobile-arrow:after {
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    .post-pagination-text {
        display: block;
    }

    .btn-previous-post,
    .btn-next-post {
        text-align: inherit;
    }
}

/* Search Results */
.search-result {
    text-decoration: none !important;
    transition: all ease-in 0.5s;
}

.search-result:hover {
    opacity: 0.75;
}

.search-result__title {
    margin-bottom: 16px;
}

.search-result__excerpt {
    margin-bottom: 20px;
    text-decoration: none;
}

.blog-listing__pagination {
    margin-bottom: 1rem;
}

.load-more {
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    text-align: center;
}

/* For single map location */

.single-map {
    padding: 15px 0;
}

.single-map .location-map {
    height: 450px;
}

.map-marker a.btn-secondary,
.map-marker a.btn-secondary:hover,
.map-marker a.btn-secondary:focus {
    background: none;
    border-color: #fff;
    box-shadow: none;
    color: #ff6720;
    transition: none;
    border: 1px solid #fff;
}

.contact-form {
    padding: 30px 20px 35px;
    background-color: #fff;
    box-shadow: none;
    border-radius: 45px;
    margin: 0 auto;
    border: 1px solid #d6d6d6;
}

.text-content-form-text {
    margin-bottom: 30px;
    padding-right: 1px;
}

.short-description {
    margin: 20px 0;
}

.hs-button.primary {
    position: relative;
    display: inline-block;
    color: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 17px;
    line-height: 1.18em;
    font-weight: 600;
    padding: 17px 49px 17px 29px;
    vertical-align: middle;
    text-decoration: none;
    background: #ff6720;
    transition: all ease-in-out 0.3s;
    z-index: 1;
    font-family: "Montserrat", sans-serif;
    background-image: url("/wp-content/themes/chemtreat/assets/img/arrow-right.png");
    background-repeat: no-repeat;
    background-position: right 25px center;
}

.hs-button.primary:hover {
    background: #fff;
    color: #ff6720;
    border-color: #ff6720;
    padding-right: 59px;
    transition: all ease-in-out 0.3s;
    background-image: url("/wp-content/themes/chemtreat/assets/img/arrow-right-hover.png");
    background-repeat: no-repeat;
    background-position: right 25px center;
}

.legal-consent-container .hs-richtext p {
    font-size: 12px;
    margin: 0 0 20px;
    margin-bottom: 0;
}

.hbspt-form fieldset.form-columns-2 div.hs-form-field {
    width: 47%;
}

.form-columns-1 .hs-dependent-field,
.form-columns-1 .hs-fieldtype-textarea {
    width: 98%;
}

.form-columns-1 .hs-dependent-field .hs-form-field .input select,
.form-columns-1 .hs-fieldtype-textarea .input textarea.hs-input {
    width: 100%;
}

.hbspt-form fieldset.form-columns-1,
.hbspt-form fieldset.form-columns-2 {
    display: block;
    margin-bottom: 20px;
}

label.hs-error-msg {
    font-size: 10px;
    top: -2px;
    left: -10px;
    color: #ff0000;
}

ul.hs-error-msgs li:before {
    display: none;
}

.material-location-on::before {
    content: "";
    background-color: #ff6720;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: url("/wp-content/themes/chemtreat/assets/img/material-location-on.svg");
    mask-image: url("/wp-content/themes/chemtreat/assets/img/material-location-on.svg");
    width: 17px;
    display: inline-block;
    aspect-ratio: 1/1;
    color: inherit;
    margin-top: 5px;
}

.awesome-phone-alt::before {
    content: "";
    background-color: #ff6720;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: url("/wp-content/themes/chemtreat/assets/img/awesome-phone-alt.svg");
    mask-image: url("/wp-content/themes/chemtreat/assets/img/awesome-phone-alt.svg");
    width: 17px;
    display: inline-block;
    aspect-ratio: 1/1;
    color: inherit;
    margin-top: 5px;
}

.awesome-fax::before {
    content: "";
    background-color: #ff6720;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: url("/wp-content/themes/chemtreat/assets/img/awesome-fax.svg");
    mask-image: url("/wp-content/themes/chemtreat/assets/img/awesome-fax.svg");
    width: 17px;
    display: inline-block;
    aspect-ratio: 1/1;
    color: inherit;
    margin-top: 5px;
}

.location-hours {
    display: block;
    padding-bottom: 7px;
    font-weight: 600;
}

.location-listing h3.title {
    padding-bottom: 10px;
}

.location-listing .short-description h2 {
    color: #003c71;
}

.single-location .text-content-form-text :is(h2, h3, h4, h5, h6) {
    color: #003c71;
}

.single-location .text-content-form-text span:not(.js-near-you) {
    color: #090809;
}

.location-listing__section.cta-section {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 15px;
}

.location-listing__section.fax {
    padding-top: 10px;
}

.location-listing__section i + span {
    padding-left: 7px;
}

.location-listing__section:has(i + span) {
    display: flex;
    align-items: center;
}

.location-phone {
    font-weight: 400;
    color: #000;
    font-size: 17px;
}

.search-result .search-result_left_column {
    margin-bottom: 50px;
}

.search-result .search-result_left_column {
    border-bottom: 1px solid #f2f2f2;
    background: none;
    font-weight: normal;
}

.btn.search-result__link {
    margin-bottom: 30px;
}

section.post-type-resource .wysiwyg img.alignright {
    height: auto;
}

.hs-form-field {
    position: relative;
}

@media (max-width: 600px) {
    .hbspt-form fieldset.form-columns-2 .hs-form-field:has(+ .hs-form-field) {
        margin-bottom: 20px;
    }

    div.hbspt-form fieldset.form-columns-2 div.input,
    div.hbspt-form fieldset.form-columns-1 div.input {
        margin: 0;
        display: flex;
        justify-content: center;
    }

    .form-columns-1 .hs-dependent-field .hs-form-field .input select,
    .form-columns-1 .hs-fieldtype-textarea .input textarea.hs-input {
        width: 96%;
    }

    .location-hours {
        margin-top: 20px;
    }

    .location-listing__section.cta-section {
        display: flex;
        width: auto;
        padding-bottom: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 768px) {
    .contact-form {
        padding: 30px 20px 20px 20px;
    }
    .hbspt-form fieldset.form-columns-1,
    .hbspt-form fieldset.form-columns-2 {
        max-width: 100%;
        margin-inline: auto;
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .text-content-form .text-content-form-wrapper {
        align-items: flex-start;
    }

    .text-content-form-text {
        margin-bottom: 0;
    }

    .contact-form {
        max-width: 604px;
    }

    .hbspt-form fieldset.form-columns-1,
    .hbspt-form fieldset.form-columns-2 {
        max-width: 100%;
        margin-inline: auto;
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}

/* Single page resource */

ul li.social-share-row__item::before {
    display: none;
}

.resp-sharing-button--x {
    background-color: #000;
}

.resp-sharing-button--pinterest {
    background-color: #bd081c;
}

.container:has(+ .masthead + .post-type-resource) .blog_title_bar {
    display: none;
}

@media (max-width: 600px) {
    .social-share-row li.social-share-row__item:first-child {
        display: block;
    }
}

/* Blog archive styles */

.blog-post__item {
    background: #ffffff;
    box-shadow: 5px 8px 22px rgba(0, 60, 113, 0.5);
    border-radius: 20px;
    overflow: hidden;
    display: block;
    border: none;
    height: 100%;
    position: relative;
    padding-bottom: 35px;
}

.blog-post__cont:hover {
    transition: all ease-in-out 0.3s;
    transform: translate3d(0, -10px, 0);
}

.blog-post__cont {
    margin-bottom: 50px;
}

.blog-post__img-container {
    width: 100%;
    height: 194px;
}

.resource-listing-container + footer {
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.5);
}

.search_form form {
    position: relative;
    margin-bottom: 30px;
}

.search_form .search_bar_submit {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 11px;
    background: #789d4a;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
}

.search_form .search_bar_input {
    border-radius: 5px;
}

.blog-post__title {
    padding: 25px 26px 0;
}

.blog-post__title__link {
    font-size: 22px;
    line-height: 1.09em;
    color: #3b3b3b;
    font-weight: 600;
}

.blog-post__title__link:hover {
    color: #003e75;
    background: none;
}

.blog-post__excerpt {
    padding: 0 26px 5px;
}

.blog-post__link {
    padding: 15px 26px 0;
}

.resource-listing__pagination,
.post-listing__pagination {
    margin-inline: auto;
    text-align: center;
}

.resource-listing__pagination button.load-more__btn,
.post-listing__pagination button.load-more__btn {
    margin-inline: auto;
}

.blog-post__tag {
    padding: 6px 10px 6px 10px;
    background-color: #ff6720;
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1em;
    display: flex;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.blog-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.location .text-content-form {
    padding-top: 50px;
}

.location .text-content-form + .wysiwyg.bg-white {
    padding-top: 0;
}

/* .location .text-content-form:has( + .image-buttons--homepage) {
    padding-bottom: 0;
} */

.resource-post-tag a {
    color: #fff;
}

.resource-post-tag a:not(:focus) {
    background: transparent;
}

.blog-single-container .featured-image-container .featured-image img {
    border-radius: 20px;
}

.blog-single-container {
    padding-top: 60px;
}

.blog-single-container.post-type-resource:has(.gform_wrapper) .container,
.blog-single-container.post-type-resource .resource-url-download + .flex-content + .container,
.blog-single-container.post-type-resource .resource-url-download + .flex-content {
    display: none;
}

.blog-single-container.post-type-resource .resource-url-download + .flex-content:has(.gform_wrapper) {
    display: block;
}

.blog-single-container.post-type-resource .gform_wrapper {
    width: 500px;
    margin-inline: auto;
    background: #f5f5f5;
    padding: 50px;
    margin-top: 30px;
}

.blog-single-container.post-type-resource .gform_wrapper form .gform_footer input.gform_button.button {
    position: relative;
    display: inline-block;
    color: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 17px;
    line-height: 1.18em;
    font-weight: 600;
    padding: 17px 49px 17px 29px;
    vertical-align: middle;
    text-decoration: none;
    background: #ff6720;
    transition: all ease-in-out 0.3s;
    z-index: 1;
    font-family: "Montserrat", sans-serif;
    margin-inline: auto;
    background-image: url("/wp-content/themes/chemtreat/assets/img/arrow-right.png");
    background-repeat: no-repeat;
    background-position: right 25px center;
}

.blog-single-container.post-type-resource .gform_wrapper form .gform_footer input.gform_button.button:hover {
    background: #fff;
    color: #ff6720;
    border-color: #ff6720;
    padding-right: 59px;
    transition: all ease-in-out 0.3s;
    background-image: url("/wp-content/themes/chemtreat/assets/img/arrow-right-hover.png");
    background-repeat: no-repeat;
    background-position: right 25px center;
}

.blog-single-container.post-type-resource:has(.gform_wrapper) {
    text-align: center;
}

.blog-single-container.post-type-resource:has(.gform_wrapper) + footer,
.blog-single-container.post-type-resource:has(.resource-url-download) + footer {
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.5);
}

.resource-url-download .alert-warning {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-inline: auto;
    background: #f5f5f5;
    padding: 50px;
    margin-top: 30px;
    text-align: center;
}

.post-7891 .location-listing__section.cta-section {
    display: none;
}

@media (max-width: 1199px) {
    .blog-single-container.post-type-resource .container:has(sub) {
        padding-bottom: 30px;
    }
}

.row .social-share-row {
    margin-left: 0;
    margin-right: 0;
}

/* custom location page */


.post-5086.location .location-listing h3.title,
.post-5088.location .location-listing h3.title,
.post-5089.location .location-listing h3.title,
.post-5081.location .location-listing h3.title {
    display: none;
}

.location-content-before-map h2{
    color: #003c71;
}
.location-content-before-map  ul li {
    color: #3B3B3B;
}

.post-5086.location .location-listing .short-description p,
.post-5089.location .location-listing .short-description p,
.post-5081.location .location-listing .short-description p{
    margin-bottom: 0;
}

.post-5086.location .image-buttons--homepage .image-buttons__bg .overlay,
.post-5089.location .image-buttons--homepage .image-buttons__bg .overlay,
.post-5081.location .image-buttons--homepage .image-buttons__bg .overlay{
    display: none;
}
