
/*--------------------------------------------------------------
# BLOG CATEGORIES NAV
--------------------------------------------------------------*/

.blog-nav {
  border-bottom: none;
  margin: 0 0 0 auto;
  max-width: 100%;
  width: 100%;
}

@media screen and (min-width: 550px) {
  .blog-nav {
    border-bottom: 1px solid #D2D1D8;
  }
}

@media screen and (min-width: 1280px) {
  .blog-nav {
    max-width: 800px;
    position: fixed;
    right: 64px;
    z-index: 12;
    margin-top: -18px;
  }
}

@media screen and (min-width: 1600px) {
  .blog-nav {
    max-width: 960px;
    margin: 4px 0 0 auto;
  }
}

@media screen and (min-width: 1800px) {
  .blog-nav {
    max-width: 1140px;
  }
}

.blog-nav .wp-block-group__inner-container {
  display: block;
}

@media screen and (min-width: 550px) {
  .blog-nav .wp-block-group__inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.blog-nav .wp-block-search__inside-wrapper {
  flex-direction: row-reverse;
  justify-content: flex-end;
  /* border-bottom: 1px solid #D2D1D8; */
}


.blog-nav .blog-nav-categories > div {
  display: flex;
}

.blog-nav form {
  padding: 0;
  width: 100%;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #D2D1D8;
}

@media screen and (min-width: 550px) {
  .blog-nav form {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
}

.blog-nav form label {
  display: none;
}

.blog-nav form button {
  width: 19px;
  border: none;
  margin: 0;
  font-size: 0;
  background: url("data:image/svg+xml,%3Csvg width='19' height='19' viewBox='0 0 19 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16C9.77498 15.9996 11.4988 15.4054 12.897 14.312L17.293 18.708L18.707 17.294L14.311 12.898C15.405 11.4997 15.9996 9.77544 16 8C16 3.589 12.411 0 8 0C3.589 0 0 3.589 0 8C0 12.411 3.589 16 8 16ZM8 2C11.309 2 14 4.691 14 8C14 11.309 11.309 14 8 14C4.691 14 2 11.309 2 8C2 4.691 4.691 2 8 2Z' fill='black'/%3E%3C/svg%3E%0A") no-repeat center;
  flex-shrink: 0;
}

.blog-nav form input {
  max-width: 100%;
  height: 30px;
  max-width: 90%;
  border: none;
  font-size: 18px;
  font-weight: 500;
  outline: none;
  padding-left: 20px;
}

.blog-nav form input:hover,
.blog-nav form input:focus {
  border: none;
}

.blog-nav form input {
  -webkit-appearance: none;
  outline: none;
  background-color: transparent;
  box-shadow: none;
}

.blog-nav form input:focus {
  outline: none;
  box-shadow: none;
  background-color: transparent;
}

.blog-nav form input {
  -webkit-tap-highlight-color: transparent;
}

.blog-nav form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: inherit !important;
  background-color: transparent !important;
}

.blog-wrapper .blog-small-posts {
  height: auto;
}

@media screen and (min-width: 1280px) {

  .blog-nav {
    border-bottom: 1px solid #D2D1D8;
  }

  .blog-nav form input {
    max-width: 50%;
    border-bottom: none;
  }

  .blog-nav .blog-nav-categories > div {
    /* display: block; */
    display: flex;
  }

  .blog-nav .blog-nav-categories p {
    padding: 0 14px;
  }

  .blog-nav .blog-nav-categories .blog-nav-active:before {
    bottom: -2px;
  }

  .blog-wrapper .blog-small-posts {
    display: flex;
    height: 100%;
  }

  .blog-wrapper .blog-small-posts > div {
    width: 100%;
    max-width: unset;
  }

  .blog-wrapper .blog-small-posts li {
    width: calc((100%/3) - 40px);
    display: block;
    margin-bottom: 0;
  }

  .blog-wrapper .blog-small-posts .wp-block-latest-posts__featured-image {
    height: 150px;
    max-height: 150px;
    margin-right: 0;
    max-width: unset;
  }

  .blog-wrapper .blog-small-posts .wp-block-latest-posts__post-title {
    margin-top: 26px;
  }
}

.blog-nav .blog-nav-categories {
  flex-shrink: 0;
}

.blog-nav .blog-nav-categories p {
  padding: 0 8px;
}

.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  font-family: Arial, sans-serif;
}

@media screen and (min-width: 550px) {
  .custom-dropdown {
    width: auto;
  }
}

.custom-dropdown-selected {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 0 10px 0;
  background-color: var(--white);
  border: none;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  text-transform: uppercase;
}

.custom-dropdown-selected::before {
  content: "Category:";
  text-transform: uppercase;
  color: #9E9E9E;
  margin-right: 5px;
}

@media screen and (min-width: 550px) {

  .custom-dropdown-selected {
    padding: 16px 0 10px 10px;
  }

  /* .custom-dropdown::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 10%;
    width: 2px;
    height: 80%;
    background-color: var(--yellow);
    z-index: 1;
  } */
}

.custom-dropdown-selected::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 15px;
  margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7.2973L15.4 22L29 7.2973' stroke='%23B15800' stroke-width='3'/%3E%3C/svg%3E%0A") no-repeat center;
  background-size: contain;
}

