:root {
  /* Brand Colors */
  --color-primary: #0f3b40;
  --color-primary-hover: #1c5a61;
  --color-secondary: #f19b00;
  --color-secondary-hover: #d38700;
  --color-title: #e5b85a;

  /* Typography & Backgrounds */
  --color-text-main: #212529;
  --color-text-muted: #6c757d;
  --color-bg-body: #f8f9fa;
  --color-surface: #ffffff;
  --color-surface-hover: #f5f5f5;
  --color-border: #e9ecef;

  /* Badge Colors (Dành cho thẻ "Mới") */
  --color-badge-bg: #fff0f0;
  --color-badge-border: #c20000;
  --color-badge-text: #940000;
}

/* ==============================================================
   RESET & NORMALIZE
   ============================================================== */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font: inherit;
  vertical-align: baseline;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
}

html {
  margin-right: 0 !important;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  box-sizing: border-box;
  /* Đặt overflow-x ở đây thay vì body để tránh bug WebKit (Safari iOS,
     Zalo/FB in-app browser) khiến position:fixed bị tính lại theo
     document thay vì viewport -> header tưởng như tự ẩn/hiện khi cuộn */
  overflow-x: hidden;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
caption,
th,
td {
  font-weight: normal;
  text-align: left;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
}
blockquote,
q {
  quotes: none;
}
a img {
  border: 0;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
select {
  max-width: 100%;
}

/* ==============================================================
   GENERAL TYPOGRAPHY
   ============================================================== */
body,
button,
input,
select,
textarea {
  font-family: "roboto", sans-serif;
  font-size: 17px;
  line-height: 19.6px;
  font-weight: 400;
  color: var(--color-text-main); /* Đã thay bằng biến màu chữ */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* overflow-x: hidden đã chuyển lên html — xem giải thích ở trên */
}

p {
  font-weight: 400;
  line-height: 24px;
  font-size: 17px;
}
strong,
b,
cite {
  font-weight: bold;
}
dfn,
cite,
em,
i,
blockquote {
  font-style: italic;
}
abbr,
acronym {
  border-bottom: 1px dotted var(--color-border);
  cursor: help;
}
.btn-link:focus,
.btn-link:hover,
mark,
ins {
  text-decoration: none;
}
sup,
sub {
  font-size: 75%;
  height: 0;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
small {
  font-size: 75%;
}
big {
  font-size: 125%;
}
address {
  font-style: italic;
  margin: 0 0 20px;
}

code,
kbd,
tt,
var,
samp,
pre {
  margin: 20px 0;
  padding: 4px 12px;
  background: var(--color-bg-body);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  border-radius: 0;
  height: auto;
}

svg,
svg path {
  transition: all 0.3s ease;
}

a {
  color: var(--color-text-main);
  text-decoration: inherit;
  transition: 0.2s ease;
}

a:hover {
  color: var(--color-secondary); /* Đã thay bằng biến màu phụ (Cam) */
  text-decoration: inherit;
}

hr {
  margin-bottom: 20px;
  border: dashed 1px var(--color-border);
}

/* ==============================================================
   LISTS & TABLES
   ============================================================== */
ul,
ol {
  padding: 0;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}
li > ul,
li > ol {
  margin-bottom: 0;
}
li {
  list-style: none;
}
ul li,
ol li {
  padding: 0;
}
dl,
dd {
  margin: 0 0 20px;
}
dt {
  font-weight: bold;
}
del,
.disable {
  text-decoration: line-through;
  opacity: 0.5;
}

table {
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
th {
  border-width: 0 1px 1px 0;
  font-weight: bold;
}
td {
  border-width: 0 1px 1px 0;
}
th,
td {
  padding: 8px 12px;
}

embed,
object,
video {
  margin-bottom: 20px;
  max-width: 100%;
  vertical-align: middle;
}
p > embed,
p > iframe,
p > object,
p > video {
  margin-bottom: 0;
}

.loading {
  background-color: var(--color-surface);
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1;
  margin-top: 0px;
  top: 0px;
  left: 0px;
  bottom: 0px;
  overflow: hidden;
  right: 0px;
  z-index: 999999;
}
.loading .loading-center {
  width: 100%;
  height: 100%;
  position: relative;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading .loading-center .loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.loading .loading-center .loader-container .wrap-loader {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loading .loading-center .loader-container .wrap-loader .icon {
  position: absolute;
  /* max-width: 80px; */
}
.loading .loading-center .loader-container .loader {
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  border-top: 4px solid var(--color-secondary);
  animation: spin 1s linear infinite;
}
.loading .icon {
  width: 20rem;
  height: 20rem;
}

#header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-surface);
  transition:
    transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#header-logo-box {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#header-logo-box.hide-logo {
  display: none;
}

body {
  padding-top: 85px;
}

@media (max-width: 768px) {
  body {
    padding-top: 55px;
  }
}

@media (min-width: 769px) {
  .d-md-none {
    display: none !important;
  }
  .d-md-block {
    display: block !important;
  }
  .d-md-flex {
    display: flex !important;
  }
}

.mobile-search-section {
  padding: 10px 15px;
  background: var(--color-bg-body);
  margin-top: 6rem;
}

.mobile-search-bar {
  display: flex;
  background: #f2f2f2;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid #e0e0e0;
}

.mobile-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 15px;
  font-size: 15px;
  outline: none;
}

.mobile-search-bar .btn-search-mobile {
  background: #e03c31;
  color: white;
  border: none;
  border-radius: 6px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-quick-actions {
  justify-content: space-between;
  padding: 15px;
  background: #fff;
  gap: 10px;
}

.mobile-quick-actions .action-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 5px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-quick-actions .action-card .action-icon img {
  height: 40px;
  margin-bottom: 8px;
}
.mobile-quick-actions .action-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.search-overlay.header-mode {
  position: relative;
  bottom: 0;
  left: 0;
  transform: none;
  width: 100%;
  max-width: 500px;
  margin-left: 20px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.search-overlay.header-mode .search-tabs {
  display: none;
}

.search-overlay.header-mode .search-bar {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.header-search-box {
  display: none;
  flex: 1;
  align-items: center;
  max-width: 450px;
  margin: 0 30px;
  align-items: center;
  min-width: 0;
}

.header-search-box .search-overlay.header-mode .search-bar {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  padding: 6px 6px 6px 18px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.header-search-box .search-overlay.header-mode .search-bar .input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.header-search-box .search-overlay.header-mode .search-bar .icon-search {
  color: var(--color-text-muted);
  flex-shrink: 0;
  opacity: 1;
}

.header-search-box .search-overlay.header-mode .search-bar input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-main);
}

.header-search-box .search-overlay.header-mode .search-bar input::placeholder {
  color: #a0a0a0;
}

.header-search-box .search-overlay.header-mode .search-bar .btn-search {
  background: var(--color-primary);
  color: var(--color-surface);
  border: none;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s ease;
}

.header-search-box .search-overlay.header-mode .search-bar .btn-search:hover {
  background: var(--color-primary-hover);
}

.header-search-box input {
  width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  font-size: 15px;
}

header.is-scrolled .header-search-box:not(:empty) {
  display: flex;
  animation: fadeInSearch 0.3s ease-out forwards;
}

@media (max-width: 768px) {
  .mobile-menu-container {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 11000;
    transition: box-shadow 0.3s ease;
  }

  .mobile-header-slot {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    overflow: visible !important;
  }

  #mobile-logo-link,
  .mobile-header-search-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    transition:
      opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
      transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  #mobile-logo-link {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .mobile-header-search-box {
    opacity: 0;
    transform: translateX(16px);
    pointer-events: none;
    min-width: 0;
  }

  /* Đã cuộn qua thanh tìm kiếm trên slider: logo trượt ra trái + mờ dần,
     search-box trượt vào từ phải + hiện dần. Cuộn lên lại tự đảo ngược. */
  /* Tương tự desktop: chỉ ẩn logo / hiện search-box khi #mobile-header-search-box
     thật sự có nội dung. Trang không có #mobile-search-placeholder (vd.
     dashboard) thì hộp này luôn rỗng -> logo không bao giờ tự biến mất
     "vô cớ" dù is-scrolled bị bật vì lý do khác. */
  .mobile-menu-container.is-scrolled:has(.mobile-header-search-box:not(:empty)) #mobile-logo-link {
    opacity: 0;
    transform: translateX(-16px);
    pointer-events: none;
  }

  .mobile-menu-container.is-scrolled .mobile-header-search-box:not(:empty) {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .mobile-header-search-box .mobile-search-bar {
    width: 100%;
    padding: 3px;
  }

  .mobile-header-search-box .mobile-search-bar input {
    padding: 7px 12px;
    font-size: 14px;
  }

  .mobile-header-search-box .mobile-search-bar .btn-search-mobile {
    width: 36px;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSearch {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-slide .search-overlay {
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
}

.client-project-section .project-tabs {
  width: auto;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  #header-container {
    display: none;
  }
  #header-left-side {
    width: 100%;
    justify-content: space-between;
  }
  .client-project-section .project-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .client-project-section .project-tabs::-webkit-scrollbar {
    display: none;
  }

  .client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-featured .blog-img-box,
  .client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-sub .blog-img-box {
    height: 200px !important;
  }
  .client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-featured .blog-card-overlay .title,
  .client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-sub .blog-card-overlay .title {
    font-size: 1.5rem !important;
  }
  .client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-featured .blog-card-overlay .excerpt {
    font-size: 1rem !important;
    line-height: 1.5rem !important  ;
  }
}
.client-blog-section .blog-heading .blog-heading-title {
  line-height: 1.4 !important;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .footer-content-box {
    display: none; /* Ẩn content mặc định */
    padding-top: 15px;
  }
  .footer-content-box.active {
    display: block;
    animation: fadeInDown 0.3s ease;
  }
  /* Xoay icon (+) thành (x) khi mở */
  .btn-toggle-footer.active {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
  }
}
.client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 12px 16px; */
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  transition: all 0.4s ease;
}

header.is-scrolled .client-header {
  max-width: 1900px;
  padding: 6px 16px;
}

.client-left-side,
.client-right-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-left-side .left-side-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: all 0.4s ease;
}
header.is-scrolled .client-left-side .left-side-logo {
  display: block !important;
}
header.is-scrolled .client-left-side .left-side-logo img {
  height: 51px; /* Thu nhỏ lại như cũ */
}

.client-left-side .left-side-navigation {
  display: flex;
  align-items: center;
}

.client-left-side .left-side-navigation .left-side-navigation-list {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.client-left-side .left-side-navigation .left-side-navigation-list > li {
  position: relative;
}

.client-left-side .left-side-navigation .left-side-navigation-list > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary); /* Đã thay thành Xanh mòng két */
  text-decoration: none;
  transition: 0.2s;
}

.client-left-side .left-side-navigation .left-side-navigation-list > li > a:hover {
  color: var(--color-secondary); /* Đã thay thành Vàng Cam */
}

/* Biểu tượng Dropdown */
.client-left-side .left-side-navigation .left-side-navigation-list li.menu-item-has-children > a::after {
  content: " ▼";
  font-size: 12px;
  margin-left: 4px;
  transition: 0.2s ease;
  color: var(--color-text-muted);
}

.client-left-side .left-side-navigation .left-side-navigation-list li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
  color: var(--color-secondary);
}

/* Submenu Cấp 1 */
.client-left-side .left-side-navigation ul.submenu,
.client-left-side .left-side-navigation ul li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  min-width: 220px;
  padding: 8px 0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 999;
}

.client-left-side .left-side-navigation li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.client-left-side .left-side-navigation ul li {
  position: relative;
  white-space: nowrap;
}

.client-left-side .left-side-navigation ul li a {
  padding: 10px 14px;
  display: flex;
  font-size: 14px;
  color: var(--color-text-main);
  text-decoration: none;
  justify-content: space-between;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.client-left-side .left-side-navigation ul li a:hover {
  background: var(--color-surface-hover);
  color: var(--color-secondary);
}

/* Thẻ Badge (Mới) */
.client-left-side .left-side-navigation ul li a .badge-status-type-bds {
  background-color: var(--color-badge-bg);
  border-color: var(--color-badge-border);
  color: var(--color-badge-text);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  line-height: 0;
  border: 1px solid;
  display: flex;
  align-items: center;
  padding: 1rem;
}

/* Submenu Cấp 2 */
.client-left-side .left-side-navigation ul li ul ul {
  top: 0;
  left: 100%;
  transform: translateX(10px);
}

.client-left-side .left-side-navigation li:hover ul ul {
  transform: translateX(0);
}

/* ==============================================================
   HEADER RIGHT SIDE
   ============================================================== */
.client-right-side a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Nút Yêu Thích */
.client-right-side .right-side-wishlist {
  font-size: 30px;
  color: var(--color-text-main);
  position: relative;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.client-right-side .right-side-wishlist .right-side-wishlist-header {
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  padding: 10px;
  font-size: 2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.client-right-side .right-side-wishlist .right-side-wishlist-header:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

/* Nút Đăng nhập / Đăng ký */
.client-right-side .right-side-auth-section .right-side-auth-section-btn {
  padding: 10px 12px;
  display: flex;
  width: 13rem;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
  font-size: 1.5rem;
  background: var(--color-primary);
  color: var(--color-surface);
  border: none;
  cursor: pointer;
}

.client-right-side .right-side-auth-section .right-side-auth-section-btn:hover {
  background: var(--color-primary-hover);
}

/* Nút Đăng Tin */
.client-right-side .right-side-post-realestate .box-add-realestate-header {
  font-size: 1.6rem;
  font-weight: 600;
  width: 13.5rem;
  display: flex;
  padding: 10px 20px;
  gap: 0.5rem;
  align-items: center;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.client-right-side .right-side-post-realestate .box-add-realestate-header svg {
  color: var(--color-secondary);
}

.client-right-side .right-side-post-realestate .box-add-realestate-header:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

.client-right-side .right-side-post-realestate .box-add-realestate-header:hover svg {
  color: var(--color-surface);
}

/* User Dropdown */
.client-right-side .side-dropdown .nav-user-wrapper {
  display: flex;
}

.client-right-side .side-dropdown .nav-user-wrapper .user-icon-box {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: var(--color-surface);
  cursor: pointer;
}

.client-right-side .side-dropdown .nav-user-wrapper .info-header-box {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin: 0rem 1rem;
  cursor: pointer;
  color: var(--color-text-main);
}

.client-right-side .side-dropdown .nav-user-wrapper .info-header-box i {
  font-size: 1.5rem;
  margin-left: 0.5rem;
  transform: rotate(-90deg);
  transition: all 0.3s ease;
}

/* ==============================================================
   SLIDE SIDE
   ============================================================== */
.client-slide {
  position: relative;
  width: 100%;
  height: auto;
}

.client-slide .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.client-slide .swiper-slide {
  filter: brightness(90%);
}

.client-slide .search-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 37%;
  display: flex;
  gap: 10px;
  z-index: 50;
  padding: 25px;
  border-radius: 14px;
}

.client-slide .search-overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 25px;
  border-radius: 14px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.client-slide .search-overlay .search-tabs {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin-bottom: 24px;
}

.client-slide .search-overlay .search-tabs .tab {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  position: relative;
  padding-bottom: 8px;
  transition: 0.3s ease;
}
.client-slide .search-overlay .search-tabs .tab:hover {
  color: var(--color-surface);
}

.client-slide .search-overlay .search-tabs .tab.active {
  color: var(--color-secondary);
  font-weight: 600;
}
.client-slide .search-overlay .search-bar {
  display: none;
  align-items: center;
  background: var(--color-surface);
  padding: 8px 8px 8px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.client-slide .search-overlay .search-bar.active {
  display: flex;
  animation: fadeForm 0.3s ease forwards;
}

.client-slide .search-overlay .search-bar .input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.client-slide .search-overlay .search-bar .icon-search {
  color: var(--color-text-muted);
}

.client-slide .search-overlay .search-bar input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--color-text-main);
  background: transparent;
}

.client-slide .search-overlay .search-bar input::placeholder {
  color: #a0a0a0;
}

.client-slide .search-overlay .search-bar .btn-search {
  background: var(--color-primary);
  color: var(--color-surface);
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  white-space: nowrap;
}

.client-slide .search-overlay .search-bar .btn-search:hover {
  background: var(--color-primary-hover);
}
.client-slide .search-overlay .search-tabs .tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 10px;
}

/* ==============================================================
   MOBILE HERO SLIDER (mới — Swiper riêng, không dùng chung instance
   với slider desktop, tránh tình trạng slide ẩn bằng d-none/d-block
   bị Swiper tính sai kích thước/loop gây vỡ layout)
   ============================================================== */
@media (max-width: 768px) {
  .mobile-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* khung cố định, không phụ thuộc kích thước ảnh gốc */
    max-height: 460px;
    overflow: hidden;
    background: var(--color-bg-body);
  }

  .mobile-hero .swiper,
  .mobile-hero .swiper-wrapper,
  .mobile-hero .swiper-slide {
    width: 100%;
    height: 100%;
  }

  .mobile-hero .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* luôn lấp đầy khung, cắt ảnh thay vì bóp méo/vỡ */
    object-position: center;
    display: block;
  }

  .mobile-hero .swiper-pagination {
    bottom: 14px !important;
  }

  .mobile-hero .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
  }

  .mobile-hero .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-secondary);
  }
}

