/**
 * Theme Name:     th_23
 * Template:       twentytwentythree
 * Text Domain:	   th_23
 */

div.sticky {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
}

.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}
.alignright {
  float: right;
  margin: 0 0 20px 20px;
}
.aligncenter {
  float: none;
  margin: 0 auto;
}
.alignnone {
  float: none;
}

/* Slider global update - full link image*/
.ultp-block-title a:before {
  content:"";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
/* Global landing */
.sidebar-news .wp-block-post-template h2,
.column-news .wp-block-post-template h2 {
  min-height: 10px;
}
.sidebar-news .wp-block-post-template h2 a,
.column-news .wp-block-post-template h2 a {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
  width: 100%;
}
.landing-section-author .authors-list-item-title {
  text-align: center;
}
.landing-section-author .authors-list-item-title a {
  text-decoration: none;
}

/* Global landing categories list*/
.landing-categories-list {
  padding-top: 1em;
  width: 100%;
  overflow: hidden;
}
.landing-categories-list .postlist_item-title {
  font-size: 17px;
  font-weight: 700;
}
.landing-categories-list .postlist_item-title a {
  text-decoration: none;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.landing-categories-list .wp-block-query {
  width: 100%;
}
.landing-categories-list .wp-block-post-featured-image img {
  height: 100px;
  object-fit: cover;
  max-width: 100%;
}
.landing-categories-list .wp-block-heading,
.wp-block-group .wp-block-heading.has-text-align-center.has-large-font-size {
  display: block;
  text-align: center;
  width: initial;
  padding: 0 1em;
  line-height: 1.6em;
  border: 1px solid;
  color: #fff;
  background: conic-gradient(from 45deg at left ,var(--c) 25%,#0000 0) 0, conic-gradient(from -135deg at right,var(--c) 25%,#0000 0) 100%;
  background-size: 51% 100%;
  background-origin: border-box;
  background-repeat: no-repeat;
  border-image: linear-gradient( #0000 calc(50% - var(--b)/2), var(--c) 0 calc(50% + var(--b)/2), #0000 0) 1/0 var(--w)/calc(var(--w) + var(--g));
  margin-inline: auto;
  --w: 50vw;
  --c: #0C8487;
  --b: 4px;
  --g: -5px;
  overflow: hidden;
}
.landing-categories-list .wp-block-heading a {
  text-decoration: none;
  color: #fff;
}
.landing-categories-list .wp-block-post-author__byline {
  display: none !important;
}

/* Global landing*/
.landing-home .authors-list-items {
  width: 100%;
}
.landing-home .authors-list-items .authors-list-item:nth-child(1),
.landing-home .authors-list-items .authors-list-item:nth-child(2),
.landing-home .authors-list-items .authors-list-item:nth-child(3),
.landing-home .authors-list-items .authors-list-item:nth-child(4){
   display: block !important; 
}
.landing-home .authors-list-items .authors-list-item .authors-list-item-thumbnail {
    border-radius: 50% !important;
    overflow: hidden;
}
.landing-home .authors-list-items .authors-list-item .authors-list-item-thumbnail img {
    max-width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    width: 100%;
}

.sidebar-news .wp-block-post-template li + li,
.column-news .wp-block-post-template li + li {
  margin-block-start: 0.90rem;
}

.landing-home {
  max-width: 100%;
  overflow: hidden;
}
.landing-home iframe {
  background-color: #0C8487;
  border: 1px solid #0C8487;
  padding: 4px;
  box-sizing: border-box;
}
.landing-home .is-layout-constrained {
  overflow: hidden;
}
.landing-home .is-layout-constrained .wp-block-group {
  padding: 0;
  border: none;
}

.home {
  overflow-x: hidden;
}
.adthrive-footer-1 {
  max-width: 100vw;
  overflow: hidden;
}
/* Slider */
.landing-home  .ultp-block-image {
  height: 100%;
}

.landing-home .slick-dots {
    bottom: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25px;
    gap: 10px;
}
.landing-home .slick-dots li {
    height: 100%;
    display: flex;
    align-items: center;
}
.landing-home .slick-dots li button {
    background: #fff;
    border-radius: 50px;
    width: 20px;
    height: 20px;
    margin: 0;
    vertical-align: top;
}
.landing-home .slick-dots li.slick-active button {
    background: #0c8487;
}
.landing-home .ultp-block-title {
    font-weight: 500;
    text-decoration: none;
    font-size: 28px;
    line-height: 36px !important;
    padding: 25px 0px 12px 0px;
}
.landing-home .ultp-block-title {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.landing-home .ultp-block-title a {
    color: #fff;
}
.landing-home  .ultp-block-content-inner {
    max-width: 100%;
    padding: 20px;
}
.landing-home .ultp-block-meta {
    justify-content: flex-start;
    padding: 5px 0px 5px 0px;
}
.landing-home .ultp-block-meta span,
.landing-home .ultp-block-meta span a {
    color: #fff;
    font-size: 12px;
}
.landing-home .ultp-block-content-bottomPosition {
    align-items: flex-end;
}
.landing-home .slick-next, .slick-prev {
  display: none !important;
}
@media (max-width: 680px) {
  .landing-home  .ultp-block-content-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 168px;
  }
}

.landing-home .authors-list-item br {
  display: none;
}
.landing-home .authors-list-item p,
.landing-home .authors-list-items p {
  margin: 0 !important;
}
.landing-home .authors-list-items > p {
  display: none !important;
}
@media (min-width: 768px) {
  .landing-home .authors-list-items {
    display: flex;
    justify-content: center;
    margin: 0 -10px;
  }
  .landing-home .authors-list-item {
    margin: 0 10px 30px !important;
  }
}

/* Subscribe global */
.subscribe-section p:empty,
.subscribe-section br {
  display: none !important;
}

/* TOC global */
.lwptoc_toggle br {
  display: none !important;
}

/* CLS */
.landing-home .ultp-block-slider-wrap .ultp-block-content-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: none;
  box-sizing: border-box;
}
.landing-home .ultp-block-meta span.ultp-block-author a {
  transition: none;
  animation: none;
}
.landing-home .ultp-block-meta {
  min-height: 20px;
  display: block;
}
.landing-home .slick-slider {
  height: 550px;
  max-height: 550px;
}
.landing-home .slick-slider .ultp-block-content-bottomPosition {
  width: 100%;
  height: 100%;
  min-height: 550px;
  max-height: 550px;
  min-width: 342px;
  position: static !important;
}
.landing-home .slick-slider .ultp-block-image-inner {
  z-index: -1 !important;
}
.landing-home .slick-list {
  overflow: hidden;
}
.landing-home .sidebar-news figure,
.landing-home .column-news figure {
  height: 59px;
  overflow: hidden;
}
.landing-home .top-section-news,
.landing-home .top-section-news > .wp-block-columns > .wp-block-column {
  min-height: 550px;
}
.landing-home .wp-block-column.highlight-list {
  max-height: 550px;
  overflow: hidden;
}
@media (min-width: 680px) {
  .landing-home .ultp-block-slider-wrap .ultp-block-content-inner {
    height: 100%;
    width: 100%;
  }
}
.landing-home .ultp-block-image.ultp-block-image-overlay.ultp-block-image-default>a:before {
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  width: 100% !important;
  display: none !important
}
.landing-home .ultp-block-image {
  background: #000 !important;
}
.landing-home .ultp-block-image img {
  opacity: 0.5 !important;
}
.ultp-block-title a:before {
  display: none !important;
}

/* New global footer */
.footer-tpl {
  background: #323232;
  color: #fff;
  line-height: 1.2;
  font-size: 1rem;
}
  .footer-tpl a {
      color: #fff;
  }
  .footer-tpl .wp-block-heading {
      font-size: 2rem !important;
  }
  .footer-tpl .wp-element-button {
      color: #fff;
  }
  .footer-tpl #mc-embedded-subscribe-form input[type="email"] {
      border-radius: 10px !important;
      border-color: #fff;
      background: none;
      color: #fff;
  }
  .footer-tpl #mc-embedded-subscribe-form input[type="submit"] {
    display: none;
  }
  .footer-tpl a[aria-label="TreasureHunter"] {
    display: block;
    text-align: center;
  }

  .footer-tpl .wp-block-navigation__container {
    flex-direction: column;
    gap: 5px;
    font-size: 2rem;
  }
    .footer-tpl .wp-block-navigation__container li {
        width: 100%;
    }
    .footer-tpl .wp-block-navigation__responsive-container-open {
      filter: invert(0) !important;
    }
    .footer-tpl .wp-block-navigation__responsive-container-open:after {
      color: #000;
    }
    .footer-tpl .wp-block-navigation__container .wp-block-navigation-submenu__toggle {
        display: none;
    }
    @media (min-width: 600px) {
      .footer-tpl .wp-block-navigation__container .has-child .wp-block-navigation-submenu {
        display: none;
      }
    }

  .copyright-tpl {
    border-top: 1px solid #2d2d2d;
    padding: 1em 0;
    font-size: 1rem;
  }

/* New contact global */
.contact-content + .wpml-ls {
  display: none !important;
}
.contact-info .wp-block-button__link {
  height: 282px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: min(max(1.5rem, calc(1.5rem + ((1vw - 0.64rem) * 1.3393))), 2.25rem);
  min-height: 0vw;
  line-height: 1.1;
  font-weight: bold;
  color: #fff;
  border-radius: 50% !important;
  flex-direction: column;
}
.contact-info .wp-block-button__link em {
  display: block;
  font-size: 1rem;
  margin-top: 15px;
  font-weight: normal;
}

/* New author list */
.author_item {
  background: #31a61d;
  margin: 2.5em 0;
  padding: 2em 2em 1em;
}
  .author_item .item_info {
      display: flex;
      align-items: center;
      margin: 0 0 1em;
  }
  .author_item .item_bio {
      color: #fff;
      font-size: 0.8em;
      margin: 0 0 1em;
  }
  .author_item .item_bio a {
    color: #fff !important;
  }
  .author_item .item_bio ul,
  .author_item .item_bio ol {
    padding-left: 17px !important;
    list-style-type: none;
    border-left: 1px solid #fff;
  }
  .author_item .item_bio ul li,
  .author_item .item_bio ol li{
    margin: 0.5em 0;
  }
  .author_item div.avatar {
      width: 150px;
      height: 150px;
      min-width: 150px;
      overflow: hidden;
      border-radius: 50%;
      margin-right: 1em
  }
  .author_item div.avatar img {
      object-fit: cover;
      height: 100%;
      width: 100%;
  }
  .author_item .name > a {
      background: #000;
      color: #fff;
      text-decoration: none;
      display: inline-block;
      font-size: min(max(1.5rem, calc(1.5rem + ((1vw - 0.64rem) * 1.3393))), 2.25rem);
      min-height: 0vw;
      font-weight: bold;
      padding: 2px 5px;
      margin: 0 0 5px;
      line-height: 1.2;
  }
  .author_item .name > span {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
  }
  .author_item .name ul {
      list-style-type: none;
      padding: 0 !important;
      margin: 0;
      display: flex;
      gap: 5px;
  }
  .author_item .name ul li a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      background: #000;
      border-radius: 5px;
  }
  .author_item .name ul li a img {
    filter: invert(1);
    max-width: 80%;
  }
  .author_item .gallery-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
  }
  .author_item .gallery-list_item {
      width: calc(50% - 5px); 
      overflow: hidden;
      position: relative;
  }
  .author_item .gallery-list_item:before {
      content: "";
      padding-top: 100%;
      display: block;
  }
  .author_item .gallery-list_item a {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      pointer-events: default;
  }
  .author_item .gallery-list_item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