.custom-dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

.custom-dropdown-options.visible {
  display: flex;
  flex-direction: column;
}

.custom-dropdown-option {
  padding: 10px 10px 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.custom-dropdown-option[data-url*="/other/"] {
  order: 2;
}

.custom-dropdown-option:hover {
  background-color: #f0f0f0;
}

.custom-dropdown-option[data-selected="true"] {
  font-weight: bold;
  color: var(--yellow);
}


/*--------------------------------------------------------------
# Blog
--------------------------------------------------------------*/

.page-template-blog-template .header-content {
  background: #fff;
}

@media screen and (min-width: 1280px) {
  .page-template-blog-template .header-content {
    background: transparent;
  }
}

#horizontall-wrapper.blog-wrapper {
  height: 100%;
}

#horizontall-wrapper.blog-wrapper > article {
  height: 100%;
  padding: 70px 15px 80px 15px;
}

@media screen and (min-width: 1280px) {
  
  #horizontall-wrapper.blog-wrapper > article {
    height: 100vh;
    /* padding: 70px 64px 100px 64px; */
    padding: 70px 64px;
  }

  #horizontall-wrapper .wp-block-columns:first-child {
    margin-right: 20px;
  }

  #horizontall-wrapper .wp-block-columns:last-child:not(.blog-items) {
    margin-right: 50%;
  }
}

.blog-wrapper {
  padding: 0;
  height: auto;
}

@media screen and (min-width: 1024px) {
  .blog-wrapper {
    height: calc(100vh - 78px);
  }
}

.blog-wrapper .entry-header {
  display: block;
  text-align: left;
}

@media screen and (min-width: 1280px) {
  .blog-wrapper .entry-header {
    position: absolute;
  }
}

.blog-wrapper .entry-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

@media screen and (min-width: 1600px) {
  .blog-wrapper .entry-title {
    font-size: 56px;
  }  
}

.blog-wrapper .entry-content {
  height: auto;
  flex-direction: column;
}

@media screen and (min-width: 1024px) {

  .blog-wrapper .entry-content {
    flex-direction: row;
  }
}

/* @media screen and (min-width: 1280px) {

  #horizontall-wrapper.blog-wrapper .entry-content {
    height: calc(100% - 60px);
  }
}

@media screen and (min-width: 1440px) {

  #horizontall-wrapper.blog-wrapper .entry-content {
    height: calc(100% - 80px);
  }
} */

.blog-wrapper .wp-block-columns {
  margin-bottom: 0;
}

/* @media screen and (min-width: 768px) {
  .blog-wrapper .wp-block-columns {
    padding-right: 64px;
  }
} */


.blog-wrapper .wp-block-latest-posts__list {
  margin: 0;
  padding-right: 64px;
}

.blog-wrapper .wp-block-latest-posts__post-excerpt,
.blog-wrapper .wp-block-latest-posts__post-title {
  white-space: break-spaces;
}


@media screen and (min-width: 768px) {
  .home-page .blog-items {
    padding: 70px 0 0;
    max-height: calc(100vh - 174px); 
  }
}


.page-template-blog-template::before {
  content: "";
  display: block;
  position: fixed;
  left: calc(50% - 24px);
  top: calc(50% - 24px);
  width: 48px;
  height: 48px;
  border: 5px solid #FFF;
  border-bottom-color: var(--yellow);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  z-index: 11;
}

@keyframes rotation {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
} 

.page-template-blog-template.show::before {
  content: "";
  display: none;
}

@media screen and (max-width: 768px) {
  .page-template-blog-template .blog-wrapper .blog-small-posts,
  .page-template-blog-template .newsletter-wrapper,
  .page-template-blog-template img {
    display: none !important;
  }

  .page-template-blog-template.show .blog-wrapper .blog-small-posts {
    display: flex !important;
  }

  .page-template-blog-template img,
  .page-template-blog-template.show .newsletter-wrapper {
    display: block !important;
  }
}

@media screen and (max-width: 1279px) {
  .page-template-blog-template.show .blog-wrapper .blog-small-posts {
    max-width: 100%;
  }
}

#horizontall-wrapper .blog-small-posts--all .latest-post-selection {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  /* justify-content: space-between; */
  justify-content: flex-start;
  height: 100%;
  margin-top: 0;
  padding: 0;
}

#horizontall-wrapper .blog-small-posts--all ul.latest-post-selection {
	margin-left: 0;
  margin-bottom: 0;
}

@media screen and (min-width: 1280px) {
  #horizontall-wrapper .blog-small-posts--all .latest-post-selection {
    /* grid-gap: 0; */
    grid-gap: 35px;
  }

  #horizontall-wrapper .blog-small-posts--all.ajax-load-more-wrap {
    padding-top: 50px;
    /* padding-bottom: 20px; */
    padding-left: 10px;
  }
}

@media screen and (min-width: 1440px) {
  #horizontall-wrapper .blog-small-posts--all.ajax-load-more-wrap {
    padding-top: 69px;
    /* padding-bottom: 60px; */
  }
}

@media screen and (min-width: 1600px) {
  #horizontall-wrapper .blog-small-posts--all.ajax-load-more-wrap {
    padding-top: 90px;
    /* padding-bottom: 40px; */
  }
}