@media (max-width: 480px) {
  .mobile-hero {
    aspect-ratio: 3 / 4;
    max-height: 380px;
  }
}
/* ==============================================================
   SELL REALESTATE SIDE
   ============================================================== */

.client-sale-section,
.client-rent-section {
  padding: 45px 15px;
  background: var(--color-bg-body);
}

.client-sale-section .sale-title,
.client-rent-section .rent-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.client-sale-section .sale-subtitle,
.client-rent-section .rent-subtitle {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 25px;
  margin-top: 13px;
}

.client-sale-section .sale-grid,
.client-rent-section .rent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.client-sale-section .sale-grid .sale-item,
.client-rent-section .rent-grid .rent-item {
  background: var(--color-surface);
  border-radius: 10px 10px 0px 0px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}
.client-sale-section .sale-grid .sale-item:hover,
.client-rent-section .rent-grid .rent-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.client-sale-section .sale-grid .sale-item .sale-img,
.client-rent-section .rent-grid .rent-item .rent-img {
  position: relative;
  height: 210px;
}
.client-sale-section .sale-grid .sale-item .sale-img img,
.client-rent-section .rent-grid .rent-item .rent-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-sale-section .sale-grid .sale-item .sale-img .sale-img-label .span-label-img,
.client-rent-section .rent-grid .rent-item .rent-img .rent-img-label .span-label-img {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.client-sale-section .sale-grid .sale-item .sale-img .sale-img-label,
.client-rent-section .rent-grid .rent-item .rent-img .rent-img-label {
  position: absolute;
  bottom: 0px;
  right: 0px;
  padding: 5px 12px;
  font-size: 1.5rem;
  color: var(--color-surface);
  border-radius: 6px;
  font-weight: 700;
  display: flex;
}

.client-sale-section .sale-grid .sale-item .sale-img .sale-label,
.client-rent-section .rent-grid .rent-item .rent-img .rent-label {
  position: absolute;
  top: 5px;
  left: 12px;
  background: var(--color-badge-border);
  padding: 5px 12px;
  font-size: 13px;
  color: var(--color-surface);
  border-radius: 6px;
  font-weight: 700;
}
.client-sale-section .sale-grid .sale-item .sale-content h3,
.client-rent-section .rent-grid .rent-item .rent-content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  padding: 1rem 2rem 0 2rem;
  text-align: left;
}
.client-sale-section .sale-grid .sale-item .sale-content .sale-location,
.client-rent-section .rent-grid .rent-item .rent-content .rent-location {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 5px;
  margin-top: 0.5rem;
  padding: 0 2rem;
}

