/*
Theme Name: Thera Healing Spa
Template: flatsome
Text Domain: thera-healing-spa
*/

/* ==========================================================================
   ROOT TOKENS
   ========================================================================== */
:root {
  --ths-bg: #f6f3ee;
  --ths-surface: rgba(255, 255, 255, 0.93);
  --ths-text: #2f241c;
  --ths-text-soft: #6f6257;
  --ths-line: rgba(88, 61, 39, 0.12);
  --ths-primary: #8a5a35;
  --ths-accent: #f0b400;
  --ths-shadow: 0 14px 34px rgba(39, 24, 14, 0.08);
  --ths-radius: 22px;
}

/* ==========================================================================
   GLOBAL
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--ths-bg) !important;
  color: var(--ths-text);
}

body,
p,
span,
li,
label,
input,
textarea,
select,
button {
  color: var(--ths-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ths-text);
}

img {
  max-width: 100%;
  height: auto;
}

#main,
.main,
.page-wrapper,
.page-inner,
#content {
  background: transparent;
}

.page-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

/* ==========================================================================
   SINGLE LAYOUT
   ========================================================================== */
.ths-single-wrapper {
  position: relative;
  z-index: 2;
  padding: 28px 0 48px;
}

.ths-layout-row {
  max-width: 1180px;
  margin: 0 auto !important;
}

.ths-layout__main,
.ths-layout__sidebar {
  min-width: 0;
}

.ths-content-surface {
  background: var(--ths-surface);
  border: 1px solid var(--ths-line);
  border-radius: var(--ths-radius);
  box-shadow: var(--ths-shadow);
  overflow: hidden;
}

.ths-content-surface > .ths-surface__inner {
  padding: 34px 32px;
}

.ths-article-entry,
.ths-service-entry {
  margin: 0;
}

.ths-article-entry .entry-content,
.ths-service-entry .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ths-text);
}

.ths-article-entry .entry-content > *:first-child,
.ths-service-entry .entry-content > *:first-child {
  margin-top: 0 !important;
}

.ths-article-entry .entry-content > *:last-child,
.ths-service-entry .entry-content > *:last-child {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   ENTRY CONTENT
   ========================================================================== */
.entry-content p {
  margin-bottom: 1.1em;
  line-height: 1.8;
}

.entry-content h2 {
  margin-top: 1.6em;
  margin-bottom: 0.7em;
  font-size: 36px;
  line-height: 1.25;
}

.entry-content h3 {
  margin-top: 1.3em;
  margin-bottom: 0.55em;
  font-size: 28px;
  line-height: 1.3;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.1em;
}

/* ==========================================================================
   HIDE FEATURED IMAGE / COMMENTS
   ========================================================================== */
.single-post .entry-image,
.single-post .featured-image,
.single-post .post-thumbnail,
.single-post .entry-header .entry-image,
.single-ths_service .entry-image,
.single-ths_service .featured-image,
.single-ths_service .post-thumbnail {
  display: none !important;
}

.single-post .comments-area,
.single-post #comments,
.single-post .comment-respond,
.single-post .comments,
.single-ths_service .comments-area,
.single-ths_service #comments,
.single-ths_service .comment-respond,
.single-ths_service .comments {
  display: none !important;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.ths-layout__sidebar .ths-sidebar-right {
  position: sticky;
  top: 110px;
}

.ths-single-wrapper .post-sidebar,
.ths-single-wrapper .widget-area {
  display: none !important;
}

/* ==========================================================================
   META BAR
   ========================================================================== */
.ths-post-meta-bar {
  text-align: center;
  margin: 0 0 22px;
  padding: 6px 12px 2px;
}

.ths-post-meta-bar__top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: #353535;
  margin-bottom: 8px;
}

.ths-post-meta-bar__brand {
  font-weight: 500;
}

.ths-post-meta-bar__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.ths-post-meta-bar__stars {
  display: inline-flex;
  gap: 3px;
  font-size: 18px;
  line-height: 1;
}

.ths-post-meta-bar__stars .is-full {
  color: #f2b200;
}

.ths-post-meta-bar__stars .is-half {
  color: #f2b200;
  opacity: 0.7;
}

.ths-post-meta-bar__stars .is-empty {
  color: #cfcfcf;
}

.ths-post-meta-bar__rating,
.ths-post-meta-bar__votes {
  color: #2c2c2c;
}

/* ==========================================================================
   TOC
   ========================================================================== */
.ths-toc {
  margin: 0 0 26px;
  padding: 18px 18px 10px;
  background: #f7f7f7;
  border: 1px solid rgba(120, 90, 60, 0.12);
  border-radius: 8px;
}

.ths-toc__head {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(120, 90, 60, 0.12);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f1f1f;
}

.ths-toc__body {
  position: relative;
}

.ths-toc__body.is-collapsed {
  max-height: 230px;
  overflow: hidden;
}

.ths-toc__body.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: linear-gradient(to bottom, rgba(247, 247, 247, 0), rgba(247, 247, 247, 1));
}

.ths-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ths-toc__item {
  margin: 0 0 10px;
}

.ths-toc__item.is-h3 {
  padding-left: 24px;
}

.ths-toc__item a {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  color: #3a7ad9;
  line-height: 1.5;
  text-decoration: none;
}

.ths-toc__item a:hover {
  color: #1f5db8;
}

.ths-toc__num {
  flex: 0 0 auto;
}

.ths-toc__text {
  flex: 1 1 auto;
}

.ths-toc__actions {
  text-align: center;
  padding-top: 6px;
}