@media (min-width: 768px) {
  .author_item {
      display: flex;
      justify-content: space-between;
  }
  .author-item_content {
      width: 60%;
  }
  .author-item_gallery {
      width: 35%;
  }
}


.author_item:nth-child(even) .author-item_content {
  order: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.author_item:nth-child(even) .author-item_content ul,
.author_item:nth-child(even) .author-item_content ol {
  padding-lefT: 0;
  list-style-type: none;
  border-left: none;
  border-right: 1px solid #fff;
  padding-right: 17px;
}
.author_item:nth-child(even) .item_info div.avatar {
  order: 1;
  margin-right: 0;
  margin-left: 1em;
}
.author_item:nth-child(even) .name ul {
  justify-content: flex-end;
  border: none;
}

.footer-tpl .wp-block-heading strong {
  font-weight: bold;
  color: #fff !important;
}
.footer-tpl .ml-subscribe-form form {
  display: flex;
}
.footer-tpl .ml-subscribe-form form button[type="submit"] {
  white-space: nowrap;
  padding: 0 10px;
  height: 42px;
  text-transform: none;
  font-size: 12px;
  border-radius: 0 10px 10px 0;
}
.footer-tpl .ml-subscribe-form form input[type="email"] {
  height: 40px;
  background: none;
  border: 1px solid #fff;
  border-radius: 10px 0 0 10px;
  color: #fff;
  padding: 0 10px
}
.footer-tpl .wp-block-column nav ul {
  font-weight: bold;
}
.footer-tpl .copyright-tpl nav ul {
  font-size: 16px;
  display: flex;
  flex-direction: row;
  gap: 15px
}
.footer-tpl .copyright-tpl nav ul li {
  width: auto;
}

/* Commerce template */
.commerce-content {
  margin: 4em 0 !important;
}
.commerce-content h2,
.commerce-content h3,
.commerce-content h4 {
  font-weight: bold;
}
.authorbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 50px;
  background-color: #f1f1f1;
  padding: 3em 1em;
  overflow: hidden;
  position: relative;
}
.authorbox .author-avatar {
  margin-bottom: 1em;
  overflow: hidden;
  border-radius: 50%;
  width: 250px;
  height: 250px;
}
.authorbox .author-avatar img {
  width: 250px;
  height: 250px;
  object-fit: cover;
}
.authorbox .author-content {
  max-width: 650px;
}
.authorbox .author-content .author-name{
  text-decoration: none;
  font-weight: bold;
  font-size: 2rem;
}
.products .products-image {
  overflow: hidden;
  background: #f1f1f1;
  border-radius: 50px;
  height: 250px;
  margin-bottom: 1em;
}
.products .products-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.products .products-name,
.products .products-brands {
  margin: 0 0 0.2em;
  font-size: 1.5em;
  font-weight: bold;
}
.products .products-brands {
  font-size: 1em;
  display: block;
}
.products-ratings {
  margin: 1em 0 2em;
}
.products-ratings > span {
  display: block;
  line-height: 1.4;
}
.products .button,
.products-item > a {
  display: block;
  text-decoration: none;
  padding: 0.5em;
  background: #f1f1f1;
  text-align: center;
  border-radius: 10px;
}
.commerce-content > article {
  margin-bottom: 2em;
  border-top: 1px solid #f1f1f1;
  padding-top: 2em;
  margin-top: 2em;
}
.commerce-content > article .product-image {
  border: 1px solid #f1f1f1;
  box-sizing: border-box;
  border-radius: 10px;
}
.commerce-content > article .product-image img {
  width: 100%;
  border-radius: 10px;
}
.commerce-content > article .description {
  margin: 0 0 1em;
}
.product-proscons > div {
  background: #f1f1f1;
  padding: 1em;
  border-radius: 10px
}
.product-proscons .title {
  margin: 0 0 0.5em;
  text-align: center;
  font-weight: bold;
  font-size: 2em
}
.product-proscons .pros .title {
  color: green;
}
.product-proscons .cons .title {
  color: red;
}
.product-proscons ul {
  list-style-type: none;
  padding: 0;
  margin: 0 0 0.5em;
  text-align: center;
}
@media (min-width: 768px) {
  .authorbox .author-avatar {
      position: absolute;
      right: -50px;
      top: -50px;
      margin: 0;
      opacity: 0.5;
  }
  .products-columns {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 2em;
  }
  .products-columns .products-item {
      width: calc(33.333333% - 2em);
  }
  .commerce-content > article {
      display: flex;
      flex-wrap: wrap;
  }
  .commerce-content > article .product-content {
      flex-basis: 60%;
  }
  .commerce-content > article .product-image {
      flex-basis: 38%;
      width: 38%;
      order: 1;
      margin-left: 2%;
  }
  .description,
  .product-proscons,
  .buttons-wrap {
      flex: 1 100%;
      order: 1;
  }
  .buttons-wrap {
    margin: 2em 0;
  }
  .buttons-wrap .button {
    display: block;
    text-decoration: none;
    padding: 0.5em;
    background: #f1f1f1;
    text-align: center;
    border-radius: 10px;
  }
  .product-proscons {
      display: flex;
      gap: 2em;
  }
  .product-proscons > div {
      width: calc(50% - 2em);
  }
}
/* colors & borders */
.wp-block-yoast-faq-block {
  border-top:1px solid #eee;
}
.wp-block-yoast-faq-block .schema-faq-question {
  border-bottom:1px solid #eee;
}
.wp-block-yoast-faq-block .schema-faq-question:hover,
.wp-block-yoast-faq-block .fcp-opened .schema-faq-question {
  background-color:#fafafa;
}
.wp-block-yoast-faq-block .schema-faq-answer,
.wp-block-yoast-faq-block .fcp-opened .schema-faq-answer {
  border-bottom:1px solid #eee;
}