.client-sale-section .sale-grid .sale-item .sale-content .sale-location svg,
.client-rent-section .rent-grid .rent-item .rent-content .rent-location svg {
  margin-right: 1rem;
  font-size: 2rem;
  font-weight: 400;
}
.client-sale-section .sale-grid .sale-item .sale-content .sale-location a,
.client-rent-section .rent-grid .rent-item .rent-content .rent-location a {
  font-size: 1.5rem;
  font-weight: 600;
}
.client-sale-section .sale-grid .sale-item .sale-content .sale-price,
.client-rent-section .rent-grid .rent-item .rent-content .rent-price {
  color: var(--color-badge-border);
  font-size: 18px;
  font-weight: 800;
  margin-top: 8px;
  padding: 0rem 2rem;
  display: flex;
  gap: 0.75rem;
}
.client-sale-section .sale-grid .sale-item .sale-content .sale-price svg,
.client-rent-section .rent-grid .rent-item .rent-content .rent-price svg {
  color: var(--color-text-muted);
}
.client-sale-section .sale-grid .sale-item .sale-footer,
.client-rent-section .rent-grid .rent-item .rent-footer {
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  margin-bottom: 1rem;
}
.client-sale-section .sale-grid .sale-item .sale-footer .agent-box,
.client-rent-section .rent-grid .rent-item .rent-footer .agent-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.client-sale-section .sale-grid .sale-item .sale-footer .agent-box .agent-status,
.client-rent-section .rent-grid .rent-item .rent-footer .agent-box .agent-status {
  display: block;
  font-size: 1.5rem;
  color: #777;
  font-weight: 400;
}
.client-sale-section .sale-grid .sale-item .sale-footer .action-group,
.client-rent-section .rent-grid .rent-item .rent-footer .action-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-sale-section .sale-grid .sale-item .sale-footer .action-group .btn-like,
.client-rent-section .rent-grid .rent-item .rent-footer .action-group .btn-like {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: 0.25s;
}