.alm-btn-wrap {
  display: none !important;
}

#horizontall-wrapper .blog-small-posts--all .latest-post-selection .post:nth-child(-n+3) {
  display: none;
}

.blog-wrapper .section-title {
  margin: 0 0 14px;
}

@media screen and (min-width: 1024px) {
  .blog-wrapper .section-title {
    margin: 0 0 14px;
    position: absolute;
  }
}

/*--------------------------------------------------------------
# Blog main post
--------------------------------------------------------------*/

.blog-main-post-content {
  /* position: relative; */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.blog-main-post .lps-taxonomy.category {
  display: none;
}

.blog-main-post .latest-post-selection .post {
  position: relative;
  display: flex;
  /* justify-content: space-between; */
  flex-direction: column;
  height: auto;
  padding: 0 !important;
  background: transparent;

  padding-top: 0 !important;
}

@media (min-width: 768px) {
  .blog-main-post .latest-post-selection .post {
    padding: 0 !important;
  }
}

.blog-main-post .latest-post-selection img {
  object-fit: cover;
  max-width: 100%;
  width: 100%;
  height: 100%;
  margin-right: 0;
}

.blog-main-post .latest-post-selection .article__info,
.blog-small-posts .latest-post-selection .article__info {
  padding: 0;
  display: block;
  position: static;
}

.blog-main-post .latest-post-selection .article__info {
  margin-top: 10px;
}

.blog-small-posts .latest-post-selection .article__info {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .blog-small-posts .latest-post-selection .article__info {
    width: calc(100% - 30vh);
  }
}

@media screen and (min-width: 1600px) {
  .blog-small-posts .latest-post-selection .article__info {
    width: calc(100% - 35vh);
  }
}

.blog-main-post .latest-post-selection .article__info p,
.blog-small-posts .latest-post-selection .article__info .item-text {
  height: 100%;
}

@media screen and (min-width: 768px) {
  .blog-main-post .latest-post-selection .article__info p::before,
  .blog-small-posts .latest-post-selection .article__info p::after {
    content: "";
    display: block;
    width: calc(100% - 30vh);
    height: 60px;
  
    position: absolute;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%);
  }
}

@media screen and (min-width: 1600px) {
  .blog-small-posts .latest-post-selection .article__info p::after {
    width: calc(100% - 35vh);
  }
}

.blog-main-post .latest-post-selection .article__info p::before {
  width: 100%;
}

/* .blog-main-post .latest-post-selection .article__info p::after {
  content: "See more";
  margin-left: 10px;
  color: var(--yellow);
  text-decoration: underline;
} */

.blog-small-posts .latest-post-selection .article__info .main-link {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  min-width: 100%;
  height: 100%;
  opacity: 0;
  background-color: transparent;
  outline: none;
  z-index: 1;
}

.home-page .blog-main-post .latest-post-selection .article__image {
  min-width: 100%;
  display: block;
}

.home-page .blog-main-post .latest-post-selection img {
  object-fit: cover;
  position: static;
}

@media screen and (min-width: 1280px) {
  .blog-main-post .latest-post-selection img {
    height: calc(100% - (100%/3) - 10px);
    max-height: unset;
  }
}

.blog-main-post .latest-post-selection .article__image {
  max-height: 230px;
}

@media screen and (min-width: 768px) {
  .blog-main-post .latest-post-selection .article__image {
    max-height: 400px;
  }
}

@media screen and (min-width: 1280px) {
  .blog-main-post .latest-post-selection .article__image {
    max-height: unset;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1600px) {
  .blog-main-post .latest-post-selection .article__image {
    height: calc(100% - (100%/3) + 50px);
  }
}

@media screen and (min-width: 1600px) {
  .blog-main-post .latest-post-selection .article__image {
    height: calc(100% - (100%/3) + 35px);
  }
}

.blog-main-post .category .lps-taxonomy {
  display: none;
}

.blog-main-post .category a,
#content #horizontall-wrapper .blog-main-post .category a {
  text-transform: uppercase;
  pointer-events: none;
  font-size: 14px;
}

.blog-main-post .tags::before {
  display: none;
}

.blog-main-post .lps-tags-wrap {
  position: relative;
  color: #484848;
  pointer-events: none;

  display: block;
  text-align: right;
  /* padding-right: 184px; */
  text-align: left;
  font-size: 14px;
}

.blog-main-post .lps-tags-wrap > span {
  color: #9E9E9E;
}

.lps-taxonomy.post_tag.tags {
  display: none;
}

.blog-main-post .item-date {
  display: block;
  font-style: normal;
  position: relative;
  right: 0;
  top: 0;
  margin: 0 0;
  font-size: 14px;
}

@media screen and (min-width: 1024px) {
  .blog-main-post .item-date {
    position: static;
    margin: -24px 0 0 !important;
    text-align: right;
  }  
}

@media screen and (min-width: 1024px) and (max-width: 1024px) {
  .blog-main-post .item-date {
    position: static;
    margin-top: 0;
    transform: translateY(21px);

    display: block;
    font-style: normal;
  }
}

.blog-main-post .item-date:before {
  content: "Posted:";
  color: #9E9E9E;
  margin-right: 5px;
}

