/*
 Theme Name: Findme (Flatsome Child)
 Theme URI: https://example.com
 Description: Child theme for Flatsome to override blog posts shortcode.
 Author: You
 Version: 1.0.0
 Template: flatsome
 Text Domain: findme
 */
:root {
  --mf-main-color: #4d2a17;
}
body {
  font-size: 14px !important;
  line-height: 1.5 !important;
}
:where(p:last-of-type) {
  margin-bottom: 0 !important;
}

/** POST CARD **/
.mf-post-thumb { position:relative;display:block;overflow:hidden; border-radius: 4px 4px 0 0; }
.mf-post-thumb img{ aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .35s ease; }
.mf-post-card:hover .mf-post-thumb img{ transform: scale(1.1); }
.blog-style-2 .mf-post-thumb {
  border: 2px solid var(--fs-color-primary);
  border-radius: 4px;
}
.blog-style-2 .mf-post-thumb .mf-hover-tint {
  position: absolute;
  inset: 0;
  background: rgba(77, 42, 23, .20); 
  /* Ưu tiên dùng biến với color-mix (Chrome/Edge/Firefox mới) */
  background: color-mix(in srgb, var(--mf-main-color) 50%, transparent);
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s ease;
  mix-blend-mode: multiply;
}
.blog-style-2 .mf-post-card:hover .mf-post-thumb .mf-hover-tint {
  opacity: 1;
}
.blog-style-2 .mf-post-content {
  padding: 0;
  margin-top: 15px;
}
.mf-post-content {
  height: 130px;
  padding: 15px;
  border: 1px solid #ddd;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
.blog-style-2 .mf-post-content {
  border: none;
}
.mf-post-content h3 {
  margin-bottom: 10px;
}
.mf-post-content h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--primary-color);
  text-transform: uppercase;
  line-height: 24px;
}
.mf-post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.img-divider {
  text-align: center;
}
.img-divider img{
  display: block;
  width: auto;
  margin: 0 auto;
}
/** FORM **/
.select-resize-ghost, .select2-container .select2-choice, .select2-container .select2-selection, input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
  height: 40px;
  box-shadow: none;
}
input[type=email]:focus, input[type=number]:focus, input[type=password]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=text]:focus, select:focus, textarea:focus {
  box-shadow: none;
  border-color: var(--fs-color-primary);
}
input:hover, select:hover, textarea:hover {
  box-shadow: none !important;
  border-color: var(--fs-color-primary);
}
/** CONTACT FORM 7 **/
.form-henkham .wpcf7 {
  max-width: 600px;
  margin: 0 auto;
}
.wpcf7-spinner { display: none }
.wpcf7 form .wpcf7-response-output {
  margin: 15px 0 0;
}
.wpcf7 form .wpcf7-submit {
  margin: 0;
  width: 100%;
	padding: 0px;
}
.wpcf7 .wpcf7-form {
  margin: 0;
}
/** TESTIMIONONIALS CAROUSEL **/
.testimonal-info {
    padding: 15px;
    background: var(--fs-color-primary);
    color: #fff;
    border-radius: 4px;
}
.testimonial-content {
    position: relative;
    padding: 15px;
    background: #f5f5f5;
    margin-top: 20px;
    border-radius: 4px;
}
.testimonial-content:before {
    content: '';
    width: 0;
    height: 0;
    border-bottom: 20px solid #f5f5f5;
    border-right: 15px solid transparent;
    position: absolute;
    top: -20px;
    left: 15px;
}
.testi-name {
      font-size: 18px;
      margin-bottom: 5px;
}
.testi-address {
  font-style: italic;
}
.testi-rating {
      font-size: 18px;
    color: #ffce3d;
}
/** CAROUSEL **/
.owl-carousel.owl-theme .owl-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.owl-carousel.owl-theme .owl-nav.disabled+.owl-dots {
  margin-top: 0;
}
.owl-carousel.owl-theme .owl-dots .owl-dot {
      min-height: unset;
    line-height: unset;
    margin: 0;
    display: block;
}
.owl-carousel.owl-theme .owl-dots .owl-dot.active span {
  background: var(--fs-color-primary);
}
.owl-carousel.owl-theme .owl-dots .owl-dot span {
  margin: 0;
}

/* Breadcrumb trong container, ẩn ở trang chủ đã xử lý trong PHP */
.breadcrumb-wrapper{
  position: relative;
  background: #f5f5f5;
  padding: 10px 20px;
  font-size: 14px;
  margin: 15px 0 25px;
  line-height: 1.4;
}

/* Chừa chỗ cho dải xanh 56px + padding 20px */
.breadcrumb--ribbon{
  padding-left: 40px;
}

/* Dải xanh chữ nhật đầu breadcrumb */
.breadcrumb--ribbon::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: var(--fs-color-primary); /* xanh từ palette */
}

/* Mũi nhọn màu xanh */
.breadcrumb--ribbon::after{
    content: "";
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 0;
    height: 0;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 11px solid var(--fs-color-primary);
}