.client-sale-section .sale-grid .sale-item .sale-footer .action-group .btn-like:hover,
.client-rent-section .rent-grid .rent-item .rent-footer .action-group .btn-like:hover {
  background: #ffecec;
  border-color: #ff4d4f;
}

.client-sale-section .sale-load,
.client-rent-section .rent-load {
  display: block;
  margin: 28px auto 0 auto;
  padding: 12px 34px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 600;
}

.client-sale-section .sale-load:hover,
.client-rent-section .rent-load:hover {
  background: var(--color-primary-hover);
}
/* ==============================================================
   NEIGHBORHOOD SIDE
   ============================================================== */

.client-area-section {
  margin: 20px auto;
  padding: 0 16px;
  background-color: var(--color-bg-body);
}

.client-area-section .area-section-title {
  margin-top: 30px;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  position: relative;
  text-align: center;
}

.client-area-section .area-section-desc {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.client-area-section .area-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.client-area-section .area-section-grid .area-card {
  position: relative;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 60, 71, 0.15);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease;
}
.client-area-section .area-section-grid .area-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.client-area-section .area-section-grid .area-card::after {
  content: "";
  position: absolute;
  inset: 0;
}
.client-area-section .area-section-grid .area-card.featured {
  grid-column: span 2;
  height: 251px;
  box-shadow:
    0 18px 45px rgba(0, 60, 71, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.client-area-section .area-section-grid .area-card.featured::before {
  content: "Khu vực nổi bật";
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 196, 204, 0.25);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 3;
}
.client-area-section .area-section-grid .area-card span {
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.client-area-section .area-section-grid .area-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(0, 60, 71, 0.35);
}
.client-area-section .area-section-grid .area-card.small {
  grid-column: span 1;
}
.client-area-section .area-section-grid .area-card .area-text {
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.client-area-section .area-section-grid .area-card .area-text .area-name {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.client-area-section .area-section-grid .area-card .area-text .area-count {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #fff;
  border-radius: 18px;
  background: rgba(0, 196, 204, 0.25);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
/* ==============================================================
  INTRODUCE SIDE
   ============================================================== */
.client-intro-section {
  padding: 40px 20px;
  background: var(--color-bg-body);
  text-align: center;
}
.client-intro-section .container {
  margin: auto;
}

.client-intro-section .container .intro-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.client-intro-section .container .intro-wrapper .intro-image {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.client-intro-section .container .intro-wrapper .intro-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.client-intro-section .container .intro-wrapper .intro-content .intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--color-primary-hover);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.client-intro-section .container .intro-wrapper .intro-content .intro-title {
  font-size: 3.6rem;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--color-text-main);
}
.client-intro-section .container .intro-wrapper .intro-content .intro-desc {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.client-intro-section .container .intro-wrapper .intro-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.client-intro-section .container .intro-wrapper .intro-features .feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-main);
  font-size: 1.5rem;
}

.client-intro-section .container .intro-wrapper .intro-features .feature-item svg {
  color: var(--color-primary-hover);
}

.client-intro-section .container .intro-wrapper .intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.25);
}