.blog-main-post  .item-date i {
  display: none;
}

#horizontall-wrapper.blog-wrapper h2.item-title-tag {
  font-size: 16px !important;
  font-weight: 600;
}

@media screen and (min-width: 1440px) {
  #horizontall-wrapper.blog-wrapper h2.item-title-tag {
    font-size: 18px !important;
  }
}

#horizontall-wrapper.home-page .blog-main-post h2.item-title-tag,
#horizontall-wrapper.blog-wrapper .blog-main-post h2.item-title-tag {
  font-size: 18px !important;
  line-height: 20px !important;
  text-transform: uppercase !important;
  margin: 10px 0 !important;
  white-space: normal !important;
  order: 1;
}

@media screen and (min-width: 1280px) {
  #horizontall-wrapper.home-page .blog-main-post h2.item-title-tag,
  #horizontall-wrapper.blog-wrapper .blog-main-post h2.item-title-tag {
    margin: 10px 0 0;
  }
}

@media screen and (min-width: 1441px) {
  #horizontall-wrapper.home-page .blog-main-post h2.item-title-tag,
  #horizontall-wrapper.blog-wrapper .blog-main-post h2.item-title-tag {
    margin: 10px 0;
  }
}

@media screen and (min-width: 1600px) {
  #horizontall-wrapper.home-page .blog-main-post h2.item-title-tag,
  #horizontall-wrapper.blog-wrapper .blog-main-post h2.item-title-tag {
    font-size: 20px !important;
  }
}

.blog-main-post .blog-main-post-content > p {
  display: block; 
  word-break: break-word;
  white-space: break-spaces;
  order: 2;
  margin-bottom: 0;
  font-size: 14px;
}

@media screen and (min-width: 1280px) {
  .blog-main-post .blog-main-post-content > p {
    max-height: 70px;
  }
}

@media screen and (min-width: 1440px) {
  .blog-main-post .blog-main-post-content > p {
    font-size: 16px;
  }
}
.blog-main-post .read-more .main-link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: unset;
  display: block;
  opacity: 0;
  float: none;
  z-index: 1;
}

.blog-main-post .read-more .main-link:before {
  display: none !important;
}

@media screen and (max-width: 1024px) {

  .blog-main-post-content span.category {
    order: 0;
  }

  .blog-main-post .lps-tags-wrap {
    right: 0;
    order: 1;
  }

  .blog-main-post .lps-tags-wrap .tags a {
    padding: 0;
    text-align: left;
  }

  .blog-main-post  .item-title-tag {
    order: 3;
  }

  .blog-main-post  .blog-main-post-content > p {
    order: 4;
  }
}

.latest-post-selection article a:not(.main-link) {
  font-size: 14px !important;
}

/*--------------------------------------------------------------
# Blog small posts 
--------------------------------------------------------------*/

.blog-small-posts .latest-post-selection {
  display: block;
  padding-right: 0;
}

@media screen and (min-width: 1024px) {
  .blog-small-posts .latest-post-selection {
    display: flex;
    /* padding-right: 64px; */
  }
}

#horizontall-wrapper .blog-small-posts .latest-post-selection .post {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0 0 40px;
  padding-top: 0;
  height: auto;
  background: transparent;
  outline: none;
  overflow: hidden;
}

@media screen and (min-width: 768px) {

  #horizontall-wrapper .blog-small-posts .latest-post-selection .post {
    width: 100%;    
    max-height: 136px;
    flex-direction: row;
    /* padding: 0 0 0 280px; */
  }
}

@media screen and (min-width: 1024px) {

  #horizontall-wrapper .blog-small-posts .latest-post-selection .post {
    width: 100%;    
    height: calc((100%/3) - 25px);
    max-height: unset;
    /* padding: 0 0 0 280px; */
  }
}

@media screen and (min-width: 1280px) {

  #horizontall-wrapper .blog-small-posts .latest-post-selection .post {
    margin: 0;
  }
}

@media screen and (min-width: 1280px) {
  #horizontall-wrapper .blog-small-posts--all .latest-post-selection .alm-item {
    min-width: 556px;
  }
}

@media screen and (min-width: 1440px) {
  #horizontall-wrapper .blog-small-posts--all .latest-post-selection .alm-item {
    min-width: 840px;
  }
}

@media screen and (min-width: 1280px) {
  #horizontall-wrapper .blog-small-posts--all .latest-post-selection .post {
    width: calc(50% - 30px);
    margin-right: 30px;
  }
}

.blog-small-posts .latest-post-selection figure.article__image {
  display: block;
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-bottom: 10px !important;
  margin-top: 0;

  aspect-ratio: unset;
}

@media screen and (min-width: 550px) {
  .blog-small-posts .latest-post-selection figure.article__image {
    max-height: 200px;
  }
}

