/*------------------------------------*\
    
    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;
}

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

.blog-listing > div {
  margin-bottom: 32px;
}

.blog-post__item {
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.16);
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.blog-post__upper,
.blog-post__meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  margin-bottom: 10px;
  gap: 20px;
}

.blog-post__meta-bottom {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 14px;
  opacity: 0.8;
  padding-top: 15px;
  border-top: 1px solid #dddddd;
}

.blog-post__item a:not(.btn, .blog-post__tag) {
  background: none;
  color: #000;
  font-weight: normal;
}

.blog-post__img-container img {
  height: auto;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
}

.blog-post__excerpt {
  margin-bottom: 20px;
}

.blog-post__meta {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-post__tags {
  margin-bottom: 5px;

  .blog-post__tag {
    display: inline-block;
    padding: 4px 8px;
    background: none;
    background-color: #78be20;
    border: 2px solid #78be20;
    font-size: 14px;
    font-weight: normal;
    margin: 0 8px 8px 0;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
  }

  .blog-post__tag:hover {
    background-color: transparent;
    color: #78be20;
  }

  a:not(.btn, .blog-post__tag) {
    color: #84329b;
    font-size: 14px;
  }
}

.blog-post__bottom {
  width: auto;
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 1200px) {
  .blog-post__img-container {
    overflow: hidden;

    img {
      transform: scale(1);
      transition: transform 0.3s ease-in-out;
    }
  }

  .blog-post__item:hover {
    cursor: pointer;

    .blog-post__img-container img {
      transform: scale(1.15);
    }

    .blog-post__bottom {
      color: #fff;
    }

    .blog-post__bottom::before {
      width: 100%;
      height: 100%;
      clip-path: none;
    }
  }
}

/**
 * Sidebar
 */

/* Blog Sidebar */

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

/**
* FX Load More
*/

/* Load More Progress Bar */
.blog-listing__pagination {
  margin-top: 50px;
}