.client-intro-section .container .intro-wrapper .intro-btn:hover {
  transform: translateY(-3px);
  background-color: var(--color-primary-hover);
}

/* ==============================================================
   PROJECT SIDE
   ============================================================== */
.client-project-section {
  padding: 80px 0;
  background: var(--color-bg-body);
}
.client-project-section .project-heading {
  text-align: center;
  margin-bottom: 35px;
}
.client-project-section .project-heading .project-heading-title {
  font-size: 3.2rem;
  margin-bottom: 2rem;
  font-weight: 600;
}
.client-project-section .project-heading .project-heading-subtitle {
  color: var(--color-text-muted);
}
.client-project-section .project-tabs {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  width: 43%;
  border-radius: 12px;
  margin: 0 auto 3rem auto;
  background: var(--color-surface);
}

.client-project-section .project-tabs .project-tab {
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--color-surface);
  transition: 0.3s;
  font-weight: 600;
}

.client-project-section .project-tabs .project-tab.active {
  background: var(--color-primary-hover);
  color: var(--color-surface);
}
.client-project-section .project-content-wrapper .project-pane {
  display: none;
}
.client-project-section .project-content-wrapper .project-pane.active {
  display: block;
}
.client-project-section .project-content-wrapper .project-pane .project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.client-project-section .project-content-wrapper .project-pane .project-grid .project-card {
  background: var(--color-surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.client-project-section .project-content-wrapper .project-pane .project-grid .project-card:hover {
  transform: translateY(-5px);
}

.client-project-section .project-content-wrapper .project-pane .project-grid .project-thumb {
  position: relative;
}

.client-project-section .project-content-wrapper .project-pane .project-grid .project-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.client-project-section .project-content-wrapper .project-pane .project-grid .project-thumb .project-badge {
  position: absolute;
  top: 6px;
  left: 12px;
  background: var(--color-badge-border);
  color: var(--color-surface);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 1.2rem;
}
.client-project-section .project-content-wrapper .project-pane .project-grid .project-body {
  padding: 1rem 2rem;
}
.client-project-section .project-content-wrapper .project-pane .project-grid .project-body .project-body-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  text-align: left;
}
.client-project-section .project-content-wrapper .project-pane .project-grid .project-body .project-body-location {
  color: var(--color-primary);
  margin-bottom: 15px;
}
.client-project-section .project-content-wrapper .project-pane .project-grid .project-body .project-body-meta {
  display: flex;
  margin-bottom: 15px;
  color: var(--color-text-muted);
  font-size: 1.3rem;
  gap: 1rem;
}
.client-project-section .project-content-wrapper .project-pane .project-grid .project-body .project-body-meta .project-acreage,
.client-project-section .project-content-wrapper .project-pane .project-grid .project-body .project-body-meta .project-price {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-badge-border);
}
.client-project-section .project-content-wrapper .project-pane .project-grid .project-body .project-body-meta .project-acreage svg,
.client-project-section .project-content-wrapper .project-pane .project-grid .project-body .project-body-meta .project-price svg {
  color: var(--color-text-muted);
}
.client-project-section .project-content-wrapper .project-pane .project-grid .project-footer {
  display: flex;
}
.client-project-section .project-content-wrapper .project-pane .project-grid .project-footer a {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-surface);
  padding: 1rem 2rem;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
}
/* ==============================================================
   PARTNER SIDE
   ============================================================== */
