/*
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.   ***************/
.header-main .nav > li > a {
	/*
	color: #ff6600;
	*/
}
.wpcf7-form input.wpcf7-submit {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 10px !important;
    background-color: #930002 !important;
    color: #fff !important;
    font-weight: bold !important;
    font-size: 13px !important;
    text-transform: uppercase;
    border: none !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
    cursor: pointer;
}
.luxury-item-box {
	padding: 20px; background: #fff;
	border-radius: 6px; 
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	height: 100%;
}
.luxury-item-box:hover {
    transform: translateY(-10px);
    border-top: 3px solid #a31717;
    box-shadow: 0 15px 30px rgba(163, 23, 23, 0.1) !important;
}
.biz-card {
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
	min-height: 188px;
}
.biz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(163, 23, 23, 0.1);
}
.biz-card p:empty {
	display: none;
}
.achievement-container{
	background: #fff; 
	border: 1px solid #e5e1d8; 
	padding: 40px 30px; 
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	border-radius: 4px;
}
.tl-item:hover {
    border-left-color: #a31717 !important;
}
.tl-item:hover h3 {
    color: #a31717 !important;
    transform: translateX(8px);
}
.tl-item:hover .tl-dot {
    background: #a31717 !important;
}
.section-title b {
    opacity: 0;
}
.section-title-center .section-title-main, h1.page-title, .title-block {
  color: #181D4E;
  font-size: 1.5rem;
  position: relative;
  text-align: center;
  margin-bottom: 10px;
  padding: 8px;
    padding-bottom: 8px;
  padding-bottom: 10px;
  display: block;
  
}
h3.section-title-center .section-title-main::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 81px;
    height: 4px;
    background-color: #a31717;
}
.box-blog-post {
    background: #fff;
    border: 1px solid rgba(18, 63, 151, 0.12);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(18, 63, 151, 0.12);
}
.box-blog-post .box-text {
    padding: 10px;
}
.box-blog-post .is-divider {
	display: none;
}
.box-blog-post h5 {
	height: 44px;
	overflow: hidden;
}
.box-blog-post h5 a:hover {
	color: #ff6600;
}
.brochure-card .col-inner {
	border-left: 2px solid #a31717;
	padding: 20px 20px 20px 25px; 
	min-height: 150px;
	display: flex; 
	flex-direction: column; 
	justify-content: space-between; 
	background: #fff; 
	transition: all 0.3s ease;
	padding-bottom:: 0 !important;
}
.brochure-card .col-inner:hover {
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}
.brochure-card span {
	color: #a31717; 
	font-family: Arial, sans-serif; 
	font-size: 12px; font-weight: bold; 
	letter-spacing: 2px;
}
.brochure-card h3 {
	color: #1c1c1c; font-family: 'Times New Roman', serif; 
	font-size: 19px; margin: 10px 0; font-weight: bold; 
	line-height: 1.3; text-transform: uppercase;
}
p {
	margin-bottom: 0.5em;
}
/* =====================================================
   TOWNSHIP CARD — CSS
   Dán vào: Appearance → Customize → Additional CSS
   ===================================================== */

/* Grid wrapper (Flatsome Row + Col đã lo responsive,
   nhưng nếu dùng shortcode standalone thì cần cái này) */
.township-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) {
  .township-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .township-grid { grid-template-columns: 1fr; }
}

/* ── Card ─────────────────────────────────────────── */
.township-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  display: flex;
  flex-direction: column;
}

.township-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

/* ── Image wrapper ────────────────────────────────── */
.township-image {
  position: relative;
  overflow: hidden;
}

/* Đảm bảo ảnh fill đều, không bị méo */
.township-image .img-inner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.township-card:hover .township-image .img-inner img {
  transform: scale(1.06);
}

/* ── Badge giá (góc dưới trái) ───────────────────── */
.township-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.60);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

/* ── Status badge (góc trên phải, "ribbon" style) ── */
.status-badge {
  position: absolute;
  top: 16px;
  right: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px 5px 10px;
  border-radius: 3px 0 0 3px;
  color: #fff;
  z-index: 2;
  /* Mũi tên nhỏ bên trái */
  box-shadow: -2px 2px 6px rgba(0,0,0,0.2);
}

/* Màu theo loại */
.status-badge.legacy   { background: #B8973A; } /* vàng đồng */
.status-badge.standard { background: #0066CC; } /* xanh dương */
.status-badge.hot      { background: #D93A2B; } /* đỏ */

/* ── Content block ────────────────────────────────── */
.township-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  align-items: center;    /* canh giữa ngang */
  justify-content: center; /* canh giữa dọc */
}

.township-content h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1A2340;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 5px;
  line-height: 1.3;
}

.township-content .township-location,
.township-content > p:first-of-type {
  font-size: 12px;
  font-weight: 600;
  color: #0066CC;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 14px;
}

/* Divider */
.township-line {
  width: 36px;
  height: 3px;
  background: #0066CC;
  border-radius: 2px;
  margin-bottom: 18px;
}

/* CTA Button */
.township-btn {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a31717;
  text-decoration: none;
  border: 2px solid #a31717;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
 
}

.township-btn:hover {
  background: #a31717;
  color: #fff !important;
  text-decoration: none;
}

.township-btn .icon-angle-right {
  font-size: 13px;
}
/* Image Box Flatsome đẹp hơn, có box-shadow */
.box.has-hover.box-text-bottom {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  transition: all 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hover nổi lên nhẹ */
.box.has-hover.box-text-bottom:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

/* Ảnh bo góc trên */
.box.has-hover.box-text-bottom .box-image img {
  transition: transform 0.5s ease;
}

.box.has-hover.box-text-bottom:hover .box-image img {
  transform: scale(1.05);
}

/* Phần nội dung */
.box.has-hover.box-text-bottom .box-text {
  padding: 18px 20px 22px;
}

/* Tiêu đề */
.box.has-hover.box-text-bottom h3 {
  font-size: 22px;
  font-weight: 700;
  color: #003f2d;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Danh sách */
.box.has-hover.box-text-bottom ul {
  margin: 0 0 18px;
  padding: 0;
}

.box.has-hover.box-text-bottom ul li {
  margin-bottom: 8px;
  color: #555;
  font-size: 15px;
}

/* Button đẹp hơn */
.box.has-hover.box-text-bottom .button.primary {
  background: linear-gradient(135deg, #2f5d3a, #40720a);
  border: none;
  border-radius: 999px;
  padding: 0 20px;
  min-height: 42px;
  box-shadow: 0 8px 18px rgba(64, 114, 10, 0.25);
  transition: all 0.3s ease;
}

.box.has-hover.box-text-bottom .button.primary span,
.box.has-hover.box-text-bottom .button.primary i {
  color: #fff;
}

.box.has-hover.box-text-bottom .button.primary:hover {
  background: linear-gradient(135deg, #24492d, #315908);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(64, 114, 10, 0.35);
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}