@media screen and (min-width: 768px) {
  
  .blog-small-posts .latest-post-selection figure.article__image {
    /* position: absolute !important;
    left: 0;
    width: 260px; */
    width: 100%;
    max-width: 30vh;
    max-height: unset;
    margin-bottom: 0 !important;
    margin-right: 10px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1279px) {
  .blog-small-posts .latest-post-selection figure.article__image {
    max-height: 136px;
  }
}

@media screen and (min-width: 1600px) {

  .blog-small-posts .latest-post-selection figure.article__image {
    max-width: 35vh;
  }
}

.blog-small-posts .latest-post-selection figure.article__image img {
  height: 100%;
  width: 100%;
  /* object-fit: cover; */
  object-fit: contain;
  object-position: left top;
  position: static;
}

@media screen and (min-width: 550px) {
  .blog-small-posts .latest-post-selection figure.article__image img {
    height: auto;
    width: auto;
  }
}

@media screen and (min-width: 768px) {
  .blog-small-posts .latest-post-selection figure.article__image img {
    height: 100%;
    width: 100%;
  }
}

.blog-small-posts .latest-post-selection .category,
.blog-small-posts .latest-post-selection .lps-tags-wrap,
.blog-small-posts .latest-post-selection .item-date {
  font-size: 14px;
}


.blog-small-posts .latest-post-selection .category:not(.lps-taxonomy-wrap) {
  display: inline-block;
  width: auto;
  order: 1;

  position: absolute;
  left: 5px;
  top: 5px;
  background-color: var(--yellow);
  line-height: 1;
  padding: 2px 5px;
  border-radius: 2px;
}

.blog-small-posts .latest-post-selection .item-date,
.blog-small-posts .latest-post-selection .lps-tags-wrap {
  order: 2;
}

/* @media screen and (min-width: 1280px) {
  .blog-small-posts .latest-post-selection .lps-tags-wrap {
    text-align: right;
    margin-top: -25px;
  }
} */

.blog-small-posts .latest-post-selection .item-title-tag,
.blog-small-posts .latest-post-selection .post p {
  order: 3;
  white-space: break-spaces;
}

.blog-small-posts .latest-post-selection .item-text,
.blog-small-posts .latest-post-selection .read-more {
  order: 4;
}

.blog-small-posts .latest-post-selection .read-more a {
  opacity: 0;
}

.blog-small-posts .latest-post-selection .category .lps-taxonomy {
  display: none;
}

.blog-main-post .category a,
#content #horizontall-wrapper .blog-main-post .category,
#content #horizontall-wrapper .blog-small-posts .latest-post-selection .category,
.blog-small-posts .latest-post-selection .category {
  text-transform: uppercase;
  color: var(--white) !important;
  pointer-events: none;
  font-weight: 600;
}

.blog-small-posts .latest-post-selection .lps-tags-wrap .tags::before {
  display: none;
}

.blog-small-posts .latest-post-selection .lps-tags-wrap {
  position: relative;
  color: #484848;
  pointer-events: none;

  display: block;
  /* padding-right: 175px; */
  text-align: left;
}

.blog-small-posts .latest-post-selection .lps-tags-wrap,
.blog-main-post .latest-post-selection .lps-terms.post_tag,
.blog-small-posts .latest-post-selection .lps-terms.post_tag {
  color: #1D173D;
}

.blog-small-posts .latest-post-selection .lps-tags-wrap  > span,
.blog-main-post .latest-post-selection .lps-terms.post_tag > span,
.blog-small-posts .latest-post-selection .lps-terms.post_tag > span {
  color: #9E9E9E;
}

.blog-small-posts .latest-post-selection .item-date {
  font-style: normal;
}

@media screen and (min-width: 1024px) {
  .blog-small-posts .latest-post-selection .item-date {
    text-align: right;
    margin-top: -21px !important;
  }
}

.blog-small-posts .latest-post-selection .item-date:before {
  content: "Posted:";
  color: #9E9E9E;
  margin-right: 5px;
}

.blog-small-posts .latest-post-selection .item-date i {
  display: none;
}


#horizontall-wrapper .blog-small-posts .latest-post-selection .item-title-tag {
  display: flex;
  align-items: flex-end;
  height: 38px;
  font-size: 16px !important;
  line-height: 20px;
  text-transform: uppercase !important;
  margin: 6px 0 !important;
  /* display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden; */

  white-space: normal;
  font-weight: 600;
  /* position: absolute;
  top: 0; */
}

@media (min-width: 768px) {
  .blog-small-posts .latest-post-selection .category:not(.lps-taxonomy-wrap) {
    top: 5px;
  }

  #horizontall-wrapper .blog-small-posts .latest-post-selection .post { 
    padding-top: 0;
  }

  #horizontall-wrapper .blog-small-posts .latest-post-selection .item-title-tag {
    position: static;
    height: auto;
  }
}

.blog-small-posts .latest-post-selection .alm-item .item-title-tag {
  display: flex;
	overflow: visible;
}

.blog-small-posts .latest-post-selection .alm-item .item-title-tag a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #1D173D;
}

@media screen and (min-width: 1367px) {
  
  .blog-small-posts .latest-post-selection .item-title-tag {
    font-size: 20px;
    line-height: 28px;
  }
}

.blog-small-posts .latest-post-selection .post p {
  white-space: normal;
  margin: 0 0 10px;
  display: block;
  font-size: 14px;
  line-height: 18px;
}

/* @media screen and (min-width: 1280px) {
  .blog-small-posts .latest-post-selection .post p {
    display: none;
  }
} */

