/*
 * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 *
 * Template Name: Dialia - Registered Massage Therapy HTML Template   
 * Template URI: https://thememarch.com/demo/html/dialia/
 * Description: Dialia is a registered massage therapy HTML template which comes with the unique and clean design. It helps you to create a beautiful massage therapy HTML website. It's a fully responsive website template. It has also e-commerce support. E-commerce pages are included on this template.
 * Author: Thememarch
 * Author URI: https://thememarch.com
 * Version: 2.0
 *
 * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 */

/* Header top bar – use theme color instead of black */
.header-toparea {
  background: var(--tm-theme-primary, #0075b7) !important;
}
/* Book Appointment button – keep visible on hover (theme bar is same color) */
.header-topbutton .tm-button:hover {
  background: #fff !important;
  color: var(--tm-theme-primary, #0075b7) !important;
  border-color: #fff !important;
}

/* Hero slider – faster content animation (headline, text, button, image) */
.heroslider-animated .heroslider-singleslider.slick-current .heroslider-content h1 {
  -webkit-animation: fadeInUp 0.4s ease-out 0.1s 1 forwards;
  animation: fadeInUp 0.4s ease-out 0.1s 1 forwards;
}
.heroslider-animated .heroslider-singleslider.slick-current .heroslider-content p {
  -webkit-animation: fadeInUp 0.4s ease-out 0.2s 1 forwards;
  animation: fadeInUp 0.4s ease-out 0.2s 1 forwards;
}
.heroslider-animated .heroslider-singleslider.slick-current .heroslider-content .tm-button {
  -webkit-animation: fadeInUp 0.4s ease-out 0.3s 1 forwards;
  animation: fadeInUp 0.4s ease-out 0.3s 1 forwards;
}
.heroslider-animated .heroslider-singleslider.slick-current .heroslider-image {
  -webkit-animation: fadeInRight 0.4s ease-out 0.2s 1 forwards;
  animation: fadeInRight 0.4s ease-out 0.2s 1 forwards;
}
.heroslider-animated .heroslider-singleslider.slick-current .heroslider-image-left {
  -webkit-animation: fadeInLeft 0.4s ease-out 0.2s 1 forwards;
  animation: fadeInLeft 0.4s ease-out 0.2s 1 forwards;
}
@media only screen and (max-width: 767px) {
  .heroslider-animated .heroslider-singleslider.slick-current .heroslider-content h1,
  .heroslider-animated .heroslider-singleslider.slick-current .heroslider-content p,
  .heroslider-animated .heroslider-singleslider.slick-current .heroslider-content .tm-button,
  .heroslider-animated .heroslider-singleslider.slick-current .heroslider-image,
  .heroslider-animated .heroslider-singleslider.slick-current .heroslider-image-left {
    animation-duration: 0.4s;
    animation-delay: 0.1s;
  }
}

/* Testimonials – message first, then name + role, center aligned */
.tm-testimonial-centered {
  text-align: center;
}
.tm-testimonial-centered .tm-testimonial-content {
  margin-bottom: 1rem;
}
.tm-testimonial-centered .tm-testimonial-content p {
  margin-left: auto;
  margin-right: auto;
}
.tm-testimonial-centered .tm-rating {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.tm-testimonial-centered .tm-testimonial-author {
  display: flex;
  justify-content: center;
}
.tm-testimonial-centered .tm-testimonial-authorinfo h5,
.tm-testimonial-centered .tm-testimonial-authorinfo h6 {
  margin: 0;
  text-align: center;
}

/* Logo - prevent breaking header when image dimensions vary */
.header-logo {
  flex-shrink: 0;
  max-width: 220px;
}
.header-logo a {
  display: block;
  line-height: 0;
}
.header-logo img {
  max-height: 65px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}
@media (max-width: 991px) {
  .header-logo {
    max-width: 160px;
  }
  .header-logo img {
    max-height: 50px;
  }
}

/* About page – single founder section (no team grid) */
.founder-section .tm-section-title {
  margin-bottom: 2rem;
}
.tm-founder-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}
.tm-founder-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.tm-founder-image {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: #f5f5f5;
}
.tm-founder-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tm-founder-info {
  padding: 1.5rem 1.25rem;
}
.tm-founder-role {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-theme-primary, #0075b7);
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.tm-founder-name {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  font-weight: 600;
  color: #222;
}
.tm-founder-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.tm-founder-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #555;
  transition: background 0.2s, color 0.2s;
}
.tm-founder-social a:hover {
  background: var(--tm-theme-primary, #0075b7);
  color: #fff;
}
.tm-founder-social i {
  font-size: 1.1rem;
}

/* About page – Founder bio section (image + text) */
.founder-bio-section .founder-bio-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 320px;
}
.founder-bio-section .founder-bio-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
}
@media (max-width: 767px) {
.founder-bio-section .founder-bio-image {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
}

/* Benefits section – content for selected benefit (replaces rate boxes) */
.tm-pricing-benefit-content {
  margin-top: 0.5rem;
}
.tm-pricing-benefit-content p {
  margin: 0;
  line-height: 1.6;
  color: #444;
}

/* Appointment section – balanced layout, call/email instead of form */
.appointment-information-row {
  align-items: stretch;
}
.appointment-information-area .tm-information-compact {
  font-size: 0.95rem;
}
.appointment-information-area .tm-information-compact .tm-information-timing ul,
.appointment-information-area .tm-information-compact .tm-information-contact ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.5;
}
.appointment-information-area .tm-information-compact .tm-information-timing li,
.appointment-information-area .tm-information-compact .tm-information-contact li {
  margin-bottom: 0.5rem;
}
.appointment-information-area .tm-information-compact .tm-information-contact li {
  word-break: break-word;
}
.appointment-information-area .tm-information-compact h5 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.appointment-information-area .tm-information-compact .tm-information-contact {
  margin-top: 1.25rem;
}
.tm-appointment-call-email {
  padding: 1.5rem 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tm-appointment-call-email h2 {
  margin-bottom: 1rem;
}
.tm-appointment-call-email .tm-appointment-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0.75rem;
}
.tm-appointment-call-email p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #555;
}
.tm-appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tm-appointment-actions .tm-button-appointment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.tm-appointment-actions .tm-appointment-action-icon {
  font-size: 1.25rem;
}
.tm-appointment-note {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Footer – Book an Appointment widget (replaces Subscribe us) */
.widget-book-appointment p {
  margin-bottom: 0.75rem;
}
.widget-book-appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem !important;
}
.widget-book-appointment-actions .tm-button {
  margin: 0;
}
.widget-opening-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 !important;
}