/* Danh sách crumb */
.breadcrumbs{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 700;
}
.breadcrumbs li{
  margin-right: 8px;
  color: #555555;
}
.breadcrumbs li a{
  color: var(--fs-color-primary);          /* link xanh như ảnh */
  text-decoration: none;
}
.breadcrumbs li a:hover{
  color: #4d2a17;          /* hover nâu theo palette */
}
.breadcrumbs li+li:before{
  content: "›";
  margin-right: 8px;
  color: #999999;
}

/* Tối ưu mobile (không dùng biến) */
@media (max-width: 480px){
  .breadcrumb--ribbon{ padding-left: 64px; }
  .breadcrumb--ribbon::before{ width: 44px; }
  .breadcrumb--ribbon::after{
    left: 44px;
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 12px;
  }
}

.blog-archive .archive-page-header {
  display: none;
}
.form-henkham .wpcf7{ max-width: auto !important;}

/* Hộp khung */
.dat-lich-kham-box {
     border: 6px solid var(--fs-color-primary);
    border-radius: 20px;
    padding: 20px 8px 5px;
    background: #fff;
    text-align: center;
    max-width: 340px;
    margin: 0 auto;
}

/* Tiêu đề */
.dat-lich-kham-title {
  color: var(--fs-color-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Gạch ngang */
.dat-lich-kham-line {
  border: none;
  border-top: 2px solid var(--fs-color-primary);
  width: 100%;
  margin: 0 auto 15px;
}

/* Input và textarea */
.dat-lich-kham-box input[type="text"],
.dat-lich-kham-box input[type="tel"],
.dat-lich-kham-box textarea {
  width: 100%;
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.dat-lich-kham-box textarea {
  height: 100px;
  resize: none;
}

/* Nút gửi */
.dat-lich-kham-btn {
  background: var(--fs-color-primary);
  color: #fff;
  border: none;
  padding: 10px 30px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.dat-lich-kham-btn:hover {
  background: #4d2a17; /* màu hover theo palette của bạn */
}


/* Hộp danh mục bài viết */
.widget_categories {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 25px;
}

/* Phần tiêu đề xanh lá */
.widget_categories .widget-title {
     display: flex
;
    justify-content: center;
    background-color: var(--fs-color-primary);
    color: #fff;
    padding: 20px;
}

/* Gỡ gạch chia mặc định của Flatsome */
.widget_categories .is-divider {
  display: none;
}

/* Danh sách danh mục */
.widget_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Từng dòng danh mục */
.widget_categories ul li {
  border-bottom: 1px dashed #ccc;
  padding: 2px 10px;
  transition: background 0.3s;
}

/* Link danh mục */
.widget_categories ul li a {
  color: #111111;
  text-decoration: none;
  font-size: 15px;
}

/* Hover hoặc active */
.widget_categories ul li:hover {
  background: #f9f9f9;
}

.widget_categories ul li:hover a,
.widget_categories ul li.current-cat a {
  color: var(--fs-color-primary);
  font-weight: 600;
}

/* Bo góc dưới */
.widget_categories ul li:last-child {
  border-bottom: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}
/* === FORM WRAPPER === */
.booking-form {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  background: #8B4B22; /* nâu đậm */
  border-radius: 8px;
  padding: 16px 24px;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

/* === ICON + TITLE === */
.booking-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
  flex-shrink: 0;
}

.booking-head i {
  background: #F3E9E2;
  color: #8B4B22;
  border-radius: 50%;
  font-size: 36px;
  padding: 9px;
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-head strong {
  font-size: 15px;
  font-weight: 600;
}

.booking-head span {
  font-size: 13px;
  opacity: 0.9;

}
.booking-text {
	    display: flex
;
    flex-direction: column;
}

/* === INPUT GRID === */
.booking-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

/* === INPUT / SELECT / DATE === */
.booking-fields input,
.booking-fields select {
  width: 100%;
  border: none;
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  height: 38px;
  transition: box-shadow 0.15s ease;
}

.booking-fields input:focus,
.booking-fields select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #d8c5b7;
}

/* === PLACEHOLDER === */
.booking-fields ::placeholder {
  color: #999;
}


/* === BUTTON === */
.booking-fields input[type="submit"] {
  background: #fff;
  color: #8B4B22;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.booking-fields input[type="submit"]:hover {
  background: #f6f3f0;
}

/* === ERROR MESSAGE (CF7) === */
span.wpcf7-not-valid-tip {
  color: #a94442 !important;
  background: #f9d6d5 !important;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12.5px;
  margin-top: 4px;
  display: block;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .booking-form { flex-direction: column; align-items: stretch; }
  .booking-fields { grid-template-columns: repeat(2, 1fr); }
  .booking-fields .wpcf7-form-control { grid-column: span 2 !important; }
  .booking-head { margin-bottom: 10px; }
}
