/*------------------------------------*\
    
    Posts CSS
 
    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

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

.post-listing {
  display: flex;
  flex-wrap: wrap;
}

.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;
}

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

/**
 * Sidebar
 */

/* Blog Sidebar */

.page-sidebar .widget + .widget,
.mobile-sidebar .widget + .widget {
  margin-top: 40px;
}

.mobile-sidebar--top {
  padding-bottom: 40px;
}

.mobile-sidebar--bottom {
  padding-top: 40px;
}

.widget .choices {
  margin-bottom: 0;
}

.widget .wp-block-search__label {
  display: none;
}

.wp-block-search {
  position: relative;
}

.wp-block-search__button {
  position: absolute;
  right: 0;
  opacity: 0;
}

.wp-block-search__input {
  padding: 15px;
  border-radius: 99px;
}

.widget-popular-posts {
  margin-bottom: 40px;
}

.widget-popular-posts h3 {
  font-size: 20px;
  font-weight: 800;
}

.widget-popular-posts a {
  color: #595959;
  font-size: 17px;
  line-height: 1em;
}

.widget-popular-posts ul li {
  padding-bottom: 15px;
}

@media (min-width: 768px) {
  .widget-popular-posts {
    padding-left: var(--bs-gutter-x, 52px);
    padding-right: var(--bs-gutter-x, 52px);
  }
}

@media (min-width: 1200px) {
  .widget-popular-posts h3 {
    font-size: 26px;
  }
}

/**
* FX Load More
*/

/* Load More Progress Bar */
.load-more__progress {
  margin-top: 15px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 9px;
  border: 0;
  border-radius: 99px;
  min-width: 250px;
  overflow: hidden;
}

progress::-webkit-progress-bar,
progress::-webkit-progress-value,
progress::-moz-progress-bar {
  height: 9px;
  border: 0;
  border-radius: 99px;
}

progress::-webkit-progress-bar {
  background-color: rgba(127, 127, 127, 0.2);
}