@media screen and (min-width: 1600px) {
  
  .blog-small-posts .latest-post-selection .post p {
    /* display: block; */
    /* font-size: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden; */
  }
}

@media screen and (max-width: 1440px) and (min-width: 1280px) {
  
  .blog-small-posts .latest-post-selection .post > p {
    display: none;
  }
}

.blog-small-posts .latest-post-selection .read-more {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.blog-small-posts .latest-post-selection .read-more:hover,
.blog-small-posts .latest-post-selection .read-more:focus {
  outline: none;
}

.blog-small-posts .latest-post-selection .read-more a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-small-posts .latest-post-selection .alm-item .post-link-mobile::before,
.blog-small-posts .latest-post-selection .alm-item .item-title-tag a::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 11;
}

@media screen and (min-width: 1280px) {
  .blog-small-posts .latest-post-selection .alm-item .post-link-mobile::before {
    display: none;
  }
}

.blog-small-posts.blog-small-posts--all .post:first-of-type {
  display: flex;
}

@media screen and (min-width: 1024px) {
  .blog-small-posts.blog-small-posts--all .post:last-of-type {
    padding-right: 64px;
  }
}

.page-template-blog-template #page > .footer {
  position: static;
  padding: 0px 15px 15px 15px;
}


.page-template-blog-template #page > .footer .footer-item:last-child {
  display: none;
}

@media only screen and (min-width: 768px) {
  .page-template-blog-template #page > .footer {
    padding: 15px;
  }
}

@media only screen and (min-width: 782px) {
  .page-template-blog-template #page > .footer {
    padding: 0px 0 15px 64px;
  }
}

@media only screen and (min-width: 1280px) {
  .page-template-blog-template #page > .footer {
    position: fixed;
    padding: 0 64px 15px 64px;
  }

  .page-template-blog-template #page > .footer .footer-item:last-child {
    display: flex;
  }
}

/* main.js - Fix bug on blog pages with search input and ajax posts */
/* @media only screen and (max-width: 767px) {
  .blog-wrapper .wp-block-columns.blog-items {
    visibility: hidden;
  }
} */


  /* [ajax_load_more post_type="post" scroll="true" pause="true" pause_override="true" wrapper_classes="blog-small-posts blog-small-posts--all wp-block-latest-post-shortcode-lps-block" scroll_distance="-200" scroll_direction="horizontal" ]


[ajax_load_more post_type="post" posts_per_page="6" button_label="Load More", scroll_distance="-200" scroll_direction="horizontal" wrapper_classes="blog-small-posts blog-small-posts--all wp-block-latest-post-shortcode-lps-block"] */

/*--------------------------------------------------------------
# Blog on Home page
--------------------------------------------------------------*/

#horizontall-wrapper.home-page .wp-block-columns.blog-wrapper:last-child {
  margin-right: 0;
  padding: 40px 15px 0;
  height: auto;
}

@media screen and (min-width: 1200px) {
  #horizontall-wrapper.home-page .wp-block-columns.blog-wrapper:last-child {
    padding: 80px 15px 0;
  }
}

@media screen and (min-width: 1280px) {
  #horizontall-wrapper.home-page .wp-block-columns.blog-wrapper:last-child {
    padding: 85px 64px 45px 64px;
    margin-bottom: 0 !important;
    max-height: 100vh;
    height: 100vh;
  }
}

@media screen and (min-width: 1440px) {
  #horizontall-wrapper.home-page .wp-block-columns.blog-wrapper:last-child {
    padding: 85px 64px 64px 64px;
  }
}

@media screen and (min-width: 1600px) {
  #horizontall-wrapper.home-page .wp-block-columns.blog-wrapper:last-child {
    padding: 85px 64px 90px 64px;
  }
}

#horizontall-wrapper.home-page .blog-nav {
  position: static;
  margin: 24px 0 0 auto;
}

@media screen and (min-width: 1280px) {
  #horizontall-wrapper.home-page .blog-nav {
    margin: -20px 0 0 auto;
  }  
}

@media screen and (min-width: 1600px) {
  #horizontall-wrapper.home-page .blog-nav {
    margin: 19px 0 0 auto;
  }  
}

.blog-wrapper-row {
  height: auto;
}

@media screen and (min-width: 1280px) {
  .blog-wrapper-row {
    height: 100%;
  }
}

.blog-wrapper-row-homepage {
  margin-top: 0;
  padding-top: 40px;
}

@media screen and (min-width: 768px) {
  .blog-wrapper-row-homepage {
    padding-top: 0;
  }
}

@media screen and (min-width: 1280px) {

  .blog-wrapper-row-homepage {
    height: calc(100% - 55px);
  }
}

@media screen and (min-width: 1600px) {

  .blog-wrapper-row-homepage {
    height: calc(100% - 80px);
  }
}

.home-page .blog-wrapper-row .wp-block-group__inner-container {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .home-page .blog-wrapper-row .wp-block-group__inner-container {
    padding-top: 38px;
  }
}

@media screen and (min-width: 1280px) {
  .home-page .blog-wrapper-row .wp-block-group__inner-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 20px;
    /* padding-bottom: 20px; */
    height: 100%;
  }
}