.client-partner-section {
  padding: 50px 0;
  background-color: var(--color-bg-body);
  overflow: hidden;
}
.client-partner-section .partner-heading {
  text-align: center;
  margin-bottom: 40px;
}

.client-partner-section .partner-heading .partner-heading-title {
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.client-partner-section .partner-heading .partner-heading-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 0 auto;
}

.client-partner-section .brand-slide .swiper-wrapper {
  transition-timing-function: linear !important;
}
.client-partner-section .brand-slide .swiper-wrapper .partner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100px;
}

.client-partner-section .brand-slide .swiper-wrapper .partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.client-partner-section .brand-slide .swiper-wrapper .partner-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.client-partner-section .brand-slide .swiper-wrapper .partner-item:hover img {
  filter: grayscale(0%);
}

/* ==============================================================
   UTILITIES SIDE
   ============================================================== */
.client-utility-section .utility-wrap {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.client-utility-section .utility-wrap .utility-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 247, 248, 0.85));
  backdrop-filter: blur(12px);
  box-shadow:
    0 14px 40px rgba(0, 60, 71, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  transition: all 0.4s ease;
}

.client-utility-section .utility-wrap .utility-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 196, 204, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.client-utility-section .utility-wrap .utility-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 0 10px rgba(255, 255, 255, 0.35);
}

