/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Hide divider in blog archive + single blog post */
#post-list .is-divider,
body.archive .box-blog-post .is-divider,
body.blog .box-blog-post .is-divider,
body.single-post .is-divider {
  display: none !important;
}

/* Fix header dropdown item indentation caused by global li margin */
.header .nav-dropdown > li,
.header .nav-dropdown > li + li,
.header .sub-menu > li,
.header .sub-menu > li + li {
  margin-left: 0 !important;
}

/* Contact Form 7 - custom BEM form */
.xc-contact-form .xc-contact-form__control,
.xc-contact-form input[type="text"],
.xc-contact-form input[type="tel"],
.xc-contact-form input[type="email"],
.xc-contact-form select,
.xc-contact-form textarea {
  margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background-color: #fff;
}

.xc-contact-form .xc-contact-form__control:focus,
.xc-contact-form input[type="text"]:focus,
.xc-contact-form input[type="tel"]:focus,
.xc-contact-form input[type="email"]:focus,
.xc-contact-form select:focus,
.xc-contact-form textarea:focus {
  border-color: rgba(203, 44, 108, 0.45) !important;
  box-shadow: 0 0 0 2px rgba(203, 44, 108, 0.12) !important;
}

.xc-contact-form .xc-contact-form__submit {
  padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  background-size: 16px 16px;
}

/* Blog list cards */
#post-list .box-blog-post .box-image .image-cover {
  border-radius: 12px;
  overflow: hidden;
}

#post-list .box-blog-post .box-image img {
  transition: transform 0.45s ease;
  transform-origin: center center;
}

#post-list .box-blog-post:hover .box-image img {
  transform: scale(1.08);
}

/* Blog post slider cards (same style as archive cards) */
.row-slider .post-item .box-blog-post .box-image .image-cover {
  border-radius: 12px;
  overflow: hidden;
}

.row-slider .post-item .box-blog-post .box-image img {
  transition: transform 0.45s ease;
  transform-origin: center center;
}

.row-slider .post-item .box-blog-post:hover .box-image img {
  transform: scale(1.08);
}

/* Remove left/right lines in centered section title */
.section-title.section-title-center b {
  display: none !important;
}

.section-title.section-title-center span {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#post-list .box-blog-post .post-title {
  margin-bottom: 0.5em;
}

#post-list .box-blog-post .post-title a {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
  max-height: 2.6em;
  line-height: 1.3;
}

/* Home services: mirror original Nora Care hover style */
.xc-home-services .col {
  padding-bottom: 15px;
}

.xc-home-services .box {
  position: relative;
  margin-bottom: 48px;
}

.xc-home-services .box .box-image {
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.xc-home-services .box .box-image img {
  object-fit: cover;
  border-radius: 50%;
}

.xc-home-services .box .box-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(to top, rgba(203, 44, 108, 0.7), transparent);
  border: 2px solid rgba(203, 44, 108, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  background: transparent;
  border: 2px solid transparent;
  transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
  -webkit-transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.xc-home-services .box .box-text h4 {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  margin: 0;
  color: #000;
  text-align: center;
  line-height: 1.3;
}

.xc-home-services .box .box-text p,
.xc-home-services .box .box-text .button {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.xc-home-services .box:hover .box-text {
  background: linear-gradient(to top, rgba(203, 44, 108, 0.7), transparent);
  border: 2px solid rgba(203, 44, 108, 0.7);
}

.xc-home-services .box:hover .box-text p,
.xc-home-services .box:hover .box-text .button {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.xc-home-services .box .button {
  border: 1px solid #fff;
  color: #fff;
}

/* Testimonials shortcode */
.xc-testimonials .col {
  padding-bottom: 15px;
}

.xc-testimonials .row-partner-top .box-kh > .col-inner {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px 30px 0;
}

.xc-testimonials .row-partner-top.flickity-enabled {
  display: block;
}

.xc-testimonials .row-partner-top .box-kh {
  width: 100%;
}

.xc-testimonials .box-kh .img-inner img {
  width: 100%;
  border-radius: 32px;
}

.xc-testimonials .box-kh .cl-cmt > .col-inner {
  border-radius: 32px;
}

.xc-testimonials .box-kh-dv > .col-inner {
  background-color: #fff;
  border: 2px solid #fff;
  border-radius: 20px;
  padding: 20px 20px 0;
  transition: border-color 0.3s ease;
}

.xc-testimonials .box-kh-dv > .col-inner:hover {
  border-color: rgba(203, 44, 108, 0.7);
}

.xc-testimonials .box-kh-dv.is-selected > .col-inner {
  border-color: rgba(203, 44, 108, 0.7);
}

.xc-testimonials .row-partner .img-inner img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}

.xc-testimonials .name-kh {
  margin-top: 10px;
  margin-bottom: 0;
}

.xc-testimonials .cs-text p {
  min-height: 102px;
  color: rgb(178, 78, 106);
}

/* Process section: style image box only */
.xc-process .box {
  background-color: rgb(247, 237, 240);
  border-radius: 20px;
  padding: 20px;
}

.xc-process .box .box-image {
  width: 55%;
  margin: 0 auto 12px;
}

.xc-process .box .box-image img {
  width: 100%;
  display: block;
}

.xc-process .box .box-text,
.xc-process .box .box-text .box-text-inner {
  text-align: left;
}

/* Benefit section: style cards inside parent scope only */
.xc-benefit .row > .col.medium-4 > .col-inner {
  border: 1px solid rgb(178, 78, 106);
  border-radius: 20px;
  padding: 20px 20px 0;
  height: 100%;
}

.xc-benefit .icon-box {
  text-align: left;
}

.xc-benefit .icon-box .icon-box-img {
  width: 13% !important;
  margin-bottom: 12px;
}

.xc-benefit .icon-box .icon-box-text h3,
.xc-benefit .icon-box .icon-box-text p {
  text-align: left;
}

/* Page process section */
.xc-page-process .row-step > .col > .col-inner {
  border: 1px solid rgb(169, 66, 95);
  border-radius: 20px;
  padding: 20px 20px 0;
}

.xc-page-process .hight-light {
  background-color: rgb(135, 43, 69);
  border-radius: 20px;
  padding: 20px 20px 10px;
}

@media only screen and (max-width: 48em) {
  .xc-testimonials .row-partner-top .cl-cmt .text {
    min-height: 180px;
    overflow: hidden;
  }
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}