.blog-wrapper-row .wp-block-group__inner-container {
  height: 100%;
  padding-top: 10px;
  /* padding-bottom: 20px; */
  margin-bottom: 0;
}

@media screen and (min-width: 860px) {
  .blog-wrapper-row .wp-block-group__inner-container {
    padding-top: 50px;
  }
}

@media screen and (min-width: 1280px) {
  .blog-wrapper-row .wp-block-group__inner-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media screen and (min-width: 1440px) {
  .blog-wrapper-row .wp-block-group__inner-container {
    padding-top: 69px;
    /* padding-bottom: 60px; */
  }
}

@media screen and (min-width: 1600px) {
  .blog-wrapper-row .wp-block-group__inner-container {
    padding-top: 90px;
    /* padding-bottom: 40px; */
  }
}

.blog-wrapper-row .blog-main-post,
.blog-wrapper-row .blog-main-post > div,
.blog-wrapper-row .blog-main-post > div section,
.blog-wrapper-row .blog-small-posts {
  max-width: 100%;
  width: 100%;
  height: auto;
}

@media screen and (min-width: 1280px) {
  .blog-wrapper-row .blog-main-post,
  .blog-wrapper-row .blog-main-post > div,
  .blog-wrapper-row .blog-main-post > div section,
  .blog-wrapper-row .blog-small-posts {
    height: 100%;
  }

  .blog-wrapper-row .blog-main-post,
  .blog-wrapper-row .blog-small-posts {
    max-width: calc(50% - 10px);
  }
}

@media screen and (min-width: 1440px) {
  .blog-wrapper-row .blog-main-post,
  .blog-wrapper-row .blog-small-posts {
    max-width: calc(50% - 20px);
  }
}

.blog-wrapper-row .blog-main-post .latest-post-selection .post {
  margin-bottom: 40px;
}

@media screen and (min-width: 1280px) {
  .blog-wrapper-row .blog-main-post .latest-post-selection .post {
    margin-bottom: 0;
  }
}

.blog-wrapper-row .blog-small-posts .latest-post-selection {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* justify-content: space-between; */
  justify-content: flex-start;
  height: 100%;
}

@media screen and (min-width: 1280px) {
  .blog-wrapper-row .blog-small-posts .latest-post-selection {
    gap: 35px;
  }
}


@media screen and (max-width: 767px) {
  #horizontall-wrapper.home-page .blog-small-posts .latest-post-selection .post {
    margin-bottom: 30px;
  }
}

.home-page .blog-wrapper .blog-small-posts {
  display: block;
  align-self: stretch;
}

.home-page .blog-wrapper .blog-small-posts > div {
  width: 100%;
  height: 100%;
  max-width: unset;
}

/* @media screen and (min-width: 768px) {
  .home-page .blog-wrapper .blog-small-posts {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .home-page .blog-wrapper .blog-small-posts {
    display: block;
  }
} */

.home-page .blog-main-post .blog-main-post-content > p {
  display: block; 
  margin-bottom: 0;
  order: 2;
}

.blog-main-post-content .category {
  display: inline-block;
  width: auto;
  order: 1;
  position: absolute;
  left: 5px;
  top: 5px;
  background-color: var(--yellow);
  line-height: 1;
  padding: 2px 5px;
  border-radius: 2px;
}

#horizontall-wrapper.home-page .blog-main-post h2.item-title-tag, 
#horizontall-wrapper.blog-wrapper .blog-main-post h2.item-title-tag {
  display: flex;
  align-items: flex-end;
  font-weight: 600;
}

@media (min-width: 768px) {
  .blog-main-post-content .category { 
    top: 5px;
  }

  #horizontall-wrapper.home-page .blog-main-post h2.item-title-tag, 
  #horizontall-wrapper.blog-wrapper .blog-main-post h2.item-title-tag {
    display: block;
    height: auto;
    position: static;
  } 
}


/*--------------------------------------------------------------
# Reset Latest posts plugin default styles
--------------------------------------------------------------*/


/* .latest-post-selection:not(.ver2):not(.pages) .lps-tile-main-image {
  position: absolute !important;
  z-index: 10
} */


/*--------------------------------------------------------------
# Blog search result posts 
--------------------------------------------------------------*/

#horizontall-wrapper.search .entry-content {
  display: block;
}

@media screen and (min-width: 1280px) {
  #horizontall-wrapper.search .entry-content {
    margin-right: 64px;
  }
}

#horizontall-wrapper.search .search-post-header {
  padding: 80px 15px 40px 15px;
}

@media screen and (min-width: 1280px) {
  #horizontall-wrapper.search .search-post-header {
    padding: 80px 64px 0 64px;
    position: fixed;
  }
}

#horizontall-wrapper.search .search-post-header .page-title {
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

@media screen and (min-width: 1600px) {
  #horizontall-wrapper.search .search-post-header .page-title {
    font-size: 56px;
  }  
}

#horizontall-wrapper.search .search-post-header .page-title span {
  text-transform: none;
}

#horizontall-wrapper .search-post-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  /* height: calc(100% - 260px); */
  margin-top: 0;
  gap: 20px;
  padding: 15px 15px 64px 15px;
}


@media screen and (min-width: 1280px) {
  #horizontall-wrapper .search-post-wrapper {
    padding: 140px 64px 80px 64px;
    height: 100vh;
  }
}