/* layout */
.wp-block-yoast-faq-block .schema-faq-question {
  display:block;
  padding:10px;
  position:relative;
}
.wp-block-yoast-faq-block.fcp-faq .schema-faq-question {
  cursor:pointer;
}
.wp-block-yoast-faq-block .schema-faq-answer {
  margin:0;
  padding:12px 10px;
}

/* bullet before a question */
.wp-block-yoast-faq-block .schema-faq-question:before {
  /* position gap */
  margin-top:-2px;
}
.wp-block-yoast-faq-block .schema-faq-question,
.wp-block-yoast-faq-block .schema-faq-answer {
  padding-left:34px;
}

/* transition */
.wp-block-yoast-faq-block.fcp-faq .schema-faq-answer {
  overflow:hidden;
  border-bottom-width:0;
  padding-top:0;
  padding-bottom:0;
  transition:padding-bottom 0.3s ease-in, max-height 0.4s ease-in, padding-top 0.1s 0.4s ease-out, border-bottom-width 0s 0.5s linear;
}
.wp-block-yoast-faq-block .fcp-opened .schema-faq-answer {
  border-bottom-width:1px;
  padding-top:12px;
  padding-bottom:20px;
  transition:padding-top 0.2s ease-in, max-height 0.3s 0.2s linear, padding-bottom 0.4s 0.2s ease;
}

/* Page title */
.cover-page-title {
  background-color: #333;
}
.cover-page-title a {
  color: #fff;
}