/* Mobile: right-to-left drawer menu, on top of page */
@media (max-width: 991px) {
  /* When drawer is open, put header above overlay so drawer and menu are clickable */
  body.mobile-drawer-open .header,
  body.mobile-drawer-open .header .header-bottomarea {
    z-index: 999998 !important;
  }
  .header-mobilemenu {
    position: static;
  }
  .mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
  }
  body.mobile-drawer-open .mobile-drawer-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .header-mobilemenu .mean-container .mean-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100vh !important;
    margin: 0 !important;
    padding-top: 3rem !important;
    z-index: 999998 !important;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  }
  body.mobile-drawer-open .header-mobilemenu .mean-container .mean-nav {
    transform: translateX(0);
  }
  .header-mobilemenu .mean-container .mean-nav > ul {
    max-height: none !important;
  }
  .header-mobilemenu .mean-container .mean-bar {
    position: relative;
    z-index: 999999;
  }
  /* When drawer is open: show close button on top of the drawer so it’s visible */
  body.mobile-drawer-open .header-mobilemenu .mean-container a.meanmenu-reveal {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    text-indent: 0 !important;
    line-height: 1 !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
  body.mobile-drawer-open .header-mobilemenu .mean-container a.meanmenu-reveal i {
    display: block !important;
  }
}
@media (min-width: 992px) {
  .mobile-drawer-overlay {
    display: none !important;
  }
  .appointment-information-area .col-lg-6:first-child .tm-information {
    padding-right: 1.5rem;
  }
  .appointment-information-area .col-lg-6:last-child .tm-appointment {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
  }
}

/* Blog listing – category filter and grid */
.tm-blog-category-filter {
  margin-bottom: 2rem;
}
.tm-blog-category-filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.tm-blog-category-filter ul li {
  margin: 0;
}
.tm-blog-category-filter ul a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}
.tm-blog-category-filter ul a:hover,
.tm-blog-category-filter ul a.active {
  background: var(--tm-theme-primary, #0075b7);
  color: #fff;
}
.tm-blog-list .tm-blog-col {
  margin-bottom: 2rem;
}
.tm-blog-list .tm-blog-bottom .tm-button {
  margin-top: 10px;
}
.blogitem-pagination {
  margin-top: 2rem;
  text-align: center;
}
.blogitem-pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 2px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}
.blogitem-pagination .page-numbers:hover,
.blogitem-pagination .page-numbers.current {
  background: var(--tm-theme-primary, #0075b7);
  color: #fff;
}

/* Single post (blog detail) */
.tm-single-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #555;
}
.tm-single-post-meta span a {
  color: #555;
}
.tm-single-post-meta span a:hover {
  color: var(--tm-theme-primary, #0075b7);
}
.tm-single-post-meta i {
  margin-right: 4px;
}
.tm-single-post-thumb {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}
.tm-single-post-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* Single post – simple header (title + breadcrumb, no banner) */
.tm-single-post-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.tm-single-post-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: #222;
}
.tm-single-post-breadcrumb {
  font-size: 0.9rem;
  color: #666;
}
.tm-single-post-breadcrumb a {
  color: #666;
  text-decoration: none;
}
.tm-single-post-breadcrumb a:hover {
  color: var(--tm-theme-primary, #0075b7);
}
.tm-breadcrumb-sep {
  margin: 0 0.35rem;
  color: #999;
}
.tm-breadcrumb-current {
  color: #333;
}