.ths-toc__toggle {
  min-width: 108px;
  height: 40px;
  padding: 0 18px;
  border: 2px solid #2a2a2a;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-weight: 600;
  cursor: pointer;
}


/* ==========================================================================
   MOBILE HEADER FINAL
   ========================================================================== */
@media (max-width: 849px) {
  .header-wrapper .header-main .nav-left,
  .header-wrapper .header-main .flex-col.left,
  .header-wrapper .header-main .mobile-nav.nav-left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    min-width: 64px !important;
    overflow: visible !important;
  }

  .header-wrapper .header-main .logo-left,
  .header-wrapper .header-main .flex-col.logo,
  .header-wrapper .header-main .flex-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .header-wrapper .header-main .nav-right,
  .header-wrapper .header-main .flex-col.right,
  .header-wrapper .header-main .mobile-nav.nav-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 56px !important;
    width: 56px !important;
    max-width: 56px !important;
    min-width: 56px !important;
    overflow: visible !important;
  }

  .header-wrapper .header-main .nav-left .html,
  .header-wrapper .header-main .nav-left .html_topbar,
  .header-wrapper .header-main .nav-left .header-html,
  .header-wrapper .header-main .nav-left .header-block,
  .header-wrapper .header-main .nav-left .ux-html,
  .header-wrapper .header-main .flex-col.left .html,
  .header-wrapper .header-main .flex-col.left .html_topbar,
  .header-wrapper .header-main .flex-col.left .header-html,
  .header-wrapper .header-main .flex-col.left .header-block,
  .header-wrapper .header-main .flex-col.left .ux-html {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .ths-mobile-lang-dropdown {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 300 !important;
  }

  .ths-mobile-lang-dropdown__trigger {
    min-width: 42px !important;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14) !important;
  }

  .ths-mobile-lang-dropdown__caret,
  .ths-mobile-lang-dropdown__text {
    display: none !important;
  }

  .ths-mobile-lang-dropdown.shape-circle .ths-mobile-lang-dropdown__trigger .ths-mobile-lang-dropdown__flag,
  .ths-mobile-lang-dropdown.shape-circle .ths-mobile-lang-dropdown__item .ths-mobile-lang-dropdown__flag {
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  }

  .header-wrapper .hide-for-medium .ths-mobile-lang-dropdown,
  .header-wrapper .show-for-medium .ths-mobile-lang-dropdown,
  .header-wrapper .show-for-small .ths-mobile-lang-dropdown {
    display: inline-flex !important;
  }

  .header-wrapper .header-main .html-2,
  .header-wrapper .header-main .header-html-2,
  .header-wrapper .header-main .html_topbar,
  .header-wrapper .stuck .html-2,
  .header-wrapper .stuck .header-html-2,
  .header-wrapper .stuck .html_topbar {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .ths-mqn {
    display: block !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    z-index: 120 !important;
  }

  .ths-mqn__grid {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .header-wrapper,
  .header-wrapper .header-main,
  .header-wrapper .header-main .container,
  .header-wrapper .header-main .flex-row,
  .header-wrapper .header-main .flex-col,
  .header-wrapper .stuck,
  .header-wrapper .stuck .container,
  .header-wrapper .stuck .flex-row,
  .header-wrapper .stuck .flex-col {
    overflow: visible !important;
  }

  .ths-single-wrapper {
    padding: 18px 0 34px;
  }

  .ths-content-surface > .ths-surface__inner {
    padding: 20px 18px;
  }

  .ths-layout__sidebar .ths-sidebar-right {
    position: static;
    top: auto;
    margin-top: 18px;
  }

  .ths-post-meta-bar {
    margin-bottom: 18px;
  }

  .ths-post-meta-bar__top,
  .ths-post-meta-bar__bottom {
    font-size: 14px;
  }

  .ths-post-meta-bar__stars {
    font-size: 18px;
  }

  .entry-content h2 {
    font-size: 28px;
  }

  .entry-content h3 {
    font-size: 22px;
  }
}

@media (max-width: 390px) {
  .header-wrapper .header-main .nav-left,
  .header-wrapper .header-main .flex-col.left,
  .header-wrapper .header-main .mobile-nav.nav-left {
    flex: 0 0 58px !important;
    width: 58px !important;
    max-width: 58px !important;
    min-width: 58px !important;
  }

  .header-wrapper .header-main .nav-right,
  .header-wrapper .header-main .flex-col.right,
  .header-wrapper .header-main .mobile-nav.nav-right {
    flex: 0 0 50px !important;
    width: 50px !important;
    max-width: 50px !important;
    min-width: 50px !important;
  }

  .ths-mobile-lang-dropdown__trigger {
    min-width: 38px !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  .ths-mobile-lang-dropdown.shape-circle .ths-mobile-lang-dropdown__trigger .ths-mobile-lang-dropdown__flag,
  .ths-mobile-lang-dropdown.shape-circle .ths-mobile-lang-dropdown__item .ths-mobile-lang-dropdown__flag {
    width: 26px !important;
    height: 26px !important;
  }
}

/* ==========================================================================
   HEADER / HERO LINE FIX
   ========================================================================== */
#header,
.header,
.header-wrapper,
.header-main,
.header-bottom,
.nav-dark,
.nav-dropdown {
  border-bottom: none !important;
  box-shadow: none !important;
}

.header-wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#header + #main,
.header-wrapper + #main {
  margin-top: -1px !important;
  padding-top: 0 !important;
}

#main {
  margin-top: -1px !important;
}

.banner,
.banner-inner {
  margin-top: 0 !important;
  padding-top: 0 !important;
}