.client-utility-section .utility-wrap .utility-card .text {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
}

.client-utility-section .utility-wrap .utility-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 55px rgba(0, 196, 204, 0.35),
    inset 0 0 0 1px rgba(0, 196, 204, 0.9);
}

.client-utility-section .utility-wrap .utility-card:hover::before {
  opacity: 1;
}

/* ==============================================================
   BLOG SIDE
   ============================================================== */
.client-blog-section {
  margin-top: 7rem;
}
.client-blog-section .blog-heading .blog-heading-title {
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.client-blog-section .blog-heading .blog-heading-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 1rem 0 0;
}

.client-blog-section .tag-item {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.client-blog-section .tag-item a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--color-border);
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

.client-blog-section .tag-item a:hover {
  background: var(--color-primary-hover);
  color: var(--color-surface);
}

.client-blog-section .client-blog-content {
  position: relative;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper a {
  text-decoration: none;
  color: var(--color-text-main);
}
.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card {
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-bottom: 20px;
  position: relative;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-featured .blog-img-box {
  height: 425px;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-featured .blog-card-overlay .title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 7px;
  line-height: 1.4;
  color: var(--color-title);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-featured .blog-card-overlay .excerpt {
  color: var(--color-border);
  font-size: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card .blog-img-box {
  border-radius: 8px;
  overflow: hidden;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card .blog-img-box img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card:hover .blog-img-box img {
  transform: scale(1.05);
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card .blog-img-box {
  position: relative;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card .blog-img-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 25%, rgba(0, 0, 0, 0.15) 50%, transparent 75%);
  border-radius: 8px;
  pointer-events: none;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card .blog-img-box .blog-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 18px 14px;
  z-index: 1;
  color: var(--color-surface);
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-sub .blog-img-box {
  height: 275px;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-sub .blog-card-overlay .title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.35;
  color: var(--color-title);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-card.blog-sub .blog-card-overlay .excerpt {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  color: var(--color-border);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-sidebar {
  background: var(--color-bg-body);
  padding: 20px;
  border-radius: 8px;
  height: 100%;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-sidebar .blog-sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  text-transform: uppercase;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-sidebar .blog-list-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}
.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-sidebar .blog-list-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-sidebar .blog-list-item img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-sidebar .blog-list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-sidebar .blog-list-content .title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-title);
  margin: 0 0 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-sidebar .blog-list-content .excerpt {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.client-blog-section .client-blog-content .blog-content-group .blog-wrapper .blog-sidebar .blog-list-content .date {
  font-size: 0.8rem;
  color: #888;
}
/* ==============================================================
   RESPONSIVE SIDE
   ============================================================== */
@media (min-width: 1024px) {
  .client-sale-section .sale-grid,
  .client-rent-section .rent-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1024px) {
  .client-area-section .area-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-area-section .area-section-grid .area-card {
    height: 220px;
  }

  .client-area-section .area-section-grid .area-card.featured {
    grid-column: span 2;
    height: 260px;
  }
  .client-project-section .project-content-wrapper .project-pane .project-grid .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .client-header {
    gap: 8px;
  }

  .client-left-side .left-side-navigation .left-side-navigation-list > li > a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .client-intro-section .container .intro-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .client-intro-section .container .intro-wrapper .intro-content .intro-title {
    font-size: 2.8rem;
  }

  .client-project-section .project-content-wrapper .project-pane .project-grid .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .client-right-side {
    display: none;
  }

  .client-left-side .left-side-navigation {
    display: none;
  }

  .client-slide {
    height: auto;
    width: 100%;
  }

  .client-slide .swiper-slide img {
    height: auto;
    width: 100%;
  }

  /* search-overlay trên mobile đã neo bottom, thu nhỏ padding */
  .client-slide .search-overlay {
    bottom: 12px;
    padding: 16px 14px;
  }

  .client-slide .search-box {
    bottom: 10px;
    width: 92%;
    padding: 12px;
  }

  .client-slide .search-box input,
  .client-slide .search-box button {
    font-size: 14px;
    padding: 10px;
  }

  /* sale/rent: 2 cột trên tablet */
  .client-sale-section .sale-grid,
  .client-rent-section .rent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-area-section .area-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-area-section .area-section-grid .area-card {
    height: 200px;
    border-radius: 18px;
  }

  .client-area-section .area-section-grid .area-card span {
    font-size: 17px;
  }

  .client-area-section .area-section-grid .area-card.featured {
    order: 10;
    grid-column: span 2;
    height: 260px;
    box-shadow: 0 20px 45px rgba(0, 60, 71, 0.4);
  }

  .client-area-section .area-section-grid .area-text .area-name {
    font-size: 17px;
  }

  .client-area-section .area-section-grid .area-text .area-count {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* intro: 1 cột trên tablet/mobile */
  .client-intro-section .container .intro-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }

  .client-intro-section .container .intro-wrapper .intro-content .intro-title {
    font-size: 2.6rem;
  }

  /* project tabs: thu nhỏ lại */
  .client-project-section .project-tabs {
    width: 90%;
  }

  /* project grid: 2 cột trên tablet */
  .client-project-section .project-content-wrapper .project-pane .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-utility-section .utility-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .client-utility-section .utility-wrap .utility-card {
    flex-direction: column;
    padding: 20px 14px;
    text-align: center;
  }

  .client-utility-section .utility-wrap .utility-card .icon {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }

  .client-utility-section .utility-wrap .utility-card .text {
    font-size: 14px;
    margin-top: 6px;
  }
}

@media (max-width: 576px) {
  .left-side-logo img {
    height: 40px;
  }

  /* search overlay: full width, sát đáy */
  .client-slide .search-overlay {
    width: 96%;
    padding: 14px 12px;
    bottom: 8px;
    border-radius: 10px;
  }

  .client-slide .search-overlay .search-tabs {
    gap: 20px;
    margin-bottom: 16px;
  }

  .client-slide .search-overlay .search-tabs .tab {
    font-size: 14px;
  }

  .client-slide .search-overlay .search-bar {
    flex-direction: column;
    padding: 12px;
    background: transparent;
    box-shadow: none;
    gap: 10px;
  }

  .client-slide .search-overlay .search-bar .input-wrapper {
    background: var(--color-surface);
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .client-slide .search-overlay .search-bar .btn-search {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  /* sale/rent: 1 cột trên phone nhỏ */
  .client-sale-section .sale-grid,
  .client-rent-section .rent-grid {
    grid-template-columns: 1fr;
  }

  .client-sale-section,
  .client-rent-section {
    padding: 30px 12px;
  }

  /* intro: padding gọn */
  .client-intro-section {
    padding: 30px 14px;
  }

  .client-intro-section .container .intro-wrapper .intro-content .intro-title {
    font-size: 2.2rem;
  }

  /* project: 1 cột trên phone */
  .client-project-section .project-content-wrapper .project-pane .project-grid {
    grid-template-columns: 1fr;
  }

  .client-project-section .project-tabs {
    width: 98%;
    gap: 6px;
  }

  .client-project-section .project-tabs .project-tab {
    padding: 10px 14px;
    font-size: 11px;
  }

  /* area grid: 1 cột trên phone nhỏ */
  .client-area-section .area-section-grid {
    grid-template-columns: 1fr;
  }

  .client-area-section .area-section-grid .area-card.featured {
    grid-column: span 1;
  }

  /* bds-container */
  .bds-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .client-slide .search-overlay .search-tabs {
    gap: 16px;
  }

  .btn-search {
    padding: 8px 14px;
  }

  .client-sale-section .sale-title,
  .client-rent-section .rent-title {
    font-size: 2rem;
  }

  .client-area-section .area-section-title {
    font-size: 2rem;
  }

  .client-project-section .project-heading .project-heading-title {
    font-size: 2.4rem;
  }

  /* footer banner gọn hơn */
  .bds-banner {
    padding: 20px 14px;
  }

  /* footer cols 1 cột */
  .footer-main {
    flex-direction: column;
    gap: 20px;
  }
}

@keyframes fadeForm {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
