/*
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.   ***************/
/* KHOẢNG CÁCH MENU */
.header-main .nav > li {
  margin: 0 30px;
}

.header-main .nav > li > a {
  letter-spacing: 1px;
  font-weight: 500;
}
	/* -------------------------------------------------------------------------------------------- */

.tc-box-lienhetuvan {
	margin-top: -40px; /* Điều chỉnh số này (-30px, -50px, -70px...) cho vừa mắt */
    position: relative; /* Bắt buộc để z-index hoạt động */
    z-index: 10;
  	border: 3px double #b1154a;
}
	/* -------------------------------------------------------------------------------------------- */
/* footer */
/* ===== FOOTER S-HOUSING STYLE ===== */
.footer-s-housing {
  background: #0f0f0f;
  padding: 80px 0;
  color: #cfcfcf;
}

.footer-wrap {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr 1fr;
  gap: 50px;
}

/* LOGO */
.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
}

/* COMPANY NAME */
.footer-company {
  color: #fff;
  font-weight: 500;
  margin-bottom: 20px;
}

/* INFO */
.footer-info {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.footer-info li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* TITLE */
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

/* LIST */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.footer-col ul li {
  margin-bottom: 10px;
  cursor: pointer;
  transition: .3s;
}

.footer-col ul li:hover {
  color: #137bce;
  padding-left: 5px;
}

/* SOCIAL */
.footer-social a {
  display: inline-block;
  margin-right: 10px;
  background: #1a1a1a;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  transition: .3s;
}

.footer-social a:hover {
  background: #137bce;
}

/* CERT */
.footer-cert img {
  max-width: 140px;
  margin-bottom: 20px;
  display: block;
}

/* =========================
   FOOTER MOBILE 
   ========================= */
@media (max-width: 849px) {

  /* Reset layout */
  .footer-s-housing {
    padding: 50px 20px;
  }

  .footer-wrap {
    display: block;
  }

  .footer-col {
    width: 100%;
    margin-bottom: 35px;
    text-align: center;
  }

  /* Logo */
  .footer-logo {
    margin: 0 auto 15px;
    display: block;
  }

  /* Company name */
  .footer-company {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  /* Info list */
  .footer-info {
    text-align: center;
  }

  .footer-info li {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Titles */
  .footer-col h4 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  /* Service & policy list */
  .footer-col ul li {
    font-size: 14px;
    margin-bottom: 8px;
  }

  /* Social */
  .footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .footer-social a {
    margin: 0;
  }

  /* Certificates */
  .footer-cert {
    text-align: center;
  }

  .footer-cert img {
    margin: 0 auto 15px;
  }
}




/* ---------------------------------------------------------------------------------- */
/* ===== CTA FLOAT CHUẨN ===== */
.cta-fixed {
  position: fixed !important;
  right: 18px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 99999 !important;
}

/* Button Style */
.cta-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  font-size: 22px;
  text-decoration: none;
  overflow: visible;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  transition: transform 0.25s ease;
}

/* Hover Scale */
.cta-btn:hover {
  transform: scale(1.15);
}

/* Colors */
.cta-btn.facebook { background: #1877f2; }
.cta-btn.zalo     { background: #5db2ff; }
.cta-btn.phone    { background: #d8b36a; }

/* Zalo icon sizing */
.cta-btn.zalo img { width: 26px; height: 26px; }

/* ===== PULSE BACKGROUND EFFECT ===== */
.cta-btn::before,
.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.25;
  animation: pulse-ani 2.2s infinite ease-out;
  z-index: -1;
}

.cta-btn::after {
  animation-delay: 1.1s;
}

@keyframes pulse-ani {
  0% { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ===== ICON RUNG ===== */
@keyframes shake-ani {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(10deg); }
  30% { transform: rotate(-10deg); }
  45% { transform: rotate(6deg); }
  60% { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}

.cta-btn i,
.cta-btn img {
  animation: shake-ani 1.3s infinite ease-in-out;
  transform-origin: center;
}

/* STOP EFFECT ON HOVER */
.cta-btn:hover::before,
.cta-btn:hover::after,
.cta-btn:hover i,
.cta-btn:hover img {
  animation: none !important;
}
/* hieu ung dem so */
.sh-counter {
  padding: 70px 0;
  background: #fff;
}

.counter-wrap {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.counter-item span {
  font-size: 64px;
  font-weight: 300;
  color: #333;
  display: block;
  line-height: 1.2;
}

.counter-item p {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #d39c4a;
}
/* -------------------------------------------------------------------------------------------- */

/* gioi thieu KienAndesign */
/* ===== FLATSOME EQUAL HEIGHT FIX (FINAL) ===== */

/* Row */
.about-service-wrap {
  align-items: stretch;
}

/* Column system */
.about-service-col {
  display: flex !important;
}

.about-service-col > .col-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card */
.about-service-col .col-inner > * {
  flex: 1;
}

.about-service-col .col-inner {
/*   background: #fff; */
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
}

/* Hover */
.about-service-col .col-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Text */
.about-service-col p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

/* -------------------------------------------------------------------------------------------- */

/* chinh anh cho row */
.about-service-col-img1{
	background-image: url('https://demo.tinnababy.com/wp-content/uploads/2025/12/z7176701164137_cf7f2cda455694636bc8bf66d448ea8e.jpg');
	background-size: cover;
}
.about-service-col-img2{
	background-image: url('https://demo.tinnababy.com/wp-content/uploads/2025/12/z7176701164137_cf7f2cda455694636bc8bf66d448ea8e.jpg');
	background-size: cover;
}

/*background counter*/
.sh-counter {
    background-color: #f3f3f3 !important;
}
.sh-counter .counter-wrap{
	color: var(--fs-color-primary);
}

/*sua anh phan portfolio silde*/
/* Ép khung ảnh portfolio đồng bộ */
.portfolio-box .box-image {
    aspect-ratio: 4 / 3; /* đổi 3/2 nếu thích cao hơn */
    overflow: hidden;
}

/* Ép ảnh fill đầy khung */
.portfolio-box .box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix chiều cao box để slider không giật */
.portfolio-box {
    height: 100%;
}
/* Fix slider flickity không nhảy chiều cao */
.flickity-viewport {
    transition: height 0.3s ease;
}
/* Divider vàng dưới tiêu đề */
.section-divider {
    text-align: center;
    margin-top: 10px;
}


.section-divider span {
    display: inline-block;
    width: 80px;          /* độ dài gạch */
    height: 2px;          /* độ dày */
    background-color: var(--fs-color-primary); 
}

/* -------------------------------------------------------------------------------------------- */
/* SECTION khach hang noi gi*/
/* LIST */
.sh-testimonial-list {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* ITEM */
.sh-testimonial-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* BOX – ép chiều cao */
.sh-box {
  background: #fff;
  color: #333;
  padding: 35px 30px;
  text-align: left;
  position: relative;
  min-height: 240px;
}

/* MŨI NHỌN */
.sh-box:after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 30px;
  border-left: 18px solid #d4a44a;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}

/* AUTHOR */
.sh-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 35px;
  color: #fff;
}
/* -------------------------------------------------------------------------------------------- */


/* BOX TƯ VẤN */
.tc-box-lienhetuvan {
  position: relative;
  overflow: hidden;
}

/* KHUNG VIỀN BÊN TRONG */
.tc-box-lienhetuvan::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid rgba(255,255,255,0.8); /* màu viền */
  border-radius: 10px; /* bo góc */
  pointer-events: none;
}
/* -------------------------------------------------------------------------------------------- */
.vechungtoi-quote blockquote{
	border-right: 2px solid var(--fs-color-primary);
	border-left: none !important;
}
/* -------------------------------------------------------------------------------------------- */

.cl-12-kienan{
  display: flex;
  justify-content: center; /* căn giữa ngang */
  align-items: center;     /* căn giữa dọc */
}
/* -------------------------------------------------------------------------------------------- */
/* TAO COUNTER ĐÉM SỐ CHO BANG BAO GIA */
.list-contact-number {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: item;
}

.list-contact-number li {
  position: relative;
  padding-left: 60px;
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.list-contact-number li::before {
  counter-increment: item;
  content: "0" counter(item);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 22px;
  font-weight: 600;
  color: #137bce; /* màu vàng giống hình */
}
/* -------------------------------------------------------------------------------------------- */

/*tao khung bang gia chi tiet*/
/* === CARD BẢNG GIÁ CAO CẤP === */
.bang-gia-noi-that .price-card {
  background: #fff;
  border: 1px solid rgba(19,123,206,.25);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: all .35s ease;
}





/* Viền nhấn mảnh phía trên */
.bang-gia-noi-that .price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg,#137bce,#4da3e6);
}

/* Hover sang trọng */
/* .bang-gia-noi-that .price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(19,123,206,.18);
  border-color: #137bce;
} */

/* HEADER */
.price-title {
  background: linear-gradient(135deg,#137bce,#4da3e6);
  color: #fff;
  padding: 20px 10px;
  margin: 0;
  letter-spacing: 2px;
  font-weight: 500;
  border-radius: 0 0 6px 6px;
}

/* GIÁ */
.price-number {
  font-size: 38px;
  font-weight: 300;
  margin-top: 32px;
  color: #333;
}

.price-unit {
  color: #137bce;
  margin-bottom: 28px;
}

/* NỘI DUNG */
.price-card p {
  color: #555;
  line-height: 1.9;
  padding: 0 22px;
}

/* BUTTON */
.btn-price {
  background: linear-gradient(135deg,#137bce,#4da3e6) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 40px;
  margin: 32px 0 42px;
  font-weight: 500;
  transition: all .3s ease;
}

.btn-price:hover {
  background: #137bce !important;
  box-shadow: 0 12px 30px rgba(19,123,206,.35);
}
















/* Responsive */
@media (max-width: 768px) {
	.cl-12-kienan{
  display: flex;
  justify-content: center; /* căn giữa ngang */
  align-items: center;     /* căn giữa dọc */
}
  .counter-wrap {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .counter-item span {
    font-size: 48px;
  }
	.cta-fixed { bottom: 80px; right: 12px; }
	/* -------------------------------------------------------------------------------------------- */

/* 	gioi thieu KienAndesign */
    .about-service-col {
    margin-bottom: 24px;
  }
	/* -------------------------------------------------------------------------------------------- */

/* 	chinh portfolio */
	 .portfolio-box h5,
  .box-portfolio h5 {
    font-size: 17px;
  }

  .portfolio-box .box-text,
  .box-portfolio .box-text {
    padding: 20px;
  }

  .page-title h1 {
    font-size: 26px;
  }
	/* -------------------------------------------------------------------------------------------- */

/* 	trang chi tiet pflo */
  body.single-featured_item .portfolio-top {
    min-height: 55vh;
    padding-bottom: 30px;
  }

  body.single-featured_item h1.entry-title {
    font-size: 26px;
  }
	  .sh-testimonial-list {
    flex-direction: column;
  }

  .sh-box {
    min-height: auto;
  }
/* -------------------------------------------------------------------------------------------- */
/* tao khung bang gia chi tiet */
	 .price-card {
    margin-bottom: 32px;
  }
  .price-number {
    font-size: 30px;
  }
	/* -------------------------------------------------------------------------------------------- */
}