@media screen and (min-width: 1600px) {
  #horizontall-wrapper .search-post-wrapper {
    padding: 200px 64px 80px 64px;
  }
}

.search-post {

}

@media screen and (min-width: 1280px) {
  .search-post {
    width: 50%;
    height: calc((100%/3) - 20px);
    margin-right: 44px;
  }
}

.search-post .post {
  position: relative;
  padding: 0 !important;
  height: 100%;
}

@media screen and (min-width: 1024px) {
  .search-post .post {
    display: flex;
    justify-content: space-between;
  }
}

.search-post .search-post-img {
  height: 100%;
  /* height: 25vh; */
  max-width: 100%;
  margin-right: 0;
}

@media screen and (min-width: 1024px) {

  .search-post .search-post-img {
    width: 40%;
  }
}

.search-post .search-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.search-post .search-post-content {

}

@media screen and (min-width: 1024px) {
  .search-post .search-post-content {
    width: 60%;
    padding-left: 20px;
  }
}

.search-post .search-post-category {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.search-post .search-post-category .posted-on a {
  color: #1D173D;
  font-size: 14px;
}

.search-post .posted-on a:before {
  content: "Posted:";
  color: #9E9E9E;
  margin-right: 5px;
}

.search-post .cat-links {
  margin: 0 !important;
}

.search-post .cat-links a {
  font-size: 14px !important;
}

.search-post .byline {
  display: none;
}

.search-post .post-meta {
  font-size: 14px;
}

.search-post .search-post-title {
  font-size: 18px !important;
  line-height: 1.2;
  text-transform: uppercase !important;
  margin: 6px 0 !important;
  padding-top: 0 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: break-spaces;
}

@media screen and (min-width: 1367px) {
  
  .search-post .search-post-title {
    font-size: 20px;
    line-height: 28px;
  }
}

.search-post .search-post-title a {
  color: #1D173D;
}

.search-post .search-post-title a::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 1280px) and (max-width: 1440px) {

  .search-post .search-post-description {
    display: none;
  }
}


.search-post .search-post-description > p {
  white-space: normal;
  margin: 0 0 10px;
  display: block;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: break-spaces;
}

/* .search-post .search-post-description > p:after {
  content: "See more";
  display: inline;
  text-decoration: underline;
  color: var(--yellow);
  margin-left: 5px;
} */

.search-post-wrapper .posts-navigation {
  
  margin: 0;
  z-index: 11;
  padding: 6px;
}


@media screen and (min-width: 1024px) {
  .search-post-wrapper .posts-navigation {
    padding: 20px 0;
  }
}

@media screen and (min-width: 1280px) {
  .search-post-wrapper .posts-navigation {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5px;
    padding: 20px;
  }
}

.search-post-wrapper .posts-navigation .nav-links {
  display: flex;
  justify-content: center;
}

.search-post-wrapper .posts-navigation .nav-previous,
.search-post-wrapper .posts-navigation .nav-next {
  margin: 0 20px;
  float: none;
  display: inline-block;
  width: auto;
}

@media screen and (min-width: 1280px) {
  .search-post-wrapper .posts-navigation .nav-previous,
  .search-post-wrapper .posts-navigation .nav-next {
    width: 50%;
  }
}

.search-post-wrapper .posts-navigation a {
  color: #1D173D;
}

.search-results .header-content {
  background: var(--white);
}

@media screen and (min-width: 1280px) {
  .search-results .header-content {
    background: transparent;
  }
} 

.search-results .footer {
  background: var(--white);
  padding: 12px 15px 12px 15px;
}

@media screen and (min-width: 782px) {
  .search-results .footer {
    background: transparent;
    padding: 0 64px 24px 64px;
  }
}

@media screen and (min-width: 1280px) {
  .search-results .footer {
    background: transparent;
    padding: 0 128px 24px 64px;
  }
}

.search-results .footer .footer-item:last-child {
  display: none;
}

@media screen and (min-width: 1024px) {
  .search-results .footer .footer-item:last-child {
    display: flex;
  }
}

/*--------------------------------------------------------------
# Newsletter popup
--------------------------------------------------------------*/

.newsletter-popup {
  position: fixed;
  bottom: 12px;
  left: calc(50% - 80px);
  z-index: 12;

  display: none !important;
  /* hide for now */
}

.newsletter-popup .newsletter-wrapper {
  padding: 20px !important;
  background-color: var(--white);
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 20;
}

.newsletter-popup .newsletter-overlay {
  content: "";
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.newsletter-popup .newsletter-button {
  width: 160px;
  border: 1px solid var(--yellow);
  background: none;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1;
  color: var(--yellow);
  border-radius: 0;
  padding: 8px 33px 8px 33px;
  margin: 0;
  flex-shrink: 0;
  font-weight: 500;
  transition: all .3s;
  text-align: center;
  cursor: pointer;
}

.newsletter-popup .newsletter-button:hover,
.newsletter-popup .newsletter-button:focus {
  border: 1px solid var(--yellow);
  color: var(--white);
  background: var(--yellow);
}

.blog-nav-categories .custom-dropdown-options {
  min-width: 220px;
  left: auto;
  right: 0;
}