progress::-webkit-progress-value {
  background-color: #ff8400; /* 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%;
  -webkit-transform: translate(-50%, -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:disabled,
.load-more__btn.is-disabled {
  display: none;
  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% {
    -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
    transform: translate(-50%, -50%) rotateZ(0deg);
  }

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

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

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

/**
 * Single Post Pagination
 */
.post-pagination {
  margin-top: var(--section-margins);
  display: flex;
  justify-content: space-between;
  align-content: center;
}

.btn-post-pagination {
  background: #f2f2f2;
  font-size: 15px;
  padding: 10px 20px;
  color: #747474;
  position: relative;
  border-radius: 20px;
  text-decoration: none;
}

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

.btn-post-pagination:hover {
  background: #000;
  color: #fff;
}

.btn-post-pagination:hover::before {
  display: none;
}

.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 {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

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

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

/* Search Results */

.search-results__wrapper .tab-accordion {
  background-color: transparent;
}

.search-results__wrapper .tab-accordion__tabs {
  background-color: #f2f2f2;
}

.search-results__wrapper .tab-accordion__tab,
.search-results__wrapper .tab-accordion__panel__toggle {
  background-color: #fff;
  border: 1px solid #ff8400;
}

.search-results__wrapper .tab-accordion__tab.is-active,
.search-results__wrapper .tab-accordion__tab:hover,
.search-results__wrapper .tab-accordion__tab:focus,
.search-results__wrapper .tab-accordion__panel__toggle.is-active,
.search-results__wrapper .tab-accordion__panel__toggle:hover,
.search-results__wrapper .tab-accordion__panel__toggle:focus {
  background-color: #ff8400;
  color: #fff;
}

.search-result {
  display: block;
  text-decoration: none;
  margin-bottom: var(--section-margins);
}

.search-result:hover::before {
  display: none;
}

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

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

a.search-result .search-result__excerpt,
a.search-result .search-result__excerpt p {
  color: #595959;
  font-weight: 400;
}

.search-results__wrapper .tab-accordion__panels {
  padding: 0 15px;
}

@media (min-width: 1200px) {
  .search-results__wrapper .tab-accordion__panels {
    padding: 0 50px;
  }
}

/*Blog Listing*/

.blog-listing {
  display: flex;
  flex-wrap: wrap;
}

.blog-post__item {
  position: relative;
  height: 100%;
  padding: 15px 15px 40px;
}

.blog-post__item-wrapper {
  display: block;
  height: 100%;
  padding: 16px 16px 40px;
  border-radius: 20px;
  background-color: #fff;
  transition: 0.3s all;
}

.blog-post__item-wrapper:before {
  display: none;
}

.blog-post__meta {
  padding: 30px 20px;
}

.blog-post__img-container {
  display: block;
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
  /* height: 167px; */
}

.blog-post__img {
  width: 100%;
  height: auto;
  /* height: 100%;
  -o-object-fit: cover;
  object-fit: cover; */
}

.blog-post__tags {
  position: absolute;
  left: 0;
  top: 45px;
  z-index: 1;
}

.blog-post__tag {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  padding: 9px 17px;
  border-radius: 99px;
}

.blog-post__tag:before {
  display: none;
}

.blog-post__date {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  color: #7f7f7f;
}

.blog-post__title {
  font-size: 22px;
  font-weight: 800;
}

.blog-post__link {
  position: absolute;
  left: 35px;
  bottom: 35px;
}

.post-excerpt {
  color: #595959;
  font-weight: 400;
}

.load-more {
  text-align: center;
}

.load-more__btn {
  margin: 20px auto 0;
}

@media (min-width: 1025px) {
  .blog-post__meta a:hover {
    color: #ff8400;
  }

  a.blog-post__tag:hover {
    background-color: #ff8400;
    color: #fff;
  }

  .blog-post__item-wrapper:hover {
    background-color: #000;
  }

  .blog-post__item-wrapper:hover a.blog-post__date::before,
  .blog-post__item-wrapper:hover a.blog-post__img-container::before,
  .blog-post__item-wrapper:hover a.blog-post__tag::before {
    display: none;
  }

  .blog-post__item-wrapper:hover .blog-post__date {
    color: #ffaa05;
  }

  .blog-post__item-wrapper:hover .blog-post__title {
    color: #fff;
  }

  .blog-post__item:hover .btn-tertiary::after {
    background: #29aaa6;
    color: #fff;
  }
}

/* Blog Single */
.blog-hero-image {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.blog-single__date {
  margin-bottom: 40px;
  font-size: 16px;
  color: #7f7f7f;
}

/*Mail Poet*/
.widget .mailpoet_form {
  padding: 0 0 30px 0 !important;
}
.mailpoet_form input[type="submit"] {
  background-color: transparent;
  color: #fff;
  font-weight: 600;
}

.mailpoet_form input[type="email"] {
  padding: 15px !important;
  border-radius: 30px;
}

/* Comments */

#comments,
.comment-reply-title {
  font-size: 18px;
  font-weight: 800;
}

.comment-body {
  position: relative;
  padding-left: 50px;
  margin-bottom: 40px;
}

.avatar {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
}

.comment-content {
  margin-top: 15px;
}

.reply {
  margin-top: 20px;
}

.says,
.comment-metadata a,
.comment-reply-link {
  color: #7f7f7f;
  font-size: 16px;
}

.fn {
  color: #000;
}

.comment-awaiting-moderation {
  font-size: 14px;
}

.form-submit .submit {
  display: inline-block;
  border: none;
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 7px 28px 8px 28px;
  border-radius: 30px;
  text-align: center;

  background-image: linear-gradient(
    to right,
    #f0a632,
    #eb7a2e,
    #e9682c,
    #ee9330
  );

  background-size: 200% 100%;
  moz-transition: padding-right 0.4s ease-in-out,
    background-position 0.4s ease-in-out;
  -o-transition: padding-right 0.4s ease-in-out,
    background-position 0.4s ease-in-out;
  -webkit-transition: padding-right 0.4s ease-in-out,
    background-position 0.4s ease-in-out;
  transition: padding-right 0.4s ease-in-out,
    background-position 0.4s ease-in-out;
}

@media (min-width: 1200px) {
  #comments,
  .comment-reply-title {
    font-size: 21px;
  }

  .form-submit .submit {
    font-size: 16px;
    padding: 13px 29px;
  }

  .form-submit .submit:hover {
    transition: all 0.4s ease-in-out;
    background-position: 100% 0;
  }
}

/*Single Post Page*/

.search-single-page {
  position: relative;
}

.search-single__input {
  border-radius: 99px;
}

.search-single-page input[type="submit"] {
  position: absolute;
  top: 15px;
  right: 10px;
  opacity: 0;
}

.search-single-page::before {
  position: absolute;
  content: "\e90d";
  top: 14px;
  right: 27px;
  font-family: "icomoon";
  font-size: 21px;
}

/**
 * Resource Library
 */

.single-resource__form h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 30px;
}

.video-image__wrapper {
  text-align: center;
}

.video-image::before {
  display: none;
}