.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: #c5c9ce;
}
progress::-webkit-progress-value {
  background: linear-gradient(
    135deg,
    #5f2167 0%,
    #64236e 14%,
    #6a2675 28%,
    #6f287d 42%,
    #742a84 56%,
    #7a2d8c 70%,
    #7f2f93 84%,
    #84329b 100%
  ); /* 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 {
  display: flex;
  align-items: center;
  background-color: transparent;
  font-weight: 500;
  margin-top: 25px;

  > span {
    display: block;
    width: 30px;
    height: 30px;
    position: relative;
    margin-left: 10px;
    border-radius: 4px;
    background-color: #84329b;
    border: 2px solid #84329b;
    transition: background 0.3s ease-in-out;

    &:before,
    &:after {
      content: "";
      display: block;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 0;
      right: 0;
      margin: 0 auto;
      width: 14px;
      height: 2px;
      background-color: #fff;
      transition: background 0.3s ease-in-out;
    }

    &:after {
      width: 2px;
      height: 12px;
    }
  }

  &:hover {
    color: #84329b;

    > span {
      background-color: transparent;

      &:before,
      &:after {
        background-color: #84329b;
      }
    }
  }
}

.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;
  pointer-events: none;
  display: none;
}

.load-more__btn.is-disabled:before {
  background-color: #3a3939;
}

/* 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);
  }
}

.toc-container {
  padding: 30px 40px;
  display: inline-block;
}

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

.btn-post-pagination {
  background: #c5c9ce;
  font-size: 15px;
  padding: 10px 20px;
  position: relative;
  font-weight: normal;
  color: #161413;
  padding-block: 20px;
  transition: background 0.25s ease-in-out, color 0.25s ease-in-out;
}

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

.btn-post-pagination strong {
  display: block;
  font-size: 12px;
  color: #161413;
  transition: color 0.25s ease-in-out;
  font-weight: normal;
}

.btn-post-pagination:hover {
  background-color: #a1a1a1;
  color: #071f36;
  -webkit-text-stroke: 0;
}

.btn-post-pagination:hover strong {
  color: #071f36;
}

.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;
  text-align: right;
}

.mobile-arrow:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #161413;
  transition: border 0.25s ease-in-out;
}

.btn-post-pagination:hover .mobile-arrow:after {
  border-left-color: #071f36;
}

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

.bg-white a:not([class]):not(:has(*)):hover,
.bg-white a[class="external"]:hover,
.bg-white a[class="external"]:hover span,
.bg-white a[class="external"]:hover sup,
.bg-white a[class="external"]:hover i,
.bg-white a[class="external"]:hover strong {
  background: linear-gradient(to bottom, #84329b 0%, #84329b 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 4px 50px;
}

.bg-white a:not([class]):has(*),
.bg-white a:not([class]):has(*):hover {
  background: none;
}


.bg-white a:not([class]){
  background: linear-gradient(to bottom, #84329b 0%, #84329b 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 2px 2px;
  transition: background-size 0.2s;
  padding: 1px 2px;
}

.bg-white a:not([class]):hover{
  background: linear-gradient(to bottom, #84329b 0%, #84329b 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 4px 50px;
}


.bg-purple a:not([class]){
  background: linear-gradient(to bottom, #ffa300 0%, #ffa300 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 2px 2px;
  transition: background-size 0.2s;
  padding: 1px 2px;
}

.bg-purple a:not([class]):hover{
  background: linear-gradient(to bottom, #ffa300 0%, #ffa300 100%);
  background-position: 0 100%;
  color: #84329b;
  background-repeat: repeat-x;
  background-size: 4px 50px;
}


.social-share-row.social-share-row-grey .resp-sharing-button__icon:hover {
  fill: #78be20;
}

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

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

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

.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Popular Posts*/
.popular-posts {
  margin-bottom: 0;
}

/* Search Form */
.search_bar {
  margin-bottom: 40px;
}

.search_form {
  form {
    position: relative;
  }

  input {
    padding: 20px;
  }
}

.search_bar_submit {
  width: 49px;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-color: transparent;
  font-size: 16px;
  position: absolute;
  top: 0;
  right: 0;
  color: #000;
}

.blog_title_bar {
  margin-top: 40px;
}

/* Single Posts Page */
.single {
  .right-title-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .container:has(.blog_title_bar) {
    padding: 20px 0;
  }

  .right-title-bar .choices,
  .right-title-bar .search_form {
    width: 100%;
  }

  img.image-medium {
    width: 300px;
    height: 210px;
  }

  @media (min-width: 1200px) {
    .right-title-bar .choices {
      width: calc(40% - 20px);
    }

    .right-title-bar .search_form {
      width: calc(60% - 20px);
    }

    img.image-medium {
      width: 300px;
      height: auto;
    }
  }
}

@media (max-width: 1199px) {
  .single {
    .right-title-bar {
      display: block;
      margin-bottom: 30px;
    }
  }
}

@media (max-width: 767px) {
  .single {
    .right-title-bar {
      margin: 5px 0 30px;
      display: block;
    }

    .blog-single-meta .social-share-row {
      text-align: left;
      margin-top: 10px;
    }

    .social-share-row li {
      margin-right: 0;
      background-image: none;
    }
  }

  .blog-single-meta {
    margin-top: 30px;
  }
}

.blog-post__bottom__reading_time span svg,
.blog-meta__reading_time span svg {
  fill: #acacac;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  position: relative;
  top: -2px;

  path {
    fill: #acacac;
  }
}

/* Search Results */
.search-results {
  a {
    color: #000;
    background-image: none;
  }

  .search-result {
    display: block;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid #ccc;
  }

  .header-phone a {
    color: #fff;
  }
}

@media (max-width: 1199px) {
  .archive-container {
    margin-bottom: calc(var(--section-margins) + 30px);
  }
}

.blog-single__upper + .bg-white {
  margin-top: 80px;
  padding-top: 0;
}

.blog-single__upper .toc-container {
  background-color: #f5f4f5;
}

.single {
  .masthead__text {
    padding-inline: 21px;
    max-width: 1306px;
    margin: 0 auto;
    width: 100%;
  }

  .masthead__text__wrap {
    width: 100%;
    max-width: 100%;
  }

  .blog_title_bar .row > div {
    width: 100%;
    margin: 0;
  }

  .social-share-row li {
    margin-right: 0;
    color: #838383;
    background-image: none;
  }

  .resp-sharing-button__link {
    margin-right: 0;
  }

  .blog-meta__reading_time,
  .blog-meta__date {
    color: #838383;
  }

  .blog-single-meta {
    padding-top: 15px;
    border-top: 1px solid #ccc;
  }

  .social-share-row {
    .resp-sharing-button {
      background-color: transparent;
      padding: 0;
    }

    .resp-sharing-button__icon {
      fill: #838383;
    }
  }
}


.search .masthead__text {
  padding-inline: 21px;
  max-width: 1306px;
  margin: 0 auto;
  width: 100%;
}


.search .masthead__text__wrap {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .single {
    .masthead__text {
      padding-inline: 52px;
    }

    .container:has(.blog_title_bar) {
      padding-inline: 52px;
    }
  }
}

@media (max-width: 767px) {
  .single {
    .container:has(.blog_title_bar) {
      padding-inline: 21px;
    }

    .toc-container {
      margin-top: 40px;
    }
  }
}
